fast-path.generated.go 767 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668
  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. for _, v2 := range v {
  1463. if esep {
  1464. ee.WriteArrayElem()
  1465. }
  1466. e.encode(v2)
  1467. }
  1468. ee.WriteArrayEnd()
  1469. }
  1470. func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, e *Encoder) {
  1471. ee, esep := e.e, e.hh.hasElemSeparators()
  1472. if len(v)%2 == 1 {
  1473. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1474. return
  1475. }
  1476. ee.WriteMapStart(len(v) / 2)
  1477. for j, v2 := range v {
  1478. if esep {
  1479. if j%2 == 0 {
  1480. ee.WriteMapElemKey()
  1481. } else {
  1482. ee.WriteMapElemValue()
  1483. }
  1484. }
  1485. e.encode(v2)
  1486. }
  1487. ee.WriteMapEnd()
  1488. }
  1489. func (e *Encoder) fastpathEncSliceStringR(f *codecFnInfo, rv reflect.Value) {
  1490. if f.ti.mbs {
  1491. fastpathTV.EncAsMapSliceStringV(rv2i(rv).([]string), e)
  1492. } else {
  1493. fastpathTV.EncSliceStringV(rv2i(rv).([]string), e)
  1494. }
  1495. }
  1496. func (_ fastpathT) EncSliceStringV(v []string, e *Encoder) {
  1497. if v == nil {
  1498. e.e.EncodeNil()
  1499. return
  1500. }
  1501. ee, esep := e.e, e.hh.hasElemSeparators()
  1502. ee.WriteArrayStart(len(v))
  1503. for _, v2 := range v {
  1504. if esep {
  1505. ee.WriteArrayElem()
  1506. }
  1507. if e.h.StringToRaw {
  1508. ee.EncodeStringBytesRaw(bytesView(v2))
  1509. } else {
  1510. ee.EncodeStringEnc(cUTF8, v2)
  1511. }
  1512. }
  1513. ee.WriteArrayEnd()
  1514. }
  1515. func (_ fastpathT) EncAsMapSliceStringV(v []string, e *Encoder) {
  1516. ee, esep := e.e, e.hh.hasElemSeparators()
  1517. if len(v)%2 == 1 {
  1518. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1519. return
  1520. }
  1521. ee.WriteMapStart(len(v) / 2)
  1522. for j, v2 := range v {
  1523. if esep {
  1524. if j%2 == 0 {
  1525. ee.WriteMapElemKey()
  1526. } else {
  1527. ee.WriteMapElemValue()
  1528. }
  1529. }
  1530. if e.h.StringToRaw {
  1531. ee.EncodeStringBytesRaw(bytesView(v2))
  1532. } else {
  1533. ee.EncodeStringEnc(cUTF8, v2)
  1534. }
  1535. }
  1536. ee.WriteMapEnd()
  1537. }
  1538. func (e *Encoder) fastpathEncSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  1539. if f.ti.mbs {
  1540. fastpathTV.EncAsMapSliceFloat32V(rv2i(rv).([]float32), e)
  1541. } else {
  1542. fastpathTV.EncSliceFloat32V(rv2i(rv).([]float32), e)
  1543. }
  1544. }
  1545. func (_ fastpathT) EncSliceFloat32V(v []float32, e *Encoder) {
  1546. if v == nil {
  1547. e.e.EncodeNil()
  1548. return
  1549. }
  1550. ee, esep := e.e, e.hh.hasElemSeparators()
  1551. ee.WriteArrayStart(len(v))
  1552. for _, v2 := range v {
  1553. if esep {
  1554. ee.WriteArrayElem()
  1555. }
  1556. ee.EncodeFloat32(v2)
  1557. }
  1558. ee.WriteArrayEnd()
  1559. }
  1560. func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, e *Encoder) {
  1561. ee, esep := e.e, e.hh.hasElemSeparators()
  1562. if len(v)%2 == 1 {
  1563. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1564. return
  1565. }
  1566. ee.WriteMapStart(len(v) / 2)
  1567. for j, v2 := range v {
  1568. if esep {
  1569. if j%2 == 0 {
  1570. ee.WriteMapElemKey()
  1571. } else {
  1572. ee.WriteMapElemValue()
  1573. }
  1574. }
  1575. ee.EncodeFloat32(v2)
  1576. }
  1577. ee.WriteMapEnd()
  1578. }
  1579. func (e *Encoder) fastpathEncSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  1580. if f.ti.mbs {
  1581. fastpathTV.EncAsMapSliceFloat64V(rv2i(rv).([]float64), e)
  1582. } else {
  1583. fastpathTV.EncSliceFloat64V(rv2i(rv).([]float64), e)
  1584. }
  1585. }
  1586. func (_ fastpathT) EncSliceFloat64V(v []float64, e *Encoder) {
  1587. if v == nil {
  1588. e.e.EncodeNil()
  1589. return
  1590. }
  1591. ee, esep := e.e, e.hh.hasElemSeparators()
  1592. ee.WriteArrayStart(len(v))
  1593. for _, v2 := range v {
  1594. if esep {
  1595. ee.WriteArrayElem()
  1596. }
  1597. ee.EncodeFloat64(v2)
  1598. }
  1599. ee.WriteArrayEnd()
  1600. }
  1601. func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, e *Encoder) {
  1602. ee, esep := e.e, e.hh.hasElemSeparators()
  1603. if len(v)%2 == 1 {
  1604. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1605. return
  1606. }
  1607. ee.WriteMapStart(len(v) / 2)
  1608. for j, v2 := range v {
  1609. if esep {
  1610. if j%2 == 0 {
  1611. ee.WriteMapElemKey()
  1612. } else {
  1613. ee.WriteMapElemValue()
  1614. }
  1615. }
  1616. ee.EncodeFloat64(v2)
  1617. }
  1618. ee.WriteMapEnd()
  1619. }
  1620. func (e *Encoder) fastpathEncSliceUintR(f *codecFnInfo, rv reflect.Value) {
  1621. if f.ti.mbs {
  1622. fastpathTV.EncAsMapSliceUintV(rv2i(rv).([]uint), e)
  1623. } else {
  1624. fastpathTV.EncSliceUintV(rv2i(rv).([]uint), e)
  1625. }
  1626. }
  1627. func (_ fastpathT) EncSliceUintV(v []uint, e *Encoder) {
  1628. if v == nil {
  1629. e.e.EncodeNil()
  1630. return
  1631. }
  1632. ee, esep := e.e, e.hh.hasElemSeparators()
  1633. ee.WriteArrayStart(len(v))
  1634. for _, v2 := range v {
  1635. if esep {
  1636. ee.WriteArrayElem()
  1637. }
  1638. ee.EncodeUint(uint64(v2))
  1639. }
  1640. ee.WriteArrayEnd()
  1641. }
  1642. func (_ fastpathT) EncAsMapSliceUintV(v []uint, e *Encoder) {
  1643. ee, esep := e.e, e.hh.hasElemSeparators()
  1644. if len(v)%2 == 1 {
  1645. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1646. return
  1647. }
  1648. ee.WriteMapStart(len(v) / 2)
  1649. for j, v2 := range v {
  1650. if esep {
  1651. if j%2 == 0 {
  1652. ee.WriteMapElemKey()
  1653. } else {
  1654. ee.WriteMapElemValue()
  1655. }
  1656. }
  1657. ee.EncodeUint(uint64(v2))
  1658. }
  1659. ee.WriteMapEnd()
  1660. }
  1661. func (e *Encoder) fastpathEncSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  1662. if f.ti.mbs {
  1663. fastpathTV.EncAsMapSliceUint8V(rv2i(rv).([]uint8), e)
  1664. } else {
  1665. fastpathTV.EncSliceUint8V(rv2i(rv).([]uint8), e)
  1666. }
  1667. }
  1668. func (_ fastpathT) EncSliceUint8V(v []uint8, e *Encoder) {
  1669. if v == nil {
  1670. e.e.EncodeNil()
  1671. return
  1672. }
  1673. ee, esep := e.e, e.hh.hasElemSeparators()
  1674. ee.WriteArrayStart(len(v))
  1675. for _, v2 := range v {
  1676. if esep {
  1677. ee.WriteArrayElem()
  1678. }
  1679. ee.EncodeUint(uint64(v2))
  1680. }
  1681. ee.WriteArrayEnd()
  1682. }
  1683. func (_ fastpathT) EncAsMapSliceUint8V(v []uint8, e *Encoder) {
  1684. ee, esep := e.e, e.hh.hasElemSeparators()
  1685. if len(v)%2 == 1 {
  1686. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1687. return
  1688. }
  1689. ee.WriteMapStart(len(v) / 2)
  1690. for j, v2 := range v {
  1691. if esep {
  1692. if j%2 == 0 {
  1693. ee.WriteMapElemKey()
  1694. } else {
  1695. ee.WriteMapElemValue()
  1696. }
  1697. }
  1698. ee.EncodeUint(uint64(v2))
  1699. }
  1700. ee.WriteMapEnd()
  1701. }
  1702. func (e *Encoder) fastpathEncSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  1703. if f.ti.mbs {
  1704. fastpathTV.EncAsMapSliceUint16V(rv2i(rv).([]uint16), e)
  1705. } else {
  1706. fastpathTV.EncSliceUint16V(rv2i(rv).([]uint16), e)
  1707. }
  1708. }
  1709. func (_ fastpathT) EncSliceUint16V(v []uint16, e *Encoder) {
  1710. if v == nil {
  1711. e.e.EncodeNil()
  1712. return
  1713. }
  1714. ee, esep := e.e, e.hh.hasElemSeparators()
  1715. ee.WriteArrayStart(len(v))
  1716. for _, v2 := range v {
  1717. if esep {
  1718. ee.WriteArrayElem()
  1719. }
  1720. ee.EncodeUint(uint64(v2))
  1721. }
  1722. ee.WriteArrayEnd()
  1723. }
  1724. func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, e *Encoder) {
  1725. ee, esep := e.e, e.hh.hasElemSeparators()
  1726. if len(v)%2 == 1 {
  1727. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1728. return
  1729. }
  1730. ee.WriteMapStart(len(v) / 2)
  1731. for j, v2 := range v {
  1732. if esep {
  1733. if j%2 == 0 {
  1734. ee.WriteMapElemKey()
  1735. } else {
  1736. ee.WriteMapElemValue()
  1737. }
  1738. }
  1739. ee.EncodeUint(uint64(v2))
  1740. }
  1741. ee.WriteMapEnd()
  1742. }
  1743. func (e *Encoder) fastpathEncSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  1744. if f.ti.mbs {
  1745. fastpathTV.EncAsMapSliceUint32V(rv2i(rv).([]uint32), e)
  1746. } else {
  1747. fastpathTV.EncSliceUint32V(rv2i(rv).([]uint32), e)
  1748. }
  1749. }
  1750. func (_ fastpathT) EncSliceUint32V(v []uint32, e *Encoder) {
  1751. if v == nil {
  1752. e.e.EncodeNil()
  1753. return
  1754. }
  1755. ee, esep := e.e, e.hh.hasElemSeparators()
  1756. ee.WriteArrayStart(len(v))
  1757. for _, v2 := range v {
  1758. if esep {
  1759. ee.WriteArrayElem()
  1760. }
  1761. ee.EncodeUint(uint64(v2))
  1762. }
  1763. ee.WriteArrayEnd()
  1764. }
  1765. func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, e *Encoder) {
  1766. ee, esep := e.e, e.hh.hasElemSeparators()
  1767. if len(v)%2 == 1 {
  1768. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1769. return
  1770. }
  1771. ee.WriteMapStart(len(v) / 2)
  1772. for j, v2 := range v {
  1773. if esep {
  1774. if j%2 == 0 {
  1775. ee.WriteMapElemKey()
  1776. } else {
  1777. ee.WriteMapElemValue()
  1778. }
  1779. }
  1780. ee.EncodeUint(uint64(v2))
  1781. }
  1782. ee.WriteMapEnd()
  1783. }
  1784. func (e *Encoder) fastpathEncSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  1785. if f.ti.mbs {
  1786. fastpathTV.EncAsMapSliceUint64V(rv2i(rv).([]uint64), e)
  1787. } else {
  1788. fastpathTV.EncSliceUint64V(rv2i(rv).([]uint64), e)
  1789. }
  1790. }
  1791. func (_ fastpathT) EncSliceUint64V(v []uint64, e *Encoder) {
  1792. if v == nil {
  1793. e.e.EncodeNil()
  1794. return
  1795. }
  1796. ee, esep := e.e, e.hh.hasElemSeparators()
  1797. ee.WriteArrayStart(len(v))
  1798. for _, v2 := range v {
  1799. if esep {
  1800. ee.WriteArrayElem()
  1801. }
  1802. ee.EncodeUint(uint64(v2))
  1803. }
  1804. ee.WriteArrayEnd()
  1805. }
  1806. func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, e *Encoder) {
  1807. ee, esep := e.e, e.hh.hasElemSeparators()
  1808. if len(v)%2 == 1 {
  1809. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1810. return
  1811. }
  1812. ee.WriteMapStart(len(v) / 2)
  1813. for j, v2 := range v {
  1814. if esep {
  1815. if j%2 == 0 {
  1816. ee.WriteMapElemKey()
  1817. } else {
  1818. ee.WriteMapElemValue()
  1819. }
  1820. }
  1821. ee.EncodeUint(uint64(v2))
  1822. }
  1823. ee.WriteMapEnd()
  1824. }
  1825. func (e *Encoder) fastpathEncSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  1826. if f.ti.mbs {
  1827. fastpathTV.EncAsMapSliceUintptrV(rv2i(rv).([]uintptr), e)
  1828. } else {
  1829. fastpathTV.EncSliceUintptrV(rv2i(rv).([]uintptr), e)
  1830. }
  1831. }
  1832. func (_ fastpathT) EncSliceUintptrV(v []uintptr, e *Encoder) {
  1833. if v == nil {
  1834. e.e.EncodeNil()
  1835. return
  1836. }
  1837. ee, esep := e.e, e.hh.hasElemSeparators()
  1838. ee.WriteArrayStart(len(v))
  1839. for _, v2 := range v {
  1840. if esep {
  1841. ee.WriteArrayElem()
  1842. }
  1843. e.encode(v2)
  1844. }
  1845. ee.WriteArrayEnd()
  1846. }
  1847. func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, e *Encoder) {
  1848. ee, esep := e.e, e.hh.hasElemSeparators()
  1849. if len(v)%2 == 1 {
  1850. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1851. return
  1852. }
  1853. ee.WriteMapStart(len(v) / 2)
  1854. for j, v2 := range v {
  1855. if esep {
  1856. if j%2 == 0 {
  1857. ee.WriteMapElemKey()
  1858. } else {
  1859. ee.WriteMapElemValue()
  1860. }
  1861. }
  1862. e.encode(v2)
  1863. }
  1864. ee.WriteMapEnd()
  1865. }
  1866. func (e *Encoder) fastpathEncSliceIntR(f *codecFnInfo, rv reflect.Value) {
  1867. if f.ti.mbs {
  1868. fastpathTV.EncAsMapSliceIntV(rv2i(rv).([]int), e)
  1869. } else {
  1870. fastpathTV.EncSliceIntV(rv2i(rv).([]int), e)
  1871. }
  1872. }
  1873. func (_ fastpathT) EncSliceIntV(v []int, e *Encoder) {
  1874. if v == nil {
  1875. e.e.EncodeNil()
  1876. return
  1877. }
  1878. ee, esep := e.e, e.hh.hasElemSeparators()
  1879. ee.WriteArrayStart(len(v))
  1880. for _, v2 := range v {
  1881. if esep {
  1882. ee.WriteArrayElem()
  1883. }
  1884. ee.EncodeInt(int64(v2))
  1885. }
  1886. ee.WriteArrayEnd()
  1887. }
  1888. func (_ fastpathT) EncAsMapSliceIntV(v []int, e *Encoder) {
  1889. ee, esep := e.e, e.hh.hasElemSeparators()
  1890. if len(v)%2 == 1 {
  1891. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1892. return
  1893. }
  1894. ee.WriteMapStart(len(v) / 2)
  1895. for j, v2 := range v {
  1896. if esep {
  1897. if j%2 == 0 {
  1898. ee.WriteMapElemKey()
  1899. } else {
  1900. ee.WriteMapElemValue()
  1901. }
  1902. }
  1903. ee.EncodeInt(int64(v2))
  1904. }
  1905. ee.WriteMapEnd()
  1906. }
  1907. func (e *Encoder) fastpathEncSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  1908. if f.ti.mbs {
  1909. fastpathTV.EncAsMapSliceInt8V(rv2i(rv).([]int8), e)
  1910. } else {
  1911. fastpathTV.EncSliceInt8V(rv2i(rv).([]int8), e)
  1912. }
  1913. }
  1914. func (_ fastpathT) EncSliceInt8V(v []int8, e *Encoder) {
  1915. if v == nil {
  1916. e.e.EncodeNil()
  1917. return
  1918. }
  1919. ee, esep := e.e, e.hh.hasElemSeparators()
  1920. ee.WriteArrayStart(len(v))
  1921. for _, v2 := range v {
  1922. if esep {
  1923. ee.WriteArrayElem()
  1924. }
  1925. ee.EncodeInt(int64(v2))
  1926. }
  1927. ee.WriteArrayEnd()
  1928. }
  1929. func (_ fastpathT) EncAsMapSliceInt8V(v []int8, e *Encoder) {
  1930. ee, esep := e.e, e.hh.hasElemSeparators()
  1931. if len(v)%2 == 1 {
  1932. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1933. return
  1934. }
  1935. ee.WriteMapStart(len(v) / 2)
  1936. for j, v2 := range v {
  1937. if esep {
  1938. if j%2 == 0 {
  1939. ee.WriteMapElemKey()
  1940. } else {
  1941. ee.WriteMapElemValue()
  1942. }
  1943. }
  1944. ee.EncodeInt(int64(v2))
  1945. }
  1946. ee.WriteMapEnd()
  1947. }
  1948. func (e *Encoder) fastpathEncSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  1949. if f.ti.mbs {
  1950. fastpathTV.EncAsMapSliceInt16V(rv2i(rv).([]int16), e)
  1951. } else {
  1952. fastpathTV.EncSliceInt16V(rv2i(rv).([]int16), e)
  1953. }
  1954. }
  1955. func (_ fastpathT) EncSliceInt16V(v []int16, e *Encoder) {
  1956. if v == nil {
  1957. e.e.EncodeNil()
  1958. return
  1959. }
  1960. ee, esep := e.e, e.hh.hasElemSeparators()
  1961. ee.WriteArrayStart(len(v))
  1962. for _, v2 := range v {
  1963. if esep {
  1964. ee.WriteArrayElem()
  1965. }
  1966. ee.EncodeInt(int64(v2))
  1967. }
  1968. ee.WriteArrayEnd()
  1969. }
  1970. func (_ fastpathT) EncAsMapSliceInt16V(v []int16, e *Encoder) {
  1971. ee, esep := e.e, e.hh.hasElemSeparators()
  1972. if len(v)%2 == 1 {
  1973. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1974. return
  1975. }
  1976. ee.WriteMapStart(len(v) / 2)
  1977. for j, v2 := range v {
  1978. if esep {
  1979. if j%2 == 0 {
  1980. ee.WriteMapElemKey()
  1981. } else {
  1982. ee.WriteMapElemValue()
  1983. }
  1984. }
  1985. ee.EncodeInt(int64(v2))
  1986. }
  1987. ee.WriteMapEnd()
  1988. }
  1989. func (e *Encoder) fastpathEncSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  1990. if f.ti.mbs {
  1991. fastpathTV.EncAsMapSliceInt32V(rv2i(rv).([]int32), e)
  1992. } else {
  1993. fastpathTV.EncSliceInt32V(rv2i(rv).([]int32), e)
  1994. }
  1995. }
  1996. func (_ fastpathT) EncSliceInt32V(v []int32, e *Encoder) {
  1997. if v == nil {
  1998. e.e.EncodeNil()
  1999. return
  2000. }
  2001. ee, esep := e.e, e.hh.hasElemSeparators()
  2002. ee.WriteArrayStart(len(v))
  2003. for _, v2 := range v {
  2004. if esep {
  2005. ee.WriteArrayElem()
  2006. }
  2007. ee.EncodeInt(int64(v2))
  2008. }
  2009. ee.WriteArrayEnd()
  2010. }
  2011. func (_ fastpathT) EncAsMapSliceInt32V(v []int32, e *Encoder) {
  2012. ee, esep := e.e, e.hh.hasElemSeparators()
  2013. if len(v)%2 == 1 {
  2014. e.errorf(fastpathMapBySliceErrMsg, len(v))
  2015. return
  2016. }
  2017. ee.WriteMapStart(len(v) / 2)
  2018. for j, v2 := range v {
  2019. if esep {
  2020. if j%2 == 0 {
  2021. ee.WriteMapElemKey()
  2022. } else {
  2023. ee.WriteMapElemValue()
  2024. }
  2025. }
  2026. ee.EncodeInt(int64(v2))
  2027. }
  2028. ee.WriteMapEnd()
  2029. }
  2030. func (e *Encoder) fastpathEncSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  2031. if f.ti.mbs {
  2032. fastpathTV.EncAsMapSliceInt64V(rv2i(rv).([]int64), e)
  2033. } else {
  2034. fastpathTV.EncSliceInt64V(rv2i(rv).([]int64), e)
  2035. }
  2036. }
  2037. func (_ fastpathT) EncSliceInt64V(v []int64, e *Encoder) {
  2038. if v == nil {
  2039. e.e.EncodeNil()
  2040. return
  2041. }
  2042. ee, esep := e.e, e.hh.hasElemSeparators()
  2043. ee.WriteArrayStart(len(v))
  2044. for _, v2 := range v {
  2045. if esep {
  2046. ee.WriteArrayElem()
  2047. }
  2048. ee.EncodeInt(int64(v2))
  2049. }
  2050. ee.WriteArrayEnd()
  2051. }
  2052. func (_ fastpathT) EncAsMapSliceInt64V(v []int64, e *Encoder) {
  2053. ee, esep := e.e, e.hh.hasElemSeparators()
  2054. if len(v)%2 == 1 {
  2055. e.errorf(fastpathMapBySliceErrMsg, len(v))
  2056. return
  2057. }
  2058. ee.WriteMapStart(len(v) / 2)
  2059. for j, v2 := range v {
  2060. if esep {
  2061. if j%2 == 0 {
  2062. ee.WriteMapElemKey()
  2063. } else {
  2064. ee.WriteMapElemValue()
  2065. }
  2066. }
  2067. ee.EncodeInt(int64(v2))
  2068. }
  2069. ee.WriteMapEnd()
  2070. }
  2071. func (e *Encoder) fastpathEncSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  2072. if f.ti.mbs {
  2073. fastpathTV.EncAsMapSliceBoolV(rv2i(rv).([]bool), e)
  2074. } else {
  2075. fastpathTV.EncSliceBoolV(rv2i(rv).([]bool), e)
  2076. }
  2077. }
  2078. func (_ fastpathT) EncSliceBoolV(v []bool, e *Encoder) {
  2079. if v == nil {
  2080. e.e.EncodeNil()
  2081. return
  2082. }
  2083. ee, esep := e.e, e.hh.hasElemSeparators()
  2084. ee.WriteArrayStart(len(v))
  2085. for _, v2 := range v {
  2086. if esep {
  2087. ee.WriteArrayElem()
  2088. }
  2089. ee.EncodeBool(v2)
  2090. }
  2091. ee.WriteArrayEnd()
  2092. }
  2093. func (_ fastpathT) EncAsMapSliceBoolV(v []bool, e *Encoder) {
  2094. ee, esep := e.e, e.hh.hasElemSeparators()
  2095. if len(v)%2 == 1 {
  2096. e.errorf(fastpathMapBySliceErrMsg, len(v))
  2097. return
  2098. }
  2099. ee.WriteMapStart(len(v) / 2)
  2100. for j, v2 := range v {
  2101. if esep {
  2102. if j%2 == 0 {
  2103. ee.WriteMapElemKey()
  2104. } else {
  2105. ee.WriteMapElemValue()
  2106. }
  2107. }
  2108. ee.EncodeBool(v2)
  2109. }
  2110. ee.WriteMapEnd()
  2111. }
  2112. func (e *Encoder) fastpathEncMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  2113. fastpathTV.EncMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), e)
  2114. }
  2115. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, e *Encoder) {
  2116. if v == nil {
  2117. e.e.EncodeNil()
  2118. return
  2119. }
  2120. ee, esep := e.e, e.hh.hasElemSeparators()
  2121. ee.WriteMapStart(len(v))
  2122. if e.h.Canonical {
  2123. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2124. e2 := NewEncoderBytes(&mksv, e.hh)
  2125. v2 := make([]bytesI, len(v))
  2126. var i, l uint
  2127. var vp *bytesI
  2128. for k2 := range v {
  2129. l = uint(len(mksv))
  2130. e2.MustEncode(k2)
  2131. vp = &v2[i]
  2132. vp.v = mksv[l:]
  2133. vp.i = k2
  2134. i++
  2135. }
  2136. sort.Sort(bytesISlice(v2))
  2137. for j := range v2 {
  2138. if esep {
  2139. ee.WriteMapElemKey()
  2140. }
  2141. e.asis(v2[j].v)
  2142. if esep {
  2143. ee.WriteMapElemValue()
  2144. }
  2145. e.encode(v[v2[j].i])
  2146. }
  2147. } else {
  2148. for k2, v2 := range v {
  2149. if esep {
  2150. ee.WriteMapElemKey()
  2151. }
  2152. e.encode(k2)
  2153. if esep {
  2154. ee.WriteMapElemValue()
  2155. }
  2156. e.encode(v2)
  2157. }
  2158. }
  2159. ee.WriteMapEnd()
  2160. }
  2161. func (e *Encoder) fastpathEncMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  2162. fastpathTV.EncMapIntfStringV(rv2i(rv).(map[interface{}]string), e)
  2163. }
  2164. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, e *Encoder) {
  2165. if v == nil {
  2166. e.e.EncodeNil()
  2167. return
  2168. }
  2169. ee, esep := e.e, e.hh.hasElemSeparators()
  2170. ee.WriteMapStart(len(v))
  2171. if e.h.Canonical {
  2172. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2173. e2 := NewEncoderBytes(&mksv, e.hh)
  2174. v2 := make([]bytesI, len(v))
  2175. var i, l uint
  2176. var vp *bytesI
  2177. for k2 := range v {
  2178. l = uint(len(mksv))
  2179. e2.MustEncode(k2)
  2180. vp = &v2[i]
  2181. vp.v = mksv[l:]
  2182. vp.i = k2
  2183. i++
  2184. }
  2185. sort.Sort(bytesISlice(v2))
  2186. for j := range v2 {
  2187. if esep {
  2188. ee.WriteMapElemKey()
  2189. }
  2190. e.asis(v2[j].v)
  2191. if esep {
  2192. ee.WriteMapElemValue()
  2193. }
  2194. e.encode(v[v2[j].i])
  2195. }
  2196. } else {
  2197. for k2, v2 := range v {
  2198. if esep {
  2199. ee.WriteMapElemKey()
  2200. }
  2201. e.encode(k2)
  2202. if esep {
  2203. ee.WriteMapElemValue()
  2204. }
  2205. if e.h.StringToRaw {
  2206. ee.EncodeStringBytesRaw(bytesView(v2))
  2207. } else {
  2208. ee.EncodeStringEnc(cUTF8, v2)
  2209. }
  2210. }
  2211. }
  2212. ee.WriteMapEnd()
  2213. }
  2214. func (e *Encoder) fastpathEncMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  2215. fastpathTV.EncMapIntfUintV(rv2i(rv).(map[interface{}]uint), e)
  2216. }
  2217. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, e *Encoder) {
  2218. if v == nil {
  2219. e.e.EncodeNil()
  2220. return
  2221. }
  2222. ee, esep := e.e, e.hh.hasElemSeparators()
  2223. ee.WriteMapStart(len(v))
  2224. if e.h.Canonical {
  2225. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2226. e2 := NewEncoderBytes(&mksv, e.hh)
  2227. v2 := make([]bytesI, len(v))
  2228. var i, l uint
  2229. var vp *bytesI
  2230. for k2 := range v {
  2231. l = uint(len(mksv))
  2232. e2.MustEncode(k2)
  2233. vp = &v2[i]
  2234. vp.v = mksv[l:]
  2235. vp.i = k2
  2236. i++
  2237. }
  2238. sort.Sort(bytesISlice(v2))
  2239. for j := range v2 {
  2240. if esep {
  2241. ee.WriteMapElemKey()
  2242. }
  2243. e.asis(v2[j].v)
  2244. if esep {
  2245. ee.WriteMapElemValue()
  2246. }
  2247. e.encode(v[v2[j].i])
  2248. }
  2249. } else {
  2250. for k2, v2 := range v {
  2251. if esep {
  2252. ee.WriteMapElemKey()
  2253. }
  2254. e.encode(k2)
  2255. if esep {
  2256. ee.WriteMapElemValue()
  2257. }
  2258. ee.EncodeUint(uint64(v2))
  2259. }
  2260. }
  2261. ee.WriteMapEnd()
  2262. }
  2263. func (e *Encoder) fastpathEncMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  2264. fastpathTV.EncMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), e)
  2265. }
  2266. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, e *Encoder) {
  2267. if v == nil {
  2268. e.e.EncodeNil()
  2269. return
  2270. }
  2271. ee, esep := e.e, e.hh.hasElemSeparators()
  2272. ee.WriteMapStart(len(v))
  2273. if e.h.Canonical {
  2274. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2275. e2 := NewEncoderBytes(&mksv, e.hh)
  2276. v2 := make([]bytesI, len(v))
  2277. var i, l uint
  2278. var vp *bytesI
  2279. for k2 := range v {
  2280. l = uint(len(mksv))
  2281. e2.MustEncode(k2)
  2282. vp = &v2[i]
  2283. vp.v = mksv[l:]
  2284. vp.i = k2
  2285. i++
  2286. }
  2287. sort.Sort(bytesISlice(v2))
  2288. for j := range v2 {
  2289. if esep {
  2290. ee.WriteMapElemKey()
  2291. }
  2292. e.asis(v2[j].v)
  2293. if esep {
  2294. ee.WriteMapElemValue()
  2295. }
  2296. e.encode(v[v2[j].i])
  2297. }
  2298. } else {
  2299. for k2, v2 := range v {
  2300. if esep {
  2301. ee.WriteMapElemKey()
  2302. }
  2303. e.encode(k2)
  2304. if esep {
  2305. ee.WriteMapElemValue()
  2306. }
  2307. ee.EncodeUint(uint64(v2))
  2308. }
  2309. }
  2310. ee.WriteMapEnd()
  2311. }
  2312. func (e *Encoder) fastpathEncMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  2313. fastpathTV.EncMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), e)
  2314. }
  2315. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, e *Encoder) {
  2316. if v == nil {
  2317. e.e.EncodeNil()
  2318. return
  2319. }
  2320. ee, esep := e.e, e.hh.hasElemSeparators()
  2321. ee.WriteMapStart(len(v))
  2322. if e.h.Canonical {
  2323. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2324. e2 := NewEncoderBytes(&mksv, e.hh)
  2325. v2 := make([]bytesI, len(v))
  2326. var i, l uint
  2327. var vp *bytesI
  2328. for k2 := range v {
  2329. l = uint(len(mksv))
  2330. e2.MustEncode(k2)
  2331. vp = &v2[i]
  2332. vp.v = mksv[l:]
  2333. vp.i = k2
  2334. i++
  2335. }
  2336. sort.Sort(bytesISlice(v2))
  2337. for j := range v2 {
  2338. if esep {
  2339. ee.WriteMapElemKey()
  2340. }
  2341. e.asis(v2[j].v)
  2342. if esep {
  2343. ee.WriteMapElemValue()
  2344. }
  2345. e.encode(v[v2[j].i])
  2346. }
  2347. } else {
  2348. for k2, v2 := range v {
  2349. if esep {
  2350. ee.WriteMapElemKey()
  2351. }
  2352. e.encode(k2)
  2353. if esep {
  2354. ee.WriteMapElemValue()
  2355. }
  2356. ee.EncodeUint(uint64(v2))
  2357. }
  2358. }
  2359. ee.WriteMapEnd()
  2360. }
  2361. func (e *Encoder) fastpathEncMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  2362. fastpathTV.EncMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), e)
  2363. }
  2364. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, e *Encoder) {
  2365. if v == nil {
  2366. e.e.EncodeNil()
  2367. return
  2368. }
  2369. ee, esep := e.e, e.hh.hasElemSeparators()
  2370. ee.WriteMapStart(len(v))
  2371. if e.h.Canonical {
  2372. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2373. e2 := NewEncoderBytes(&mksv, e.hh)
  2374. v2 := make([]bytesI, len(v))
  2375. var i, l uint
  2376. var vp *bytesI
  2377. for k2 := range v {
  2378. l = uint(len(mksv))
  2379. e2.MustEncode(k2)
  2380. vp = &v2[i]
  2381. vp.v = mksv[l:]
  2382. vp.i = k2
  2383. i++
  2384. }
  2385. sort.Sort(bytesISlice(v2))
  2386. for j := range v2 {
  2387. if esep {
  2388. ee.WriteMapElemKey()
  2389. }
  2390. e.asis(v2[j].v)
  2391. if esep {
  2392. ee.WriteMapElemValue()
  2393. }
  2394. e.encode(v[v2[j].i])
  2395. }
  2396. } else {
  2397. for k2, v2 := range v {
  2398. if esep {
  2399. ee.WriteMapElemKey()
  2400. }
  2401. e.encode(k2)
  2402. if esep {
  2403. ee.WriteMapElemValue()
  2404. }
  2405. ee.EncodeUint(uint64(v2))
  2406. }
  2407. }
  2408. ee.WriteMapEnd()
  2409. }
  2410. func (e *Encoder) fastpathEncMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  2411. fastpathTV.EncMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), e)
  2412. }
  2413. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, e *Encoder) {
  2414. if v == nil {
  2415. e.e.EncodeNil()
  2416. return
  2417. }
  2418. ee, esep := e.e, e.hh.hasElemSeparators()
  2419. ee.WriteMapStart(len(v))
  2420. if e.h.Canonical {
  2421. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2422. e2 := NewEncoderBytes(&mksv, e.hh)
  2423. v2 := make([]bytesI, len(v))
  2424. var i, l uint
  2425. var vp *bytesI
  2426. for k2 := range v {
  2427. l = uint(len(mksv))
  2428. e2.MustEncode(k2)
  2429. vp = &v2[i]
  2430. vp.v = mksv[l:]
  2431. vp.i = k2
  2432. i++
  2433. }
  2434. sort.Sort(bytesISlice(v2))
  2435. for j := range v2 {
  2436. if esep {
  2437. ee.WriteMapElemKey()
  2438. }
  2439. e.asis(v2[j].v)
  2440. if esep {
  2441. ee.WriteMapElemValue()
  2442. }
  2443. e.encode(v[v2[j].i])
  2444. }
  2445. } else {
  2446. for k2, v2 := range v {
  2447. if esep {
  2448. ee.WriteMapElemKey()
  2449. }
  2450. e.encode(k2)
  2451. if esep {
  2452. ee.WriteMapElemValue()
  2453. }
  2454. ee.EncodeUint(uint64(v2))
  2455. }
  2456. }
  2457. ee.WriteMapEnd()
  2458. }
  2459. func (e *Encoder) fastpathEncMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  2460. fastpathTV.EncMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), e)
  2461. }
  2462. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, e *Encoder) {
  2463. if v == nil {
  2464. e.e.EncodeNil()
  2465. return
  2466. }
  2467. ee, esep := e.e, e.hh.hasElemSeparators()
  2468. ee.WriteMapStart(len(v))
  2469. if e.h.Canonical {
  2470. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2471. e2 := NewEncoderBytes(&mksv, e.hh)
  2472. v2 := make([]bytesI, len(v))
  2473. var i, l uint
  2474. var vp *bytesI
  2475. for k2 := range v {
  2476. l = uint(len(mksv))
  2477. e2.MustEncode(k2)
  2478. vp = &v2[i]
  2479. vp.v = mksv[l:]
  2480. vp.i = k2
  2481. i++
  2482. }
  2483. sort.Sort(bytesISlice(v2))
  2484. for j := range v2 {
  2485. if esep {
  2486. ee.WriteMapElemKey()
  2487. }
  2488. e.asis(v2[j].v)
  2489. if esep {
  2490. ee.WriteMapElemValue()
  2491. }
  2492. e.encode(v[v2[j].i])
  2493. }
  2494. } else {
  2495. for k2, v2 := range v {
  2496. if esep {
  2497. ee.WriteMapElemKey()
  2498. }
  2499. e.encode(k2)
  2500. if esep {
  2501. ee.WriteMapElemValue()
  2502. }
  2503. e.encode(v2)
  2504. }
  2505. }
  2506. ee.WriteMapEnd()
  2507. }
  2508. func (e *Encoder) fastpathEncMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  2509. fastpathTV.EncMapIntfIntV(rv2i(rv).(map[interface{}]int), e)
  2510. }
  2511. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, e *Encoder) {
  2512. if v == nil {
  2513. e.e.EncodeNil()
  2514. return
  2515. }
  2516. ee, esep := e.e, e.hh.hasElemSeparators()
  2517. ee.WriteMapStart(len(v))
  2518. if e.h.Canonical {
  2519. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2520. e2 := NewEncoderBytes(&mksv, e.hh)
  2521. v2 := make([]bytesI, len(v))
  2522. var i, l uint
  2523. var vp *bytesI
  2524. for k2 := range v {
  2525. l = uint(len(mksv))
  2526. e2.MustEncode(k2)
  2527. vp = &v2[i]
  2528. vp.v = mksv[l:]
  2529. vp.i = k2
  2530. i++
  2531. }
  2532. sort.Sort(bytesISlice(v2))
  2533. for j := range v2 {
  2534. if esep {
  2535. ee.WriteMapElemKey()
  2536. }
  2537. e.asis(v2[j].v)
  2538. if esep {
  2539. ee.WriteMapElemValue()
  2540. }
  2541. e.encode(v[v2[j].i])
  2542. }
  2543. } else {
  2544. for k2, v2 := range v {
  2545. if esep {
  2546. ee.WriteMapElemKey()
  2547. }
  2548. e.encode(k2)
  2549. if esep {
  2550. ee.WriteMapElemValue()
  2551. }
  2552. ee.EncodeInt(int64(v2))
  2553. }
  2554. }
  2555. ee.WriteMapEnd()
  2556. }
  2557. func (e *Encoder) fastpathEncMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  2558. fastpathTV.EncMapIntfInt8V(rv2i(rv).(map[interface{}]int8), e)
  2559. }
  2560. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, e *Encoder) {
  2561. if v == nil {
  2562. e.e.EncodeNil()
  2563. return
  2564. }
  2565. ee, esep := e.e, e.hh.hasElemSeparators()
  2566. ee.WriteMapStart(len(v))
  2567. if e.h.Canonical {
  2568. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2569. e2 := NewEncoderBytes(&mksv, e.hh)
  2570. v2 := make([]bytesI, len(v))
  2571. var i, l uint
  2572. var vp *bytesI
  2573. for k2 := range v {
  2574. l = uint(len(mksv))
  2575. e2.MustEncode(k2)
  2576. vp = &v2[i]
  2577. vp.v = mksv[l:]
  2578. vp.i = k2
  2579. i++
  2580. }
  2581. sort.Sort(bytesISlice(v2))
  2582. for j := range v2 {
  2583. if esep {
  2584. ee.WriteMapElemKey()
  2585. }
  2586. e.asis(v2[j].v)
  2587. if esep {
  2588. ee.WriteMapElemValue()
  2589. }
  2590. e.encode(v[v2[j].i])
  2591. }
  2592. } else {
  2593. for k2, v2 := range v {
  2594. if esep {
  2595. ee.WriteMapElemKey()
  2596. }
  2597. e.encode(k2)
  2598. if esep {
  2599. ee.WriteMapElemValue()
  2600. }
  2601. ee.EncodeInt(int64(v2))
  2602. }
  2603. }
  2604. ee.WriteMapEnd()
  2605. }
  2606. func (e *Encoder) fastpathEncMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  2607. fastpathTV.EncMapIntfInt16V(rv2i(rv).(map[interface{}]int16), e)
  2608. }
  2609. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, e *Encoder) {
  2610. if v == nil {
  2611. e.e.EncodeNil()
  2612. return
  2613. }
  2614. ee, esep := e.e, e.hh.hasElemSeparators()
  2615. ee.WriteMapStart(len(v))
  2616. if e.h.Canonical {
  2617. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2618. e2 := NewEncoderBytes(&mksv, e.hh)
  2619. v2 := make([]bytesI, len(v))
  2620. var i, l uint
  2621. var vp *bytesI
  2622. for k2 := range v {
  2623. l = uint(len(mksv))
  2624. e2.MustEncode(k2)
  2625. vp = &v2[i]
  2626. vp.v = mksv[l:]
  2627. vp.i = k2
  2628. i++
  2629. }
  2630. sort.Sort(bytesISlice(v2))
  2631. for j := range v2 {
  2632. if esep {
  2633. ee.WriteMapElemKey()
  2634. }
  2635. e.asis(v2[j].v)
  2636. if esep {
  2637. ee.WriteMapElemValue()
  2638. }
  2639. e.encode(v[v2[j].i])
  2640. }
  2641. } else {
  2642. for k2, v2 := range v {
  2643. if esep {
  2644. ee.WriteMapElemKey()
  2645. }
  2646. e.encode(k2)
  2647. if esep {
  2648. ee.WriteMapElemValue()
  2649. }
  2650. ee.EncodeInt(int64(v2))
  2651. }
  2652. }
  2653. ee.WriteMapEnd()
  2654. }
  2655. func (e *Encoder) fastpathEncMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  2656. fastpathTV.EncMapIntfInt32V(rv2i(rv).(map[interface{}]int32), e)
  2657. }
  2658. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, e *Encoder) {
  2659. if v == nil {
  2660. e.e.EncodeNil()
  2661. return
  2662. }
  2663. ee, esep := e.e, e.hh.hasElemSeparators()
  2664. ee.WriteMapStart(len(v))
  2665. if e.h.Canonical {
  2666. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2667. e2 := NewEncoderBytes(&mksv, e.hh)
  2668. v2 := make([]bytesI, len(v))
  2669. var i, l uint
  2670. var vp *bytesI
  2671. for k2 := range v {
  2672. l = uint(len(mksv))
  2673. e2.MustEncode(k2)
  2674. vp = &v2[i]
  2675. vp.v = mksv[l:]
  2676. vp.i = k2
  2677. i++
  2678. }
  2679. sort.Sort(bytesISlice(v2))
  2680. for j := range v2 {
  2681. if esep {
  2682. ee.WriteMapElemKey()
  2683. }
  2684. e.asis(v2[j].v)
  2685. if esep {
  2686. ee.WriteMapElemValue()
  2687. }
  2688. e.encode(v[v2[j].i])
  2689. }
  2690. } else {
  2691. for k2, v2 := range v {
  2692. if esep {
  2693. ee.WriteMapElemKey()
  2694. }
  2695. e.encode(k2)
  2696. if esep {
  2697. ee.WriteMapElemValue()
  2698. }
  2699. ee.EncodeInt(int64(v2))
  2700. }
  2701. }
  2702. ee.WriteMapEnd()
  2703. }
  2704. func (e *Encoder) fastpathEncMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  2705. fastpathTV.EncMapIntfInt64V(rv2i(rv).(map[interface{}]int64), e)
  2706. }
  2707. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, e *Encoder) {
  2708. if v == nil {
  2709. e.e.EncodeNil()
  2710. return
  2711. }
  2712. ee, esep := e.e, e.hh.hasElemSeparators()
  2713. ee.WriteMapStart(len(v))
  2714. if e.h.Canonical {
  2715. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2716. e2 := NewEncoderBytes(&mksv, e.hh)
  2717. v2 := make([]bytesI, len(v))
  2718. var i, l uint
  2719. var vp *bytesI
  2720. for k2 := range v {
  2721. l = uint(len(mksv))
  2722. e2.MustEncode(k2)
  2723. vp = &v2[i]
  2724. vp.v = mksv[l:]
  2725. vp.i = k2
  2726. i++
  2727. }
  2728. sort.Sort(bytesISlice(v2))
  2729. for j := range v2 {
  2730. if esep {
  2731. ee.WriteMapElemKey()
  2732. }
  2733. e.asis(v2[j].v)
  2734. if esep {
  2735. ee.WriteMapElemValue()
  2736. }
  2737. e.encode(v[v2[j].i])
  2738. }
  2739. } else {
  2740. for k2, v2 := range v {
  2741. if esep {
  2742. ee.WriteMapElemKey()
  2743. }
  2744. e.encode(k2)
  2745. if esep {
  2746. ee.WriteMapElemValue()
  2747. }
  2748. ee.EncodeInt(int64(v2))
  2749. }
  2750. }
  2751. ee.WriteMapEnd()
  2752. }
  2753. func (e *Encoder) fastpathEncMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  2754. fastpathTV.EncMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), e)
  2755. }
  2756. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, e *Encoder) {
  2757. if v == nil {
  2758. e.e.EncodeNil()
  2759. return
  2760. }
  2761. ee, esep := e.e, e.hh.hasElemSeparators()
  2762. ee.WriteMapStart(len(v))
  2763. if e.h.Canonical {
  2764. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2765. e2 := NewEncoderBytes(&mksv, e.hh)
  2766. v2 := make([]bytesI, len(v))
  2767. var i, l uint
  2768. var vp *bytesI
  2769. for k2 := range v {
  2770. l = uint(len(mksv))
  2771. e2.MustEncode(k2)
  2772. vp = &v2[i]
  2773. vp.v = mksv[l:]
  2774. vp.i = k2
  2775. i++
  2776. }
  2777. sort.Sort(bytesISlice(v2))
  2778. for j := range v2 {
  2779. if esep {
  2780. ee.WriteMapElemKey()
  2781. }
  2782. e.asis(v2[j].v)
  2783. if esep {
  2784. ee.WriteMapElemValue()
  2785. }
  2786. e.encode(v[v2[j].i])
  2787. }
  2788. } else {
  2789. for k2, v2 := range v {
  2790. if esep {
  2791. ee.WriteMapElemKey()
  2792. }
  2793. e.encode(k2)
  2794. if esep {
  2795. ee.WriteMapElemValue()
  2796. }
  2797. ee.EncodeFloat32(v2)
  2798. }
  2799. }
  2800. ee.WriteMapEnd()
  2801. }
  2802. func (e *Encoder) fastpathEncMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  2803. fastpathTV.EncMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), e)
  2804. }
  2805. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, e *Encoder) {
  2806. if v == nil {
  2807. e.e.EncodeNil()
  2808. return
  2809. }
  2810. ee, esep := e.e, e.hh.hasElemSeparators()
  2811. ee.WriteMapStart(len(v))
  2812. if e.h.Canonical {
  2813. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2814. e2 := NewEncoderBytes(&mksv, e.hh)
  2815. v2 := make([]bytesI, len(v))
  2816. var i, l uint
  2817. var vp *bytesI
  2818. for k2 := range v {
  2819. l = uint(len(mksv))
  2820. e2.MustEncode(k2)
  2821. vp = &v2[i]
  2822. vp.v = mksv[l:]
  2823. vp.i = k2
  2824. i++
  2825. }
  2826. sort.Sort(bytesISlice(v2))
  2827. for j := range v2 {
  2828. if esep {
  2829. ee.WriteMapElemKey()
  2830. }
  2831. e.asis(v2[j].v)
  2832. if esep {
  2833. ee.WriteMapElemValue()
  2834. }
  2835. e.encode(v[v2[j].i])
  2836. }
  2837. } else {
  2838. for k2, v2 := range v {
  2839. if esep {
  2840. ee.WriteMapElemKey()
  2841. }
  2842. e.encode(k2)
  2843. if esep {
  2844. ee.WriteMapElemValue()
  2845. }
  2846. ee.EncodeFloat64(v2)
  2847. }
  2848. }
  2849. ee.WriteMapEnd()
  2850. }
  2851. func (e *Encoder) fastpathEncMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  2852. fastpathTV.EncMapIntfBoolV(rv2i(rv).(map[interface{}]bool), e)
  2853. }
  2854. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, e *Encoder) {
  2855. if v == nil {
  2856. e.e.EncodeNil()
  2857. return
  2858. }
  2859. ee, esep := e.e, e.hh.hasElemSeparators()
  2860. ee.WriteMapStart(len(v))
  2861. if e.h.Canonical {
  2862. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2863. e2 := NewEncoderBytes(&mksv, e.hh)
  2864. v2 := make([]bytesI, len(v))
  2865. var i, l uint
  2866. var vp *bytesI
  2867. for k2 := range v {
  2868. l = uint(len(mksv))
  2869. e2.MustEncode(k2)
  2870. vp = &v2[i]
  2871. vp.v = mksv[l:]
  2872. vp.i = k2
  2873. i++
  2874. }
  2875. sort.Sort(bytesISlice(v2))
  2876. for j := range v2 {
  2877. if esep {
  2878. ee.WriteMapElemKey()
  2879. }
  2880. e.asis(v2[j].v)
  2881. if esep {
  2882. ee.WriteMapElemValue()
  2883. }
  2884. e.encode(v[v2[j].i])
  2885. }
  2886. } else {
  2887. for k2, v2 := range v {
  2888. if esep {
  2889. ee.WriteMapElemKey()
  2890. }
  2891. e.encode(k2)
  2892. if esep {
  2893. ee.WriteMapElemValue()
  2894. }
  2895. ee.EncodeBool(v2)
  2896. }
  2897. }
  2898. ee.WriteMapEnd()
  2899. }
  2900. func (e *Encoder) fastpathEncMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  2901. fastpathTV.EncMapStringIntfV(rv2i(rv).(map[string]interface{}), e)
  2902. }
  2903. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, e *Encoder) {
  2904. if v == nil {
  2905. e.e.EncodeNil()
  2906. return
  2907. }
  2908. ee, esep := e.e, e.hh.hasElemSeparators()
  2909. ee.WriteMapStart(len(v))
  2910. if e.h.Canonical {
  2911. v2 := make([]string, len(v))
  2912. var i uint
  2913. for k := range v {
  2914. v2[i] = string(k)
  2915. i++
  2916. }
  2917. sort.Sort(stringSlice(v2))
  2918. for _, k2 := range v2 {
  2919. if esep {
  2920. ee.WriteMapElemKey()
  2921. }
  2922. if e.h.StringToRaw {
  2923. ee.EncodeStringBytesRaw(bytesView(k2))
  2924. } else {
  2925. ee.EncodeStringEnc(cUTF8, k2)
  2926. }
  2927. if esep {
  2928. ee.WriteMapElemValue()
  2929. }
  2930. e.encode(v[string(k2)])
  2931. }
  2932. } else {
  2933. for k2, v2 := range v {
  2934. if esep {
  2935. ee.WriteMapElemKey()
  2936. }
  2937. if e.h.StringToRaw {
  2938. ee.EncodeStringBytesRaw(bytesView(k2))
  2939. } else {
  2940. ee.EncodeStringEnc(cUTF8, k2)
  2941. }
  2942. if esep {
  2943. ee.WriteMapElemValue()
  2944. }
  2945. e.encode(v2)
  2946. }
  2947. }
  2948. ee.WriteMapEnd()
  2949. }
  2950. func (e *Encoder) fastpathEncMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  2951. fastpathTV.EncMapStringStringV(rv2i(rv).(map[string]string), e)
  2952. }
  2953. func (_ fastpathT) EncMapStringStringV(v map[string]string, e *Encoder) {
  2954. if v == nil {
  2955. e.e.EncodeNil()
  2956. return
  2957. }
  2958. ee, esep := e.e, e.hh.hasElemSeparators()
  2959. ee.WriteMapStart(len(v))
  2960. if e.h.Canonical {
  2961. v2 := make([]string, len(v))
  2962. var i uint
  2963. for k := range v {
  2964. v2[i] = string(k)
  2965. i++
  2966. }
  2967. sort.Sort(stringSlice(v2))
  2968. for _, k2 := range v2 {
  2969. if esep {
  2970. ee.WriteMapElemKey()
  2971. }
  2972. if e.h.StringToRaw {
  2973. ee.EncodeStringBytesRaw(bytesView(k2))
  2974. } else {
  2975. ee.EncodeStringEnc(cUTF8, k2)
  2976. }
  2977. if esep {
  2978. ee.WriteMapElemValue()
  2979. }
  2980. if e.h.StringToRaw {
  2981. ee.EncodeStringBytesRaw(bytesView(v[string(k2)]))
  2982. } else {
  2983. ee.EncodeStringEnc(cUTF8, v[string(k2)])
  2984. }
  2985. }
  2986. } else {
  2987. for k2, v2 := range v {
  2988. if esep {
  2989. ee.WriteMapElemKey()
  2990. }
  2991. if e.h.StringToRaw {
  2992. ee.EncodeStringBytesRaw(bytesView(k2))
  2993. } else {
  2994. ee.EncodeStringEnc(cUTF8, k2)
  2995. }
  2996. if esep {
  2997. ee.WriteMapElemValue()
  2998. }
  2999. if e.h.StringToRaw {
  3000. ee.EncodeStringBytesRaw(bytesView(v2))
  3001. } else {
  3002. ee.EncodeStringEnc(cUTF8, v2)
  3003. }
  3004. }
  3005. }
  3006. ee.WriteMapEnd()
  3007. }
  3008. func (e *Encoder) fastpathEncMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  3009. fastpathTV.EncMapStringUintV(rv2i(rv).(map[string]uint), e)
  3010. }
  3011. func (_ fastpathT) EncMapStringUintV(v map[string]uint, e *Encoder) {
  3012. if v == nil {
  3013. e.e.EncodeNil()
  3014. return
  3015. }
  3016. ee, esep := e.e, e.hh.hasElemSeparators()
  3017. ee.WriteMapStart(len(v))
  3018. if e.h.Canonical {
  3019. v2 := make([]string, len(v))
  3020. var i uint
  3021. for k := range v {
  3022. v2[i] = string(k)
  3023. i++
  3024. }
  3025. sort.Sort(stringSlice(v2))
  3026. for _, k2 := range v2 {
  3027. if esep {
  3028. ee.WriteMapElemKey()
  3029. }
  3030. if e.h.StringToRaw {
  3031. ee.EncodeStringBytesRaw(bytesView(k2))
  3032. } else {
  3033. ee.EncodeStringEnc(cUTF8, k2)
  3034. }
  3035. if esep {
  3036. ee.WriteMapElemValue()
  3037. }
  3038. ee.EncodeUint(uint64(v[string(k2)]))
  3039. }
  3040. } else {
  3041. for k2, v2 := range v {
  3042. if esep {
  3043. ee.WriteMapElemKey()
  3044. }
  3045. if e.h.StringToRaw {
  3046. ee.EncodeStringBytesRaw(bytesView(k2))
  3047. } else {
  3048. ee.EncodeStringEnc(cUTF8, k2)
  3049. }
  3050. if esep {
  3051. ee.WriteMapElemValue()
  3052. }
  3053. ee.EncodeUint(uint64(v2))
  3054. }
  3055. }
  3056. ee.WriteMapEnd()
  3057. }
  3058. func (e *Encoder) fastpathEncMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  3059. fastpathTV.EncMapStringUint8V(rv2i(rv).(map[string]uint8), e)
  3060. }
  3061. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, e *Encoder) {
  3062. if v == nil {
  3063. e.e.EncodeNil()
  3064. return
  3065. }
  3066. ee, esep := e.e, e.hh.hasElemSeparators()
  3067. ee.WriteMapStart(len(v))
  3068. if e.h.Canonical {
  3069. v2 := make([]string, len(v))
  3070. var i uint
  3071. for k := range v {
  3072. v2[i] = string(k)
  3073. i++
  3074. }
  3075. sort.Sort(stringSlice(v2))
  3076. for _, k2 := range v2 {
  3077. if esep {
  3078. ee.WriteMapElemKey()
  3079. }
  3080. if e.h.StringToRaw {
  3081. ee.EncodeStringBytesRaw(bytesView(k2))
  3082. } else {
  3083. ee.EncodeStringEnc(cUTF8, k2)
  3084. }
  3085. if esep {
  3086. ee.WriteMapElemValue()
  3087. }
  3088. ee.EncodeUint(uint64(v[string(k2)]))
  3089. }
  3090. } else {
  3091. for k2, v2 := range v {
  3092. if esep {
  3093. ee.WriteMapElemKey()
  3094. }
  3095. if e.h.StringToRaw {
  3096. ee.EncodeStringBytesRaw(bytesView(k2))
  3097. } else {
  3098. ee.EncodeStringEnc(cUTF8, k2)
  3099. }
  3100. if esep {
  3101. ee.WriteMapElemValue()
  3102. }
  3103. ee.EncodeUint(uint64(v2))
  3104. }
  3105. }
  3106. ee.WriteMapEnd()
  3107. }
  3108. func (e *Encoder) fastpathEncMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  3109. fastpathTV.EncMapStringUint16V(rv2i(rv).(map[string]uint16), e)
  3110. }
  3111. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, e *Encoder) {
  3112. if v == nil {
  3113. e.e.EncodeNil()
  3114. return
  3115. }
  3116. ee, esep := e.e, e.hh.hasElemSeparators()
  3117. ee.WriteMapStart(len(v))
  3118. if e.h.Canonical {
  3119. v2 := make([]string, len(v))
  3120. var i uint
  3121. for k := range v {
  3122. v2[i] = string(k)
  3123. i++
  3124. }
  3125. sort.Sort(stringSlice(v2))
  3126. for _, k2 := range v2 {
  3127. if esep {
  3128. ee.WriteMapElemKey()
  3129. }
  3130. if e.h.StringToRaw {
  3131. ee.EncodeStringBytesRaw(bytesView(k2))
  3132. } else {
  3133. ee.EncodeStringEnc(cUTF8, k2)
  3134. }
  3135. if esep {
  3136. ee.WriteMapElemValue()
  3137. }
  3138. ee.EncodeUint(uint64(v[string(k2)]))
  3139. }
  3140. } else {
  3141. for k2, v2 := range v {
  3142. if esep {
  3143. ee.WriteMapElemKey()
  3144. }
  3145. if e.h.StringToRaw {
  3146. ee.EncodeStringBytesRaw(bytesView(k2))
  3147. } else {
  3148. ee.EncodeStringEnc(cUTF8, k2)
  3149. }
  3150. if esep {
  3151. ee.WriteMapElemValue()
  3152. }
  3153. ee.EncodeUint(uint64(v2))
  3154. }
  3155. }
  3156. ee.WriteMapEnd()
  3157. }
  3158. func (e *Encoder) fastpathEncMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  3159. fastpathTV.EncMapStringUint32V(rv2i(rv).(map[string]uint32), e)
  3160. }
  3161. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, e *Encoder) {
  3162. if v == nil {
  3163. e.e.EncodeNil()
  3164. return
  3165. }
  3166. ee, esep := e.e, e.hh.hasElemSeparators()
  3167. ee.WriteMapStart(len(v))
  3168. if e.h.Canonical {
  3169. v2 := make([]string, len(v))
  3170. var i uint
  3171. for k := range v {
  3172. v2[i] = string(k)
  3173. i++
  3174. }
  3175. sort.Sort(stringSlice(v2))
  3176. for _, k2 := range v2 {
  3177. if esep {
  3178. ee.WriteMapElemKey()
  3179. }
  3180. if e.h.StringToRaw {
  3181. ee.EncodeStringBytesRaw(bytesView(k2))
  3182. } else {
  3183. ee.EncodeStringEnc(cUTF8, k2)
  3184. }
  3185. if esep {
  3186. ee.WriteMapElemValue()
  3187. }
  3188. ee.EncodeUint(uint64(v[string(k2)]))
  3189. }
  3190. } else {
  3191. for k2, v2 := range v {
  3192. if esep {
  3193. ee.WriteMapElemKey()
  3194. }
  3195. if e.h.StringToRaw {
  3196. ee.EncodeStringBytesRaw(bytesView(k2))
  3197. } else {
  3198. ee.EncodeStringEnc(cUTF8, k2)
  3199. }
  3200. if esep {
  3201. ee.WriteMapElemValue()
  3202. }
  3203. ee.EncodeUint(uint64(v2))
  3204. }
  3205. }
  3206. ee.WriteMapEnd()
  3207. }
  3208. func (e *Encoder) fastpathEncMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  3209. fastpathTV.EncMapStringUint64V(rv2i(rv).(map[string]uint64), e)
  3210. }
  3211. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, 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. for _, k2 := range v2 {
  3227. if esep {
  3228. ee.WriteMapElemKey()
  3229. }
  3230. if e.h.StringToRaw {
  3231. ee.EncodeStringBytesRaw(bytesView(k2))
  3232. } else {
  3233. ee.EncodeStringEnc(cUTF8, k2)
  3234. }
  3235. if esep {
  3236. ee.WriteMapElemValue()
  3237. }
  3238. ee.EncodeUint(uint64(v[string(k2)]))
  3239. }
  3240. } else {
  3241. for k2, v2 := range v {
  3242. if esep {
  3243. ee.WriteMapElemKey()
  3244. }
  3245. if e.h.StringToRaw {
  3246. ee.EncodeStringBytesRaw(bytesView(k2))
  3247. } else {
  3248. ee.EncodeStringEnc(cUTF8, k2)
  3249. }
  3250. if esep {
  3251. ee.WriteMapElemValue()
  3252. }
  3253. ee.EncodeUint(uint64(v2))
  3254. }
  3255. }
  3256. ee.WriteMapEnd()
  3257. }
  3258. func (e *Encoder) fastpathEncMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  3259. fastpathTV.EncMapStringUintptrV(rv2i(rv).(map[string]uintptr), e)
  3260. }
  3261. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, e *Encoder) {
  3262. if v == nil {
  3263. e.e.EncodeNil()
  3264. return
  3265. }
  3266. ee, esep := e.e, e.hh.hasElemSeparators()
  3267. ee.WriteMapStart(len(v))
  3268. if e.h.Canonical {
  3269. v2 := make([]string, len(v))
  3270. var i uint
  3271. for k := range v {
  3272. v2[i] = string(k)
  3273. i++
  3274. }
  3275. sort.Sort(stringSlice(v2))
  3276. for _, k2 := range v2 {
  3277. if esep {
  3278. ee.WriteMapElemKey()
  3279. }
  3280. if e.h.StringToRaw {
  3281. ee.EncodeStringBytesRaw(bytesView(k2))
  3282. } else {
  3283. ee.EncodeStringEnc(cUTF8, k2)
  3284. }
  3285. if esep {
  3286. ee.WriteMapElemValue()
  3287. }
  3288. e.encode(v[string(k2)])
  3289. }
  3290. } else {
  3291. for k2, v2 := range v {
  3292. if esep {
  3293. ee.WriteMapElemKey()
  3294. }
  3295. if e.h.StringToRaw {
  3296. ee.EncodeStringBytesRaw(bytesView(k2))
  3297. } else {
  3298. ee.EncodeStringEnc(cUTF8, k2)
  3299. }
  3300. if esep {
  3301. ee.WriteMapElemValue()
  3302. }
  3303. e.encode(v2)
  3304. }
  3305. }
  3306. ee.WriteMapEnd()
  3307. }
  3308. func (e *Encoder) fastpathEncMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  3309. fastpathTV.EncMapStringIntV(rv2i(rv).(map[string]int), e)
  3310. }
  3311. func (_ fastpathT) EncMapStringIntV(v map[string]int, e *Encoder) {
  3312. if v == nil {
  3313. e.e.EncodeNil()
  3314. return
  3315. }
  3316. ee, esep := e.e, e.hh.hasElemSeparators()
  3317. ee.WriteMapStart(len(v))
  3318. if e.h.Canonical {
  3319. v2 := make([]string, len(v))
  3320. var i uint
  3321. for k := range v {
  3322. v2[i] = string(k)
  3323. i++
  3324. }
  3325. sort.Sort(stringSlice(v2))
  3326. for _, k2 := range v2 {
  3327. if esep {
  3328. ee.WriteMapElemKey()
  3329. }
  3330. if e.h.StringToRaw {
  3331. ee.EncodeStringBytesRaw(bytesView(k2))
  3332. } else {
  3333. ee.EncodeStringEnc(cUTF8, k2)
  3334. }
  3335. if esep {
  3336. ee.WriteMapElemValue()
  3337. }
  3338. ee.EncodeInt(int64(v[string(k2)]))
  3339. }
  3340. } else {
  3341. for k2, v2 := range v {
  3342. if esep {
  3343. ee.WriteMapElemKey()
  3344. }
  3345. if e.h.StringToRaw {
  3346. ee.EncodeStringBytesRaw(bytesView(k2))
  3347. } else {
  3348. ee.EncodeStringEnc(cUTF8, k2)
  3349. }
  3350. if esep {
  3351. ee.WriteMapElemValue()
  3352. }
  3353. ee.EncodeInt(int64(v2))
  3354. }
  3355. }
  3356. ee.WriteMapEnd()
  3357. }
  3358. func (e *Encoder) fastpathEncMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  3359. fastpathTV.EncMapStringInt8V(rv2i(rv).(map[string]int8), e)
  3360. }
  3361. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, e *Encoder) {
  3362. if v == nil {
  3363. e.e.EncodeNil()
  3364. return
  3365. }
  3366. ee, esep := e.e, e.hh.hasElemSeparators()
  3367. ee.WriteMapStart(len(v))
  3368. if e.h.Canonical {
  3369. v2 := make([]string, len(v))
  3370. var i uint
  3371. for k := range v {
  3372. v2[i] = string(k)
  3373. i++
  3374. }
  3375. sort.Sort(stringSlice(v2))
  3376. for _, k2 := range v2 {
  3377. if esep {
  3378. ee.WriteMapElemKey()
  3379. }
  3380. if e.h.StringToRaw {
  3381. ee.EncodeStringBytesRaw(bytesView(k2))
  3382. } else {
  3383. ee.EncodeStringEnc(cUTF8, k2)
  3384. }
  3385. if esep {
  3386. ee.WriteMapElemValue()
  3387. }
  3388. ee.EncodeInt(int64(v[string(k2)]))
  3389. }
  3390. } else {
  3391. for k2, v2 := range v {
  3392. if esep {
  3393. ee.WriteMapElemKey()
  3394. }
  3395. if e.h.StringToRaw {
  3396. ee.EncodeStringBytesRaw(bytesView(k2))
  3397. } else {
  3398. ee.EncodeStringEnc(cUTF8, k2)
  3399. }
  3400. if esep {
  3401. ee.WriteMapElemValue()
  3402. }
  3403. ee.EncodeInt(int64(v2))
  3404. }
  3405. }
  3406. ee.WriteMapEnd()
  3407. }
  3408. func (e *Encoder) fastpathEncMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  3409. fastpathTV.EncMapStringInt16V(rv2i(rv).(map[string]int16), e)
  3410. }
  3411. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, e *Encoder) {
  3412. if v == nil {
  3413. e.e.EncodeNil()
  3414. return
  3415. }
  3416. ee, esep := e.e, e.hh.hasElemSeparators()
  3417. ee.WriteMapStart(len(v))
  3418. if e.h.Canonical {
  3419. v2 := make([]string, len(v))
  3420. var i uint
  3421. for k := range v {
  3422. v2[i] = string(k)
  3423. i++
  3424. }
  3425. sort.Sort(stringSlice(v2))
  3426. for _, k2 := range v2 {
  3427. if esep {
  3428. ee.WriteMapElemKey()
  3429. }
  3430. if e.h.StringToRaw {
  3431. ee.EncodeStringBytesRaw(bytesView(k2))
  3432. } else {
  3433. ee.EncodeStringEnc(cUTF8, k2)
  3434. }
  3435. if esep {
  3436. ee.WriteMapElemValue()
  3437. }
  3438. ee.EncodeInt(int64(v[string(k2)]))
  3439. }
  3440. } else {
  3441. for k2, v2 := range v {
  3442. if esep {
  3443. ee.WriteMapElemKey()
  3444. }
  3445. if e.h.StringToRaw {
  3446. ee.EncodeStringBytesRaw(bytesView(k2))
  3447. } else {
  3448. ee.EncodeStringEnc(cUTF8, k2)
  3449. }
  3450. if esep {
  3451. ee.WriteMapElemValue()
  3452. }
  3453. ee.EncodeInt(int64(v2))
  3454. }
  3455. }
  3456. ee.WriteMapEnd()
  3457. }
  3458. func (e *Encoder) fastpathEncMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  3459. fastpathTV.EncMapStringInt32V(rv2i(rv).(map[string]int32), e)
  3460. }
  3461. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, e *Encoder) {
  3462. if v == nil {
  3463. e.e.EncodeNil()
  3464. return
  3465. }
  3466. ee, esep := e.e, e.hh.hasElemSeparators()
  3467. ee.WriteMapStart(len(v))
  3468. if e.h.Canonical {
  3469. v2 := make([]string, len(v))
  3470. var i uint
  3471. for k := range v {
  3472. v2[i] = string(k)
  3473. i++
  3474. }
  3475. sort.Sort(stringSlice(v2))
  3476. for _, k2 := range v2 {
  3477. if esep {
  3478. ee.WriteMapElemKey()
  3479. }
  3480. if e.h.StringToRaw {
  3481. ee.EncodeStringBytesRaw(bytesView(k2))
  3482. } else {
  3483. ee.EncodeStringEnc(cUTF8, k2)
  3484. }
  3485. if esep {
  3486. ee.WriteMapElemValue()
  3487. }
  3488. ee.EncodeInt(int64(v[string(k2)]))
  3489. }
  3490. } else {
  3491. for k2, v2 := range v {
  3492. if esep {
  3493. ee.WriteMapElemKey()
  3494. }
  3495. if e.h.StringToRaw {
  3496. ee.EncodeStringBytesRaw(bytesView(k2))
  3497. } else {
  3498. ee.EncodeStringEnc(cUTF8, k2)
  3499. }
  3500. if esep {
  3501. ee.WriteMapElemValue()
  3502. }
  3503. ee.EncodeInt(int64(v2))
  3504. }
  3505. }
  3506. ee.WriteMapEnd()
  3507. }
  3508. func (e *Encoder) fastpathEncMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  3509. fastpathTV.EncMapStringInt64V(rv2i(rv).(map[string]int64), e)
  3510. }
  3511. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, e *Encoder) {
  3512. if v == nil {
  3513. e.e.EncodeNil()
  3514. return
  3515. }
  3516. ee, esep := e.e, e.hh.hasElemSeparators()
  3517. ee.WriteMapStart(len(v))
  3518. if e.h.Canonical {
  3519. v2 := make([]string, len(v))
  3520. var i uint
  3521. for k := range v {
  3522. v2[i] = string(k)
  3523. i++
  3524. }
  3525. sort.Sort(stringSlice(v2))
  3526. for _, k2 := range v2 {
  3527. if esep {
  3528. ee.WriteMapElemKey()
  3529. }
  3530. if e.h.StringToRaw {
  3531. ee.EncodeStringBytesRaw(bytesView(k2))
  3532. } else {
  3533. ee.EncodeStringEnc(cUTF8, k2)
  3534. }
  3535. if esep {
  3536. ee.WriteMapElemValue()
  3537. }
  3538. ee.EncodeInt(int64(v[string(k2)]))
  3539. }
  3540. } else {
  3541. for k2, v2 := range v {
  3542. if esep {
  3543. ee.WriteMapElemKey()
  3544. }
  3545. if e.h.StringToRaw {
  3546. ee.EncodeStringBytesRaw(bytesView(k2))
  3547. } else {
  3548. ee.EncodeStringEnc(cUTF8, k2)
  3549. }
  3550. if esep {
  3551. ee.WriteMapElemValue()
  3552. }
  3553. ee.EncodeInt(int64(v2))
  3554. }
  3555. }
  3556. ee.WriteMapEnd()
  3557. }
  3558. func (e *Encoder) fastpathEncMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  3559. fastpathTV.EncMapStringFloat32V(rv2i(rv).(map[string]float32), e)
  3560. }
  3561. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, e *Encoder) {
  3562. if v == nil {
  3563. e.e.EncodeNil()
  3564. return
  3565. }
  3566. ee, esep := e.e, e.hh.hasElemSeparators()
  3567. ee.WriteMapStart(len(v))
  3568. if e.h.Canonical {
  3569. v2 := make([]string, len(v))
  3570. var i uint
  3571. for k := range v {
  3572. v2[i] = string(k)
  3573. i++
  3574. }
  3575. sort.Sort(stringSlice(v2))
  3576. for _, k2 := range v2 {
  3577. if esep {
  3578. ee.WriteMapElemKey()
  3579. }
  3580. if e.h.StringToRaw {
  3581. ee.EncodeStringBytesRaw(bytesView(k2))
  3582. } else {
  3583. ee.EncodeStringEnc(cUTF8, k2)
  3584. }
  3585. if esep {
  3586. ee.WriteMapElemValue()
  3587. }
  3588. ee.EncodeFloat32(v[string(k2)])
  3589. }
  3590. } else {
  3591. for k2, v2 := range v {
  3592. if esep {
  3593. ee.WriteMapElemKey()
  3594. }
  3595. if e.h.StringToRaw {
  3596. ee.EncodeStringBytesRaw(bytesView(k2))
  3597. } else {
  3598. ee.EncodeStringEnc(cUTF8, k2)
  3599. }
  3600. if esep {
  3601. ee.WriteMapElemValue()
  3602. }
  3603. ee.EncodeFloat32(v2)
  3604. }
  3605. }
  3606. ee.WriteMapEnd()
  3607. }
  3608. func (e *Encoder) fastpathEncMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  3609. fastpathTV.EncMapStringFloat64V(rv2i(rv).(map[string]float64), e)
  3610. }
  3611. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, e *Encoder) {
  3612. if v == nil {
  3613. e.e.EncodeNil()
  3614. return
  3615. }
  3616. ee, esep := e.e, e.hh.hasElemSeparators()
  3617. ee.WriteMapStart(len(v))
  3618. if e.h.Canonical {
  3619. v2 := make([]string, len(v))
  3620. var i uint
  3621. for k := range v {
  3622. v2[i] = string(k)
  3623. i++
  3624. }
  3625. sort.Sort(stringSlice(v2))
  3626. for _, k2 := range v2 {
  3627. if esep {
  3628. ee.WriteMapElemKey()
  3629. }
  3630. if e.h.StringToRaw {
  3631. ee.EncodeStringBytesRaw(bytesView(k2))
  3632. } else {
  3633. ee.EncodeStringEnc(cUTF8, k2)
  3634. }
  3635. if esep {
  3636. ee.WriteMapElemValue()
  3637. }
  3638. ee.EncodeFloat64(v[string(k2)])
  3639. }
  3640. } else {
  3641. for k2, v2 := range v {
  3642. if esep {
  3643. ee.WriteMapElemKey()
  3644. }
  3645. if e.h.StringToRaw {
  3646. ee.EncodeStringBytesRaw(bytesView(k2))
  3647. } else {
  3648. ee.EncodeStringEnc(cUTF8, k2)
  3649. }
  3650. if esep {
  3651. ee.WriteMapElemValue()
  3652. }
  3653. ee.EncodeFloat64(v2)
  3654. }
  3655. }
  3656. ee.WriteMapEnd()
  3657. }
  3658. func (e *Encoder) fastpathEncMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  3659. fastpathTV.EncMapStringBoolV(rv2i(rv).(map[string]bool), e)
  3660. }
  3661. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, e *Encoder) {
  3662. if v == nil {
  3663. e.e.EncodeNil()
  3664. return
  3665. }
  3666. ee, esep := e.e, e.hh.hasElemSeparators()
  3667. ee.WriteMapStart(len(v))
  3668. if e.h.Canonical {
  3669. v2 := make([]string, len(v))
  3670. var i uint
  3671. for k := range v {
  3672. v2[i] = string(k)
  3673. i++
  3674. }
  3675. sort.Sort(stringSlice(v2))
  3676. for _, k2 := range v2 {
  3677. if esep {
  3678. ee.WriteMapElemKey()
  3679. }
  3680. if e.h.StringToRaw {
  3681. ee.EncodeStringBytesRaw(bytesView(k2))
  3682. } else {
  3683. ee.EncodeStringEnc(cUTF8, k2)
  3684. }
  3685. if esep {
  3686. ee.WriteMapElemValue()
  3687. }
  3688. ee.EncodeBool(v[string(k2)])
  3689. }
  3690. } else {
  3691. for k2, v2 := range v {
  3692. if esep {
  3693. ee.WriteMapElemKey()
  3694. }
  3695. if e.h.StringToRaw {
  3696. ee.EncodeStringBytesRaw(bytesView(k2))
  3697. } else {
  3698. ee.EncodeStringEnc(cUTF8, k2)
  3699. }
  3700. if esep {
  3701. ee.WriteMapElemValue()
  3702. }
  3703. ee.EncodeBool(v2)
  3704. }
  3705. }
  3706. ee.WriteMapEnd()
  3707. }
  3708. func (e *Encoder) fastpathEncMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  3709. fastpathTV.EncMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), e)
  3710. }
  3711. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, e *Encoder) {
  3712. if v == nil {
  3713. e.e.EncodeNil()
  3714. return
  3715. }
  3716. ee, esep := e.e, e.hh.hasElemSeparators()
  3717. ee.WriteMapStart(len(v))
  3718. if e.h.Canonical {
  3719. v2 := make([]float64, len(v))
  3720. var i uint
  3721. for k := range v {
  3722. v2[i] = float64(k)
  3723. i++
  3724. }
  3725. sort.Sort(floatSlice(v2))
  3726. for _, k2 := range v2 {
  3727. if esep {
  3728. ee.WriteMapElemKey()
  3729. }
  3730. ee.EncodeFloat32(float32(k2))
  3731. if esep {
  3732. ee.WriteMapElemValue()
  3733. }
  3734. e.encode(v[float32(k2)])
  3735. }
  3736. } else {
  3737. for k2, v2 := range v {
  3738. if esep {
  3739. ee.WriteMapElemKey()
  3740. }
  3741. ee.EncodeFloat32(k2)
  3742. if esep {
  3743. ee.WriteMapElemValue()
  3744. }
  3745. e.encode(v2)
  3746. }
  3747. }
  3748. ee.WriteMapEnd()
  3749. }
  3750. func (e *Encoder) fastpathEncMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  3751. fastpathTV.EncMapFloat32StringV(rv2i(rv).(map[float32]string), e)
  3752. }
  3753. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, e *Encoder) {
  3754. if v == nil {
  3755. e.e.EncodeNil()
  3756. return
  3757. }
  3758. ee, esep := e.e, e.hh.hasElemSeparators()
  3759. ee.WriteMapStart(len(v))
  3760. if e.h.Canonical {
  3761. v2 := make([]float64, len(v))
  3762. var i uint
  3763. for k := range v {
  3764. v2[i] = float64(k)
  3765. i++
  3766. }
  3767. sort.Sort(floatSlice(v2))
  3768. for _, k2 := range v2 {
  3769. if esep {
  3770. ee.WriteMapElemKey()
  3771. }
  3772. ee.EncodeFloat32(float32(k2))
  3773. if esep {
  3774. ee.WriteMapElemValue()
  3775. }
  3776. if e.h.StringToRaw {
  3777. ee.EncodeStringBytesRaw(bytesView(v[float32(k2)]))
  3778. } else {
  3779. ee.EncodeStringEnc(cUTF8, v[float32(k2)])
  3780. }
  3781. }
  3782. } else {
  3783. for k2, v2 := range v {
  3784. if esep {
  3785. ee.WriteMapElemKey()
  3786. }
  3787. ee.EncodeFloat32(k2)
  3788. if esep {
  3789. ee.WriteMapElemValue()
  3790. }
  3791. if e.h.StringToRaw {
  3792. ee.EncodeStringBytesRaw(bytesView(v2))
  3793. } else {
  3794. ee.EncodeStringEnc(cUTF8, v2)
  3795. }
  3796. }
  3797. }
  3798. ee.WriteMapEnd()
  3799. }
  3800. func (e *Encoder) fastpathEncMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  3801. fastpathTV.EncMapFloat32UintV(rv2i(rv).(map[float32]uint), e)
  3802. }
  3803. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, e *Encoder) {
  3804. if v == nil {
  3805. e.e.EncodeNil()
  3806. return
  3807. }
  3808. ee, esep := e.e, e.hh.hasElemSeparators()
  3809. ee.WriteMapStart(len(v))
  3810. if e.h.Canonical {
  3811. v2 := make([]float64, len(v))
  3812. var i uint
  3813. for k := range v {
  3814. v2[i] = float64(k)
  3815. i++
  3816. }
  3817. sort.Sort(floatSlice(v2))
  3818. for _, k2 := range v2 {
  3819. if esep {
  3820. ee.WriteMapElemKey()
  3821. }
  3822. ee.EncodeFloat32(float32(k2))
  3823. if esep {
  3824. ee.WriteMapElemValue()
  3825. }
  3826. ee.EncodeUint(uint64(v[float32(k2)]))
  3827. }
  3828. } else {
  3829. for k2, v2 := range v {
  3830. if esep {
  3831. ee.WriteMapElemKey()
  3832. }
  3833. ee.EncodeFloat32(k2)
  3834. if esep {
  3835. ee.WriteMapElemValue()
  3836. }
  3837. ee.EncodeUint(uint64(v2))
  3838. }
  3839. }
  3840. ee.WriteMapEnd()
  3841. }
  3842. func (e *Encoder) fastpathEncMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  3843. fastpathTV.EncMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), e)
  3844. }
  3845. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, e *Encoder) {
  3846. if v == nil {
  3847. e.e.EncodeNil()
  3848. return
  3849. }
  3850. ee, esep := e.e, e.hh.hasElemSeparators()
  3851. ee.WriteMapStart(len(v))
  3852. if e.h.Canonical {
  3853. v2 := make([]float64, len(v))
  3854. var i uint
  3855. for k := range v {
  3856. v2[i] = float64(k)
  3857. i++
  3858. }
  3859. sort.Sort(floatSlice(v2))
  3860. for _, k2 := range v2 {
  3861. if esep {
  3862. ee.WriteMapElemKey()
  3863. }
  3864. ee.EncodeFloat32(float32(k2))
  3865. if esep {
  3866. ee.WriteMapElemValue()
  3867. }
  3868. ee.EncodeUint(uint64(v[float32(k2)]))
  3869. }
  3870. } else {
  3871. for k2, v2 := range v {
  3872. if esep {
  3873. ee.WriteMapElemKey()
  3874. }
  3875. ee.EncodeFloat32(k2)
  3876. if esep {
  3877. ee.WriteMapElemValue()
  3878. }
  3879. ee.EncodeUint(uint64(v2))
  3880. }
  3881. }
  3882. ee.WriteMapEnd()
  3883. }
  3884. func (e *Encoder) fastpathEncMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  3885. fastpathTV.EncMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), e)
  3886. }
  3887. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, e *Encoder) {
  3888. if v == nil {
  3889. e.e.EncodeNil()
  3890. return
  3891. }
  3892. ee, esep := e.e, e.hh.hasElemSeparators()
  3893. ee.WriteMapStart(len(v))
  3894. if e.h.Canonical {
  3895. v2 := make([]float64, len(v))
  3896. var i uint
  3897. for k := range v {
  3898. v2[i] = float64(k)
  3899. i++
  3900. }
  3901. sort.Sort(floatSlice(v2))
  3902. for _, k2 := range v2 {
  3903. if esep {
  3904. ee.WriteMapElemKey()
  3905. }
  3906. ee.EncodeFloat32(float32(k2))
  3907. if esep {
  3908. ee.WriteMapElemValue()
  3909. }
  3910. ee.EncodeUint(uint64(v[float32(k2)]))
  3911. }
  3912. } else {
  3913. for k2, v2 := range v {
  3914. if esep {
  3915. ee.WriteMapElemKey()
  3916. }
  3917. ee.EncodeFloat32(k2)
  3918. if esep {
  3919. ee.WriteMapElemValue()
  3920. }
  3921. ee.EncodeUint(uint64(v2))
  3922. }
  3923. }
  3924. ee.WriteMapEnd()
  3925. }
  3926. func (e *Encoder) fastpathEncMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  3927. fastpathTV.EncMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), e)
  3928. }
  3929. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, e *Encoder) {
  3930. if v == nil {
  3931. e.e.EncodeNil()
  3932. return
  3933. }
  3934. ee, esep := e.e, e.hh.hasElemSeparators()
  3935. ee.WriteMapStart(len(v))
  3936. if e.h.Canonical {
  3937. v2 := make([]float64, len(v))
  3938. var i uint
  3939. for k := range v {
  3940. v2[i] = float64(k)
  3941. i++
  3942. }
  3943. sort.Sort(floatSlice(v2))
  3944. for _, k2 := range v2 {
  3945. if esep {
  3946. ee.WriteMapElemKey()
  3947. }
  3948. ee.EncodeFloat32(float32(k2))
  3949. if esep {
  3950. ee.WriteMapElemValue()
  3951. }
  3952. ee.EncodeUint(uint64(v[float32(k2)]))
  3953. }
  3954. } else {
  3955. for k2, v2 := range v {
  3956. if esep {
  3957. ee.WriteMapElemKey()
  3958. }
  3959. ee.EncodeFloat32(k2)
  3960. if esep {
  3961. ee.WriteMapElemValue()
  3962. }
  3963. ee.EncodeUint(uint64(v2))
  3964. }
  3965. }
  3966. ee.WriteMapEnd()
  3967. }
  3968. func (e *Encoder) fastpathEncMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  3969. fastpathTV.EncMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), e)
  3970. }
  3971. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, e *Encoder) {
  3972. if v == nil {
  3973. e.e.EncodeNil()
  3974. return
  3975. }
  3976. ee, esep := e.e, e.hh.hasElemSeparators()
  3977. ee.WriteMapStart(len(v))
  3978. if e.h.Canonical {
  3979. v2 := make([]float64, len(v))
  3980. var i uint
  3981. for k := range v {
  3982. v2[i] = float64(k)
  3983. i++
  3984. }
  3985. sort.Sort(floatSlice(v2))
  3986. for _, k2 := range v2 {
  3987. if esep {
  3988. ee.WriteMapElemKey()
  3989. }
  3990. ee.EncodeFloat32(float32(k2))
  3991. if esep {
  3992. ee.WriteMapElemValue()
  3993. }
  3994. ee.EncodeUint(uint64(v[float32(k2)]))
  3995. }
  3996. } else {
  3997. for k2, v2 := range v {
  3998. if esep {
  3999. ee.WriteMapElemKey()
  4000. }
  4001. ee.EncodeFloat32(k2)
  4002. if esep {
  4003. ee.WriteMapElemValue()
  4004. }
  4005. ee.EncodeUint(uint64(v2))
  4006. }
  4007. }
  4008. ee.WriteMapEnd()
  4009. }
  4010. func (e *Encoder) fastpathEncMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  4011. fastpathTV.EncMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), e)
  4012. }
  4013. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, e *Encoder) {
  4014. if v == nil {
  4015. e.e.EncodeNil()
  4016. return
  4017. }
  4018. ee, esep := e.e, e.hh.hasElemSeparators()
  4019. ee.WriteMapStart(len(v))
  4020. if e.h.Canonical {
  4021. v2 := make([]float64, len(v))
  4022. var i uint
  4023. for k := range v {
  4024. v2[i] = float64(k)
  4025. i++
  4026. }
  4027. sort.Sort(floatSlice(v2))
  4028. for _, k2 := range v2 {
  4029. if esep {
  4030. ee.WriteMapElemKey()
  4031. }
  4032. ee.EncodeFloat32(float32(k2))
  4033. if esep {
  4034. ee.WriteMapElemValue()
  4035. }
  4036. e.encode(v[float32(k2)])
  4037. }
  4038. } else {
  4039. for k2, v2 := range v {
  4040. if esep {
  4041. ee.WriteMapElemKey()
  4042. }
  4043. ee.EncodeFloat32(k2)
  4044. if esep {
  4045. ee.WriteMapElemValue()
  4046. }
  4047. e.encode(v2)
  4048. }
  4049. }
  4050. ee.WriteMapEnd()
  4051. }
  4052. func (e *Encoder) fastpathEncMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  4053. fastpathTV.EncMapFloat32IntV(rv2i(rv).(map[float32]int), e)
  4054. }
  4055. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, e *Encoder) {
  4056. if v == nil {
  4057. e.e.EncodeNil()
  4058. return
  4059. }
  4060. ee, esep := e.e, e.hh.hasElemSeparators()
  4061. ee.WriteMapStart(len(v))
  4062. if e.h.Canonical {
  4063. v2 := make([]float64, len(v))
  4064. var i uint
  4065. for k := range v {
  4066. v2[i] = float64(k)
  4067. i++
  4068. }
  4069. sort.Sort(floatSlice(v2))
  4070. for _, k2 := range v2 {
  4071. if esep {
  4072. ee.WriteMapElemKey()
  4073. }
  4074. ee.EncodeFloat32(float32(k2))
  4075. if esep {
  4076. ee.WriteMapElemValue()
  4077. }
  4078. ee.EncodeInt(int64(v[float32(k2)]))
  4079. }
  4080. } else {
  4081. for k2, v2 := range v {
  4082. if esep {
  4083. ee.WriteMapElemKey()
  4084. }
  4085. ee.EncodeFloat32(k2)
  4086. if esep {
  4087. ee.WriteMapElemValue()
  4088. }
  4089. ee.EncodeInt(int64(v2))
  4090. }
  4091. }
  4092. ee.WriteMapEnd()
  4093. }
  4094. func (e *Encoder) fastpathEncMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  4095. fastpathTV.EncMapFloat32Int8V(rv2i(rv).(map[float32]int8), e)
  4096. }
  4097. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, e *Encoder) {
  4098. if v == nil {
  4099. e.e.EncodeNil()
  4100. return
  4101. }
  4102. ee, esep := e.e, e.hh.hasElemSeparators()
  4103. ee.WriteMapStart(len(v))
  4104. if e.h.Canonical {
  4105. v2 := make([]float64, len(v))
  4106. var i uint
  4107. for k := range v {
  4108. v2[i] = float64(k)
  4109. i++
  4110. }
  4111. sort.Sort(floatSlice(v2))
  4112. for _, k2 := range v2 {
  4113. if esep {
  4114. ee.WriteMapElemKey()
  4115. }
  4116. ee.EncodeFloat32(float32(k2))
  4117. if esep {
  4118. ee.WriteMapElemValue()
  4119. }
  4120. ee.EncodeInt(int64(v[float32(k2)]))
  4121. }
  4122. } else {
  4123. for k2, v2 := range v {
  4124. if esep {
  4125. ee.WriteMapElemKey()
  4126. }
  4127. ee.EncodeFloat32(k2)
  4128. if esep {
  4129. ee.WriteMapElemValue()
  4130. }
  4131. ee.EncodeInt(int64(v2))
  4132. }
  4133. }
  4134. ee.WriteMapEnd()
  4135. }
  4136. func (e *Encoder) fastpathEncMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  4137. fastpathTV.EncMapFloat32Int16V(rv2i(rv).(map[float32]int16), e)
  4138. }
  4139. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, e *Encoder) {
  4140. if v == nil {
  4141. e.e.EncodeNil()
  4142. return
  4143. }
  4144. ee, esep := e.e, e.hh.hasElemSeparators()
  4145. ee.WriteMapStart(len(v))
  4146. if e.h.Canonical {
  4147. v2 := make([]float64, len(v))
  4148. var i uint
  4149. for k := range v {
  4150. v2[i] = float64(k)
  4151. i++
  4152. }
  4153. sort.Sort(floatSlice(v2))
  4154. for _, k2 := range v2 {
  4155. if esep {
  4156. ee.WriteMapElemKey()
  4157. }
  4158. ee.EncodeFloat32(float32(k2))
  4159. if esep {
  4160. ee.WriteMapElemValue()
  4161. }
  4162. ee.EncodeInt(int64(v[float32(k2)]))
  4163. }
  4164. } else {
  4165. for k2, v2 := range v {
  4166. if esep {
  4167. ee.WriteMapElemKey()
  4168. }
  4169. ee.EncodeFloat32(k2)
  4170. if esep {
  4171. ee.WriteMapElemValue()
  4172. }
  4173. ee.EncodeInt(int64(v2))
  4174. }
  4175. }
  4176. ee.WriteMapEnd()
  4177. }
  4178. func (e *Encoder) fastpathEncMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  4179. fastpathTV.EncMapFloat32Int32V(rv2i(rv).(map[float32]int32), e)
  4180. }
  4181. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, e *Encoder) {
  4182. if v == nil {
  4183. e.e.EncodeNil()
  4184. return
  4185. }
  4186. ee, esep := e.e, e.hh.hasElemSeparators()
  4187. ee.WriteMapStart(len(v))
  4188. if e.h.Canonical {
  4189. v2 := make([]float64, len(v))
  4190. var i uint
  4191. for k := range v {
  4192. v2[i] = float64(k)
  4193. i++
  4194. }
  4195. sort.Sort(floatSlice(v2))
  4196. for _, k2 := range v2 {
  4197. if esep {
  4198. ee.WriteMapElemKey()
  4199. }
  4200. ee.EncodeFloat32(float32(k2))
  4201. if esep {
  4202. ee.WriteMapElemValue()
  4203. }
  4204. ee.EncodeInt(int64(v[float32(k2)]))
  4205. }
  4206. } else {
  4207. for k2, v2 := range v {
  4208. if esep {
  4209. ee.WriteMapElemKey()
  4210. }
  4211. ee.EncodeFloat32(k2)
  4212. if esep {
  4213. ee.WriteMapElemValue()
  4214. }
  4215. ee.EncodeInt(int64(v2))
  4216. }
  4217. }
  4218. ee.WriteMapEnd()
  4219. }
  4220. func (e *Encoder) fastpathEncMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  4221. fastpathTV.EncMapFloat32Int64V(rv2i(rv).(map[float32]int64), e)
  4222. }
  4223. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, e *Encoder) {
  4224. if v == nil {
  4225. e.e.EncodeNil()
  4226. return
  4227. }
  4228. ee, esep := e.e, e.hh.hasElemSeparators()
  4229. ee.WriteMapStart(len(v))
  4230. if e.h.Canonical {
  4231. v2 := make([]float64, len(v))
  4232. var i uint
  4233. for k := range v {
  4234. v2[i] = float64(k)
  4235. i++
  4236. }
  4237. sort.Sort(floatSlice(v2))
  4238. for _, k2 := range v2 {
  4239. if esep {
  4240. ee.WriteMapElemKey()
  4241. }
  4242. ee.EncodeFloat32(float32(k2))
  4243. if esep {
  4244. ee.WriteMapElemValue()
  4245. }
  4246. ee.EncodeInt(int64(v[float32(k2)]))
  4247. }
  4248. } else {
  4249. for k2, v2 := range v {
  4250. if esep {
  4251. ee.WriteMapElemKey()
  4252. }
  4253. ee.EncodeFloat32(k2)
  4254. if esep {
  4255. ee.WriteMapElemValue()
  4256. }
  4257. ee.EncodeInt(int64(v2))
  4258. }
  4259. }
  4260. ee.WriteMapEnd()
  4261. }
  4262. func (e *Encoder) fastpathEncMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  4263. fastpathTV.EncMapFloat32Float32V(rv2i(rv).(map[float32]float32), e)
  4264. }
  4265. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, e *Encoder) {
  4266. if v == nil {
  4267. e.e.EncodeNil()
  4268. return
  4269. }
  4270. ee, esep := e.e, e.hh.hasElemSeparators()
  4271. ee.WriteMapStart(len(v))
  4272. if e.h.Canonical {
  4273. v2 := make([]float64, len(v))
  4274. var i uint
  4275. for k := range v {
  4276. v2[i] = float64(k)
  4277. i++
  4278. }
  4279. sort.Sort(floatSlice(v2))
  4280. for _, k2 := range v2 {
  4281. if esep {
  4282. ee.WriteMapElemKey()
  4283. }
  4284. ee.EncodeFloat32(float32(k2))
  4285. if esep {
  4286. ee.WriteMapElemValue()
  4287. }
  4288. ee.EncodeFloat32(v[float32(k2)])
  4289. }
  4290. } else {
  4291. for k2, v2 := range v {
  4292. if esep {
  4293. ee.WriteMapElemKey()
  4294. }
  4295. ee.EncodeFloat32(k2)
  4296. if esep {
  4297. ee.WriteMapElemValue()
  4298. }
  4299. ee.EncodeFloat32(v2)
  4300. }
  4301. }
  4302. ee.WriteMapEnd()
  4303. }
  4304. func (e *Encoder) fastpathEncMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  4305. fastpathTV.EncMapFloat32Float64V(rv2i(rv).(map[float32]float64), e)
  4306. }
  4307. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, e *Encoder) {
  4308. if v == nil {
  4309. e.e.EncodeNil()
  4310. return
  4311. }
  4312. ee, esep := e.e, e.hh.hasElemSeparators()
  4313. ee.WriteMapStart(len(v))
  4314. if e.h.Canonical {
  4315. v2 := make([]float64, len(v))
  4316. var i uint
  4317. for k := range v {
  4318. v2[i] = float64(k)
  4319. i++
  4320. }
  4321. sort.Sort(floatSlice(v2))
  4322. for _, k2 := range v2 {
  4323. if esep {
  4324. ee.WriteMapElemKey()
  4325. }
  4326. ee.EncodeFloat32(float32(k2))
  4327. if esep {
  4328. ee.WriteMapElemValue()
  4329. }
  4330. ee.EncodeFloat64(v[float32(k2)])
  4331. }
  4332. } else {
  4333. for k2, v2 := range v {
  4334. if esep {
  4335. ee.WriteMapElemKey()
  4336. }
  4337. ee.EncodeFloat32(k2)
  4338. if esep {
  4339. ee.WriteMapElemValue()
  4340. }
  4341. ee.EncodeFloat64(v2)
  4342. }
  4343. }
  4344. ee.WriteMapEnd()
  4345. }
  4346. func (e *Encoder) fastpathEncMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  4347. fastpathTV.EncMapFloat32BoolV(rv2i(rv).(map[float32]bool), e)
  4348. }
  4349. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, e *Encoder) {
  4350. if v == nil {
  4351. e.e.EncodeNil()
  4352. return
  4353. }
  4354. ee, esep := e.e, e.hh.hasElemSeparators()
  4355. ee.WriteMapStart(len(v))
  4356. if e.h.Canonical {
  4357. v2 := make([]float64, len(v))
  4358. var i uint
  4359. for k := range v {
  4360. v2[i] = float64(k)
  4361. i++
  4362. }
  4363. sort.Sort(floatSlice(v2))
  4364. for _, k2 := range v2 {
  4365. if esep {
  4366. ee.WriteMapElemKey()
  4367. }
  4368. ee.EncodeFloat32(float32(k2))
  4369. if esep {
  4370. ee.WriteMapElemValue()
  4371. }
  4372. ee.EncodeBool(v[float32(k2)])
  4373. }
  4374. } else {
  4375. for k2, v2 := range v {
  4376. if esep {
  4377. ee.WriteMapElemKey()
  4378. }
  4379. ee.EncodeFloat32(k2)
  4380. if esep {
  4381. ee.WriteMapElemValue()
  4382. }
  4383. ee.EncodeBool(v2)
  4384. }
  4385. }
  4386. ee.WriteMapEnd()
  4387. }
  4388. func (e *Encoder) fastpathEncMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  4389. fastpathTV.EncMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), e)
  4390. }
  4391. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, e *Encoder) {
  4392. if v == nil {
  4393. e.e.EncodeNil()
  4394. return
  4395. }
  4396. ee, esep := e.e, e.hh.hasElemSeparators()
  4397. ee.WriteMapStart(len(v))
  4398. if e.h.Canonical {
  4399. v2 := make([]float64, len(v))
  4400. var i uint
  4401. for k := range v {
  4402. v2[i] = float64(k)
  4403. i++
  4404. }
  4405. sort.Sort(floatSlice(v2))
  4406. for _, k2 := range v2 {
  4407. if esep {
  4408. ee.WriteMapElemKey()
  4409. }
  4410. ee.EncodeFloat64(float64(k2))
  4411. if esep {
  4412. ee.WriteMapElemValue()
  4413. }
  4414. e.encode(v[float64(k2)])
  4415. }
  4416. } else {
  4417. for k2, v2 := range v {
  4418. if esep {
  4419. ee.WriteMapElemKey()
  4420. }
  4421. ee.EncodeFloat64(k2)
  4422. if esep {
  4423. ee.WriteMapElemValue()
  4424. }
  4425. e.encode(v2)
  4426. }
  4427. }
  4428. ee.WriteMapEnd()
  4429. }
  4430. func (e *Encoder) fastpathEncMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  4431. fastpathTV.EncMapFloat64StringV(rv2i(rv).(map[float64]string), e)
  4432. }
  4433. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, e *Encoder) {
  4434. if v == nil {
  4435. e.e.EncodeNil()
  4436. return
  4437. }
  4438. ee, esep := e.e, e.hh.hasElemSeparators()
  4439. ee.WriteMapStart(len(v))
  4440. if e.h.Canonical {
  4441. v2 := make([]float64, len(v))
  4442. var i uint
  4443. for k := range v {
  4444. v2[i] = float64(k)
  4445. i++
  4446. }
  4447. sort.Sort(floatSlice(v2))
  4448. for _, k2 := range v2 {
  4449. if esep {
  4450. ee.WriteMapElemKey()
  4451. }
  4452. ee.EncodeFloat64(float64(k2))
  4453. if esep {
  4454. ee.WriteMapElemValue()
  4455. }
  4456. if e.h.StringToRaw {
  4457. ee.EncodeStringBytesRaw(bytesView(v[float64(k2)]))
  4458. } else {
  4459. ee.EncodeStringEnc(cUTF8, v[float64(k2)])
  4460. }
  4461. }
  4462. } else {
  4463. for k2, v2 := range v {
  4464. if esep {
  4465. ee.WriteMapElemKey()
  4466. }
  4467. ee.EncodeFloat64(k2)
  4468. if esep {
  4469. ee.WriteMapElemValue()
  4470. }
  4471. if e.h.StringToRaw {
  4472. ee.EncodeStringBytesRaw(bytesView(v2))
  4473. } else {
  4474. ee.EncodeStringEnc(cUTF8, v2)
  4475. }
  4476. }
  4477. }
  4478. ee.WriteMapEnd()
  4479. }
  4480. func (e *Encoder) fastpathEncMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  4481. fastpathTV.EncMapFloat64UintV(rv2i(rv).(map[float64]uint), e)
  4482. }
  4483. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, e *Encoder) {
  4484. if v == nil {
  4485. e.e.EncodeNil()
  4486. return
  4487. }
  4488. ee, esep := e.e, e.hh.hasElemSeparators()
  4489. ee.WriteMapStart(len(v))
  4490. if e.h.Canonical {
  4491. v2 := make([]float64, len(v))
  4492. var i uint
  4493. for k := range v {
  4494. v2[i] = float64(k)
  4495. i++
  4496. }
  4497. sort.Sort(floatSlice(v2))
  4498. for _, k2 := range v2 {
  4499. if esep {
  4500. ee.WriteMapElemKey()
  4501. }
  4502. ee.EncodeFloat64(float64(k2))
  4503. if esep {
  4504. ee.WriteMapElemValue()
  4505. }
  4506. ee.EncodeUint(uint64(v[float64(k2)]))
  4507. }
  4508. } else {
  4509. for k2, v2 := range v {
  4510. if esep {
  4511. ee.WriteMapElemKey()
  4512. }
  4513. ee.EncodeFloat64(k2)
  4514. if esep {
  4515. ee.WriteMapElemValue()
  4516. }
  4517. ee.EncodeUint(uint64(v2))
  4518. }
  4519. }
  4520. ee.WriteMapEnd()
  4521. }
  4522. func (e *Encoder) fastpathEncMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  4523. fastpathTV.EncMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), e)
  4524. }
  4525. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, e *Encoder) {
  4526. if v == nil {
  4527. e.e.EncodeNil()
  4528. return
  4529. }
  4530. ee, esep := e.e, e.hh.hasElemSeparators()
  4531. ee.WriteMapStart(len(v))
  4532. if e.h.Canonical {
  4533. v2 := make([]float64, len(v))
  4534. var i uint
  4535. for k := range v {
  4536. v2[i] = float64(k)
  4537. i++
  4538. }
  4539. sort.Sort(floatSlice(v2))
  4540. for _, k2 := range v2 {
  4541. if esep {
  4542. ee.WriteMapElemKey()
  4543. }
  4544. ee.EncodeFloat64(float64(k2))
  4545. if esep {
  4546. ee.WriteMapElemValue()
  4547. }
  4548. ee.EncodeUint(uint64(v[float64(k2)]))
  4549. }
  4550. } else {
  4551. for k2, v2 := range v {
  4552. if esep {
  4553. ee.WriteMapElemKey()
  4554. }
  4555. ee.EncodeFloat64(k2)
  4556. if esep {
  4557. ee.WriteMapElemValue()
  4558. }
  4559. ee.EncodeUint(uint64(v2))
  4560. }
  4561. }
  4562. ee.WriteMapEnd()
  4563. }
  4564. func (e *Encoder) fastpathEncMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  4565. fastpathTV.EncMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), e)
  4566. }
  4567. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, e *Encoder) {
  4568. if v == nil {
  4569. e.e.EncodeNil()
  4570. return
  4571. }
  4572. ee, esep := e.e, e.hh.hasElemSeparators()
  4573. ee.WriteMapStart(len(v))
  4574. if e.h.Canonical {
  4575. v2 := make([]float64, len(v))
  4576. var i uint
  4577. for k := range v {
  4578. v2[i] = float64(k)
  4579. i++
  4580. }
  4581. sort.Sort(floatSlice(v2))
  4582. for _, k2 := range v2 {
  4583. if esep {
  4584. ee.WriteMapElemKey()
  4585. }
  4586. ee.EncodeFloat64(float64(k2))
  4587. if esep {
  4588. ee.WriteMapElemValue()
  4589. }
  4590. ee.EncodeUint(uint64(v[float64(k2)]))
  4591. }
  4592. } else {
  4593. for k2, v2 := range v {
  4594. if esep {
  4595. ee.WriteMapElemKey()
  4596. }
  4597. ee.EncodeFloat64(k2)
  4598. if esep {
  4599. ee.WriteMapElemValue()
  4600. }
  4601. ee.EncodeUint(uint64(v2))
  4602. }
  4603. }
  4604. ee.WriteMapEnd()
  4605. }
  4606. func (e *Encoder) fastpathEncMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  4607. fastpathTV.EncMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), e)
  4608. }
  4609. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, e *Encoder) {
  4610. if v == nil {
  4611. e.e.EncodeNil()
  4612. return
  4613. }
  4614. ee, esep := e.e, e.hh.hasElemSeparators()
  4615. ee.WriteMapStart(len(v))
  4616. if e.h.Canonical {
  4617. v2 := make([]float64, len(v))
  4618. var i uint
  4619. for k := range v {
  4620. v2[i] = float64(k)
  4621. i++
  4622. }
  4623. sort.Sort(floatSlice(v2))
  4624. for _, k2 := range v2 {
  4625. if esep {
  4626. ee.WriteMapElemKey()
  4627. }
  4628. ee.EncodeFloat64(float64(k2))
  4629. if esep {
  4630. ee.WriteMapElemValue()
  4631. }
  4632. ee.EncodeUint(uint64(v[float64(k2)]))
  4633. }
  4634. } else {
  4635. for k2, v2 := range v {
  4636. if esep {
  4637. ee.WriteMapElemKey()
  4638. }
  4639. ee.EncodeFloat64(k2)
  4640. if esep {
  4641. ee.WriteMapElemValue()
  4642. }
  4643. ee.EncodeUint(uint64(v2))
  4644. }
  4645. }
  4646. ee.WriteMapEnd()
  4647. }
  4648. func (e *Encoder) fastpathEncMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  4649. fastpathTV.EncMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), e)
  4650. }
  4651. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, 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. for _, k2 := range v2 {
  4667. if esep {
  4668. ee.WriteMapElemKey()
  4669. }
  4670. ee.EncodeFloat64(float64(k2))
  4671. if esep {
  4672. ee.WriteMapElemValue()
  4673. }
  4674. ee.EncodeUint(uint64(v[float64(k2)]))
  4675. }
  4676. } else {
  4677. for k2, v2 := range v {
  4678. if esep {
  4679. ee.WriteMapElemKey()
  4680. }
  4681. ee.EncodeFloat64(k2)
  4682. if esep {
  4683. ee.WriteMapElemValue()
  4684. }
  4685. ee.EncodeUint(uint64(v2))
  4686. }
  4687. }
  4688. ee.WriteMapEnd()
  4689. }
  4690. func (e *Encoder) fastpathEncMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  4691. fastpathTV.EncMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), e)
  4692. }
  4693. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, e *Encoder) {
  4694. if v == nil {
  4695. e.e.EncodeNil()
  4696. return
  4697. }
  4698. ee, esep := e.e, e.hh.hasElemSeparators()
  4699. ee.WriteMapStart(len(v))
  4700. if e.h.Canonical {
  4701. v2 := make([]float64, len(v))
  4702. var i uint
  4703. for k := range v {
  4704. v2[i] = float64(k)
  4705. i++
  4706. }
  4707. sort.Sort(floatSlice(v2))
  4708. for _, k2 := range v2 {
  4709. if esep {
  4710. ee.WriteMapElemKey()
  4711. }
  4712. ee.EncodeFloat64(float64(k2))
  4713. if esep {
  4714. ee.WriteMapElemValue()
  4715. }
  4716. e.encode(v[float64(k2)])
  4717. }
  4718. } else {
  4719. for k2, v2 := range v {
  4720. if esep {
  4721. ee.WriteMapElemKey()
  4722. }
  4723. ee.EncodeFloat64(k2)
  4724. if esep {
  4725. ee.WriteMapElemValue()
  4726. }
  4727. e.encode(v2)
  4728. }
  4729. }
  4730. ee.WriteMapEnd()
  4731. }
  4732. func (e *Encoder) fastpathEncMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  4733. fastpathTV.EncMapFloat64IntV(rv2i(rv).(map[float64]int), e)
  4734. }
  4735. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, e *Encoder) {
  4736. if v == nil {
  4737. e.e.EncodeNil()
  4738. return
  4739. }
  4740. ee, esep := e.e, e.hh.hasElemSeparators()
  4741. ee.WriteMapStart(len(v))
  4742. if e.h.Canonical {
  4743. v2 := make([]float64, len(v))
  4744. var i uint
  4745. for k := range v {
  4746. v2[i] = float64(k)
  4747. i++
  4748. }
  4749. sort.Sort(floatSlice(v2))
  4750. for _, k2 := range v2 {
  4751. if esep {
  4752. ee.WriteMapElemKey()
  4753. }
  4754. ee.EncodeFloat64(float64(k2))
  4755. if esep {
  4756. ee.WriteMapElemValue()
  4757. }
  4758. ee.EncodeInt(int64(v[float64(k2)]))
  4759. }
  4760. } else {
  4761. for k2, v2 := range v {
  4762. if esep {
  4763. ee.WriteMapElemKey()
  4764. }
  4765. ee.EncodeFloat64(k2)
  4766. if esep {
  4767. ee.WriteMapElemValue()
  4768. }
  4769. ee.EncodeInt(int64(v2))
  4770. }
  4771. }
  4772. ee.WriteMapEnd()
  4773. }
  4774. func (e *Encoder) fastpathEncMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  4775. fastpathTV.EncMapFloat64Int8V(rv2i(rv).(map[float64]int8), e)
  4776. }
  4777. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, e *Encoder) {
  4778. if v == nil {
  4779. e.e.EncodeNil()
  4780. return
  4781. }
  4782. ee, esep := e.e, e.hh.hasElemSeparators()
  4783. ee.WriteMapStart(len(v))
  4784. if e.h.Canonical {
  4785. v2 := make([]float64, len(v))
  4786. var i uint
  4787. for k := range v {
  4788. v2[i] = float64(k)
  4789. i++
  4790. }
  4791. sort.Sort(floatSlice(v2))
  4792. for _, k2 := range v2 {
  4793. if esep {
  4794. ee.WriteMapElemKey()
  4795. }
  4796. ee.EncodeFloat64(float64(k2))
  4797. if esep {
  4798. ee.WriteMapElemValue()
  4799. }
  4800. ee.EncodeInt(int64(v[float64(k2)]))
  4801. }
  4802. } else {
  4803. for k2, v2 := range v {
  4804. if esep {
  4805. ee.WriteMapElemKey()
  4806. }
  4807. ee.EncodeFloat64(k2)
  4808. if esep {
  4809. ee.WriteMapElemValue()
  4810. }
  4811. ee.EncodeInt(int64(v2))
  4812. }
  4813. }
  4814. ee.WriteMapEnd()
  4815. }
  4816. func (e *Encoder) fastpathEncMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  4817. fastpathTV.EncMapFloat64Int16V(rv2i(rv).(map[float64]int16), e)
  4818. }
  4819. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, e *Encoder) {
  4820. if v == nil {
  4821. e.e.EncodeNil()
  4822. return
  4823. }
  4824. ee, esep := e.e, e.hh.hasElemSeparators()
  4825. ee.WriteMapStart(len(v))
  4826. if e.h.Canonical {
  4827. v2 := make([]float64, len(v))
  4828. var i uint
  4829. for k := range v {
  4830. v2[i] = float64(k)
  4831. i++
  4832. }
  4833. sort.Sort(floatSlice(v2))
  4834. for _, k2 := range v2 {
  4835. if esep {
  4836. ee.WriteMapElemKey()
  4837. }
  4838. ee.EncodeFloat64(float64(k2))
  4839. if esep {
  4840. ee.WriteMapElemValue()
  4841. }
  4842. ee.EncodeInt(int64(v[float64(k2)]))
  4843. }
  4844. } else {
  4845. for k2, v2 := range v {
  4846. if esep {
  4847. ee.WriteMapElemKey()
  4848. }
  4849. ee.EncodeFloat64(k2)
  4850. if esep {
  4851. ee.WriteMapElemValue()
  4852. }
  4853. ee.EncodeInt(int64(v2))
  4854. }
  4855. }
  4856. ee.WriteMapEnd()
  4857. }
  4858. func (e *Encoder) fastpathEncMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  4859. fastpathTV.EncMapFloat64Int32V(rv2i(rv).(map[float64]int32), e)
  4860. }
  4861. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, e *Encoder) {
  4862. if v == nil {
  4863. e.e.EncodeNil()
  4864. return
  4865. }
  4866. ee, esep := e.e, e.hh.hasElemSeparators()
  4867. ee.WriteMapStart(len(v))
  4868. if e.h.Canonical {
  4869. v2 := make([]float64, len(v))
  4870. var i uint
  4871. for k := range v {
  4872. v2[i] = float64(k)
  4873. i++
  4874. }
  4875. sort.Sort(floatSlice(v2))
  4876. for _, k2 := range v2 {
  4877. if esep {
  4878. ee.WriteMapElemKey()
  4879. }
  4880. ee.EncodeFloat64(float64(k2))
  4881. if esep {
  4882. ee.WriteMapElemValue()
  4883. }
  4884. ee.EncodeInt(int64(v[float64(k2)]))
  4885. }
  4886. } else {
  4887. for k2, v2 := range v {
  4888. if esep {
  4889. ee.WriteMapElemKey()
  4890. }
  4891. ee.EncodeFloat64(k2)
  4892. if esep {
  4893. ee.WriteMapElemValue()
  4894. }
  4895. ee.EncodeInt(int64(v2))
  4896. }
  4897. }
  4898. ee.WriteMapEnd()
  4899. }
  4900. func (e *Encoder) fastpathEncMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  4901. fastpathTV.EncMapFloat64Int64V(rv2i(rv).(map[float64]int64), e)
  4902. }
  4903. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, e *Encoder) {
  4904. if v == nil {
  4905. e.e.EncodeNil()
  4906. return
  4907. }
  4908. ee, esep := e.e, e.hh.hasElemSeparators()
  4909. ee.WriteMapStart(len(v))
  4910. if e.h.Canonical {
  4911. v2 := make([]float64, len(v))
  4912. var i uint
  4913. for k := range v {
  4914. v2[i] = float64(k)
  4915. i++
  4916. }
  4917. sort.Sort(floatSlice(v2))
  4918. for _, k2 := range v2 {
  4919. if esep {
  4920. ee.WriteMapElemKey()
  4921. }
  4922. ee.EncodeFloat64(float64(k2))
  4923. if esep {
  4924. ee.WriteMapElemValue()
  4925. }
  4926. ee.EncodeInt(int64(v[float64(k2)]))
  4927. }
  4928. } else {
  4929. for k2, v2 := range v {
  4930. if esep {
  4931. ee.WriteMapElemKey()
  4932. }
  4933. ee.EncodeFloat64(k2)
  4934. if esep {
  4935. ee.WriteMapElemValue()
  4936. }
  4937. ee.EncodeInt(int64(v2))
  4938. }
  4939. }
  4940. ee.WriteMapEnd()
  4941. }
  4942. func (e *Encoder) fastpathEncMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  4943. fastpathTV.EncMapFloat64Float32V(rv2i(rv).(map[float64]float32), e)
  4944. }
  4945. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, e *Encoder) {
  4946. if v == nil {
  4947. e.e.EncodeNil()
  4948. return
  4949. }
  4950. ee, esep := e.e, e.hh.hasElemSeparators()
  4951. ee.WriteMapStart(len(v))
  4952. if e.h.Canonical {
  4953. v2 := make([]float64, len(v))
  4954. var i uint
  4955. for k := range v {
  4956. v2[i] = float64(k)
  4957. i++
  4958. }
  4959. sort.Sort(floatSlice(v2))
  4960. for _, k2 := range v2 {
  4961. if esep {
  4962. ee.WriteMapElemKey()
  4963. }
  4964. ee.EncodeFloat64(float64(k2))
  4965. if esep {
  4966. ee.WriteMapElemValue()
  4967. }
  4968. ee.EncodeFloat32(v[float64(k2)])
  4969. }
  4970. } else {
  4971. for k2, v2 := range v {
  4972. if esep {
  4973. ee.WriteMapElemKey()
  4974. }
  4975. ee.EncodeFloat64(k2)
  4976. if esep {
  4977. ee.WriteMapElemValue()
  4978. }
  4979. ee.EncodeFloat32(v2)
  4980. }
  4981. }
  4982. ee.WriteMapEnd()
  4983. }
  4984. func (e *Encoder) fastpathEncMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  4985. fastpathTV.EncMapFloat64Float64V(rv2i(rv).(map[float64]float64), e)
  4986. }
  4987. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, 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. for _, k2 := range v2 {
  5003. if esep {
  5004. ee.WriteMapElemKey()
  5005. }
  5006. ee.EncodeFloat64(float64(k2))
  5007. if esep {
  5008. ee.WriteMapElemValue()
  5009. }
  5010. ee.EncodeFloat64(v[float64(k2)])
  5011. }
  5012. } else {
  5013. for k2, v2 := range v {
  5014. if esep {
  5015. ee.WriteMapElemKey()
  5016. }
  5017. ee.EncodeFloat64(k2)
  5018. if esep {
  5019. ee.WriteMapElemValue()
  5020. }
  5021. ee.EncodeFloat64(v2)
  5022. }
  5023. }
  5024. ee.WriteMapEnd()
  5025. }
  5026. func (e *Encoder) fastpathEncMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  5027. fastpathTV.EncMapFloat64BoolV(rv2i(rv).(map[float64]bool), e)
  5028. }
  5029. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, e *Encoder) {
  5030. if v == nil {
  5031. e.e.EncodeNil()
  5032. return
  5033. }
  5034. ee, esep := e.e, e.hh.hasElemSeparators()
  5035. ee.WriteMapStart(len(v))
  5036. if e.h.Canonical {
  5037. v2 := make([]float64, len(v))
  5038. var i uint
  5039. for k := range v {
  5040. v2[i] = float64(k)
  5041. i++
  5042. }
  5043. sort.Sort(floatSlice(v2))
  5044. for _, k2 := range v2 {
  5045. if esep {
  5046. ee.WriteMapElemKey()
  5047. }
  5048. ee.EncodeFloat64(float64(k2))
  5049. if esep {
  5050. ee.WriteMapElemValue()
  5051. }
  5052. ee.EncodeBool(v[float64(k2)])
  5053. }
  5054. } else {
  5055. for k2, v2 := range v {
  5056. if esep {
  5057. ee.WriteMapElemKey()
  5058. }
  5059. ee.EncodeFloat64(k2)
  5060. if esep {
  5061. ee.WriteMapElemValue()
  5062. }
  5063. ee.EncodeBool(v2)
  5064. }
  5065. }
  5066. ee.WriteMapEnd()
  5067. }
  5068. func (e *Encoder) fastpathEncMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  5069. fastpathTV.EncMapUintIntfV(rv2i(rv).(map[uint]interface{}), e)
  5070. }
  5071. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, e *Encoder) {
  5072. if v == nil {
  5073. e.e.EncodeNil()
  5074. return
  5075. }
  5076. ee, esep := e.e, e.hh.hasElemSeparators()
  5077. ee.WriteMapStart(len(v))
  5078. if e.h.Canonical {
  5079. v2 := make([]uint64, len(v))
  5080. var i uint
  5081. for k := range v {
  5082. v2[i] = uint64(k)
  5083. i++
  5084. }
  5085. sort.Sort(uintSlice(v2))
  5086. for _, k2 := range v2 {
  5087. if esep {
  5088. ee.WriteMapElemKey()
  5089. }
  5090. ee.EncodeUint(uint64(uint(k2)))
  5091. if esep {
  5092. ee.WriteMapElemValue()
  5093. }
  5094. e.encode(v[uint(k2)])
  5095. }
  5096. } else {
  5097. for k2, v2 := range v {
  5098. if esep {
  5099. ee.WriteMapElemKey()
  5100. }
  5101. ee.EncodeUint(uint64(k2))
  5102. if esep {
  5103. ee.WriteMapElemValue()
  5104. }
  5105. e.encode(v2)
  5106. }
  5107. }
  5108. ee.WriteMapEnd()
  5109. }
  5110. func (e *Encoder) fastpathEncMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  5111. fastpathTV.EncMapUintStringV(rv2i(rv).(map[uint]string), e)
  5112. }
  5113. func (_ fastpathT) EncMapUintStringV(v map[uint]string, e *Encoder) {
  5114. if v == nil {
  5115. e.e.EncodeNil()
  5116. return
  5117. }
  5118. ee, esep := e.e, e.hh.hasElemSeparators()
  5119. ee.WriteMapStart(len(v))
  5120. if e.h.Canonical {
  5121. v2 := make([]uint64, len(v))
  5122. var i uint
  5123. for k := range v {
  5124. v2[i] = uint64(k)
  5125. i++
  5126. }
  5127. sort.Sort(uintSlice(v2))
  5128. for _, k2 := range v2 {
  5129. if esep {
  5130. ee.WriteMapElemKey()
  5131. }
  5132. ee.EncodeUint(uint64(uint(k2)))
  5133. if esep {
  5134. ee.WriteMapElemValue()
  5135. }
  5136. if e.h.StringToRaw {
  5137. ee.EncodeStringBytesRaw(bytesView(v[uint(k2)]))
  5138. } else {
  5139. ee.EncodeStringEnc(cUTF8, v[uint(k2)])
  5140. }
  5141. }
  5142. } else {
  5143. for k2, v2 := range v {
  5144. if esep {
  5145. ee.WriteMapElemKey()
  5146. }
  5147. ee.EncodeUint(uint64(k2))
  5148. if esep {
  5149. ee.WriteMapElemValue()
  5150. }
  5151. if e.h.StringToRaw {
  5152. ee.EncodeStringBytesRaw(bytesView(v2))
  5153. } else {
  5154. ee.EncodeStringEnc(cUTF8, v2)
  5155. }
  5156. }
  5157. }
  5158. ee.WriteMapEnd()
  5159. }
  5160. func (e *Encoder) fastpathEncMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  5161. fastpathTV.EncMapUintUintV(rv2i(rv).(map[uint]uint), e)
  5162. }
  5163. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, e *Encoder) {
  5164. if v == nil {
  5165. e.e.EncodeNil()
  5166. return
  5167. }
  5168. ee, esep := e.e, e.hh.hasElemSeparators()
  5169. ee.WriteMapStart(len(v))
  5170. if e.h.Canonical {
  5171. v2 := make([]uint64, len(v))
  5172. var i uint
  5173. for k := range v {
  5174. v2[i] = uint64(k)
  5175. i++
  5176. }
  5177. sort.Sort(uintSlice(v2))
  5178. for _, k2 := range v2 {
  5179. if esep {
  5180. ee.WriteMapElemKey()
  5181. }
  5182. ee.EncodeUint(uint64(uint(k2)))
  5183. if esep {
  5184. ee.WriteMapElemValue()
  5185. }
  5186. ee.EncodeUint(uint64(v[uint(k2)]))
  5187. }
  5188. } else {
  5189. for k2, v2 := range v {
  5190. if esep {
  5191. ee.WriteMapElemKey()
  5192. }
  5193. ee.EncodeUint(uint64(k2))
  5194. if esep {
  5195. ee.WriteMapElemValue()
  5196. }
  5197. ee.EncodeUint(uint64(v2))
  5198. }
  5199. }
  5200. ee.WriteMapEnd()
  5201. }
  5202. func (e *Encoder) fastpathEncMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  5203. fastpathTV.EncMapUintUint8V(rv2i(rv).(map[uint]uint8), e)
  5204. }
  5205. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, e *Encoder) {
  5206. if v == nil {
  5207. e.e.EncodeNil()
  5208. return
  5209. }
  5210. ee, esep := e.e, e.hh.hasElemSeparators()
  5211. ee.WriteMapStart(len(v))
  5212. if e.h.Canonical {
  5213. v2 := make([]uint64, len(v))
  5214. var i uint
  5215. for k := range v {
  5216. v2[i] = uint64(k)
  5217. i++
  5218. }
  5219. sort.Sort(uintSlice(v2))
  5220. for _, k2 := range v2 {
  5221. if esep {
  5222. ee.WriteMapElemKey()
  5223. }
  5224. ee.EncodeUint(uint64(uint(k2)))
  5225. if esep {
  5226. ee.WriteMapElemValue()
  5227. }
  5228. ee.EncodeUint(uint64(v[uint(k2)]))
  5229. }
  5230. } else {
  5231. for k2, v2 := range v {
  5232. if esep {
  5233. ee.WriteMapElemKey()
  5234. }
  5235. ee.EncodeUint(uint64(k2))
  5236. if esep {
  5237. ee.WriteMapElemValue()
  5238. }
  5239. ee.EncodeUint(uint64(v2))
  5240. }
  5241. }
  5242. ee.WriteMapEnd()
  5243. }
  5244. func (e *Encoder) fastpathEncMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  5245. fastpathTV.EncMapUintUint16V(rv2i(rv).(map[uint]uint16), e)
  5246. }
  5247. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, e *Encoder) {
  5248. if v == nil {
  5249. e.e.EncodeNil()
  5250. return
  5251. }
  5252. ee, esep := e.e, e.hh.hasElemSeparators()
  5253. ee.WriteMapStart(len(v))
  5254. if e.h.Canonical {
  5255. v2 := make([]uint64, len(v))
  5256. var i uint
  5257. for k := range v {
  5258. v2[i] = uint64(k)
  5259. i++
  5260. }
  5261. sort.Sort(uintSlice(v2))
  5262. for _, k2 := range v2 {
  5263. if esep {
  5264. ee.WriteMapElemKey()
  5265. }
  5266. ee.EncodeUint(uint64(uint(k2)))
  5267. if esep {
  5268. ee.WriteMapElemValue()
  5269. }
  5270. ee.EncodeUint(uint64(v[uint(k2)]))
  5271. }
  5272. } else {
  5273. for k2, v2 := range v {
  5274. if esep {
  5275. ee.WriteMapElemKey()
  5276. }
  5277. ee.EncodeUint(uint64(k2))
  5278. if esep {
  5279. ee.WriteMapElemValue()
  5280. }
  5281. ee.EncodeUint(uint64(v2))
  5282. }
  5283. }
  5284. ee.WriteMapEnd()
  5285. }
  5286. func (e *Encoder) fastpathEncMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  5287. fastpathTV.EncMapUintUint32V(rv2i(rv).(map[uint]uint32), e)
  5288. }
  5289. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, e *Encoder) {
  5290. if v == nil {
  5291. e.e.EncodeNil()
  5292. return
  5293. }
  5294. ee, esep := e.e, e.hh.hasElemSeparators()
  5295. ee.WriteMapStart(len(v))
  5296. if e.h.Canonical {
  5297. v2 := make([]uint64, len(v))
  5298. var i uint
  5299. for k := range v {
  5300. v2[i] = uint64(k)
  5301. i++
  5302. }
  5303. sort.Sort(uintSlice(v2))
  5304. for _, k2 := range v2 {
  5305. if esep {
  5306. ee.WriteMapElemKey()
  5307. }
  5308. ee.EncodeUint(uint64(uint(k2)))
  5309. if esep {
  5310. ee.WriteMapElemValue()
  5311. }
  5312. ee.EncodeUint(uint64(v[uint(k2)]))
  5313. }
  5314. } else {
  5315. for k2, v2 := range v {
  5316. if esep {
  5317. ee.WriteMapElemKey()
  5318. }
  5319. ee.EncodeUint(uint64(k2))
  5320. if esep {
  5321. ee.WriteMapElemValue()
  5322. }
  5323. ee.EncodeUint(uint64(v2))
  5324. }
  5325. }
  5326. ee.WriteMapEnd()
  5327. }
  5328. func (e *Encoder) fastpathEncMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  5329. fastpathTV.EncMapUintUint64V(rv2i(rv).(map[uint]uint64), e)
  5330. }
  5331. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, e *Encoder) {
  5332. if v == nil {
  5333. e.e.EncodeNil()
  5334. return
  5335. }
  5336. ee, esep := e.e, e.hh.hasElemSeparators()
  5337. ee.WriteMapStart(len(v))
  5338. if e.h.Canonical {
  5339. v2 := make([]uint64, len(v))
  5340. var i uint
  5341. for k := range v {
  5342. v2[i] = uint64(k)
  5343. i++
  5344. }
  5345. sort.Sort(uintSlice(v2))
  5346. for _, k2 := range v2 {
  5347. if esep {
  5348. ee.WriteMapElemKey()
  5349. }
  5350. ee.EncodeUint(uint64(uint(k2)))
  5351. if esep {
  5352. ee.WriteMapElemValue()
  5353. }
  5354. ee.EncodeUint(uint64(v[uint(k2)]))
  5355. }
  5356. } else {
  5357. for k2, v2 := range v {
  5358. if esep {
  5359. ee.WriteMapElemKey()
  5360. }
  5361. ee.EncodeUint(uint64(k2))
  5362. if esep {
  5363. ee.WriteMapElemValue()
  5364. }
  5365. ee.EncodeUint(uint64(v2))
  5366. }
  5367. }
  5368. ee.WriteMapEnd()
  5369. }
  5370. func (e *Encoder) fastpathEncMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  5371. fastpathTV.EncMapUintUintptrV(rv2i(rv).(map[uint]uintptr), e)
  5372. }
  5373. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, e *Encoder) {
  5374. if v == nil {
  5375. e.e.EncodeNil()
  5376. return
  5377. }
  5378. ee, esep := e.e, e.hh.hasElemSeparators()
  5379. ee.WriteMapStart(len(v))
  5380. if e.h.Canonical {
  5381. v2 := make([]uint64, len(v))
  5382. var i uint
  5383. for k := range v {
  5384. v2[i] = uint64(k)
  5385. i++
  5386. }
  5387. sort.Sort(uintSlice(v2))
  5388. for _, k2 := range v2 {
  5389. if esep {
  5390. ee.WriteMapElemKey()
  5391. }
  5392. ee.EncodeUint(uint64(uint(k2)))
  5393. if esep {
  5394. ee.WriteMapElemValue()
  5395. }
  5396. e.encode(v[uint(k2)])
  5397. }
  5398. } else {
  5399. for k2, v2 := range v {
  5400. if esep {
  5401. ee.WriteMapElemKey()
  5402. }
  5403. ee.EncodeUint(uint64(k2))
  5404. if esep {
  5405. ee.WriteMapElemValue()
  5406. }
  5407. e.encode(v2)
  5408. }
  5409. }
  5410. ee.WriteMapEnd()
  5411. }
  5412. func (e *Encoder) fastpathEncMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  5413. fastpathTV.EncMapUintIntV(rv2i(rv).(map[uint]int), e)
  5414. }
  5415. func (_ fastpathT) EncMapUintIntV(v map[uint]int, e *Encoder) {
  5416. if v == nil {
  5417. e.e.EncodeNil()
  5418. return
  5419. }
  5420. ee, esep := e.e, e.hh.hasElemSeparators()
  5421. ee.WriteMapStart(len(v))
  5422. if e.h.Canonical {
  5423. v2 := make([]uint64, len(v))
  5424. var i uint
  5425. for k := range v {
  5426. v2[i] = uint64(k)
  5427. i++
  5428. }
  5429. sort.Sort(uintSlice(v2))
  5430. for _, k2 := range v2 {
  5431. if esep {
  5432. ee.WriteMapElemKey()
  5433. }
  5434. ee.EncodeUint(uint64(uint(k2)))
  5435. if esep {
  5436. ee.WriteMapElemValue()
  5437. }
  5438. ee.EncodeInt(int64(v[uint(k2)]))
  5439. }
  5440. } else {
  5441. for k2, v2 := range v {
  5442. if esep {
  5443. ee.WriteMapElemKey()
  5444. }
  5445. ee.EncodeUint(uint64(k2))
  5446. if esep {
  5447. ee.WriteMapElemValue()
  5448. }
  5449. ee.EncodeInt(int64(v2))
  5450. }
  5451. }
  5452. ee.WriteMapEnd()
  5453. }
  5454. func (e *Encoder) fastpathEncMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  5455. fastpathTV.EncMapUintInt8V(rv2i(rv).(map[uint]int8), e)
  5456. }
  5457. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, e *Encoder) {
  5458. if v == nil {
  5459. e.e.EncodeNil()
  5460. return
  5461. }
  5462. ee, esep := e.e, e.hh.hasElemSeparators()
  5463. ee.WriteMapStart(len(v))
  5464. if e.h.Canonical {
  5465. v2 := make([]uint64, len(v))
  5466. var i uint
  5467. for k := range v {
  5468. v2[i] = uint64(k)
  5469. i++
  5470. }
  5471. sort.Sort(uintSlice(v2))
  5472. for _, k2 := range v2 {
  5473. if esep {
  5474. ee.WriteMapElemKey()
  5475. }
  5476. ee.EncodeUint(uint64(uint(k2)))
  5477. if esep {
  5478. ee.WriteMapElemValue()
  5479. }
  5480. ee.EncodeInt(int64(v[uint(k2)]))
  5481. }
  5482. } else {
  5483. for k2, v2 := range v {
  5484. if esep {
  5485. ee.WriteMapElemKey()
  5486. }
  5487. ee.EncodeUint(uint64(k2))
  5488. if esep {
  5489. ee.WriteMapElemValue()
  5490. }
  5491. ee.EncodeInt(int64(v2))
  5492. }
  5493. }
  5494. ee.WriteMapEnd()
  5495. }
  5496. func (e *Encoder) fastpathEncMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  5497. fastpathTV.EncMapUintInt16V(rv2i(rv).(map[uint]int16), e)
  5498. }
  5499. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, e *Encoder) {
  5500. if v == nil {
  5501. e.e.EncodeNil()
  5502. return
  5503. }
  5504. ee, esep := e.e, e.hh.hasElemSeparators()
  5505. ee.WriteMapStart(len(v))
  5506. if e.h.Canonical {
  5507. v2 := make([]uint64, len(v))
  5508. var i uint
  5509. for k := range v {
  5510. v2[i] = uint64(k)
  5511. i++
  5512. }
  5513. sort.Sort(uintSlice(v2))
  5514. for _, k2 := range v2 {
  5515. if esep {
  5516. ee.WriteMapElemKey()
  5517. }
  5518. ee.EncodeUint(uint64(uint(k2)))
  5519. if esep {
  5520. ee.WriteMapElemValue()
  5521. }
  5522. ee.EncodeInt(int64(v[uint(k2)]))
  5523. }
  5524. } else {
  5525. for k2, v2 := range v {
  5526. if esep {
  5527. ee.WriteMapElemKey()
  5528. }
  5529. ee.EncodeUint(uint64(k2))
  5530. if esep {
  5531. ee.WriteMapElemValue()
  5532. }
  5533. ee.EncodeInt(int64(v2))
  5534. }
  5535. }
  5536. ee.WriteMapEnd()
  5537. }
  5538. func (e *Encoder) fastpathEncMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  5539. fastpathTV.EncMapUintInt32V(rv2i(rv).(map[uint]int32), e)
  5540. }
  5541. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, e *Encoder) {
  5542. if v == nil {
  5543. e.e.EncodeNil()
  5544. return
  5545. }
  5546. ee, esep := e.e, e.hh.hasElemSeparators()
  5547. ee.WriteMapStart(len(v))
  5548. if e.h.Canonical {
  5549. v2 := make([]uint64, len(v))
  5550. var i uint
  5551. for k := range v {
  5552. v2[i] = uint64(k)
  5553. i++
  5554. }
  5555. sort.Sort(uintSlice(v2))
  5556. for _, k2 := range v2 {
  5557. if esep {
  5558. ee.WriteMapElemKey()
  5559. }
  5560. ee.EncodeUint(uint64(uint(k2)))
  5561. if esep {
  5562. ee.WriteMapElemValue()
  5563. }
  5564. ee.EncodeInt(int64(v[uint(k2)]))
  5565. }
  5566. } else {
  5567. for k2, v2 := range v {
  5568. if esep {
  5569. ee.WriteMapElemKey()
  5570. }
  5571. ee.EncodeUint(uint64(k2))
  5572. if esep {
  5573. ee.WriteMapElemValue()
  5574. }
  5575. ee.EncodeInt(int64(v2))
  5576. }
  5577. }
  5578. ee.WriteMapEnd()
  5579. }
  5580. func (e *Encoder) fastpathEncMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  5581. fastpathTV.EncMapUintInt64V(rv2i(rv).(map[uint]int64), e)
  5582. }
  5583. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, e *Encoder) {
  5584. if v == nil {
  5585. e.e.EncodeNil()
  5586. return
  5587. }
  5588. ee, esep := e.e, e.hh.hasElemSeparators()
  5589. ee.WriteMapStart(len(v))
  5590. if e.h.Canonical {
  5591. v2 := make([]uint64, len(v))
  5592. var i uint
  5593. for k := range v {
  5594. v2[i] = uint64(k)
  5595. i++
  5596. }
  5597. sort.Sort(uintSlice(v2))
  5598. for _, k2 := range v2 {
  5599. if esep {
  5600. ee.WriteMapElemKey()
  5601. }
  5602. ee.EncodeUint(uint64(uint(k2)))
  5603. if esep {
  5604. ee.WriteMapElemValue()
  5605. }
  5606. ee.EncodeInt(int64(v[uint(k2)]))
  5607. }
  5608. } else {
  5609. for k2, v2 := range v {
  5610. if esep {
  5611. ee.WriteMapElemKey()
  5612. }
  5613. ee.EncodeUint(uint64(k2))
  5614. if esep {
  5615. ee.WriteMapElemValue()
  5616. }
  5617. ee.EncodeInt(int64(v2))
  5618. }
  5619. }
  5620. ee.WriteMapEnd()
  5621. }
  5622. func (e *Encoder) fastpathEncMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  5623. fastpathTV.EncMapUintFloat32V(rv2i(rv).(map[uint]float32), e)
  5624. }
  5625. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, e *Encoder) {
  5626. if v == nil {
  5627. e.e.EncodeNil()
  5628. return
  5629. }
  5630. ee, esep := e.e, e.hh.hasElemSeparators()
  5631. ee.WriteMapStart(len(v))
  5632. if e.h.Canonical {
  5633. v2 := make([]uint64, len(v))
  5634. var i uint
  5635. for k := range v {
  5636. v2[i] = uint64(k)
  5637. i++
  5638. }
  5639. sort.Sort(uintSlice(v2))
  5640. for _, k2 := range v2 {
  5641. if esep {
  5642. ee.WriteMapElemKey()
  5643. }
  5644. ee.EncodeUint(uint64(uint(k2)))
  5645. if esep {
  5646. ee.WriteMapElemValue()
  5647. }
  5648. ee.EncodeFloat32(v[uint(k2)])
  5649. }
  5650. } else {
  5651. for k2, v2 := range v {
  5652. if esep {
  5653. ee.WriteMapElemKey()
  5654. }
  5655. ee.EncodeUint(uint64(k2))
  5656. if esep {
  5657. ee.WriteMapElemValue()
  5658. }
  5659. ee.EncodeFloat32(v2)
  5660. }
  5661. }
  5662. ee.WriteMapEnd()
  5663. }
  5664. func (e *Encoder) fastpathEncMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  5665. fastpathTV.EncMapUintFloat64V(rv2i(rv).(map[uint]float64), e)
  5666. }
  5667. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, e *Encoder) {
  5668. if v == nil {
  5669. e.e.EncodeNil()
  5670. return
  5671. }
  5672. ee, esep := e.e, e.hh.hasElemSeparators()
  5673. ee.WriteMapStart(len(v))
  5674. if e.h.Canonical {
  5675. v2 := make([]uint64, len(v))
  5676. var i uint
  5677. for k := range v {
  5678. v2[i] = uint64(k)
  5679. i++
  5680. }
  5681. sort.Sort(uintSlice(v2))
  5682. for _, k2 := range v2 {
  5683. if esep {
  5684. ee.WriteMapElemKey()
  5685. }
  5686. ee.EncodeUint(uint64(uint(k2)))
  5687. if esep {
  5688. ee.WriteMapElemValue()
  5689. }
  5690. ee.EncodeFloat64(v[uint(k2)])
  5691. }
  5692. } else {
  5693. for k2, v2 := range v {
  5694. if esep {
  5695. ee.WriteMapElemKey()
  5696. }
  5697. ee.EncodeUint(uint64(k2))
  5698. if esep {
  5699. ee.WriteMapElemValue()
  5700. }
  5701. ee.EncodeFloat64(v2)
  5702. }
  5703. }
  5704. ee.WriteMapEnd()
  5705. }
  5706. func (e *Encoder) fastpathEncMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  5707. fastpathTV.EncMapUintBoolV(rv2i(rv).(map[uint]bool), e)
  5708. }
  5709. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, e *Encoder) {
  5710. if v == nil {
  5711. e.e.EncodeNil()
  5712. return
  5713. }
  5714. ee, esep := e.e, e.hh.hasElemSeparators()
  5715. ee.WriteMapStart(len(v))
  5716. if e.h.Canonical {
  5717. v2 := make([]uint64, len(v))
  5718. var i uint
  5719. for k := range v {
  5720. v2[i] = uint64(k)
  5721. i++
  5722. }
  5723. sort.Sort(uintSlice(v2))
  5724. for _, k2 := range v2 {
  5725. if esep {
  5726. ee.WriteMapElemKey()
  5727. }
  5728. ee.EncodeUint(uint64(uint(k2)))
  5729. if esep {
  5730. ee.WriteMapElemValue()
  5731. }
  5732. ee.EncodeBool(v[uint(k2)])
  5733. }
  5734. } else {
  5735. for k2, v2 := range v {
  5736. if esep {
  5737. ee.WriteMapElemKey()
  5738. }
  5739. ee.EncodeUint(uint64(k2))
  5740. if esep {
  5741. ee.WriteMapElemValue()
  5742. }
  5743. ee.EncodeBool(v2)
  5744. }
  5745. }
  5746. ee.WriteMapEnd()
  5747. }
  5748. func (e *Encoder) fastpathEncMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  5749. fastpathTV.EncMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), e)
  5750. }
  5751. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, e *Encoder) {
  5752. if v == nil {
  5753. e.e.EncodeNil()
  5754. return
  5755. }
  5756. ee, esep := e.e, e.hh.hasElemSeparators()
  5757. ee.WriteMapStart(len(v))
  5758. if e.h.Canonical {
  5759. v2 := make([]uint64, len(v))
  5760. var i uint
  5761. for k := range v {
  5762. v2[i] = uint64(k)
  5763. i++
  5764. }
  5765. sort.Sort(uintSlice(v2))
  5766. for _, k2 := range v2 {
  5767. if esep {
  5768. ee.WriteMapElemKey()
  5769. }
  5770. ee.EncodeUint(uint64(uint8(k2)))
  5771. if esep {
  5772. ee.WriteMapElemValue()
  5773. }
  5774. e.encode(v[uint8(k2)])
  5775. }
  5776. } else {
  5777. for k2, v2 := range v {
  5778. if esep {
  5779. ee.WriteMapElemKey()
  5780. }
  5781. ee.EncodeUint(uint64(k2))
  5782. if esep {
  5783. ee.WriteMapElemValue()
  5784. }
  5785. e.encode(v2)
  5786. }
  5787. }
  5788. ee.WriteMapEnd()
  5789. }
  5790. func (e *Encoder) fastpathEncMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  5791. fastpathTV.EncMapUint8StringV(rv2i(rv).(map[uint8]string), e)
  5792. }
  5793. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, e *Encoder) {
  5794. if v == nil {
  5795. e.e.EncodeNil()
  5796. return
  5797. }
  5798. ee, esep := e.e, e.hh.hasElemSeparators()
  5799. ee.WriteMapStart(len(v))
  5800. if e.h.Canonical {
  5801. v2 := make([]uint64, len(v))
  5802. var i uint
  5803. for k := range v {
  5804. v2[i] = uint64(k)
  5805. i++
  5806. }
  5807. sort.Sort(uintSlice(v2))
  5808. for _, k2 := range v2 {
  5809. if esep {
  5810. ee.WriteMapElemKey()
  5811. }
  5812. ee.EncodeUint(uint64(uint8(k2)))
  5813. if esep {
  5814. ee.WriteMapElemValue()
  5815. }
  5816. if e.h.StringToRaw {
  5817. ee.EncodeStringBytesRaw(bytesView(v[uint8(k2)]))
  5818. } else {
  5819. ee.EncodeStringEnc(cUTF8, v[uint8(k2)])
  5820. }
  5821. }
  5822. } else {
  5823. for k2, v2 := range v {
  5824. if esep {
  5825. ee.WriteMapElemKey()
  5826. }
  5827. ee.EncodeUint(uint64(k2))
  5828. if esep {
  5829. ee.WriteMapElemValue()
  5830. }
  5831. if e.h.StringToRaw {
  5832. ee.EncodeStringBytesRaw(bytesView(v2))
  5833. } else {
  5834. ee.EncodeStringEnc(cUTF8, v2)
  5835. }
  5836. }
  5837. }
  5838. ee.WriteMapEnd()
  5839. }
  5840. func (e *Encoder) fastpathEncMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  5841. fastpathTV.EncMapUint8UintV(rv2i(rv).(map[uint8]uint), e)
  5842. }
  5843. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, e *Encoder) {
  5844. if v == nil {
  5845. e.e.EncodeNil()
  5846. return
  5847. }
  5848. ee, esep := e.e, e.hh.hasElemSeparators()
  5849. ee.WriteMapStart(len(v))
  5850. if e.h.Canonical {
  5851. v2 := make([]uint64, len(v))
  5852. var i uint
  5853. for k := range v {
  5854. v2[i] = uint64(k)
  5855. i++
  5856. }
  5857. sort.Sort(uintSlice(v2))
  5858. for _, k2 := range v2 {
  5859. if esep {
  5860. ee.WriteMapElemKey()
  5861. }
  5862. ee.EncodeUint(uint64(uint8(k2)))
  5863. if esep {
  5864. ee.WriteMapElemValue()
  5865. }
  5866. ee.EncodeUint(uint64(v[uint8(k2)]))
  5867. }
  5868. } else {
  5869. for k2, v2 := range v {
  5870. if esep {
  5871. ee.WriteMapElemKey()
  5872. }
  5873. ee.EncodeUint(uint64(k2))
  5874. if esep {
  5875. ee.WriteMapElemValue()
  5876. }
  5877. ee.EncodeUint(uint64(v2))
  5878. }
  5879. }
  5880. ee.WriteMapEnd()
  5881. }
  5882. func (e *Encoder) fastpathEncMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  5883. fastpathTV.EncMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), e)
  5884. }
  5885. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, e *Encoder) {
  5886. if v == nil {
  5887. e.e.EncodeNil()
  5888. return
  5889. }
  5890. ee, esep := e.e, e.hh.hasElemSeparators()
  5891. ee.WriteMapStart(len(v))
  5892. if e.h.Canonical {
  5893. v2 := make([]uint64, len(v))
  5894. var i uint
  5895. for k := range v {
  5896. v2[i] = uint64(k)
  5897. i++
  5898. }
  5899. sort.Sort(uintSlice(v2))
  5900. for _, k2 := range v2 {
  5901. if esep {
  5902. ee.WriteMapElemKey()
  5903. }
  5904. ee.EncodeUint(uint64(uint8(k2)))
  5905. if esep {
  5906. ee.WriteMapElemValue()
  5907. }
  5908. ee.EncodeUint(uint64(v[uint8(k2)]))
  5909. }
  5910. } else {
  5911. for k2, v2 := range v {
  5912. if esep {
  5913. ee.WriteMapElemKey()
  5914. }
  5915. ee.EncodeUint(uint64(k2))
  5916. if esep {
  5917. ee.WriteMapElemValue()
  5918. }
  5919. ee.EncodeUint(uint64(v2))
  5920. }
  5921. }
  5922. ee.WriteMapEnd()
  5923. }
  5924. func (e *Encoder) fastpathEncMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  5925. fastpathTV.EncMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), e)
  5926. }
  5927. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, e *Encoder) {
  5928. if v == nil {
  5929. e.e.EncodeNil()
  5930. return
  5931. }
  5932. ee, esep := e.e, e.hh.hasElemSeparators()
  5933. ee.WriteMapStart(len(v))
  5934. if e.h.Canonical {
  5935. v2 := make([]uint64, len(v))
  5936. var i uint
  5937. for k := range v {
  5938. v2[i] = uint64(k)
  5939. i++
  5940. }
  5941. sort.Sort(uintSlice(v2))
  5942. for _, k2 := range v2 {
  5943. if esep {
  5944. ee.WriteMapElemKey()
  5945. }
  5946. ee.EncodeUint(uint64(uint8(k2)))
  5947. if esep {
  5948. ee.WriteMapElemValue()
  5949. }
  5950. ee.EncodeUint(uint64(v[uint8(k2)]))
  5951. }
  5952. } else {
  5953. for k2, v2 := range v {
  5954. if esep {
  5955. ee.WriteMapElemKey()
  5956. }
  5957. ee.EncodeUint(uint64(k2))
  5958. if esep {
  5959. ee.WriteMapElemValue()
  5960. }
  5961. ee.EncodeUint(uint64(v2))
  5962. }
  5963. }
  5964. ee.WriteMapEnd()
  5965. }
  5966. func (e *Encoder) fastpathEncMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  5967. fastpathTV.EncMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), e)
  5968. }
  5969. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, e *Encoder) {
  5970. if v == nil {
  5971. e.e.EncodeNil()
  5972. return
  5973. }
  5974. ee, esep := e.e, e.hh.hasElemSeparators()
  5975. ee.WriteMapStart(len(v))
  5976. if e.h.Canonical {
  5977. v2 := make([]uint64, len(v))
  5978. var i uint
  5979. for k := range v {
  5980. v2[i] = uint64(k)
  5981. i++
  5982. }
  5983. sort.Sort(uintSlice(v2))
  5984. for _, k2 := range v2 {
  5985. if esep {
  5986. ee.WriteMapElemKey()
  5987. }
  5988. ee.EncodeUint(uint64(uint8(k2)))
  5989. if esep {
  5990. ee.WriteMapElemValue()
  5991. }
  5992. ee.EncodeUint(uint64(v[uint8(k2)]))
  5993. }
  5994. } else {
  5995. for k2, v2 := range v {
  5996. if esep {
  5997. ee.WriteMapElemKey()
  5998. }
  5999. ee.EncodeUint(uint64(k2))
  6000. if esep {
  6001. ee.WriteMapElemValue()
  6002. }
  6003. ee.EncodeUint(uint64(v2))
  6004. }
  6005. }
  6006. ee.WriteMapEnd()
  6007. }
  6008. func (e *Encoder) fastpathEncMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  6009. fastpathTV.EncMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), e)
  6010. }
  6011. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, e *Encoder) {
  6012. if v == nil {
  6013. e.e.EncodeNil()
  6014. return
  6015. }
  6016. ee, esep := e.e, e.hh.hasElemSeparators()
  6017. ee.WriteMapStart(len(v))
  6018. if e.h.Canonical {
  6019. v2 := make([]uint64, len(v))
  6020. var i uint
  6021. for k := range v {
  6022. v2[i] = uint64(k)
  6023. i++
  6024. }
  6025. sort.Sort(uintSlice(v2))
  6026. for _, k2 := range v2 {
  6027. if esep {
  6028. ee.WriteMapElemKey()
  6029. }
  6030. ee.EncodeUint(uint64(uint8(k2)))
  6031. if esep {
  6032. ee.WriteMapElemValue()
  6033. }
  6034. ee.EncodeUint(uint64(v[uint8(k2)]))
  6035. }
  6036. } else {
  6037. for k2, v2 := range v {
  6038. if esep {
  6039. ee.WriteMapElemKey()
  6040. }
  6041. ee.EncodeUint(uint64(k2))
  6042. if esep {
  6043. ee.WriteMapElemValue()
  6044. }
  6045. ee.EncodeUint(uint64(v2))
  6046. }
  6047. }
  6048. ee.WriteMapEnd()
  6049. }
  6050. func (e *Encoder) fastpathEncMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  6051. fastpathTV.EncMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), e)
  6052. }
  6053. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, e *Encoder) {
  6054. if v == nil {
  6055. e.e.EncodeNil()
  6056. return
  6057. }
  6058. ee, esep := e.e, e.hh.hasElemSeparators()
  6059. ee.WriteMapStart(len(v))
  6060. if e.h.Canonical {
  6061. v2 := make([]uint64, len(v))
  6062. var i uint
  6063. for k := range v {
  6064. v2[i] = uint64(k)
  6065. i++
  6066. }
  6067. sort.Sort(uintSlice(v2))
  6068. for _, k2 := range v2 {
  6069. if esep {
  6070. ee.WriteMapElemKey()
  6071. }
  6072. ee.EncodeUint(uint64(uint8(k2)))
  6073. if esep {
  6074. ee.WriteMapElemValue()
  6075. }
  6076. e.encode(v[uint8(k2)])
  6077. }
  6078. } else {
  6079. for k2, v2 := range v {
  6080. if esep {
  6081. ee.WriteMapElemKey()
  6082. }
  6083. ee.EncodeUint(uint64(k2))
  6084. if esep {
  6085. ee.WriteMapElemValue()
  6086. }
  6087. e.encode(v2)
  6088. }
  6089. }
  6090. ee.WriteMapEnd()
  6091. }
  6092. func (e *Encoder) fastpathEncMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  6093. fastpathTV.EncMapUint8IntV(rv2i(rv).(map[uint8]int), e)
  6094. }
  6095. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, e *Encoder) {
  6096. if v == nil {
  6097. e.e.EncodeNil()
  6098. return
  6099. }
  6100. ee, esep := e.e, e.hh.hasElemSeparators()
  6101. ee.WriteMapStart(len(v))
  6102. if e.h.Canonical {
  6103. v2 := make([]uint64, len(v))
  6104. var i uint
  6105. for k := range v {
  6106. v2[i] = uint64(k)
  6107. i++
  6108. }
  6109. sort.Sort(uintSlice(v2))
  6110. for _, k2 := range v2 {
  6111. if esep {
  6112. ee.WriteMapElemKey()
  6113. }
  6114. ee.EncodeUint(uint64(uint8(k2)))
  6115. if esep {
  6116. ee.WriteMapElemValue()
  6117. }
  6118. ee.EncodeInt(int64(v[uint8(k2)]))
  6119. }
  6120. } else {
  6121. for k2, v2 := range v {
  6122. if esep {
  6123. ee.WriteMapElemKey()
  6124. }
  6125. ee.EncodeUint(uint64(k2))
  6126. if esep {
  6127. ee.WriteMapElemValue()
  6128. }
  6129. ee.EncodeInt(int64(v2))
  6130. }
  6131. }
  6132. ee.WriteMapEnd()
  6133. }
  6134. func (e *Encoder) fastpathEncMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  6135. fastpathTV.EncMapUint8Int8V(rv2i(rv).(map[uint8]int8), e)
  6136. }
  6137. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, e *Encoder) {
  6138. if v == nil {
  6139. e.e.EncodeNil()
  6140. return
  6141. }
  6142. ee, esep := e.e, e.hh.hasElemSeparators()
  6143. ee.WriteMapStart(len(v))
  6144. if e.h.Canonical {
  6145. v2 := make([]uint64, len(v))
  6146. var i uint
  6147. for k := range v {
  6148. v2[i] = uint64(k)
  6149. i++
  6150. }
  6151. sort.Sort(uintSlice(v2))
  6152. for _, k2 := range v2 {
  6153. if esep {
  6154. ee.WriteMapElemKey()
  6155. }
  6156. ee.EncodeUint(uint64(uint8(k2)))
  6157. if esep {
  6158. ee.WriteMapElemValue()
  6159. }
  6160. ee.EncodeInt(int64(v[uint8(k2)]))
  6161. }
  6162. } else {
  6163. for k2, v2 := range v {
  6164. if esep {
  6165. ee.WriteMapElemKey()
  6166. }
  6167. ee.EncodeUint(uint64(k2))
  6168. if esep {
  6169. ee.WriteMapElemValue()
  6170. }
  6171. ee.EncodeInt(int64(v2))
  6172. }
  6173. }
  6174. ee.WriteMapEnd()
  6175. }
  6176. func (e *Encoder) fastpathEncMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  6177. fastpathTV.EncMapUint8Int16V(rv2i(rv).(map[uint8]int16), e)
  6178. }
  6179. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, e *Encoder) {
  6180. if v == nil {
  6181. e.e.EncodeNil()
  6182. return
  6183. }
  6184. ee, esep := e.e, e.hh.hasElemSeparators()
  6185. ee.WriteMapStart(len(v))
  6186. if e.h.Canonical {
  6187. v2 := make([]uint64, len(v))
  6188. var i uint
  6189. for k := range v {
  6190. v2[i] = uint64(k)
  6191. i++
  6192. }
  6193. sort.Sort(uintSlice(v2))
  6194. for _, k2 := range v2 {
  6195. if esep {
  6196. ee.WriteMapElemKey()
  6197. }
  6198. ee.EncodeUint(uint64(uint8(k2)))
  6199. if esep {
  6200. ee.WriteMapElemValue()
  6201. }
  6202. ee.EncodeInt(int64(v[uint8(k2)]))
  6203. }
  6204. } else {
  6205. for k2, v2 := range v {
  6206. if esep {
  6207. ee.WriteMapElemKey()
  6208. }
  6209. ee.EncodeUint(uint64(k2))
  6210. if esep {
  6211. ee.WriteMapElemValue()
  6212. }
  6213. ee.EncodeInt(int64(v2))
  6214. }
  6215. }
  6216. ee.WriteMapEnd()
  6217. }
  6218. func (e *Encoder) fastpathEncMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  6219. fastpathTV.EncMapUint8Int32V(rv2i(rv).(map[uint8]int32), e)
  6220. }
  6221. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, e *Encoder) {
  6222. if v == nil {
  6223. e.e.EncodeNil()
  6224. return
  6225. }
  6226. ee, esep := e.e, e.hh.hasElemSeparators()
  6227. ee.WriteMapStart(len(v))
  6228. if e.h.Canonical {
  6229. v2 := make([]uint64, len(v))
  6230. var i uint
  6231. for k := range v {
  6232. v2[i] = uint64(k)
  6233. i++
  6234. }
  6235. sort.Sort(uintSlice(v2))
  6236. for _, k2 := range v2 {
  6237. if esep {
  6238. ee.WriteMapElemKey()
  6239. }
  6240. ee.EncodeUint(uint64(uint8(k2)))
  6241. if esep {
  6242. ee.WriteMapElemValue()
  6243. }
  6244. ee.EncodeInt(int64(v[uint8(k2)]))
  6245. }
  6246. } else {
  6247. for k2, v2 := range v {
  6248. if esep {
  6249. ee.WriteMapElemKey()
  6250. }
  6251. ee.EncodeUint(uint64(k2))
  6252. if esep {
  6253. ee.WriteMapElemValue()
  6254. }
  6255. ee.EncodeInt(int64(v2))
  6256. }
  6257. }
  6258. ee.WriteMapEnd()
  6259. }
  6260. func (e *Encoder) fastpathEncMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  6261. fastpathTV.EncMapUint8Int64V(rv2i(rv).(map[uint8]int64), e)
  6262. }
  6263. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, e *Encoder) {
  6264. if v == nil {
  6265. e.e.EncodeNil()
  6266. return
  6267. }
  6268. ee, esep := e.e, e.hh.hasElemSeparators()
  6269. ee.WriteMapStart(len(v))
  6270. if e.h.Canonical {
  6271. v2 := make([]uint64, len(v))
  6272. var i uint
  6273. for k := range v {
  6274. v2[i] = uint64(k)
  6275. i++
  6276. }
  6277. sort.Sort(uintSlice(v2))
  6278. for _, k2 := range v2 {
  6279. if esep {
  6280. ee.WriteMapElemKey()
  6281. }
  6282. ee.EncodeUint(uint64(uint8(k2)))
  6283. if esep {
  6284. ee.WriteMapElemValue()
  6285. }
  6286. ee.EncodeInt(int64(v[uint8(k2)]))
  6287. }
  6288. } else {
  6289. for k2, v2 := range v {
  6290. if esep {
  6291. ee.WriteMapElemKey()
  6292. }
  6293. ee.EncodeUint(uint64(k2))
  6294. if esep {
  6295. ee.WriteMapElemValue()
  6296. }
  6297. ee.EncodeInt(int64(v2))
  6298. }
  6299. }
  6300. ee.WriteMapEnd()
  6301. }
  6302. func (e *Encoder) fastpathEncMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  6303. fastpathTV.EncMapUint8Float32V(rv2i(rv).(map[uint8]float32), e)
  6304. }
  6305. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, e *Encoder) {
  6306. if v == nil {
  6307. e.e.EncodeNil()
  6308. return
  6309. }
  6310. ee, esep := e.e, e.hh.hasElemSeparators()
  6311. ee.WriteMapStart(len(v))
  6312. if e.h.Canonical {
  6313. v2 := make([]uint64, len(v))
  6314. var i uint
  6315. for k := range v {
  6316. v2[i] = uint64(k)
  6317. i++
  6318. }
  6319. sort.Sort(uintSlice(v2))
  6320. for _, k2 := range v2 {
  6321. if esep {
  6322. ee.WriteMapElemKey()
  6323. }
  6324. ee.EncodeUint(uint64(uint8(k2)))
  6325. if esep {
  6326. ee.WriteMapElemValue()
  6327. }
  6328. ee.EncodeFloat32(v[uint8(k2)])
  6329. }
  6330. } else {
  6331. for k2, v2 := range v {
  6332. if esep {
  6333. ee.WriteMapElemKey()
  6334. }
  6335. ee.EncodeUint(uint64(k2))
  6336. if esep {
  6337. ee.WriteMapElemValue()
  6338. }
  6339. ee.EncodeFloat32(v2)
  6340. }
  6341. }
  6342. ee.WriteMapEnd()
  6343. }
  6344. func (e *Encoder) fastpathEncMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  6345. fastpathTV.EncMapUint8Float64V(rv2i(rv).(map[uint8]float64), e)
  6346. }
  6347. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, e *Encoder) {
  6348. if v == nil {
  6349. e.e.EncodeNil()
  6350. return
  6351. }
  6352. ee, esep := e.e, e.hh.hasElemSeparators()
  6353. ee.WriteMapStart(len(v))
  6354. if e.h.Canonical {
  6355. v2 := make([]uint64, len(v))
  6356. var i uint
  6357. for k := range v {
  6358. v2[i] = uint64(k)
  6359. i++
  6360. }
  6361. sort.Sort(uintSlice(v2))
  6362. for _, k2 := range v2 {
  6363. if esep {
  6364. ee.WriteMapElemKey()
  6365. }
  6366. ee.EncodeUint(uint64(uint8(k2)))
  6367. if esep {
  6368. ee.WriteMapElemValue()
  6369. }
  6370. ee.EncodeFloat64(v[uint8(k2)])
  6371. }
  6372. } else {
  6373. for k2, v2 := range v {
  6374. if esep {
  6375. ee.WriteMapElemKey()
  6376. }
  6377. ee.EncodeUint(uint64(k2))
  6378. if esep {
  6379. ee.WriteMapElemValue()
  6380. }
  6381. ee.EncodeFloat64(v2)
  6382. }
  6383. }
  6384. ee.WriteMapEnd()
  6385. }
  6386. func (e *Encoder) fastpathEncMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  6387. fastpathTV.EncMapUint8BoolV(rv2i(rv).(map[uint8]bool), e)
  6388. }
  6389. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, e *Encoder) {
  6390. if v == nil {
  6391. e.e.EncodeNil()
  6392. return
  6393. }
  6394. ee, esep := e.e, e.hh.hasElemSeparators()
  6395. ee.WriteMapStart(len(v))
  6396. if e.h.Canonical {
  6397. v2 := make([]uint64, len(v))
  6398. var i uint
  6399. for k := range v {
  6400. v2[i] = uint64(k)
  6401. i++
  6402. }
  6403. sort.Sort(uintSlice(v2))
  6404. for _, k2 := range v2 {
  6405. if esep {
  6406. ee.WriteMapElemKey()
  6407. }
  6408. ee.EncodeUint(uint64(uint8(k2)))
  6409. if esep {
  6410. ee.WriteMapElemValue()
  6411. }
  6412. ee.EncodeBool(v[uint8(k2)])
  6413. }
  6414. } else {
  6415. for k2, v2 := range v {
  6416. if esep {
  6417. ee.WriteMapElemKey()
  6418. }
  6419. ee.EncodeUint(uint64(k2))
  6420. if esep {
  6421. ee.WriteMapElemValue()
  6422. }
  6423. ee.EncodeBool(v2)
  6424. }
  6425. }
  6426. ee.WriteMapEnd()
  6427. }
  6428. func (e *Encoder) fastpathEncMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  6429. fastpathTV.EncMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), e)
  6430. }
  6431. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, e *Encoder) {
  6432. if v == nil {
  6433. e.e.EncodeNil()
  6434. return
  6435. }
  6436. ee, esep := e.e, e.hh.hasElemSeparators()
  6437. ee.WriteMapStart(len(v))
  6438. if e.h.Canonical {
  6439. v2 := make([]uint64, len(v))
  6440. var i uint
  6441. for k := range v {
  6442. v2[i] = uint64(k)
  6443. i++
  6444. }
  6445. sort.Sort(uintSlice(v2))
  6446. for _, k2 := range v2 {
  6447. if esep {
  6448. ee.WriteMapElemKey()
  6449. }
  6450. ee.EncodeUint(uint64(uint16(k2)))
  6451. if esep {
  6452. ee.WriteMapElemValue()
  6453. }
  6454. e.encode(v[uint16(k2)])
  6455. }
  6456. } else {
  6457. for k2, v2 := range v {
  6458. if esep {
  6459. ee.WriteMapElemKey()
  6460. }
  6461. ee.EncodeUint(uint64(k2))
  6462. if esep {
  6463. ee.WriteMapElemValue()
  6464. }
  6465. e.encode(v2)
  6466. }
  6467. }
  6468. ee.WriteMapEnd()
  6469. }
  6470. func (e *Encoder) fastpathEncMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  6471. fastpathTV.EncMapUint16StringV(rv2i(rv).(map[uint16]string), e)
  6472. }
  6473. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, e *Encoder) {
  6474. if v == nil {
  6475. e.e.EncodeNil()
  6476. return
  6477. }
  6478. ee, esep := e.e, e.hh.hasElemSeparators()
  6479. ee.WriteMapStart(len(v))
  6480. if e.h.Canonical {
  6481. v2 := make([]uint64, len(v))
  6482. var i uint
  6483. for k := range v {
  6484. v2[i] = uint64(k)
  6485. i++
  6486. }
  6487. sort.Sort(uintSlice(v2))
  6488. for _, k2 := range v2 {
  6489. if esep {
  6490. ee.WriteMapElemKey()
  6491. }
  6492. ee.EncodeUint(uint64(uint16(k2)))
  6493. if esep {
  6494. ee.WriteMapElemValue()
  6495. }
  6496. if e.h.StringToRaw {
  6497. ee.EncodeStringBytesRaw(bytesView(v[uint16(k2)]))
  6498. } else {
  6499. ee.EncodeStringEnc(cUTF8, v[uint16(k2)])
  6500. }
  6501. }
  6502. } else {
  6503. for k2, v2 := range v {
  6504. if esep {
  6505. ee.WriteMapElemKey()
  6506. }
  6507. ee.EncodeUint(uint64(k2))
  6508. if esep {
  6509. ee.WriteMapElemValue()
  6510. }
  6511. if e.h.StringToRaw {
  6512. ee.EncodeStringBytesRaw(bytesView(v2))
  6513. } else {
  6514. ee.EncodeStringEnc(cUTF8, v2)
  6515. }
  6516. }
  6517. }
  6518. ee.WriteMapEnd()
  6519. }
  6520. func (e *Encoder) fastpathEncMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  6521. fastpathTV.EncMapUint16UintV(rv2i(rv).(map[uint16]uint), e)
  6522. }
  6523. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, 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. for _, k2 := range v2 {
  6539. if esep {
  6540. ee.WriteMapElemKey()
  6541. }
  6542. ee.EncodeUint(uint64(uint16(k2)))
  6543. if esep {
  6544. ee.WriteMapElemValue()
  6545. }
  6546. ee.EncodeUint(uint64(v[uint16(k2)]))
  6547. }
  6548. } else {
  6549. for k2, v2 := range v {
  6550. if esep {
  6551. ee.WriteMapElemKey()
  6552. }
  6553. ee.EncodeUint(uint64(k2))
  6554. if esep {
  6555. ee.WriteMapElemValue()
  6556. }
  6557. ee.EncodeUint(uint64(v2))
  6558. }
  6559. }
  6560. ee.WriteMapEnd()
  6561. }
  6562. func (e *Encoder) fastpathEncMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  6563. fastpathTV.EncMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), e)
  6564. }
  6565. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, e *Encoder) {
  6566. if v == nil {
  6567. e.e.EncodeNil()
  6568. return
  6569. }
  6570. ee, esep := e.e, e.hh.hasElemSeparators()
  6571. ee.WriteMapStart(len(v))
  6572. if e.h.Canonical {
  6573. v2 := make([]uint64, len(v))
  6574. var i uint
  6575. for k := range v {
  6576. v2[i] = uint64(k)
  6577. i++
  6578. }
  6579. sort.Sort(uintSlice(v2))
  6580. for _, k2 := range v2 {
  6581. if esep {
  6582. ee.WriteMapElemKey()
  6583. }
  6584. ee.EncodeUint(uint64(uint16(k2)))
  6585. if esep {
  6586. ee.WriteMapElemValue()
  6587. }
  6588. ee.EncodeUint(uint64(v[uint16(k2)]))
  6589. }
  6590. } else {
  6591. for k2, v2 := range v {
  6592. if esep {
  6593. ee.WriteMapElemKey()
  6594. }
  6595. ee.EncodeUint(uint64(k2))
  6596. if esep {
  6597. ee.WriteMapElemValue()
  6598. }
  6599. ee.EncodeUint(uint64(v2))
  6600. }
  6601. }
  6602. ee.WriteMapEnd()
  6603. }
  6604. func (e *Encoder) fastpathEncMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  6605. fastpathTV.EncMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), e)
  6606. }
  6607. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, e *Encoder) {
  6608. if v == nil {
  6609. e.e.EncodeNil()
  6610. return
  6611. }
  6612. ee, esep := e.e, e.hh.hasElemSeparators()
  6613. ee.WriteMapStart(len(v))
  6614. if e.h.Canonical {
  6615. v2 := make([]uint64, len(v))
  6616. var i uint
  6617. for k := range v {
  6618. v2[i] = uint64(k)
  6619. i++
  6620. }
  6621. sort.Sort(uintSlice(v2))
  6622. for _, k2 := range v2 {
  6623. if esep {
  6624. ee.WriteMapElemKey()
  6625. }
  6626. ee.EncodeUint(uint64(uint16(k2)))
  6627. if esep {
  6628. ee.WriteMapElemValue()
  6629. }
  6630. ee.EncodeUint(uint64(v[uint16(k2)]))
  6631. }
  6632. } else {
  6633. for k2, v2 := range v {
  6634. if esep {
  6635. ee.WriteMapElemKey()
  6636. }
  6637. ee.EncodeUint(uint64(k2))
  6638. if esep {
  6639. ee.WriteMapElemValue()
  6640. }
  6641. ee.EncodeUint(uint64(v2))
  6642. }
  6643. }
  6644. ee.WriteMapEnd()
  6645. }
  6646. func (e *Encoder) fastpathEncMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  6647. fastpathTV.EncMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), e)
  6648. }
  6649. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, e *Encoder) {
  6650. if v == nil {
  6651. e.e.EncodeNil()
  6652. return
  6653. }
  6654. ee, esep := e.e, e.hh.hasElemSeparators()
  6655. ee.WriteMapStart(len(v))
  6656. if e.h.Canonical {
  6657. v2 := make([]uint64, len(v))
  6658. var i uint
  6659. for k := range v {
  6660. v2[i] = uint64(k)
  6661. i++
  6662. }
  6663. sort.Sort(uintSlice(v2))
  6664. for _, k2 := range v2 {
  6665. if esep {
  6666. ee.WriteMapElemKey()
  6667. }
  6668. ee.EncodeUint(uint64(uint16(k2)))
  6669. if esep {
  6670. ee.WriteMapElemValue()
  6671. }
  6672. ee.EncodeUint(uint64(v[uint16(k2)]))
  6673. }
  6674. } else {
  6675. for k2, v2 := range v {
  6676. if esep {
  6677. ee.WriteMapElemKey()
  6678. }
  6679. ee.EncodeUint(uint64(k2))
  6680. if esep {
  6681. ee.WriteMapElemValue()
  6682. }
  6683. ee.EncodeUint(uint64(v2))
  6684. }
  6685. }
  6686. ee.WriteMapEnd()
  6687. }
  6688. func (e *Encoder) fastpathEncMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  6689. fastpathTV.EncMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), e)
  6690. }
  6691. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, e *Encoder) {
  6692. if v == nil {
  6693. e.e.EncodeNil()
  6694. return
  6695. }
  6696. ee, esep := e.e, e.hh.hasElemSeparators()
  6697. ee.WriteMapStart(len(v))
  6698. if e.h.Canonical {
  6699. v2 := make([]uint64, len(v))
  6700. var i uint
  6701. for k := range v {
  6702. v2[i] = uint64(k)
  6703. i++
  6704. }
  6705. sort.Sort(uintSlice(v2))
  6706. for _, k2 := range v2 {
  6707. if esep {
  6708. ee.WriteMapElemKey()
  6709. }
  6710. ee.EncodeUint(uint64(uint16(k2)))
  6711. if esep {
  6712. ee.WriteMapElemValue()
  6713. }
  6714. ee.EncodeUint(uint64(v[uint16(k2)]))
  6715. }
  6716. } else {
  6717. for k2, v2 := range v {
  6718. if esep {
  6719. ee.WriteMapElemKey()
  6720. }
  6721. ee.EncodeUint(uint64(k2))
  6722. if esep {
  6723. ee.WriteMapElemValue()
  6724. }
  6725. ee.EncodeUint(uint64(v2))
  6726. }
  6727. }
  6728. ee.WriteMapEnd()
  6729. }
  6730. func (e *Encoder) fastpathEncMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  6731. fastpathTV.EncMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), e)
  6732. }
  6733. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, e *Encoder) {
  6734. if v == nil {
  6735. e.e.EncodeNil()
  6736. return
  6737. }
  6738. ee, esep := e.e, e.hh.hasElemSeparators()
  6739. ee.WriteMapStart(len(v))
  6740. if e.h.Canonical {
  6741. v2 := make([]uint64, len(v))
  6742. var i uint
  6743. for k := range v {
  6744. v2[i] = uint64(k)
  6745. i++
  6746. }
  6747. sort.Sort(uintSlice(v2))
  6748. for _, k2 := range v2 {
  6749. if esep {
  6750. ee.WriteMapElemKey()
  6751. }
  6752. ee.EncodeUint(uint64(uint16(k2)))
  6753. if esep {
  6754. ee.WriteMapElemValue()
  6755. }
  6756. e.encode(v[uint16(k2)])
  6757. }
  6758. } else {
  6759. for k2, v2 := range v {
  6760. if esep {
  6761. ee.WriteMapElemKey()
  6762. }
  6763. ee.EncodeUint(uint64(k2))
  6764. if esep {
  6765. ee.WriteMapElemValue()
  6766. }
  6767. e.encode(v2)
  6768. }
  6769. }
  6770. ee.WriteMapEnd()
  6771. }
  6772. func (e *Encoder) fastpathEncMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  6773. fastpathTV.EncMapUint16IntV(rv2i(rv).(map[uint16]int), e)
  6774. }
  6775. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, e *Encoder) {
  6776. if v == nil {
  6777. e.e.EncodeNil()
  6778. return
  6779. }
  6780. ee, esep := e.e, e.hh.hasElemSeparators()
  6781. ee.WriteMapStart(len(v))
  6782. if e.h.Canonical {
  6783. v2 := make([]uint64, len(v))
  6784. var i uint
  6785. for k := range v {
  6786. v2[i] = uint64(k)
  6787. i++
  6788. }
  6789. sort.Sort(uintSlice(v2))
  6790. for _, k2 := range v2 {
  6791. if esep {
  6792. ee.WriteMapElemKey()
  6793. }
  6794. ee.EncodeUint(uint64(uint16(k2)))
  6795. if esep {
  6796. ee.WriteMapElemValue()
  6797. }
  6798. ee.EncodeInt(int64(v[uint16(k2)]))
  6799. }
  6800. } else {
  6801. for k2, v2 := range v {
  6802. if esep {
  6803. ee.WriteMapElemKey()
  6804. }
  6805. ee.EncodeUint(uint64(k2))
  6806. if esep {
  6807. ee.WriteMapElemValue()
  6808. }
  6809. ee.EncodeInt(int64(v2))
  6810. }
  6811. }
  6812. ee.WriteMapEnd()
  6813. }
  6814. func (e *Encoder) fastpathEncMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  6815. fastpathTV.EncMapUint16Int8V(rv2i(rv).(map[uint16]int8), e)
  6816. }
  6817. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, e *Encoder) {
  6818. if v == nil {
  6819. e.e.EncodeNil()
  6820. return
  6821. }
  6822. ee, esep := e.e, e.hh.hasElemSeparators()
  6823. ee.WriteMapStart(len(v))
  6824. if e.h.Canonical {
  6825. v2 := make([]uint64, len(v))
  6826. var i uint
  6827. for k := range v {
  6828. v2[i] = uint64(k)
  6829. i++
  6830. }
  6831. sort.Sort(uintSlice(v2))
  6832. for _, k2 := range v2 {
  6833. if esep {
  6834. ee.WriteMapElemKey()
  6835. }
  6836. ee.EncodeUint(uint64(uint16(k2)))
  6837. if esep {
  6838. ee.WriteMapElemValue()
  6839. }
  6840. ee.EncodeInt(int64(v[uint16(k2)]))
  6841. }
  6842. } else {
  6843. for k2, v2 := range v {
  6844. if esep {
  6845. ee.WriteMapElemKey()
  6846. }
  6847. ee.EncodeUint(uint64(k2))
  6848. if esep {
  6849. ee.WriteMapElemValue()
  6850. }
  6851. ee.EncodeInt(int64(v2))
  6852. }
  6853. }
  6854. ee.WriteMapEnd()
  6855. }
  6856. func (e *Encoder) fastpathEncMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  6857. fastpathTV.EncMapUint16Int16V(rv2i(rv).(map[uint16]int16), e)
  6858. }
  6859. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, 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. for _, k2 := range v2 {
  6875. if esep {
  6876. ee.WriteMapElemKey()
  6877. }
  6878. ee.EncodeUint(uint64(uint16(k2)))
  6879. if esep {
  6880. ee.WriteMapElemValue()
  6881. }
  6882. ee.EncodeInt(int64(v[uint16(k2)]))
  6883. }
  6884. } else {
  6885. for k2, v2 := range v {
  6886. if esep {
  6887. ee.WriteMapElemKey()
  6888. }
  6889. ee.EncodeUint(uint64(k2))
  6890. if esep {
  6891. ee.WriteMapElemValue()
  6892. }
  6893. ee.EncodeInt(int64(v2))
  6894. }
  6895. }
  6896. ee.WriteMapEnd()
  6897. }
  6898. func (e *Encoder) fastpathEncMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  6899. fastpathTV.EncMapUint16Int32V(rv2i(rv).(map[uint16]int32), e)
  6900. }
  6901. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, e *Encoder) {
  6902. if v == nil {
  6903. e.e.EncodeNil()
  6904. return
  6905. }
  6906. ee, esep := e.e, e.hh.hasElemSeparators()
  6907. ee.WriteMapStart(len(v))
  6908. if e.h.Canonical {
  6909. v2 := make([]uint64, len(v))
  6910. var i uint
  6911. for k := range v {
  6912. v2[i] = uint64(k)
  6913. i++
  6914. }
  6915. sort.Sort(uintSlice(v2))
  6916. for _, k2 := range v2 {
  6917. if esep {
  6918. ee.WriteMapElemKey()
  6919. }
  6920. ee.EncodeUint(uint64(uint16(k2)))
  6921. if esep {
  6922. ee.WriteMapElemValue()
  6923. }
  6924. ee.EncodeInt(int64(v[uint16(k2)]))
  6925. }
  6926. } else {
  6927. for k2, v2 := range v {
  6928. if esep {
  6929. ee.WriteMapElemKey()
  6930. }
  6931. ee.EncodeUint(uint64(k2))
  6932. if esep {
  6933. ee.WriteMapElemValue()
  6934. }
  6935. ee.EncodeInt(int64(v2))
  6936. }
  6937. }
  6938. ee.WriteMapEnd()
  6939. }
  6940. func (e *Encoder) fastpathEncMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  6941. fastpathTV.EncMapUint16Int64V(rv2i(rv).(map[uint16]int64), e)
  6942. }
  6943. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, e *Encoder) {
  6944. if v == nil {
  6945. e.e.EncodeNil()
  6946. return
  6947. }
  6948. ee, esep := e.e, e.hh.hasElemSeparators()
  6949. ee.WriteMapStart(len(v))
  6950. if e.h.Canonical {
  6951. v2 := make([]uint64, len(v))
  6952. var i uint
  6953. for k := range v {
  6954. v2[i] = uint64(k)
  6955. i++
  6956. }
  6957. sort.Sort(uintSlice(v2))
  6958. for _, k2 := range v2 {
  6959. if esep {
  6960. ee.WriteMapElemKey()
  6961. }
  6962. ee.EncodeUint(uint64(uint16(k2)))
  6963. if esep {
  6964. ee.WriteMapElemValue()
  6965. }
  6966. ee.EncodeInt(int64(v[uint16(k2)]))
  6967. }
  6968. } else {
  6969. for k2, v2 := range v {
  6970. if esep {
  6971. ee.WriteMapElemKey()
  6972. }
  6973. ee.EncodeUint(uint64(k2))
  6974. if esep {
  6975. ee.WriteMapElemValue()
  6976. }
  6977. ee.EncodeInt(int64(v2))
  6978. }
  6979. }
  6980. ee.WriteMapEnd()
  6981. }
  6982. func (e *Encoder) fastpathEncMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  6983. fastpathTV.EncMapUint16Float32V(rv2i(rv).(map[uint16]float32), e)
  6984. }
  6985. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, e *Encoder) {
  6986. if v == nil {
  6987. e.e.EncodeNil()
  6988. return
  6989. }
  6990. ee, esep := e.e, e.hh.hasElemSeparators()
  6991. ee.WriteMapStart(len(v))
  6992. if e.h.Canonical {
  6993. v2 := make([]uint64, len(v))
  6994. var i uint
  6995. for k := range v {
  6996. v2[i] = uint64(k)
  6997. i++
  6998. }
  6999. sort.Sort(uintSlice(v2))
  7000. for _, k2 := range v2 {
  7001. if esep {
  7002. ee.WriteMapElemKey()
  7003. }
  7004. ee.EncodeUint(uint64(uint16(k2)))
  7005. if esep {
  7006. ee.WriteMapElemValue()
  7007. }
  7008. ee.EncodeFloat32(v[uint16(k2)])
  7009. }
  7010. } else {
  7011. for k2, v2 := range v {
  7012. if esep {
  7013. ee.WriteMapElemKey()
  7014. }
  7015. ee.EncodeUint(uint64(k2))
  7016. if esep {
  7017. ee.WriteMapElemValue()
  7018. }
  7019. ee.EncodeFloat32(v2)
  7020. }
  7021. }
  7022. ee.WriteMapEnd()
  7023. }
  7024. func (e *Encoder) fastpathEncMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  7025. fastpathTV.EncMapUint16Float64V(rv2i(rv).(map[uint16]float64), e)
  7026. }
  7027. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, e *Encoder) {
  7028. if v == nil {
  7029. e.e.EncodeNil()
  7030. return
  7031. }
  7032. ee, esep := e.e, e.hh.hasElemSeparators()
  7033. ee.WriteMapStart(len(v))
  7034. if e.h.Canonical {
  7035. v2 := make([]uint64, len(v))
  7036. var i uint
  7037. for k := range v {
  7038. v2[i] = uint64(k)
  7039. i++
  7040. }
  7041. sort.Sort(uintSlice(v2))
  7042. for _, k2 := range v2 {
  7043. if esep {
  7044. ee.WriteMapElemKey()
  7045. }
  7046. ee.EncodeUint(uint64(uint16(k2)))
  7047. if esep {
  7048. ee.WriteMapElemValue()
  7049. }
  7050. ee.EncodeFloat64(v[uint16(k2)])
  7051. }
  7052. } else {
  7053. for k2, v2 := range v {
  7054. if esep {
  7055. ee.WriteMapElemKey()
  7056. }
  7057. ee.EncodeUint(uint64(k2))
  7058. if esep {
  7059. ee.WriteMapElemValue()
  7060. }
  7061. ee.EncodeFloat64(v2)
  7062. }
  7063. }
  7064. ee.WriteMapEnd()
  7065. }
  7066. func (e *Encoder) fastpathEncMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  7067. fastpathTV.EncMapUint16BoolV(rv2i(rv).(map[uint16]bool), e)
  7068. }
  7069. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, e *Encoder) {
  7070. if v == nil {
  7071. e.e.EncodeNil()
  7072. return
  7073. }
  7074. ee, esep := e.e, e.hh.hasElemSeparators()
  7075. ee.WriteMapStart(len(v))
  7076. if e.h.Canonical {
  7077. v2 := make([]uint64, len(v))
  7078. var i uint
  7079. for k := range v {
  7080. v2[i] = uint64(k)
  7081. i++
  7082. }
  7083. sort.Sort(uintSlice(v2))
  7084. for _, k2 := range v2 {
  7085. if esep {
  7086. ee.WriteMapElemKey()
  7087. }
  7088. ee.EncodeUint(uint64(uint16(k2)))
  7089. if esep {
  7090. ee.WriteMapElemValue()
  7091. }
  7092. ee.EncodeBool(v[uint16(k2)])
  7093. }
  7094. } else {
  7095. for k2, v2 := range v {
  7096. if esep {
  7097. ee.WriteMapElemKey()
  7098. }
  7099. ee.EncodeUint(uint64(k2))
  7100. if esep {
  7101. ee.WriteMapElemValue()
  7102. }
  7103. ee.EncodeBool(v2)
  7104. }
  7105. }
  7106. ee.WriteMapEnd()
  7107. }
  7108. func (e *Encoder) fastpathEncMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  7109. fastpathTV.EncMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), e)
  7110. }
  7111. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, e *Encoder) {
  7112. if v == nil {
  7113. e.e.EncodeNil()
  7114. return
  7115. }
  7116. ee, esep := e.e, e.hh.hasElemSeparators()
  7117. ee.WriteMapStart(len(v))
  7118. if e.h.Canonical {
  7119. v2 := make([]uint64, len(v))
  7120. var i uint
  7121. for k := range v {
  7122. v2[i] = uint64(k)
  7123. i++
  7124. }
  7125. sort.Sort(uintSlice(v2))
  7126. for _, k2 := range v2 {
  7127. if esep {
  7128. ee.WriteMapElemKey()
  7129. }
  7130. ee.EncodeUint(uint64(uint32(k2)))
  7131. if esep {
  7132. ee.WriteMapElemValue()
  7133. }
  7134. e.encode(v[uint32(k2)])
  7135. }
  7136. } else {
  7137. for k2, v2 := range v {
  7138. if esep {
  7139. ee.WriteMapElemKey()
  7140. }
  7141. ee.EncodeUint(uint64(k2))
  7142. if esep {
  7143. ee.WriteMapElemValue()
  7144. }
  7145. e.encode(v2)
  7146. }
  7147. }
  7148. ee.WriteMapEnd()
  7149. }
  7150. func (e *Encoder) fastpathEncMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  7151. fastpathTV.EncMapUint32StringV(rv2i(rv).(map[uint32]string), e)
  7152. }
  7153. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, e *Encoder) {
  7154. if v == nil {
  7155. e.e.EncodeNil()
  7156. return
  7157. }
  7158. ee, esep := e.e, e.hh.hasElemSeparators()
  7159. ee.WriteMapStart(len(v))
  7160. if e.h.Canonical {
  7161. v2 := make([]uint64, len(v))
  7162. var i uint
  7163. for k := range v {
  7164. v2[i] = uint64(k)
  7165. i++
  7166. }
  7167. sort.Sort(uintSlice(v2))
  7168. for _, k2 := range v2 {
  7169. if esep {
  7170. ee.WriteMapElemKey()
  7171. }
  7172. ee.EncodeUint(uint64(uint32(k2)))
  7173. if esep {
  7174. ee.WriteMapElemValue()
  7175. }
  7176. if e.h.StringToRaw {
  7177. ee.EncodeStringBytesRaw(bytesView(v[uint32(k2)]))
  7178. } else {
  7179. ee.EncodeStringEnc(cUTF8, v[uint32(k2)])
  7180. }
  7181. }
  7182. } else {
  7183. for k2, v2 := range v {
  7184. if esep {
  7185. ee.WriteMapElemKey()
  7186. }
  7187. ee.EncodeUint(uint64(k2))
  7188. if esep {
  7189. ee.WriteMapElemValue()
  7190. }
  7191. if e.h.StringToRaw {
  7192. ee.EncodeStringBytesRaw(bytesView(v2))
  7193. } else {
  7194. ee.EncodeStringEnc(cUTF8, v2)
  7195. }
  7196. }
  7197. }
  7198. ee.WriteMapEnd()
  7199. }
  7200. func (e *Encoder) fastpathEncMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  7201. fastpathTV.EncMapUint32UintV(rv2i(rv).(map[uint32]uint), e)
  7202. }
  7203. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, e *Encoder) {
  7204. if v == nil {
  7205. e.e.EncodeNil()
  7206. return
  7207. }
  7208. ee, esep := e.e, e.hh.hasElemSeparators()
  7209. ee.WriteMapStart(len(v))
  7210. if e.h.Canonical {
  7211. v2 := make([]uint64, len(v))
  7212. var i uint
  7213. for k := range v {
  7214. v2[i] = uint64(k)
  7215. i++
  7216. }
  7217. sort.Sort(uintSlice(v2))
  7218. for _, k2 := range v2 {
  7219. if esep {
  7220. ee.WriteMapElemKey()
  7221. }
  7222. ee.EncodeUint(uint64(uint32(k2)))
  7223. if esep {
  7224. ee.WriteMapElemValue()
  7225. }
  7226. ee.EncodeUint(uint64(v[uint32(k2)]))
  7227. }
  7228. } else {
  7229. for k2, v2 := range v {
  7230. if esep {
  7231. ee.WriteMapElemKey()
  7232. }
  7233. ee.EncodeUint(uint64(k2))
  7234. if esep {
  7235. ee.WriteMapElemValue()
  7236. }
  7237. ee.EncodeUint(uint64(v2))
  7238. }
  7239. }
  7240. ee.WriteMapEnd()
  7241. }
  7242. func (e *Encoder) fastpathEncMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  7243. fastpathTV.EncMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), e)
  7244. }
  7245. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, e *Encoder) {
  7246. if v == nil {
  7247. e.e.EncodeNil()
  7248. return
  7249. }
  7250. ee, esep := e.e, e.hh.hasElemSeparators()
  7251. ee.WriteMapStart(len(v))
  7252. if e.h.Canonical {
  7253. v2 := make([]uint64, len(v))
  7254. var i uint
  7255. for k := range v {
  7256. v2[i] = uint64(k)
  7257. i++
  7258. }
  7259. sort.Sort(uintSlice(v2))
  7260. for _, k2 := range v2 {
  7261. if esep {
  7262. ee.WriteMapElemKey()
  7263. }
  7264. ee.EncodeUint(uint64(uint32(k2)))
  7265. if esep {
  7266. ee.WriteMapElemValue()
  7267. }
  7268. ee.EncodeUint(uint64(v[uint32(k2)]))
  7269. }
  7270. } else {
  7271. for k2, v2 := range v {
  7272. if esep {
  7273. ee.WriteMapElemKey()
  7274. }
  7275. ee.EncodeUint(uint64(k2))
  7276. if esep {
  7277. ee.WriteMapElemValue()
  7278. }
  7279. ee.EncodeUint(uint64(v2))
  7280. }
  7281. }
  7282. ee.WriteMapEnd()
  7283. }
  7284. func (e *Encoder) fastpathEncMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  7285. fastpathTV.EncMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), e)
  7286. }
  7287. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, e *Encoder) {
  7288. if v == nil {
  7289. e.e.EncodeNil()
  7290. return
  7291. }
  7292. ee, esep := e.e, e.hh.hasElemSeparators()
  7293. ee.WriteMapStart(len(v))
  7294. if e.h.Canonical {
  7295. v2 := make([]uint64, len(v))
  7296. var i uint
  7297. for k := range v {
  7298. v2[i] = uint64(k)
  7299. i++
  7300. }
  7301. sort.Sort(uintSlice(v2))
  7302. for _, k2 := range v2 {
  7303. if esep {
  7304. ee.WriteMapElemKey()
  7305. }
  7306. ee.EncodeUint(uint64(uint32(k2)))
  7307. if esep {
  7308. ee.WriteMapElemValue()
  7309. }
  7310. ee.EncodeUint(uint64(v[uint32(k2)]))
  7311. }
  7312. } else {
  7313. for k2, v2 := range v {
  7314. if esep {
  7315. ee.WriteMapElemKey()
  7316. }
  7317. ee.EncodeUint(uint64(k2))
  7318. if esep {
  7319. ee.WriteMapElemValue()
  7320. }
  7321. ee.EncodeUint(uint64(v2))
  7322. }
  7323. }
  7324. ee.WriteMapEnd()
  7325. }
  7326. func (e *Encoder) fastpathEncMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  7327. fastpathTV.EncMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), e)
  7328. }
  7329. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, e *Encoder) {
  7330. if v == nil {
  7331. e.e.EncodeNil()
  7332. return
  7333. }
  7334. ee, esep := e.e, e.hh.hasElemSeparators()
  7335. ee.WriteMapStart(len(v))
  7336. if e.h.Canonical {
  7337. v2 := make([]uint64, len(v))
  7338. var i uint
  7339. for k := range v {
  7340. v2[i] = uint64(k)
  7341. i++
  7342. }
  7343. sort.Sort(uintSlice(v2))
  7344. for _, k2 := range v2 {
  7345. if esep {
  7346. ee.WriteMapElemKey()
  7347. }
  7348. ee.EncodeUint(uint64(uint32(k2)))
  7349. if esep {
  7350. ee.WriteMapElemValue()
  7351. }
  7352. ee.EncodeUint(uint64(v[uint32(k2)]))
  7353. }
  7354. } else {
  7355. for k2, v2 := range v {
  7356. if esep {
  7357. ee.WriteMapElemKey()
  7358. }
  7359. ee.EncodeUint(uint64(k2))
  7360. if esep {
  7361. ee.WriteMapElemValue()
  7362. }
  7363. ee.EncodeUint(uint64(v2))
  7364. }
  7365. }
  7366. ee.WriteMapEnd()
  7367. }
  7368. func (e *Encoder) fastpathEncMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  7369. fastpathTV.EncMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), e)
  7370. }
  7371. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, e *Encoder) {
  7372. if v == nil {
  7373. e.e.EncodeNil()
  7374. return
  7375. }
  7376. ee, esep := e.e, e.hh.hasElemSeparators()
  7377. ee.WriteMapStart(len(v))
  7378. if e.h.Canonical {
  7379. v2 := make([]uint64, len(v))
  7380. var i uint
  7381. for k := range v {
  7382. v2[i] = uint64(k)
  7383. i++
  7384. }
  7385. sort.Sort(uintSlice(v2))
  7386. for _, k2 := range v2 {
  7387. if esep {
  7388. ee.WriteMapElemKey()
  7389. }
  7390. ee.EncodeUint(uint64(uint32(k2)))
  7391. if esep {
  7392. ee.WriteMapElemValue()
  7393. }
  7394. ee.EncodeUint(uint64(v[uint32(k2)]))
  7395. }
  7396. } else {
  7397. for k2, v2 := range v {
  7398. if esep {
  7399. ee.WriteMapElemKey()
  7400. }
  7401. ee.EncodeUint(uint64(k2))
  7402. if esep {
  7403. ee.WriteMapElemValue()
  7404. }
  7405. ee.EncodeUint(uint64(v2))
  7406. }
  7407. }
  7408. ee.WriteMapEnd()
  7409. }
  7410. func (e *Encoder) fastpathEncMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  7411. fastpathTV.EncMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), e)
  7412. }
  7413. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, e *Encoder) {
  7414. if v == nil {
  7415. e.e.EncodeNil()
  7416. return
  7417. }
  7418. ee, esep := e.e, e.hh.hasElemSeparators()
  7419. ee.WriteMapStart(len(v))
  7420. if e.h.Canonical {
  7421. v2 := make([]uint64, len(v))
  7422. var i uint
  7423. for k := range v {
  7424. v2[i] = uint64(k)
  7425. i++
  7426. }
  7427. sort.Sort(uintSlice(v2))
  7428. for _, k2 := range v2 {
  7429. if esep {
  7430. ee.WriteMapElemKey()
  7431. }
  7432. ee.EncodeUint(uint64(uint32(k2)))
  7433. if esep {
  7434. ee.WriteMapElemValue()
  7435. }
  7436. e.encode(v[uint32(k2)])
  7437. }
  7438. } else {
  7439. for k2, v2 := range v {
  7440. if esep {
  7441. ee.WriteMapElemKey()
  7442. }
  7443. ee.EncodeUint(uint64(k2))
  7444. if esep {
  7445. ee.WriteMapElemValue()
  7446. }
  7447. e.encode(v2)
  7448. }
  7449. }
  7450. ee.WriteMapEnd()
  7451. }
  7452. func (e *Encoder) fastpathEncMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  7453. fastpathTV.EncMapUint32IntV(rv2i(rv).(map[uint32]int), e)
  7454. }
  7455. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, e *Encoder) {
  7456. if v == nil {
  7457. e.e.EncodeNil()
  7458. return
  7459. }
  7460. ee, esep := e.e, e.hh.hasElemSeparators()
  7461. ee.WriteMapStart(len(v))
  7462. if e.h.Canonical {
  7463. v2 := make([]uint64, len(v))
  7464. var i uint
  7465. for k := range v {
  7466. v2[i] = uint64(k)
  7467. i++
  7468. }
  7469. sort.Sort(uintSlice(v2))
  7470. for _, k2 := range v2 {
  7471. if esep {
  7472. ee.WriteMapElemKey()
  7473. }
  7474. ee.EncodeUint(uint64(uint32(k2)))
  7475. if esep {
  7476. ee.WriteMapElemValue()
  7477. }
  7478. ee.EncodeInt(int64(v[uint32(k2)]))
  7479. }
  7480. } else {
  7481. for k2, v2 := range v {
  7482. if esep {
  7483. ee.WriteMapElemKey()
  7484. }
  7485. ee.EncodeUint(uint64(k2))
  7486. if esep {
  7487. ee.WriteMapElemValue()
  7488. }
  7489. ee.EncodeInt(int64(v2))
  7490. }
  7491. }
  7492. ee.WriteMapEnd()
  7493. }
  7494. func (e *Encoder) fastpathEncMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  7495. fastpathTV.EncMapUint32Int8V(rv2i(rv).(map[uint32]int8), e)
  7496. }
  7497. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, e *Encoder) {
  7498. if v == nil {
  7499. e.e.EncodeNil()
  7500. return
  7501. }
  7502. ee, esep := e.e, e.hh.hasElemSeparators()
  7503. ee.WriteMapStart(len(v))
  7504. if e.h.Canonical {
  7505. v2 := make([]uint64, len(v))
  7506. var i uint
  7507. for k := range v {
  7508. v2[i] = uint64(k)
  7509. i++
  7510. }
  7511. sort.Sort(uintSlice(v2))
  7512. for _, k2 := range v2 {
  7513. if esep {
  7514. ee.WriteMapElemKey()
  7515. }
  7516. ee.EncodeUint(uint64(uint32(k2)))
  7517. if esep {
  7518. ee.WriteMapElemValue()
  7519. }
  7520. ee.EncodeInt(int64(v[uint32(k2)]))
  7521. }
  7522. } else {
  7523. for k2, v2 := range v {
  7524. if esep {
  7525. ee.WriteMapElemKey()
  7526. }
  7527. ee.EncodeUint(uint64(k2))
  7528. if esep {
  7529. ee.WriteMapElemValue()
  7530. }
  7531. ee.EncodeInt(int64(v2))
  7532. }
  7533. }
  7534. ee.WriteMapEnd()
  7535. }
  7536. func (e *Encoder) fastpathEncMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  7537. fastpathTV.EncMapUint32Int16V(rv2i(rv).(map[uint32]int16), e)
  7538. }
  7539. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, e *Encoder) {
  7540. if v == nil {
  7541. e.e.EncodeNil()
  7542. return
  7543. }
  7544. ee, esep := e.e, e.hh.hasElemSeparators()
  7545. ee.WriteMapStart(len(v))
  7546. if e.h.Canonical {
  7547. v2 := make([]uint64, len(v))
  7548. var i uint
  7549. for k := range v {
  7550. v2[i] = uint64(k)
  7551. i++
  7552. }
  7553. sort.Sort(uintSlice(v2))
  7554. for _, k2 := range v2 {
  7555. if esep {
  7556. ee.WriteMapElemKey()
  7557. }
  7558. ee.EncodeUint(uint64(uint32(k2)))
  7559. if esep {
  7560. ee.WriteMapElemValue()
  7561. }
  7562. ee.EncodeInt(int64(v[uint32(k2)]))
  7563. }
  7564. } else {
  7565. for k2, v2 := range v {
  7566. if esep {
  7567. ee.WriteMapElemKey()
  7568. }
  7569. ee.EncodeUint(uint64(k2))
  7570. if esep {
  7571. ee.WriteMapElemValue()
  7572. }
  7573. ee.EncodeInt(int64(v2))
  7574. }
  7575. }
  7576. ee.WriteMapEnd()
  7577. }
  7578. func (e *Encoder) fastpathEncMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  7579. fastpathTV.EncMapUint32Int32V(rv2i(rv).(map[uint32]int32), e)
  7580. }
  7581. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, e *Encoder) {
  7582. if v == nil {
  7583. e.e.EncodeNil()
  7584. return
  7585. }
  7586. ee, esep := e.e, e.hh.hasElemSeparators()
  7587. ee.WriteMapStart(len(v))
  7588. if e.h.Canonical {
  7589. v2 := make([]uint64, len(v))
  7590. var i uint
  7591. for k := range v {
  7592. v2[i] = uint64(k)
  7593. i++
  7594. }
  7595. sort.Sort(uintSlice(v2))
  7596. for _, k2 := range v2 {
  7597. if esep {
  7598. ee.WriteMapElemKey()
  7599. }
  7600. ee.EncodeUint(uint64(uint32(k2)))
  7601. if esep {
  7602. ee.WriteMapElemValue()
  7603. }
  7604. ee.EncodeInt(int64(v[uint32(k2)]))
  7605. }
  7606. } else {
  7607. for k2, v2 := range v {
  7608. if esep {
  7609. ee.WriteMapElemKey()
  7610. }
  7611. ee.EncodeUint(uint64(k2))
  7612. if esep {
  7613. ee.WriteMapElemValue()
  7614. }
  7615. ee.EncodeInt(int64(v2))
  7616. }
  7617. }
  7618. ee.WriteMapEnd()
  7619. }
  7620. func (e *Encoder) fastpathEncMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  7621. fastpathTV.EncMapUint32Int64V(rv2i(rv).(map[uint32]int64), e)
  7622. }
  7623. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, e *Encoder) {
  7624. if v == nil {
  7625. e.e.EncodeNil()
  7626. return
  7627. }
  7628. ee, esep := e.e, e.hh.hasElemSeparators()
  7629. ee.WriteMapStart(len(v))
  7630. if e.h.Canonical {
  7631. v2 := make([]uint64, len(v))
  7632. var i uint
  7633. for k := range v {
  7634. v2[i] = uint64(k)
  7635. i++
  7636. }
  7637. sort.Sort(uintSlice(v2))
  7638. for _, k2 := range v2 {
  7639. if esep {
  7640. ee.WriteMapElemKey()
  7641. }
  7642. ee.EncodeUint(uint64(uint32(k2)))
  7643. if esep {
  7644. ee.WriteMapElemValue()
  7645. }
  7646. ee.EncodeInt(int64(v[uint32(k2)]))
  7647. }
  7648. } else {
  7649. for k2, v2 := range v {
  7650. if esep {
  7651. ee.WriteMapElemKey()
  7652. }
  7653. ee.EncodeUint(uint64(k2))
  7654. if esep {
  7655. ee.WriteMapElemValue()
  7656. }
  7657. ee.EncodeInt(int64(v2))
  7658. }
  7659. }
  7660. ee.WriteMapEnd()
  7661. }
  7662. func (e *Encoder) fastpathEncMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  7663. fastpathTV.EncMapUint32Float32V(rv2i(rv).(map[uint32]float32), e)
  7664. }
  7665. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, e *Encoder) {
  7666. if v == nil {
  7667. e.e.EncodeNil()
  7668. return
  7669. }
  7670. ee, esep := e.e, e.hh.hasElemSeparators()
  7671. ee.WriteMapStart(len(v))
  7672. if e.h.Canonical {
  7673. v2 := make([]uint64, len(v))
  7674. var i uint
  7675. for k := range v {
  7676. v2[i] = uint64(k)
  7677. i++
  7678. }
  7679. sort.Sort(uintSlice(v2))
  7680. for _, k2 := range v2 {
  7681. if esep {
  7682. ee.WriteMapElemKey()
  7683. }
  7684. ee.EncodeUint(uint64(uint32(k2)))
  7685. if esep {
  7686. ee.WriteMapElemValue()
  7687. }
  7688. ee.EncodeFloat32(v[uint32(k2)])
  7689. }
  7690. } else {
  7691. for k2, v2 := range v {
  7692. if esep {
  7693. ee.WriteMapElemKey()
  7694. }
  7695. ee.EncodeUint(uint64(k2))
  7696. if esep {
  7697. ee.WriteMapElemValue()
  7698. }
  7699. ee.EncodeFloat32(v2)
  7700. }
  7701. }
  7702. ee.WriteMapEnd()
  7703. }
  7704. func (e *Encoder) fastpathEncMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  7705. fastpathTV.EncMapUint32Float64V(rv2i(rv).(map[uint32]float64), e)
  7706. }
  7707. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, e *Encoder) {
  7708. if v == nil {
  7709. e.e.EncodeNil()
  7710. return
  7711. }
  7712. ee, esep := e.e, e.hh.hasElemSeparators()
  7713. ee.WriteMapStart(len(v))
  7714. if e.h.Canonical {
  7715. v2 := make([]uint64, len(v))
  7716. var i uint
  7717. for k := range v {
  7718. v2[i] = uint64(k)
  7719. i++
  7720. }
  7721. sort.Sort(uintSlice(v2))
  7722. for _, k2 := range v2 {
  7723. if esep {
  7724. ee.WriteMapElemKey()
  7725. }
  7726. ee.EncodeUint(uint64(uint32(k2)))
  7727. if esep {
  7728. ee.WriteMapElemValue()
  7729. }
  7730. ee.EncodeFloat64(v[uint32(k2)])
  7731. }
  7732. } else {
  7733. for k2, v2 := range v {
  7734. if esep {
  7735. ee.WriteMapElemKey()
  7736. }
  7737. ee.EncodeUint(uint64(k2))
  7738. if esep {
  7739. ee.WriteMapElemValue()
  7740. }
  7741. ee.EncodeFloat64(v2)
  7742. }
  7743. }
  7744. ee.WriteMapEnd()
  7745. }
  7746. func (e *Encoder) fastpathEncMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  7747. fastpathTV.EncMapUint32BoolV(rv2i(rv).(map[uint32]bool), e)
  7748. }
  7749. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, e *Encoder) {
  7750. if v == nil {
  7751. e.e.EncodeNil()
  7752. return
  7753. }
  7754. ee, esep := e.e, e.hh.hasElemSeparators()
  7755. ee.WriteMapStart(len(v))
  7756. if e.h.Canonical {
  7757. v2 := make([]uint64, len(v))
  7758. var i uint
  7759. for k := range v {
  7760. v2[i] = uint64(k)
  7761. i++
  7762. }
  7763. sort.Sort(uintSlice(v2))
  7764. for _, k2 := range v2 {
  7765. if esep {
  7766. ee.WriteMapElemKey()
  7767. }
  7768. ee.EncodeUint(uint64(uint32(k2)))
  7769. if esep {
  7770. ee.WriteMapElemValue()
  7771. }
  7772. ee.EncodeBool(v[uint32(k2)])
  7773. }
  7774. } else {
  7775. for k2, v2 := range v {
  7776. if esep {
  7777. ee.WriteMapElemKey()
  7778. }
  7779. ee.EncodeUint(uint64(k2))
  7780. if esep {
  7781. ee.WriteMapElemValue()
  7782. }
  7783. ee.EncodeBool(v2)
  7784. }
  7785. }
  7786. ee.WriteMapEnd()
  7787. }
  7788. func (e *Encoder) fastpathEncMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  7789. fastpathTV.EncMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), e)
  7790. }
  7791. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, e *Encoder) {
  7792. if v == nil {
  7793. e.e.EncodeNil()
  7794. return
  7795. }
  7796. ee, esep := e.e, e.hh.hasElemSeparators()
  7797. ee.WriteMapStart(len(v))
  7798. if e.h.Canonical {
  7799. v2 := make([]uint64, len(v))
  7800. var i uint
  7801. for k := range v {
  7802. v2[i] = uint64(k)
  7803. i++
  7804. }
  7805. sort.Sort(uintSlice(v2))
  7806. for _, k2 := range v2 {
  7807. if esep {
  7808. ee.WriteMapElemKey()
  7809. }
  7810. ee.EncodeUint(uint64(uint64(k2)))
  7811. if esep {
  7812. ee.WriteMapElemValue()
  7813. }
  7814. e.encode(v[uint64(k2)])
  7815. }
  7816. } else {
  7817. for k2, v2 := range v {
  7818. if esep {
  7819. ee.WriteMapElemKey()
  7820. }
  7821. ee.EncodeUint(uint64(k2))
  7822. if esep {
  7823. ee.WriteMapElemValue()
  7824. }
  7825. e.encode(v2)
  7826. }
  7827. }
  7828. ee.WriteMapEnd()
  7829. }
  7830. func (e *Encoder) fastpathEncMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  7831. fastpathTV.EncMapUint64StringV(rv2i(rv).(map[uint64]string), e)
  7832. }
  7833. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, e *Encoder) {
  7834. if v == nil {
  7835. e.e.EncodeNil()
  7836. return
  7837. }
  7838. ee, esep := e.e, e.hh.hasElemSeparators()
  7839. ee.WriteMapStart(len(v))
  7840. if e.h.Canonical {
  7841. v2 := make([]uint64, len(v))
  7842. var i uint
  7843. for k := range v {
  7844. v2[i] = uint64(k)
  7845. i++
  7846. }
  7847. sort.Sort(uintSlice(v2))
  7848. for _, k2 := range v2 {
  7849. if esep {
  7850. ee.WriteMapElemKey()
  7851. }
  7852. ee.EncodeUint(uint64(uint64(k2)))
  7853. if esep {
  7854. ee.WriteMapElemValue()
  7855. }
  7856. if e.h.StringToRaw {
  7857. ee.EncodeStringBytesRaw(bytesView(v[uint64(k2)]))
  7858. } else {
  7859. ee.EncodeStringEnc(cUTF8, v[uint64(k2)])
  7860. }
  7861. }
  7862. } else {
  7863. for k2, v2 := range v {
  7864. if esep {
  7865. ee.WriteMapElemKey()
  7866. }
  7867. ee.EncodeUint(uint64(k2))
  7868. if esep {
  7869. ee.WriteMapElemValue()
  7870. }
  7871. if e.h.StringToRaw {
  7872. ee.EncodeStringBytesRaw(bytesView(v2))
  7873. } else {
  7874. ee.EncodeStringEnc(cUTF8, v2)
  7875. }
  7876. }
  7877. }
  7878. ee.WriteMapEnd()
  7879. }
  7880. func (e *Encoder) fastpathEncMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  7881. fastpathTV.EncMapUint64UintV(rv2i(rv).(map[uint64]uint), e)
  7882. }
  7883. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, e *Encoder) {
  7884. if v == nil {
  7885. e.e.EncodeNil()
  7886. return
  7887. }
  7888. ee, esep := e.e, e.hh.hasElemSeparators()
  7889. ee.WriteMapStart(len(v))
  7890. if e.h.Canonical {
  7891. v2 := make([]uint64, len(v))
  7892. var i uint
  7893. for k := range v {
  7894. v2[i] = uint64(k)
  7895. i++
  7896. }
  7897. sort.Sort(uintSlice(v2))
  7898. for _, k2 := range v2 {
  7899. if esep {
  7900. ee.WriteMapElemKey()
  7901. }
  7902. ee.EncodeUint(uint64(uint64(k2)))
  7903. if esep {
  7904. ee.WriteMapElemValue()
  7905. }
  7906. ee.EncodeUint(uint64(v[uint64(k2)]))
  7907. }
  7908. } else {
  7909. for k2, v2 := range v {
  7910. if esep {
  7911. ee.WriteMapElemKey()
  7912. }
  7913. ee.EncodeUint(uint64(k2))
  7914. if esep {
  7915. ee.WriteMapElemValue()
  7916. }
  7917. ee.EncodeUint(uint64(v2))
  7918. }
  7919. }
  7920. ee.WriteMapEnd()
  7921. }
  7922. func (e *Encoder) fastpathEncMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  7923. fastpathTV.EncMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), e)
  7924. }
  7925. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, e *Encoder) {
  7926. if v == nil {
  7927. e.e.EncodeNil()
  7928. return
  7929. }
  7930. ee, esep := e.e, e.hh.hasElemSeparators()
  7931. ee.WriteMapStart(len(v))
  7932. if e.h.Canonical {
  7933. v2 := make([]uint64, len(v))
  7934. var i uint
  7935. for k := range v {
  7936. v2[i] = uint64(k)
  7937. i++
  7938. }
  7939. sort.Sort(uintSlice(v2))
  7940. for _, k2 := range v2 {
  7941. if esep {
  7942. ee.WriteMapElemKey()
  7943. }
  7944. ee.EncodeUint(uint64(uint64(k2)))
  7945. if esep {
  7946. ee.WriteMapElemValue()
  7947. }
  7948. ee.EncodeUint(uint64(v[uint64(k2)]))
  7949. }
  7950. } else {
  7951. for k2, v2 := range v {
  7952. if esep {
  7953. ee.WriteMapElemKey()
  7954. }
  7955. ee.EncodeUint(uint64(k2))
  7956. if esep {
  7957. ee.WriteMapElemValue()
  7958. }
  7959. ee.EncodeUint(uint64(v2))
  7960. }
  7961. }
  7962. ee.WriteMapEnd()
  7963. }
  7964. func (e *Encoder) fastpathEncMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  7965. fastpathTV.EncMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), e)
  7966. }
  7967. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, e *Encoder) {
  7968. if v == nil {
  7969. e.e.EncodeNil()
  7970. return
  7971. }
  7972. ee, esep := e.e, e.hh.hasElemSeparators()
  7973. ee.WriteMapStart(len(v))
  7974. if e.h.Canonical {
  7975. v2 := make([]uint64, len(v))
  7976. var i uint
  7977. for k := range v {
  7978. v2[i] = uint64(k)
  7979. i++
  7980. }
  7981. sort.Sort(uintSlice(v2))
  7982. for _, k2 := range v2 {
  7983. if esep {
  7984. ee.WriteMapElemKey()
  7985. }
  7986. ee.EncodeUint(uint64(uint64(k2)))
  7987. if esep {
  7988. ee.WriteMapElemValue()
  7989. }
  7990. ee.EncodeUint(uint64(v[uint64(k2)]))
  7991. }
  7992. } else {
  7993. for k2, v2 := range v {
  7994. if esep {
  7995. ee.WriteMapElemKey()
  7996. }
  7997. ee.EncodeUint(uint64(k2))
  7998. if esep {
  7999. ee.WriteMapElemValue()
  8000. }
  8001. ee.EncodeUint(uint64(v2))
  8002. }
  8003. }
  8004. ee.WriteMapEnd()
  8005. }
  8006. func (e *Encoder) fastpathEncMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  8007. fastpathTV.EncMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), e)
  8008. }
  8009. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, e *Encoder) {
  8010. if v == nil {
  8011. e.e.EncodeNil()
  8012. return
  8013. }
  8014. ee, esep := e.e, e.hh.hasElemSeparators()
  8015. ee.WriteMapStart(len(v))
  8016. if e.h.Canonical {
  8017. v2 := make([]uint64, len(v))
  8018. var i uint
  8019. for k := range v {
  8020. v2[i] = uint64(k)
  8021. i++
  8022. }
  8023. sort.Sort(uintSlice(v2))
  8024. for _, k2 := range v2 {
  8025. if esep {
  8026. ee.WriteMapElemKey()
  8027. }
  8028. ee.EncodeUint(uint64(uint64(k2)))
  8029. if esep {
  8030. ee.WriteMapElemValue()
  8031. }
  8032. ee.EncodeUint(uint64(v[uint64(k2)]))
  8033. }
  8034. } else {
  8035. for k2, v2 := range v {
  8036. if esep {
  8037. ee.WriteMapElemKey()
  8038. }
  8039. ee.EncodeUint(uint64(k2))
  8040. if esep {
  8041. ee.WriteMapElemValue()
  8042. }
  8043. ee.EncodeUint(uint64(v2))
  8044. }
  8045. }
  8046. ee.WriteMapEnd()
  8047. }
  8048. func (e *Encoder) fastpathEncMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  8049. fastpathTV.EncMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), e)
  8050. }
  8051. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, e *Encoder) {
  8052. if v == nil {
  8053. e.e.EncodeNil()
  8054. return
  8055. }
  8056. ee, esep := e.e, e.hh.hasElemSeparators()
  8057. ee.WriteMapStart(len(v))
  8058. if e.h.Canonical {
  8059. v2 := make([]uint64, len(v))
  8060. var i uint
  8061. for k := range v {
  8062. v2[i] = uint64(k)
  8063. i++
  8064. }
  8065. sort.Sort(uintSlice(v2))
  8066. for _, k2 := range v2 {
  8067. if esep {
  8068. ee.WriteMapElemKey()
  8069. }
  8070. ee.EncodeUint(uint64(uint64(k2)))
  8071. if esep {
  8072. ee.WriteMapElemValue()
  8073. }
  8074. ee.EncodeUint(uint64(v[uint64(k2)]))
  8075. }
  8076. } else {
  8077. for k2, v2 := range v {
  8078. if esep {
  8079. ee.WriteMapElemKey()
  8080. }
  8081. ee.EncodeUint(uint64(k2))
  8082. if esep {
  8083. ee.WriteMapElemValue()
  8084. }
  8085. ee.EncodeUint(uint64(v2))
  8086. }
  8087. }
  8088. ee.WriteMapEnd()
  8089. }
  8090. func (e *Encoder) fastpathEncMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  8091. fastpathTV.EncMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), e)
  8092. }
  8093. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, e *Encoder) {
  8094. if v == nil {
  8095. e.e.EncodeNil()
  8096. return
  8097. }
  8098. ee, esep := e.e, e.hh.hasElemSeparators()
  8099. ee.WriteMapStart(len(v))
  8100. if e.h.Canonical {
  8101. v2 := make([]uint64, len(v))
  8102. var i uint
  8103. for k := range v {
  8104. v2[i] = uint64(k)
  8105. i++
  8106. }
  8107. sort.Sort(uintSlice(v2))
  8108. for _, k2 := range v2 {
  8109. if esep {
  8110. ee.WriteMapElemKey()
  8111. }
  8112. ee.EncodeUint(uint64(uint64(k2)))
  8113. if esep {
  8114. ee.WriteMapElemValue()
  8115. }
  8116. e.encode(v[uint64(k2)])
  8117. }
  8118. } else {
  8119. for k2, v2 := range v {
  8120. if esep {
  8121. ee.WriteMapElemKey()
  8122. }
  8123. ee.EncodeUint(uint64(k2))
  8124. if esep {
  8125. ee.WriteMapElemValue()
  8126. }
  8127. e.encode(v2)
  8128. }
  8129. }
  8130. ee.WriteMapEnd()
  8131. }
  8132. func (e *Encoder) fastpathEncMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  8133. fastpathTV.EncMapUint64IntV(rv2i(rv).(map[uint64]int), e)
  8134. }
  8135. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, e *Encoder) {
  8136. if v == nil {
  8137. e.e.EncodeNil()
  8138. return
  8139. }
  8140. ee, esep := e.e, e.hh.hasElemSeparators()
  8141. ee.WriteMapStart(len(v))
  8142. if e.h.Canonical {
  8143. v2 := make([]uint64, len(v))
  8144. var i uint
  8145. for k := range v {
  8146. v2[i] = uint64(k)
  8147. i++
  8148. }
  8149. sort.Sort(uintSlice(v2))
  8150. for _, k2 := range v2 {
  8151. if esep {
  8152. ee.WriteMapElemKey()
  8153. }
  8154. ee.EncodeUint(uint64(uint64(k2)))
  8155. if esep {
  8156. ee.WriteMapElemValue()
  8157. }
  8158. ee.EncodeInt(int64(v[uint64(k2)]))
  8159. }
  8160. } else {
  8161. for k2, v2 := range v {
  8162. if esep {
  8163. ee.WriteMapElemKey()
  8164. }
  8165. ee.EncodeUint(uint64(k2))
  8166. if esep {
  8167. ee.WriteMapElemValue()
  8168. }
  8169. ee.EncodeInt(int64(v2))
  8170. }
  8171. }
  8172. ee.WriteMapEnd()
  8173. }
  8174. func (e *Encoder) fastpathEncMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  8175. fastpathTV.EncMapUint64Int8V(rv2i(rv).(map[uint64]int8), e)
  8176. }
  8177. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, e *Encoder) {
  8178. if v == nil {
  8179. e.e.EncodeNil()
  8180. return
  8181. }
  8182. ee, esep := e.e, e.hh.hasElemSeparators()
  8183. ee.WriteMapStart(len(v))
  8184. if e.h.Canonical {
  8185. v2 := make([]uint64, len(v))
  8186. var i uint
  8187. for k := range v {
  8188. v2[i] = uint64(k)
  8189. i++
  8190. }
  8191. sort.Sort(uintSlice(v2))
  8192. for _, k2 := range v2 {
  8193. if esep {
  8194. ee.WriteMapElemKey()
  8195. }
  8196. ee.EncodeUint(uint64(uint64(k2)))
  8197. if esep {
  8198. ee.WriteMapElemValue()
  8199. }
  8200. ee.EncodeInt(int64(v[uint64(k2)]))
  8201. }
  8202. } else {
  8203. for k2, v2 := range v {
  8204. if esep {
  8205. ee.WriteMapElemKey()
  8206. }
  8207. ee.EncodeUint(uint64(k2))
  8208. if esep {
  8209. ee.WriteMapElemValue()
  8210. }
  8211. ee.EncodeInt(int64(v2))
  8212. }
  8213. }
  8214. ee.WriteMapEnd()
  8215. }
  8216. func (e *Encoder) fastpathEncMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  8217. fastpathTV.EncMapUint64Int16V(rv2i(rv).(map[uint64]int16), e)
  8218. }
  8219. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, e *Encoder) {
  8220. if v == nil {
  8221. e.e.EncodeNil()
  8222. return
  8223. }
  8224. ee, esep := e.e, e.hh.hasElemSeparators()
  8225. ee.WriteMapStart(len(v))
  8226. if e.h.Canonical {
  8227. v2 := make([]uint64, len(v))
  8228. var i uint
  8229. for k := range v {
  8230. v2[i] = uint64(k)
  8231. i++
  8232. }
  8233. sort.Sort(uintSlice(v2))
  8234. for _, k2 := range v2 {
  8235. if esep {
  8236. ee.WriteMapElemKey()
  8237. }
  8238. ee.EncodeUint(uint64(uint64(k2)))
  8239. if esep {
  8240. ee.WriteMapElemValue()
  8241. }
  8242. ee.EncodeInt(int64(v[uint64(k2)]))
  8243. }
  8244. } else {
  8245. for k2, v2 := range v {
  8246. if esep {
  8247. ee.WriteMapElemKey()
  8248. }
  8249. ee.EncodeUint(uint64(k2))
  8250. if esep {
  8251. ee.WriteMapElemValue()
  8252. }
  8253. ee.EncodeInt(int64(v2))
  8254. }
  8255. }
  8256. ee.WriteMapEnd()
  8257. }
  8258. func (e *Encoder) fastpathEncMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  8259. fastpathTV.EncMapUint64Int32V(rv2i(rv).(map[uint64]int32), e)
  8260. }
  8261. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, e *Encoder) {
  8262. if v == nil {
  8263. e.e.EncodeNil()
  8264. return
  8265. }
  8266. ee, esep := e.e, e.hh.hasElemSeparators()
  8267. ee.WriteMapStart(len(v))
  8268. if e.h.Canonical {
  8269. v2 := make([]uint64, len(v))
  8270. var i uint
  8271. for k := range v {
  8272. v2[i] = uint64(k)
  8273. i++
  8274. }
  8275. sort.Sort(uintSlice(v2))
  8276. for _, k2 := range v2 {
  8277. if esep {
  8278. ee.WriteMapElemKey()
  8279. }
  8280. ee.EncodeUint(uint64(uint64(k2)))
  8281. if esep {
  8282. ee.WriteMapElemValue()
  8283. }
  8284. ee.EncodeInt(int64(v[uint64(k2)]))
  8285. }
  8286. } else {
  8287. for k2, v2 := range v {
  8288. if esep {
  8289. ee.WriteMapElemKey()
  8290. }
  8291. ee.EncodeUint(uint64(k2))
  8292. if esep {
  8293. ee.WriteMapElemValue()
  8294. }
  8295. ee.EncodeInt(int64(v2))
  8296. }
  8297. }
  8298. ee.WriteMapEnd()
  8299. }
  8300. func (e *Encoder) fastpathEncMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  8301. fastpathTV.EncMapUint64Int64V(rv2i(rv).(map[uint64]int64), e)
  8302. }
  8303. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, e *Encoder) {
  8304. if v == nil {
  8305. e.e.EncodeNil()
  8306. return
  8307. }
  8308. ee, esep := e.e, e.hh.hasElemSeparators()
  8309. ee.WriteMapStart(len(v))
  8310. if e.h.Canonical {
  8311. v2 := make([]uint64, len(v))
  8312. var i uint
  8313. for k := range v {
  8314. v2[i] = uint64(k)
  8315. i++
  8316. }
  8317. sort.Sort(uintSlice(v2))
  8318. for _, k2 := range v2 {
  8319. if esep {
  8320. ee.WriteMapElemKey()
  8321. }
  8322. ee.EncodeUint(uint64(uint64(k2)))
  8323. if esep {
  8324. ee.WriteMapElemValue()
  8325. }
  8326. ee.EncodeInt(int64(v[uint64(k2)]))
  8327. }
  8328. } else {
  8329. for k2, v2 := range v {
  8330. if esep {
  8331. ee.WriteMapElemKey()
  8332. }
  8333. ee.EncodeUint(uint64(k2))
  8334. if esep {
  8335. ee.WriteMapElemValue()
  8336. }
  8337. ee.EncodeInt(int64(v2))
  8338. }
  8339. }
  8340. ee.WriteMapEnd()
  8341. }
  8342. func (e *Encoder) fastpathEncMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  8343. fastpathTV.EncMapUint64Float32V(rv2i(rv).(map[uint64]float32), e)
  8344. }
  8345. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, e *Encoder) {
  8346. if v == nil {
  8347. e.e.EncodeNil()
  8348. return
  8349. }
  8350. ee, esep := e.e, e.hh.hasElemSeparators()
  8351. ee.WriteMapStart(len(v))
  8352. if e.h.Canonical {
  8353. v2 := make([]uint64, len(v))
  8354. var i uint
  8355. for k := range v {
  8356. v2[i] = uint64(k)
  8357. i++
  8358. }
  8359. sort.Sort(uintSlice(v2))
  8360. for _, k2 := range v2 {
  8361. if esep {
  8362. ee.WriteMapElemKey()
  8363. }
  8364. ee.EncodeUint(uint64(uint64(k2)))
  8365. if esep {
  8366. ee.WriteMapElemValue()
  8367. }
  8368. ee.EncodeFloat32(v[uint64(k2)])
  8369. }
  8370. } else {
  8371. for k2, v2 := range v {
  8372. if esep {
  8373. ee.WriteMapElemKey()
  8374. }
  8375. ee.EncodeUint(uint64(k2))
  8376. if esep {
  8377. ee.WriteMapElemValue()
  8378. }
  8379. ee.EncodeFloat32(v2)
  8380. }
  8381. }
  8382. ee.WriteMapEnd()
  8383. }
  8384. func (e *Encoder) fastpathEncMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  8385. fastpathTV.EncMapUint64Float64V(rv2i(rv).(map[uint64]float64), e)
  8386. }
  8387. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, e *Encoder) {
  8388. if v == nil {
  8389. e.e.EncodeNil()
  8390. return
  8391. }
  8392. ee, esep := e.e, e.hh.hasElemSeparators()
  8393. ee.WriteMapStart(len(v))
  8394. if e.h.Canonical {
  8395. v2 := make([]uint64, len(v))
  8396. var i uint
  8397. for k := range v {
  8398. v2[i] = uint64(k)
  8399. i++
  8400. }
  8401. sort.Sort(uintSlice(v2))
  8402. for _, k2 := range v2 {
  8403. if esep {
  8404. ee.WriteMapElemKey()
  8405. }
  8406. ee.EncodeUint(uint64(uint64(k2)))
  8407. if esep {
  8408. ee.WriteMapElemValue()
  8409. }
  8410. ee.EncodeFloat64(v[uint64(k2)])
  8411. }
  8412. } else {
  8413. for k2, v2 := range v {
  8414. if esep {
  8415. ee.WriteMapElemKey()
  8416. }
  8417. ee.EncodeUint(uint64(k2))
  8418. if esep {
  8419. ee.WriteMapElemValue()
  8420. }
  8421. ee.EncodeFloat64(v2)
  8422. }
  8423. }
  8424. ee.WriteMapEnd()
  8425. }
  8426. func (e *Encoder) fastpathEncMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  8427. fastpathTV.EncMapUint64BoolV(rv2i(rv).(map[uint64]bool), e)
  8428. }
  8429. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, e *Encoder) {
  8430. if v == nil {
  8431. e.e.EncodeNil()
  8432. return
  8433. }
  8434. ee, esep := e.e, e.hh.hasElemSeparators()
  8435. ee.WriteMapStart(len(v))
  8436. if e.h.Canonical {
  8437. v2 := make([]uint64, len(v))
  8438. var i uint
  8439. for k := range v {
  8440. v2[i] = uint64(k)
  8441. i++
  8442. }
  8443. sort.Sort(uintSlice(v2))
  8444. for _, k2 := range v2 {
  8445. if esep {
  8446. ee.WriteMapElemKey()
  8447. }
  8448. ee.EncodeUint(uint64(uint64(k2)))
  8449. if esep {
  8450. ee.WriteMapElemValue()
  8451. }
  8452. ee.EncodeBool(v[uint64(k2)])
  8453. }
  8454. } else {
  8455. for k2, v2 := range v {
  8456. if esep {
  8457. ee.WriteMapElemKey()
  8458. }
  8459. ee.EncodeUint(uint64(k2))
  8460. if esep {
  8461. ee.WriteMapElemValue()
  8462. }
  8463. ee.EncodeBool(v2)
  8464. }
  8465. }
  8466. ee.WriteMapEnd()
  8467. }
  8468. func (e *Encoder) fastpathEncMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  8469. fastpathTV.EncMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), e)
  8470. }
  8471. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, e *Encoder) {
  8472. if v == nil {
  8473. e.e.EncodeNil()
  8474. return
  8475. }
  8476. ee, esep := e.e, e.hh.hasElemSeparators()
  8477. ee.WriteMapStart(len(v))
  8478. if e.h.Canonical {
  8479. v2 := make([]uint64, len(v))
  8480. var i uint
  8481. for k := range v {
  8482. v2[i] = uint64(k)
  8483. i++
  8484. }
  8485. sort.Sort(uintSlice(v2))
  8486. for _, k2 := range v2 {
  8487. if esep {
  8488. ee.WriteMapElemKey()
  8489. }
  8490. e.encode(uintptr(k2))
  8491. if esep {
  8492. ee.WriteMapElemValue()
  8493. }
  8494. e.encode(v[uintptr(k2)])
  8495. }
  8496. } else {
  8497. for k2, v2 := range v {
  8498. if esep {
  8499. ee.WriteMapElemKey()
  8500. }
  8501. e.encode(k2)
  8502. if esep {
  8503. ee.WriteMapElemValue()
  8504. }
  8505. e.encode(v2)
  8506. }
  8507. }
  8508. ee.WriteMapEnd()
  8509. }
  8510. func (e *Encoder) fastpathEncMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  8511. fastpathTV.EncMapUintptrStringV(rv2i(rv).(map[uintptr]string), e)
  8512. }
  8513. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, e *Encoder) {
  8514. if v == nil {
  8515. e.e.EncodeNil()
  8516. return
  8517. }
  8518. ee, esep := e.e, e.hh.hasElemSeparators()
  8519. ee.WriteMapStart(len(v))
  8520. if e.h.Canonical {
  8521. v2 := make([]uint64, len(v))
  8522. var i uint
  8523. for k := range v {
  8524. v2[i] = uint64(k)
  8525. i++
  8526. }
  8527. sort.Sort(uintSlice(v2))
  8528. for _, k2 := range v2 {
  8529. if esep {
  8530. ee.WriteMapElemKey()
  8531. }
  8532. e.encode(uintptr(k2))
  8533. if esep {
  8534. ee.WriteMapElemValue()
  8535. }
  8536. if e.h.StringToRaw {
  8537. ee.EncodeStringBytesRaw(bytesView(v[uintptr(k2)]))
  8538. } else {
  8539. ee.EncodeStringEnc(cUTF8, v[uintptr(k2)])
  8540. }
  8541. }
  8542. } else {
  8543. for k2, v2 := range v {
  8544. if esep {
  8545. ee.WriteMapElemKey()
  8546. }
  8547. e.encode(k2)
  8548. if esep {
  8549. ee.WriteMapElemValue()
  8550. }
  8551. if e.h.StringToRaw {
  8552. ee.EncodeStringBytesRaw(bytesView(v2))
  8553. } else {
  8554. ee.EncodeStringEnc(cUTF8, v2)
  8555. }
  8556. }
  8557. }
  8558. ee.WriteMapEnd()
  8559. }
  8560. func (e *Encoder) fastpathEncMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  8561. fastpathTV.EncMapUintptrUintV(rv2i(rv).(map[uintptr]uint), e)
  8562. }
  8563. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, e *Encoder) {
  8564. if v == nil {
  8565. e.e.EncodeNil()
  8566. return
  8567. }
  8568. ee, esep := e.e, e.hh.hasElemSeparators()
  8569. ee.WriteMapStart(len(v))
  8570. if e.h.Canonical {
  8571. v2 := make([]uint64, len(v))
  8572. var i uint
  8573. for k := range v {
  8574. v2[i] = uint64(k)
  8575. i++
  8576. }
  8577. sort.Sort(uintSlice(v2))
  8578. for _, k2 := range v2 {
  8579. if esep {
  8580. ee.WriteMapElemKey()
  8581. }
  8582. e.encode(uintptr(k2))
  8583. if esep {
  8584. ee.WriteMapElemValue()
  8585. }
  8586. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8587. }
  8588. } else {
  8589. for k2, v2 := range v {
  8590. if esep {
  8591. ee.WriteMapElemKey()
  8592. }
  8593. e.encode(k2)
  8594. if esep {
  8595. ee.WriteMapElemValue()
  8596. }
  8597. ee.EncodeUint(uint64(v2))
  8598. }
  8599. }
  8600. ee.WriteMapEnd()
  8601. }
  8602. func (e *Encoder) fastpathEncMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  8603. fastpathTV.EncMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), e)
  8604. }
  8605. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, e *Encoder) {
  8606. if v == nil {
  8607. e.e.EncodeNil()
  8608. return
  8609. }
  8610. ee, esep := e.e, e.hh.hasElemSeparators()
  8611. ee.WriteMapStart(len(v))
  8612. if e.h.Canonical {
  8613. v2 := make([]uint64, len(v))
  8614. var i uint
  8615. for k := range v {
  8616. v2[i] = uint64(k)
  8617. i++
  8618. }
  8619. sort.Sort(uintSlice(v2))
  8620. for _, k2 := range v2 {
  8621. if esep {
  8622. ee.WriteMapElemKey()
  8623. }
  8624. e.encode(uintptr(k2))
  8625. if esep {
  8626. ee.WriteMapElemValue()
  8627. }
  8628. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8629. }
  8630. } else {
  8631. for k2, v2 := range v {
  8632. if esep {
  8633. ee.WriteMapElemKey()
  8634. }
  8635. e.encode(k2)
  8636. if esep {
  8637. ee.WriteMapElemValue()
  8638. }
  8639. ee.EncodeUint(uint64(v2))
  8640. }
  8641. }
  8642. ee.WriteMapEnd()
  8643. }
  8644. func (e *Encoder) fastpathEncMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  8645. fastpathTV.EncMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), e)
  8646. }
  8647. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, e *Encoder) {
  8648. if v == nil {
  8649. e.e.EncodeNil()
  8650. return
  8651. }
  8652. ee, esep := e.e, e.hh.hasElemSeparators()
  8653. ee.WriteMapStart(len(v))
  8654. if e.h.Canonical {
  8655. v2 := make([]uint64, len(v))
  8656. var i uint
  8657. for k := range v {
  8658. v2[i] = uint64(k)
  8659. i++
  8660. }
  8661. sort.Sort(uintSlice(v2))
  8662. for _, k2 := range v2 {
  8663. if esep {
  8664. ee.WriteMapElemKey()
  8665. }
  8666. e.encode(uintptr(k2))
  8667. if esep {
  8668. ee.WriteMapElemValue()
  8669. }
  8670. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8671. }
  8672. } else {
  8673. for k2, v2 := range v {
  8674. if esep {
  8675. ee.WriteMapElemKey()
  8676. }
  8677. e.encode(k2)
  8678. if esep {
  8679. ee.WriteMapElemValue()
  8680. }
  8681. ee.EncodeUint(uint64(v2))
  8682. }
  8683. }
  8684. ee.WriteMapEnd()
  8685. }
  8686. func (e *Encoder) fastpathEncMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  8687. fastpathTV.EncMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), e)
  8688. }
  8689. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, e *Encoder) {
  8690. if v == nil {
  8691. e.e.EncodeNil()
  8692. return
  8693. }
  8694. ee, esep := e.e, e.hh.hasElemSeparators()
  8695. ee.WriteMapStart(len(v))
  8696. if e.h.Canonical {
  8697. v2 := make([]uint64, len(v))
  8698. var i uint
  8699. for k := range v {
  8700. v2[i] = uint64(k)
  8701. i++
  8702. }
  8703. sort.Sort(uintSlice(v2))
  8704. for _, k2 := range v2 {
  8705. if esep {
  8706. ee.WriteMapElemKey()
  8707. }
  8708. e.encode(uintptr(k2))
  8709. if esep {
  8710. ee.WriteMapElemValue()
  8711. }
  8712. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8713. }
  8714. } else {
  8715. for k2, v2 := range v {
  8716. if esep {
  8717. ee.WriteMapElemKey()
  8718. }
  8719. e.encode(k2)
  8720. if esep {
  8721. ee.WriteMapElemValue()
  8722. }
  8723. ee.EncodeUint(uint64(v2))
  8724. }
  8725. }
  8726. ee.WriteMapEnd()
  8727. }
  8728. func (e *Encoder) fastpathEncMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  8729. fastpathTV.EncMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), e)
  8730. }
  8731. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, 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. for _, k2 := range v2 {
  8747. if esep {
  8748. ee.WriteMapElemKey()
  8749. }
  8750. e.encode(uintptr(k2))
  8751. if esep {
  8752. ee.WriteMapElemValue()
  8753. }
  8754. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8755. }
  8756. } else {
  8757. for k2, v2 := range v {
  8758. if esep {
  8759. ee.WriteMapElemKey()
  8760. }
  8761. e.encode(k2)
  8762. if esep {
  8763. ee.WriteMapElemValue()
  8764. }
  8765. ee.EncodeUint(uint64(v2))
  8766. }
  8767. }
  8768. ee.WriteMapEnd()
  8769. }
  8770. func (e *Encoder) fastpathEncMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  8771. fastpathTV.EncMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), e)
  8772. }
  8773. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, e *Encoder) {
  8774. if v == nil {
  8775. e.e.EncodeNil()
  8776. return
  8777. }
  8778. ee, esep := e.e, e.hh.hasElemSeparators()
  8779. ee.WriteMapStart(len(v))
  8780. if e.h.Canonical {
  8781. v2 := make([]uint64, len(v))
  8782. var i uint
  8783. for k := range v {
  8784. v2[i] = uint64(k)
  8785. i++
  8786. }
  8787. sort.Sort(uintSlice(v2))
  8788. for _, k2 := range v2 {
  8789. if esep {
  8790. ee.WriteMapElemKey()
  8791. }
  8792. e.encode(uintptr(k2))
  8793. if esep {
  8794. ee.WriteMapElemValue()
  8795. }
  8796. e.encode(v[uintptr(k2)])
  8797. }
  8798. } else {
  8799. for k2, v2 := range v {
  8800. if esep {
  8801. ee.WriteMapElemKey()
  8802. }
  8803. e.encode(k2)
  8804. if esep {
  8805. ee.WriteMapElemValue()
  8806. }
  8807. e.encode(v2)
  8808. }
  8809. }
  8810. ee.WriteMapEnd()
  8811. }
  8812. func (e *Encoder) fastpathEncMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  8813. fastpathTV.EncMapUintptrIntV(rv2i(rv).(map[uintptr]int), e)
  8814. }
  8815. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, e *Encoder) {
  8816. if v == nil {
  8817. e.e.EncodeNil()
  8818. return
  8819. }
  8820. ee, esep := e.e, e.hh.hasElemSeparators()
  8821. ee.WriteMapStart(len(v))
  8822. if e.h.Canonical {
  8823. v2 := make([]uint64, len(v))
  8824. var i uint
  8825. for k := range v {
  8826. v2[i] = uint64(k)
  8827. i++
  8828. }
  8829. sort.Sort(uintSlice(v2))
  8830. for _, k2 := range v2 {
  8831. if esep {
  8832. ee.WriteMapElemKey()
  8833. }
  8834. e.encode(uintptr(k2))
  8835. if esep {
  8836. ee.WriteMapElemValue()
  8837. }
  8838. ee.EncodeInt(int64(v[uintptr(k2)]))
  8839. }
  8840. } else {
  8841. for k2, v2 := range v {
  8842. if esep {
  8843. ee.WriteMapElemKey()
  8844. }
  8845. e.encode(k2)
  8846. if esep {
  8847. ee.WriteMapElemValue()
  8848. }
  8849. ee.EncodeInt(int64(v2))
  8850. }
  8851. }
  8852. ee.WriteMapEnd()
  8853. }
  8854. func (e *Encoder) fastpathEncMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  8855. fastpathTV.EncMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), e)
  8856. }
  8857. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, e *Encoder) {
  8858. if v == nil {
  8859. e.e.EncodeNil()
  8860. return
  8861. }
  8862. ee, esep := e.e, e.hh.hasElemSeparators()
  8863. ee.WriteMapStart(len(v))
  8864. if e.h.Canonical {
  8865. v2 := make([]uint64, len(v))
  8866. var i uint
  8867. for k := range v {
  8868. v2[i] = uint64(k)
  8869. i++
  8870. }
  8871. sort.Sort(uintSlice(v2))
  8872. for _, k2 := range v2 {
  8873. if esep {
  8874. ee.WriteMapElemKey()
  8875. }
  8876. e.encode(uintptr(k2))
  8877. if esep {
  8878. ee.WriteMapElemValue()
  8879. }
  8880. ee.EncodeInt(int64(v[uintptr(k2)]))
  8881. }
  8882. } else {
  8883. for k2, v2 := range v {
  8884. if esep {
  8885. ee.WriteMapElemKey()
  8886. }
  8887. e.encode(k2)
  8888. if esep {
  8889. ee.WriteMapElemValue()
  8890. }
  8891. ee.EncodeInt(int64(v2))
  8892. }
  8893. }
  8894. ee.WriteMapEnd()
  8895. }
  8896. func (e *Encoder) fastpathEncMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  8897. fastpathTV.EncMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), e)
  8898. }
  8899. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, e *Encoder) {
  8900. if v == nil {
  8901. e.e.EncodeNil()
  8902. return
  8903. }
  8904. ee, esep := e.e, e.hh.hasElemSeparators()
  8905. ee.WriteMapStart(len(v))
  8906. if e.h.Canonical {
  8907. v2 := make([]uint64, len(v))
  8908. var i uint
  8909. for k := range v {
  8910. v2[i] = uint64(k)
  8911. i++
  8912. }
  8913. sort.Sort(uintSlice(v2))
  8914. for _, k2 := range v2 {
  8915. if esep {
  8916. ee.WriteMapElemKey()
  8917. }
  8918. e.encode(uintptr(k2))
  8919. if esep {
  8920. ee.WriteMapElemValue()
  8921. }
  8922. ee.EncodeInt(int64(v[uintptr(k2)]))
  8923. }
  8924. } else {
  8925. for k2, v2 := range v {
  8926. if esep {
  8927. ee.WriteMapElemKey()
  8928. }
  8929. e.encode(k2)
  8930. if esep {
  8931. ee.WriteMapElemValue()
  8932. }
  8933. ee.EncodeInt(int64(v2))
  8934. }
  8935. }
  8936. ee.WriteMapEnd()
  8937. }
  8938. func (e *Encoder) fastpathEncMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  8939. fastpathTV.EncMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), e)
  8940. }
  8941. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, e *Encoder) {
  8942. if v == nil {
  8943. e.e.EncodeNil()
  8944. return
  8945. }
  8946. ee, esep := e.e, e.hh.hasElemSeparators()
  8947. ee.WriteMapStart(len(v))
  8948. if e.h.Canonical {
  8949. v2 := make([]uint64, len(v))
  8950. var i uint
  8951. for k := range v {
  8952. v2[i] = uint64(k)
  8953. i++
  8954. }
  8955. sort.Sort(uintSlice(v2))
  8956. for _, k2 := range v2 {
  8957. if esep {
  8958. ee.WriteMapElemKey()
  8959. }
  8960. e.encode(uintptr(k2))
  8961. if esep {
  8962. ee.WriteMapElemValue()
  8963. }
  8964. ee.EncodeInt(int64(v[uintptr(k2)]))
  8965. }
  8966. } else {
  8967. for k2, v2 := range v {
  8968. if esep {
  8969. ee.WriteMapElemKey()
  8970. }
  8971. e.encode(k2)
  8972. if esep {
  8973. ee.WriteMapElemValue()
  8974. }
  8975. ee.EncodeInt(int64(v2))
  8976. }
  8977. }
  8978. ee.WriteMapEnd()
  8979. }
  8980. func (e *Encoder) fastpathEncMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  8981. fastpathTV.EncMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), e)
  8982. }
  8983. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, e *Encoder) {
  8984. if v == nil {
  8985. e.e.EncodeNil()
  8986. return
  8987. }
  8988. ee, esep := e.e, e.hh.hasElemSeparators()
  8989. ee.WriteMapStart(len(v))
  8990. if e.h.Canonical {
  8991. v2 := make([]uint64, len(v))
  8992. var i uint
  8993. for k := range v {
  8994. v2[i] = uint64(k)
  8995. i++
  8996. }
  8997. sort.Sort(uintSlice(v2))
  8998. for _, k2 := range v2 {
  8999. if esep {
  9000. ee.WriteMapElemKey()
  9001. }
  9002. e.encode(uintptr(k2))
  9003. if esep {
  9004. ee.WriteMapElemValue()
  9005. }
  9006. ee.EncodeInt(int64(v[uintptr(k2)]))
  9007. }
  9008. } else {
  9009. for k2, v2 := range v {
  9010. if esep {
  9011. ee.WriteMapElemKey()
  9012. }
  9013. e.encode(k2)
  9014. if esep {
  9015. ee.WriteMapElemValue()
  9016. }
  9017. ee.EncodeInt(int64(v2))
  9018. }
  9019. }
  9020. ee.WriteMapEnd()
  9021. }
  9022. func (e *Encoder) fastpathEncMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  9023. fastpathTV.EncMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), e)
  9024. }
  9025. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, e *Encoder) {
  9026. if v == nil {
  9027. e.e.EncodeNil()
  9028. return
  9029. }
  9030. ee, esep := e.e, e.hh.hasElemSeparators()
  9031. ee.WriteMapStart(len(v))
  9032. if e.h.Canonical {
  9033. v2 := make([]uint64, len(v))
  9034. var i uint
  9035. for k := range v {
  9036. v2[i] = uint64(k)
  9037. i++
  9038. }
  9039. sort.Sort(uintSlice(v2))
  9040. for _, k2 := range v2 {
  9041. if esep {
  9042. ee.WriteMapElemKey()
  9043. }
  9044. e.encode(uintptr(k2))
  9045. if esep {
  9046. ee.WriteMapElemValue()
  9047. }
  9048. ee.EncodeFloat32(v[uintptr(k2)])
  9049. }
  9050. } else {
  9051. for k2, v2 := range v {
  9052. if esep {
  9053. ee.WriteMapElemKey()
  9054. }
  9055. e.encode(k2)
  9056. if esep {
  9057. ee.WriteMapElemValue()
  9058. }
  9059. ee.EncodeFloat32(v2)
  9060. }
  9061. }
  9062. ee.WriteMapEnd()
  9063. }
  9064. func (e *Encoder) fastpathEncMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  9065. fastpathTV.EncMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), e)
  9066. }
  9067. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, 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. for _, k2 := range v2 {
  9083. if esep {
  9084. ee.WriteMapElemKey()
  9085. }
  9086. e.encode(uintptr(k2))
  9087. if esep {
  9088. ee.WriteMapElemValue()
  9089. }
  9090. ee.EncodeFloat64(v[uintptr(k2)])
  9091. }
  9092. } else {
  9093. for k2, v2 := range v {
  9094. if esep {
  9095. ee.WriteMapElemKey()
  9096. }
  9097. e.encode(k2)
  9098. if esep {
  9099. ee.WriteMapElemValue()
  9100. }
  9101. ee.EncodeFloat64(v2)
  9102. }
  9103. }
  9104. ee.WriteMapEnd()
  9105. }
  9106. func (e *Encoder) fastpathEncMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  9107. fastpathTV.EncMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), e)
  9108. }
  9109. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, e *Encoder) {
  9110. if v == nil {
  9111. e.e.EncodeNil()
  9112. return
  9113. }
  9114. ee, esep := e.e, e.hh.hasElemSeparators()
  9115. ee.WriteMapStart(len(v))
  9116. if e.h.Canonical {
  9117. v2 := make([]uint64, len(v))
  9118. var i uint
  9119. for k := range v {
  9120. v2[i] = uint64(k)
  9121. i++
  9122. }
  9123. sort.Sort(uintSlice(v2))
  9124. for _, k2 := range v2 {
  9125. if esep {
  9126. ee.WriteMapElemKey()
  9127. }
  9128. e.encode(uintptr(k2))
  9129. if esep {
  9130. ee.WriteMapElemValue()
  9131. }
  9132. ee.EncodeBool(v[uintptr(k2)])
  9133. }
  9134. } else {
  9135. for k2, v2 := range v {
  9136. if esep {
  9137. ee.WriteMapElemKey()
  9138. }
  9139. e.encode(k2)
  9140. if esep {
  9141. ee.WriteMapElemValue()
  9142. }
  9143. ee.EncodeBool(v2)
  9144. }
  9145. }
  9146. ee.WriteMapEnd()
  9147. }
  9148. func (e *Encoder) fastpathEncMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  9149. fastpathTV.EncMapIntIntfV(rv2i(rv).(map[int]interface{}), e)
  9150. }
  9151. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, e *Encoder) {
  9152. if v == nil {
  9153. e.e.EncodeNil()
  9154. return
  9155. }
  9156. ee, esep := e.e, e.hh.hasElemSeparators()
  9157. ee.WriteMapStart(len(v))
  9158. if e.h.Canonical {
  9159. v2 := make([]int64, len(v))
  9160. var i uint
  9161. for k := range v {
  9162. v2[i] = int64(k)
  9163. i++
  9164. }
  9165. sort.Sort(intSlice(v2))
  9166. for _, k2 := range v2 {
  9167. if esep {
  9168. ee.WriteMapElemKey()
  9169. }
  9170. ee.EncodeInt(int64(int(k2)))
  9171. if esep {
  9172. ee.WriteMapElemValue()
  9173. }
  9174. e.encode(v[int(k2)])
  9175. }
  9176. } else {
  9177. for k2, v2 := range v {
  9178. if esep {
  9179. ee.WriteMapElemKey()
  9180. }
  9181. ee.EncodeInt(int64(k2))
  9182. if esep {
  9183. ee.WriteMapElemValue()
  9184. }
  9185. e.encode(v2)
  9186. }
  9187. }
  9188. ee.WriteMapEnd()
  9189. }
  9190. func (e *Encoder) fastpathEncMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  9191. fastpathTV.EncMapIntStringV(rv2i(rv).(map[int]string), e)
  9192. }
  9193. func (_ fastpathT) EncMapIntStringV(v map[int]string, e *Encoder) {
  9194. if v == nil {
  9195. e.e.EncodeNil()
  9196. return
  9197. }
  9198. ee, esep := e.e, e.hh.hasElemSeparators()
  9199. ee.WriteMapStart(len(v))
  9200. if e.h.Canonical {
  9201. v2 := make([]int64, len(v))
  9202. var i uint
  9203. for k := range v {
  9204. v2[i] = int64(k)
  9205. i++
  9206. }
  9207. sort.Sort(intSlice(v2))
  9208. for _, k2 := range v2 {
  9209. if esep {
  9210. ee.WriteMapElemKey()
  9211. }
  9212. ee.EncodeInt(int64(int(k2)))
  9213. if esep {
  9214. ee.WriteMapElemValue()
  9215. }
  9216. if e.h.StringToRaw {
  9217. ee.EncodeStringBytesRaw(bytesView(v[int(k2)]))
  9218. } else {
  9219. ee.EncodeStringEnc(cUTF8, v[int(k2)])
  9220. }
  9221. }
  9222. } else {
  9223. for k2, v2 := range v {
  9224. if esep {
  9225. ee.WriteMapElemKey()
  9226. }
  9227. ee.EncodeInt(int64(k2))
  9228. if esep {
  9229. ee.WriteMapElemValue()
  9230. }
  9231. if e.h.StringToRaw {
  9232. ee.EncodeStringBytesRaw(bytesView(v2))
  9233. } else {
  9234. ee.EncodeStringEnc(cUTF8, v2)
  9235. }
  9236. }
  9237. }
  9238. ee.WriteMapEnd()
  9239. }
  9240. func (e *Encoder) fastpathEncMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  9241. fastpathTV.EncMapIntUintV(rv2i(rv).(map[int]uint), e)
  9242. }
  9243. func (_ fastpathT) EncMapIntUintV(v map[int]uint, e *Encoder) {
  9244. if v == nil {
  9245. e.e.EncodeNil()
  9246. return
  9247. }
  9248. ee, esep := e.e, e.hh.hasElemSeparators()
  9249. ee.WriteMapStart(len(v))
  9250. if e.h.Canonical {
  9251. v2 := make([]int64, len(v))
  9252. var i uint
  9253. for k := range v {
  9254. v2[i] = int64(k)
  9255. i++
  9256. }
  9257. sort.Sort(intSlice(v2))
  9258. for _, k2 := range v2 {
  9259. if esep {
  9260. ee.WriteMapElemKey()
  9261. }
  9262. ee.EncodeInt(int64(int(k2)))
  9263. if esep {
  9264. ee.WriteMapElemValue()
  9265. }
  9266. ee.EncodeUint(uint64(v[int(k2)]))
  9267. }
  9268. } else {
  9269. for k2, v2 := range v {
  9270. if esep {
  9271. ee.WriteMapElemKey()
  9272. }
  9273. ee.EncodeInt(int64(k2))
  9274. if esep {
  9275. ee.WriteMapElemValue()
  9276. }
  9277. ee.EncodeUint(uint64(v2))
  9278. }
  9279. }
  9280. ee.WriteMapEnd()
  9281. }
  9282. func (e *Encoder) fastpathEncMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  9283. fastpathTV.EncMapIntUint8V(rv2i(rv).(map[int]uint8), e)
  9284. }
  9285. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, e *Encoder) {
  9286. if v == nil {
  9287. e.e.EncodeNil()
  9288. return
  9289. }
  9290. ee, esep := e.e, e.hh.hasElemSeparators()
  9291. ee.WriteMapStart(len(v))
  9292. if e.h.Canonical {
  9293. v2 := make([]int64, len(v))
  9294. var i uint
  9295. for k := range v {
  9296. v2[i] = int64(k)
  9297. i++
  9298. }
  9299. sort.Sort(intSlice(v2))
  9300. for _, k2 := range v2 {
  9301. if esep {
  9302. ee.WriteMapElemKey()
  9303. }
  9304. ee.EncodeInt(int64(int(k2)))
  9305. if esep {
  9306. ee.WriteMapElemValue()
  9307. }
  9308. ee.EncodeUint(uint64(v[int(k2)]))
  9309. }
  9310. } else {
  9311. for k2, v2 := range v {
  9312. if esep {
  9313. ee.WriteMapElemKey()
  9314. }
  9315. ee.EncodeInt(int64(k2))
  9316. if esep {
  9317. ee.WriteMapElemValue()
  9318. }
  9319. ee.EncodeUint(uint64(v2))
  9320. }
  9321. }
  9322. ee.WriteMapEnd()
  9323. }
  9324. func (e *Encoder) fastpathEncMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  9325. fastpathTV.EncMapIntUint16V(rv2i(rv).(map[int]uint16), e)
  9326. }
  9327. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, e *Encoder) {
  9328. if v == nil {
  9329. e.e.EncodeNil()
  9330. return
  9331. }
  9332. ee, esep := e.e, e.hh.hasElemSeparators()
  9333. ee.WriteMapStart(len(v))
  9334. if e.h.Canonical {
  9335. v2 := make([]int64, len(v))
  9336. var i uint
  9337. for k := range v {
  9338. v2[i] = int64(k)
  9339. i++
  9340. }
  9341. sort.Sort(intSlice(v2))
  9342. for _, k2 := range v2 {
  9343. if esep {
  9344. ee.WriteMapElemKey()
  9345. }
  9346. ee.EncodeInt(int64(int(k2)))
  9347. if esep {
  9348. ee.WriteMapElemValue()
  9349. }
  9350. ee.EncodeUint(uint64(v[int(k2)]))
  9351. }
  9352. } else {
  9353. for k2, v2 := range v {
  9354. if esep {
  9355. ee.WriteMapElemKey()
  9356. }
  9357. ee.EncodeInt(int64(k2))
  9358. if esep {
  9359. ee.WriteMapElemValue()
  9360. }
  9361. ee.EncodeUint(uint64(v2))
  9362. }
  9363. }
  9364. ee.WriteMapEnd()
  9365. }
  9366. func (e *Encoder) fastpathEncMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  9367. fastpathTV.EncMapIntUint32V(rv2i(rv).(map[int]uint32), e)
  9368. }
  9369. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, e *Encoder) {
  9370. if v == nil {
  9371. e.e.EncodeNil()
  9372. return
  9373. }
  9374. ee, esep := e.e, e.hh.hasElemSeparators()
  9375. ee.WriteMapStart(len(v))
  9376. if e.h.Canonical {
  9377. v2 := make([]int64, len(v))
  9378. var i uint
  9379. for k := range v {
  9380. v2[i] = int64(k)
  9381. i++
  9382. }
  9383. sort.Sort(intSlice(v2))
  9384. for _, k2 := range v2 {
  9385. if esep {
  9386. ee.WriteMapElemKey()
  9387. }
  9388. ee.EncodeInt(int64(int(k2)))
  9389. if esep {
  9390. ee.WriteMapElemValue()
  9391. }
  9392. ee.EncodeUint(uint64(v[int(k2)]))
  9393. }
  9394. } else {
  9395. for k2, v2 := range v {
  9396. if esep {
  9397. ee.WriteMapElemKey()
  9398. }
  9399. ee.EncodeInt(int64(k2))
  9400. if esep {
  9401. ee.WriteMapElemValue()
  9402. }
  9403. ee.EncodeUint(uint64(v2))
  9404. }
  9405. }
  9406. ee.WriteMapEnd()
  9407. }
  9408. func (e *Encoder) fastpathEncMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  9409. fastpathTV.EncMapIntUint64V(rv2i(rv).(map[int]uint64), e)
  9410. }
  9411. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, e *Encoder) {
  9412. if v == nil {
  9413. e.e.EncodeNil()
  9414. return
  9415. }
  9416. ee, esep := e.e, e.hh.hasElemSeparators()
  9417. ee.WriteMapStart(len(v))
  9418. if e.h.Canonical {
  9419. v2 := make([]int64, len(v))
  9420. var i uint
  9421. for k := range v {
  9422. v2[i] = int64(k)
  9423. i++
  9424. }
  9425. sort.Sort(intSlice(v2))
  9426. for _, k2 := range v2 {
  9427. if esep {
  9428. ee.WriteMapElemKey()
  9429. }
  9430. ee.EncodeInt(int64(int(k2)))
  9431. if esep {
  9432. ee.WriteMapElemValue()
  9433. }
  9434. ee.EncodeUint(uint64(v[int(k2)]))
  9435. }
  9436. } else {
  9437. for k2, v2 := range v {
  9438. if esep {
  9439. ee.WriteMapElemKey()
  9440. }
  9441. ee.EncodeInt(int64(k2))
  9442. if esep {
  9443. ee.WriteMapElemValue()
  9444. }
  9445. ee.EncodeUint(uint64(v2))
  9446. }
  9447. }
  9448. ee.WriteMapEnd()
  9449. }
  9450. func (e *Encoder) fastpathEncMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  9451. fastpathTV.EncMapIntUintptrV(rv2i(rv).(map[int]uintptr), e)
  9452. }
  9453. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, e *Encoder) {
  9454. if v == nil {
  9455. e.e.EncodeNil()
  9456. return
  9457. }
  9458. ee, esep := e.e, e.hh.hasElemSeparators()
  9459. ee.WriteMapStart(len(v))
  9460. if e.h.Canonical {
  9461. v2 := make([]int64, len(v))
  9462. var i uint
  9463. for k := range v {
  9464. v2[i] = int64(k)
  9465. i++
  9466. }
  9467. sort.Sort(intSlice(v2))
  9468. for _, k2 := range v2 {
  9469. if esep {
  9470. ee.WriteMapElemKey()
  9471. }
  9472. ee.EncodeInt(int64(int(k2)))
  9473. if esep {
  9474. ee.WriteMapElemValue()
  9475. }
  9476. e.encode(v[int(k2)])
  9477. }
  9478. } else {
  9479. for k2, v2 := range v {
  9480. if esep {
  9481. ee.WriteMapElemKey()
  9482. }
  9483. ee.EncodeInt(int64(k2))
  9484. if esep {
  9485. ee.WriteMapElemValue()
  9486. }
  9487. e.encode(v2)
  9488. }
  9489. }
  9490. ee.WriteMapEnd()
  9491. }
  9492. func (e *Encoder) fastpathEncMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  9493. fastpathTV.EncMapIntIntV(rv2i(rv).(map[int]int), e)
  9494. }
  9495. func (_ fastpathT) EncMapIntIntV(v map[int]int, e *Encoder) {
  9496. if v == nil {
  9497. e.e.EncodeNil()
  9498. return
  9499. }
  9500. ee, esep := e.e, e.hh.hasElemSeparators()
  9501. ee.WriteMapStart(len(v))
  9502. if e.h.Canonical {
  9503. v2 := make([]int64, len(v))
  9504. var i uint
  9505. for k := range v {
  9506. v2[i] = int64(k)
  9507. i++
  9508. }
  9509. sort.Sort(intSlice(v2))
  9510. for _, k2 := range v2 {
  9511. if esep {
  9512. ee.WriteMapElemKey()
  9513. }
  9514. ee.EncodeInt(int64(int(k2)))
  9515. if esep {
  9516. ee.WriteMapElemValue()
  9517. }
  9518. ee.EncodeInt(int64(v[int(k2)]))
  9519. }
  9520. } else {
  9521. for k2, v2 := range v {
  9522. if esep {
  9523. ee.WriteMapElemKey()
  9524. }
  9525. ee.EncodeInt(int64(k2))
  9526. if esep {
  9527. ee.WriteMapElemValue()
  9528. }
  9529. ee.EncodeInt(int64(v2))
  9530. }
  9531. }
  9532. ee.WriteMapEnd()
  9533. }
  9534. func (e *Encoder) fastpathEncMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  9535. fastpathTV.EncMapIntInt8V(rv2i(rv).(map[int]int8), e)
  9536. }
  9537. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, e *Encoder) {
  9538. if v == nil {
  9539. e.e.EncodeNil()
  9540. return
  9541. }
  9542. ee, esep := e.e, e.hh.hasElemSeparators()
  9543. ee.WriteMapStart(len(v))
  9544. if e.h.Canonical {
  9545. v2 := make([]int64, len(v))
  9546. var i uint
  9547. for k := range v {
  9548. v2[i] = int64(k)
  9549. i++
  9550. }
  9551. sort.Sort(intSlice(v2))
  9552. for _, k2 := range v2 {
  9553. if esep {
  9554. ee.WriteMapElemKey()
  9555. }
  9556. ee.EncodeInt(int64(int(k2)))
  9557. if esep {
  9558. ee.WriteMapElemValue()
  9559. }
  9560. ee.EncodeInt(int64(v[int(k2)]))
  9561. }
  9562. } else {
  9563. for k2, v2 := range v {
  9564. if esep {
  9565. ee.WriteMapElemKey()
  9566. }
  9567. ee.EncodeInt(int64(k2))
  9568. if esep {
  9569. ee.WriteMapElemValue()
  9570. }
  9571. ee.EncodeInt(int64(v2))
  9572. }
  9573. }
  9574. ee.WriteMapEnd()
  9575. }
  9576. func (e *Encoder) fastpathEncMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  9577. fastpathTV.EncMapIntInt16V(rv2i(rv).(map[int]int16), e)
  9578. }
  9579. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, e *Encoder) {
  9580. if v == nil {
  9581. e.e.EncodeNil()
  9582. return
  9583. }
  9584. ee, esep := e.e, e.hh.hasElemSeparators()
  9585. ee.WriteMapStart(len(v))
  9586. if e.h.Canonical {
  9587. v2 := make([]int64, len(v))
  9588. var i uint
  9589. for k := range v {
  9590. v2[i] = int64(k)
  9591. i++
  9592. }
  9593. sort.Sort(intSlice(v2))
  9594. for _, k2 := range v2 {
  9595. if esep {
  9596. ee.WriteMapElemKey()
  9597. }
  9598. ee.EncodeInt(int64(int(k2)))
  9599. if esep {
  9600. ee.WriteMapElemValue()
  9601. }
  9602. ee.EncodeInt(int64(v[int(k2)]))
  9603. }
  9604. } else {
  9605. for k2, v2 := range v {
  9606. if esep {
  9607. ee.WriteMapElemKey()
  9608. }
  9609. ee.EncodeInt(int64(k2))
  9610. if esep {
  9611. ee.WriteMapElemValue()
  9612. }
  9613. ee.EncodeInt(int64(v2))
  9614. }
  9615. }
  9616. ee.WriteMapEnd()
  9617. }
  9618. func (e *Encoder) fastpathEncMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  9619. fastpathTV.EncMapIntInt32V(rv2i(rv).(map[int]int32), e)
  9620. }
  9621. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, e *Encoder) {
  9622. if v == nil {
  9623. e.e.EncodeNil()
  9624. return
  9625. }
  9626. ee, esep := e.e, e.hh.hasElemSeparators()
  9627. ee.WriteMapStart(len(v))
  9628. if e.h.Canonical {
  9629. v2 := make([]int64, len(v))
  9630. var i uint
  9631. for k := range v {
  9632. v2[i] = int64(k)
  9633. i++
  9634. }
  9635. sort.Sort(intSlice(v2))
  9636. for _, k2 := range v2 {
  9637. if esep {
  9638. ee.WriteMapElemKey()
  9639. }
  9640. ee.EncodeInt(int64(int(k2)))
  9641. if esep {
  9642. ee.WriteMapElemValue()
  9643. }
  9644. ee.EncodeInt(int64(v[int(k2)]))
  9645. }
  9646. } else {
  9647. for k2, v2 := range v {
  9648. if esep {
  9649. ee.WriteMapElemKey()
  9650. }
  9651. ee.EncodeInt(int64(k2))
  9652. if esep {
  9653. ee.WriteMapElemValue()
  9654. }
  9655. ee.EncodeInt(int64(v2))
  9656. }
  9657. }
  9658. ee.WriteMapEnd()
  9659. }
  9660. func (e *Encoder) fastpathEncMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  9661. fastpathTV.EncMapIntInt64V(rv2i(rv).(map[int]int64), e)
  9662. }
  9663. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, e *Encoder) {
  9664. if v == nil {
  9665. e.e.EncodeNil()
  9666. return
  9667. }
  9668. ee, esep := e.e, e.hh.hasElemSeparators()
  9669. ee.WriteMapStart(len(v))
  9670. if e.h.Canonical {
  9671. v2 := make([]int64, len(v))
  9672. var i uint
  9673. for k := range v {
  9674. v2[i] = int64(k)
  9675. i++
  9676. }
  9677. sort.Sort(intSlice(v2))
  9678. for _, k2 := range v2 {
  9679. if esep {
  9680. ee.WriteMapElemKey()
  9681. }
  9682. ee.EncodeInt(int64(int(k2)))
  9683. if esep {
  9684. ee.WriteMapElemValue()
  9685. }
  9686. ee.EncodeInt(int64(v[int(k2)]))
  9687. }
  9688. } else {
  9689. for k2, v2 := range v {
  9690. if esep {
  9691. ee.WriteMapElemKey()
  9692. }
  9693. ee.EncodeInt(int64(k2))
  9694. if esep {
  9695. ee.WriteMapElemValue()
  9696. }
  9697. ee.EncodeInt(int64(v2))
  9698. }
  9699. }
  9700. ee.WriteMapEnd()
  9701. }
  9702. func (e *Encoder) fastpathEncMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  9703. fastpathTV.EncMapIntFloat32V(rv2i(rv).(map[int]float32), e)
  9704. }
  9705. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, e *Encoder) {
  9706. if v == nil {
  9707. e.e.EncodeNil()
  9708. return
  9709. }
  9710. ee, esep := e.e, e.hh.hasElemSeparators()
  9711. ee.WriteMapStart(len(v))
  9712. if e.h.Canonical {
  9713. v2 := make([]int64, len(v))
  9714. var i uint
  9715. for k := range v {
  9716. v2[i] = int64(k)
  9717. i++
  9718. }
  9719. sort.Sort(intSlice(v2))
  9720. for _, k2 := range v2 {
  9721. if esep {
  9722. ee.WriteMapElemKey()
  9723. }
  9724. ee.EncodeInt(int64(int(k2)))
  9725. if esep {
  9726. ee.WriteMapElemValue()
  9727. }
  9728. ee.EncodeFloat32(v[int(k2)])
  9729. }
  9730. } else {
  9731. for k2, v2 := range v {
  9732. if esep {
  9733. ee.WriteMapElemKey()
  9734. }
  9735. ee.EncodeInt(int64(k2))
  9736. if esep {
  9737. ee.WriteMapElemValue()
  9738. }
  9739. ee.EncodeFloat32(v2)
  9740. }
  9741. }
  9742. ee.WriteMapEnd()
  9743. }
  9744. func (e *Encoder) fastpathEncMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  9745. fastpathTV.EncMapIntFloat64V(rv2i(rv).(map[int]float64), e)
  9746. }
  9747. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, e *Encoder) {
  9748. if v == nil {
  9749. e.e.EncodeNil()
  9750. return
  9751. }
  9752. ee, esep := e.e, e.hh.hasElemSeparators()
  9753. ee.WriteMapStart(len(v))
  9754. if e.h.Canonical {
  9755. v2 := make([]int64, len(v))
  9756. var i uint
  9757. for k := range v {
  9758. v2[i] = int64(k)
  9759. i++
  9760. }
  9761. sort.Sort(intSlice(v2))
  9762. for _, k2 := range v2 {
  9763. if esep {
  9764. ee.WriteMapElemKey()
  9765. }
  9766. ee.EncodeInt(int64(int(k2)))
  9767. if esep {
  9768. ee.WriteMapElemValue()
  9769. }
  9770. ee.EncodeFloat64(v[int(k2)])
  9771. }
  9772. } else {
  9773. for k2, v2 := range v {
  9774. if esep {
  9775. ee.WriteMapElemKey()
  9776. }
  9777. ee.EncodeInt(int64(k2))
  9778. if esep {
  9779. ee.WriteMapElemValue()
  9780. }
  9781. ee.EncodeFloat64(v2)
  9782. }
  9783. }
  9784. ee.WriteMapEnd()
  9785. }
  9786. func (e *Encoder) fastpathEncMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  9787. fastpathTV.EncMapIntBoolV(rv2i(rv).(map[int]bool), e)
  9788. }
  9789. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, e *Encoder) {
  9790. if v == nil {
  9791. e.e.EncodeNil()
  9792. return
  9793. }
  9794. ee, esep := e.e, e.hh.hasElemSeparators()
  9795. ee.WriteMapStart(len(v))
  9796. if e.h.Canonical {
  9797. v2 := make([]int64, len(v))
  9798. var i uint
  9799. for k := range v {
  9800. v2[i] = int64(k)
  9801. i++
  9802. }
  9803. sort.Sort(intSlice(v2))
  9804. for _, k2 := range v2 {
  9805. if esep {
  9806. ee.WriteMapElemKey()
  9807. }
  9808. ee.EncodeInt(int64(int(k2)))
  9809. if esep {
  9810. ee.WriteMapElemValue()
  9811. }
  9812. ee.EncodeBool(v[int(k2)])
  9813. }
  9814. } else {
  9815. for k2, v2 := range v {
  9816. if esep {
  9817. ee.WriteMapElemKey()
  9818. }
  9819. ee.EncodeInt(int64(k2))
  9820. if esep {
  9821. ee.WriteMapElemValue()
  9822. }
  9823. ee.EncodeBool(v2)
  9824. }
  9825. }
  9826. ee.WriteMapEnd()
  9827. }
  9828. func (e *Encoder) fastpathEncMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  9829. fastpathTV.EncMapInt8IntfV(rv2i(rv).(map[int8]interface{}), e)
  9830. }
  9831. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, e *Encoder) {
  9832. if v == nil {
  9833. e.e.EncodeNil()
  9834. return
  9835. }
  9836. ee, esep := e.e, e.hh.hasElemSeparators()
  9837. ee.WriteMapStart(len(v))
  9838. if e.h.Canonical {
  9839. v2 := make([]int64, len(v))
  9840. var i uint
  9841. for k := range v {
  9842. v2[i] = int64(k)
  9843. i++
  9844. }
  9845. sort.Sort(intSlice(v2))
  9846. for _, k2 := range v2 {
  9847. if esep {
  9848. ee.WriteMapElemKey()
  9849. }
  9850. ee.EncodeInt(int64(int8(k2)))
  9851. if esep {
  9852. ee.WriteMapElemValue()
  9853. }
  9854. e.encode(v[int8(k2)])
  9855. }
  9856. } else {
  9857. for k2, v2 := range v {
  9858. if esep {
  9859. ee.WriteMapElemKey()
  9860. }
  9861. ee.EncodeInt(int64(k2))
  9862. if esep {
  9863. ee.WriteMapElemValue()
  9864. }
  9865. e.encode(v2)
  9866. }
  9867. }
  9868. ee.WriteMapEnd()
  9869. }
  9870. func (e *Encoder) fastpathEncMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  9871. fastpathTV.EncMapInt8StringV(rv2i(rv).(map[int8]string), e)
  9872. }
  9873. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, e *Encoder) {
  9874. if v == nil {
  9875. e.e.EncodeNil()
  9876. return
  9877. }
  9878. ee, esep := e.e, e.hh.hasElemSeparators()
  9879. ee.WriteMapStart(len(v))
  9880. if e.h.Canonical {
  9881. v2 := make([]int64, len(v))
  9882. var i uint
  9883. for k := range v {
  9884. v2[i] = int64(k)
  9885. i++
  9886. }
  9887. sort.Sort(intSlice(v2))
  9888. for _, k2 := range v2 {
  9889. if esep {
  9890. ee.WriteMapElemKey()
  9891. }
  9892. ee.EncodeInt(int64(int8(k2)))
  9893. if esep {
  9894. ee.WriteMapElemValue()
  9895. }
  9896. if e.h.StringToRaw {
  9897. ee.EncodeStringBytesRaw(bytesView(v[int8(k2)]))
  9898. } else {
  9899. ee.EncodeStringEnc(cUTF8, v[int8(k2)])
  9900. }
  9901. }
  9902. } else {
  9903. for k2, v2 := range v {
  9904. if esep {
  9905. ee.WriteMapElemKey()
  9906. }
  9907. ee.EncodeInt(int64(k2))
  9908. if esep {
  9909. ee.WriteMapElemValue()
  9910. }
  9911. if e.h.StringToRaw {
  9912. ee.EncodeStringBytesRaw(bytesView(v2))
  9913. } else {
  9914. ee.EncodeStringEnc(cUTF8, v2)
  9915. }
  9916. }
  9917. }
  9918. ee.WriteMapEnd()
  9919. }
  9920. func (e *Encoder) fastpathEncMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  9921. fastpathTV.EncMapInt8UintV(rv2i(rv).(map[int8]uint), e)
  9922. }
  9923. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, e *Encoder) {
  9924. if v == nil {
  9925. e.e.EncodeNil()
  9926. return
  9927. }
  9928. ee, esep := e.e, e.hh.hasElemSeparators()
  9929. ee.WriteMapStart(len(v))
  9930. if e.h.Canonical {
  9931. v2 := make([]int64, len(v))
  9932. var i uint
  9933. for k := range v {
  9934. v2[i] = int64(k)
  9935. i++
  9936. }
  9937. sort.Sort(intSlice(v2))
  9938. for _, k2 := range v2 {
  9939. if esep {
  9940. ee.WriteMapElemKey()
  9941. }
  9942. ee.EncodeInt(int64(int8(k2)))
  9943. if esep {
  9944. ee.WriteMapElemValue()
  9945. }
  9946. ee.EncodeUint(uint64(v[int8(k2)]))
  9947. }
  9948. } else {
  9949. for k2, v2 := range v {
  9950. if esep {
  9951. ee.WriteMapElemKey()
  9952. }
  9953. ee.EncodeInt(int64(k2))
  9954. if esep {
  9955. ee.WriteMapElemValue()
  9956. }
  9957. ee.EncodeUint(uint64(v2))
  9958. }
  9959. }
  9960. ee.WriteMapEnd()
  9961. }
  9962. func (e *Encoder) fastpathEncMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  9963. fastpathTV.EncMapInt8Uint8V(rv2i(rv).(map[int8]uint8), e)
  9964. }
  9965. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, e *Encoder) {
  9966. if v == nil {
  9967. e.e.EncodeNil()
  9968. return
  9969. }
  9970. ee, esep := e.e, e.hh.hasElemSeparators()
  9971. ee.WriteMapStart(len(v))
  9972. if e.h.Canonical {
  9973. v2 := make([]int64, len(v))
  9974. var i uint
  9975. for k := range v {
  9976. v2[i] = int64(k)
  9977. i++
  9978. }
  9979. sort.Sort(intSlice(v2))
  9980. for _, k2 := range v2 {
  9981. if esep {
  9982. ee.WriteMapElemKey()
  9983. }
  9984. ee.EncodeInt(int64(int8(k2)))
  9985. if esep {
  9986. ee.WriteMapElemValue()
  9987. }
  9988. ee.EncodeUint(uint64(v[int8(k2)]))
  9989. }
  9990. } else {
  9991. for k2, v2 := range v {
  9992. if esep {
  9993. ee.WriteMapElemKey()
  9994. }
  9995. ee.EncodeInt(int64(k2))
  9996. if esep {
  9997. ee.WriteMapElemValue()
  9998. }
  9999. ee.EncodeUint(uint64(v2))
  10000. }
  10001. }
  10002. ee.WriteMapEnd()
  10003. }
  10004. func (e *Encoder) fastpathEncMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  10005. fastpathTV.EncMapInt8Uint16V(rv2i(rv).(map[int8]uint16), e)
  10006. }
  10007. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, e *Encoder) {
  10008. if v == nil {
  10009. e.e.EncodeNil()
  10010. return
  10011. }
  10012. ee, esep := e.e, e.hh.hasElemSeparators()
  10013. ee.WriteMapStart(len(v))
  10014. if e.h.Canonical {
  10015. v2 := make([]int64, len(v))
  10016. var i uint
  10017. for k := range v {
  10018. v2[i] = int64(k)
  10019. i++
  10020. }
  10021. sort.Sort(intSlice(v2))
  10022. for _, k2 := range v2 {
  10023. if esep {
  10024. ee.WriteMapElemKey()
  10025. }
  10026. ee.EncodeInt(int64(int8(k2)))
  10027. if esep {
  10028. ee.WriteMapElemValue()
  10029. }
  10030. ee.EncodeUint(uint64(v[int8(k2)]))
  10031. }
  10032. } else {
  10033. for k2, v2 := range v {
  10034. if esep {
  10035. ee.WriteMapElemKey()
  10036. }
  10037. ee.EncodeInt(int64(k2))
  10038. if esep {
  10039. ee.WriteMapElemValue()
  10040. }
  10041. ee.EncodeUint(uint64(v2))
  10042. }
  10043. }
  10044. ee.WriteMapEnd()
  10045. }
  10046. func (e *Encoder) fastpathEncMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  10047. fastpathTV.EncMapInt8Uint32V(rv2i(rv).(map[int8]uint32), e)
  10048. }
  10049. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, e *Encoder) {
  10050. if v == nil {
  10051. e.e.EncodeNil()
  10052. return
  10053. }
  10054. ee, esep := e.e, e.hh.hasElemSeparators()
  10055. ee.WriteMapStart(len(v))
  10056. if e.h.Canonical {
  10057. v2 := make([]int64, len(v))
  10058. var i uint
  10059. for k := range v {
  10060. v2[i] = int64(k)
  10061. i++
  10062. }
  10063. sort.Sort(intSlice(v2))
  10064. for _, k2 := range v2 {
  10065. if esep {
  10066. ee.WriteMapElemKey()
  10067. }
  10068. ee.EncodeInt(int64(int8(k2)))
  10069. if esep {
  10070. ee.WriteMapElemValue()
  10071. }
  10072. ee.EncodeUint(uint64(v[int8(k2)]))
  10073. }
  10074. } else {
  10075. for k2, v2 := range v {
  10076. if esep {
  10077. ee.WriteMapElemKey()
  10078. }
  10079. ee.EncodeInt(int64(k2))
  10080. if esep {
  10081. ee.WriteMapElemValue()
  10082. }
  10083. ee.EncodeUint(uint64(v2))
  10084. }
  10085. }
  10086. ee.WriteMapEnd()
  10087. }
  10088. func (e *Encoder) fastpathEncMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  10089. fastpathTV.EncMapInt8Uint64V(rv2i(rv).(map[int8]uint64), e)
  10090. }
  10091. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, e *Encoder) {
  10092. if v == nil {
  10093. e.e.EncodeNil()
  10094. return
  10095. }
  10096. ee, esep := e.e, e.hh.hasElemSeparators()
  10097. ee.WriteMapStart(len(v))
  10098. if e.h.Canonical {
  10099. v2 := make([]int64, len(v))
  10100. var i uint
  10101. for k := range v {
  10102. v2[i] = int64(k)
  10103. i++
  10104. }
  10105. sort.Sort(intSlice(v2))
  10106. for _, k2 := range v2 {
  10107. if esep {
  10108. ee.WriteMapElemKey()
  10109. }
  10110. ee.EncodeInt(int64(int8(k2)))
  10111. if esep {
  10112. ee.WriteMapElemValue()
  10113. }
  10114. ee.EncodeUint(uint64(v[int8(k2)]))
  10115. }
  10116. } else {
  10117. for k2, v2 := range v {
  10118. if esep {
  10119. ee.WriteMapElemKey()
  10120. }
  10121. ee.EncodeInt(int64(k2))
  10122. if esep {
  10123. ee.WriteMapElemValue()
  10124. }
  10125. ee.EncodeUint(uint64(v2))
  10126. }
  10127. }
  10128. ee.WriteMapEnd()
  10129. }
  10130. func (e *Encoder) fastpathEncMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  10131. fastpathTV.EncMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), e)
  10132. }
  10133. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, e *Encoder) {
  10134. if v == nil {
  10135. e.e.EncodeNil()
  10136. return
  10137. }
  10138. ee, esep := e.e, e.hh.hasElemSeparators()
  10139. ee.WriteMapStart(len(v))
  10140. if e.h.Canonical {
  10141. v2 := make([]int64, len(v))
  10142. var i uint
  10143. for k := range v {
  10144. v2[i] = int64(k)
  10145. i++
  10146. }
  10147. sort.Sort(intSlice(v2))
  10148. for _, k2 := range v2 {
  10149. if esep {
  10150. ee.WriteMapElemKey()
  10151. }
  10152. ee.EncodeInt(int64(int8(k2)))
  10153. if esep {
  10154. ee.WriteMapElemValue()
  10155. }
  10156. e.encode(v[int8(k2)])
  10157. }
  10158. } else {
  10159. for k2, v2 := range v {
  10160. if esep {
  10161. ee.WriteMapElemKey()
  10162. }
  10163. ee.EncodeInt(int64(k2))
  10164. if esep {
  10165. ee.WriteMapElemValue()
  10166. }
  10167. e.encode(v2)
  10168. }
  10169. }
  10170. ee.WriteMapEnd()
  10171. }
  10172. func (e *Encoder) fastpathEncMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  10173. fastpathTV.EncMapInt8IntV(rv2i(rv).(map[int8]int), e)
  10174. }
  10175. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, e *Encoder) {
  10176. if v == nil {
  10177. e.e.EncodeNil()
  10178. return
  10179. }
  10180. ee, esep := e.e, e.hh.hasElemSeparators()
  10181. ee.WriteMapStart(len(v))
  10182. if e.h.Canonical {
  10183. v2 := make([]int64, len(v))
  10184. var i uint
  10185. for k := range v {
  10186. v2[i] = int64(k)
  10187. i++
  10188. }
  10189. sort.Sort(intSlice(v2))
  10190. for _, k2 := range v2 {
  10191. if esep {
  10192. ee.WriteMapElemKey()
  10193. }
  10194. ee.EncodeInt(int64(int8(k2)))
  10195. if esep {
  10196. ee.WriteMapElemValue()
  10197. }
  10198. ee.EncodeInt(int64(v[int8(k2)]))
  10199. }
  10200. } else {
  10201. for k2, v2 := range v {
  10202. if esep {
  10203. ee.WriteMapElemKey()
  10204. }
  10205. ee.EncodeInt(int64(k2))
  10206. if esep {
  10207. ee.WriteMapElemValue()
  10208. }
  10209. ee.EncodeInt(int64(v2))
  10210. }
  10211. }
  10212. ee.WriteMapEnd()
  10213. }
  10214. func (e *Encoder) fastpathEncMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  10215. fastpathTV.EncMapInt8Int8V(rv2i(rv).(map[int8]int8), e)
  10216. }
  10217. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, e *Encoder) {
  10218. if v == nil {
  10219. e.e.EncodeNil()
  10220. return
  10221. }
  10222. ee, esep := e.e, e.hh.hasElemSeparators()
  10223. ee.WriteMapStart(len(v))
  10224. if e.h.Canonical {
  10225. v2 := make([]int64, len(v))
  10226. var i uint
  10227. for k := range v {
  10228. v2[i] = int64(k)
  10229. i++
  10230. }
  10231. sort.Sort(intSlice(v2))
  10232. for _, k2 := range v2 {
  10233. if esep {
  10234. ee.WriteMapElemKey()
  10235. }
  10236. ee.EncodeInt(int64(int8(k2)))
  10237. if esep {
  10238. ee.WriteMapElemValue()
  10239. }
  10240. ee.EncodeInt(int64(v[int8(k2)]))
  10241. }
  10242. } else {
  10243. for k2, v2 := range v {
  10244. if esep {
  10245. ee.WriteMapElemKey()
  10246. }
  10247. ee.EncodeInt(int64(k2))
  10248. if esep {
  10249. ee.WriteMapElemValue()
  10250. }
  10251. ee.EncodeInt(int64(v2))
  10252. }
  10253. }
  10254. ee.WriteMapEnd()
  10255. }
  10256. func (e *Encoder) fastpathEncMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  10257. fastpathTV.EncMapInt8Int16V(rv2i(rv).(map[int8]int16), e)
  10258. }
  10259. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, e *Encoder) {
  10260. if v == nil {
  10261. e.e.EncodeNil()
  10262. return
  10263. }
  10264. ee, esep := e.e, e.hh.hasElemSeparators()
  10265. ee.WriteMapStart(len(v))
  10266. if e.h.Canonical {
  10267. v2 := make([]int64, len(v))
  10268. var i uint
  10269. for k := range v {
  10270. v2[i] = int64(k)
  10271. i++
  10272. }
  10273. sort.Sort(intSlice(v2))
  10274. for _, k2 := range v2 {
  10275. if esep {
  10276. ee.WriteMapElemKey()
  10277. }
  10278. ee.EncodeInt(int64(int8(k2)))
  10279. if esep {
  10280. ee.WriteMapElemValue()
  10281. }
  10282. ee.EncodeInt(int64(v[int8(k2)]))
  10283. }
  10284. } else {
  10285. for k2, v2 := range v {
  10286. if esep {
  10287. ee.WriteMapElemKey()
  10288. }
  10289. ee.EncodeInt(int64(k2))
  10290. if esep {
  10291. ee.WriteMapElemValue()
  10292. }
  10293. ee.EncodeInt(int64(v2))
  10294. }
  10295. }
  10296. ee.WriteMapEnd()
  10297. }
  10298. func (e *Encoder) fastpathEncMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  10299. fastpathTV.EncMapInt8Int32V(rv2i(rv).(map[int8]int32), e)
  10300. }
  10301. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, e *Encoder) {
  10302. if v == nil {
  10303. e.e.EncodeNil()
  10304. return
  10305. }
  10306. ee, esep := e.e, e.hh.hasElemSeparators()
  10307. ee.WriteMapStart(len(v))
  10308. if e.h.Canonical {
  10309. v2 := make([]int64, len(v))
  10310. var i uint
  10311. for k := range v {
  10312. v2[i] = int64(k)
  10313. i++
  10314. }
  10315. sort.Sort(intSlice(v2))
  10316. for _, k2 := range v2 {
  10317. if esep {
  10318. ee.WriteMapElemKey()
  10319. }
  10320. ee.EncodeInt(int64(int8(k2)))
  10321. if esep {
  10322. ee.WriteMapElemValue()
  10323. }
  10324. ee.EncodeInt(int64(v[int8(k2)]))
  10325. }
  10326. } else {
  10327. for k2, v2 := range v {
  10328. if esep {
  10329. ee.WriteMapElemKey()
  10330. }
  10331. ee.EncodeInt(int64(k2))
  10332. if esep {
  10333. ee.WriteMapElemValue()
  10334. }
  10335. ee.EncodeInt(int64(v2))
  10336. }
  10337. }
  10338. ee.WriteMapEnd()
  10339. }
  10340. func (e *Encoder) fastpathEncMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  10341. fastpathTV.EncMapInt8Int64V(rv2i(rv).(map[int8]int64), e)
  10342. }
  10343. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, e *Encoder) {
  10344. if v == nil {
  10345. e.e.EncodeNil()
  10346. return
  10347. }
  10348. ee, esep := e.e, e.hh.hasElemSeparators()
  10349. ee.WriteMapStart(len(v))
  10350. if e.h.Canonical {
  10351. v2 := make([]int64, len(v))
  10352. var i uint
  10353. for k := range v {
  10354. v2[i] = int64(k)
  10355. i++
  10356. }
  10357. sort.Sort(intSlice(v2))
  10358. for _, k2 := range v2 {
  10359. if esep {
  10360. ee.WriteMapElemKey()
  10361. }
  10362. ee.EncodeInt(int64(int8(k2)))
  10363. if esep {
  10364. ee.WriteMapElemValue()
  10365. }
  10366. ee.EncodeInt(int64(v[int8(k2)]))
  10367. }
  10368. } else {
  10369. for k2, v2 := range v {
  10370. if esep {
  10371. ee.WriteMapElemKey()
  10372. }
  10373. ee.EncodeInt(int64(k2))
  10374. if esep {
  10375. ee.WriteMapElemValue()
  10376. }
  10377. ee.EncodeInt(int64(v2))
  10378. }
  10379. }
  10380. ee.WriteMapEnd()
  10381. }
  10382. func (e *Encoder) fastpathEncMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  10383. fastpathTV.EncMapInt8Float32V(rv2i(rv).(map[int8]float32), e)
  10384. }
  10385. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, e *Encoder) {
  10386. if v == nil {
  10387. e.e.EncodeNil()
  10388. return
  10389. }
  10390. ee, esep := e.e, e.hh.hasElemSeparators()
  10391. ee.WriteMapStart(len(v))
  10392. if e.h.Canonical {
  10393. v2 := make([]int64, len(v))
  10394. var i uint
  10395. for k := range v {
  10396. v2[i] = int64(k)
  10397. i++
  10398. }
  10399. sort.Sort(intSlice(v2))
  10400. for _, k2 := range v2 {
  10401. if esep {
  10402. ee.WriteMapElemKey()
  10403. }
  10404. ee.EncodeInt(int64(int8(k2)))
  10405. if esep {
  10406. ee.WriteMapElemValue()
  10407. }
  10408. ee.EncodeFloat32(v[int8(k2)])
  10409. }
  10410. } else {
  10411. for k2, v2 := range v {
  10412. if esep {
  10413. ee.WriteMapElemKey()
  10414. }
  10415. ee.EncodeInt(int64(k2))
  10416. if esep {
  10417. ee.WriteMapElemValue()
  10418. }
  10419. ee.EncodeFloat32(v2)
  10420. }
  10421. }
  10422. ee.WriteMapEnd()
  10423. }
  10424. func (e *Encoder) fastpathEncMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  10425. fastpathTV.EncMapInt8Float64V(rv2i(rv).(map[int8]float64), e)
  10426. }
  10427. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, e *Encoder) {
  10428. if v == nil {
  10429. e.e.EncodeNil()
  10430. return
  10431. }
  10432. ee, esep := e.e, e.hh.hasElemSeparators()
  10433. ee.WriteMapStart(len(v))
  10434. if e.h.Canonical {
  10435. v2 := make([]int64, len(v))
  10436. var i uint
  10437. for k := range v {
  10438. v2[i] = int64(k)
  10439. i++
  10440. }
  10441. sort.Sort(intSlice(v2))
  10442. for _, k2 := range v2 {
  10443. if esep {
  10444. ee.WriteMapElemKey()
  10445. }
  10446. ee.EncodeInt(int64(int8(k2)))
  10447. if esep {
  10448. ee.WriteMapElemValue()
  10449. }
  10450. ee.EncodeFloat64(v[int8(k2)])
  10451. }
  10452. } else {
  10453. for k2, v2 := range v {
  10454. if esep {
  10455. ee.WriteMapElemKey()
  10456. }
  10457. ee.EncodeInt(int64(k2))
  10458. if esep {
  10459. ee.WriteMapElemValue()
  10460. }
  10461. ee.EncodeFloat64(v2)
  10462. }
  10463. }
  10464. ee.WriteMapEnd()
  10465. }
  10466. func (e *Encoder) fastpathEncMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  10467. fastpathTV.EncMapInt8BoolV(rv2i(rv).(map[int8]bool), e)
  10468. }
  10469. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, e *Encoder) {
  10470. if v == nil {
  10471. e.e.EncodeNil()
  10472. return
  10473. }
  10474. ee, esep := e.e, e.hh.hasElemSeparators()
  10475. ee.WriteMapStart(len(v))
  10476. if e.h.Canonical {
  10477. v2 := make([]int64, len(v))
  10478. var i uint
  10479. for k := range v {
  10480. v2[i] = int64(k)
  10481. i++
  10482. }
  10483. sort.Sort(intSlice(v2))
  10484. for _, k2 := range v2 {
  10485. if esep {
  10486. ee.WriteMapElemKey()
  10487. }
  10488. ee.EncodeInt(int64(int8(k2)))
  10489. if esep {
  10490. ee.WriteMapElemValue()
  10491. }
  10492. ee.EncodeBool(v[int8(k2)])
  10493. }
  10494. } else {
  10495. for k2, v2 := range v {
  10496. if esep {
  10497. ee.WriteMapElemKey()
  10498. }
  10499. ee.EncodeInt(int64(k2))
  10500. if esep {
  10501. ee.WriteMapElemValue()
  10502. }
  10503. ee.EncodeBool(v2)
  10504. }
  10505. }
  10506. ee.WriteMapEnd()
  10507. }
  10508. func (e *Encoder) fastpathEncMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  10509. fastpathTV.EncMapInt16IntfV(rv2i(rv).(map[int16]interface{}), e)
  10510. }
  10511. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, e *Encoder) {
  10512. if v == nil {
  10513. e.e.EncodeNil()
  10514. return
  10515. }
  10516. ee, esep := e.e, e.hh.hasElemSeparators()
  10517. ee.WriteMapStart(len(v))
  10518. if e.h.Canonical {
  10519. v2 := make([]int64, len(v))
  10520. var i uint
  10521. for k := range v {
  10522. v2[i] = int64(k)
  10523. i++
  10524. }
  10525. sort.Sort(intSlice(v2))
  10526. for _, k2 := range v2 {
  10527. if esep {
  10528. ee.WriteMapElemKey()
  10529. }
  10530. ee.EncodeInt(int64(int16(k2)))
  10531. if esep {
  10532. ee.WriteMapElemValue()
  10533. }
  10534. e.encode(v[int16(k2)])
  10535. }
  10536. } else {
  10537. for k2, v2 := range v {
  10538. if esep {
  10539. ee.WriteMapElemKey()
  10540. }
  10541. ee.EncodeInt(int64(k2))
  10542. if esep {
  10543. ee.WriteMapElemValue()
  10544. }
  10545. e.encode(v2)
  10546. }
  10547. }
  10548. ee.WriteMapEnd()
  10549. }
  10550. func (e *Encoder) fastpathEncMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  10551. fastpathTV.EncMapInt16StringV(rv2i(rv).(map[int16]string), e)
  10552. }
  10553. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, e *Encoder) {
  10554. if v == nil {
  10555. e.e.EncodeNil()
  10556. return
  10557. }
  10558. ee, esep := e.e, e.hh.hasElemSeparators()
  10559. ee.WriteMapStart(len(v))
  10560. if e.h.Canonical {
  10561. v2 := make([]int64, len(v))
  10562. var i uint
  10563. for k := range v {
  10564. v2[i] = int64(k)
  10565. i++
  10566. }
  10567. sort.Sort(intSlice(v2))
  10568. for _, k2 := range v2 {
  10569. if esep {
  10570. ee.WriteMapElemKey()
  10571. }
  10572. ee.EncodeInt(int64(int16(k2)))
  10573. if esep {
  10574. ee.WriteMapElemValue()
  10575. }
  10576. if e.h.StringToRaw {
  10577. ee.EncodeStringBytesRaw(bytesView(v[int16(k2)]))
  10578. } else {
  10579. ee.EncodeStringEnc(cUTF8, v[int16(k2)])
  10580. }
  10581. }
  10582. } else {
  10583. for k2, v2 := range v {
  10584. if esep {
  10585. ee.WriteMapElemKey()
  10586. }
  10587. ee.EncodeInt(int64(k2))
  10588. if esep {
  10589. ee.WriteMapElemValue()
  10590. }
  10591. if e.h.StringToRaw {
  10592. ee.EncodeStringBytesRaw(bytesView(v2))
  10593. } else {
  10594. ee.EncodeStringEnc(cUTF8, v2)
  10595. }
  10596. }
  10597. }
  10598. ee.WriteMapEnd()
  10599. }
  10600. func (e *Encoder) fastpathEncMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  10601. fastpathTV.EncMapInt16UintV(rv2i(rv).(map[int16]uint), e)
  10602. }
  10603. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, 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. for _, k2 := range v2 {
  10619. if esep {
  10620. ee.WriteMapElemKey()
  10621. }
  10622. ee.EncodeInt(int64(int16(k2)))
  10623. if esep {
  10624. ee.WriteMapElemValue()
  10625. }
  10626. ee.EncodeUint(uint64(v[int16(k2)]))
  10627. }
  10628. } else {
  10629. for k2, v2 := range v {
  10630. if esep {
  10631. ee.WriteMapElemKey()
  10632. }
  10633. ee.EncodeInt(int64(k2))
  10634. if esep {
  10635. ee.WriteMapElemValue()
  10636. }
  10637. ee.EncodeUint(uint64(v2))
  10638. }
  10639. }
  10640. ee.WriteMapEnd()
  10641. }
  10642. func (e *Encoder) fastpathEncMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  10643. fastpathTV.EncMapInt16Uint8V(rv2i(rv).(map[int16]uint8), e)
  10644. }
  10645. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, e *Encoder) {
  10646. if v == nil {
  10647. e.e.EncodeNil()
  10648. return
  10649. }
  10650. ee, esep := e.e, e.hh.hasElemSeparators()
  10651. ee.WriteMapStart(len(v))
  10652. if e.h.Canonical {
  10653. v2 := make([]int64, len(v))
  10654. var i uint
  10655. for k := range v {
  10656. v2[i] = int64(k)
  10657. i++
  10658. }
  10659. sort.Sort(intSlice(v2))
  10660. for _, k2 := range v2 {
  10661. if esep {
  10662. ee.WriteMapElemKey()
  10663. }
  10664. ee.EncodeInt(int64(int16(k2)))
  10665. if esep {
  10666. ee.WriteMapElemValue()
  10667. }
  10668. ee.EncodeUint(uint64(v[int16(k2)]))
  10669. }
  10670. } else {
  10671. for k2, v2 := range v {
  10672. if esep {
  10673. ee.WriteMapElemKey()
  10674. }
  10675. ee.EncodeInt(int64(k2))
  10676. if esep {
  10677. ee.WriteMapElemValue()
  10678. }
  10679. ee.EncodeUint(uint64(v2))
  10680. }
  10681. }
  10682. ee.WriteMapEnd()
  10683. }
  10684. func (e *Encoder) fastpathEncMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  10685. fastpathTV.EncMapInt16Uint16V(rv2i(rv).(map[int16]uint16), e)
  10686. }
  10687. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, e *Encoder) {
  10688. if v == nil {
  10689. e.e.EncodeNil()
  10690. return
  10691. }
  10692. ee, esep := e.e, e.hh.hasElemSeparators()
  10693. ee.WriteMapStart(len(v))
  10694. if e.h.Canonical {
  10695. v2 := make([]int64, len(v))
  10696. var i uint
  10697. for k := range v {
  10698. v2[i] = int64(k)
  10699. i++
  10700. }
  10701. sort.Sort(intSlice(v2))
  10702. for _, k2 := range v2 {
  10703. if esep {
  10704. ee.WriteMapElemKey()
  10705. }
  10706. ee.EncodeInt(int64(int16(k2)))
  10707. if esep {
  10708. ee.WriteMapElemValue()
  10709. }
  10710. ee.EncodeUint(uint64(v[int16(k2)]))
  10711. }
  10712. } else {
  10713. for k2, v2 := range v {
  10714. if esep {
  10715. ee.WriteMapElemKey()
  10716. }
  10717. ee.EncodeInt(int64(k2))
  10718. if esep {
  10719. ee.WriteMapElemValue()
  10720. }
  10721. ee.EncodeUint(uint64(v2))
  10722. }
  10723. }
  10724. ee.WriteMapEnd()
  10725. }
  10726. func (e *Encoder) fastpathEncMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  10727. fastpathTV.EncMapInt16Uint32V(rv2i(rv).(map[int16]uint32), e)
  10728. }
  10729. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, e *Encoder) {
  10730. if v == nil {
  10731. e.e.EncodeNil()
  10732. return
  10733. }
  10734. ee, esep := e.e, e.hh.hasElemSeparators()
  10735. ee.WriteMapStart(len(v))
  10736. if e.h.Canonical {
  10737. v2 := make([]int64, len(v))
  10738. var i uint
  10739. for k := range v {
  10740. v2[i] = int64(k)
  10741. i++
  10742. }
  10743. sort.Sort(intSlice(v2))
  10744. for _, k2 := range v2 {
  10745. if esep {
  10746. ee.WriteMapElemKey()
  10747. }
  10748. ee.EncodeInt(int64(int16(k2)))
  10749. if esep {
  10750. ee.WriteMapElemValue()
  10751. }
  10752. ee.EncodeUint(uint64(v[int16(k2)]))
  10753. }
  10754. } else {
  10755. for k2, v2 := range v {
  10756. if esep {
  10757. ee.WriteMapElemKey()
  10758. }
  10759. ee.EncodeInt(int64(k2))
  10760. if esep {
  10761. ee.WriteMapElemValue()
  10762. }
  10763. ee.EncodeUint(uint64(v2))
  10764. }
  10765. }
  10766. ee.WriteMapEnd()
  10767. }
  10768. func (e *Encoder) fastpathEncMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  10769. fastpathTV.EncMapInt16Uint64V(rv2i(rv).(map[int16]uint64), e)
  10770. }
  10771. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, e *Encoder) {
  10772. if v == nil {
  10773. e.e.EncodeNil()
  10774. return
  10775. }
  10776. ee, esep := e.e, e.hh.hasElemSeparators()
  10777. ee.WriteMapStart(len(v))
  10778. if e.h.Canonical {
  10779. v2 := make([]int64, len(v))
  10780. var i uint
  10781. for k := range v {
  10782. v2[i] = int64(k)
  10783. i++
  10784. }
  10785. sort.Sort(intSlice(v2))
  10786. for _, k2 := range v2 {
  10787. if esep {
  10788. ee.WriteMapElemKey()
  10789. }
  10790. ee.EncodeInt(int64(int16(k2)))
  10791. if esep {
  10792. ee.WriteMapElemValue()
  10793. }
  10794. ee.EncodeUint(uint64(v[int16(k2)]))
  10795. }
  10796. } else {
  10797. for k2, v2 := range v {
  10798. if esep {
  10799. ee.WriteMapElemKey()
  10800. }
  10801. ee.EncodeInt(int64(k2))
  10802. if esep {
  10803. ee.WriteMapElemValue()
  10804. }
  10805. ee.EncodeUint(uint64(v2))
  10806. }
  10807. }
  10808. ee.WriteMapEnd()
  10809. }
  10810. func (e *Encoder) fastpathEncMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  10811. fastpathTV.EncMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), e)
  10812. }
  10813. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, e *Encoder) {
  10814. if v == nil {
  10815. e.e.EncodeNil()
  10816. return
  10817. }
  10818. ee, esep := e.e, e.hh.hasElemSeparators()
  10819. ee.WriteMapStart(len(v))
  10820. if e.h.Canonical {
  10821. v2 := make([]int64, len(v))
  10822. var i uint
  10823. for k := range v {
  10824. v2[i] = int64(k)
  10825. i++
  10826. }
  10827. sort.Sort(intSlice(v2))
  10828. for _, k2 := range v2 {
  10829. if esep {
  10830. ee.WriteMapElemKey()
  10831. }
  10832. ee.EncodeInt(int64(int16(k2)))
  10833. if esep {
  10834. ee.WriteMapElemValue()
  10835. }
  10836. e.encode(v[int16(k2)])
  10837. }
  10838. } else {
  10839. for k2, v2 := range v {
  10840. if esep {
  10841. ee.WriteMapElemKey()
  10842. }
  10843. ee.EncodeInt(int64(k2))
  10844. if esep {
  10845. ee.WriteMapElemValue()
  10846. }
  10847. e.encode(v2)
  10848. }
  10849. }
  10850. ee.WriteMapEnd()
  10851. }
  10852. func (e *Encoder) fastpathEncMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  10853. fastpathTV.EncMapInt16IntV(rv2i(rv).(map[int16]int), e)
  10854. }
  10855. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, e *Encoder) {
  10856. if v == nil {
  10857. e.e.EncodeNil()
  10858. return
  10859. }
  10860. ee, esep := e.e, e.hh.hasElemSeparators()
  10861. ee.WriteMapStart(len(v))
  10862. if e.h.Canonical {
  10863. v2 := make([]int64, len(v))
  10864. var i uint
  10865. for k := range v {
  10866. v2[i] = int64(k)
  10867. i++
  10868. }
  10869. sort.Sort(intSlice(v2))
  10870. for _, k2 := range v2 {
  10871. if esep {
  10872. ee.WriteMapElemKey()
  10873. }
  10874. ee.EncodeInt(int64(int16(k2)))
  10875. if esep {
  10876. ee.WriteMapElemValue()
  10877. }
  10878. ee.EncodeInt(int64(v[int16(k2)]))
  10879. }
  10880. } else {
  10881. for k2, v2 := range v {
  10882. if esep {
  10883. ee.WriteMapElemKey()
  10884. }
  10885. ee.EncodeInt(int64(k2))
  10886. if esep {
  10887. ee.WriteMapElemValue()
  10888. }
  10889. ee.EncodeInt(int64(v2))
  10890. }
  10891. }
  10892. ee.WriteMapEnd()
  10893. }
  10894. func (e *Encoder) fastpathEncMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  10895. fastpathTV.EncMapInt16Int8V(rv2i(rv).(map[int16]int8), e)
  10896. }
  10897. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, e *Encoder) {
  10898. if v == nil {
  10899. e.e.EncodeNil()
  10900. return
  10901. }
  10902. ee, esep := e.e, e.hh.hasElemSeparators()
  10903. ee.WriteMapStart(len(v))
  10904. if e.h.Canonical {
  10905. v2 := make([]int64, len(v))
  10906. var i uint
  10907. for k := range v {
  10908. v2[i] = int64(k)
  10909. i++
  10910. }
  10911. sort.Sort(intSlice(v2))
  10912. for _, k2 := range v2 {
  10913. if esep {
  10914. ee.WriteMapElemKey()
  10915. }
  10916. ee.EncodeInt(int64(int16(k2)))
  10917. if esep {
  10918. ee.WriteMapElemValue()
  10919. }
  10920. ee.EncodeInt(int64(v[int16(k2)]))
  10921. }
  10922. } else {
  10923. for k2, v2 := range v {
  10924. if esep {
  10925. ee.WriteMapElemKey()
  10926. }
  10927. ee.EncodeInt(int64(k2))
  10928. if esep {
  10929. ee.WriteMapElemValue()
  10930. }
  10931. ee.EncodeInt(int64(v2))
  10932. }
  10933. }
  10934. ee.WriteMapEnd()
  10935. }
  10936. func (e *Encoder) fastpathEncMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  10937. fastpathTV.EncMapInt16Int16V(rv2i(rv).(map[int16]int16), e)
  10938. }
  10939. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, 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. for _, k2 := range v2 {
  10955. if esep {
  10956. ee.WriteMapElemKey()
  10957. }
  10958. ee.EncodeInt(int64(int16(k2)))
  10959. if esep {
  10960. ee.WriteMapElemValue()
  10961. }
  10962. ee.EncodeInt(int64(v[int16(k2)]))
  10963. }
  10964. } else {
  10965. for k2, v2 := range v {
  10966. if esep {
  10967. ee.WriteMapElemKey()
  10968. }
  10969. ee.EncodeInt(int64(k2))
  10970. if esep {
  10971. ee.WriteMapElemValue()
  10972. }
  10973. ee.EncodeInt(int64(v2))
  10974. }
  10975. }
  10976. ee.WriteMapEnd()
  10977. }
  10978. func (e *Encoder) fastpathEncMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  10979. fastpathTV.EncMapInt16Int32V(rv2i(rv).(map[int16]int32), e)
  10980. }
  10981. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, e *Encoder) {
  10982. if v == nil {
  10983. e.e.EncodeNil()
  10984. return
  10985. }
  10986. ee, esep := e.e, e.hh.hasElemSeparators()
  10987. ee.WriteMapStart(len(v))
  10988. if e.h.Canonical {
  10989. v2 := make([]int64, len(v))
  10990. var i uint
  10991. for k := range v {
  10992. v2[i] = int64(k)
  10993. i++
  10994. }
  10995. sort.Sort(intSlice(v2))
  10996. for _, k2 := range v2 {
  10997. if esep {
  10998. ee.WriteMapElemKey()
  10999. }
  11000. ee.EncodeInt(int64(int16(k2)))
  11001. if esep {
  11002. ee.WriteMapElemValue()
  11003. }
  11004. ee.EncodeInt(int64(v[int16(k2)]))
  11005. }
  11006. } else {
  11007. for k2, v2 := range v {
  11008. if esep {
  11009. ee.WriteMapElemKey()
  11010. }
  11011. ee.EncodeInt(int64(k2))
  11012. if esep {
  11013. ee.WriteMapElemValue()
  11014. }
  11015. ee.EncodeInt(int64(v2))
  11016. }
  11017. }
  11018. ee.WriteMapEnd()
  11019. }
  11020. func (e *Encoder) fastpathEncMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  11021. fastpathTV.EncMapInt16Int64V(rv2i(rv).(map[int16]int64), e)
  11022. }
  11023. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, e *Encoder) {
  11024. if v == nil {
  11025. e.e.EncodeNil()
  11026. return
  11027. }
  11028. ee, esep := e.e, e.hh.hasElemSeparators()
  11029. ee.WriteMapStart(len(v))
  11030. if e.h.Canonical {
  11031. v2 := make([]int64, len(v))
  11032. var i uint
  11033. for k := range v {
  11034. v2[i] = int64(k)
  11035. i++
  11036. }
  11037. sort.Sort(intSlice(v2))
  11038. for _, k2 := range v2 {
  11039. if esep {
  11040. ee.WriteMapElemKey()
  11041. }
  11042. ee.EncodeInt(int64(int16(k2)))
  11043. if esep {
  11044. ee.WriteMapElemValue()
  11045. }
  11046. ee.EncodeInt(int64(v[int16(k2)]))
  11047. }
  11048. } else {
  11049. for k2, v2 := range v {
  11050. if esep {
  11051. ee.WriteMapElemKey()
  11052. }
  11053. ee.EncodeInt(int64(k2))
  11054. if esep {
  11055. ee.WriteMapElemValue()
  11056. }
  11057. ee.EncodeInt(int64(v2))
  11058. }
  11059. }
  11060. ee.WriteMapEnd()
  11061. }
  11062. func (e *Encoder) fastpathEncMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  11063. fastpathTV.EncMapInt16Float32V(rv2i(rv).(map[int16]float32), e)
  11064. }
  11065. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, e *Encoder) {
  11066. if v == nil {
  11067. e.e.EncodeNil()
  11068. return
  11069. }
  11070. ee, esep := e.e, e.hh.hasElemSeparators()
  11071. ee.WriteMapStart(len(v))
  11072. if e.h.Canonical {
  11073. v2 := make([]int64, len(v))
  11074. var i uint
  11075. for k := range v {
  11076. v2[i] = int64(k)
  11077. i++
  11078. }
  11079. sort.Sort(intSlice(v2))
  11080. for _, k2 := range v2 {
  11081. if esep {
  11082. ee.WriteMapElemKey()
  11083. }
  11084. ee.EncodeInt(int64(int16(k2)))
  11085. if esep {
  11086. ee.WriteMapElemValue()
  11087. }
  11088. ee.EncodeFloat32(v[int16(k2)])
  11089. }
  11090. } else {
  11091. for k2, v2 := range v {
  11092. if esep {
  11093. ee.WriteMapElemKey()
  11094. }
  11095. ee.EncodeInt(int64(k2))
  11096. if esep {
  11097. ee.WriteMapElemValue()
  11098. }
  11099. ee.EncodeFloat32(v2)
  11100. }
  11101. }
  11102. ee.WriteMapEnd()
  11103. }
  11104. func (e *Encoder) fastpathEncMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  11105. fastpathTV.EncMapInt16Float64V(rv2i(rv).(map[int16]float64), e)
  11106. }
  11107. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, e *Encoder) {
  11108. if v == nil {
  11109. e.e.EncodeNil()
  11110. return
  11111. }
  11112. ee, esep := e.e, e.hh.hasElemSeparators()
  11113. ee.WriteMapStart(len(v))
  11114. if e.h.Canonical {
  11115. v2 := make([]int64, len(v))
  11116. var i uint
  11117. for k := range v {
  11118. v2[i] = int64(k)
  11119. i++
  11120. }
  11121. sort.Sort(intSlice(v2))
  11122. for _, k2 := range v2 {
  11123. if esep {
  11124. ee.WriteMapElemKey()
  11125. }
  11126. ee.EncodeInt(int64(int16(k2)))
  11127. if esep {
  11128. ee.WriteMapElemValue()
  11129. }
  11130. ee.EncodeFloat64(v[int16(k2)])
  11131. }
  11132. } else {
  11133. for k2, v2 := range v {
  11134. if esep {
  11135. ee.WriteMapElemKey()
  11136. }
  11137. ee.EncodeInt(int64(k2))
  11138. if esep {
  11139. ee.WriteMapElemValue()
  11140. }
  11141. ee.EncodeFloat64(v2)
  11142. }
  11143. }
  11144. ee.WriteMapEnd()
  11145. }
  11146. func (e *Encoder) fastpathEncMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  11147. fastpathTV.EncMapInt16BoolV(rv2i(rv).(map[int16]bool), e)
  11148. }
  11149. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, e *Encoder) {
  11150. if v == nil {
  11151. e.e.EncodeNil()
  11152. return
  11153. }
  11154. ee, esep := e.e, e.hh.hasElemSeparators()
  11155. ee.WriteMapStart(len(v))
  11156. if e.h.Canonical {
  11157. v2 := make([]int64, len(v))
  11158. var i uint
  11159. for k := range v {
  11160. v2[i] = int64(k)
  11161. i++
  11162. }
  11163. sort.Sort(intSlice(v2))
  11164. for _, k2 := range v2 {
  11165. if esep {
  11166. ee.WriteMapElemKey()
  11167. }
  11168. ee.EncodeInt(int64(int16(k2)))
  11169. if esep {
  11170. ee.WriteMapElemValue()
  11171. }
  11172. ee.EncodeBool(v[int16(k2)])
  11173. }
  11174. } else {
  11175. for k2, v2 := range v {
  11176. if esep {
  11177. ee.WriteMapElemKey()
  11178. }
  11179. ee.EncodeInt(int64(k2))
  11180. if esep {
  11181. ee.WriteMapElemValue()
  11182. }
  11183. ee.EncodeBool(v2)
  11184. }
  11185. }
  11186. ee.WriteMapEnd()
  11187. }
  11188. func (e *Encoder) fastpathEncMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  11189. fastpathTV.EncMapInt32IntfV(rv2i(rv).(map[int32]interface{}), e)
  11190. }
  11191. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, e *Encoder) {
  11192. if v == nil {
  11193. e.e.EncodeNil()
  11194. return
  11195. }
  11196. ee, esep := e.e, e.hh.hasElemSeparators()
  11197. ee.WriteMapStart(len(v))
  11198. if e.h.Canonical {
  11199. v2 := make([]int64, len(v))
  11200. var i uint
  11201. for k := range v {
  11202. v2[i] = int64(k)
  11203. i++
  11204. }
  11205. sort.Sort(intSlice(v2))
  11206. for _, k2 := range v2 {
  11207. if esep {
  11208. ee.WriteMapElemKey()
  11209. }
  11210. ee.EncodeInt(int64(int32(k2)))
  11211. if esep {
  11212. ee.WriteMapElemValue()
  11213. }
  11214. e.encode(v[int32(k2)])
  11215. }
  11216. } else {
  11217. for k2, v2 := range v {
  11218. if esep {
  11219. ee.WriteMapElemKey()
  11220. }
  11221. ee.EncodeInt(int64(k2))
  11222. if esep {
  11223. ee.WriteMapElemValue()
  11224. }
  11225. e.encode(v2)
  11226. }
  11227. }
  11228. ee.WriteMapEnd()
  11229. }
  11230. func (e *Encoder) fastpathEncMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  11231. fastpathTV.EncMapInt32StringV(rv2i(rv).(map[int32]string), e)
  11232. }
  11233. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, e *Encoder) {
  11234. if v == nil {
  11235. e.e.EncodeNil()
  11236. return
  11237. }
  11238. ee, esep := e.e, e.hh.hasElemSeparators()
  11239. ee.WriteMapStart(len(v))
  11240. if e.h.Canonical {
  11241. v2 := make([]int64, len(v))
  11242. var i uint
  11243. for k := range v {
  11244. v2[i] = int64(k)
  11245. i++
  11246. }
  11247. sort.Sort(intSlice(v2))
  11248. for _, k2 := range v2 {
  11249. if esep {
  11250. ee.WriteMapElemKey()
  11251. }
  11252. ee.EncodeInt(int64(int32(k2)))
  11253. if esep {
  11254. ee.WriteMapElemValue()
  11255. }
  11256. if e.h.StringToRaw {
  11257. ee.EncodeStringBytesRaw(bytesView(v[int32(k2)]))
  11258. } else {
  11259. ee.EncodeStringEnc(cUTF8, v[int32(k2)])
  11260. }
  11261. }
  11262. } else {
  11263. for k2, v2 := range v {
  11264. if esep {
  11265. ee.WriteMapElemKey()
  11266. }
  11267. ee.EncodeInt(int64(k2))
  11268. if esep {
  11269. ee.WriteMapElemValue()
  11270. }
  11271. if e.h.StringToRaw {
  11272. ee.EncodeStringBytesRaw(bytesView(v2))
  11273. } else {
  11274. ee.EncodeStringEnc(cUTF8, v2)
  11275. }
  11276. }
  11277. }
  11278. ee.WriteMapEnd()
  11279. }
  11280. func (e *Encoder) fastpathEncMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  11281. fastpathTV.EncMapInt32UintV(rv2i(rv).(map[int32]uint), e)
  11282. }
  11283. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, e *Encoder) {
  11284. if v == nil {
  11285. e.e.EncodeNil()
  11286. return
  11287. }
  11288. ee, esep := e.e, e.hh.hasElemSeparators()
  11289. ee.WriteMapStart(len(v))
  11290. if e.h.Canonical {
  11291. v2 := make([]int64, len(v))
  11292. var i uint
  11293. for k := range v {
  11294. v2[i] = int64(k)
  11295. i++
  11296. }
  11297. sort.Sort(intSlice(v2))
  11298. for _, k2 := range v2 {
  11299. if esep {
  11300. ee.WriteMapElemKey()
  11301. }
  11302. ee.EncodeInt(int64(int32(k2)))
  11303. if esep {
  11304. ee.WriteMapElemValue()
  11305. }
  11306. ee.EncodeUint(uint64(v[int32(k2)]))
  11307. }
  11308. } else {
  11309. for k2, v2 := range v {
  11310. if esep {
  11311. ee.WriteMapElemKey()
  11312. }
  11313. ee.EncodeInt(int64(k2))
  11314. if esep {
  11315. ee.WriteMapElemValue()
  11316. }
  11317. ee.EncodeUint(uint64(v2))
  11318. }
  11319. }
  11320. ee.WriteMapEnd()
  11321. }
  11322. func (e *Encoder) fastpathEncMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  11323. fastpathTV.EncMapInt32Uint8V(rv2i(rv).(map[int32]uint8), e)
  11324. }
  11325. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, e *Encoder) {
  11326. if v == nil {
  11327. e.e.EncodeNil()
  11328. return
  11329. }
  11330. ee, esep := e.e, e.hh.hasElemSeparators()
  11331. ee.WriteMapStart(len(v))
  11332. if e.h.Canonical {
  11333. v2 := make([]int64, len(v))
  11334. var i uint
  11335. for k := range v {
  11336. v2[i] = int64(k)
  11337. i++
  11338. }
  11339. sort.Sort(intSlice(v2))
  11340. for _, k2 := range v2 {
  11341. if esep {
  11342. ee.WriteMapElemKey()
  11343. }
  11344. ee.EncodeInt(int64(int32(k2)))
  11345. if esep {
  11346. ee.WriteMapElemValue()
  11347. }
  11348. ee.EncodeUint(uint64(v[int32(k2)]))
  11349. }
  11350. } else {
  11351. for k2, v2 := range v {
  11352. if esep {
  11353. ee.WriteMapElemKey()
  11354. }
  11355. ee.EncodeInt(int64(k2))
  11356. if esep {
  11357. ee.WriteMapElemValue()
  11358. }
  11359. ee.EncodeUint(uint64(v2))
  11360. }
  11361. }
  11362. ee.WriteMapEnd()
  11363. }
  11364. func (e *Encoder) fastpathEncMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  11365. fastpathTV.EncMapInt32Uint16V(rv2i(rv).(map[int32]uint16), e)
  11366. }
  11367. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, e *Encoder) {
  11368. if v == nil {
  11369. e.e.EncodeNil()
  11370. return
  11371. }
  11372. ee, esep := e.e, e.hh.hasElemSeparators()
  11373. ee.WriteMapStart(len(v))
  11374. if e.h.Canonical {
  11375. v2 := make([]int64, len(v))
  11376. var i uint
  11377. for k := range v {
  11378. v2[i] = int64(k)
  11379. i++
  11380. }
  11381. sort.Sort(intSlice(v2))
  11382. for _, k2 := range v2 {
  11383. if esep {
  11384. ee.WriteMapElemKey()
  11385. }
  11386. ee.EncodeInt(int64(int32(k2)))
  11387. if esep {
  11388. ee.WriteMapElemValue()
  11389. }
  11390. ee.EncodeUint(uint64(v[int32(k2)]))
  11391. }
  11392. } else {
  11393. for k2, v2 := range v {
  11394. if esep {
  11395. ee.WriteMapElemKey()
  11396. }
  11397. ee.EncodeInt(int64(k2))
  11398. if esep {
  11399. ee.WriteMapElemValue()
  11400. }
  11401. ee.EncodeUint(uint64(v2))
  11402. }
  11403. }
  11404. ee.WriteMapEnd()
  11405. }
  11406. func (e *Encoder) fastpathEncMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  11407. fastpathTV.EncMapInt32Uint32V(rv2i(rv).(map[int32]uint32), e)
  11408. }
  11409. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, e *Encoder) {
  11410. if v == nil {
  11411. e.e.EncodeNil()
  11412. return
  11413. }
  11414. ee, esep := e.e, e.hh.hasElemSeparators()
  11415. ee.WriteMapStart(len(v))
  11416. if e.h.Canonical {
  11417. v2 := make([]int64, len(v))
  11418. var i uint
  11419. for k := range v {
  11420. v2[i] = int64(k)
  11421. i++
  11422. }
  11423. sort.Sort(intSlice(v2))
  11424. for _, k2 := range v2 {
  11425. if esep {
  11426. ee.WriteMapElemKey()
  11427. }
  11428. ee.EncodeInt(int64(int32(k2)))
  11429. if esep {
  11430. ee.WriteMapElemValue()
  11431. }
  11432. ee.EncodeUint(uint64(v[int32(k2)]))
  11433. }
  11434. } else {
  11435. for k2, v2 := range v {
  11436. if esep {
  11437. ee.WriteMapElemKey()
  11438. }
  11439. ee.EncodeInt(int64(k2))
  11440. if esep {
  11441. ee.WriteMapElemValue()
  11442. }
  11443. ee.EncodeUint(uint64(v2))
  11444. }
  11445. }
  11446. ee.WriteMapEnd()
  11447. }
  11448. func (e *Encoder) fastpathEncMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  11449. fastpathTV.EncMapInt32Uint64V(rv2i(rv).(map[int32]uint64), e)
  11450. }
  11451. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, e *Encoder) {
  11452. if v == nil {
  11453. e.e.EncodeNil()
  11454. return
  11455. }
  11456. ee, esep := e.e, e.hh.hasElemSeparators()
  11457. ee.WriteMapStart(len(v))
  11458. if e.h.Canonical {
  11459. v2 := make([]int64, len(v))
  11460. var i uint
  11461. for k := range v {
  11462. v2[i] = int64(k)
  11463. i++
  11464. }
  11465. sort.Sort(intSlice(v2))
  11466. for _, k2 := range v2 {
  11467. if esep {
  11468. ee.WriteMapElemKey()
  11469. }
  11470. ee.EncodeInt(int64(int32(k2)))
  11471. if esep {
  11472. ee.WriteMapElemValue()
  11473. }
  11474. ee.EncodeUint(uint64(v[int32(k2)]))
  11475. }
  11476. } else {
  11477. for k2, v2 := range v {
  11478. if esep {
  11479. ee.WriteMapElemKey()
  11480. }
  11481. ee.EncodeInt(int64(k2))
  11482. if esep {
  11483. ee.WriteMapElemValue()
  11484. }
  11485. ee.EncodeUint(uint64(v2))
  11486. }
  11487. }
  11488. ee.WriteMapEnd()
  11489. }
  11490. func (e *Encoder) fastpathEncMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  11491. fastpathTV.EncMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), e)
  11492. }
  11493. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, e *Encoder) {
  11494. if v == nil {
  11495. e.e.EncodeNil()
  11496. return
  11497. }
  11498. ee, esep := e.e, e.hh.hasElemSeparators()
  11499. ee.WriteMapStart(len(v))
  11500. if e.h.Canonical {
  11501. v2 := make([]int64, len(v))
  11502. var i uint
  11503. for k := range v {
  11504. v2[i] = int64(k)
  11505. i++
  11506. }
  11507. sort.Sort(intSlice(v2))
  11508. for _, k2 := range v2 {
  11509. if esep {
  11510. ee.WriteMapElemKey()
  11511. }
  11512. ee.EncodeInt(int64(int32(k2)))
  11513. if esep {
  11514. ee.WriteMapElemValue()
  11515. }
  11516. e.encode(v[int32(k2)])
  11517. }
  11518. } else {
  11519. for k2, v2 := range v {
  11520. if esep {
  11521. ee.WriteMapElemKey()
  11522. }
  11523. ee.EncodeInt(int64(k2))
  11524. if esep {
  11525. ee.WriteMapElemValue()
  11526. }
  11527. e.encode(v2)
  11528. }
  11529. }
  11530. ee.WriteMapEnd()
  11531. }
  11532. func (e *Encoder) fastpathEncMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  11533. fastpathTV.EncMapInt32IntV(rv2i(rv).(map[int32]int), e)
  11534. }
  11535. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, e *Encoder) {
  11536. if v == nil {
  11537. e.e.EncodeNil()
  11538. return
  11539. }
  11540. ee, esep := e.e, e.hh.hasElemSeparators()
  11541. ee.WriteMapStart(len(v))
  11542. if e.h.Canonical {
  11543. v2 := make([]int64, len(v))
  11544. var i uint
  11545. for k := range v {
  11546. v2[i] = int64(k)
  11547. i++
  11548. }
  11549. sort.Sort(intSlice(v2))
  11550. for _, k2 := range v2 {
  11551. if esep {
  11552. ee.WriteMapElemKey()
  11553. }
  11554. ee.EncodeInt(int64(int32(k2)))
  11555. if esep {
  11556. ee.WriteMapElemValue()
  11557. }
  11558. ee.EncodeInt(int64(v[int32(k2)]))
  11559. }
  11560. } else {
  11561. for k2, v2 := range v {
  11562. if esep {
  11563. ee.WriteMapElemKey()
  11564. }
  11565. ee.EncodeInt(int64(k2))
  11566. if esep {
  11567. ee.WriteMapElemValue()
  11568. }
  11569. ee.EncodeInt(int64(v2))
  11570. }
  11571. }
  11572. ee.WriteMapEnd()
  11573. }
  11574. func (e *Encoder) fastpathEncMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  11575. fastpathTV.EncMapInt32Int8V(rv2i(rv).(map[int32]int8), e)
  11576. }
  11577. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, e *Encoder) {
  11578. if v == nil {
  11579. e.e.EncodeNil()
  11580. return
  11581. }
  11582. ee, esep := e.e, e.hh.hasElemSeparators()
  11583. ee.WriteMapStart(len(v))
  11584. if e.h.Canonical {
  11585. v2 := make([]int64, len(v))
  11586. var i uint
  11587. for k := range v {
  11588. v2[i] = int64(k)
  11589. i++
  11590. }
  11591. sort.Sort(intSlice(v2))
  11592. for _, k2 := range v2 {
  11593. if esep {
  11594. ee.WriteMapElemKey()
  11595. }
  11596. ee.EncodeInt(int64(int32(k2)))
  11597. if esep {
  11598. ee.WriteMapElemValue()
  11599. }
  11600. ee.EncodeInt(int64(v[int32(k2)]))
  11601. }
  11602. } else {
  11603. for k2, v2 := range v {
  11604. if esep {
  11605. ee.WriteMapElemKey()
  11606. }
  11607. ee.EncodeInt(int64(k2))
  11608. if esep {
  11609. ee.WriteMapElemValue()
  11610. }
  11611. ee.EncodeInt(int64(v2))
  11612. }
  11613. }
  11614. ee.WriteMapEnd()
  11615. }
  11616. func (e *Encoder) fastpathEncMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  11617. fastpathTV.EncMapInt32Int16V(rv2i(rv).(map[int32]int16), e)
  11618. }
  11619. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, e *Encoder) {
  11620. if v == nil {
  11621. e.e.EncodeNil()
  11622. return
  11623. }
  11624. ee, esep := e.e, e.hh.hasElemSeparators()
  11625. ee.WriteMapStart(len(v))
  11626. if e.h.Canonical {
  11627. v2 := make([]int64, len(v))
  11628. var i uint
  11629. for k := range v {
  11630. v2[i] = int64(k)
  11631. i++
  11632. }
  11633. sort.Sort(intSlice(v2))
  11634. for _, k2 := range v2 {
  11635. if esep {
  11636. ee.WriteMapElemKey()
  11637. }
  11638. ee.EncodeInt(int64(int32(k2)))
  11639. if esep {
  11640. ee.WriteMapElemValue()
  11641. }
  11642. ee.EncodeInt(int64(v[int32(k2)]))
  11643. }
  11644. } else {
  11645. for k2, v2 := range v {
  11646. if esep {
  11647. ee.WriteMapElemKey()
  11648. }
  11649. ee.EncodeInt(int64(k2))
  11650. if esep {
  11651. ee.WriteMapElemValue()
  11652. }
  11653. ee.EncodeInt(int64(v2))
  11654. }
  11655. }
  11656. ee.WriteMapEnd()
  11657. }
  11658. func (e *Encoder) fastpathEncMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  11659. fastpathTV.EncMapInt32Int32V(rv2i(rv).(map[int32]int32), e)
  11660. }
  11661. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, e *Encoder) {
  11662. if v == nil {
  11663. e.e.EncodeNil()
  11664. return
  11665. }
  11666. ee, esep := e.e, e.hh.hasElemSeparators()
  11667. ee.WriteMapStart(len(v))
  11668. if e.h.Canonical {
  11669. v2 := make([]int64, len(v))
  11670. var i uint
  11671. for k := range v {
  11672. v2[i] = int64(k)
  11673. i++
  11674. }
  11675. sort.Sort(intSlice(v2))
  11676. for _, k2 := range v2 {
  11677. if esep {
  11678. ee.WriteMapElemKey()
  11679. }
  11680. ee.EncodeInt(int64(int32(k2)))
  11681. if esep {
  11682. ee.WriteMapElemValue()
  11683. }
  11684. ee.EncodeInt(int64(v[int32(k2)]))
  11685. }
  11686. } else {
  11687. for k2, v2 := range v {
  11688. if esep {
  11689. ee.WriteMapElemKey()
  11690. }
  11691. ee.EncodeInt(int64(k2))
  11692. if esep {
  11693. ee.WriteMapElemValue()
  11694. }
  11695. ee.EncodeInt(int64(v2))
  11696. }
  11697. }
  11698. ee.WriteMapEnd()
  11699. }
  11700. func (e *Encoder) fastpathEncMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  11701. fastpathTV.EncMapInt32Int64V(rv2i(rv).(map[int32]int64), e)
  11702. }
  11703. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, e *Encoder) {
  11704. if v == nil {
  11705. e.e.EncodeNil()
  11706. return
  11707. }
  11708. ee, esep := e.e, e.hh.hasElemSeparators()
  11709. ee.WriteMapStart(len(v))
  11710. if e.h.Canonical {
  11711. v2 := make([]int64, len(v))
  11712. var i uint
  11713. for k := range v {
  11714. v2[i] = int64(k)
  11715. i++
  11716. }
  11717. sort.Sort(intSlice(v2))
  11718. for _, k2 := range v2 {
  11719. if esep {
  11720. ee.WriteMapElemKey()
  11721. }
  11722. ee.EncodeInt(int64(int32(k2)))
  11723. if esep {
  11724. ee.WriteMapElemValue()
  11725. }
  11726. ee.EncodeInt(int64(v[int32(k2)]))
  11727. }
  11728. } else {
  11729. for k2, v2 := range v {
  11730. if esep {
  11731. ee.WriteMapElemKey()
  11732. }
  11733. ee.EncodeInt(int64(k2))
  11734. if esep {
  11735. ee.WriteMapElemValue()
  11736. }
  11737. ee.EncodeInt(int64(v2))
  11738. }
  11739. }
  11740. ee.WriteMapEnd()
  11741. }
  11742. func (e *Encoder) fastpathEncMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  11743. fastpathTV.EncMapInt32Float32V(rv2i(rv).(map[int32]float32), e)
  11744. }
  11745. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, e *Encoder) {
  11746. if v == nil {
  11747. e.e.EncodeNil()
  11748. return
  11749. }
  11750. ee, esep := e.e, e.hh.hasElemSeparators()
  11751. ee.WriteMapStart(len(v))
  11752. if e.h.Canonical {
  11753. v2 := make([]int64, len(v))
  11754. var i uint
  11755. for k := range v {
  11756. v2[i] = int64(k)
  11757. i++
  11758. }
  11759. sort.Sort(intSlice(v2))
  11760. for _, k2 := range v2 {
  11761. if esep {
  11762. ee.WriteMapElemKey()
  11763. }
  11764. ee.EncodeInt(int64(int32(k2)))
  11765. if esep {
  11766. ee.WriteMapElemValue()
  11767. }
  11768. ee.EncodeFloat32(v[int32(k2)])
  11769. }
  11770. } else {
  11771. for k2, v2 := range v {
  11772. if esep {
  11773. ee.WriteMapElemKey()
  11774. }
  11775. ee.EncodeInt(int64(k2))
  11776. if esep {
  11777. ee.WriteMapElemValue()
  11778. }
  11779. ee.EncodeFloat32(v2)
  11780. }
  11781. }
  11782. ee.WriteMapEnd()
  11783. }
  11784. func (e *Encoder) fastpathEncMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  11785. fastpathTV.EncMapInt32Float64V(rv2i(rv).(map[int32]float64), e)
  11786. }
  11787. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, e *Encoder) {
  11788. if v == nil {
  11789. e.e.EncodeNil()
  11790. return
  11791. }
  11792. ee, esep := e.e, e.hh.hasElemSeparators()
  11793. ee.WriteMapStart(len(v))
  11794. if e.h.Canonical {
  11795. v2 := make([]int64, len(v))
  11796. var i uint
  11797. for k := range v {
  11798. v2[i] = int64(k)
  11799. i++
  11800. }
  11801. sort.Sort(intSlice(v2))
  11802. for _, k2 := range v2 {
  11803. if esep {
  11804. ee.WriteMapElemKey()
  11805. }
  11806. ee.EncodeInt(int64(int32(k2)))
  11807. if esep {
  11808. ee.WriteMapElemValue()
  11809. }
  11810. ee.EncodeFloat64(v[int32(k2)])
  11811. }
  11812. } else {
  11813. for k2, v2 := range v {
  11814. if esep {
  11815. ee.WriteMapElemKey()
  11816. }
  11817. ee.EncodeInt(int64(k2))
  11818. if esep {
  11819. ee.WriteMapElemValue()
  11820. }
  11821. ee.EncodeFloat64(v2)
  11822. }
  11823. }
  11824. ee.WriteMapEnd()
  11825. }
  11826. func (e *Encoder) fastpathEncMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  11827. fastpathTV.EncMapInt32BoolV(rv2i(rv).(map[int32]bool), e)
  11828. }
  11829. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, e *Encoder) {
  11830. if v == nil {
  11831. e.e.EncodeNil()
  11832. return
  11833. }
  11834. ee, esep := e.e, e.hh.hasElemSeparators()
  11835. ee.WriteMapStart(len(v))
  11836. if e.h.Canonical {
  11837. v2 := make([]int64, len(v))
  11838. var i uint
  11839. for k := range v {
  11840. v2[i] = int64(k)
  11841. i++
  11842. }
  11843. sort.Sort(intSlice(v2))
  11844. for _, k2 := range v2 {
  11845. if esep {
  11846. ee.WriteMapElemKey()
  11847. }
  11848. ee.EncodeInt(int64(int32(k2)))
  11849. if esep {
  11850. ee.WriteMapElemValue()
  11851. }
  11852. ee.EncodeBool(v[int32(k2)])
  11853. }
  11854. } else {
  11855. for k2, v2 := range v {
  11856. if esep {
  11857. ee.WriteMapElemKey()
  11858. }
  11859. ee.EncodeInt(int64(k2))
  11860. if esep {
  11861. ee.WriteMapElemValue()
  11862. }
  11863. ee.EncodeBool(v2)
  11864. }
  11865. }
  11866. ee.WriteMapEnd()
  11867. }
  11868. func (e *Encoder) fastpathEncMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  11869. fastpathTV.EncMapInt64IntfV(rv2i(rv).(map[int64]interface{}), e)
  11870. }
  11871. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, e *Encoder) {
  11872. if v == nil {
  11873. e.e.EncodeNil()
  11874. return
  11875. }
  11876. ee, esep := e.e, e.hh.hasElemSeparators()
  11877. ee.WriteMapStart(len(v))
  11878. if e.h.Canonical {
  11879. v2 := make([]int64, len(v))
  11880. var i uint
  11881. for k := range v {
  11882. v2[i] = int64(k)
  11883. i++
  11884. }
  11885. sort.Sort(intSlice(v2))
  11886. for _, k2 := range v2 {
  11887. if esep {
  11888. ee.WriteMapElemKey()
  11889. }
  11890. ee.EncodeInt(int64(int64(k2)))
  11891. if esep {
  11892. ee.WriteMapElemValue()
  11893. }
  11894. e.encode(v[int64(k2)])
  11895. }
  11896. } else {
  11897. for k2, v2 := range v {
  11898. if esep {
  11899. ee.WriteMapElemKey()
  11900. }
  11901. ee.EncodeInt(int64(k2))
  11902. if esep {
  11903. ee.WriteMapElemValue()
  11904. }
  11905. e.encode(v2)
  11906. }
  11907. }
  11908. ee.WriteMapEnd()
  11909. }
  11910. func (e *Encoder) fastpathEncMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  11911. fastpathTV.EncMapInt64StringV(rv2i(rv).(map[int64]string), e)
  11912. }
  11913. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, e *Encoder) {
  11914. if v == nil {
  11915. e.e.EncodeNil()
  11916. return
  11917. }
  11918. ee, esep := e.e, e.hh.hasElemSeparators()
  11919. ee.WriteMapStart(len(v))
  11920. if e.h.Canonical {
  11921. v2 := make([]int64, len(v))
  11922. var i uint
  11923. for k := range v {
  11924. v2[i] = int64(k)
  11925. i++
  11926. }
  11927. sort.Sort(intSlice(v2))
  11928. for _, k2 := range v2 {
  11929. if esep {
  11930. ee.WriteMapElemKey()
  11931. }
  11932. ee.EncodeInt(int64(int64(k2)))
  11933. if esep {
  11934. ee.WriteMapElemValue()
  11935. }
  11936. if e.h.StringToRaw {
  11937. ee.EncodeStringBytesRaw(bytesView(v[int64(k2)]))
  11938. } else {
  11939. ee.EncodeStringEnc(cUTF8, v[int64(k2)])
  11940. }
  11941. }
  11942. } else {
  11943. for k2, v2 := range v {
  11944. if esep {
  11945. ee.WriteMapElemKey()
  11946. }
  11947. ee.EncodeInt(int64(k2))
  11948. if esep {
  11949. ee.WriteMapElemValue()
  11950. }
  11951. if e.h.StringToRaw {
  11952. ee.EncodeStringBytesRaw(bytesView(v2))
  11953. } else {
  11954. ee.EncodeStringEnc(cUTF8, v2)
  11955. }
  11956. }
  11957. }
  11958. ee.WriteMapEnd()
  11959. }
  11960. func (e *Encoder) fastpathEncMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  11961. fastpathTV.EncMapInt64UintV(rv2i(rv).(map[int64]uint), e)
  11962. }
  11963. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, e *Encoder) {
  11964. if v == nil {
  11965. e.e.EncodeNil()
  11966. return
  11967. }
  11968. ee, esep := e.e, e.hh.hasElemSeparators()
  11969. ee.WriteMapStart(len(v))
  11970. if e.h.Canonical {
  11971. v2 := make([]int64, len(v))
  11972. var i uint
  11973. for k := range v {
  11974. v2[i] = int64(k)
  11975. i++
  11976. }
  11977. sort.Sort(intSlice(v2))
  11978. for _, k2 := range v2 {
  11979. if esep {
  11980. ee.WriteMapElemKey()
  11981. }
  11982. ee.EncodeInt(int64(int64(k2)))
  11983. if esep {
  11984. ee.WriteMapElemValue()
  11985. }
  11986. ee.EncodeUint(uint64(v[int64(k2)]))
  11987. }
  11988. } else {
  11989. for k2, v2 := range v {
  11990. if esep {
  11991. ee.WriteMapElemKey()
  11992. }
  11993. ee.EncodeInt(int64(k2))
  11994. if esep {
  11995. ee.WriteMapElemValue()
  11996. }
  11997. ee.EncodeUint(uint64(v2))
  11998. }
  11999. }
  12000. ee.WriteMapEnd()
  12001. }
  12002. func (e *Encoder) fastpathEncMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  12003. fastpathTV.EncMapInt64Uint8V(rv2i(rv).(map[int64]uint8), e)
  12004. }
  12005. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, e *Encoder) {
  12006. if v == nil {
  12007. e.e.EncodeNil()
  12008. return
  12009. }
  12010. ee, esep := e.e, e.hh.hasElemSeparators()
  12011. ee.WriteMapStart(len(v))
  12012. if e.h.Canonical {
  12013. v2 := make([]int64, len(v))
  12014. var i uint
  12015. for k := range v {
  12016. v2[i] = int64(k)
  12017. i++
  12018. }
  12019. sort.Sort(intSlice(v2))
  12020. for _, k2 := range v2 {
  12021. if esep {
  12022. ee.WriteMapElemKey()
  12023. }
  12024. ee.EncodeInt(int64(int64(k2)))
  12025. if esep {
  12026. ee.WriteMapElemValue()
  12027. }
  12028. ee.EncodeUint(uint64(v[int64(k2)]))
  12029. }
  12030. } else {
  12031. for k2, v2 := range v {
  12032. if esep {
  12033. ee.WriteMapElemKey()
  12034. }
  12035. ee.EncodeInt(int64(k2))
  12036. if esep {
  12037. ee.WriteMapElemValue()
  12038. }
  12039. ee.EncodeUint(uint64(v2))
  12040. }
  12041. }
  12042. ee.WriteMapEnd()
  12043. }
  12044. func (e *Encoder) fastpathEncMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  12045. fastpathTV.EncMapInt64Uint16V(rv2i(rv).(map[int64]uint16), e)
  12046. }
  12047. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, e *Encoder) {
  12048. if v == nil {
  12049. e.e.EncodeNil()
  12050. return
  12051. }
  12052. ee, esep := e.e, e.hh.hasElemSeparators()
  12053. ee.WriteMapStart(len(v))
  12054. if e.h.Canonical {
  12055. v2 := make([]int64, len(v))
  12056. var i uint
  12057. for k := range v {
  12058. v2[i] = int64(k)
  12059. i++
  12060. }
  12061. sort.Sort(intSlice(v2))
  12062. for _, k2 := range v2 {
  12063. if esep {
  12064. ee.WriteMapElemKey()
  12065. }
  12066. ee.EncodeInt(int64(int64(k2)))
  12067. if esep {
  12068. ee.WriteMapElemValue()
  12069. }
  12070. ee.EncodeUint(uint64(v[int64(k2)]))
  12071. }
  12072. } else {
  12073. for k2, v2 := range v {
  12074. if esep {
  12075. ee.WriteMapElemKey()
  12076. }
  12077. ee.EncodeInt(int64(k2))
  12078. if esep {
  12079. ee.WriteMapElemValue()
  12080. }
  12081. ee.EncodeUint(uint64(v2))
  12082. }
  12083. }
  12084. ee.WriteMapEnd()
  12085. }
  12086. func (e *Encoder) fastpathEncMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  12087. fastpathTV.EncMapInt64Uint32V(rv2i(rv).(map[int64]uint32), e)
  12088. }
  12089. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, e *Encoder) {
  12090. if v == nil {
  12091. e.e.EncodeNil()
  12092. return
  12093. }
  12094. ee, esep := e.e, e.hh.hasElemSeparators()
  12095. ee.WriteMapStart(len(v))
  12096. if e.h.Canonical {
  12097. v2 := make([]int64, len(v))
  12098. var i uint
  12099. for k := range v {
  12100. v2[i] = int64(k)
  12101. i++
  12102. }
  12103. sort.Sort(intSlice(v2))
  12104. for _, k2 := range v2 {
  12105. if esep {
  12106. ee.WriteMapElemKey()
  12107. }
  12108. ee.EncodeInt(int64(int64(k2)))
  12109. if esep {
  12110. ee.WriteMapElemValue()
  12111. }
  12112. ee.EncodeUint(uint64(v[int64(k2)]))
  12113. }
  12114. } else {
  12115. for k2, v2 := range v {
  12116. if esep {
  12117. ee.WriteMapElemKey()
  12118. }
  12119. ee.EncodeInt(int64(k2))
  12120. if esep {
  12121. ee.WriteMapElemValue()
  12122. }
  12123. ee.EncodeUint(uint64(v2))
  12124. }
  12125. }
  12126. ee.WriteMapEnd()
  12127. }
  12128. func (e *Encoder) fastpathEncMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  12129. fastpathTV.EncMapInt64Uint64V(rv2i(rv).(map[int64]uint64), e)
  12130. }
  12131. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, e *Encoder) {
  12132. if v == nil {
  12133. e.e.EncodeNil()
  12134. return
  12135. }
  12136. ee, esep := e.e, e.hh.hasElemSeparators()
  12137. ee.WriteMapStart(len(v))
  12138. if e.h.Canonical {
  12139. v2 := make([]int64, len(v))
  12140. var i uint
  12141. for k := range v {
  12142. v2[i] = int64(k)
  12143. i++
  12144. }
  12145. sort.Sort(intSlice(v2))
  12146. for _, k2 := range v2 {
  12147. if esep {
  12148. ee.WriteMapElemKey()
  12149. }
  12150. ee.EncodeInt(int64(int64(k2)))
  12151. if esep {
  12152. ee.WriteMapElemValue()
  12153. }
  12154. ee.EncodeUint(uint64(v[int64(k2)]))
  12155. }
  12156. } else {
  12157. for k2, v2 := range v {
  12158. if esep {
  12159. ee.WriteMapElemKey()
  12160. }
  12161. ee.EncodeInt(int64(k2))
  12162. if esep {
  12163. ee.WriteMapElemValue()
  12164. }
  12165. ee.EncodeUint(uint64(v2))
  12166. }
  12167. }
  12168. ee.WriteMapEnd()
  12169. }
  12170. func (e *Encoder) fastpathEncMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  12171. fastpathTV.EncMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), e)
  12172. }
  12173. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, e *Encoder) {
  12174. if v == nil {
  12175. e.e.EncodeNil()
  12176. return
  12177. }
  12178. ee, esep := e.e, e.hh.hasElemSeparators()
  12179. ee.WriteMapStart(len(v))
  12180. if e.h.Canonical {
  12181. v2 := make([]int64, len(v))
  12182. var i uint
  12183. for k := range v {
  12184. v2[i] = int64(k)
  12185. i++
  12186. }
  12187. sort.Sort(intSlice(v2))
  12188. for _, k2 := range v2 {
  12189. if esep {
  12190. ee.WriteMapElemKey()
  12191. }
  12192. ee.EncodeInt(int64(int64(k2)))
  12193. if esep {
  12194. ee.WriteMapElemValue()
  12195. }
  12196. e.encode(v[int64(k2)])
  12197. }
  12198. } else {
  12199. for k2, v2 := range v {
  12200. if esep {
  12201. ee.WriteMapElemKey()
  12202. }
  12203. ee.EncodeInt(int64(k2))
  12204. if esep {
  12205. ee.WriteMapElemValue()
  12206. }
  12207. e.encode(v2)
  12208. }
  12209. }
  12210. ee.WriteMapEnd()
  12211. }
  12212. func (e *Encoder) fastpathEncMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  12213. fastpathTV.EncMapInt64IntV(rv2i(rv).(map[int64]int), e)
  12214. }
  12215. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, e *Encoder) {
  12216. if v == nil {
  12217. e.e.EncodeNil()
  12218. return
  12219. }
  12220. ee, esep := e.e, e.hh.hasElemSeparators()
  12221. ee.WriteMapStart(len(v))
  12222. if e.h.Canonical {
  12223. v2 := make([]int64, len(v))
  12224. var i uint
  12225. for k := range v {
  12226. v2[i] = int64(k)
  12227. i++
  12228. }
  12229. sort.Sort(intSlice(v2))
  12230. for _, k2 := range v2 {
  12231. if esep {
  12232. ee.WriteMapElemKey()
  12233. }
  12234. ee.EncodeInt(int64(int64(k2)))
  12235. if esep {
  12236. ee.WriteMapElemValue()
  12237. }
  12238. ee.EncodeInt(int64(v[int64(k2)]))
  12239. }
  12240. } else {
  12241. for k2, v2 := range v {
  12242. if esep {
  12243. ee.WriteMapElemKey()
  12244. }
  12245. ee.EncodeInt(int64(k2))
  12246. if esep {
  12247. ee.WriteMapElemValue()
  12248. }
  12249. ee.EncodeInt(int64(v2))
  12250. }
  12251. }
  12252. ee.WriteMapEnd()
  12253. }
  12254. func (e *Encoder) fastpathEncMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  12255. fastpathTV.EncMapInt64Int8V(rv2i(rv).(map[int64]int8), e)
  12256. }
  12257. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, e *Encoder) {
  12258. if v == nil {
  12259. e.e.EncodeNil()
  12260. return
  12261. }
  12262. ee, esep := e.e, e.hh.hasElemSeparators()
  12263. ee.WriteMapStart(len(v))
  12264. if e.h.Canonical {
  12265. v2 := make([]int64, len(v))
  12266. var i uint
  12267. for k := range v {
  12268. v2[i] = int64(k)
  12269. i++
  12270. }
  12271. sort.Sort(intSlice(v2))
  12272. for _, k2 := range v2 {
  12273. if esep {
  12274. ee.WriteMapElemKey()
  12275. }
  12276. ee.EncodeInt(int64(int64(k2)))
  12277. if esep {
  12278. ee.WriteMapElemValue()
  12279. }
  12280. ee.EncodeInt(int64(v[int64(k2)]))
  12281. }
  12282. } else {
  12283. for k2, v2 := range v {
  12284. if esep {
  12285. ee.WriteMapElemKey()
  12286. }
  12287. ee.EncodeInt(int64(k2))
  12288. if esep {
  12289. ee.WriteMapElemValue()
  12290. }
  12291. ee.EncodeInt(int64(v2))
  12292. }
  12293. }
  12294. ee.WriteMapEnd()
  12295. }
  12296. func (e *Encoder) fastpathEncMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  12297. fastpathTV.EncMapInt64Int16V(rv2i(rv).(map[int64]int16), e)
  12298. }
  12299. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, e *Encoder) {
  12300. if v == nil {
  12301. e.e.EncodeNil()
  12302. return
  12303. }
  12304. ee, esep := e.e, e.hh.hasElemSeparators()
  12305. ee.WriteMapStart(len(v))
  12306. if e.h.Canonical {
  12307. v2 := make([]int64, len(v))
  12308. var i uint
  12309. for k := range v {
  12310. v2[i] = int64(k)
  12311. i++
  12312. }
  12313. sort.Sort(intSlice(v2))
  12314. for _, k2 := range v2 {
  12315. if esep {
  12316. ee.WriteMapElemKey()
  12317. }
  12318. ee.EncodeInt(int64(int64(k2)))
  12319. if esep {
  12320. ee.WriteMapElemValue()
  12321. }
  12322. ee.EncodeInt(int64(v[int64(k2)]))
  12323. }
  12324. } else {
  12325. for k2, v2 := range v {
  12326. if esep {
  12327. ee.WriteMapElemKey()
  12328. }
  12329. ee.EncodeInt(int64(k2))
  12330. if esep {
  12331. ee.WriteMapElemValue()
  12332. }
  12333. ee.EncodeInt(int64(v2))
  12334. }
  12335. }
  12336. ee.WriteMapEnd()
  12337. }
  12338. func (e *Encoder) fastpathEncMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  12339. fastpathTV.EncMapInt64Int32V(rv2i(rv).(map[int64]int32), e)
  12340. }
  12341. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, e *Encoder) {
  12342. if v == nil {
  12343. e.e.EncodeNil()
  12344. return
  12345. }
  12346. ee, esep := e.e, e.hh.hasElemSeparators()
  12347. ee.WriteMapStart(len(v))
  12348. if e.h.Canonical {
  12349. v2 := make([]int64, len(v))
  12350. var i uint
  12351. for k := range v {
  12352. v2[i] = int64(k)
  12353. i++
  12354. }
  12355. sort.Sort(intSlice(v2))
  12356. for _, k2 := range v2 {
  12357. if esep {
  12358. ee.WriteMapElemKey()
  12359. }
  12360. ee.EncodeInt(int64(int64(k2)))
  12361. if esep {
  12362. ee.WriteMapElemValue()
  12363. }
  12364. ee.EncodeInt(int64(v[int64(k2)]))
  12365. }
  12366. } else {
  12367. for k2, v2 := range v {
  12368. if esep {
  12369. ee.WriteMapElemKey()
  12370. }
  12371. ee.EncodeInt(int64(k2))
  12372. if esep {
  12373. ee.WriteMapElemValue()
  12374. }
  12375. ee.EncodeInt(int64(v2))
  12376. }
  12377. }
  12378. ee.WriteMapEnd()
  12379. }
  12380. func (e *Encoder) fastpathEncMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  12381. fastpathTV.EncMapInt64Int64V(rv2i(rv).(map[int64]int64), e)
  12382. }
  12383. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, e *Encoder) {
  12384. if v == nil {
  12385. e.e.EncodeNil()
  12386. return
  12387. }
  12388. ee, esep := e.e, e.hh.hasElemSeparators()
  12389. ee.WriteMapStart(len(v))
  12390. if e.h.Canonical {
  12391. v2 := make([]int64, len(v))
  12392. var i uint
  12393. for k := range v {
  12394. v2[i] = int64(k)
  12395. i++
  12396. }
  12397. sort.Sort(intSlice(v2))
  12398. for _, k2 := range v2 {
  12399. if esep {
  12400. ee.WriteMapElemKey()
  12401. }
  12402. ee.EncodeInt(int64(int64(k2)))
  12403. if esep {
  12404. ee.WriteMapElemValue()
  12405. }
  12406. ee.EncodeInt(int64(v[int64(k2)]))
  12407. }
  12408. } else {
  12409. for k2, v2 := range v {
  12410. if esep {
  12411. ee.WriteMapElemKey()
  12412. }
  12413. ee.EncodeInt(int64(k2))
  12414. if esep {
  12415. ee.WriteMapElemValue()
  12416. }
  12417. ee.EncodeInt(int64(v2))
  12418. }
  12419. }
  12420. ee.WriteMapEnd()
  12421. }
  12422. func (e *Encoder) fastpathEncMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  12423. fastpathTV.EncMapInt64Float32V(rv2i(rv).(map[int64]float32), e)
  12424. }
  12425. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, e *Encoder) {
  12426. if v == nil {
  12427. e.e.EncodeNil()
  12428. return
  12429. }
  12430. ee, esep := e.e, e.hh.hasElemSeparators()
  12431. ee.WriteMapStart(len(v))
  12432. if e.h.Canonical {
  12433. v2 := make([]int64, len(v))
  12434. var i uint
  12435. for k := range v {
  12436. v2[i] = int64(k)
  12437. i++
  12438. }
  12439. sort.Sort(intSlice(v2))
  12440. for _, k2 := range v2 {
  12441. if esep {
  12442. ee.WriteMapElemKey()
  12443. }
  12444. ee.EncodeInt(int64(int64(k2)))
  12445. if esep {
  12446. ee.WriteMapElemValue()
  12447. }
  12448. ee.EncodeFloat32(v[int64(k2)])
  12449. }
  12450. } else {
  12451. for k2, v2 := range v {
  12452. if esep {
  12453. ee.WriteMapElemKey()
  12454. }
  12455. ee.EncodeInt(int64(k2))
  12456. if esep {
  12457. ee.WriteMapElemValue()
  12458. }
  12459. ee.EncodeFloat32(v2)
  12460. }
  12461. }
  12462. ee.WriteMapEnd()
  12463. }
  12464. func (e *Encoder) fastpathEncMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  12465. fastpathTV.EncMapInt64Float64V(rv2i(rv).(map[int64]float64), e)
  12466. }
  12467. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, e *Encoder) {
  12468. if v == nil {
  12469. e.e.EncodeNil()
  12470. return
  12471. }
  12472. ee, esep := e.e, e.hh.hasElemSeparators()
  12473. ee.WriteMapStart(len(v))
  12474. if e.h.Canonical {
  12475. v2 := make([]int64, len(v))
  12476. var i uint
  12477. for k := range v {
  12478. v2[i] = int64(k)
  12479. i++
  12480. }
  12481. sort.Sort(intSlice(v2))
  12482. for _, k2 := range v2 {
  12483. if esep {
  12484. ee.WriteMapElemKey()
  12485. }
  12486. ee.EncodeInt(int64(int64(k2)))
  12487. if esep {
  12488. ee.WriteMapElemValue()
  12489. }
  12490. ee.EncodeFloat64(v[int64(k2)])
  12491. }
  12492. } else {
  12493. for k2, v2 := range v {
  12494. if esep {
  12495. ee.WriteMapElemKey()
  12496. }
  12497. ee.EncodeInt(int64(k2))
  12498. if esep {
  12499. ee.WriteMapElemValue()
  12500. }
  12501. ee.EncodeFloat64(v2)
  12502. }
  12503. }
  12504. ee.WriteMapEnd()
  12505. }
  12506. func (e *Encoder) fastpathEncMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  12507. fastpathTV.EncMapInt64BoolV(rv2i(rv).(map[int64]bool), e)
  12508. }
  12509. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, e *Encoder) {
  12510. if v == nil {
  12511. e.e.EncodeNil()
  12512. return
  12513. }
  12514. ee, esep := e.e, e.hh.hasElemSeparators()
  12515. ee.WriteMapStart(len(v))
  12516. if e.h.Canonical {
  12517. v2 := make([]int64, len(v))
  12518. var i uint
  12519. for k := range v {
  12520. v2[i] = int64(k)
  12521. i++
  12522. }
  12523. sort.Sort(intSlice(v2))
  12524. for _, k2 := range v2 {
  12525. if esep {
  12526. ee.WriteMapElemKey()
  12527. }
  12528. ee.EncodeInt(int64(int64(k2)))
  12529. if esep {
  12530. ee.WriteMapElemValue()
  12531. }
  12532. ee.EncodeBool(v[int64(k2)])
  12533. }
  12534. } else {
  12535. for k2, v2 := range v {
  12536. if esep {
  12537. ee.WriteMapElemKey()
  12538. }
  12539. ee.EncodeInt(int64(k2))
  12540. if esep {
  12541. ee.WriteMapElemValue()
  12542. }
  12543. ee.EncodeBool(v2)
  12544. }
  12545. }
  12546. ee.WriteMapEnd()
  12547. }
  12548. func (e *Encoder) fastpathEncMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  12549. fastpathTV.EncMapBoolIntfV(rv2i(rv).(map[bool]interface{}), e)
  12550. }
  12551. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, e *Encoder) {
  12552. if v == nil {
  12553. e.e.EncodeNil()
  12554. return
  12555. }
  12556. ee, esep := e.e, e.hh.hasElemSeparators()
  12557. ee.WriteMapStart(len(v))
  12558. if e.h.Canonical {
  12559. v2 := make([]bool, len(v))
  12560. var i uint
  12561. for k := range v {
  12562. v2[i] = bool(k)
  12563. i++
  12564. }
  12565. sort.Sort(boolSlice(v2))
  12566. for _, k2 := range v2 {
  12567. if esep {
  12568. ee.WriteMapElemKey()
  12569. }
  12570. ee.EncodeBool(bool(k2))
  12571. if esep {
  12572. ee.WriteMapElemValue()
  12573. }
  12574. e.encode(v[bool(k2)])
  12575. }
  12576. } else {
  12577. for k2, v2 := range v {
  12578. if esep {
  12579. ee.WriteMapElemKey()
  12580. }
  12581. ee.EncodeBool(k2)
  12582. if esep {
  12583. ee.WriteMapElemValue()
  12584. }
  12585. e.encode(v2)
  12586. }
  12587. }
  12588. ee.WriteMapEnd()
  12589. }
  12590. func (e *Encoder) fastpathEncMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  12591. fastpathTV.EncMapBoolStringV(rv2i(rv).(map[bool]string), e)
  12592. }
  12593. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, e *Encoder) {
  12594. if v == nil {
  12595. e.e.EncodeNil()
  12596. return
  12597. }
  12598. ee, esep := e.e, e.hh.hasElemSeparators()
  12599. ee.WriteMapStart(len(v))
  12600. if e.h.Canonical {
  12601. v2 := make([]bool, len(v))
  12602. var i uint
  12603. for k := range v {
  12604. v2[i] = bool(k)
  12605. i++
  12606. }
  12607. sort.Sort(boolSlice(v2))
  12608. for _, k2 := range v2 {
  12609. if esep {
  12610. ee.WriteMapElemKey()
  12611. }
  12612. ee.EncodeBool(bool(k2))
  12613. if esep {
  12614. ee.WriteMapElemValue()
  12615. }
  12616. if e.h.StringToRaw {
  12617. ee.EncodeStringBytesRaw(bytesView(v[bool(k2)]))
  12618. } else {
  12619. ee.EncodeStringEnc(cUTF8, v[bool(k2)])
  12620. }
  12621. }
  12622. } else {
  12623. for k2, v2 := range v {
  12624. if esep {
  12625. ee.WriteMapElemKey()
  12626. }
  12627. ee.EncodeBool(k2)
  12628. if esep {
  12629. ee.WriteMapElemValue()
  12630. }
  12631. if e.h.StringToRaw {
  12632. ee.EncodeStringBytesRaw(bytesView(v2))
  12633. } else {
  12634. ee.EncodeStringEnc(cUTF8, v2)
  12635. }
  12636. }
  12637. }
  12638. ee.WriteMapEnd()
  12639. }
  12640. func (e *Encoder) fastpathEncMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  12641. fastpathTV.EncMapBoolUintV(rv2i(rv).(map[bool]uint), e)
  12642. }
  12643. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, e *Encoder) {
  12644. if v == nil {
  12645. e.e.EncodeNil()
  12646. return
  12647. }
  12648. ee, esep := e.e, e.hh.hasElemSeparators()
  12649. ee.WriteMapStart(len(v))
  12650. if e.h.Canonical {
  12651. v2 := make([]bool, len(v))
  12652. var i uint
  12653. for k := range v {
  12654. v2[i] = bool(k)
  12655. i++
  12656. }
  12657. sort.Sort(boolSlice(v2))
  12658. for _, k2 := range v2 {
  12659. if esep {
  12660. ee.WriteMapElemKey()
  12661. }
  12662. ee.EncodeBool(bool(k2))
  12663. if esep {
  12664. ee.WriteMapElemValue()
  12665. }
  12666. ee.EncodeUint(uint64(v[bool(k2)]))
  12667. }
  12668. } else {
  12669. for k2, v2 := range v {
  12670. if esep {
  12671. ee.WriteMapElemKey()
  12672. }
  12673. ee.EncodeBool(k2)
  12674. if esep {
  12675. ee.WriteMapElemValue()
  12676. }
  12677. ee.EncodeUint(uint64(v2))
  12678. }
  12679. }
  12680. ee.WriteMapEnd()
  12681. }
  12682. func (e *Encoder) fastpathEncMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  12683. fastpathTV.EncMapBoolUint8V(rv2i(rv).(map[bool]uint8), e)
  12684. }
  12685. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, e *Encoder) {
  12686. if v == nil {
  12687. e.e.EncodeNil()
  12688. return
  12689. }
  12690. ee, esep := e.e, e.hh.hasElemSeparators()
  12691. ee.WriteMapStart(len(v))
  12692. if e.h.Canonical {
  12693. v2 := make([]bool, len(v))
  12694. var i uint
  12695. for k := range v {
  12696. v2[i] = bool(k)
  12697. i++
  12698. }
  12699. sort.Sort(boolSlice(v2))
  12700. for _, k2 := range v2 {
  12701. if esep {
  12702. ee.WriteMapElemKey()
  12703. }
  12704. ee.EncodeBool(bool(k2))
  12705. if esep {
  12706. ee.WriteMapElemValue()
  12707. }
  12708. ee.EncodeUint(uint64(v[bool(k2)]))
  12709. }
  12710. } else {
  12711. for k2, v2 := range v {
  12712. if esep {
  12713. ee.WriteMapElemKey()
  12714. }
  12715. ee.EncodeBool(k2)
  12716. if esep {
  12717. ee.WriteMapElemValue()
  12718. }
  12719. ee.EncodeUint(uint64(v2))
  12720. }
  12721. }
  12722. ee.WriteMapEnd()
  12723. }
  12724. func (e *Encoder) fastpathEncMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  12725. fastpathTV.EncMapBoolUint16V(rv2i(rv).(map[bool]uint16), e)
  12726. }
  12727. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, e *Encoder) {
  12728. if v == nil {
  12729. e.e.EncodeNil()
  12730. return
  12731. }
  12732. ee, esep := e.e, e.hh.hasElemSeparators()
  12733. ee.WriteMapStart(len(v))
  12734. if e.h.Canonical {
  12735. v2 := make([]bool, len(v))
  12736. var i uint
  12737. for k := range v {
  12738. v2[i] = bool(k)
  12739. i++
  12740. }
  12741. sort.Sort(boolSlice(v2))
  12742. for _, k2 := range v2 {
  12743. if esep {
  12744. ee.WriteMapElemKey()
  12745. }
  12746. ee.EncodeBool(bool(k2))
  12747. if esep {
  12748. ee.WriteMapElemValue()
  12749. }
  12750. ee.EncodeUint(uint64(v[bool(k2)]))
  12751. }
  12752. } else {
  12753. for k2, v2 := range v {
  12754. if esep {
  12755. ee.WriteMapElemKey()
  12756. }
  12757. ee.EncodeBool(k2)
  12758. if esep {
  12759. ee.WriteMapElemValue()
  12760. }
  12761. ee.EncodeUint(uint64(v2))
  12762. }
  12763. }
  12764. ee.WriteMapEnd()
  12765. }
  12766. func (e *Encoder) fastpathEncMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  12767. fastpathTV.EncMapBoolUint32V(rv2i(rv).(map[bool]uint32), e)
  12768. }
  12769. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, e *Encoder) {
  12770. if v == nil {
  12771. e.e.EncodeNil()
  12772. return
  12773. }
  12774. ee, esep := e.e, e.hh.hasElemSeparators()
  12775. ee.WriteMapStart(len(v))
  12776. if e.h.Canonical {
  12777. v2 := make([]bool, len(v))
  12778. var i uint
  12779. for k := range v {
  12780. v2[i] = bool(k)
  12781. i++
  12782. }
  12783. sort.Sort(boolSlice(v2))
  12784. for _, k2 := range v2 {
  12785. if esep {
  12786. ee.WriteMapElemKey()
  12787. }
  12788. ee.EncodeBool(bool(k2))
  12789. if esep {
  12790. ee.WriteMapElemValue()
  12791. }
  12792. ee.EncodeUint(uint64(v[bool(k2)]))
  12793. }
  12794. } else {
  12795. for k2, v2 := range v {
  12796. if esep {
  12797. ee.WriteMapElemKey()
  12798. }
  12799. ee.EncodeBool(k2)
  12800. if esep {
  12801. ee.WriteMapElemValue()
  12802. }
  12803. ee.EncodeUint(uint64(v2))
  12804. }
  12805. }
  12806. ee.WriteMapEnd()
  12807. }
  12808. func (e *Encoder) fastpathEncMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  12809. fastpathTV.EncMapBoolUint64V(rv2i(rv).(map[bool]uint64), e)
  12810. }
  12811. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, 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([]bool, len(v))
  12820. var i uint
  12821. for k := range v {
  12822. v2[i] = bool(k)
  12823. i++
  12824. }
  12825. sort.Sort(boolSlice(v2))
  12826. for _, k2 := range v2 {
  12827. if esep {
  12828. ee.WriteMapElemKey()
  12829. }
  12830. ee.EncodeBool(bool(k2))
  12831. if esep {
  12832. ee.WriteMapElemValue()
  12833. }
  12834. ee.EncodeUint(uint64(v[bool(k2)]))
  12835. }
  12836. } else {
  12837. for k2, v2 := range v {
  12838. if esep {
  12839. ee.WriteMapElemKey()
  12840. }
  12841. ee.EncodeBool(k2)
  12842. if esep {
  12843. ee.WriteMapElemValue()
  12844. }
  12845. ee.EncodeUint(uint64(v2))
  12846. }
  12847. }
  12848. ee.WriteMapEnd()
  12849. }
  12850. func (e *Encoder) fastpathEncMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  12851. fastpathTV.EncMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), e)
  12852. }
  12853. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, e *Encoder) {
  12854. if v == nil {
  12855. e.e.EncodeNil()
  12856. return
  12857. }
  12858. ee, esep := e.e, e.hh.hasElemSeparators()
  12859. ee.WriteMapStart(len(v))
  12860. if e.h.Canonical {
  12861. v2 := make([]bool, len(v))
  12862. var i uint
  12863. for k := range v {
  12864. v2[i] = bool(k)
  12865. i++
  12866. }
  12867. sort.Sort(boolSlice(v2))
  12868. for _, k2 := range v2 {
  12869. if esep {
  12870. ee.WriteMapElemKey()
  12871. }
  12872. ee.EncodeBool(bool(k2))
  12873. if esep {
  12874. ee.WriteMapElemValue()
  12875. }
  12876. e.encode(v[bool(k2)])
  12877. }
  12878. } else {
  12879. for k2, v2 := range v {
  12880. if esep {
  12881. ee.WriteMapElemKey()
  12882. }
  12883. ee.EncodeBool(k2)
  12884. if esep {
  12885. ee.WriteMapElemValue()
  12886. }
  12887. e.encode(v2)
  12888. }
  12889. }
  12890. ee.WriteMapEnd()
  12891. }
  12892. func (e *Encoder) fastpathEncMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  12893. fastpathTV.EncMapBoolIntV(rv2i(rv).(map[bool]int), e)
  12894. }
  12895. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, e *Encoder) {
  12896. if v == nil {
  12897. e.e.EncodeNil()
  12898. return
  12899. }
  12900. ee, esep := e.e, e.hh.hasElemSeparators()
  12901. ee.WriteMapStart(len(v))
  12902. if e.h.Canonical {
  12903. v2 := make([]bool, len(v))
  12904. var i uint
  12905. for k := range v {
  12906. v2[i] = bool(k)
  12907. i++
  12908. }
  12909. sort.Sort(boolSlice(v2))
  12910. for _, k2 := range v2 {
  12911. if esep {
  12912. ee.WriteMapElemKey()
  12913. }
  12914. ee.EncodeBool(bool(k2))
  12915. if esep {
  12916. ee.WriteMapElemValue()
  12917. }
  12918. ee.EncodeInt(int64(v[bool(k2)]))
  12919. }
  12920. } else {
  12921. for k2, v2 := range v {
  12922. if esep {
  12923. ee.WriteMapElemKey()
  12924. }
  12925. ee.EncodeBool(k2)
  12926. if esep {
  12927. ee.WriteMapElemValue()
  12928. }
  12929. ee.EncodeInt(int64(v2))
  12930. }
  12931. }
  12932. ee.WriteMapEnd()
  12933. }
  12934. func (e *Encoder) fastpathEncMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  12935. fastpathTV.EncMapBoolInt8V(rv2i(rv).(map[bool]int8), e)
  12936. }
  12937. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, e *Encoder) {
  12938. if v == nil {
  12939. e.e.EncodeNil()
  12940. return
  12941. }
  12942. ee, esep := e.e, e.hh.hasElemSeparators()
  12943. ee.WriteMapStart(len(v))
  12944. if e.h.Canonical {
  12945. v2 := make([]bool, len(v))
  12946. var i uint
  12947. for k := range v {
  12948. v2[i] = bool(k)
  12949. i++
  12950. }
  12951. sort.Sort(boolSlice(v2))
  12952. for _, k2 := range v2 {
  12953. if esep {
  12954. ee.WriteMapElemKey()
  12955. }
  12956. ee.EncodeBool(bool(k2))
  12957. if esep {
  12958. ee.WriteMapElemValue()
  12959. }
  12960. ee.EncodeInt(int64(v[bool(k2)]))
  12961. }
  12962. } else {
  12963. for k2, v2 := range v {
  12964. if esep {
  12965. ee.WriteMapElemKey()
  12966. }
  12967. ee.EncodeBool(k2)
  12968. if esep {
  12969. ee.WriteMapElemValue()
  12970. }
  12971. ee.EncodeInt(int64(v2))
  12972. }
  12973. }
  12974. ee.WriteMapEnd()
  12975. }
  12976. func (e *Encoder) fastpathEncMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  12977. fastpathTV.EncMapBoolInt16V(rv2i(rv).(map[bool]int16), e)
  12978. }
  12979. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, e *Encoder) {
  12980. if v == nil {
  12981. e.e.EncodeNil()
  12982. return
  12983. }
  12984. ee, esep := e.e, e.hh.hasElemSeparators()
  12985. ee.WriteMapStart(len(v))
  12986. if e.h.Canonical {
  12987. v2 := make([]bool, len(v))
  12988. var i uint
  12989. for k := range v {
  12990. v2[i] = bool(k)
  12991. i++
  12992. }
  12993. sort.Sort(boolSlice(v2))
  12994. for _, k2 := range v2 {
  12995. if esep {
  12996. ee.WriteMapElemKey()
  12997. }
  12998. ee.EncodeBool(bool(k2))
  12999. if esep {
  13000. ee.WriteMapElemValue()
  13001. }
  13002. ee.EncodeInt(int64(v[bool(k2)]))
  13003. }
  13004. } else {
  13005. for k2, v2 := range v {
  13006. if esep {
  13007. ee.WriteMapElemKey()
  13008. }
  13009. ee.EncodeBool(k2)
  13010. if esep {
  13011. ee.WriteMapElemValue()
  13012. }
  13013. ee.EncodeInt(int64(v2))
  13014. }
  13015. }
  13016. ee.WriteMapEnd()
  13017. }
  13018. func (e *Encoder) fastpathEncMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  13019. fastpathTV.EncMapBoolInt32V(rv2i(rv).(map[bool]int32), e)
  13020. }
  13021. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, e *Encoder) {
  13022. if v == nil {
  13023. e.e.EncodeNil()
  13024. return
  13025. }
  13026. ee, esep := e.e, e.hh.hasElemSeparators()
  13027. ee.WriteMapStart(len(v))
  13028. if e.h.Canonical {
  13029. v2 := make([]bool, len(v))
  13030. var i uint
  13031. for k := range v {
  13032. v2[i] = bool(k)
  13033. i++
  13034. }
  13035. sort.Sort(boolSlice(v2))
  13036. for _, k2 := range v2 {
  13037. if esep {
  13038. ee.WriteMapElemKey()
  13039. }
  13040. ee.EncodeBool(bool(k2))
  13041. if esep {
  13042. ee.WriteMapElemValue()
  13043. }
  13044. ee.EncodeInt(int64(v[bool(k2)]))
  13045. }
  13046. } else {
  13047. for k2, v2 := range v {
  13048. if esep {
  13049. ee.WriteMapElemKey()
  13050. }
  13051. ee.EncodeBool(k2)
  13052. if esep {
  13053. ee.WriteMapElemValue()
  13054. }
  13055. ee.EncodeInt(int64(v2))
  13056. }
  13057. }
  13058. ee.WriteMapEnd()
  13059. }
  13060. func (e *Encoder) fastpathEncMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  13061. fastpathTV.EncMapBoolInt64V(rv2i(rv).(map[bool]int64), e)
  13062. }
  13063. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, e *Encoder) {
  13064. if v == nil {
  13065. e.e.EncodeNil()
  13066. return
  13067. }
  13068. ee, esep := e.e, e.hh.hasElemSeparators()
  13069. ee.WriteMapStart(len(v))
  13070. if e.h.Canonical {
  13071. v2 := make([]bool, len(v))
  13072. var i uint
  13073. for k := range v {
  13074. v2[i] = bool(k)
  13075. i++
  13076. }
  13077. sort.Sort(boolSlice(v2))
  13078. for _, k2 := range v2 {
  13079. if esep {
  13080. ee.WriteMapElemKey()
  13081. }
  13082. ee.EncodeBool(bool(k2))
  13083. if esep {
  13084. ee.WriteMapElemValue()
  13085. }
  13086. ee.EncodeInt(int64(v[bool(k2)]))
  13087. }
  13088. } else {
  13089. for k2, v2 := range v {
  13090. if esep {
  13091. ee.WriteMapElemKey()
  13092. }
  13093. ee.EncodeBool(k2)
  13094. if esep {
  13095. ee.WriteMapElemValue()
  13096. }
  13097. ee.EncodeInt(int64(v2))
  13098. }
  13099. }
  13100. ee.WriteMapEnd()
  13101. }
  13102. func (e *Encoder) fastpathEncMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  13103. fastpathTV.EncMapBoolFloat32V(rv2i(rv).(map[bool]float32), e)
  13104. }
  13105. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, e *Encoder) {
  13106. if v == nil {
  13107. e.e.EncodeNil()
  13108. return
  13109. }
  13110. ee, esep := e.e, e.hh.hasElemSeparators()
  13111. ee.WriteMapStart(len(v))
  13112. if e.h.Canonical {
  13113. v2 := make([]bool, len(v))
  13114. var i uint
  13115. for k := range v {
  13116. v2[i] = bool(k)
  13117. i++
  13118. }
  13119. sort.Sort(boolSlice(v2))
  13120. for _, k2 := range v2 {
  13121. if esep {
  13122. ee.WriteMapElemKey()
  13123. }
  13124. ee.EncodeBool(bool(k2))
  13125. if esep {
  13126. ee.WriteMapElemValue()
  13127. }
  13128. ee.EncodeFloat32(v[bool(k2)])
  13129. }
  13130. } else {
  13131. for k2, v2 := range v {
  13132. if esep {
  13133. ee.WriteMapElemKey()
  13134. }
  13135. ee.EncodeBool(k2)
  13136. if esep {
  13137. ee.WriteMapElemValue()
  13138. }
  13139. ee.EncodeFloat32(v2)
  13140. }
  13141. }
  13142. ee.WriteMapEnd()
  13143. }
  13144. func (e *Encoder) fastpathEncMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  13145. fastpathTV.EncMapBoolFloat64V(rv2i(rv).(map[bool]float64), e)
  13146. }
  13147. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, 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([]bool, len(v))
  13156. var i uint
  13157. for k := range v {
  13158. v2[i] = bool(k)
  13159. i++
  13160. }
  13161. sort.Sort(boolSlice(v2))
  13162. for _, k2 := range v2 {
  13163. if esep {
  13164. ee.WriteMapElemKey()
  13165. }
  13166. ee.EncodeBool(bool(k2))
  13167. if esep {
  13168. ee.WriteMapElemValue()
  13169. }
  13170. ee.EncodeFloat64(v[bool(k2)])
  13171. }
  13172. } else {
  13173. for k2, v2 := range v {
  13174. if esep {
  13175. ee.WriteMapElemKey()
  13176. }
  13177. ee.EncodeBool(k2)
  13178. if esep {
  13179. ee.WriteMapElemValue()
  13180. }
  13181. ee.EncodeFloat64(v2)
  13182. }
  13183. }
  13184. ee.WriteMapEnd()
  13185. }
  13186. func (e *Encoder) fastpathEncMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  13187. fastpathTV.EncMapBoolBoolV(rv2i(rv).(map[bool]bool), e)
  13188. }
  13189. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, e *Encoder) {
  13190. if v == nil {
  13191. e.e.EncodeNil()
  13192. return
  13193. }
  13194. ee, esep := e.e, e.hh.hasElemSeparators()
  13195. ee.WriteMapStart(len(v))
  13196. if e.h.Canonical {
  13197. v2 := make([]bool, len(v))
  13198. var i uint
  13199. for k := range v {
  13200. v2[i] = bool(k)
  13201. i++
  13202. }
  13203. sort.Sort(boolSlice(v2))
  13204. for _, k2 := range v2 {
  13205. if esep {
  13206. ee.WriteMapElemKey()
  13207. }
  13208. ee.EncodeBool(bool(k2))
  13209. if esep {
  13210. ee.WriteMapElemValue()
  13211. }
  13212. ee.EncodeBool(v[bool(k2)])
  13213. }
  13214. } else {
  13215. for k2, v2 := range v {
  13216. if esep {
  13217. ee.WriteMapElemKey()
  13218. }
  13219. ee.EncodeBool(k2)
  13220. if esep {
  13221. ee.WriteMapElemValue()
  13222. }
  13223. ee.EncodeBool(v2)
  13224. }
  13225. }
  13226. ee.WriteMapEnd()
  13227. }
  13228. // -- decode
  13229. // -- -- fast path type switch
  13230. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  13231. var changed bool
  13232. switch v := iv.(type) {
  13233. case []interface{}:
  13234. var v2 []interface{}
  13235. v2, changed = fastpathTV.DecSliceIntfV(v, false, d)
  13236. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13237. copy(v, v2)
  13238. }
  13239. case *[]interface{}:
  13240. var v2 []interface{}
  13241. v2, changed = fastpathTV.DecSliceIntfV(*v, true, d)
  13242. if changed {
  13243. *v = v2
  13244. }
  13245. case []string:
  13246. var v2 []string
  13247. v2, changed = fastpathTV.DecSliceStringV(v, false, d)
  13248. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13249. copy(v, v2)
  13250. }
  13251. case *[]string:
  13252. var v2 []string
  13253. v2, changed = fastpathTV.DecSliceStringV(*v, true, d)
  13254. if changed {
  13255. *v = v2
  13256. }
  13257. case []float32:
  13258. var v2 []float32
  13259. v2, changed = fastpathTV.DecSliceFloat32V(v, false, d)
  13260. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13261. copy(v, v2)
  13262. }
  13263. case *[]float32:
  13264. var v2 []float32
  13265. v2, changed = fastpathTV.DecSliceFloat32V(*v, true, d)
  13266. if changed {
  13267. *v = v2
  13268. }
  13269. case []float64:
  13270. var v2 []float64
  13271. v2, changed = fastpathTV.DecSliceFloat64V(v, false, d)
  13272. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13273. copy(v, v2)
  13274. }
  13275. case *[]float64:
  13276. var v2 []float64
  13277. v2, changed = fastpathTV.DecSliceFloat64V(*v, true, d)
  13278. if changed {
  13279. *v = v2
  13280. }
  13281. case []uint:
  13282. var v2 []uint
  13283. v2, changed = fastpathTV.DecSliceUintV(v, false, d)
  13284. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13285. copy(v, v2)
  13286. }
  13287. case *[]uint:
  13288. var v2 []uint
  13289. v2, changed = fastpathTV.DecSliceUintV(*v, true, d)
  13290. if changed {
  13291. *v = v2
  13292. }
  13293. case []uint16:
  13294. var v2 []uint16
  13295. v2, changed = fastpathTV.DecSliceUint16V(v, false, d)
  13296. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13297. copy(v, v2)
  13298. }
  13299. case *[]uint16:
  13300. var v2 []uint16
  13301. v2, changed = fastpathTV.DecSliceUint16V(*v, true, d)
  13302. if changed {
  13303. *v = v2
  13304. }
  13305. case []uint32:
  13306. var v2 []uint32
  13307. v2, changed = fastpathTV.DecSliceUint32V(v, false, d)
  13308. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13309. copy(v, v2)
  13310. }
  13311. case *[]uint32:
  13312. var v2 []uint32
  13313. v2, changed = fastpathTV.DecSliceUint32V(*v, true, d)
  13314. if changed {
  13315. *v = v2
  13316. }
  13317. case []uint64:
  13318. var v2 []uint64
  13319. v2, changed = fastpathTV.DecSliceUint64V(v, false, d)
  13320. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13321. copy(v, v2)
  13322. }
  13323. case *[]uint64:
  13324. var v2 []uint64
  13325. v2, changed = fastpathTV.DecSliceUint64V(*v, true, d)
  13326. if changed {
  13327. *v = v2
  13328. }
  13329. case []uintptr:
  13330. var v2 []uintptr
  13331. v2, changed = fastpathTV.DecSliceUintptrV(v, false, d)
  13332. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13333. copy(v, v2)
  13334. }
  13335. case *[]uintptr:
  13336. var v2 []uintptr
  13337. v2, changed = fastpathTV.DecSliceUintptrV(*v, true, d)
  13338. if changed {
  13339. *v = v2
  13340. }
  13341. case []int:
  13342. var v2 []int
  13343. v2, changed = fastpathTV.DecSliceIntV(v, false, d)
  13344. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13345. copy(v, v2)
  13346. }
  13347. case *[]int:
  13348. var v2 []int
  13349. v2, changed = fastpathTV.DecSliceIntV(*v, true, d)
  13350. if changed {
  13351. *v = v2
  13352. }
  13353. case []int8:
  13354. var v2 []int8
  13355. v2, changed = fastpathTV.DecSliceInt8V(v, false, d)
  13356. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13357. copy(v, v2)
  13358. }
  13359. case *[]int8:
  13360. var v2 []int8
  13361. v2, changed = fastpathTV.DecSliceInt8V(*v, true, d)
  13362. if changed {
  13363. *v = v2
  13364. }
  13365. case []int16:
  13366. var v2 []int16
  13367. v2, changed = fastpathTV.DecSliceInt16V(v, false, d)
  13368. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13369. copy(v, v2)
  13370. }
  13371. case *[]int16:
  13372. var v2 []int16
  13373. v2, changed = fastpathTV.DecSliceInt16V(*v, true, d)
  13374. if changed {
  13375. *v = v2
  13376. }
  13377. case []int32:
  13378. var v2 []int32
  13379. v2, changed = fastpathTV.DecSliceInt32V(v, false, d)
  13380. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13381. copy(v, v2)
  13382. }
  13383. case *[]int32:
  13384. var v2 []int32
  13385. v2, changed = fastpathTV.DecSliceInt32V(*v, true, d)
  13386. if changed {
  13387. *v = v2
  13388. }
  13389. case []int64:
  13390. var v2 []int64
  13391. v2, changed = fastpathTV.DecSliceInt64V(v, false, d)
  13392. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13393. copy(v, v2)
  13394. }
  13395. case *[]int64:
  13396. var v2 []int64
  13397. v2, changed = fastpathTV.DecSliceInt64V(*v, true, d)
  13398. if changed {
  13399. *v = v2
  13400. }
  13401. case []bool:
  13402. var v2 []bool
  13403. v2, changed = fastpathTV.DecSliceBoolV(v, false, d)
  13404. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13405. copy(v, v2)
  13406. }
  13407. case *[]bool:
  13408. var v2 []bool
  13409. v2, changed = fastpathTV.DecSliceBoolV(*v, true, d)
  13410. if changed {
  13411. *v = v2
  13412. }
  13413. case map[interface{}]interface{}:
  13414. fastpathTV.DecMapIntfIntfV(v, false, d)
  13415. case *map[interface{}]interface{}:
  13416. var v2 map[interface{}]interface{}
  13417. v2, changed = fastpathTV.DecMapIntfIntfV(*v, true, d)
  13418. if changed {
  13419. *v = v2
  13420. }
  13421. case map[interface{}]string:
  13422. fastpathTV.DecMapIntfStringV(v, false, d)
  13423. case *map[interface{}]string:
  13424. var v2 map[interface{}]string
  13425. v2, changed = fastpathTV.DecMapIntfStringV(*v, true, d)
  13426. if changed {
  13427. *v = v2
  13428. }
  13429. case map[interface{}]uint:
  13430. fastpathTV.DecMapIntfUintV(v, false, d)
  13431. case *map[interface{}]uint:
  13432. var v2 map[interface{}]uint
  13433. v2, changed = fastpathTV.DecMapIntfUintV(*v, true, d)
  13434. if changed {
  13435. *v = v2
  13436. }
  13437. case map[interface{}]uint8:
  13438. fastpathTV.DecMapIntfUint8V(v, false, d)
  13439. case *map[interface{}]uint8:
  13440. var v2 map[interface{}]uint8
  13441. v2, changed = fastpathTV.DecMapIntfUint8V(*v, true, d)
  13442. if changed {
  13443. *v = v2
  13444. }
  13445. case map[interface{}]uint16:
  13446. fastpathTV.DecMapIntfUint16V(v, false, d)
  13447. case *map[interface{}]uint16:
  13448. var v2 map[interface{}]uint16
  13449. v2, changed = fastpathTV.DecMapIntfUint16V(*v, true, d)
  13450. if changed {
  13451. *v = v2
  13452. }
  13453. case map[interface{}]uint32:
  13454. fastpathTV.DecMapIntfUint32V(v, false, d)
  13455. case *map[interface{}]uint32:
  13456. var v2 map[interface{}]uint32
  13457. v2, changed = fastpathTV.DecMapIntfUint32V(*v, true, d)
  13458. if changed {
  13459. *v = v2
  13460. }
  13461. case map[interface{}]uint64:
  13462. fastpathTV.DecMapIntfUint64V(v, false, d)
  13463. case *map[interface{}]uint64:
  13464. var v2 map[interface{}]uint64
  13465. v2, changed = fastpathTV.DecMapIntfUint64V(*v, true, d)
  13466. if changed {
  13467. *v = v2
  13468. }
  13469. case map[interface{}]uintptr:
  13470. fastpathTV.DecMapIntfUintptrV(v, false, d)
  13471. case *map[interface{}]uintptr:
  13472. var v2 map[interface{}]uintptr
  13473. v2, changed = fastpathTV.DecMapIntfUintptrV(*v, true, d)
  13474. if changed {
  13475. *v = v2
  13476. }
  13477. case map[interface{}]int:
  13478. fastpathTV.DecMapIntfIntV(v, false, d)
  13479. case *map[interface{}]int:
  13480. var v2 map[interface{}]int
  13481. v2, changed = fastpathTV.DecMapIntfIntV(*v, true, d)
  13482. if changed {
  13483. *v = v2
  13484. }
  13485. case map[interface{}]int8:
  13486. fastpathTV.DecMapIntfInt8V(v, false, d)
  13487. case *map[interface{}]int8:
  13488. var v2 map[interface{}]int8
  13489. v2, changed = fastpathTV.DecMapIntfInt8V(*v, true, d)
  13490. if changed {
  13491. *v = v2
  13492. }
  13493. case map[interface{}]int16:
  13494. fastpathTV.DecMapIntfInt16V(v, false, d)
  13495. case *map[interface{}]int16:
  13496. var v2 map[interface{}]int16
  13497. v2, changed = fastpathTV.DecMapIntfInt16V(*v, true, d)
  13498. if changed {
  13499. *v = v2
  13500. }
  13501. case map[interface{}]int32:
  13502. fastpathTV.DecMapIntfInt32V(v, false, d)
  13503. case *map[interface{}]int32:
  13504. var v2 map[interface{}]int32
  13505. v2, changed = fastpathTV.DecMapIntfInt32V(*v, true, d)
  13506. if changed {
  13507. *v = v2
  13508. }
  13509. case map[interface{}]int64:
  13510. fastpathTV.DecMapIntfInt64V(v, false, d)
  13511. case *map[interface{}]int64:
  13512. var v2 map[interface{}]int64
  13513. v2, changed = fastpathTV.DecMapIntfInt64V(*v, true, d)
  13514. if changed {
  13515. *v = v2
  13516. }
  13517. case map[interface{}]float32:
  13518. fastpathTV.DecMapIntfFloat32V(v, false, d)
  13519. case *map[interface{}]float32:
  13520. var v2 map[interface{}]float32
  13521. v2, changed = fastpathTV.DecMapIntfFloat32V(*v, true, d)
  13522. if changed {
  13523. *v = v2
  13524. }
  13525. case map[interface{}]float64:
  13526. fastpathTV.DecMapIntfFloat64V(v, false, d)
  13527. case *map[interface{}]float64:
  13528. var v2 map[interface{}]float64
  13529. v2, changed = fastpathTV.DecMapIntfFloat64V(*v, true, d)
  13530. if changed {
  13531. *v = v2
  13532. }
  13533. case map[interface{}]bool:
  13534. fastpathTV.DecMapIntfBoolV(v, false, d)
  13535. case *map[interface{}]bool:
  13536. var v2 map[interface{}]bool
  13537. v2, changed = fastpathTV.DecMapIntfBoolV(*v, true, d)
  13538. if changed {
  13539. *v = v2
  13540. }
  13541. case map[string]interface{}:
  13542. fastpathTV.DecMapStringIntfV(v, false, d)
  13543. case *map[string]interface{}:
  13544. var v2 map[string]interface{}
  13545. v2, changed = fastpathTV.DecMapStringIntfV(*v, true, d)
  13546. if changed {
  13547. *v = v2
  13548. }
  13549. case map[string]string:
  13550. fastpathTV.DecMapStringStringV(v, false, d)
  13551. case *map[string]string:
  13552. var v2 map[string]string
  13553. v2, changed = fastpathTV.DecMapStringStringV(*v, true, d)
  13554. if changed {
  13555. *v = v2
  13556. }
  13557. case map[string]uint:
  13558. fastpathTV.DecMapStringUintV(v, false, d)
  13559. case *map[string]uint:
  13560. var v2 map[string]uint
  13561. v2, changed = fastpathTV.DecMapStringUintV(*v, true, d)
  13562. if changed {
  13563. *v = v2
  13564. }
  13565. case map[string]uint8:
  13566. fastpathTV.DecMapStringUint8V(v, false, d)
  13567. case *map[string]uint8:
  13568. var v2 map[string]uint8
  13569. v2, changed = fastpathTV.DecMapStringUint8V(*v, true, d)
  13570. if changed {
  13571. *v = v2
  13572. }
  13573. case map[string]uint16:
  13574. fastpathTV.DecMapStringUint16V(v, false, d)
  13575. case *map[string]uint16:
  13576. var v2 map[string]uint16
  13577. v2, changed = fastpathTV.DecMapStringUint16V(*v, true, d)
  13578. if changed {
  13579. *v = v2
  13580. }
  13581. case map[string]uint32:
  13582. fastpathTV.DecMapStringUint32V(v, false, d)
  13583. case *map[string]uint32:
  13584. var v2 map[string]uint32
  13585. v2, changed = fastpathTV.DecMapStringUint32V(*v, true, d)
  13586. if changed {
  13587. *v = v2
  13588. }
  13589. case map[string]uint64:
  13590. fastpathTV.DecMapStringUint64V(v, false, d)
  13591. case *map[string]uint64:
  13592. var v2 map[string]uint64
  13593. v2, changed = fastpathTV.DecMapStringUint64V(*v, true, d)
  13594. if changed {
  13595. *v = v2
  13596. }
  13597. case map[string]uintptr:
  13598. fastpathTV.DecMapStringUintptrV(v, false, d)
  13599. case *map[string]uintptr:
  13600. var v2 map[string]uintptr
  13601. v2, changed = fastpathTV.DecMapStringUintptrV(*v, true, d)
  13602. if changed {
  13603. *v = v2
  13604. }
  13605. case map[string]int:
  13606. fastpathTV.DecMapStringIntV(v, false, d)
  13607. case *map[string]int:
  13608. var v2 map[string]int
  13609. v2, changed = fastpathTV.DecMapStringIntV(*v, true, d)
  13610. if changed {
  13611. *v = v2
  13612. }
  13613. case map[string]int8:
  13614. fastpathTV.DecMapStringInt8V(v, false, d)
  13615. case *map[string]int8:
  13616. var v2 map[string]int8
  13617. v2, changed = fastpathTV.DecMapStringInt8V(*v, true, d)
  13618. if changed {
  13619. *v = v2
  13620. }
  13621. case map[string]int16:
  13622. fastpathTV.DecMapStringInt16V(v, false, d)
  13623. case *map[string]int16:
  13624. var v2 map[string]int16
  13625. v2, changed = fastpathTV.DecMapStringInt16V(*v, true, d)
  13626. if changed {
  13627. *v = v2
  13628. }
  13629. case map[string]int32:
  13630. fastpathTV.DecMapStringInt32V(v, false, d)
  13631. case *map[string]int32:
  13632. var v2 map[string]int32
  13633. v2, changed = fastpathTV.DecMapStringInt32V(*v, true, d)
  13634. if changed {
  13635. *v = v2
  13636. }
  13637. case map[string]int64:
  13638. fastpathTV.DecMapStringInt64V(v, false, d)
  13639. case *map[string]int64:
  13640. var v2 map[string]int64
  13641. v2, changed = fastpathTV.DecMapStringInt64V(*v, true, d)
  13642. if changed {
  13643. *v = v2
  13644. }
  13645. case map[string]float32:
  13646. fastpathTV.DecMapStringFloat32V(v, false, d)
  13647. case *map[string]float32:
  13648. var v2 map[string]float32
  13649. v2, changed = fastpathTV.DecMapStringFloat32V(*v, true, d)
  13650. if changed {
  13651. *v = v2
  13652. }
  13653. case map[string]float64:
  13654. fastpathTV.DecMapStringFloat64V(v, false, d)
  13655. case *map[string]float64:
  13656. var v2 map[string]float64
  13657. v2, changed = fastpathTV.DecMapStringFloat64V(*v, true, d)
  13658. if changed {
  13659. *v = v2
  13660. }
  13661. case map[string]bool:
  13662. fastpathTV.DecMapStringBoolV(v, false, d)
  13663. case *map[string]bool:
  13664. var v2 map[string]bool
  13665. v2, changed = fastpathTV.DecMapStringBoolV(*v, true, d)
  13666. if changed {
  13667. *v = v2
  13668. }
  13669. case map[float32]interface{}:
  13670. fastpathTV.DecMapFloat32IntfV(v, false, d)
  13671. case *map[float32]interface{}:
  13672. var v2 map[float32]interface{}
  13673. v2, changed = fastpathTV.DecMapFloat32IntfV(*v, true, d)
  13674. if changed {
  13675. *v = v2
  13676. }
  13677. case map[float32]string:
  13678. fastpathTV.DecMapFloat32StringV(v, false, d)
  13679. case *map[float32]string:
  13680. var v2 map[float32]string
  13681. v2, changed = fastpathTV.DecMapFloat32StringV(*v, true, d)
  13682. if changed {
  13683. *v = v2
  13684. }
  13685. case map[float32]uint:
  13686. fastpathTV.DecMapFloat32UintV(v, false, d)
  13687. case *map[float32]uint:
  13688. var v2 map[float32]uint
  13689. v2, changed = fastpathTV.DecMapFloat32UintV(*v, true, d)
  13690. if changed {
  13691. *v = v2
  13692. }
  13693. case map[float32]uint8:
  13694. fastpathTV.DecMapFloat32Uint8V(v, false, d)
  13695. case *map[float32]uint8:
  13696. var v2 map[float32]uint8
  13697. v2, changed = fastpathTV.DecMapFloat32Uint8V(*v, true, d)
  13698. if changed {
  13699. *v = v2
  13700. }
  13701. case map[float32]uint16:
  13702. fastpathTV.DecMapFloat32Uint16V(v, false, d)
  13703. case *map[float32]uint16:
  13704. var v2 map[float32]uint16
  13705. v2, changed = fastpathTV.DecMapFloat32Uint16V(*v, true, d)
  13706. if changed {
  13707. *v = v2
  13708. }
  13709. case map[float32]uint32:
  13710. fastpathTV.DecMapFloat32Uint32V(v, false, d)
  13711. case *map[float32]uint32:
  13712. var v2 map[float32]uint32
  13713. v2, changed = fastpathTV.DecMapFloat32Uint32V(*v, true, d)
  13714. if changed {
  13715. *v = v2
  13716. }
  13717. case map[float32]uint64:
  13718. fastpathTV.DecMapFloat32Uint64V(v, false, d)
  13719. case *map[float32]uint64:
  13720. var v2 map[float32]uint64
  13721. v2, changed = fastpathTV.DecMapFloat32Uint64V(*v, true, d)
  13722. if changed {
  13723. *v = v2
  13724. }
  13725. case map[float32]uintptr:
  13726. fastpathTV.DecMapFloat32UintptrV(v, false, d)
  13727. case *map[float32]uintptr:
  13728. var v2 map[float32]uintptr
  13729. v2, changed = fastpathTV.DecMapFloat32UintptrV(*v, true, d)
  13730. if changed {
  13731. *v = v2
  13732. }
  13733. case map[float32]int:
  13734. fastpathTV.DecMapFloat32IntV(v, false, d)
  13735. case *map[float32]int:
  13736. var v2 map[float32]int
  13737. v2, changed = fastpathTV.DecMapFloat32IntV(*v, true, d)
  13738. if changed {
  13739. *v = v2
  13740. }
  13741. case map[float32]int8:
  13742. fastpathTV.DecMapFloat32Int8V(v, false, d)
  13743. case *map[float32]int8:
  13744. var v2 map[float32]int8
  13745. v2, changed = fastpathTV.DecMapFloat32Int8V(*v, true, d)
  13746. if changed {
  13747. *v = v2
  13748. }
  13749. case map[float32]int16:
  13750. fastpathTV.DecMapFloat32Int16V(v, false, d)
  13751. case *map[float32]int16:
  13752. var v2 map[float32]int16
  13753. v2, changed = fastpathTV.DecMapFloat32Int16V(*v, true, d)
  13754. if changed {
  13755. *v = v2
  13756. }
  13757. case map[float32]int32:
  13758. fastpathTV.DecMapFloat32Int32V(v, false, d)
  13759. case *map[float32]int32:
  13760. var v2 map[float32]int32
  13761. v2, changed = fastpathTV.DecMapFloat32Int32V(*v, true, d)
  13762. if changed {
  13763. *v = v2
  13764. }
  13765. case map[float32]int64:
  13766. fastpathTV.DecMapFloat32Int64V(v, false, d)
  13767. case *map[float32]int64:
  13768. var v2 map[float32]int64
  13769. v2, changed = fastpathTV.DecMapFloat32Int64V(*v, true, d)
  13770. if changed {
  13771. *v = v2
  13772. }
  13773. case map[float32]float32:
  13774. fastpathTV.DecMapFloat32Float32V(v, false, d)
  13775. case *map[float32]float32:
  13776. var v2 map[float32]float32
  13777. v2, changed = fastpathTV.DecMapFloat32Float32V(*v, true, d)
  13778. if changed {
  13779. *v = v2
  13780. }
  13781. case map[float32]float64:
  13782. fastpathTV.DecMapFloat32Float64V(v, false, d)
  13783. case *map[float32]float64:
  13784. var v2 map[float32]float64
  13785. v2, changed = fastpathTV.DecMapFloat32Float64V(*v, true, d)
  13786. if changed {
  13787. *v = v2
  13788. }
  13789. case map[float32]bool:
  13790. fastpathTV.DecMapFloat32BoolV(v, false, d)
  13791. case *map[float32]bool:
  13792. var v2 map[float32]bool
  13793. v2, changed = fastpathTV.DecMapFloat32BoolV(*v, true, d)
  13794. if changed {
  13795. *v = v2
  13796. }
  13797. case map[float64]interface{}:
  13798. fastpathTV.DecMapFloat64IntfV(v, false, d)
  13799. case *map[float64]interface{}:
  13800. var v2 map[float64]interface{}
  13801. v2, changed = fastpathTV.DecMapFloat64IntfV(*v, true, d)
  13802. if changed {
  13803. *v = v2
  13804. }
  13805. case map[float64]string:
  13806. fastpathTV.DecMapFloat64StringV(v, false, d)
  13807. case *map[float64]string:
  13808. var v2 map[float64]string
  13809. v2, changed = fastpathTV.DecMapFloat64StringV(*v, true, d)
  13810. if changed {
  13811. *v = v2
  13812. }
  13813. case map[float64]uint:
  13814. fastpathTV.DecMapFloat64UintV(v, false, d)
  13815. case *map[float64]uint:
  13816. var v2 map[float64]uint
  13817. v2, changed = fastpathTV.DecMapFloat64UintV(*v, true, d)
  13818. if changed {
  13819. *v = v2
  13820. }
  13821. case map[float64]uint8:
  13822. fastpathTV.DecMapFloat64Uint8V(v, false, d)
  13823. case *map[float64]uint8:
  13824. var v2 map[float64]uint8
  13825. v2, changed = fastpathTV.DecMapFloat64Uint8V(*v, true, d)
  13826. if changed {
  13827. *v = v2
  13828. }
  13829. case map[float64]uint16:
  13830. fastpathTV.DecMapFloat64Uint16V(v, false, d)
  13831. case *map[float64]uint16:
  13832. var v2 map[float64]uint16
  13833. v2, changed = fastpathTV.DecMapFloat64Uint16V(*v, true, d)
  13834. if changed {
  13835. *v = v2
  13836. }
  13837. case map[float64]uint32:
  13838. fastpathTV.DecMapFloat64Uint32V(v, false, d)
  13839. case *map[float64]uint32:
  13840. var v2 map[float64]uint32
  13841. v2, changed = fastpathTV.DecMapFloat64Uint32V(*v, true, d)
  13842. if changed {
  13843. *v = v2
  13844. }
  13845. case map[float64]uint64:
  13846. fastpathTV.DecMapFloat64Uint64V(v, false, d)
  13847. case *map[float64]uint64:
  13848. var v2 map[float64]uint64
  13849. v2, changed = fastpathTV.DecMapFloat64Uint64V(*v, true, d)
  13850. if changed {
  13851. *v = v2
  13852. }
  13853. case map[float64]uintptr:
  13854. fastpathTV.DecMapFloat64UintptrV(v, false, d)
  13855. case *map[float64]uintptr:
  13856. var v2 map[float64]uintptr
  13857. v2, changed = fastpathTV.DecMapFloat64UintptrV(*v, true, d)
  13858. if changed {
  13859. *v = v2
  13860. }
  13861. case map[float64]int:
  13862. fastpathTV.DecMapFloat64IntV(v, false, d)
  13863. case *map[float64]int:
  13864. var v2 map[float64]int
  13865. v2, changed = fastpathTV.DecMapFloat64IntV(*v, true, d)
  13866. if changed {
  13867. *v = v2
  13868. }
  13869. case map[float64]int8:
  13870. fastpathTV.DecMapFloat64Int8V(v, false, d)
  13871. case *map[float64]int8:
  13872. var v2 map[float64]int8
  13873. v2, changed = fastpathTV.DecMapFloat64Int8V(*v, true, d)
  13874. if changed {
  13875. *v = v2
  13876. }
  13877. case map[float64]int16:
  13878. fastpathTV.DecMapFloat64Int16V(v, false, d)
  13879. case *map[float64]int16:
  13880. var v2 map[float64]int16
  13881. v2, changed = fastpathTV.DecMapFloat64Int16V(*v, true, d)
  13882. if changed {
  13883. *v = v2
  13884. }
  13885. case map[float64]int32:
  13886. fastpathTV.DecMapFloat64Int32V(v, false, d)
  13887. case *map[float64]int32:
  13888. var v2 map[float64]int32
  13889. v2, changed = fastpathTV.DecMapFloat64Int32V(*v, true, d)
  13890. if changed {
  13891. *v = v2
  13892. }
  13893. case map[float64]int64:
  13894. fastpathTV.DecMapFloat64Int64V(v, false, d)
  13895. case *map[float64]int64:
  13896. var v2 map[float64]int64
  13897. v2, changed = fastpathTV.DecMapFloat64Int64V(*v, true, d)
  13898. if changed {
  13899. *v = v2
  13900. }
  13901. case map[float64]float32:
  13902. fastpathTV.DecMapFloat64Float32V(v, false, d)
  13903. case *map[float64]float32:
  13904. var v2 map[float64]float32
  13905. v2, changed = fastpathTV.DecMapFloat64Float32V(*v, true, d)
  13906. if changed {
  13907. *v = v2
  13908. }
  13909. case map[float64]float64:
  13910. fastpathTV.DecMapFloat64Float64V(v, false, d)
  13911. case *map[float64]float64:
  13912. var v2 map[float64]float64
  13913. v2, changed = fastpathTV.DecMapFloat64Float64V(*v, true, d)
  13914. if changed {
  13915. *v = v2
  13916. }
  13917. case map[float64]bool:
  13918. fastpathTV.DecMapFloat64BoolV(v, false, d)
  13919. case *map[float64]bool:
  13920. var v2 map[float64]bool
  13921. v2, changed = fastpathTV.DecMapFloat64BoolV(*v, true, d)
  13922. if changed {
  13923. *v = v2
  13924. }
  13925. case map[uint]interface{}:
  13926. fastpathTV.DecMapUintIntfV(v, false, d)
  13927. case *map[uint]interface{}:
  13928. var v2 map[uint]interface{}
  13929. v2, changed = fastpathTV.DecMapUintIntfV(*v, true, d)
  13930. if changed {
  13931. *v = v2
  13932. }
  13933. case map[uint]string:
  13934. fastpathTV.DecMapUintStringV(v, false, d)
  13935. case *map[uint]string:
  13936. var v2 map[uint]string
  13937. v2, changed = fastpathTV.DecMapUintStringV(*v, true, d)
  13938. if changed {
  13939. *v = v2
  13940. }
  13941. case map[uint]uint:
  13942. fastpathTV.DecMapUintUintV(v, false, d)
  13943. case *map[uint]uint:
  13944. var v2 map[uint]uint
  13945. v2, changed = fastpathTV.DecMapUintUintV(*v, true, d)
  13946. if changed {
  13947. *v = v2
  13948. }
  13949. case map[uint]uint8:
  13950. fastpathTV.DecMapUintUint8V(v, false, d)
  13951. case *map[uint]uint8:
  13952. var v2 map[uint]uint8
  13953. v2, changed = fastpathTV.DecMapUintUint8V(*v, true, d)
  13954. if changed {
  13955. *v = v2
  13956. }
  13957. case map[uint]uint16:
  13958. fastpathTV.DecMapUintUint16V(v, false, d)
  13959. case *map[uint]uint16:
  13960. var v2 map[uint]uint16
  13961. v2, changed = fastpathTV.DecMapUintUint16V(*v, true, d)
  13962. if changed {
  13963. *v = v2
  13964. }
  13965. case map[uint]uint32:
  13966. fastpathTV.DecMapUintUint32V(v, false, d)
  13967. case *map[uint]uint32:
  13968. var v2 map[uint]uint32
  13969. v2, changed = fastpathTV.DecMapUintUint32V(*v, true, d)
  13970. if changed {
  13971. *v = v2
  13972. }
  13973. case map[uint]uint64:
  13974. fastpathTV.DecMapUintUint64V(v, false, d)
  13975. case *map[uint]uint64:
  13976. var v2 map[uint]uint64
  13977. v2, changed = fastpathTV.DecMapUintUint64V(*v, true, d)
  13978. if changed {
  13979. *v = v2
  13980. }
  13981. case map[uint]uintptr:
  13982. fastpathTV.DecMapUintUintptrV(v, false, d)
  13983. case *map[uint]uintptr:
  13984. var v2 map[uint]uintptr
  13985. v2, changed = fastpathTV.DecMapUintUintptrV(*v, true, d)
  13986. if changed {
  13987. *v = v2
  13988. }
  13989. case map[uint]int:
  13990. fastpathTV.DecMapUintIntV(v, false, d)
  13991. case *map[uint]int:
  13992. var v2 map[uint]int
  13993. v2, changed = fastpathTV.DecMapUintIntV(*v, true, d)
  13994. if changed {
  13995. *v = v2
  13996. }
  13997. case map[uint]int8:
  13998. fastpathTV.DecMapUintInt8V(v, false, d)
  13999. case *map[uint]int8:
  14000. var v2 map[uint]int8
  14001. v2, changed = fastpathTV.DecMapUintInt8V(*v, true, d)
  14002. if changed {
  14003. *v = v2
  14004. }
  14005. case map[uint]int16:
  14006. fastpathTV.DecMapUintInt16V(v, false, d)
  14007. case *map[uint]int16:
  14008. var v2 map[uint]int16
  14009. v2, changed = fastpathTV.DecMapUintInt16V(*v, true, d)
  14010. if changed {
  14011. *v = v2
  14012. }
  14013. case map[uint]int32:
  14014. fastpathTV.DecMapUintInt32V(v, false, d)
  14015. case *map[uint]int32:
  14016. var v2 map[uint]int32
  14017. v2, changed = fastpathTV.DecMapUintInt32V(*v, true, d)
  14018. if changed {
  14019. *v = v2
  14020. }
  14021. case map[uint]int64:
  14022. fastpathTV.DecMapUintInt64V(v, false, d)
  14023. case *map[uint]int64:
  14024. var v2 map[uint]int64
  14025. v2, changed = fastpathTV.DecMapUintInt64V(*v, true, d)
  14026. if changed {
  14027. *v = v2
  14028. }
  14029. case map[uint]float32:
  14030. fastpathTV.DecMapUintFloat32V(v, false, d)
  14031. case *map[uint]float32:
  14032. var v2 map[uint]float32
  14033. v2, changed = fastpathTV.DecMapUintFloat32V(*v, true, d)
  14034. if changed {
  14035. *v = v2
  14036. }
  14037. case map[uint]float64:
  14038. fastpathTV.DecMapUintFloat64V(v, false, d)
  14039. case *map[uint]float64:
  14040. var v2 map[uint]float64
  14041. v2, changed = fastpathTV.DecMapUintFloat64V(*v, true, d)
  14042. if changed {
  14043. *v = v2
  14044. }
  14045. case map[uint]bool:
  14046. fastpathTV.DecMapUintBoolV(v, false, d)
  14047. case *map[uint]bool:
  14048. var v2 map[uint]bool
  14049. v2, changed = fastpathTV.DecMapUintBoolV(*v, true, d)
  14050. if changed {
  14051. *v = v2
  14052. }
  14053. case map[uint8]interface{}:
  14054. fastpathTV.DecMapUint8IntfV(v, false, d)
  14055. case *map[uint8]interface{}:
  14056. var v2 map[uint8]interface{}
  14057. v2, changed = fastpathTV.DecMapUint8IntfV(*v, true, d)
  14058. if changed {
  14059. *v = v2
  14060. }
  14061. case map[uint8]string:
  14062. fastpathTV.DecMapUint8StringV(v, false, d)
  14063. case *map[uint8]string:
  14064. var v2 map[uint8]string
  14065. v2, changed = fastpathTV.DecMapUint8StringV(*v, true, d)
  14066. if changed {
  14067. *v = v2
  14068. }
  14069. case map[uint8]uint:
  14070. fastpathTV.DecMapUint8UintV(v, false, d)
  14071. case *map[uint8]uint:
  14072. var v2 map[uint8]uint
  14073. v2, changed = fastpathTV.DecMapUint8UintV(*v, true, d)
  14074. if changed {
  14075. *v = v2
  14076. }
  14077. case map[uint8]uint8:
  14078. fastpathTV.DecMapUint8Uint8V(v, false, d)
  14079. case *map[uint8]uint8:
  14080. var v2 map[uint8]uint8
  14081. v2, changed = fastpathTV.DecMapUint8Uint8V(*v, true, d)
  14082. if changed {
  14083. *v = v2
  14084. }
  14085. case map[uint8]uint16:
  14086. fastpathTV.DecMapUint8Uint16V(v, false, d)
  14087. case *map[uint8]uint16:
  14088. var v2 map[uint8]uint16
  14089. v2, changed = fastpathTV.DecMapUint8Uint16V(*v, true, d)
  14090. if changed {
  14091. *v = v2
  14092. }
  14093. case map[uint8]uint32:
  14094. fastpathTV.DecMapUint8Uint32V(v, false, d)
  14095. case *map[uint8]uint32:
  14096. var v2 map[uint8]uint32
  14097. v2, changed = fastpathTV.DecMapUint8Uint32V(*v, true, d)
  14098. if changed {
  14099. *v = v2
  14100. }
  14101. case map[uint8]uint64:
  14102. fastpathTV.DecMapUint8Uint64V(v, false, d)
  14103. case *map[uint8]uint64:
  14104. var v2 map[uint8]uint64
  14105. v2, changed = fastpathTV.DecMapUint8Uint64V(*v, true, d)
  14106. if changed {
  14107. *v = v2
  14108. }
  14109. case map[uint8]uintptr:
  14110. fastpathTV.DecMapUint8UintptrV(v, false, d)
  14111. case *map[uint8]uintptr:
  14112. var v2 map[uint8]uintptr
  14113. v2, changed = fastpathTV.DecMapUint8UintptrV(*v, true, d)
  14114. if changed {
  14115. *v = v2
  14116. }
  14117. case map[uint8]int:
  14118. fastpathTV.DecMapUint8IntV(v, false, d)
  14119. case *map[uint8]int:
  14120. var v2 map[uint8]int
  14121. v2, changed = fastpathTV.DecMapUint8IntV(*v, true, d)
  14122. if changed {
  14123. *v = v2
  14124. }
  14125. case map[uint8]int8:
  14126. fastpathTV.DecMapUint8Int8V(v, false, d)
  14127. case *map[uint8]int8:
  14128. var v2 map[uint8]int8
  14129. v2, changed = fastpathTV.DecMapUint8Int8V(*v, true, d)
  14130. if changed {
  14131. *v = v2
  14132. }
  14133. case map[uint8]int16:
  14134. fastpathTV.DecMapUint8Int16V(v, false, d)
  14135. case *map[uint8]int16:
  14136. var v2 map[uint8]int16
  14137. v2, changed = fastpathTV.DecMapUint8Int16V(*v, true, d)
  14138. if changed {
  14139. *v = v2
  14140. }
  14141. case map[uint8]int32:
  14142. fastpathTV.DecMapUint8Int32V(v, false, d)
  14143. case *map[uint8]int32:
  14144. var v2 map[uint8]int32
  14145. v2, changed = fastpathTV.DecMapUint8Int32V(*v, true, d)
  14146. if changed {
  14147. *v = v2
  14148. }
  14149. case map[uint8]int64:
  14150. fastpathTV.DecMapUint8Int64V(v, false, d)
  14151. case *map[uint8]int64:
  14152. var v2 map[uint8]int64
  14153. v2, changed = fastpathTV.DecMapUint8Int64V(*v, true, d)
  14154. if changed {
  14155. *v = v2
  14156. }
  14157. case map[uint8]float32:
  14158. fastpathTV.DecMapUint8Float32V(v, false, d)
  14159. case *map[uint8]float32:
  14160. var v2 map[uint8]float32
  14161. v2, changed = fastpathTV.DecMapUint8Float32V(*v, true, d)
  14162. if changed {
  14163. *v = v2
  14164. }
  14165. case map[uint8]float64:
  14166. fastpathTV.DecMapUint8Float64V(v, false, d)
  14167. case *map[uint8]float64:
  14168. var v2 map[uint8]float64
  14169. v2, changed = fastpathTV.DecMapUint8Float64V(*v, true, d)
  14170. if changed {
  14171. *v = v2
  14172. }
  14173. case map[uint8]bool:
  14174. fastpathTV.DecMapUint8BoolV(v, false, d)
  14175. case *map[uint8]bool:
  14176. var v2 map[uint8]bool
  14177. v2, changed = fastpathTV.DecMapUint8BoolV(*v, true, d)
  14178. if changed {
  14179. *v = v2
  14180. }
  14181. case map[uint16]interface{}:
  14182. fastpathTV.DecMapUint16IntfV(v, false, d)
  14183. case *map[uint16]interface{}:
  14184. var v2 map[uint16]interface{}
  14185. v2, changed = fastpathTV.DecMapUint16IntfV(*v, true, d)
  14186. if changed {
  14187. *v = v2
  14188. }
  14189. case map[uint16]string:
  14190. fastpathTV.DecMapUint16StringV(v, false, d)
  14191. case *map[uint16]string:
  14192. var v2 map[uint16]string
  14193. v2, changed = fastpathTV.DecMapUint16StringV(*v, true, d)
  14194. if changed {
  14195. *v = v2
  14196. }
  14197. case map[uint16]uint:
  14198. fastpathTV.DecMapUint16UintV(v, false, d)
  14199. case *map[uint16]uint:
  14200. var v2 map[uint16]uint
  14201. v2, changed = fastpathTV.DecMapUint16UintV(*v, true, d)
  14202. if changed {
  14203. *v = v2
  14204. }
  14205. case map[uint16]uint8:
  14206. fastpathTV.DecMapUint16Uint8V(v, false, d)
  14207. case *map[uint16]uint8:
  14208. var v2 map[uint16]uint8
  14209. v2, changed = fastpathTV.DecMapUint16Uint8V(*v, true, d)
  14210. if changed {
  14211. *v = v2
  14212. }
  14213. case map[uint16]uint16:
  14214. fastpathTV.DecMapUint16Uint16V(v, false, d)
  14215. case *map[uint16]uint16:
  14216. var v2 map[uint16]uint16
  14217. v2, changed = fastpathTV.DecMapUint16Uint16V(*v, true, d)
  14218. if changed {
  14219. *v = v2
  14220. }
  14221. case map[uint16]uint32:
  14222. fastpathTV.DecMapUint16Uint32V(v, false, d)
  14223. case *map[uint16]uint32:
  14224. var v2 map[uint16]uint32
  14225. v2, changed = fastpathTV.DecMapUint16Uint32V(*v, true, d)
  14226. if changed {
  14227. *v = v2
  14228. }
  14229. case map[uint16]uint64:
  14230. fastpathTV.DecMapUint16Uint64V(v, false, d)
  14231. case *map[uint16]uint64:
  14232. var v2 map[uint16]uint64
  14233. v2, changed = fastpathTV.DecMapUint16Uint64V(*v, true, d)
  14234. if changed {
  14235. *v = v2
  14236. }
  14237. case map[uint16]uintptr:
  14238. fastpathTV.DecMapUint16UintptrV(v, false, d)
  14239. case *map[uint16]uintptr:
  14240. var v2 map[uint16]uintptr
  14241. v2, changed = fastpathTV.DecMapUint16UintptrV(*v, true, d)
  14242. if changed {
  14243. *v = v2
  14244. }
  14245. case map[uint16]int:
  14246. fastpathTV.DecMapUint16IntV(v, false, d)
  14247. case *map[uint16]int:
  14248. var v2 map[uint16]int
  14249. v2, changed = fastpathTV.DecMapUint16IntV(*v, true, d)
  14250. if changed {
  14251. *v = v2
  14252. }
  14253. case map[uint16]int8:
  14254. fastpathTV.DecMapUint16Int8V(v, false, d)
  14255. case *map[uint16]int8:
  14256. var v2 map[uint16]int8
  14257. v2, changed = fastpathTV.DecMapUint16Int8V(*v, true, d)
  14258. if changed {
  14259. *v = v2
  14260. }
  14261. case map[uint16]int16:
  14262. fastpathTV.DecMapUint16Int16V(v, false, d)
  14263. case *map[uint16]int16:
  14264. var v2 map[uint16]int16
  14265. v2, changed = fastpathTV.DecMapUint16Int16V(*v, true, d)
  14266. if changed {
  14267. *v = v2
  14268. }
  14269. case map[uint16]int32:
  14270. fastpathTV.DecMapUint16Int32V(v, false, d)
  14271. case *map[uint16]int32:
  14272. var v2 map[uint16]int32
  14273. v2, changed = fastpathTV.DecMapUint16Int32V(*v, true, d)
  14274. if changed {
  14275. *v = v2
  14276. }
  14277. case map[uint16]int64:
  14278. fastpathTV.DecMapUint16Int64V(v, false, d)
  14279. case *map[uint16]int64:
  14280. var v2 map[uint16]int64
  14281. v2, changed = fastpathTV.DecMapUint16Int64V(*v, true, d)
  14282. if changed {
  14283. *v = v2
  14284. }
  14285. case map[uint16]float32:
  14286. fastpathTV.DecMapUint16Float32V(v, false, d)
  14287. case *map[uint16]float32:
  14288. var v2 map[uint16]float32
  14289. v2, changed = fastpathTV.DecMapUint16Float32V(*v, true, d)
  14290. if changed {
  14291. *v = v2
  14292. }
  14293. case map[uint16]float64:
  14294. fastpathTV.DecMapUint16Float64V(v, false, d)
  14295. case *map[uint16]float64:
  14296. var v2 map[uint16]float64
  14297. v2, changed = fastpathTV.DecMapUint16Float64V(*v, true, d)
  14298. if changed {
  14299. *v = v2
  14300. }
  14301. case map[uint16]bool:
  14302. fastpathTV.DecMapUint16BoolV(v, false, d)
  14303. case *map[uint16]bool:
  14304. var v2 map[uint16]bool
  14305. v2, changed = fastpathTV.DecMapUint16BoolV(*v, true, d)
  14306. if changed {
  14307. *v = v2
  14308. }
  14309. case map[uint32]interface{}:
  14310. fastpathTV.DecMapUint32IntfV(v, false, d)
  14311. case *map[uint32]interface{}:
  14312. var v2 map[uint32]interface{}
  14313. v2, changed = fastpathTV.DecMapUint32IntfV(*v, true, d)
  14314. if changed {
  14315. *v = v2
  14316. }
  14317. case map[uint32]string:
  14318. fastpathTV.DecMapUint32StringV(v, false, d)
  14319. case *map[uint32]string:
  14320. var v2 map[uint32]string
  14321. v2, changed = fastpathTV.DecMapUint32StringV(*v, true, d)
  14322. if changed {
  14323. *v = v2
  14324. }
  14325. case map[uint32]uint:
  14326. fastpathTV.DecMapUint32UintV(v, false, d)
  14327. case *map[uint32]uint:
  14328. var v2 map[uint32]uint
  14329. v2, changed = fastpathTV.DecMapUint32UintV(*v, true, d)
  14330. if changed {
  14331. *v = v2
  14332. }
  14333. case map[uint32]uint8:
  14334. fastpathTV.DecMapUint32Uint8V(v, false, d)
  14335. case *map[uint32]uint8:
  14336. var v2 map[uint32]uint8
  14337. v2, changed = fastpathTV.DecMapUint32Uint8V(*v, true, d)
  14338. if changed {
  14339. *v = v2
  14340. }
  14341. case map[uint32]uint16:
  14342. fastpathTV.DecMapUint32Uint16V(v, false, d)
  14343. case *map[uint32]uint16:
  14344. var v2 map[uint32]uint16
  14345. v2, changed = fastpathTV.DecMapUint32Uint16V(*v, true, d)
  14346. if changed {
  14347. *v = v2
  14348. }
  14349. case map[uint32]uint32:
  14350. fastpathTV.DecMapUint32Uint32V(v, false, d)
  14351. case *map[uint32]uint32:
  14352. var v2 map[uint32]uint32
  14353. v2, changed = fastpathTV.DecMapUint32Uint32V(*v, true, d)
  14354. if changed {
  14355. *v = v2
  14356. }
  14357. case map[uint32]uint64:
  14358. fastpathTV.DecMapUint32Uint64V(v, false, d)
  14359. case *map[uint32]uint64:
  14360. var v2 map[uint32]uint64
  14361. v2, changed = fastpathTV.DecMapUint32Uint64V(*v, true, d)
  14362. if changed {
  14363. *v = v2
  14364. }
  14365. case map[uint32]uintptr:
  14366. fastpathTV.DecMapUint32UintptrV(v, false, d)
  14367. case *map[uint32]uintptr:
  14368. var v2 map[uint32]uintptr
  14369. v2, changed = fastpathTV.DecMapUint32UintptrV(*v, true, d)
  14370. if changed {
  14371. *v = v2
  14372. }
  14373. case map[uint32]int:
  14374. fastpathTV.DecMapUint32IntV(v, false, d)
  14375. case *map[uint32]int:
  14376. var v2 map[uint32]int
  14377. v2, changed = fastpathTV.DecMapUint32IntV(*v, true, d)
  14378. if changed {
  14379. *v = v2
  14380. }
  14381. case map[uint32]int8:
  14382. fastpathTV.DecMapUint32Int8V(v, false, d)
  14383. case *map[uint32]int8:
  14384. var v2 map[uint32]int8
  14385. v2, changed = fastpathTV.DecMapUint32Int8V(*v, true, d)
  14386. if changed {
  14387. *v = v2
  14388. }
  14389. case map[uint32]int16:
  14390. fastpathTV.DecMapUint32Int16V(v, false, d)
  14391. case *map[uint32]int16:
  14392. var v2 map[uint32]int16
  14393. v2, changed = fastpathTV.DecMapUint32Int16V(*v, true, d)
  14394. if changed {
  14395. *v = v2
  14396. }
  14397. case map[uint32]int32:
  14398. fastpathTV.DecMapUint32Int32V(v, false, d)
  14399. case *map[uint32]int32:
  14400. var v2 map[uint32]int32
  14401. v2, changed = fastpathTV.DecMapUint32Int32V(*v, true, d)
  14402. if changed {
  14403. *v = v2
  14404. }
  14405. case map[uint32]int64:
  14406. fastpathTV.DecMapUint32Int64V(v, false, d)
  14407. case *map[uint32]int64:
  14408. var v2 map[uint32]int64
  14409. v2, changed = fastpathTV.DecMapUint32Int64V(*v, true, d)
  14410. if changed {
  14411. *v = v2
  14412. }
  14413. case map[uint32]float32:
  14414. fastpathTV.DecMapUint32Float32V(v, false, d)
  14415. case *map[uint32]float32:
  14416. var v2 map[uint32]float32
  14417. v2, changed = fastpathTV.DecMapUint32Float32V(*v, true, d)
  14418. if changed {
  14419. *v = v2
  14420. }
  14421. case map[uint32]float64:
  14422. fastpathTV.DecMapUint32Float64V(v, false, d)
  14423. case *map[uint32]float64:
  14424. var v2 map[uint32]float64
  14425. v2, changed = fastpathTV.DecMapUint32Float64V(*v, true, d)
  14426. if changed {
  14427. *v = v2
  14428. }
  14429. case map[uint32]bool:
  14430. fastpathTV.DecMapUint32BoolV(v, false, d)
  14431. case *map[uint32]bool:
  14432. var v2 map[uint32]bool
  14433. v2, changed = fastpathTV.DecMapUint32BoolV(*v, true, d)
  14434. if changed {
  14435. *v = v2
  14436. }
  14437. case map[uint64]interface{}:
  14438. fastpathTV.DecMapUint64IntfV(v, false, d)
  14439. case *map[uint64]interface{}:
  14440. var v2 map[uint64]interface{}
  14441. v2, changed = fastpathTV.DecMapUint64IntfV(*v, true, d)
  14442. if changed {
  14443. *v = v2
  14444. }
  14445. case map[uint64]string:
  14446. fastpathTV.DecMapUint64StringV(v, false, d)
  14447. case *map[uint64]string:
  14448. var v2 map[uint64]string
  14449. v2, changed = fastpathTV.DecMapUint64StringV(*v, true, d)
  14450. if changed {
  14451. *v = v2
  14452. }
  14453. case map[uint64]uint:
  14454. fastpathTV.DecMapUint64UintV(v, false, d)
  14455. case *map[uint64]uint:
  14456. var v2 map[uint64]uint
  14457. v2, changed = fastpathTV.DecMapUint64UintV(*v, true, d)
  14458. if changed {
  14459. *v = v2
  14460. }
  14461. case map[uint64]uint8:
  14462. fastpathTV.DecMapUint64Uint8V(v, false, d)
  14463. case *map[uint64]uint8:
  14464. var v2 map[uint64]uint8
  14465. v2, changed = fastpathTV.DecMapUint64Uint8V(*v, true, d)
  14466. if changed {
  14467. *v = v2
  14468. }
  14469. case map[uint64]uint16:
  14470. fastpathTV.DecMapUint64Uint16V(v, false, d)
  14471. case *map[uint64]uint16:
  14472. var v2 map[uint64]uint16
  14473. v2, changed = fastpathTV.DecMapUint64Uint16V(*v, true, d)
  14474. if changed {
  14475. *v = v2
  14476. }
  14477. case map[uint64]uint32:
  14478. fastpathTV.DecMapUint64Uint32V(v, false, d)
  14479. case *map[uint64]uint32:
  14480. var v2 map[uint64]uint32
  14481. v2, changed = fastpathTV.DecMapUint64Uint32V(*v, true, d)
  14482. if changed {
  14483. *v = v2
  14484. }
  14485. case map[uint64]uint64:
  14486. fastpathTV.DecMapUint64Uint64V(v, false, d)
  14487. case *map[uint64]uint64:
  14488. var v2 map[uint64]uint64
  14489. v2, changed = fastpathTV.DecMapUint64Uint64V(*v, true, d)
  14490. if changed {
  14491. *v = v2
  14492. }
  14493. case map[uint64]uintptr:
  14494. fastpathTV.DecMapUint64UintptrV(v, false, d)
  14495. case *map[uint64]uintptr:
  14496. var v2 map[uint64]uintptr
  14497. v2, changed = fastpathTV.DecMapUint64UintptrV(*v, true, d)
  14498. if changed {
  14499. *v = v2
  14500. }
  14501. case map[uint64]int:
  14502. fastpathTV.DecMapUint64IntV(v, false, d)
  14503. case *map[uint64]int:
  14504. var v2 map[uint64]int
  14505. v2, changed = fastpathTV.DecMapUint64IntV(*v, true, d)
  14506. if changed {
  14507. *v = v2
  14508. }
  14509. case map[uint64]int8:
  14510. fastpathTV.DecMapUint64Int8V(v, false, d)
  14511. case *map[uint64]int8:
  14512. var v2 map[uint64]int8
  14513. v2, changed = fastpathTV.DecMapUint64Int8V(*v, true, d)
  14514. if changed {
  14515. *v = v2
  14516. }
  14517. case map[uint64]int16:
  14518. fastpathTV.DecMapUint64Int16V(v, false, d)
  14519. case *map[uint64]int16:
  14520. var v2 map[uint64]int16
  14521. v2, changed = fastpathTV.DecMapUint64Int16V(*v, true, d)
  14522. if changed {
  14523. *v = v2
  14524. }
  14525. case map[uint64]int32:
  14526. fastpathTV.DecMapUint64Int32V(v, false, d)
  14527. case *map[uint64]int32:
  14528. var v2 map[uint64]int32
  14529. v2, changed = fastpathTV.DecMapUint64Int32V(*v, true, d)
  14530. if changed {
  14531. *v = v2
  14532. }
  14533. case map[uint64]int64:
  14534. fastpathTV.DecMapUint64Int64V(v, false, d)
  14535. case *map[uint64]int64:
  14536. var v2 map[uint64]int64
  14537. v2, changed = fastpathTV.DecMapUint64Int64V(*v, true, d)
  14538. if changed {
  14539. *v = v2
  14540. }
  14541. case map[uint64]float32:
  14542. fastpathTV.DecMapUint64Float32V(v, false, d)
  14543. case *map[uint64]float32:
  14544. var v2 map[uint64]float32
  14545. v2, changed = fastpathTV.DecMapUint64Float32V(*v, true, d)
  14546. if changed {
  14547. *v = v2
  14548. }
  14549. case map[uint64]float64:
  14550. fastpathTV.DecMapUint64Float64V(v, false, d)
  14551. case *map[uint64]float64:
  14552. var v2 map[uint64]float64
  14553. v2, changed = fastpathTV.DecMapUint64Float64V(*v, true, d)
  14554. if changed {
  14555. *v = v2
  14556. }
  14557. case map[uint64]bool:
  14558. fastpathTV.DecMapUint64BoolV(v, false, d)
  14559. case *map[uint64]bool:
  14560. var v2 map[uint64]bool
  14561. v2, changed = fastpathTV.DecMapUint64BoolV(*v, true, d)
  14562. if changed {
  14563. *v = v2
  14564. }
  14565. case map[uintptr]interface{}:
  14566. fastpathTV.DecMapUintptrIntfV(v, false, d)
  14567. case *map[uintptr]interface{}:
  14568. var v2 map[uintptr]interface{}
  14569. v2, changed = fastpathTV.DecMapUintptrIntfV(*v, true, d)
  14570. if changed {
  14571. *v = v2
  14572. }
  14573. case map[uintptr]string:
  14574. fastpathTV.DecMapUintptrStringV(v, false, d)
  14575. case *map[uintptr]string:
  14576. var v2 map[uintptr]string
  14577. v2, changed = fastpathTV.DecMapUintptrStringV(*v, true, d)
  14578. if changed {
  14579. *v = v2
  14580. }
  14581. case map[uintptr]uint:
  14582. fastpathTV.DecMapUintptrUintV(v, false, d)
  14583. case *map[uintptr]uint:
  14584. var v2 map[uintptr]uint
  14585. v2, changed = fastpathTV.DecMapUintptrUintV(*v, true, d)
  14586. if changed {
  14587. *v = v2
  14588. }
  14589. case map[uintptr]uint8:
  14590. fastpathTV.DecMapUintptrUint8V(v, false, d)
  14591. case *map[uintptr]uint8:
  14592. var v2 map[uintptr]uint8
  14593. v2, changed = fastpathTV.DecMapUintptrUint8V(*v, true, d)
  14594. if changed {
  14595. *v = v2
  14596. }
  14597. case map[uintptr]uint16:
  14598. fastpathTV.DecMapUintptrUint16V(v, false, d)
  14599. case *map[uintptr]uint16:
  14600. var v2 map[uintptr]uint16
  14601. v2, changed = fastpathTV.DecMapUintptrUint16V(*v, true, d)
  14602. if changed {
  14603. *v = v2
  14604. }
  14605. case map[uintptr]uint32:
  14606. fastpathTV.DecMapUintptrUint32V(v, false, d)
  14607. case *map[uintptr]uint32:
  14608. var v2 map[uintptr]uint32
  14609. v2, changed = fastpathTV.DecMapUintptrUint32V(*v, true, d)
  14610. if changed {
  14611. *v = v2
  14612. }
  14613. case map[uintptr]uint64:
  14614. fastpathTV.DecMapUintptrUint64V(v, false, d)
  14615. case *map[uintptr]uint64:
  14616. var v2 map[uintptr]uint64
  14617. v2, changed = fastpathTV.DecMapUintptrUint64V(*v, true, d)
  14618. if changed {
  14619. *v = v2
  14620. }
  14621. case map[uintptr]uintptr:
  14622. fastpathTV.DecMapUintptrUintptrV(v, false, d)
  14623. case *map[uintptr]uintptr:
  14624. var v2 map[uintptr]uintptr
  14625. v2, changed = fastpathTV.DecMapUintptrUintptrV(*v, true, d)
  14626. if changed {
  14627. *v = v2
  14628. }
  14629. case map[uintptr]int:
  14630. fastpathTV.DecMapUintptrIntV(v, false, d)
  14631. case *map[uintptr]int:
  14632. var v2 map[uintptr]int
  14633. v2, changed = fastpathTV.DecMapUintptrIntV(*v, true, d)
  14634. if changed {
  14635. *v = v2
  14636. }
  14637. case map[uintptr]int8:
  14638. fastpathTV.DecMapUintptrInt8V(v, false, d)
  14639. case *map[uintptr]int8:
  14640. var v2 map[uintptr]int8
  14641. v2, changed = fastpathTV.DecMapUintptrInt8V(*v, true, d)
  14642. if changed {
  14643. *v = v2
  14644. }
  14645. case map[uintptr]int16:
  14646. fastpathTV.DecMapUintptrInt16V(v, false, d)
  14647. case *map[uintptr]int16:
  14648. var v2 map[uintptr]int16
  14649. v2, changed = fastpathTV.DecMapUintptrInt16V(*v, true, d)
  14650. if changed {
  14651. *v = v2
  14652. }
  14653. case map[uintptr]int32:
  14654. fastpathTV.DecMapUintptrInt32V(v, false, d)
  14655. case *map[uintptr]int32:
  14656. var v2 map[uintptr]int32
  14657. v2, changed = fastpathTV.DecMapUintptrInt32V(*v, true, d)
  14658. if changed {
  14659. *v = v2
  14660. }
  14661. case map[uintptr]int64:
  14662. fastpathTV.DecMapUintptrInt64V(v, false, d)
  14663. case *map[uintptr]int64:
  14664. var v2 map[uintptr]int64
  14665. v2, changed = fastpathTV.DecMapUintptrInt64V(*v, true, d)
  14666. if changed {
  14667. *v = v2
  14668. }
  14669. case map[uintptr]float32:
  14670. fastpathTV.DecMapUintptrFloat32V(v, false, d)
  14671. case *map[uintptr]float32:
  14672. var v2 map[uintptr]float32
  14673. v2, changed = fastpathTV.DecMapUintptrFloat32V(*v, true, d)
  14674. if changed {
  14675. *v = v2
  14676. }
  14677. case map[uintptr]float64:
  14678. fastpathTV.DecMapUintptrFloat64V(v, false, d)
  14679. case *map[uintptr]float64:
  14680. var v2 map[uintptr]float64
  14681. v2, changed = fastpathTV.DecMapUintptrFloat64V(*v, true, d)
  14682. if changed {
  14683. *v = v2
  14684. }
  14685. case map[uintptr]bool:
  14686. fastpathTV.DecMapUintptrBoolV(v, false, d)
  14687. case *map[uintptr]bool:
  14688. var v2 map[uintptr]bool
  14689. v2, changed = fastpathTV.DecMapUintptrBoolV(*v, true, d)
  14690. if changed {
  14691. *v = v2
  14692. }
  14693. case map[int]interface{}:
  14694. fastpathTV.DecMapIntIntfV(v, false, d)
  14695. case *map[int]interface{}:
  14696. var v2 map[int]interface{}
  14697. v2, changed = fastpathTV.DecMapIntIntfV(*v, true, d)
  14698. if changed {
  14699. *v = v2
  14700. }
  14701. case map[int]string:
  14702. fastpathTV.DecMapIntStringV(v, false, d)
  14703. case *map[int]string:
  14704. var v2 map[int]string
  14705. v2, changed = fastpathTV.DecMapIntStringV(*v, true, d)
  14706. if changed {
  14707. *v = v2
  14708. }
  14709. case map[int]uint:
  14710. fastpathTV.DecMapIntUintV(v, false, d)
  14711. case *map[int]uint:
  14712. var v2 map[int]uint
  14713. v2, changed = fastpathTV.DecMapIntUintV(*v, true, d)
  14714. if changed {
  14715. *v = v2
  14716. }
  14717. case map[int]uint8:
  14718. fastpathTV.DecMapIntUint8V(v, false, d)
  14719. case *map[int]uint8:
  14720. var v2 map[int]uint8
  14721. v2, changed = fastpathTV.DecMapIntUint8V(*v, true, d)
  14722. if changed {
  14723. *v = v2
  14724. }
  14725. case map[int]uint16:
  14726. fastpathTV.DecMapIntUint16V(v, false, d)
  14727. case *map[int]uint16:
  14728. var v2 map[int]uint16
  14729. v2, changed = fastpathTV.DecMapIntUint16V(*v, true, d)
  14730. if changed {
  14731. *v = v2
  14732. }
  14733. case map[int]uint32:
  14734. fastpathTV.DecMapIntUint32V(v, false, d)
  14735. case *map[int]uint32:
  14736. var v2 map[int]uint32
  14737. v2, changed = fastpathTV.DecMapIntUint32V(*v, true, d)
  14738. if changed {
  14739. *v = v2
  14740. }
  14741. case map[int]uint64:
  14742. fastpathTV.DecMapIntUint64V(v, false, d)
  14743. case *map[int]uint64:
  14744. var v2 map[int]uint64
  14745. v2, changed = fastpathTV.DecMapIntUint64V(*v, true, d)
  14746. if changed {
  14747. *v = v2
  14748. }
  14749. case map[int]uintptr:
  14750. fastpathTV.DecMapIntUintptrV(v, false, d)
  14751. case *map[int]uintptr:
  14752. var v2 map[int]uintptr
  14753. v2, changed = fastpathTV.DecMapIntUintptrV(*v, true, d)
  14754. if changed {
  14755. *v = v2
  14756. }
  14757. case map[int]int:
  14758. fastpathTV.DecMapIntIntV(v, false, d)
  14759. case *map[int]int:
  14760. var v2 map[int]int
  14761. v2, changed = fastpathTV.DecMapIntIntV(*v, true, d)
  14762. if changed {
  14763. *v = v2
  14764. }
  14765. case map[int]int8:
  14766. fastpathTV.DecMapIntInt8V(v, false, d)
  14767. case *map[int]int8:
  14768. var v2 map[int]int8
  14769. v2, changed = fastpathTV.DecMapIntInt8V(*v, true, d)
  14770. if changed {
  14771. *v = v2
  14772. }
  14773. case map[int]int16:
  14774. fastpathTV.DecMapIntInt16V(v, false, d)
  14775. case *map[int]int16:
  14776. var v2 map[int]int16
  14777. v2, changed = fastpathTV.DecMapIntInt16V(*v, true, d)
  14778. if changed {
  14779. *v = v2
  14780. }
  14781. case map[int]int32:
  14782. fastpathTV.DecMapIntInt32V(v, false, d)
  14783. case *map[int]int32:
  14784. var v2 map[int]int32
  14785. v2, changed = fastpathTV.DecMapIntInt32V(*v, true, d)
  14786. if changed {
  14787. *v = v2
  14788. }
  14789. case map[int]int64:
  14790. fastpathTV.DecMapIntInt64V(v, false, d)
  14791. case *map[int]int64:
  14792. var v2 map[int]int64
  14793. v2, changed = fastpathTV.DecMapIntInt64V(*v, true, d)
  14794. if changed {
  14795. *v = v2
  14796. }
  14797. case map[int]float32:
  14798. fastpathTV.DecMapIntFloat32V(v, false, d)
  14799. case *map[int]float32:
  14800. var v2 map[int]float32
  14801. v2, changed = fastpathTV.DecMapIntFloat32V(*v, true, d)
  14802. if changed {
  14803. *v = v2
  14804. }
  14805. case map[int]float64:
  14806. fastpathTV.DecMapIntFloat64V(v, false, d)
  14807. case *map[int]float64:
  14808. var v2 map[int]float64
  14809. v2, changed = fastpathTV.DecMapIntFloat64V(*v, true, d)
  14810. if changed {
  14811. *v = v2
  14812. }
  14813. case map[int]bool:
  14814. fastpathTV.DecMapIntBoolV(v, false, d)
  14815. case *map[int]bool:
  14816. var v2 map[int]bool
  14817. v2, changed = fastpathTV.DecMapIntBoolV(*v, true, d)
  14818. if changed {
  14819. *v = v2
  14820. }
  14821. case map[int8]interface{}:
  14822. fastpathTV.DecMapInt8IntfV(v, false, d)
  14823. case *map[int8]interface{}:
  14824. var v2 map[int8]interface{}
  14825. v2, changed = fastpathTV.DecMapInt8IntfV(*v, true, d)
  14826. if changed {
  14827. *v = v2
  14828. }
  14829. case map[int8]string:
  14830. fastpathTV.DecMapInt8StringV(v, false, d)
  14831. case *map[int8]string:
  14832. var v2 map[int8]string
  14833. v2, changed = fastpathTV.DecMapInt8StringV(*v, true, d)
  14834. if changed {
  14835. *v = v2
  14836. }
  14837. case map[int8]uint:
  14838. fastpathTV.DecMapInt8UintV(v, false, d)
  14839. case *map[int8]uint:
  14840. var v2 map[int8]uint
  14841. v2, changed = fastpathTV.DecMapInt8UintV(*v, true, d)
  14842. if changed {
  14843. *v = v2
  14844. }
  14845. case map[int8]uint8:
  14846. fastpathTV.DecMapInt8Uint8V(v, false, d)
  14847. case *map[int8]uint8:
  14848. var v2 map[int8]uint8
  14849. v2, changed = fastpathTV.DecMapInt8Uint8V(*v, true, d)
  14850. if changed {
  14851. *v = v2
  14852. }
  14853. case map[int8]uint16:
  14854. fastpathTV.DecMapInt8Uint16V(v, false, d)
  14855. case *map[int8]uint16:
  14856. var v2 map[int8]uint16
  14857. v2, changed = fastpathTV.DecMapInt8Uint16V(*v, true, d)
  14858. if changed {
  14859. *v = v2
  14860. }
  14861. case map[int8]uint32:
  14862. fastpathTV.DecMapInt8Uint32V(v, false, d)
  14863. case *map[int8]uint32:
  14864. var v2 map[int8]uint32
  14865. v2, changed = fastpathTV.DecMapInt8Uint32V(*v, true, d)
  14866. if changed {
  14867. *v = v2
  14868. }
  14869. case map[int8]uint64:
  14870. fastpathTV.DecMapInt8Uint64V(v, false, d)
  14871. case *map[int8]uint64:
  14872. var v2 map[int8]uint64
  14873. v2, changed = fastpathTV.DecMapInt8Uint64V(*v, true, d)
  14874. if changed {
  14875. *v = v2
  14876. }
  14877. case map[int8]uintptr:
  14878. fastpathTV.DecMapInt8UintptrV(v, false, d)
  14879. case *map[int8]uintptr:
  14880. var v2 map[int8]uintptr
  14881. v2, changed = fastpathTV.DecMapInt8UintptrV(*v, true, d)
  14882. if changed {
  14883. *v = v2
  14884. }
  14885. case map[int8]int:
  14886. fastpathTV.DecMapInt8IntV(v, false, d)
  14887. case *map[int8]int:
  14888. var v2 map[int8]int
  14889. v2, changed = fastpathTV.DecMapInt8IntV(*v, true, d)
  14890. if changed {
  14891. *v = v2
  14892. }
  14893. case map[int8]int8:
  14894. fastpathTV.DecMapInt8Int8V(v, false, d)
  14895. case *map[int8]int8:
  14896. var v2 map[int8]int8
  14897. v2, changed = fastpathTV.DecMapInt8Int8V(*v, true, d)
  14898. if changed {
  14899. *v = v2
  14900. }
  14901. case map[int8]int16:
  14902. fastpathTV.DecMapInt8Int16V(v, false, d)
  14903. case *map[int8]int16:
  14904. var v2 map[int8]int16
  14905. v2, changed = fastpathTV.DecMapInt8Int16V(*v, true, d)
  14906. if changed {
  14907. *v = v2
  14908. }
  14909. case map[int8]int32:
  14910. fastpathTV.DecMapInt8Int32V(v, false, d)
  14911. case *map[int8]int32:
  14912. var v2 map[int8]int32
  14913. v2, changed = fastpathTV.DecMapInt8Int32V(*v, true, d)
  14914. if changed {
  14915. *v = v2
  14916. }
  14917. case map[int8]int64:
  14918. fastpathTV.DecMapInt8Int64V(v, false, d)
  14919. case *map[int8]int64:
  14920. var v2 map[int8]int64
  14921. v2, changed = fastpathTV.DecMapInt8Int64V(*v, true, d)
  14922. if changed {
  14923. *v = v2
  14924. }
  14925. case map[int8]float32:
  14926. fastpathTV.DecMapInt8Float32V(v, false, d)
  14927. case *map[int8]float32:
  14928. var v2 map[int8]float32
  14929. v2, changed = fastpathTV.DecMapInt8Float32V(*v, true, d)
  14930. if changed {
  14931. *v = v2
  14932. }
  14933. case map[int8]float64:
  14934. fastpathTV.DecMapInt8Float64V(v, false, d)
  14935. case *map[int8]float64:
  14936. var v2 map[int8]float64
  14937. v2, changed = fastpathTV.DecMapInt8Float64V(*v, true, d)
  14938. if changed {
  14939. *v = v2
  14940. }
  14941. case map[int8]bool:
  14942. fastpathTV.DecMapInt8BoolV(v, false, d)
  14943. case *map[int8]bool:
  14944. var v2 map[int8]bool
  14945. v2, changed = fastpathTV.DecMapInt8BoolV(*v, true, d)
  14946. if changed {
  14947. *v = v2
  14948. }
  14949. case map[int16]interface{}:
  14950. fastpathTV.DecMapInt16IntfV(v, false, d)
  14951. case *map[int16]interface{}:
  14952. var v2 map[int16]interface{}
  14953. v2, changed = fastpathTV.DecMapInt16IntfV(*v, true, d)
  14954. if changed {
  14955. *v = v2
  14956. }
  14957. case map[int16]string:
  14958. fastpathTV.DecMapInt16StringV(v, false, d)
  14959. case *map[int16]string:
  14960. var v2 map[int16]string
  14961. v2, changed = fastpathTV.DecMapInt16StringV(*v, true, d)
  14962. if changed {
  14963. *v = v2
  14964. }
  14965. case map[int16]uint:
  14966. fastpathTV.DecMapInt16UintV(v, false, d)
  14967. case *map[int16]uint:
  14968. var v2 map[int16]uint
  14969. v2, changed = fastpathTV.DecMapInt16UintV(*v, true, d)
  14970. if changed {
  14971. *v = v2
  14972. }
  14973. case map[int16]uint8:
  14974. fastpathTV.DecMapInt16Uint8V(v, false, d)
  14975. case *map[int16]uint8:
  14976. var v2 map[int16]uint8
  14977. v2, changed = fastpathTV.DecMapInt16Uint8V(*v, true, d)
  14978. if changed {
  14979. *v = v2
  14980. }
  14981. case map[int16]uint16:
  14982. fastpathTV.DecMapInt16Uint16V(v, false, d)
  14983. case *map[int16]uint16:
  14984. var v2 map[int16]uint16
  14985. v2, changed = fastpathTV.DecMapInt16Uint16V(*v, true, d)
  14986. if changed {
  14987. *v = v2
  14988. }
  14989. case map[int16]uint32:
  14990. fastpathTV.DecMapInt16Uint32V(v, false, d)
  14991. case *map[int16]uint32:
  14992. var v2 map[int16]uint32
  14993. v2, changed = fastpathTV.DecMapInt16Uint32V(*v, true, d)
  14994. if changed {
  14995. *v = v2
  14996. }
  14997. case map[int16]uint64:
  14998. fastpathTV.DecMapInt16Uint64V(v, false, d)
  14999. case *map[int16]uint64:
  15000. var v2 map[int16]uint64
  15001. v2, changed = fastpathTV.DecMapInt16Uint64V(*v, true, d)
  15002. if changed {
  15003. *v = v2
  15004. }
  15005. case map[int16]uintptr:
  15006. fastpathTV.DecMapInt16UintptrV(v, false, d)
  15007. case *map[int16]uintptr:
  15008. var v2 map[int16]uintptr
  15009. v2, changed = fastpathTV.DecMapInt16UintptrV(*v, true, d)
  15010. if changed {
  15011. *v = v2
  15012. }
  15013. case map[int16]int:
  15014. fastpathTV.DecMapInt16IntV(v, false, d)
  15015. case *map[int16]int:
  15016. var v2 map[int16]int
  15017. v2, changed = fastpathTV.DecMapInt16IntV(*v, true, d)
  15018. if changed {
  15019. *v = v2
  15020. }
  15021. case map[int16]int8:
  15022. fastpathTV.DecMapInt16Int8V(v, false, d)
  15023. case *map[int16]int8:
  15024. var v2 map[int16]int8
  15025. v2, changed = fastpathTV.DecMapInt16Int8V(*v, true, d)
  15026. if changed {
  15027. *v = v2
  15028. }
  15029. case map[int16]int16:
  15030. fastpathTV.DecMapInt16Int16V(v, false, d)
  15031. case *map[int16]int16:
  15032. var v2 map[int16]int16
  15033. v2, changed = fastpathTV.DecMapInt16Int16V(*v, true, d)
  15034. if changed {
  15035. *v = v2
  15036. }
  15037. case map[int16]int32:
  15038. fastpathTV.DecMapInt16Int32V(v, false, d)
  15039. case *map[int16]int32:
  15040. var v2 map[int16]int32
  15041. v2, changed = fastpathTV.DecMapInt16Int32V(*v, true, d)
  15042. if changed {
  15043. *v = v2
  15044. }
  15045. case map[int16]int64:
  15046. fastpathTV.DecMapInt16Int64V(v, false, d)
  15047. case *map[int16]int64:
  15048. var v2 map[int16]int64
  15049. v2, changed = fastpathTV.DecMapInt16Int64V(*v, true, d)
  15050. if changed {
  15051. *v = v2
  15052. }
  15053. case map[int16]float32:
  15054. fastpathTV.DecMapInt16Float32V(v, false, d)
  15055. case *map[int16]float32:
  15056. var v2 map[int16]float32
  15057. v2, changed = fastpathTV.DecMapInt16Float32V(*v, true, d)
  15058. if changed {
  15059. *v = v2
  15060. }
  15061. case map[int16]float64:
  15062. fastpathTV.DecMapInt16Float64V(v, false, d)
  15063. case *map[int16]float64:
  15064. var v2 map[int16]float64
  15065. v2, changed = fastpathTV.DecMapInt16Float64V(*v, true, d)
  15066. if changed {
  15067. *v = v2
  15068. }
  15069. case map[int16]bool:
  15070. fastpathTV.DecMapInt16BoolV(v, false, d)
  15071. case *map[int16]bool:
  15072. var v2 map[int16]bool
  15073. v2, changed = fastpathTV.DecMapInt16BoolV(*v, true, d)
  15074. if changed {
  15075. *v = v2
  15076. }
  15077. case map[int32]interface{}:
  15078. fastpathTV.DecMapInt32IntfV(v, false, d)
  15079. case *map[int32]interface{}:
  15080. var v2 map[int32]interface{}
  15081. v2, changed = fastpathTV.DecMapInt32IntfV(*v, true, d)
  15082. if changed {
  15083. *v = v2
  15084. }
  15085. case map[int32]string:
  15086. fastpathTV.DecMapInt32StringV(v, false, d)
  15087. case *map[int32]string:
  15088. var v2 map[int32]string
  15089. v2, changed = fastpathTV.DecMapInt32StringV(*v, true, d)
  15090. if changed {
  15091. *v = v2
  15092. }
  15093. case map[int32]uint:
  15094. fastpathTV.DecMapInt32UintV(v, false, d)
  15095. case *map[int32]uint:
  15096. var v2 map[int32]uint
  15097. v2, changed = fastpathTV.DecMapInt32UintV(*v, true, d)
  15098. if changed {
  15099. *v = v2
  15100. }
  15101. case map[int32]uint8:
  15102. fastpathTV.DecMapInt32Uint8V(v, false, d)
  15103. case *map[int32]uint8:
  15104. var v2 map[int32]uint8
  15105. v2, changed = fastpathTV.DecMapInt32Uint8V(*v, true, d)
  15106. if changed {
  15107. *v = v2
  15108. }
  15109. case map[int32]uint16:
  15110. fastpathTV.DecMapInt32Uint16V(v, false, d)
  15111. case *map[int32]uint16:
  15112. var v2 map[int32]uint16
  15113. v2, changed = fastpathTV.DecMapInt32Uint16V(*v, true, d)
  15114. if changed {
  15115. *v = v2
  15116. }
  15117. case map[int32]uint32:
  15118. fastpathTV.DecMapInt32Uint32V(v, false, d)
  15119. case *map[int32]uint32:
  15120. var v2 map[int32]uint32
  15121. v2, changed = fastpathTV.DecMapInt32Uint32V(*v, true, d)
  15122. if changed {
  15123. *v = v2
  15124. }
  15125. case map[int32]uint64:
  15126. fastpathTV.DecMapInt32Uint64V(v, false, d)
  15127. case *map[int32]uint64:
  15128. var v2 map[int32]uint64
  15129. v2, changed = fastpathTV.DecMapInt32Uint64V(*v, true, d)
  15130. if changed {
  15131. *v = v2
  15132. }
  15133. case map[int32]uintptr:
  15134. fastpathTV.DecMapInt32UintptrV(v, false, d)
  15135. case *map[int32]uintptr:
  15136. var v2 map[int32]uintptr
  15137. v2, changed = fastpathTV.DecMapInt32UintptrV(*v, true, d)
  15138. if changed {
  15139. *v = v2
  15140. }
  15141. case map[int32]int:
  15142. fastpathTV.DecMapInt32IntV(v, false, d)
  15143. case *map[int32]int:
  15144. var v2 map[int32]int
  15145. v2, changed = fastpathTV.DecMapInt32IntV(*v, true, d)
  15146. if changed {
  15147. *v = v2
  15148. }
  15149. case map[int32]int8:
  15150. fastpathTV.DecMapInt32Int8V(v, false, d)
  15151. case *map[int32]int8:
  15152. var v2 map[int32]int8
  15153. v2, changed = fastpathTV.DecMapInt32Int8V(*v, true, d)
  15154. if changed {
  15155. *v = v2
  15156. }
  15157. case map[int32]int16:
  15158. fastpathTV.DecMapInt32Int16V(v, false, d)
  15159. case *map[int32]int16:
  15160. var v2 map[int32]int16
  15161. v2, changed = fastpathTV.DecMapInt32Int16V(*v, true, d)
  15162. if changed {
  15163. *v = v2
  15164. }
  15165. case map[int32]int32:
  15166. fastpathTV.DecMapInt32Int32V(v, false, d)
  15167. case *map[int32]int32:
  15168. var v2 map[int32]int32
  15169. v2, changed = fastpathTV.DecMapInt32Int32V(*v, true, d)
  15170. if changed {
  15171. *v = v2
  15172. }
  15173. case map[int32]int64:
  15174. fastpathTV.DecMapInt32Int64V(v, false, d)
  15175. case *map[int32]int64:
  15176. var v2 map[int32]int64
  15177. v2, changed = fastpathTV.DecMapInt32Int64V(*v, true, d)
  15178. if changed {
  15179. *v = v2
  15180. }
  15181. case map[int32]float32:
  15182. fastpathTV.DecMapInt32Float32V(v, false, d)
  15183. case *map[int32]float32:
  15184. var v2 map[int32]float32
  15185. v2, changed = fastpathTV.DecMapInt32Float32V(*v, true, d)
  15186. if changed {
  15187. *v = v2
  15188. }
  15189. case map[int32]float64:
  15190. fastpathTV.DecMapInt32Float64V(v, false, d)
  15191. case *map[int32]float64:
  15192. var v2 map[int32]float64
  15193. v2, changed = fastpathTV.DecMapInt32Float64V(*v, true, d)
  15194. if changed {
  15195. *v = v2
  15196. }
  15197. case map[int32]bool:
  15198. fastpathTV.DecMapInt32BoolV(v, false, d)
  15199. case *map[int32]bool:
  15200. var v2 map[int32]bool
  15201. v2, changed = fastpathTV.DecMapInt32BoolV(*v, true, d)
  15202. if changed {
  15203. *v = v2
  15204. }
  15205. case map[int64]interface{}:
  15206. fastpathTV.DecMapInt64IntfV(v, false, d)
  15207. case *map[int64]interface{}:
  15208. var v2 map[int64]interface{}
  15209. v2, changed = fastpathTV.DecMapInt64IntfV(*v, true, d)
  15210. if changed {
  15211. *v = v2
  15212. }
  15213. case map[int64]string:
  15214. fastpathTV.DecMapInt64StringV(v, false, d)
  15215. case *map[int64]string:
  15216. var v2 map[int64]string
  15217. v2, changed = fastpathTV.DecMapInt64StringV(*v, true, d)
  15218. if changed {
  15219. *v = v2
  15220. }
  15221. case map[int64]uint:
  15222. fastpathTV.DecMapInt64UintV(v, false, d)
  15223. case *map[int64]uint:
  15224. var v2 map[int64]uint
  15225. v2, changed = fastpathTV.DecMapInt64UintV(*v, true, d)
  15226. if changed {
  15227. *v = v2
  15228. }
  15229. case map[int64]uint8:
  15230. fastpathTV.DecMapInt64Uint8V(v, false, d)
  15231. case *map[int64]uint8:
  15232. var v2 map[int64]uint8
  15233. v2, changed = fastpathTV.DecMapInt64Uint8V(*v, true, d)
  15234. if changed {
  15235. *v = v2
  15236. }
  15237. case map[int64]uint16:
  15238. fastpathTV.DecMapInt64Uint16V(v, false, d)
  15239. case *map[int64]uint16:
  15240. var v2 map[int64]uint16
  15241. v2, changed = fastpathTV.DecMapInt64Uint16V(*v, true, d)
  15242. if changed {
  15243. *v = v2
  15244. }
  15245. case map[int64]uint32:
  15246. fastpathTV.DecMapInt64Uint32V(v, false, d)
  15247. case *map[int64]uint32:
  15248. var v2 map[int64]uint32
  15249. v2, changed = fastpathTV.DecMapInt64Uint32V(*v, true, d)
  15250. if changed {
  15251. *v = v2
  15252. }
  15253. case map[int64]uint64:
  15254. fastpathTV.DecMapInt64Uint64V(v, false, d)
  15255. case *map[int64]uint64:
  15256. var v2 map[int64]uint64
  15257. v2, changed = fastpathTV.DecMapInt64Uint64V(*v, true, d)
  15258. if changed {
  15259. *v = v2
  15260. }
  15261. case map[int64]uintptr:
  15262. fastpathTV.DecMapInt64UintptrV(v, false, d)
  15263. case *map[int64]uintptr:
  15264. var v2 map[int64]uintptr
  15265. v2, changed = fastpathTV.DecMapInt64UintptrV(*v, true, d)
  15266. if changed {
  15267. *v = v2
  15268. }
  15269. case map[int64]int:
  15270. fastpathTV.DecMapInt64IntV(v, false, d)
  15271. case *map[int64]int:
  15272. var v2 map[int64]int
  15273. v2, changed = fastpathTV.DecMapInt64IntV(*v, true, d)
  15274. if changed {
  15275. *v = v2
  15276. }
  15277. case map[int64]int8:
  15278. fastpathTV.DecMapInt64Int8V(v, false, d)
  15279. case *map[int64]int8:
  15280. var v2 map[int64]int8
  15281. v2, changed = fastpathTV.DecMapInt64Int8V(*v, true, d)
  15282. if changed {
  15283. *v = v2
  15284. }
  15285. case map[int64]int16:
  15286. fastpathTV.DecMapInt64Int16V(v, false, d)
  15287. case *map[int64]int16:
  15288. var v2 map[int64]int16
  15289. v2, changed = fastpathTV.DecMapInt64Int16V(*v, true, d)
  15290. if changed {
  15291. *v = v2
  15292. }
  15293. case map[int64]int32:
  15294. fastpathTV.DecMapInt64Int32V(v, false, d)
  15295. case *map[int64]int32:
  15296. var v2 map[int64]int32
  15297. v2, changed = fastpathTV.DecMapInt64Int32V(*v, true, d)
  15298. if changed {
  15299. *v = v2
  15300. }
  15301. case map[int64]int64:
  15302. fastpathTV.DecMapInt64Int64V(v, false, d)
  15303. case *map[int64]int64:
  15304. var v2 map[int64]int64
  15305. v2, changed = fastpathTV.DecMapInt64Int64V(*v, true, d)
  15306. if changed {
  15307. *v = v2
  15308. }
  15309. case map[int64]float32:
  15310. fastpathTV.DecMapInt64Float32V(v, false, d)
  15311. case *map[int64]float32:
  15312. var v2 map[int64]float32
  15313. v2, changed = fastpathTV.DecMapInt64Float32V(*v, true, d)
  15314. if changed {
  15315. *v = v2
  15316. }
  15317. case map[int64]float64:
  15318. fastpathTV.DecMapInt64Float64V(v, false, d)
  15319. case *map[int64]float64:
  15320. var v2 map[int64]float64
  15321. v2, changed = fastpathTV.DecMapInt64Float64V(*v, true, d)
  15322. if changed {
  15323. *v = v2
  15324. }
  15325. case map[int64]bool:
  15326. fastpathTV.DecMapInt64BoolV(v, false, d)
  15327. case *map[int64]bool:
  15328. var v2 map[int64]bool
  15329. v2, changed = fastpathTV.DecMapInt64BoolV(*v, true, d)
  15330. if changed {
  15331. *v = v2
  15332. }
  15333. case map[bool]interface{}:
  15334. fastpathTV.DecMapBoolIntfV(v, false, d)
  15335. case *map[bool]interface{}:
  15336. var v2 map[bool]interface{}
  15337. v2, changed = fastpathTV.DecMapBoolIntfV(*v, true, d)
  15338. if changed {
  15339. *v = v2
  15340. }
  15341. case map[bool]string:
  15342. fastpathTV.DecMapBoolStringV(v, false, d)
  15343. case *map[bool]string:
  15344. var v2 map[bool]string
  15345. v2, changed = fastpathTV.DecMapBoolStringV(*v, true, d)
  15346. if changed {
  15347. *v = v2
  15348. }
  15349. case map[bool]uint:
  15350. fastpathTV.DecMapBoolUintV(v, false, d)
  15351. case *map[bool]uint:
  15352. var v2 map[bool]uint
  15353. v2, changed = fastpathTV.DecMapBoolUintV(*v, true, d)
  15354. if changed {
  15355. *v = v2
  15356. }
  15357. case map[bool]uint8:
  15358. fastpathTV.DecMapBoolUint8V(v, false, d)
  15359. case *map[bool]uint8:
  15360. var v2 map[bool]uint8
  15361. v2, changed = fastpathTV.DecMapBoolUint8V(*v, true, d)
  15362. if changed {
  15363. *v = v2
  15364. }
  15365. case map[bool]uint16:
  15366. fastpathTV.DecMapBoolUint16V(v, false, d)
  15367. case *map[bool]uint16:
  15368. var v2 map[bool]uint16
  15369. v2, changed = fastpathTV.DecMapBoolUint16V(*v, true, d)
  15370. if changed {
  15371. *v = v2
  15372. }
  15373. case map[bool]uint32:
  15374. fastpathTV.DecMapBoolUint32V(v, false, d)
  15375. case *map[bool]uint32:
  15376. var v2 map[bool]uint32
  15377. v2, changed = fastpathTV.DecMapBoolUint32V(*v, true, d)
  15378. if changed {
  15379. *v = v2
  15380. }
  15381. case map[bool]uint64:
  15382. fastpathTV.DecMapBoolUint64V(v, false, d)
  15383. case *map[bool]uint64:
  15384. var v2 map[bool]uint64
  15385. v2, changed = fastpathTV.DecMapBoolUint64V(*v, true, d)
  15386. if changed {
  15387. *v = v2
  15388. }
  15389. case map[bool]uintptr:
  15390. fastpathTV.DecMapBoolUintptrV(v, false, d)
  15391. case *map[bool]uintptr:
  15392. var v2 map[bool]uintptr
  15393. v2, changed = fastpathTV.DecMapBoolUintptrV(*v, true, d)
  15394. if changed {
  15395. *v = v2
  15396. }
  15397. case map[bool]int:
  15398. fastpathTV.DecMapBoolIntV(v, false, d)
  15399. case *map[bool]int:
  15400. var v2 map[bool]int
  15401. v2, changed = fastpathTV.DecMapBoolIntV(*v, true, d)
  15402. if changed {
  15403. *v = v2
  15404. }
  15405. case map[bool]int8:
  15406. fastpathTV.DecMapBoolInt8V(v, false, d)
  15407. case *map[bool]int8:
  15408. var v2 map[bool]int8
  15409. v2, changed = fastpathTV.DecMapBoolInt8V(*v, true, d)
  15410. if changed {
  15411. *v = v2
  15412. }
  15413. case map[bool]int16:
  15414. fastpathTV.DecMapBoolInt16V(v, false, d)
  15415. case *map[bool]int16:
  15416. var v2 map[bool]int16
  15417. v2, changed = fastpathTV.DecMapBoolInt16V(*v, true, d)
  15418. if changed {
  15419. *v = v2
  15420. }
  15421. case map[bool]int32:
  15422. fastpathTV.DecMapBoolInt32V(v, false, d)
  15423. case *map[bool]int32:
  15424. var v2 map[bool]int32
  15425. v2, changed = fastpathTV.DecMapBoolInt32V(*v, true, d)
  15426. if changed {
  15427. *v = v2
  15428. }
  15429. case map[bool]int64:
  15430. fastpathTV.DecMapBoolInt64V(v, false, d)
  15431. case *map[bool]int64:
  15432. var v2 map[bool]int64
  15433. v2, changed = fastpathTV.DecMapBoolInt64V(*v, true, d)
  15434. if changed {
  15435. *v = v2
  15436. }
  15437. case map[bool]float32:
  15438. fastpathTV.DecMapBoolFloat32V(v, false, d)
  15439. case *map[bool]float32:
  15440. var v2 map[bool]float32
  15441. v2, changed = fastpathTV.DecMapBoolFloat32V(*v, true, d)
  15442. if changed {
  15443. *v = v2
  15444. }
  15445. case map[bool]float64:
  15446. fastpathTV.DecMapBoolFloat64V(v, false, d)
  15447. case *map[bool]float64:
  15448. var v2 map[bool]float64
  15449. v2, changed = fastpathTV.DecMapBoolFloat64V(*v, true, d)
  15450. if changed {
  15451. *v = v2
  15452. }
  15453. case map[bool]bool:
  15454. fastpathTV.DecMapBoolBoolV(v, false, d)
  15455. case *map[bool]bool:
  15456. var v2 map[bool]bool
  15457. v2, changed = fastpathTV.DecMapBoolBoolV(*v, true, d)
  15458. if changed {
  15459. *v = v2
  15460. }
  15461. default:
  15462. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  15463. return false
  15464. }
  15465. return true
  15466. }
  15467. func fastpathDecodeSetZeroTypeSwitch(iv interface{}) bool {
  15468. switch v := iv.(type) {
  15469. case *[]interface{}:
  15470. *v = nil
  15471. case *[]string:
  15472. *v = nil
  15473. case *[]float32:
  15474. *v = nil
  15475. case *[]float64:
  15476. *v = nil
  15477. case *[]uint:
  15478. *v = nil
  15479. case *[]uint8:
  15480. *v = nil
  15481. case *[]uint16:
  15482. *v = nil
  15483. case *[]uint32:
  15484. *v = nil
  15485. case *[]uint64:
  15486. *v = nil
  15487. case *[]uintptr:
  15488. *v = nil
  15489. case *[]int:
  15490. *v = nil
  15491. case *[]int8:
  15492. *v = nil
  15493. case *[]int16:
  15494. *v = nil
  15495. case *[]int32:
  15496. *v = nil
  15497. case *[]int64:
  15498. *v = nil
  15499. case *[]bool:
  15500. *v = nil
  15501. case *map[interface{}]interface{}:
  15502. *v = nil
  15503. case *map[interface{}]string:
  15504. *v = nil
  15505. case *map[interface{}]uint:
  15506. *v = nil
  15507. case *map[interface{}]uint8:
  15508. *v = nil
  15509. case *map[interface{}]uint16:
  15510. *v = nil
  15511. case *map[interface{}]uint32:
  15512. *v = nil
  15513. case *map[interface{}]uint64:
  15514. *v = nil
  15515. case *map[interface{}]uintptr:
  15516. *v = nil
  15517. case *map[interface{}]int:
  15518. *v = nil
  15519. case *map[interface{}]int8:
  15520. *v = nil
  15521. case *map[interface{}]int16:
  15522. *v = nil
  15523. case *map[interface{}]int32:
  15524. *v = nil
  15525. case *map[interface{}]int64:
  15526. *v = nil
  15527. case *map[interface{}]float32:
  15528. *v = nil
  15529. case *map[interface{}]float64:
  15530. *v = nil
  15531. case *map[interface{}]bool:
  15532. *v = nil
  15533. case *map[string]interface{}:
  15534. *v = nil
  15535. case *map[string]string:
  15536. *v = nil
  15537. case *map[string]uint:
  15538. *v = nil
  15539. case *map[string]uint8:
  15540. *v = nil
  15541. case *map[string]uint16:
  15542. *v = nil
  15543. case *map[string]uint32:
  15544. *v = nil
  15545. case *map[string]uint64:
  15546. *v = nil
  15547. case *map[string]uintptr:
  15548. *v = nil
  15549. case *map[string]int:
  15550. *v = nil
  15551. case *map[string]int8:
  15552. *v = nil
  15553. case *map[string]int16:
  15554. *v = nil
  15555. case *map[string]int32:
  15556. *v = nil
  15557. case *map[string]int64:
  15558. *v = nil
  15559. case *map[string]float32:
  15560. *v = nil
  15561. case *map[string]float64:
  15562. *v = nil
  15563. case *map[string]bool:
  15564. *v = nil
  15565. case *map[float32]interface{}:
  15566. *v = nil
  15567. case *map[float32]string:
  15568. *v = nil
  15569. case *map[float32]uint:
  15570. *v = nil
  15571. case *map[float32]uint8:
  15572. *v = nil
  15573. case *map[float32]uint16:
  15574. *v = nil
  15575. case *map[float32]uint32:
  15576. *v = nil
  15577. case *map[float32]uint64:
  15578. *v = nil
  15579. case *map[float32]uintptr:
  15580. *v = nil
  15581. case *map[float32]int:
  15582. *v = nil
  15583. case *map[float32]int8:
  15584. *v = nil
  15585. case *map[float32]int16:
  15586. *v = nil
  15587. case *map[float32]int32:
  15588. *v = nil
  15589. case *map[float32]int64:
  15590. *v = nil
  15591. case *map[float32]float32:
  15592. *v = nil
  15593. case *map[float32]float64:
  15594. *v = nil
  15595. case *map[float32]bool:
  15596. *v = nil
  15597. case *map[float64]interface{}:
  15598. *v = nil
  15599. case *map[float64]string:
  15600. *v = nil
  15601. case *map[float64]uint:
  15602. *v = nil
  15603. case *map[float64]uint8:
  15604. *v = nil
  15605. case *map[float64]uint16:
  15606. *v = nil
  15607. case *map[float64]uint32:
  15608. *v = nil
  15609. case *map[float64]uint64:
  15610. *v = nil
  15611. case *map[float64]uintptr:
  15612. *v = nil
  15613. case *map[float64]int:
  15614. *v = nil
  15615. case *map[float64]int8:
  15616. *v = nil
  15617. case *map[float64]int16:
  15618. *v = nil
  15619. case *map[float64]int32:
  15620. *v = nil
  15621. case *map[float64]int64:
  15622. *v = nil
  15623. case *map[float64]float32:
  15624. *v = nil
  15625. case *map[float64]float64:
  15626. *v = nil
  15627. case *map[float64]bool:
  15628. *v = nil
  15629. case *map[uint]interface{}:
  15630. *v = nil
  15631. case *map[uint]string:
  15632. *v = nil
  15633. case *map[uint]uint:
  15634. *v = nil
  15635. case *map[uint]uint8:
  15636. *v = nil
  15637. case *map[uint]uint16:
  15638. *v = nil
  15639. case *map[uint]uint32:
  15640. *v = nil
  15641. case *map[uint]uint64:
  15642. *v = nil
  15643. case *map[uint]uintptr:
  15644. *v = nil
  15645. case *map[uint]int:
  15646. *v = nil
  15647. case *map[uint]int8:
  15648. *v = nil
  15649. case *map[uint]int16:
  15650. *v = nil
  15651. case *map[uint]int32:
  15652. *v = nil
  15653. case *map[uint]int64:
  15654. *v = nil
  15655. case *map[uint]float32:
  15656. *v = nil
  15657. case *map[uint]float64:
  15658. *v = nil
  15659. case *map[uint]bool:
  15660. *v = nil
  15661. case *map[uint8]interface{}:
  15662. *v = nil
  15663. case *map[uint8]string:
  15664. *v = nil
  15665. case *map[uint8]uint:
  15666. *v = nil
  15667. case *map[uint8]uint8:
  15668. *v = nil
  15669. case *map[uint8]uint16:
  15670. *v = nil
  15671. case *map[uint8]uint32:
  15672. *v = nil
  15673. case *map[uint8]uint64:
  15674. *v = nil
  15675. case *map[uint8]uintptr:
  15676. *v = nil
  15677. case *map[uint8]int:
  15678. *v = nil
  15679. case *map[uint8]int8:
  15680. *v = nil
  15681. case *map[uint8]int16:
  15682. *v = nil
  15683. case *map[uint8]int32:
  15684. *v = nil
  15685. case *map[uint8]int64:
  15686. *v = nil
  15687. case *map[uint8]float32:
  15688. *v = nil
  15689. case *map[uint8]float64:
  15690. *v = nil
  15691. case *map[uint8]bool:
  15692. *v = nil
  15693. case *map[uint16]interface{}:
  15694. *v = nil
  15695. case *map[uint16]string:
  15696. *v = nil
  15697. case *map[uint16]uint:
  15698. *v = nil
  15699. case *map[uint16]uint8:
  15700. *v = nil
  15701. case *map[uint16]uint16:
  15702. *v = nil
  15703. case *map[uint16]uint32:
  15704. *v = nil
  15705. case *map[uint16]uint64:
  15706. *v = nil
  15707. case *map[uint16]uintptr:
  15708. *v = nil
  15709. case *map[uint16]int:
  15710. *v = nil
  15711. case *map[uint16]int8:
  15712. *v = nil
  15713. case *map[uint16]int16:
  15714. *v = nil
  15715. case *map[uint16]int32:
  15716. *v = nil
  15717. case *map[uint16]int64:
  15718. *v = nil
  15719. case *map[uint16]float32:
  15720. *v = nil
  15721. case *map[uint16]float64:
  15722. *v = nil
  15723. case *map[uint16]bool:
  15724. *v = nil
  15725. case *map[uint32]interface{}:
  15726. *v = nil
  15727. case *map[uint32]string:
  15728. *v = nil
  15729. case *map[uint32]uint:
  15730. *v = nil
  15731. case *map[uint32]uint8:
  15732. *v = nil
  15733. case *map[uint32]uint16:
  15734. *v = nil
  15735. case *map[uint32]uint32:
  15736. *v = nil
  15737. case *map[uint32]uint64:
  15738. *v = nil
  15739. case *map[uint32]uintptr:
  15740. *v = nil
  15741. case *map[uint32]int:
  15742. *v = nil
  15743. case *map[uint32]int8:
  15744. *v = nil
  15745. case *map[uint32]int16:
  15746. *v = nil
  15747. case *map[uint32]int32:
  15748. *v = nil
  15749. case *map[uint32]int64:
  15750. *v = nil
  15751. case *map[uint32]float32:
  15752. *v = nil
  15753. case *map[uint32]float64:
  15754. *v = nil
  15755. case *map[uint32]bool:
  15756. *v = nil
  15757. case *map[uint64]interface{}:
  15758. *v = nil
  15759. case *map[uint64]string:
  15760. *v = nil
  15761. case *map[uint64]uint:
  15762. *v = nil
  15763. case *map[uint64]uint8:
  15764. *v = nil
  15765. case *map[uint64]uint16:
  15766. *v = nil
  15767. case *map[uint64]uint32:
  15768. *v = nil
  15769. case *map[uint64]uint64:
  15770. *v = nil
  15771. case *map[uint64]uintptr:
  15772. *v = nil
  15773. case *map[uint64]int:
  15774. *v = nil
  15775. case *map[uint64]int8:
  15776. *v = nil
  15777. case *map[uint64]int16:
  15778. *v = nil
  15779. case *map[uint64]int32:
  15780. *v = nil
  15781. case *map[uint64]int64:
  15782. *v = nil
  15783. case *map[uint64]float32:
  15784. *v = nil
  15785. case *map[uint64]float64:
  15786. *v = nil
  15787. case *map[uint64]bool:
  15788. *v = nil
  15789. case *map[uintptr]interface{}:
  15790. *v = nil
  15791. case *map[uintptr]string:
  15792. *v = nil
  15793. case *map[uintptr]uint:
  15794. *v = nil
  15795. case *map[uintptr]uint8:
  15796. *v = nil
  15797. case *map[uintptr]uint16:
  15798. *v = nil
  15799. case *map[uintptr]uint32:
  15800. *v = nil
  15801. case *map[uintptr]uint64:
  15802. *v = nil
  15803. case *map[uintptr]uintptr:
  15804. *v = nil
  15805. case *map[uintptr]int:
  15806. *v = nil
  15807. case *map[uintptr]int8:
  15808. *v = nil
  15809. case *map[uintptr]int16:
  15810. *v = nil
  15811. case *map[uintptr]int32:
  15812. *v = nil
  15813. case *map[uintptr]int64:
  15814. *v = nil
  15815. case *map[uintptr]float32:
  15816. *v = nil
  15817. case *map[uintptr]float64:
  15818. *v = nil
  15819. case *map[uintptr]bool:
  15820. *v = nil
  15821. case *map[int]interface{}:
  15822. *v = nil
  15823. case *map[int]string:
  15824. *v = nil
  15825. case *map[int]uint:
  15826. *v = nil
  15827. case *map[int]uint8:
  15828. *v = nil
  15829. case *map[int]uint16:
  15830. *v = nil
  15831. case *map[int]uint32:
  15832. *v = nil
  15833. case *map[int]uint64:
  15834. *v = nil
  15835. case *map[int]uintptr:
  15836. *v = nil
  15837. case *map[int]int:
  15838. *v = nil
  15839. case *map[int]int8:
  15840. *v = nil
  15841. case *map[int]int16:
  15842. *v = nil
  15843. case *map[int]int32:
  15844. *v = nil
  15845. case *map[int]int64:
  15846. *v = nil
  15847. case *map[int]float32:
  15848. *v = nil
  15849. case *map[int]float64:
  15850. *v = nil
  15851. case *map[int]bool:
  15852. *v = nil
  15853. case *map[int8]interface{}:
  15854. *v = nil
  15855. case *map[int8]string:
  15856. *v = nil
  15857. case *map[int8]uint:
  15858. *v = nil
  15859. case *map[int8]uint8:
  15860. *v = nil
  15861. case *map[int8]uint16:
  15862. *v = nil
  15863. case *map[int8]uint32:
  15864. *v = nil
  15865. case *map[int8]uint64:
  15866. *v = nil
  15867. case *map[int8]uintptr:
  15868. *v = nil
  15869. case *map[int8]int:
  15870. *v = nil
  15871. case *map[int8]int8:
  15872. *v = nil
  15873. case *map[int8]int16:
  15874. *v = nil
  15875. case *map[int8]int32:
  15876. *v = nil
  15877. case *map[int8]int64:
  15878. *v = nil
  15879. case *map[int8]float32:
  15880. *v = nil
  15881. case *map[int8]float64:
  15882. *v = nil
  15883. case *map[int8]bool:
  15884. *v = nil
  15885. case *map[int16]interface{}:
  15886. *v = nil
  15887. case *map[int16]string:
  15888. *v = nil
  15889. case *map[int16]uint:
  15890. *v = nil
  15891. case *map[int16]uint8:
  15892. *v = nil
  15893. case *map[int16]uint16:
  15894. *v = nil
  15895. case *map[int16]uint32:
  15896. *v = nil
  15897. case *map[int16]uint64:
  15898. *v = nil
  15899. case *map[int16]uintptr:
  15900. *v = nil
  15901. case *map[int16]int:
  15902. *v = nil
  15903. case *map[int16]int8:
  15904. *v = nil
  15905. case *map[int16]int16:
  15906. *v = nil
  15907. case *map[int16]int32:
  15908. *v = nil
  15909. case *map[int16]int64:
  15910. *v = nil
  15911. case *map[int16]float32:
  15912. *v = nil
  15913. case *map[int16]float64:
  15914. *v = nil
  15915. case *map[int16]bool:
  15916. *v = nil
  15917. case *map[int32]interface{}:
  15918. *v = nil
  15919. case *map[int32]string:
  15920. *v = nil
  15921. case *map[int32]uint:
  15922. *v = nil
  15923. case *map[int32]uint8:
  15924. *v = nil
  15925. case *map[int32]uint16:
  15926. *v = nil
  15927. case *map[int32]uint32:
  15928. *v = nil
  15929. case *map[int32]uint64:
  15930. *v = nil
  15931. case *map[int32]uintptr:
  15932. *v = nil
  15933. case *map[int32]int:
  15934. *v = nil
  15935. case *map[int32]int8:
  15936. *v = nil
  15937. case *map[int32]int16:
  15938. *v = nil
  15939. case *map[int32]int32:
  15940. *v = nil
  15941. case *map[int32]int64:
  15942. *v = nil
  15943. case *map[int32]float32:
  15944. *v = nil
  15945. case *map[int32]float64:
  15946. *v = nil
  15947. case *map[int32]bool:
  15948. *v = nil
  15949. case *map[int64]interface{}:
  15950. *v = nil
  15951. case *map[int64]string:
  15952. *v = nil
  15953. case *map[int64]uint:
  15954. *v = nil
  15955. case *map[int64]uint8:
  15956. *v = nil
  15957. case *map[int64]uint16:
  15958. *v = nil
  15959. case *map[int64]uint32:
  15960. *v = nil
  15961. case *map[int64]uint64:
  15962. *v = nil
  15963. case *map[int64]uintptr:
  15964. *v = nil
  15965. case *map[int64]int:
  15966. *v = nil
  15967. case *map[int64]int8:
  15968. *v = nil
  15969. case *map[int64]int16:
  15970. *v = nil
  15971. case *map[int64]int32:
  15972. *v = nil
  15973. case *map[int64]int64:
  15974. *v = nil
  15975. case *map[int64]float32:
  15976. *v = nil
  15977. case *map[int64]float64:
  15978. *v = nil
  15979. case *map[int64]bool:
  15980. *v = nil
  15981. case *map[bool]interface{}:
  15982. *v = nil
  15983. case *map[bool]string:
  15984. *v = nil
  15985. case *map[bool]uint:
  15986. *v = nil
  15987. case *map[bool]uint8:
  15988. *v = nil
  15989. case *map[bool]uint16:
  15990. *v = nil
  15991. case *map[bool]uint32:
  15992. *v = nil
  15993. case *map[bool]uint64:
  15994. *v = nil
  15995. case *map[bool]uintptr:
  15996. *v = nil
  15997. case *map[bool]int:
  15998. *v = nil
  15999. case *map[bool]int8:
  16000. *v = nil
  16001. case *map[bool]int16:
  16002. *v = nil
  16003. case *map[bool]int32:
  16004. *v = nil
  16005. case *map[bool]int64:
  16006. *v = nil
  16007. case *map[bool]float32:
  16008. *v = nil
  16009. case *map[bool]float64:
  16010. *v = nil
  16011. case *map[bool]bool:
  16012. *v = nil
  16013. default:
  16014. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  16015. return false
  16016. }
  16017. return true
  16018. }
  16019. // -- -- fast path functions
  16020. func (d *Decoder) fastpathDecSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  16021. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16022. vp := rv2i(rv).(*[]interface{})
  16023. v, changed := fastpathTV.DecSliceIntfV(*vp, !array, d)
  16024. if changed {
  16025. *vp = v
  16026. }
  16027. } else {
  16028. v := rv2i(rv).([]interface{})
  16029. v2, changed := fastpathTV.DecSliceIntfV(v, !array, d)
  16030. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16031. copy(v, v2)
  16032. }
  16033. }
  16034. }
  16035. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, d *Decoder) {
  16036. v, changed := f.DecSliceIntfV(*vp, true, d)
  16037. if changed {
  16038. *vp = v
  16039. }
  16040. }
  16041. func (_ fastpathT) DecSliceIntfV(v []interface{}, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  16042. dd := d.d
  16043. slh, containerLenS := d.decSliceHelperStart()
  16044. if containerLenS == 0 {
  16045. if canChange {
  16046. if v == nil {
  16047. v = []interface{}{}
  16048. } else if len(v) != 0 {
  16049. v = v[:0]
  16050. }
  16051. changed = true
  16052. }
  16053. slh.End()
  16054. return v, changed
  16055. }
  16056. d.depthIncr()
  16057. hasLen := containerLenS > 0
  16058. var xlen int
  16059. if hasLen && canChange {
  16060. if containerLenS > cap(v) {
  16061. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  16062. if xlen <= cap(v) {
  16063. v = v[:uint(xlen)]
  16064. } else {
  16065. v = make([]interface{}, uint(xlen))
  16066. }
  16067. changed = true
  16068. } else if containerLenS != len(v) {
  16069. v = v[:containerLenS]
  16070. changed = true
  16071. }
  16072. }
  16073. var j int
  16074. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16075. if j == 0 && len(v) == 0 && canChange {
  16076. if hasLen {
  16077. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  16078. } else {
  16079. xlen = 8
  16080. }
  16081. v = make([]interface{}, uint(xlen))
  16082. changed = true
  16083. }
  16084. // if indefinite, etc, then expand the slice if necessary
  16085. var decodeIntoBlank bool
  16086. if j >= len(v) {
  16087. if canChange {
  16088. v = append(v, nil)
  16089. changed = true
  16090. } else {
  16091. d.arrayCannotExpand(len(v), j+1)
  16092. decodeIntoBlank = true
  16093. }
  16094. }
  16095. slh.ElemContainerState(j)
  16096. if decodeIntoBlank {
  16097. d.swallow()
  16098. } else if dd.TryDecodeAsNil() {
  16099. v[uint(j)] = nil
  16100. } else {
  16101. d.decode(&v[uint(j)])
  16102. }
  16103. }
  16104. if canChange {
  16105. if j < len(v) {
  16106. v = v[:uint(j)]
  16107. changed = true
  16108. } else if j == 0 && v == nil {
  16109. v = make([]interface{}, 0)
  16110. changed = true
  16111. }
  16112. }
  16113. slh.End()
  16114. d.depthDecr()
  16115. return v, changed
  16116. }
  16117. func (d *Decoder) fastpathDecSliceStringR(f *codecFnInfo, rv reflect.Value) {
  16118. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16119. vp := rv2i(rv).(*[]string)
  16120. v, changed := fastpathTV.DecSliceStringV(*vp, !array, d)
  16121. if changed {
  16122. *vp = v
  16123. }
  16124. } else {
  16125. v := rv2i(rv).([]string)
  16126. v2, changed := fastpathTV.DecSliceStringV(v, !array, d)
  16127. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16128. copy(v, v2)
  16129. }
  16130. }
  16131. }
  16132. func (f fastpathT) DecSliceStringX(vp *[]string, d *Decoder) {
  16133. v, changed := f.DecSliceStringV(*vp, true, d)
  16134. if changed {
  16135. *vp = v
  16136. }
  16137. }
  16138. func (_ fastpathT) DecSliceStringV(v []string, canChange bool, d *Decoder) (_ []string, changed bool) {
  16139. dd := d.d
  16140. slh, containerLenS := d.decSliceHelperStart()
  16141. if containerLenS == 0 {
  16142. if canChange {
  16143. if v == nil {
  16144. v = []string{}
  16145. } else if len(v) != 0 {
  16146. v = v[:0]
  16147. }
  16148. changed = true
  16149. }
  16150. slh.End()
  16151. return v, changed
  16152. }
  16153. d.depthIncr()
  16154. hasLen := containerLenS > 0
  16155. var xlen int
  16156. if hasLen && canChange {
  16157. if containerLenS > cap(v) {
  16158. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  16159. if xlen <= cap(v) {
  16160. v = v[:uint(xlen)]
  16161. } else {
  16162. v = make([]string, uint(xlen))
  16163. }
  16164. changed = true
  16165. } else if containerLenS != len(v) {
  16166. v = v[:containerLenS]
  16167. changed = true
  16168. }
  16169. }
  16170. var j int
  16171. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16172. if j == 0 && len(v) == 0 && canChange {
  16173. if hasLen {
  16174. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  16175. } else {
  16176. xlen = 8
  16177. }
  16178. v = make([]string, uint(xlen))
  16179. changed = true
  16180. }
  16181. // if indefinite, etc, then expand the slice if necessary
  16182. var decodeIntoBlank bool
  16183. if j >= len(v) {
  16184. if canChange {
  16185. v = append(v, "")
  16186. changed = true
  16187. } else {
  16188. d.arrayCannotExpand(len(v), j+1)
  16189. decodeIntoBlank = true
  16190. }
  16191. }
  16192. slh.ElemContainerState(j)
  16193. if decodeIntoBlank {
  16194. d.swallow()
  16195. } else if dd.TryDecodeAsNil() {
  16196. v[uint(j)] = ""
  16197. } else {
  16198. v[uint(j)] = dd.DecodeString()
  16199. }
  16200. }
  16201. if canChange {
  16202. if j < len(v) {
  16203. v = v[:uint(j)]
  16204. changed = true
  16205. } else if j == 0 && v == nil {
  16206. v = make([]string, 0)
  16207. changed = true
  16208. }
  16209. }
  16210. slh.End()
  16211. d.depthDecr()
  16212. return v, changed
  16213. }
  16214. func (d *Decoder) fastpathDecSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  16215. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16216. vp := rv2i(rv).(*[]float32)
  16217. v, changed := fastpathTV.DecSliceFloat32V(*vp, !array, d)
  16218. if changed {
  16219. *vp = v
  16220. }
  16221. } else {
  16222. v := rv2i(rv).([]float32)
  16223. v2, changed := fastpathTV.DecSliceFloat32V(v, !array, d)
  16224. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16225. copy(v, v2)
  16226. }
  16227. }
  16228. }
  16229. func (f fastpathT) DecSliceFloat32X(vp *[]float32, d *Decoder) {
  16230. v, changed := f.DecSliceFloat32V(*vp, true, d)
  16231. if changed {
  16232. *vp = v
  16233. }
  16234. }
  16235. func (_ fastpathT) DecSliceFloat32V(v []float32, canChange bool, d *Decoder) (_ []float32, changed bool) {
  16236. dd := d.d
  16237. slh, containerLenS := d.decSliceHelperStart()
  16238. if containerLenS == 0 {
  16239. if canChange {
  16240. if v == nil {
  16241. v = []float32{}
  16242. } else if len(v) != 0 {
  16243. v = v[:0]
  16244. }
  16245. changed = true
  16246. }
  16247. slh.End()
  16248. return v, changed
  16249. }
  16250. d.depthIncr()
  16251. hasLen := containerLenS > 0
  16252. var xlen int
  16253. if hasLen && canChange {
  16254. if containerLenS > cap(v) {
  16255. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16256. if xlen <= cap(v) {
  16257. v = v[:uint(xlen)]
  16258. } else {
  16259. v = make([]float32, uint(xlen))
  16260. }
  16261. changed = true
  16262. } else if containerLenS != len(v) {
  16263. v = v[:containerLenS]
  16264. changed = true
  16265. }
  16266. }
  16267. var j int
  16268. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16269. if j == 0 && len(v) == 0 && canChange {
  16270. if hasLen {
  16271. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16272. } else {
  16273. xlen = 8
  16274. }
  16275. v = make([]float32, uint(xlen))
  16276. changed = true
  16277. }
  16278. // if indefinite, etc, then expand the slice if necessary
  16279. var decodeIntoBlank bool
  16280. if j >= len(v) {
  16281. if canChange {
  16282. v = append(v, 0)
  16283. changed = true
  16284. } else {
  16285. d.arrayCannotExpand(len(v), j+1)
  16286. decodeIntoBlank = true
  16287. }
  16288. }
  16289. slh.ElemContainerState(j)
  16290. if decodeIntoBlank {
  16291. d.swallow()
  16292. } else if dd.TryDecodeAsNil() {
  16293. v[uint(j)] = 0
  16294. } else {
  16295. v[uint(j)] = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  16296. }
  16297. }
  16298. if canChange {
  16299. if j < len(v) {
  16300. v = v[:uint(j)]
  16301. changed = true
  16302. } else if j == 0 && v == nil {
  16303. v = make([]float32, 0)
  16304. changed = true
  16305. }
  16306. }
  16307. slh.End()
  16308. d.depthDecr()
  16309. return v, changed
  16310. }
  16311. func (d *Decoder) fastpathDecSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  16312. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16313. vp := rv2i(rv).(*[]float64)
  16314. v, changed := fastpathTV.DecSliceFloat64V(*vp, !array, d)
  16315. if changed {
  16316. *vp = v
  16317. }
  16318. } else {
  16319. v := rv2i(rv).([]float64)
  16320. v2, changed := fastpathTV.DecSliceFloat64V(v, !array, d)
  16321. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16322. copy(v, v2)
  16323. }
  16324. }
  16325. }
  16326. func (f fastpathT) DecSliceFloat64X(vp *[]float64, d *Decoder) {
  16327. v, changed := f.DecSliceFloat64V(*vp, true, d)
  16328. if changed {
  16329. *vp = v
  16330. }
  16331. }
  16332. func (_ fastpathT) DecSliceFloat64V(v []float64, canChange bool, d *Decoder) (_ []float64, changed bool) {
  16333. dd := d.d
  16334. slh, containerLenS := d.decSliceHelperStart()
  16335. if containerLenS == 0 {
  16336. if canChange {
  16337. if v == nil {
  16338. v = []float64{}
  16339. } else if len(v) != 0 {
  16340. v = v[:0]
  16341. }
  16342. changed = true
  16343. }
  16344. slh.End()
  16345. return v, changed
  16346. }
  16347. d.depthIncr()
  16348. hasLen := containerLenS > 0
  16349. var xlen int
  16350. if hasLen && canChange {
  16351. if containerLenS > cap(v) {
  16352. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16353. if xlen <= cap(v) {
  16354. v = v[:uint(xlen)]
  16355. } else {
  16356. v = make([]float64, uint(xlen))
  16357. }
  16358. changed = true
  16359. } else if containerLenS != len(v) {
  16360. v = v[:containerLenS]
  16361. changed = true
  16362. }
  16363. }
  16364. var j int
  16365. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16366. if j == 0 && len(v) == 0 && canChange {
  16367. if hasLen {
  16368. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16369. } else {
  16370. xlen = 8
  16371. }
  16372. v = make([]float64, uint(xlen))
  16373. changed = true
  16374. }
  16375. // if indefinite, etc, then expand the slice if necessary
  16376. var decodeIntoBlank bool
  16377. if j >= len(v) {
  16378. if canChange {
  16379. v = append(v, 0)
  16380. changed = true
  16381. } else {
  16382. d.arrayCannotExpand(len(v), j+1)
  16383. decodeIntoBlank = true
  16384. }
  16385. }
  16386. slh.ElemContainerState(j)
  16387. if decodeIntoBlank {
  16388. d.swallow()
  16389. } else if dd.TryDecodeAsNil() {
  16390. v[uint(j)] = 0
  16391. } else {
  16392. v[uint(j)] = dd.DecodeFloat64()
  16393. }
  16394. }
  16395. if canChange {
  16396. if j < len(v) {
  16397. v = v[:uint(j)]
  16398. changed = true
  16399. } else if j == 0 && v == nil {
  16400. v = make([]float64, 0)
  16401. changed = true
  16402. }
  16403. }
  16404. slh.End()
  16405. d.depthDecr()
  16406. return v, changed
  16407. }
  16408. func (d *Decoder) fastpathDecSliceUintR(f *codecFnInfo, rv reflect.Value) {
  16409. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16410. vp := rv2i(rv).(*[]uint)
  16411. v, changed := fastpathTV.DecSliceUintV(*vp, !array, d)
  16412. if changed {
  16413. *vp = v
  16414. }
  16415. } else {
  16416. v := rv2i(rv).([]uint)
  16417. v2, changed := fastpathTV.DecSliceUintV(v, !array, d)
  16418. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16419. copy(v, v2)
  16420. }
  16421. }
  16422. }
  16423. func (f fastpathT) DecSliceUintX(vp *[]uint, d *Decoder) {
  16424. v, changed := f.DecSliceUintV(*vp, true, d)
  16425. if changed {
  16426. *vp = v
  16427. }
  16428. }
  16429. func (_ fastpathT) DecSliceUintV(v []uint, canChange bool, d *Decoder) (_ []uint, changed bool) {
  16430. dd := d.d
  16431. slh, containerLenS := d.decSliceHelperStart()
  16432. if containerLenS == 0 {
  16433. if canChange {
  16434. if v == nil {
  16435. v = []uint{}
  16436. } else if len(v) != 0 {
  16437. v = v[:0]
  16438. }
  16439. changed = true
  16440. }
  16441. slh.End()
  16442. return v, changed
  16443. }
  16444. d.depthIncr()
  16445. hasLen := containerLenS > 0
  16446. var xlen int
  16447. if hasLen && canChange {
  16448. if containerLenS > cap(v) {
  16449. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16450. if xlen <= cap(v) {
  16451. v = v[:uint(xlen)]
  16452. } else {
  16453. v = make([]uint, uint(xlen))
  16454. }
  16455. changed = true
  16456. } else if containerLenS != len(v) {
  16457. v = v[:containerLenS]
  16458. changed = true
  16459. }
  16460. }
  16461. var j int
  16462. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16463. if j == 0 && len(v) == 0 && canChange {
  16464. if hasLen {
  16465. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16466. } else {
  16467. xlen = 8
  16468. }
  16469. v = make([]uint, uint(xlen))
  16470. changed = true
  16471. }
  16472. // if indefinite, etc, then expand the slice if necessary
  16473. var decodeIntoBlank bool
  16474. if j >= len(v) {
  16475. if canChange {
  16476. v = append(v, 0)
  16477. changed = true
  16478. } else {
  16479. d.arrayCannotExpand(len(v), j+1)
  16480. decodeIntoBlank = true
  16481. }
  16482. }
  16483. slh.ElemContainerState(j)
  16484. if decodeIntoBlank {
  16485. d.swallow()
  16486. } else if dd.TryDecodeAsNil() {
  16487. v[uint(j)] = 0
  16488. } else {
  16489. v[uint(j)] = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  16490. }
  16491. }
  16492. if canChange {
  16493. if j < len(v) {
  16494. v = v[:uint(j)]
  16495. changed = true
  16496. } else if j == 0 && v == nil {
  16497. v = make([]uint, 0)
  16498. changed = true
  16499. }
  16500. }
  16501. slh.End()
  16502. d.depthDecr()
  16503. return v, changed
  16504. }
  16505. func (d *Decoder) fastpathDecSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  16506. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16507. vp := rv2i(rv).(*[]uint8)
  16508. v, changed := fastpathTV.DecSliceUint8V(*vp, !array, d)
  16509. if changed {
  16510. *vp = v
  16511. }
  16512. } else {
  16513. v := rv2i(rv).([]uint8)
  16514. v2, changed := fastpathTV.DecSliceUint8V(v, !array, d)
  16515. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16516. copy(v, v2)
  16517. }
  16518. }
  16519. }
  16520. func (f fastpathT) DecSliceUint8X(vp *[]uint8, d *Decoder) {
  16521. v, changed := f.DecSliceUint8V(*vp, true, d)
  16522. if changed {
  16523. *vp = v
  16524. }
  16525. }
  16526. func (_ fastpathT) DecSliceUint8V(v []uint8, canChange bool, d *Decoder) (_ []uint8, changed bool) {
  16527. dd := d.d
  16528. slh, containerLenS := d.decSliceHelperStart()
  16529. if containerLenS == 0 {
  16530. if canChange {
  16531. if v == nil {
  16532. v = []uint8{}
  16533. } else if len(v) != 0 {
  16534. v = v[:0]
  16535. }
  16536. changed = true
  16537. }
  16538. slh.End()
  16539. return v, changed
  16540. }
  16541. d.depthIncr()
  16542. hasLen := containerLenS > 0
  16543. var xlen int
  16544. if hasLen && canChange {
  16545. if containerLenS > cap(v) {
  16546. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16547. if xlen <= cap(v) {
  16548. v = v[:uint(xlen)]
  16549. } else {
  16550. v = make([]uint8, uint(xlen))
  16551. }
  16552. changed = true
  16553. } else if containerLenS != len(v) {
  16554. v = v[:containerLenS]
  16555. changed = true
  16556. }
  16557. }
  16558. var j int
  16559. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16560. if j == 0 && len(v) == 0 && canChange {
  16561. if hasLen {
  16562. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16563. } else {
  16564. xlen = 8
  16565. }
  16566. v = make([]uint8, uint(xlen))
  16567. changed = true
  16568. }
  16569. // if indefinite, etc, then expand the slice if necessary
  16570. var decodeIntoBlank bool
  16571. if j >= len(v) {
  16572. if canChange {
  16573. v = append(v, 0)
  16574. changed = true
  16575. } else {
  16576. d.arrayCannotExpand(len(v), j+1)
  16577. decodeIntoBlank = true
  16578. }
  16579. }
  16580. slh.ElemContainerState(j)
  16581. if decodeIntoBlank {
  16582. d.swallow()
  16583. } else if dd.TryDecodeAsNil() {
  16584. v[uint(j)] = 0
  16585. } else {
  16586. v[uint(j)] = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  16587. }
  16588. }
  16589. if canChange {
  16590. if j < len(v) {
  16591. v = v[:uint(j)]
  16592. changed = true
  16593. } else if j == 0 && v == nil {
  16594. v = make([]uint8, 0)
  16595. changed = true
  16596. }
  16597. }
  16598. slh.End()
  16599. d.depthDecr()
  16600. return v, changed
  16601. }
  16602. func (d *Decoder) fastpathDecSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  16603. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16604. vp := rv2i(rv).(*[]uint16)
  16605. v, changed := fastpathTV.DecSliceUint16V(*vp, !array, d)
  16606. if changed {
  16607. *vp = v
  16608. }
  16609. } else {
  16610. v := rv2i(rv).([]uint16)
  16611. v2, changed := fastpathTV.DecSliceUint16V(v, !array, d)
  16612. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16613. copy(v, v2)
  16614. }
  16615. }
  16616. }
  16617. func (f fastpathT) DecSliceUint16X(vp *[]uint16, d *Decoder) {
  16618. v, changed := f.DecSliceUint16V(*vp, true, d)
  16619. if changed {
  16620. *vp = v
  16621. }
  16622. }
  16623. func (_ fastpathT) DecSliceUint16V(v []uint16, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  16624. dd := d.d
  16625. slh, containerLenS := d.decSliceHelperStart()
  16626. if containerLenS == 0 {
  16627. if canChange {
  16628. if v == nil {
  16629. v = []uint16{}
  16630. } else if len(v) != 0 {
  16631. v = v[:0]
  16632. }
  16633. changed = true
  16634. }
  16635. slh.End()
  16636. return v, changed
  16637. }
  16638. d.depthIncr()
  16639. hasLen := containerLenS > 0
  16640. var xlen int
  16641. if hasLen && canChange {
  16642. if containerLenS > cap(v) {
  16643. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  16644. if xlen <= cap(v) {
  16645. v = v[:uint(xlen)]
  16646. } else {
  16647. v = make([]uint16, uint(xlen))
  16648. }
  16649. changed = true
  16650. } else if containerLenS != len(v) {
  16651. v = v[:containerLenS]
  16652. changed = true
  16653. }
  16654. }
  16655. var j int
  16656. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16657. if j == 0 && len(v) == 0 && canChange {
  16658. if hasLen {
  16659. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  16660. } else {
  16661. xlen = 8
  16662. }
  16663. v = make([]uint16, uint(xlen))
  16664. changed = true
  16665. }
  16666. // if indefinite, etc, then expand the slice if necessary
  16667. var decodeIntoBlank bool
  16668. if j >= len(v) {
  16669. if canChange {
  16670. v = append(v, 0)
  16671. changed = true
  16672. } else {
  16673. d.arrayCannotExpand(len(v), j+1)
  16674. decodeIntoBlank = true
  16675. }
  16676. }
  16677. slh.ElemContainerState(j)
  16678. if decodeIntoBlank {
  16679. d.swallow()
  16680. } else if dd.TryDecodeAsNil() {
  16681. v[uint(j)] = 0
  16682. } else {
  16683. v[uint(j)] = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  16684. }
  16685. }
  16686. if canChange {
  16687. if j < len(v) {
  16688. v = v[:uint(j)]
  16689. changed = true
  16690. } else if j == 0 && v == nil {
  16691. v = make([]uint16, 0)
  16692. changed = true
  16693. }
  16694. }
  16695. slh.End()
  16696. d.depthDecr()
  16697. return v, changed
  16698. }
  16699. func (d *Decoder) fastpathDecSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  16700. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16701. vp := rv2i(rv).(*[]uint32)
  16702. v, changed := fastpathTV.DecSliceUint32V(*vp, !array, d)
  16703. if changed {
  16704. *vp = v
  16705. }
  16706. } else {
  16707. v := rv2i(rv).([]uint32)
  16708. v2, changed := fastpathTV.DecSliceUint32V(v, !array, d)
  16709. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16710. copy(v, v2)
  16711. }
  16712. }
  16713. }
  16714. func (f fastpathT) DecSliceUint32X(vp *[]uint32, d *Decoder) {
  16715. v, changed := f.DecSliceUint32V(*vp, true, d)
  16716. if changed {
  16717. *vp = v
  16718. }
  16719. }
  16720. func (_ fastpathT) DecSliceUint32V(v []uint32, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  16721. dd := d.d
  16722. slh, containerLenS := d.decSliceHelperStart()
  16723. if containerLenS == 0 {
  16724. if canChange {
  16725. if v == nil {
  16726. v = []uint32{}
  16727. } else if len(v) != 0 {
  16728. v = v[:0]
  16729. }
  16730. changed = true
  16731. }
  16732. slh.End()
  16733. return v, changed
  16734. }
  16735. d.depthIncr()
  16736. hasLen := containerLenS > 0
  16737. var xlen int
  16738. if hasLen && canChange {
  16739. if containerLenS > cap(v) {
  16740. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16741. if xlen <= cap(v) {
  16742. v = v[:uint(xlen)]
  16743. } else {
  16744. v = make([]uint32, uint(xlen))
  16745. }
  16746. changed = true
  16747. } else if containerLenS != len(v) {
  16748. v = v[:containerLenS]
  16749. changed = true
  16750. }
  16751. }
  16752. var j int
  16753. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16754. if j == 0 && len(v) == 0 && canChange {
  16755. if hasLen {
  16756. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16757. } else {
  16758. xlen = 8
  16759. }
  16760. v = make([]uint32, uint(xlen))
  16761. changed = true
  16762. }
  16763. // if indefinite, etc, then expand the slice if necessary
  16764. var decodeIntoBlank bool
  16765. if j >= len(v) {
  16766. if canChange {
  16767. v = append(v, 0)
  16768. changed = true
  16769. } else {
  16770. d.arrayCannotExpand(len(v), j+1)
  16771. decodeIntoBlank = true
  16772. }
  16773. }
  16774. slh.ElemContainerState(j)
  16775. if decodeIntoBlank {
  16776. d.swallow()
  16777. } else if dd.TryDecodeAsNil() {
  16778. v[uint(j)] = 0
  16779. } else {
  16780. v[uint(j)] = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  16781. }
  16782. }
  16783. if canChange {
  16784. if j < len(v) {
  16785. v = v[:uint(j)]
  16786. changed = true
  16787. } else if j == 0 && v == nil {
  16788. v = make([]uint32, 0)
  16789. changed = true
  16790. }
  16791. }
  16792. slh.End()
  16793. d.depthDecr()
  16794. return v, changed
  16795. }
  16796. func (d *Decoder) fastpathDecSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  16797. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16798. vp := rv2i(rv).(*[]uint64)
  16799. v, changed := fastpathTV.DecSliceUint64V(*vp, !array, d)
  16800. if changed {
  16801. *vp = v
  16802. }
  16803. } else {
  16804. v := rv2i(rv).([]uint64)
  16805. v2, changed := fastpathTV.DecSliceUint64V(v, !array, d)
  16806. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16807. copy(v, v2)
  16808. }
  16809. }
  16810. }
  16811. func (f fastpathT) DecSliceUint64X(vp *[]uint64, d *Decoder) {
  16812. v, changed := f.DecSliceUint64V(*vp, true, d)
  16813. if changed {
  16814. *vp = v
  16815. }
  16816. }
  16817. func (_ fastpathT) DecSliceUint64V(v []uint64, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  16818. dd := d.d
  16819. slh, containerLenS := d.decSliceHelperStart()
  16820. if containerLenS == 0 {
  16821. if canChange {
  16822. if v == nil {
  16823. v = []uint64{}
  16824. } else if len(v) != 0 {
  16825. v = v[:0]
  16826. }
  16827. changed = true
  16828. }
  16829. slh.End()
  16830. return v, changed
  16831. }
  16832. d.depthIncr()
  16833. hasLen := containerLenS > 0
  16834. var xlen int
  16835. if hasLen && canChange {
  16836. if containerLenS > cap(v) {
  16837. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16838. if xlen <= cap(v) {
  16839. v = v[:uint(xlen)]
  16840. } else {
  16841. v = make([]uint64, uint(xlen))
  16842. }
  16843. changed = true
  16844. } else if containerLenS != len(v) {
  16845. v = v[:containerLenS]
  16846. changed = true
  16847. }
  16848. }
  16849. var j int
  16850. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16851. if j == 0 && len(v) == 0 && canChange {
  16852. if hasLen {
  16853. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16854. } else {
  16855. xlen = 8
  16856. }
  16857. v = make([]uint64, uint(xlen))
  16858. changed = true
  16859. }
  16860. // if indefinite, etc, then expand the slice if necessary
  16861. var decodeIntoBlank bool
  16862. if j >= len(v) {
  16863. if canChange {
  16864. v = append(v, 0)
  16865. changed = true
  16866. } else {
  16867. d.arrayCannotExpand(len(v), j+1)
  16868. decodeIntoBlank = true
  16869. }
  16870. }
  16871. slh.ElemContainerState(j)
  16872. if decodeIntoBlank {
  16873. d.swallow()
  16874. } else if dd.TryDecodeAsNil() {
  16875. v[uint(j)] = 0
  16876. } else {
  16877. v[uint(j)] = dd.DecodeUint64()
  16878. }
  16879. }
  16880. if canChange {
  16881. if j < len(v) {
  16882. v = v[:uint(j)]
  16883. changed = true
  16884. } else if j == 0 && v == nil {
  16885. v = make([]uint64, 0)
  16886. changed = true
  16887. }
  16888. }
  16889. slh.End()
  16890. d.depthDecr()
  16891. return v, changed
  16892. }
  16893. func (d *Decoder) fastpathDecSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  16894. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16895. vp := rv2i(rv).(*[]uintptr)
  16896. v, changed := fastpathTV.DecSliceUintptrV(*vp, !array, d)
  16897. if changed {
  16898. *vp = v
  16899. }
  16900. } else {
  16901. v := rv2i(rv).([]uintptr)
  16902. v2, changed := fastpathTV.DecSliceUintptrV(v, !array, d)
  16903. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16904. copy(v, v2)
  16905. }
  16906. }
  16907. }
  16908. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, d *Decoder) {
  16909. v, changed := f.DecSliceUintptrV(*vp, true, d)
  16910. if changed {
  16911. *vp = v
  16912. }
  16913. }
  16914. func (_ fastpathT) DecSliceUintptrV(v []uintptr, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  16915. dd := d.d
  16916. slh, containerLenS := d.decSliceHelperStart()
  16917. if containerLenS == 0 {
  16918. if canChange {
  16919. if v == nil {
  16920. v = []uintptr{}
  16921. } else if len(v) != 0 {
  16922. v = v[:0]
  16923. }
  16924. changed = true
  16925. }
  16926. slh.End()
  16927. return v, changed
  16928. }
  16929. d.depthIncr()
  16930. hasLen := containerLenS > 0
  16931. var xlen int
  16932. if hasLen && canChange {
  16933. if containerLenS > cap(v) {
  16934. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16935. if xlen <= cap(v) {
  16936. v = v[:uint(xlen)]
  16937. } else {
  16938. v = make([]uintptr, uint(xlen))
  16939. }
  16940. changed = true
  16941. } else if containerLenS != len(v) {
  16942. v = v[:containerLenS]
  16943. changed = true
  16944. }
  16945. }
  16946. var j int
  16947. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16948. if j == 0 && len(v) == 0 && canChange {
  16949. if hasLen {
  16950. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16951. } else {
  16952. xlen = 8
  16953. }
  16954. v = make([]uintptr, uint(xlen))
  16955. changed = true
  16956. }
  16957. // if indefinite, etc, then expand the slice if necessary
  16958. var decodeIntoBlank bool
  16959. if j >= len(v) {
  16960. if canChange {
  16961. v = append(v, 0)
  16962. changed = true
  16963. } else {
  16964. d.arrayCannotExpand(len(v), j+1)
  16965. decodeIntoBlank = true
  16966. }
  16967. }
  16968. slh.ElemContainerState(j)
  16969. if decodeIntoBlank {
  16970. d.swallow()
  16971. } else if dd.TryDecodeAsNil() {
  16972. v[uint(j)] = 0
  16973. } else {
  16974. v[uint(j)] = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  16975. }
  16976. }
  16977. if canChange {
  16978. if j < len(v) {
  16979. v = v[:uint(j)]
  16980. changed = true
  16981. } else if j == 0 && v == nil {
  16982. v = make([]uintptr, 0)
  16983. changed = true
  16984. }
  16985. }
  16986. slh.End()
  16987. d.depthDecr()
  16988. return v, changed
  16989. }
  16990. func (d *Decoder) fastpathDecSliceIntR(f *codecFnInfo, rv reflect.Value) {
  16991. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16992. vp := rv2i(rv).(*[]int)
  16993. v, changed := fastpathTV.DecSliceIntV(*vp, !array, d)
  16994. if changed {
  16995. *vp = v
  16996. }
  16997. } else {
  16998. v := rv2i(rv).([]int)
  16999. v2, changed := fastpathTV.DecSliceIntV(v, !array, d)
  17000. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17001. copy(v, v2)
  17002. }
  17003. }
  17004. }
  17005. func (f fastpathT) DecSliceIntX(vp *[]int, d *Decoder) {
  17006. v, changed := f.DecSliceIntV(*vp, true, d)
  17007. if changed {
  17008. *vp = v
  17009. }
  17010. }
  17011. func (_ fastpathT) DecSliceIntV(v []int, canChange bool, d *Decoder) (_ []int, changed bool) {
  17012. dd := d.d
  17013. slh, containerLenS := d.decSliceHelperStart()
  17014. if containerLenS == 0 {
  17015. if canChange {
  17016. if v == nil {
  17017. v = []int{}
  17018. } else if len(v) != 0 {
  17019. v = v[:0]
  17020. }
  17021. changed = true
  17022. }
  17023. slh.End()
  17024. return v, changed
  17025. }
  17026. d.depthIncr()
  17027. hasLen := containerLenS > 0
  17028. var xlen int
  17029. if hasLen && canChange {
  17030. if containerLenS > cap(v) {
  17031. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17032. if xlen <= cap(v) {
  17033. v = v[:uint(xlen)]
  17034. } else {
  17035. v = make([]int, uint(xlen))
  17036. }
  17037. changed = true
  17038. } else if containerLenS != len(v) {
  17039. v = v[:containerLenS]
  17040. changed = true
  17041. }
  17042. }
  17043. var j int
  17044. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17045. if j == 0 && len(v) == 0 && canChange {
  17046. if hasLen {
  17047. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17048. } else {
  17049. xlen = 8
  17050. }
  17051. v = make([]int, uint(xlen))
  17052. changed = true
  17053. }
  17054. // if indefinite, etc, then expand the slice if necessary
  17055. var decodeIntoBlank bool
  17056. if j >= len(v) {
  17057. if canChange {
  17058. v = append(v, 0)
  17059. changed = true
  17060. } else {
  17061. d.arrayCannotExpand(len(v), j+1)
  17062. decodeIntoBlank = true
  17063. }
  17064. }
  17065. slh.ElemContainerState(j)
  17066. if decodeIntoBlank {
  17067. d.swallow()
  17068. } else if dd.TryDecodeAsNil() {
  17069. v[uint(j)] = 0
  17070. } else {
  17071. v[uint(j)] = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  17072. }
  17073. }
  17074. if canChange {
  17075. if j < len(v) {
  17076. v = v[:uint(j)]
  17077. changed = true
  17078. } else if j == 0 && v == nil {
  17079. v = make([]int, 0)
  17080. changed = true
  17081. }
  17082. }
  17083. slh.End()
  17084. d.depthDecr()
  17085. return v, changed
  17086. }
  17087. func (d *Decoder) fastpathDecSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  17088. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17089. vp := rv2i(rv).(*[]int8)
  17090. v, changed := fastpathTV.DecSliceInt8V(*vp, !array, d)
  17091. if changed {
  17092. *vp = v
  17093. }
  17094. } else {
  17095. v := rv2i(rv).([]int8)
  17096. v2, changed := fastpathTV.DecSliceInt8V(v, !array, d)
  17097. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17098. copy(v, v2)
  17099. }
  17100. }
  17101. }
  17102. func (f fastpathT) DecSliceInt8X(vp *[]int8, d *Decoder) {
  17103. v, changed := f.DecSliceInt8V(*vp, true, d)
  17104. if changed {
  17105. *vp = v
  17106. }
  17107. }
  17108. func (_ fastpathT) DecSliceInt8V(v []int8, canChange bool, d *Decoder) (_ []int8, changed bool) {
  17109. dd := d.d
  17110. slh, containerLenS := d.decSliceHelperStart()
  17111. if containerLenS == 0 {
  17112. if canChange {
  17113. if v == nil {
  17114. v = []int8{}
  17115. } else if len(v) != 0 {
  17116. v = v[:0]
  17117. }
  17118. changed = true
  17119. }
  17120. slh.End()
  17121. return v, changed
  17122. }
  17123. d.depthIncr()
  17124. hasLen := containerLenS > 0
  17125. var xlen int
  17126. if hasLen && canChange {
  17127. if containerLenS > cap(v) {
  17128. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17129. if xlen <= cap(v) {
  17130. v = v[:uint(xlen)]
  17131. } else {
  17132. v = make([]int8, uint(xlen))
  17133. }
  17134. changed = true
  17135. } else if containerLenS != len(v) {
  17136. v = v[:containerLenS]
  17137. changed = true
  17138. }
  17139. }
  17140. var j int
  17141. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17142. if j == 0 && len(v) == 0 && canChange {
  17143. if hasLen {
  17144. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17145. } else {
  17146. xlen = 8
  17147. }
  17148. v = make([]int8, uint(xlen))
  17149. changed = true
  17150. }
  17151. // if indefinite, etc, then expand the slice if necessary
  17152. var decodeIntoBlank bool
  17153. if j >= len(v) {
  17154. if canChange {
  17155. v = append(v, 0)
  17156. changed = true
  17157. } else {
  17158. d.arrayCannotExpand(len(v), j+1)
  17159. decodeIntoBlank = true
  17160. }
  17161. }
  17162. slh.ElemContainerState(j)
  17163. if decodeIntoBlank {
  17164. d.swallow()
  17165. } else if dd.TryDecodeAsNil() {
  17166. v[uint(j)] = 0
  17167. } else {
  17168. v[uint(j)] = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  17169. }
  17170. }
  17171. if canChange {
  17172. if j < len(v) {
  17173. v = v[:uint(j)]
  17174. changed = true
  17175. } else if j == 0 && v == nil {
  17176. v = make([]int8, 0)
  17177. changed = true
  17178. }
  17179. }
  17180. slh.End()
  17181. d.depthDecr()
  17182. return v, changed
  17183. }
  17184. func (d *Decoder) fastpathDecSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  17185. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17186. vp := rv2i(rv).(*[]int16)
  17187. v, changed := fastpathTV.DecSliceInt16V(*vp, !array, d)
  17188. if changed {
  17189. *vp = v
  17190. }
  17191. } else {
  17192. v := rv2i(rv).([]int16)
  17193. v2, changed := fastpathTV.DecSliceInt16V(v, !array, d)
  17194. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17195. copy(v, v2)
  17196. }
  17197. }
  17198. }
  17199. func (f fastpathT) DecSliceInt16X(vp *[]int16, d *Decoder) {
  17200. v, changed := f.DecSliceInt16V(*vp, true, d)
  17201. if changed {
  17202. *vp = v
  17203. }
  17204. }
  17205. func (_ fastpathT) DecSliceInt16V(v []int16, canChange bool, d *Decoder) (_ []int16, changed bool) {
  17206. dd := d.d
  17207. slh, containerLenS := d.decSliceHelperStart()
  17208. if containerLenS == 0 {
  17209. if canChange {
  17210. if v == nil {
  17211. v = []int16{}
  17212. } else if len(v) != 0 {
  17213. v = v[:0]
  17214. }
  17215. changed = true
  17216. }
  17217. slh.End()
  17218. return v, changed
  17219. }
  17220. d.depthIncr()
  17221. hasLen := containerLenS > 0
  17222. var xlen int
  17223. if hasLen && canChange {
  17224. if containerLenS > cap(v) {
  17225. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  17226. if xlen <= cap(v) {
  17227. v = v[:uint(xlen)]
  17228. } else {
  17229. v = make([]int16, uint(xlen))
  17230. }
  17231. changed = true
  17232. } else if containerLenS != len(v) {
  17233. v = v[:containerLenS]
  17234. changed = true
  17235. }
  17236. }
  17237. var j int
  17238. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17239. if j == 0 && len(v) == 0 && canChange {
  17240. if hasLen {
  17241. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  17242. } else {
  17243. xlen = 8
  17244. }
  17245. v = make([]int16, uint(xlen))
  17246. changed = true
  17247. }
  17248. // if indefinite, etc, then expand the slice if necessary
  17249. var decodeIntoBlank bool
  17250. if j >= len(v) {
  17251. if canChange {
  17252. v = append(v, 0)
  17253. changed = true
  17254. } else {
  17255. d.arrayCannotExpand(len(v), j+1)
  17256. decodeIntoBlank = true
  17257. }
  17258. }
  17259. slh.ElemContainerState(j)
  17260. if decodeIntoBlank {
  17261. d.swallow()
  17262. } else if dd.TryDecodeAsNil() {
  17263. v[uint(j)] = 0
  17264. } else {
  17265. v[uint(j)] = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  17266. }
  17267. }
  17268. if canChange {
  17269. if j < len(v) {
  17270. v = v[:uint(j)]
  17271. changed = true
  17272. } else if j == 0 && v == nil {
  17273. v = make([]int16, 0)
  17274. changed = true
  17275. }
  17276. }
  17277. slh.End()
  17278. d.depthDecr()
  17279. return v, changed
  17280. }
  17281. func (d *Decoder) fastpathDecSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  17282. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17283. vp := rv2i(rv).(*[]int32)
  17284. v, changed := fastpathTV.DecSliceInt32V(*vp, !array, d)
  17285. if changed {
  17286. *vp = v
  17287. }
  17288. } else {
  17289. v := rv2i(rv).([]int32)
  17290. v2, changed := fastpathTV.DecSliceInt32V(v, !array, d)
  17291. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17292. copy(v, v2)
  17293. }
  17294. }
  17295. }
  17296. func (f fastpathT) DecSliceInt32X(vp *[]int32, d *Decoder) {
  17297. v, changed := f.DecSliceInt32V(*vp, true, d)
  17298. if changed {
  17299. *vp = v
  17300. }
  17301. }
  17302. func (_ fastpathT) DecSliceInt32V(v []int32, canChange bool, d *Decoder) (_ []int32, changed bool) {
  17303. dd := d.d
  17304. slh, containerLenS := d.decSliceHelperStart()
  17305. if containerLenS == 0 {
  17306. if canChange {
  17307. if v == nil {
  17308. v = []int32{}
  17309. } else if len(v) != 0 {
  17310. v = v[:0]
  17311. }
  17312. changed = true
  17313. }
  17314. slh.End()
  17315. return v, changed
  17316. }
  17317. d.depthIncr()
  17318. hasLen := containerLenS > 0
  17319. var xlen int
  17320. if hasLen && canChange {
  17321. if containerLenS > cap(v) {
  17322. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17323. if xlen <= cap(v) {
  17324. v = v[:uint(xlen)]
  17325. } else {
  17326. v = make([]int32, uint(xlen))
  17327. }
  17328. changed = true
  17329. } else if containerLenS != len(v) {
  17330. v = v[:containerLenS]
  17331. changed = true
  17332. }
  17333. }
  17334. var j int
  17335. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17336. if j == 0 && len(v) == 0 && canChange {
  17337. if hasLen {
  17338. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17339. } else {
  17340. xlen = 8
  17341. }
  17342. v = make([]int32, uint(xlen))
  17343. changed = true
  17344. }
  17345. // if indefinite, etc, then expand the slice if necessary
  17346. var decodeIntoBlank bool
  17347. if j >= len(v) {
  17348. if canChange {
  17349. v = append(v, 0)
  17350. changed = true
  17351. } else {
  17352. d.arrayCannotExpand(len(v), j+1)
  17353. decodeIntoBlank = true
  17354. }
  17355. }
  17356. slh.ElemContainerState(j)
  17357. if decodeIntoBlank {
  17358. d.swallow()
  17359. } else if dd.TryDecodeAsNil() {
  17360. v[uint(j)] = 0
  17361. } else {
  17362. v[uint(j)] = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  17363. }
  17364. }
  17365. if canChange {
  17366. if j < len(v) {
  17367. v = v[:uint(j)]
  17368. changed = true
  17369. } else if j == 0 && v == nil {
  17370. v = make([]int32, 0)
  17371. changed = true
  17372. }
  17373. }
  17374. slh.End()
  17375. d.depthDecr()
  17376. return v, changed
  17377. }
  17378. func (d *Decoder) fastpathDecSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  17379. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17380. vp := rv2i(rv).(*[]int64)
  17381. v, changed := fastpathTV.DecSliceInt64V(*vp, !array, d)
  17382. if changed {
  17383. *vp = v
  17384. }
  17385. } else {
  17386. v := rv2i(rv).([]int64)
  17387. v2, changed := fastpathTV.DecSliceInt64V(v, !array, d)
  17388. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17389. copy(v, v2)
  17390. }
  17391. }
  17392. }
  17393. func (f fastpathT) DecSliceInt64X(vp *[]int64, d *Decoder) {
  17394. v, changed := f.DecSliceInt64V(*vp, true, d)
  17395. if changed {
  17396. *vp = v
  17397. }
  17398. }
  17399. func (_ fastpathT) DecSliceInt64V(v []int64, canChange bool, d *Decoder) (_ []int64, changed bool) {
  17400. dd := d.d
  17401. slh, containerLenS := d.decSliceHelperStart()
  17402. if containerLenS == 0 {
  17403. if canChange {
  17404. if v == nil {
  17405. v = []int64{}
  17406. } else if len(v) != 0 {
  17407. v = v[:0]
  17408. }
  17409. changed = true
  17410. }
  17411. slh.End()
  17412. return v, changed
  17413. }
  17414. d.depthIncr()
  17415. hasLen := containerLenS > 0
  17416. var xlen int
  17417. if hasLen && canChange {
  17418. if containerLenS > cap(v) {
  17419. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17420. if xlen <= cap(v) {
  17421. v = v[:uint(xlen)]
  17422. } else {
  17423. v = make([]int64, uint(xlen))
  17424. }
  17425. changed = true
  17426. } else if containerLenS != len(v) {
  17427. v = v[:containerLenS]
  17428. changed = true
  17429. }
  17430. }
  17431. var j int
  17432. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17433. if j == 0 && len(v) == 0 && canChange {
  17434. if hasLen {
  17435. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17436. } else {
  17437. xlen = 8
  17438. }
  17439. v = make([]int64, uint(xlen))
  17440. changed = true
  17441. }
  17442. // if indefinite, etc, then expand the slice if necessary
  17443. var decodeIntoBlank bool
  17444. if j >= len(v) {
  17445. if canChange {
  17446. v = append(v, 0)
  17447. changed = true
  17448. } else {
  17449. d.arrayCannotExpand(len(v), j+1)
  17450. decodeIntoBlank = true
  17451. }
  17452. }
  17453. slh.ElemContainerState(j)
  17454. if decodeIntoBlank {
  17455. d.swallow()
  17456. } else if dd.TryDecodeAsNil() {
  17457. v[uint(j)] = 0
  17458. } else {
  17459. v[uint(j)] = dd.DecodeInt64()
  17460. }
  17461. }
  17462. if canChange {
  17463. if j < len(v) {
  17464. v = v[:uint(j)]
  17465. changed = true
  17466. } else if j == 0 && v == nil {
  17467. v = make([]int64, 0)
  17468. changed = true
  17469. }
  17470. }
  17471. slh.End()
  17472. d.depthDecr()
  17473. return v, changed
  17474. }
  17475. func (d *Decoder) fastpathDecSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  17476. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17477. vp := rv2i(rv).(*[]bool)
  17478. v, changed := fastpathTV.DecSliceBoolV(*vp, !array, d)
  17479. if changed {
  17480. *vp = v
  17481. }
  17482. } else {
  17483. v := rv2i(rv).([]bool)
  17484. v2, changed := fastpathTV.DecSliceBoolV(v, !array, d)
  17485. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17486. copy(v, v2)
  17487. }
  17488. }
  17489. }
  17490. func (f fastpathT) DecSliceBoolX(vp *[]bool, d *Decoder) {
  17491. v, changed := f.DecSliceBoolV(*vp, true, d)
  17492. if changed {
  17493. *vp = v
  17494. }
  17495. }
  17496. func (_ fastpathT) DecSliceBoolV(v []bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  17497. dd := d.d
  17498. slh, containerLenS := d.decSliceHelperStart()
  17499. if containerLenS == 0 {
  17500. if canChange {
  17501. if v == nil {
  17502. v = []bool{}
  17503. } else if len(v) != 0 {
  17504. v = v[:0]
  17505. }
  17506. changed = true
  17507. }
  17508. slh.End()
  17509. return v, changed
  17510. }
  17511. d.depthIncr()
  17512. hasLen := containerLenS > 0
  17513. var xlen int
  17514. if hasLen && canChange {
  17515. if containerLenS > cap(v) {
  17516. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17517. if xlen <= cap(v) {
  17518. v = v[:uint(xlen)]
  17519. } else {
  17520. v = make([]bool, uint(xlen))
  17521. }
  17522. changed = true
  17523. } else if containerLenS != len(v) {
  17524. v = v[:containerLenS]
  17525. changed = true
  17526. }
  17527. }
  17528. var j int
  17529. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17530. if j == 0 && len(v) == 0 && canChange {
  17531. if hasLen {
  17532. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17533. } else {
  17534. xlen = 8
  17535. }
  17536. v = make([]bool, uint(xlen))
  17537. changed = true
  17538. }
  17539. // if indefinite, etc, then expand the slice if necessary
  17540. var decodeIntoBlank bool
  17541. if j >= len(v) {
  17542. if canChange {
  17543. v = append(v, false)
  17544. changed = true
  17545. } else {
  17546. d.arrayCannotExpand(len(v), j+1)
  17547. decodeIntoBlank = true
  17548. }
  17549. }
  17550. slh.ElemContainerState(j)
  17551. if decodeIntoBlank {
  17552. d.swallow()
  17553. } else if dd.TryDecodeAsNil() {
  17554. v[uint(j)] = false
  17555. } else {
  17556. v[uint(j)] = dd.DecodeBool()
  17557. }
  17558. }
  17559. if canChange {
  17560. if j < len(v) {
  17561. v = v[:uint(j)]
  17562. changed = true
  17563. } else if j == 0 && v == nil {
  17564. v = make([]bool, 0)
  17565. changed = true
  17566. }
  17567. }
  17568. slh.End()
  17569. d.depthDecr()
  17570. return v, changed
  17571. }
  17572. func (d *Decoder) fastpathDecMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  17573. if rv.Kind() == reflect.Ptr {
  17574. vp := rv2i(rv).(*map[interface{}]interface{})
  17575. v, changed := fastpathTV.DecMapIntfIntfV(*vp, true, d)
  17576. if changed {
  17577. *vp = v
  17578. }
  17579. } else {
  17580. fastpathTV.DecMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), false, d)
  17581. }
  17582. }
  17583. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, d *Decoder) {
  17584. v, changed := f.DecMapIntfIntfV(*vp, true, d)
  17585. if changed {
  17586. *vp = v
  17587. }
  17588. }
  17589. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, canChange bool,
  17590. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  17591. dd, esep := d.d, d.hh.hasElemSeparators()
  17592. containerLen := dd.ReadMapStart()
  17593. if canChange && v == nil {
  17594. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  17595. v = make(map[interface{}]interface{}, xlen)
  17596. changed = true
  17597. }
  17598. if containerLen == 0 {
  17599. dd.ReadMapEnd()
  17600. return v, changed
  17601. }
  17602. d.depthIncr()
  17603. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  17604. var mk interface{}
  17605. var mv interface{}
  17606. hasLen := containerLen > 0
  17607. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17608. if esep {
  17609. dd.ReadMapElemKey()
  17610. }
  17611. mk = nil
  17612. d.decode(&mk)
  17613. if bv, bok := mk.([]byte); bok {
  17614. mk = d.string(bv)
  17615. }
  17616. if esep {
  17617. dd.ReadMapElemValue()
  17618. }
  17619. if dd.TryDecodeAsNil() {
  17620. if v == nil {
  17621. } else if d.h.DeleteOnNilMapValue {
  17622. delete(v, mk)
  17623. } else {
  17624. v[mk] = nil
  17625. }
  17626. continue
  17627. }
  17628. if mapGet {
  17629. mv = v[mk]
  17630. } else {
  17631. mv = nil
  17632. }
  17633. d.decode(&mv)
  17634. if v != nil {
  17635. v[mk] = mv
  17636. }
  17637. }
  17638. dd.ReadMapEnd()
  17639. d.depthDecr()
  17640. return v, changed
  17641. }
  17642. func (d *Decoder) fastpathDecMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  17643. if rv.Kind() == reflect.Ptr {
  17644. vp := rv2i(rv).(*map[interface{}]string)
  17645. v, changed := fastpathTV.DecMapIntfStringV(*vp, true, d)
  17646. if changed {
  17647. *vp = v
  17648. }
  17649. } else {
  17650. fastpathTV.DecMapIntfStringV(rv2i(rv).(map[interface{}]string), false, d)
  17651. }
  17652. }
  17653. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, d *Decoder) {
  17654. v, changed := f.DecMapIntfStringV(*vp, true, d)
  17655. if changed {
  17656. *vp = v
  17657. }
  17658. }
  17659. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, canChange bool,
  17660. d *Decoder) (_ map[interface{}]string, changed bool) {
  17661. dd, esep := d.d, d.hh.hasElemSeparators()
  17662. containerLen := dd.ReadMapStart()
  17663. if canChange && v == nil {
  17664. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  17665. v = make(map[interface{}]string, xlen)
  17666. changed = true
  17667. }
  17668. if containerLen == 0 {
  17669. dd.ReadMapEnd()
  17670. return v, changed
  17671. }
  17672. d.depthIncr()
  17673. var mk interface{}
  17674. var mv string
  17675. hasLen := containerLen > 0
  17676. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17677. if esep {
  17678. dd.ReadMapElemKey()
  17679. }
  17680. mk = nil
  17681. d.decode(&mk)
  17682. if bv, bok := mk.([]byte); bok {
  17683. mk = d.string(bv)
  17684. }
  17685. if esep {
  17686. dd.ReadMapElemValue()
  17687. }
  17688. if dd.TryDecodeAsNil() {
  17689. if v == nil {
  17690. } else if d.h.DeleteOnNilMapValue {
  17691. delete(v, mk)
  17692. } else {
  17693. v[mk] = ""
  17694. }
  17695. continue
  17696. }
  17697. mv = dd.DecodeString()
  17698. if v != nil {
  17699. v[mk] = mv
  17700. }
  17701. }
  17702. dd.ReadMapEnd()
  17703. d.depthDecr()
  17704. return v, changed
  17705. }
  17706. func (d *Decoder) fastpathDecMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  17707. if rv.Kind() == reflect.Ptr {
  17708. vp := rv2i(rv).(*map[interface{}]uint)
  17709. v, changed := fastpathTV.DecMapIntfUintV(*vp, true, d)
  17710. if changed {
  17711. *vp = v
  17712. }
  17713. } else {
  17714. fastpathTV.DecMapIntfUintV(rv2i(rv).(map[interface{}]uint), false, d)
  17715. }
  17716. }
  17717. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, d *Decoder) {
  17718. v, changed := f.DecMapIntfUintV(*vp, true, d)
  17719. if changed {
  17720. *vp = v
  17721. }
  17722. }
  17723. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, canChange bool,
  17724. d *Decoder) (_ map[interface{}]uint, changed bool) {
  17725. dd, esep := d.d, d.hh.hasElemSeparators()
  17726. containerLen := dd.ReadMapStart()
  17727. if canChange && v == nil {
  17728. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17729. v = make(map[interface{}]uint, xlen)
  17730. changed = true
  17731. }
  17732. if containerLen == 0 {
  17733. dd.ReadMapEnd()
  17734. return v, changed
  17735. }
  17736. d.depthIncr()
  17737. var mk interface{}
  17738. var mv uint
  17739. hasLen := containerLen > 0
  17740. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17741. if esep {
  17742. dd.ReadMapElemKey()
  17743. }
  17744. mk = nil
  17745. d.decode(&mk)
  17746. if bv, bok := mk.([]byte); bok {
  17747. mk = d.string(bv)
  17748. }
  17749. if esep {
  17750. dd.ReadMapElemValue()
  17751. }
  17752. if dd.TryDecodeAsNil() {
  17753. if v == nil {
  17754. } else if d.h.DeleteOnNilMapValue {
  17755. delete(v, mk)
  17756. } else {
  17757. v[mk] = 0
  17758. }
  17759. continue
  17760. }
  17761. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  17762. if v != nil {
  17763. v[mk] = mv
  17764. }
  17765. }
  17766. dd.ReadMapEnd()
  17767. d.depthDecr()
  17768. return v, changed
  17769. }
  17770. func (d *Decoder) fastpathDecMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  17771. if rv.Kind() == reflect.Ptr {
  17772. vp := rv2i(rv).(*map[interface{}]uint8)
  17773. v, changed := fastpathTV.DecMapIntfUint8V(*vp, true, d)
  17774. if changed {
  17775. *vp = v
  17776. }
  17777. } else {
  17778. fastpathTV.DecMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), false, d)
  17779. }
  17780. }
  17781. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, d *Decoder) {
  17782. v, changed := f.DecMapIntfUint8V(*vp, true, d)
  17783. if changed {
  17784. *vp = v
  17785. }
  17786. }
  17787. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, canChange bool,
  17788. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  17789. dd, esep := d.d, d.hh.hasElemSeparators()
  17790. containerLen := dd.ReadMapStart()
  17791. if canChange && v == nil {
  17792. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  17793. v = make(map[interface{}]uint8, xlen)
  17794. changed = true
  17795. }
  17796. if containerLen == 0 {
  17797. dd.ReadMapEnd()
  17798. return v, changed
  17799. }
  17800. d.depthIncr()
  17801. var mk interface{}
  17802. var mv uint8
  17803. hasLen := containerLen > 0
  17804. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17805. if esep {
  17806. dd.ReadMapElemKey()
  17807. }
  17808. mk = nil
  17809. d.decode(&mk)
  17810. if bv, bok := mk.([]byte); bok {
  17811. mk = d.string(bv)
  17812. }
  17813. if esep {
  17814. dd.ReadMapElemValue()
  17815. }
  17816. if dd.TryDecodeAsNil() {
  17817. if v == nil {
  17818. } else if d.h.DeleteOnNilMapValue {
  17819. delete(v, mk)
  17820. } else {
  17821. v[mk] = 0
  17822. }
  17823. continue
  17824. }
  17825. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  17826. if v != nil {
  17827. v[mk] = mv
  17828. }
  17829. }
  17830. dd.ReadMapEnd()
  17831. d.depthDecr()
  17832. return v, changed
  17833. }
  17834. func (d *Decoder) fastpathDecMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  17835. if rv.Kind() == reflect.Ptr {
  17836. vp := rv2i(rv).(*map[interface{}]uint16)
  17837. v, changed := fastpathTV.DecMapIntfUint16V(*vp, true, d)
  17838. if changed {
  17839. *vp = v
  17840. }
  17841. } else {
  17842. fastpathTV.DecMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), false, d)
  17843. }
  17844. }
  17845. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, d *Decoder) {
  17846. v, changed := f.DecMapIntfUint16V(*vp, true, d)
  17847. if changed {
  17848. *vp = v
  17849. }
  17850. }
  17851. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, canChange bool,
  17852. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  17853. dd, esep := d.d, d.hh.hasElemSeparators()
  17854. containerLen := dd.ReadMapStart()
  17855. if canChange && v == nil {
  17856. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  17857. v = make(map[interface{}]uint16, xlen)
  17858. changed = true
  17859. }
  17860. if containerLen == 0 {
  17861. dd.ReadMapEnd()
  17862. return v, changed
  17863. }
  17864. d.depthIncr()
  17865. var mk interface{}
  17866. var mv uint16
  17867. hasLen := containerLen > 0
  17868. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17869. if esep {
  17870. dd.ReadMapElemKey()
  17871. }
  17872. mk = nil
  17873. d.decode(&mk)
  17874. if bv, bok := mk.([]byte); bok {
  17875. mk = d.string(bv)
  17876. }
  17877. if esep {
  17878. dd.ReadMapElemValue()
  17879. }
  17880. if dd.TryDecodeAsNil() {
  17881. if v == nil {
  17882. } else if d.h.DeleteOnNilMapValue {
  17883. delete(v, mk)
  17884. } else {
  17885. v[mk] = 0
  17886. }
  17887. continue
  17888. }
  17889. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  17890. if v != nil {
  17891. v[mk] = mv
  17892. }
  17893. }
  17894. dd.ReadMapEnd()
  17895. d.depthDecr()
  17896. return v, changed
  17897. }
  17898. func (d *Decoder) fastpathDecMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  17899. if rv.Kind() == reflect.Ptr {
  17900. vp := rv2i(rv).(*map[interface{}]uint32)
  17901. v, changed := fastpathTV.DecMapIntfUint32V(*vp, true, d)
  17902. if changed {
  17903. *vp = v
  17904. }
  17905. } else {
  17906. fastpathTV.DecMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), false, d)
  17907. }
  17908. }
  17909. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, d *Decoder) {
  17910. v, changed := f.DecMapIntfUint32V(*vp, true, d)
  17911. if changed {
  17912. *vp = v
  17913. }
  17914. }
  17915. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, canChange bool,
  17916. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  17917. dd, esep := d.d, d.hh.hasElemSeparators()
  17918. containerLen := dd.ReadMapStart()
  17919. if canChange && v == nil {
  17920. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17921. v = make(map[interface{}]uint32, xlen)
  17922. changed = true
  17923. }
  17924. if containerLen == 0 {
  17925. dd.ReadMapEnd()
  17926. return v, changed
  17927. }
  17928. d.depthIncr()
  17929. var mk interface{}
  17930. var mv uint32
  17931. hasLen := containerLen > 0
  17932. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17933. if esep {
  17934. dd.ReadMapElemKey()
  17935. }
  17936. mk = nil
  17937. d.decode(&mk)
  17938. if bv, bok := mk.([]byte); bok {
  17939. mk = d.string(bv)
  17940. }
  17941. if esep {
  17942. dd.ReadMapElemValue()
  17943. }
  17944. if dd.TryDecodeAsNil() {
  17945. if v == nil {
  17946. } else if d.h.DeleteOnNilMapValue {
  17947. delete(v, mk)
  17948. } else {
  17949. v[mk] = 0
  17950. }
  17951. continue
  17952. }
  17953. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  17954. if v != nil {
  17955. v[mk] = mv
  17956. }
  17957. }
  17958. dd.ReadMapEnd()
  17959. d.depthDecr()
  17960. return v, changed
  17961. }
  17962. func (d *Decoder) fastpathDecMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  17963. if rv.Kind() == reflect.Ptr {
  17964. vp := rv2i(rv).(*map[interface{}]uint64)
  17965. v, changed := fastpathTV.DecMapIntfUint64V(*vp, true, d)
  17966. if changed {
  17967. *vp = v
  17968. }
  17969. } else {
  17970. fastpathTV.DecMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), false, d)
  17971. }
  17972. }
  17973. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, d *Decoder) {
  17974. v, changed := f.DecMapIntfUint64V(*vp, true, d)
  17975. if changed {
  17976. *vp = v
  17977. }
  17978. }
  17979. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, canChange bool,
  17980. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  17981. dd, esep := d.d, d.hh.hasElemSeparators()
  17982. containerLen := dd.ReadMapStart()
  17983. if canChange && v == nil {
  17984. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17985. v = make(map[interface{}]uint64, xlen)
  17986. changed = true
  17987. }
  17988. if containerLen == 0 {
  17989. dd.ReadMapEnd()
  17990. return v, changed
  17991. }
  17992. d.depthIncr()
  17993. var mk interface{}
  17994. var mv uint64
  17995. hasLen := containerLen > 0
  17996. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17997. if esep {
  17998. dd.ReadMapElemKey()
  17999. }
  18000. mk = nil
  18001. d.decode(&mk)
  18002. if bv, bok := mk.([]byte); bok {
  18003. mk = d.string(bv)
  18004. }
  18005. if esep {
  18006. dd.ReadMapElemValue()
  18007. }
  18008. if dd.TryDecodeAsNil() {
  18009. if v == nil {
  18010. } else if d.h.DeleteOnNilMapValue {
  18011. delete(v, mk)
  18012. } else {
  18013. v[mk] = 0
  18014. }
  18015. continue
  18016. }
  18017. mv = dd.DecodeUint64()
  18018. if v != nil {
  18019. v[mk] = mv
  18020. }
  18021. }
  18022. dd.ReadMapEnd()
  18023. d.depthDecr()
  18024. return v, changed
  18025. }
  18026. func (d *Decoder) fastpathDecMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  18027. if rv.Kind() == reflect.Ptr {
  18028. vp := rv2i(rv).(*map[interface{}]uintptr)
  18029. v, changed := fastpathTV.DecMapIntfUintptrV(*vp, true, d)
  18030. if changed {
  18031. *vp = v
  18032. }
  18033. } else {
  18034. fastpathTV.DecMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), false, d)
  18035. }
  18036. }
  18037. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, d *Decoder) {
  18038. v, changed := f.DecMapIntfUintptrV(*vp, true, d)
  18039. if changed {
  18040. *vp = v
  18041. }
  18042. }
  18043. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, canChange bool,
  18044. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  18045. dd, esep := d.d, d.hh.hasElemSeparators()
  18046. containerLen := dd.ReadMapStart()
  18047. if canChange && v == nil {
  18048. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18049. v = make(map[interface{}]uintptr, xlen)
  18050. changed = true
  18051. }
  18052. if containerLen == 0 {
  18053. dd.ReadMapEnd()
  18054. return v, changed
  18055. }
  18056. d.depthIncr()
  18057. var mk interface{}
  18058. var mv uintptr
  18059. hasLen := containerLen > 0
  18060. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18061. if esep {
  18062. dd.ReadMapElemKey()
  18063. }
  18064. mk = nil
  18065. d.decode(&mk)
  18066. if bv, bok := mk.([]byte); bok {
  18067. mk = d.string(bv)
  18068. }
  18069. if esep {
  18070. dd.ReadMapElemValue()
  18071. }
  18072. if dd.TryDecodeAsNil() {
  18073. if v == nil {
  18074. } else if d.h.DeleteOnNilMapValue {
  18075. delete(v, mk)
  18076. } else {
  18077. v[mk] = 0
  18078. }
  18079. continue
  18080. }
  18081. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  18082. if v != nil {
  18083. v[mk] = mv
  18084. }
  18085. }
  18086. dd.ReadMapEnd()
  18087. d.depthDecr()
  18088. return v, changed
  18089. }
  18090. func (d *Decoder) fastpathDecMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  18091. if rv.Kind() == reflect.Ptr {
  18092. vp := rv2i(rv).(*map[interface{}]int)
  18093. v, changed := fastpathTV.DecMapIntfIntV(*vp, true, d)
  18094. if changed {
  18095. *vp = v
  18096. }
  18097. } else {
  18098. fastpathTV.DecMapIntfIntV(rv2i(rv).(map[interface{}]int), false, d)
  18099. }
  18100. }
  18101. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, d *Decoder) {
  18102. v, changed := f.DecMapIntfIntV(*vp, true, d)
  18103. if changed {
  18104. *vp = v
  18105. }
  18106. }
  18107. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, canChange bool,
  18108. d *Decoder) (_ map[interface{}]int, changed bool) {
  18109. dd, esep := d.d, d.hh.hasElemSeparators()
  18110. containerLen := dd.ReadMapStart()
  18111. if canChange && v == nil {
  18112. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18113. v = make(map[interface{}]int, xlen)
  18114. changed = true
  18115. }
  18116. if containerLen == 0 {
  18117. dd.ReadMapEnd()
  18118. return v, changed
  18119. }
  18120. d.depthIncr()
  18121. var mk interface{}
  18122. var mv int
  18123. hasLen := containerLen > 0
  18124. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18125. if esep {
  18126. dd.ReadMapElemKey()
  18127. }
  18128. mk = nil
  18129. d.decode(&mk)
  18130. if bv, bok := mk.([]byte); bok {
  18131. mk = d.string(bv)
  18132. }
  18133. if esep {
  18134. dd.ReadMapElemValue()
  18135. }
  18136. if dd.TryDecodeAsNil() {
  18137. if v == nil {
  18138. } else if d.h.DeleteOnNilMapValue {
  18139. delete(v, mk)
  18140. } else {
  18141. v[mk] = 0
  18142. }
  18143. continue
  18144. }
  18145. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  18146. if v != nil {
  18147. v[mk] = mv
  18148. }
  18149. }
  18150. dd.ReadMapEnd()
  18151. d.depthDecr()
  18152. return v, changed
  18153. }
  18154. func (d *Decoder) fastpathDecMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  18155. if rv.Kind() == reflect.Ptr {
  18156. vp := rv2i(rv).(*map[interface{}]int8)
  18157. v, changed := fastpathTV.DecMapIntfInt8V(*vp, true, d)
  18158. if changed {
  18159. *vp = v
  18160. }
  18161. } else {
  18162. fastpathTV.DecMapIntfInt8V(rv2i(rv).(map[interface{}]int8), false, d)
  18163. }
  18164. }
  18165. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, d *Decoder) {
  18166. v, changed := f.DecMapIntfInt8V(*vp, true, d)
  18167. if changed {
  18168. *vp = v
  18169. }
  18170. }
  18171. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, canChange bool,
  18172. d *Decoder) (_ map[interface{}]int8, changed bool) {
  18173. dd, esep := d.d, d.hh.hasElemSeparators()
  18174. containerLen := dd.ReadMapStart()
  18175. if canChange && v == nil {
  18176. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18177. v = make(map[interface{}]int8, xlen)
  18178. changed = true
  18179. }
  18180. if containerLen == 0 {
  18181. dd.ReadMapEnd()
  18182. return v, changed
  18183. }
  18184. d.depthIncr()
  18185. var mk interface{}
  18186. var mv int8
  18187. hasLen := containerLen > 0
  18188. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18189. if esep {
  18190. dd.ReadMapElemKey()
  18191. }
  18192. mk = nil
  18193. d.decode(&mk)
  18194. if bv, bok := mk.([]byte); bok {
  18195. mk = d.string(bv)
  18196. }
  18197. if esep {
  18198. dd.ReadMapElemValue()
  18199. }
  18200. if dd.TryDecodeAsNil() {
  18201. if v == nil {
  18202. } else if d.h.DeleteOnNilMapValue {
  18203. delete(v, mk)
  18204. } else {
  18205. v[mk] = 0
  18206. }
  18207. continue
  18208. }
  18209. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  18210. if v != nil {
  18211. v[mk] = mv
  18212. }
  18213. }
  18214. dd.ReadMapEnd()
  18215. d.depthDecr()
  18216. return v, changed
  18217. }
  18218. func (d *Decoder) fastpathDecMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  18219. if rv.Kind() == reflect.Ptr {
  18220. vp := rv2i(rv).(*map[interface{}]int16)
  18221. v, changed := fastpathTV.DecMapIntfInt16V(*vp, true, d)
  18222. if changed {
  18223. *vp = v
  18224. }
  18225. } else {
  18226. fastpathTV.DecMapIntfInt16V(rv2i(rv).(map[interface{}]int16), false, d)
  18227. }
  18228. }
  18229. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, d *Decoder) {
  18230. v, changed := f.DecMapIntfInt16V(*vp, true, d)
  18231. if changed {
  18232. *vp = v
  18233. }
  18234. }
  18235. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, canChange bool,
  18236. d *Decoder) (_ map[interface{}]int16, changed bool) {
  18237. dd, esep := d.d, d.hh.hasElemSeparators()
  18238. containerLen := dd.ReadMapStart()
  18239. if canChange && v == nil {
  18240. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  18241. v = make(map[interface{}]int16, xlen)
  18242. changed = true
  18243. }
  18244. if containerLen == 0 {
  18245. dd.ReadMapEnd()
  18246. return v, changed
  18247. }
  18248. d.depthIncr()
  18249. var mk interface{}
  18250. var mv int16
  18251. hasLen := containerLen > 0
  18252. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18253. if esep {
  18254. dd.ReadMapElemKey()
  18255. }
  18256. mk = nil
  18257. d.decode(&mk)
  18258. if bv, bok := mk.([]byte); bok {
  18259. mk = d.string(bv)
  18260. }
  18261. if esep {
  18262. dd.ReadMapElemValue()
  18263. }
  18264. if dd.TryDecodeAsNil() {
  18265. if v == nil {
  18266. } else if d.h.DeleteOnNilMapValue {
  18267. delete(v, mk)
  18268. } else {
  18269. v[mk] = 0
  18270. }
  18271. continue
  18272. }
  18273. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  18274. if v != nil {
  18275. v[mk] = mv
  18276. }
  18277. }
  18278. dd.ReadMapEnd()
  18279. d.depthDecr()
  18280. return v, changed
  18281. }
  18282. func (d *Decoder) fastpathDecMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  18283. if rv.Kind() == reflect.Ptr {
  18284. vp := rv2i(rv).(*map[interface{}]int32)
  18285. v, changed := fastpathTV.DecMapIntfInt32V(*vp, true, d)
  18286. if changed {
  18287. *vp = v
  18288. }
  18289. } else {
  18290. fastpathTV.DecMapIntfInt32V(rv2i(rv).(map[interface{}]int32), false, d)
  18291. }
  18292. }
  18293. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, d *Decoder) {
  18294. v, changed := f.DecMapIntfInt32V(*vp, true, d)
  18295. if changed {
  18296. *vp = v
  18297. }
  18298. }
  18299. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, canChange bool,
  18300. d *Decoder) (_ map[interface{}]int32, changed bool) {
  18301. dd, esep := d.d, d.hh.hasElemSeparators()
  18302. containerLen := dd.ReadMapStart()
  18303. if canChange && v == nil {
  18304. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18305. v = make(map[interface{}]int32, xlen)
  18306. changed = true
  18307. }
  18308. if containerLen == 0 {
  18309. dd.ReadMapEnd()
  18310. return v, changed
  18311. }
  18312. d.depthIncr()
  18313. var mk interface{}
  18314. var mv int32
  18315. hasLen := containerLen > 0
  18316. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18317. if esep {
  18318. dd.ReadMapElemKey()
  18319. }
  18320. mk = nil
  18321. d.decode(&mk)
  18322. if bv, bok := mk.([]byte); bok {
  18323. mk = d.string(bv)
  18324. }
  18325. if esep {
  18326. dd.ReadMapElemValue()
  18327. }
  18328. if dd.TryDecodeAsNil() {
  18329. if v == nil {
  18330. } else if d.h.DeleteOnNilMapValue {
  18331. delete(v, mk)
  18332. } else {
  18333. v[mk] = 0
  18334. }
  18335. continue
  18336. }
  18337. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  18338. if v != nil {
  18339. v[mk] = mv
  18340. }
  18341. }
  18342. dd.ReadMapEnd()
  18343. d.depthDecr()
  18344. return v, changed
  18345. }
  18346. func (d *Decoder) fastpathDecMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  18347. if rv.Kind() == reflect.Ptr {
  18348. vp := rv2i(rv).(*map[interface{}]int64)
  18349. v, changed := fastpathTV.DecMapIntfInt64V(*vp, true, d)
  18350. if changed {
  18351. *vp = v
  18352. }
  18353. } else {
  18354. fastpathTV.DecMapIntfInt64V(rv2i(rv).(map[interface{}]int64), false, d)
  18355. }
  18356. }
  18357. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, d *Decoder) {
  18358. v, changed := f.DecMapIntfInt64V(*vp, true, d)
  18359. if changed {
  18360. *vp = v
  18361. }
  18362. }
  18363. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, canChange bool,
  18364. d *Decoder) (_ map[interface{}]int64, changed bool) {
  18365. dd, esep := d.d, d.hh.hasElemSeparators()
  18366. containerLen := dd.ReadMapStart()
  18367. if canChange && v == nil {
  18368. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18369. v = make(map[interface{}]int64, xlen)
  18370. changed = true
  18371. }
  18372. if containerLen == 0 {
  18373. dd.ReadMapEnd()
  18374. return v, changed
  18375. }
  18376. d.depthIncr()
  18377. var mk interface{}
  18378. var mv int64
  18379. hasLen := containerLen > 0
  18380. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18381. if esep {
  18382. dd.ReadMapElemKey()
  18383. }
  18384. mk = nil
  18385. d.decode(&mk)
  18386. if bv, bok := mk.([]byte); bok {
  18387. mk = d.string(bv)
  18388. }
  18389. if esep {
  18390. dd.ReadMapElemValue()
  18391. }
  18392. if dd.TryDecodeAsNil() {
  18393. if v == nil {
  18394. } else if d.h.DeleteOnNilMapValue {
  18395. delete(v, mk)
  18396. } else {
  18397. v[mk] = 0
  18398. }
  18399. continue
  18400. }
  18401. mv = dd.DecodeInt64()
  18402. if v != nil {
  18403. v[mk] = mv
  18404. }
  18405. }
  18406. dd.ReadMapEnd()
  18407. d.depthDecr()
  18408. return v, changed
  18409. }
  18410. func (d *Decoder) fastpathDecMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  18411. if rv.Kind() == reflect.Ptr {
  18412. vp := rv2i(rv).(*map[interface{}]float32)
  18413. v, changed := fastpathTV.DecMapIntfFloat32V(*vp, true, d)
  18414. if changed {
  18415. *vp = v
  18416. }
  18417. } else {
  18418. fastpathTV.DecMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), false, d)
  18419. }
  18420. }
  18421. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, d *Decoder) {
  18422. v, changed := f.DecMapIntfFloat32V(*vp, true, d)
  18423. if changed {
  18424. *vp = v
  18425. }
  18426. }
  18427. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, canChange bool,
  18428. d *Decoder) (_ map[interface{}]float32, changed bool) {
  18429. dd, esep := d.d, d.hh.hasElemSeparators()
  18430. containerLen := dd.ReadMapStart()
  18431. if canChange && v == nil {
  18432. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18433. v = make(map[interface{}]float32, xlen)
  18434. changed = true
  18435. }
  18436. if containerLen == 0 {
  18437. dd.ReadMapEnd()
  18438. return v, changed
  18439. }
  18440. d.depthIncr()
  18441. var mk interface{}
  18442. var mv float32
  18443. hasLen := containerLen > 0
  18444. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18445. if esep {
  18446. dd.ReadMapElemKey()
  18447. }
  18448. mk = nil
  18449. d.decode(&mk)
  18450. if bv, bok := mk.([]byte); bok {
  18451. mk = d.string(bv)
  18452. }
  18453. if esep {
  18454. dd.ReadMapElemValue()
  18455. }
  18456. if dd.TryDecodeAsNil() {
  18457. if v == nil {
  18458. } else if d.h.DeleteOnNilMapValue {
  18459. delete(v, mk)
  18460. } else {
  18461. v[mk] = 0
  18462. }
  18463. continue
  18464. }
  18465. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  18466. if v != nil {
  18467. v[mk] = mv
  18468. }
  18469. }
  18470. dd.ReadMapEnd()
  18471. d.depthDecr()
  18472. return v, changed
  18473. }
  18474. func (d *Decoder) fastpathDecMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  18475. if rv.Kind() == reflect.Ptr {
  18476. vp := rv2i(rv).(*map[interface{}]float64)
  18477. v, changed := fastpathTV.DecMapIntfFloat64V(*vp, true, d)
  18478. if changed {
  18479. *vp = v
  18480. }
  18481. } else {
  18482. fastpathTV.DecMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), false, d)
  18483. }
  18484. }
  18485. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, d *Decoder) {
  18486. v, changed := f.DecMapIntfFloat64V(*vp, true, d)
  18487. if changed {
  18488. *vp = v
  18489. }
  18490. }
  18491. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, canChange bool,
  18492. d *Decoder) (_ map[interface{}]float64, changed bool) {
  18493. dd, esep := d.d, d.hh.hasElemSeparators()
  18494. containerLen := dd.ReadMapStart()
  18495. if canChange && v == nil {
  18496. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18497. v = make(map[interface{}]float64, xlen)
  18498. changed = true
  18499. }
  18500. if containerLen == 0 {
  18501. dd.ReadMapEnd()
  18502. return v, changed
  18503. }
  18504. d.depthIncr()
  18505. var mk interface{}
  18506. var mv float64
  18507. hasLen := containerLen > 0
  18508. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18509. if esep {
  18510. dd.ReadMapElemKey()
  18511. }
  18512. mk = nil
  18513. d.decode(&mk)
  18514. if bv, bok := mk.([]byte); bok {
  18515. mk = d.string(bv)
  18516. }
  18517. if esep {
  18518. dd.ReadMapElemValue()
  18519. }
  18520. if dd.TryDecodeAsNil() {
  18521. if v == nil {
  18522. } else if d.h.DeleteOnNilMapValue {
  18523. delete(v, mk)
  18524. } else {
  18525. v[mk] = 0
  18526. }
  18527. continue
  18528. }
  18529. mv = dd.DecodeFloat64()
  18530. if v != nil {
  18531. v[mk] = mv
  18532. }
  18533. }
  18534. dd.ReadMapEnd()
  18535. d.depthDecr()
  18536. return v, changed
  18537. }
  18538. func (d *Decoder) fastpathDecMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  18539. if rv.Kind() == reflect.Ptr {
  18540. vp := rv2i(rv).(*map[interface{}]bool)
  18541. v, changed := fastpathTV.DecMapIntfBoolV(*vp, true, d)
  18542. if changed {
  18543. *vp = v
  18544. }
  18545. } else {
  18546. fastpathTV.DecMapIntfBoolV(rv2i(rv).(map[interface{}]bool), false, d)
  18547. }
  18548. }
  18549. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, d *Decoder) {
  18550. v, changed := f.DecMapIntfBoolV(*vp, true, d)
  18551. if changed {
  18552. *vp = v
  18553. }
  18554. }
  18555. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, canChange bool,
  18556. d *Decoder) (_ map[interface{}]bool, changed bool) {
  18557. dd, esep := d.d, d.hh.hasElemSeparators()
  18558. containerLen := dd.ReadMapStart()
  18559. if canChange && v == nil {
  18560. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18561. v = make(map[interface{}]bool, xlen)
  18562. changed = true
  18563. }
  18564. if containerLen == 0 {
  18565. dd.ReadMapEnd()
  18566. return v, changed
  18567. }
  18568. d.depthIncr()
  18569. var mk interface{}
  18570. var mv bool
  18571. hasLen := containerLen > 0
  18572. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18573. if esep {
  18574. dd.ReadMapElemKey()
  18575. }
  18576. mk = nil
  18577. d.decode(&mk)
  18578. if bv, bok := mk.([]byte); bok {
  18579. mk = d.string(bv)
  18580. }
  18581. if esep {
  18582. dd.ReadMapElemValue()
  18583. }
  18584. if dd.TryDecodeAsNil() {
  18585. if v == nil {
  18586. } else if d.h.DeleteOnNilMapValue {
  18587. delete(v, mk)
  18588. } else {
  18589. v[mk] = false
  18590. }
  18591. continue
  18592. }
  18593. mv = dd.DecodeBool()
  18594. if v != nil {
  18595. v[mk] = mv
  18596. }
  18597. }
  18598. dd.ReadMapEnd()
  18599. d.depthDecr()
  18600. return v, changed
  18601. }
  18602. func (d *Decoder) fastpathDecMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  18603. if rv.Kind() == reflect.Ptr {
  18604. vp := rv2i(rv).(*map[string]interface{})
  18605. v, changed := fastpathTV.DecMapStringIntfV(*vp, true, d)
  18606. if changed {
  18607. *vp = v
  18608. }
  18609. } else {
  18610. fastpathTV.DecMapStringIntfV(rv2i(rv).(map[string]interface{}), false, d)
  18611. }
  18612. }
  18613. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, d *Decoder) {
  18614. v, changed := f.DecMapStringIntfV(*vp, true, d)
  18615. if changed {
  18616. *vp = v
  18617. }
  18618. }
  18619. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, canChange bool,
  18620. d *Decoder) (_ map[string]interface{}, changed bool) {
  18621. dd, esep := d.d, d.hh.hasElemSeparators()
  18622. containerLen := dd.ReadMapStart()
  18623. if canChange && v == nil {
  18624. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18625. v = make(map[string]interface{}, xlen)
  18626. changed = true
  18627. }
  18628. if containerLen == 0 {
  18629. dd.ReadMapEnd()
  18630. return v, changed
  18631. }
  18632. d.depthIncr()
  18633. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  18634. var mk string
  18635. var mv interface{}
  18636. hasLen := containerLen > 0
  18637. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18638. if esep {
  18639. dd.ReadMapElemKey()
  18640. }
  18641. mk = dd.DecodeString()
  18642. if esep {
  18643. dd.ReadMapElemValue()
  18644. }
  18645. if dd.TryDecodeAsNil() {
  18646. if v == nil {
  18647. } else if d.h.DeleteOnNilMapValue {
  18648. delete(v, mk)
  18649. } else {
  18650. v[mk] = nil
  18651. }
  18652. continue
  18653. }
  18654. if mapGet {
  18655. mv = v[mk]
  18656. } else {
  18657. mv = nil
  18658. }
  18659. d.decode(&mv)
  18660. if v != nil {
  18661. v[mk] = mv
  18662. }
  18663. }
  18664. dd.ReadMapEnd()
  18665. d.depthDecr()
  18666. return v, changed
  18667. }
  18668. func (d *Decoder) fastpathDecMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  18669. if rv.Kind() == reflect.Ptr {
  18670. vp := rv2i(rv).(*map[string]string)
  18671. v, changed := fastpathTV.DecMapStringStringV(*vp, true, d)
  18672. if changed {
  18673. *vp = v
  18674. }
  18675. } else {
  18676. fastpathTV.DecMapStringStringV(rv2i(rv).(map[string]string), false, d)
  18677. }
  18678. }
  18679. func (f fastpathT) DecMapStringStringX(vp *map[string]string, d *Decoder) {
  18680. v, changed := f.DecMapStringStringV(*vp, true, d)
  18681. if changed {
  18682. *vp = v
  18683. }
  18684. }
  18685. func (_ fastpathT) DecMapStringStringV(v map[string]string, canChange bool,
  18686. d *Decoder) (_ map[string]string, changed bool) {
  18687. dd, esep := d.d, d.hh.hasElemSeparators()
  18688. containerLen := dd.ReadMapStart()
  18689. if canChange && v == nil {
  18690. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18691. v = make(map[string]string, xlen)
  18692. changed = true
  18693. }
  18694. if containerLen == 0 {
  18695. dd.ReadMapEnd()
  18696. return v, changed
  18697. }
  18698. d.depthIncr()
  18699. var mk string
  18700. var mv string
  18701. hasLen := containerLen > 0
  18702. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18703. if esep {
  18704. dd.ReadMapElemKey()
  18705. }
  18706. mk = dd.DecodeString()
  18707. if esep {
  18708. dd.ReadMapElemValue()
  18709. }
  18710. if dd.TryDecodeAsNil() {
  18711. if v == nil {
  18712. } else if d.h.DeleteOnNilMapValue {
  18713. delete(v, mk)
  18714. } else {
  18715. v[mk] = ""
  18716. }
  18717. continue
  18718. }
  18719. mv = dd.DecodeString()
  18720. if v != nil {
  18721. v[mk] = mv
  18722. }
  18723. }
  18724. dd.ReadMapEnd()
  18725. d.depthDecr()
  18726. return v, changed
  18727. }
  18728. func (d *Decoder) fastpathDecMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  18729. if rv.Kind() == reflect.Ptr {
  18730. vp := rv2i(rv).(*map[string]uint)
  18731. v, changed := fastpathTV.DecMapStringUintV(*vp, true, d)
  18732. if changed {
  18733. *vp = v
  18734. }
  18735. } else {
  18736. fastpathTV.DecMapStringUintV(rv2i(rv).(map[string]uint), false, d)
  18737. }
  18738. }
  18739. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, d *Decoder) {
  18740. v, changed := f.DecMapStringUintV(*vp, true, d)
  18741. if changed {
  18742. *vp = v
  18743. }
  18744. }
  18745. func (_ fastpathT) DecMapStringUintV(v map[string]uint, canChange bool,
  18746. d *Decoder) (_ map[string]uint, changed bool) {
  18747. dd, esep := d.d, d.hh.hasElemSeparators()
  18748. containerLen := dd.ReadMapStart()
  18749. if canChange && v == nil {
  18750. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18751. v = make(map[string]uint, xlen)
  18752. changed = true
  18753. }
  18754. if containerLen == 0 {
  18755. dd.ReadMapEnd()
  18756. return v, changed
  18757. }
  18758. d.depthIncr()
  18759. var mk string
  18760. var mv uint
  18761. hasLen := containerLen > 0
  18762. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18763. if esep {
  18764. dd.ReadMapElemKey()
  18765. }
  18766. mk = dd.DecodeString()
  18767. if esep {
  18768. dd.ReadMapElemValue()
  18769. }
  18770. if dd.TryDecodeAsNil() {
  18771. if v == nil {
  18772. } else if d.h.DeleteOnNilMapValue {
  18773. delete(v, mk)
  18774. } else {
  18775. v[mk] = 0
  18776. }
  18777. continue
  18778. }
  18779. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  18780. if v != nil {
  18781. v[mk] = mv
  18782. }
  18783. }
  18784. dd.ReadMapEnd()
  18785. d.depthDecr()
  18786. return v, changed
  18787. }
  18788. func (d *Decoder) fastpathDecMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  18789. if rv.Kind() == reflect.Ptr {
  18790. vp := rv2i(rv).(*map[string]uint8)
  18791. v, changed := fastpathTV.DecMapStringUint8V(*vp, true, d)
  18792. if changed {
  18793. *vp = v
  18794. }
  18795. } else {
  18796. fastpathTV.DecMapStringUint8V(rv2i(rv).(map[string]uint8), false, d)
  18797. }
  18798. }
  18799. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, d *Decoder) {
  18800. v, changed := f.DecMapStringUint8V(*vp, true, d)
  18801. if changed {
  18802. *vp = v
  18803. }
  18804. }
  18805. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, canChange bool,
  18806. d *Decoder) (_ map[string]uint8, changed bool) {
  18807. dd, esep := d.d, d.hh.hasElemSeparators()
  18808. containerLen := dd.ReadMapStart()
  18809. if canChange && v == nil {
  18810. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18811. v = make(map[string]uint8, xlen)
  18812. changed = true
  18813. }
  18814. if containerLen == 0 {
  18815. dd.ReadMapEnd()
  18816. return v, changed
  18817. }
  18818. d.depthIncr()
  18819. var mk string
  18820. var mv uint8
  18821. hasLen := containerLen > 0
  18822. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18823. if esep {
  18824. dd.ReadMapElemKey()
  18825. }
  18826. mk = dd.DecodeString()
  18827. if esep {
  18828. dd.ReadMapElemValue()
  18829. }
  18830. if dd.TryDecodeAsNil() {
  18831. if v == nil {
  18832. } else if d.h.DeleteOnNilMapValue {
  18833. delete(v, mk)
  18834. } else {
  18835. v[mk] = 0
  18836. }
  18837. continue
  18838. }
  18839. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  18840. if v != nil {
  18841. v[mk] = mv
  18842. }
  18843. }
  18844. dd.ReadMapEnd()
  18845. d.depthDecr()
  18846. return v, changed
  18847. }
  18848. func (d *Decoder) fastpathDecMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  18849. if rv.Kind() == reflect.Ptr {
  18850. vp := rv2i(rv).(*map[string]uint16)
  18851. v, changed := fastpathTV.DecMapStringUint16V(*vp, true, d)
  18852. if changed {
  18853. *vp = v
  18854. }
  18855. } else {
  18856. fastpathTV.DecMapStringUint16V(rv2i(rv).(map[string]uint16), false, d)
  18857. }
  18858. }
  18859. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, d *Decoder) {
  18860. v, changed := f.DecMapStringUint16V(*vp, true, d)
  18861. if changed {
  18862. *vp = v
  18863. }
  18864. }
  18865. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, canChange bool,
  18866. d *Decoder) (_ map[string]uint16, changed bool) {
  18867. dd, esep := d.d, d.hh.hasElemSeparators()
  18868. containerLen := dd.ReadMapStart()
  18869. if canChange && v == nil {
  18870. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  18871. v = make(map[string]uint16, xlen)
  18872. changed = true
  18873. }
  18874. if containerLen == 0 {
  18875. dd.ReadMapEnd()
  18876. return v, changed
  18877. }
  18878. d.depthIncr()
  18879. var mk string
  18880. var mv uint16
  18881. hasLen := containerLen > 0
  18882. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18883. if esep {
  18884. dd.ReadMapElemKey()
  18885. }
  18886. mk = dd.DecodeString()
  18887. if esep {
  18888. dd.ReadMapElemValue()
  18889. }
  18890. if dd.TryDecodeAsNil() {
  18891. if v == nil {
  18892. } else if d.h.DeleteOnNilMapValue {
  18893. delete(v, mk)
  18894. } else {
  18895. v[mk] = 0
  18896. }
  18897. continue
  18898. }
  18899. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  18900. if v != nil {
  18901. v[mk] = mv
  18902. }
  18903. }
  18904. dd.ReadMapEnd()
  18905. d.depthDecr()
  18906. return v, changed
  18907. }
  18908. func (d *Decoder) fastpathDecMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  18909. if rv.Kind() == reflect.Ptr {
  18910. vp := rv2i(rv).(*map[string]uint32)
  18911. v, changed := fastpathTV.DecMapStringUint32V(*vp, true, d)
  18912. if changed {
  18913. *vp = v
  18914. }
  18915. } else {
  18916. fastpathTV.DecMapStringUint32V(rv2i(rv).(map[string]uint32), false, d)
  18917. }
  18918. }
  18919. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, d *Decoder) {
  18920. v, changed := f.DecMapStringUint32V(*vp, true, d)
  18921. if changed {
  18922. *vp = v
  18923. }
  18924. }
  18925. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, canChange bool,
  18926. d *Decoder) (_ map[string]uint32, changed bool) {
  18927. dd, esep := d.d, d.hh.hasElemSeparators()
  18928. containerLen := dd.ReadMapStart()
  18929. if canChange && v == nil {
  18930. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18931. v = make(map[string]uint32, xlen)
  18932. changed = true
  18933. }
  18934. if containerLen == 0 {
  18935. dd.ReadMapEnd()
  18936. return v, changed
  18937. }
  18938. d.depthIncr()
  18939. var mk string
  18940. var mv uint32
  18941. hasLen := containerLen > 0
  18942. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18943. if esep {
  18944. dd.ReadMapElemKey()
  18945. }
  18946. mk = dd.DecodeString()
  18947. if esep {
  18948. dd.ReadMapElemValue()
  18949. }
  18950. if dd.TryDecodeAsNil() {
  18951. if v == nil {
  18952. } else if d.h.DeleteOnNilMapValue {
  18953. delete(v, mk)
  18954. } else {
  18955. v[mk] = 0
  18956. }
  18957. continue
  18958. }
  18959. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  18960. if v != nil {
  18961. v[mk] = mv
  18962. }
  18963. }
  18964. dd.ReadMapEnd()
  18965. d.depthDecr()
  18966. return v, changed
  18967. }
  18968. func (d *Decoder) fastpathDecMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  18969. if rv.Kind() == reflect.Ptr {
  18970. vp := rv2i(rv).(*map[string]uint64)
  18971. v, changed := fastpathTV.DecMapStringUint64V(*vp, true, d)
  18972. if changed {
  18973. *vp = v
  18974. }
  18975. } else {
  18976. fastpathTV.DecMapStringUint64V(rv2i(rv).(map[string]uint64), false, d)
  18977. }
  18978. }
  18979. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, d *Decoder) {
  18980. v, changed := f.DecMapStringUint64V(*vp, true, d)
  18981. if changed {
  18982. *vp = v
  18983. }
  18984. }
  18985. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, canChange bool,
  18986. d *Decoder) (_ map[string]uint64, changed bool) {
  18987. dd, esep := d.d, d.hh.hasElemSeparators()
  18988. containerLen := dd.ReadMapStart()
  18989. if canChange && v == nil {
  18990. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18991. v = make(map[string]uint64, xlen)
  18992. changed = true
  18993. }
  18994. if containerLen == 0 {
  18995. dd.ReadMapEnd()
  18996. return v, changed
  18997. }
  18998. d.depthIncr()
  18999. var mk string
  19000. var mv uint64
  19001. hasLen := containerLen > 0
  19002. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19003. if esep {
  19004. dd.ReadMapElemKey()
  19005. }
  19006. mk = dd.DecodeString()
  19007. if esep {
  19008. dd.ReadMapElemValue()
  19009. }
  19010. if dd.TryDecodeAsNil() {
  19011. if v == nil {
  19012. } else if d.h.DeleteOnNilMapValue {
  19013. delete(v, mk)
  19014. } else {
  19015. v[mk] = 0
  19016. }
  19017. continue
  19018. }
  19019. mv = dd.DecodeUint64()
  19020. if v != nil {
  19021. v[mk] = mv
  19022. }
  19023. }
  19024. dd.ReadMapEnd()
  19025. d.depthDecr()
  19026. return v, changed
  19027. }
  19028. func (d *Decoder) fastpathDecMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  19029. if rv.Kind() == reflect.Ptr {
  19030. vp := rv2i(rv).(*map[string]uintptr)
  19031. v, changed := fastpathTV.DecMapStringUintptrV(*vp, true, d)
  19032. if changed {
  19033. *vp = v
  19034. }
  19035. } else {
  19036. fastpathTV.DecMapStringUintptrV(rv2i(rv).(map[string]uintptr), false, d)
  19037. }
  19038. }
  19039. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, d *Decoder) {
  19040. v, changed := f.DecMapStringUintptrV(*vp, true, d)
  19041. if changed {
  19042. *vp = v
  19043. }
  19044. }
  19045. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, canChange bool,
  19046. d *Decoder) (_ map[string]uintptr, changed bool) {
  19047. dd, esep := d.d, d.hh.hasElemSeparators()
  19048. containerLen := dd.ReadMapStart()
  19049. if canChange && v == nil {
  19050. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19051. v = make(map[string]uintptr, xlen)
  19052. changed = true
  19053. }
  19054. if containerLen == 0 {
  19055. dd.ReadMapEnd()
  19056. return v, changed
  19057. }
  19058. d.depthIncr()
  19059. var mk string
  19060. var mv uintptr
  19061. hasLen := containerLen > 0
  19062. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19063. if esep {
  19064. dd.ReadMapElemKey()
  19065. }
  19066. mk = dd.DecodeString()
  19067. if esep {
  19068. dd.ReadMapElemValue()
  19069. }
  19070. if dd.TryDecodeAsNil() {
  19071. if v == nil {
  19072. } else if d.h.DeleteOnNilMapValue {
  19073. delete(v, mk)
  19074. } else {
  19075. v[mk] = 0
  19076. }
  19077. continue
  19078. }
  19079. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  19080. if v != nil {
  19081. v[mk] = mv
  19082. }
  19083. }
  19084. dd.ReadMapEnd()
  19085. d.depthDecr()
  19086. return v, changed
  19087. }
  19088. func (d *Decoder) fastpathDecMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  19089. if rv.Kind() == reflect.Ptr {
  19090. vp := rv2i(rv).(*map[string]int)
  19091. v, changed := fastpathTV.DecMapStringIntV(*vp, true, d)
  19092. if changed {
  19093. *vp = v
  19094. }
  19095. } else {
  19096. fastpathTV.DecMapStringIntV(rv2i(rv).(map[string]int), false, d)
  19097. }
  19098. }
  19099. func (f fastpathT) DecMapStringIntX(vp *map[string]int, d *Decoder) {
  19100. v, changed := f.DecMapStringIntV(*vp, true, d)
  19101. if changed {
  19102. *vp = v
  19103. }
  19104. }
  19105. func (_ fastpathT) DecMapStringIntV(v map[string]int, canChange bool,
  19106. d *Decoder) (_ map[string]int, changed bool) {
  19107. dd, esep := d.d, d.hh.hasElemSeparators()
  19108. containerLen := dd.ReadMapStart()
  19109. if canChange && v == nil {
  19110. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19111. v = make(map[string]int, xlen)
  19112. changed = true
  19113. }
  19114. if containerLen == 0 {
  19115. dd.ReadMapEnd()
  19116. return v, changed
  19117. }
  19118. d.depthIncr()
  19119. var mk string
  19120. var mv int
  19121. hasLen := containerLen > 0
  19122. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19123. if esep {
  19124. dd.ReadMapElemKey()
  19125. }
  19126. mk = dd.DecodeString()
  19127. if esep {
  19128. dd.ReadMapElemValue()
  19129. }
  19130. if dd.TryDecodeAsNil() {
  19131. if v == nil {
  19132. } else if d.h.DeleteOnNilMapValue {
  19133. delete(v, mk)
  19134. } else {
  19135. v[mk] = 0
  19136. }
  19137. continue
  19138. }
  19139. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  19140. if v != nil {
  19141. v[mk] = mv
  19142. }
  19143. }
  19144. dd.ReadMapEnd()
  19145. d.depthDecr()
  19146. return v, changed
  19147. }
  19148. func (d *Decoder) fastpathDecMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  19149. if rv.Kind() == reflect.Ptr {
  19150. vp := rv2i(rv).(*map[string]int8)
  19151. v, changed := fastpathTV.DecMapStringInt8V(*vp, true, d)
  19152. if changed {
  19153. *vp = v
  19154. }
  19155. } else {
  19156. fastpathTV.DecMapStringInt8V(rv2i(rv).(map[string]int8), false, d)
  19157. }
  19158. }
  19159. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, d *Decoder) {
  19160. v, changed := f.DecMapStringInt8V(*vp, true, d)
  19161. if changed {
  19162. *vp = v
  19163. }
  19164. }
  19165. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, canChange bool,
  19166. d *Decoder) (_ map[string]int8, changed bool) {
  19167. dd, esep := d.d, d.hh.hasElemSeparators()
  19168. containerLen := dd.ReadMapStart()
  19169. if canChange && v == nil {
  19170. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19171. v = make(map[string]int8, xlen)
  19172. changed = true
  19173. }
  19174. if containerLen == 0 {
  19175. dd.ReadMapEnd()
  19176. return v, changed
  19177. }
  19178. d.depthIncr()
  19179. var mk string
  19180. var mv int8
  19181. hasLen := containerLen > 0
  19182. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19183. if esep {
  19184. dd.ReadMapElemKey()
  19185. }
  19186. mk = dd.DecodeString()
  19187. if esep {
  19188. dd.ReadMapElemValue()
  19189. }
  19190. if dd.TryDecodeAsNil() {
  19191. if v == nil {
  19192. } else if d.h.DeleteOnNilMapValue {
  19193. delete(v, mk)
  19194. } else {
  19195. v[mk] = 0
  19196. }
  19197. continue
  19198. }
  19199. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  19200. if v != nil {
  19201. v[mk] = mv
  19202. }
  19203. }
  19204. dd.ReadMapEnd()
  19205. d.depthDecr()
  19206. return v, changed
  19207. }
  19208. func (d *Decoder) fastpathDecMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  19209. if rv.Kind() == reflect.Ptr {
  19210. vp := rv2i(rv).(*map[string]int16)
  19211. v, changed := fastpathTV.DecMapStringInt16V(*vp, true, d)
  19212. if changed {
  19213. *vp = v
  19214. }
  19215. } else {
  19216. fastpathTV.DecMapStringInt16V(rv2i(rv).(map[string]int16), false, d)
  19217. }
  19218. }
  19219. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, d *Decoder) {
  19220. v, changed := f.DecMapStringInt16V(*vp, true, d)
  19221. if changed {
  19222. *vp = v
  19223. }
  19224. }
  19225. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, canChange bool,
  19226. d *Decoder) (_ map[string]int16, changed bool) {
  19227. dd, esep := d.d, d.hh.hasElemSeparators()
  19228. containerLen := dd.ReadMapStart()
  19229. if canChange && v == nil {
  19230. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19231. v = make(map[string]int16, xlen)
  19232. changed = true
  19233. }
  19234. if containerLen == 0 {
  19235. dd.ReadMapEnd()
  19236. return v, changed
  19237. }
  19238. d.depthIncr()
  19239. var mk string
  19240. var mv int16
  19241. hasLen := containerLen > 0
  19242. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19243. if esep {
  19244. dd.ReadMapElemKey()
  19245. }
  19246. mk = dd.DecodeString()
  19247. if esep {
  19248. dd.ReadMapElemValue()
  19249. }
  19250. if dd.TryDecodeAsNil() {
  19251. if v == nil {
  19252. } else if d.h.DeleteOnNilMapValue {
  19253. delete(v, mk)
  19254. } else {
  19255. v[mk] = 0
  19256. }
  19257. continue
  19258. }
  19259. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  19260. if v != nil {
  19261. v[mk] = mv
  19262. }
  19263. }
  19264. dd.ReadMapEnd()
  19265. d.depthDecr()
  19266. return v, changed
  19267. }
  19268. func (d *Decoder) fastpathDecMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  19269. if rv.Kind() == reflect.Ptr {
  19270. vp := rv2i(rv).(*map[string]int32)
  19271. v, changed := fastpathTV.DecMapStringInt32V(*vp, true, d)
  19272. if changed {
  19273. *vp = v
  19274. }
  19275. } else {
  19276. fastpathTV.DecMapStringInt32V(rv2i(rv).(map[string]int32), false, d)
  19277. }
  19278. }
  19279. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, d *Decoder) {
  19280. v, changed := f.DecMapStringInt32V(*vp, true, d)
  19281. if changed {
  19282. *vp = v
  19283. }
  19284. }
  19285. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, canChange bool,
  19286. d *Decoder) (_ map[string]int32, changed bool) {
  19287. dd, esep := d.d, d.hh.hasElemSeparators()
  19288. containerLen := dd.ReadMapStart()
  19289. if canChange && v == nil {
  19290. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19291. v = make(map[string]int32, xlen)
  19292. changed = true
  19293. }
  19294. if containerLen == 0 {
  19295. dd.ReadMapEnd()
  19296. return v, changed
  19297. }
  19298. d.depthIncr()
  19299. var mk string
  19300. var mv int32
  19301. hasLen := containerLen > 0
  19302. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19303. if esep {
  19304. dd.ReadMapElemKey()
  19305. }
  19306. mk = dd.DecodeString()
  19307. if esep {
  19308. dd.ReadMapElemValue()
  19309. }
  19310. if dd.TryDecodeAsNil() {
  19311. if v == nil {
  19312. } else if d.h.DeleteOnNilMapValue {
  19313. delete(v, mk)
  19314. } else {
  19315. v[mk] = 0
  19316. }
  19317. continue
  19318. }
  19319. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  19320. if v != nil {
  19321. v[mk] = mv
  19322. }
  19323. }
  19324. dd.ReadMapEnd()
  19325. d.depthDecr()
  19326. return v, changed
  19327. }
  19328. func (d *Decoder) fastpathDecMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  19329. if rv.Kind() == reflect.Ptr {
  19330. vp := rv2i(rv).(*map[string]int64)
  19331. v, changed := fastpathTV.DecMapStringInt64V(*vp, true, d)
  19332. if changed {
  19333. *vp = v
  19334. }
  19335. } else {
  19336. fastpathTV.DecMapStringInt64V(rv2i(rv).(map[string]int64), false, d)
  19337. }
  19338. }
  19339. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, d *Decoder) {
  19340. v, changed := f.DecMapStringInt64V(*vp, true, d)
  19341. if changed {
  19342. *vp = v
  19343. }
  19344. }
  19345. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, canChange bool,
  19346. d *Decoder) (_ map[string]int64, changed bool) {
  19347. dd, esep := d.d, d.hh.hasElemSeparators()
  19348. containerLen := dd.ReadMapStart()
  19349. if canChange && v == nil {
  19350. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19351. v = make(map[string]int64, xlen)
  19352. changed = true
  19353. }
  19354. if containerLen == 0 {
  19355. dd.ReadMapEnd()
  19356. return v, changed
  19357. }
  19358. d.depthIncr()
  19359. var mk string
  19360. var mv int64
  19361. hasLen := containerLen > 0
  19362. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19363. if esep {
  19364. dd.ReadMapElemKey()
  19365. }
  19366. mk = dd.DecodeString()
  19367. if esep {
  19368. dd.ReadMapElemValue()
  19369. }
  19370. if dd.TryDecodeAsNil() {
  19371. if v == nil {
  19372. } else if d.h.DeleteOnNilMapValue {
  19373. delete(v, mk)
  19374. } else {
  19375. v[mk] = 0
  19376. }
  19377. continue
  19378. }
  19379. mv = dd.DecodeInt64()
  19380. if v != nil {
  19381. v[mk] = mv
  19382. }
  19383. }
  19384. dd.ReadMapEnd()
  19385. d.depthDecr()
  19386. return v, changed
  19387. }
  19388. func (d *Decoder) fastpathDecMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  19389. if rv.Kind() == reflect.Ptr {
  19390. vp := rv2i(rv).(*map[string]float32)
  19391. v, changed := fastpathTV.DecMapStringFloat32V(*vp, true, d)
  19392. if changed {
  19393. *vp = v
  19394. }
  19395. } else {
  19396. fastpathTV.DecMapStringFloat32V(rv2i(rv).(map[string]float32), false, d)
  19397. }
  19398. }
  19399. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, d *Decoder) {
  19400. v, changed := f.DecMapStringFloat32V(*vp, true, d)
  19401. if changed {
  19402. *vp = v
  19403. }
  19404. }
  19405. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, canChange bool,
  19406. d *Decoder) (_ map[string]float32, changed bool) {
  19407. dd, esep := d.d, d.hh.hasElemSeparators()
  19408. containerLen := dd.ReadMapStart()
  19409. if canChange && v == nil {
  19410. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19411. v = make(map[string]float32, xlen)
  19412. changed = true
  19413. }
  19414. if containerLen == 0 {
  19415. dd.ReadMapEnd()
  19416. return v, changed
  19417. }
  19418. d.depthIncr()
  19419. var mk string
  19420. var mv float32
  19421. hasLen := containerLen > 0
  19422. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19423. if esep {
  19424. dd.ReadMapElemKey()
  19425. }
  19426. mk = dd.DecodeString()
  19427. if esep {
  19428. dd.ReadMapElemValue()
  19429. }
  19430. if dd.TryDecodeAsNil() {
  19431. if v == nil {
  19432. } else if d.h.DeleteOnNilMapValue {
  19433. delete(v, mk)
  19434. } else {
  19435. v[mk] = 0
  19436. }
  19437. continue
  19438. }
  19439. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  19440. if v != nil {
  19441. v[mk] = mv
  19442. }
  19443. }
  19444. dd.ReadMapEnd()
  19445. d.depthDecr()
  19446. return v, changed
  19447. }
  19448. func (d *Decoder) fastpathDecMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  19449. if rv.Kind() == reflect.Ptr {
  19450. vp := rv2i(rv).(*map[string]float64)
  19451. v, changed := fastpathTV.DecMapStringFloat64V(*vp, true, d)
  19452. if changed {
  19453. *vp = v
  19454. }
  19455. } else {
  19456. fastpathTV.DecMapStringFloat64V(rv2i(rv).(map[string]float64), false, d)
  19457. }
  19458. }
  19459. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, d *Decoder) {
  19460. v, changed := f.DecMapStringFloat64V(*vp, true, d)
  19461. if changed {
  19462. *vp = v
  19463. }
  19464. }
  19465. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, canChange bool,
  19466. d *Decoder) (_ map[string]float64, changed bool) {
  19467. dd, esep := d.d, d.hh.hasElemSeparators()
  19468. containerLen := dd.ReadMapStart()
  19469. if canChange && v == nil {
  19470. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19471. v = make(map[string]float64, xlen)
  19472. changed = true
  19473. }
  19474. if containerLen == 0 {
  19475. dd.ReadMapEnd()
  19476. return v, changed
  19477. }
  19478. d.depthIncr()
  19479. var mk string
  19480. var mv float64
  19481. hasLen := containerLen > 0
  19482. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19483. if esep {
  19484. dd.ReadMapElemKey()
  19485. }
  19486. mk = dd.DecodeString()
  19487. if esep {
  19488. dd.ReadMapElemValue()
  19489. }
  19490. if dd.TryDecodeAsNil() {
  19491. if v == nil {
  19492. } else if d.h.DeleteOnNilMapValue {
  19493. delete(v, mk)
  19494. } else {
  19495. v[mk] = 0
  19496. }
  19497. continue
  19498. }
  19499. mv = dd.DecodeFloat64()
  19500. if v != nil {
  19501. v[mk] = mv
  19502. }
  19503. }
  19504. dd.ReadMapEnd()
  19505. d.depthDecr()
  19506. return v, changed
  19507. }
  19508. func (d *Decoder) fastpathDecMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  19509. if rv.Kind() == reflect.Ptr {
  19510. vp := rv2i(rv).(*map[string]bool)
  19511. v, changed := fastpathTV.DecMapStringBoolV(*vp, true, d)
  19512. if changed {
  19513. *vp = v
  19514. }
  19515. } else {
  19516. fastpathTV.DecMapStringBoolV(rv2i(rv).(map[string]bool), false, d)
  19517. }
  19518. }
  19519. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, d *Decoder) {
  19520. v, changed := f.DecMapStringBoolV(*vp, true, d)
  19521. if changed {
  19522. *vp = v
  19523. }
  19524. }
  19525. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, canChange bool,
  19526. d *Decoder) (_ map[string]bool, changed bool) {
  19527. dd, esep := d.d, d.hh.hasElemSeparators()
  19528. containerLen := dd.ReadMapStart()
  19529. if canChange && v == nil {
  19530. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19531. v = make(map[string]bool, xlen)
  19532. changed = true
  19533. }
  19534. if containerLen == 0 {
  19535. dd.ReadMapEnd()
  19536. return v, changed
  19537. }
  19538. d.depthIncr()
  19539. var mk string
  19540. var mv bool
  19541. hasLen := containerLen > 0
  19542. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19543. if esep {
  19544. dd.ReadMapElemKey()
  19545. }
  19546. mk = dd.DecodeString()
  19547. if esep {
  19548. dd.ReadMapElemValue()
  19549. }
  19550. if dd.TryDecodeAsNil() {
  19551. if v == nil {
  19552. } else if d.h.DeleteOnNilMapValue {
  19553. delete(v, mk)
  19554. } else {
  19555. v[mk] = false
  19556. }
  19557. continue
  19558. }
  19559. mv = dd.DecodeBool()
  19560. if v != nil {
  19561. v[mk] = mv
  19562. }
  19563. }
  19564. dd.ReadMapEnd()
  19565. d.depthDecr()
  19566. return v, changed
  19567. }
  19568. func (d *Decoder) fastpathDecMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  19569. if rv.Kind() == reflect.Ptr {
  19570. vp := rv2i(rv).(*map[float32]interface{})
  19571. v, changed := fastpathTV.DecMapFloat32IntfV(*vp, true, d)
  19572. if changed {
  19573. *vp = v
  19574. }
  19575. } else {
  19576. fastpathTV.DecMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), false, d)
  19577. }
  19578. }
  19579. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, d *Decoder) {
  19580. v, changed := f.DecMapFloat32IntfV(*vp, true, d)
  19581. if changed {
  19582. *vp = v
  19583. }
  19584. }
  19585. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, canChange bool,
  19586. d *Decoder) (_ map[float32]interface{}, changed bool) {
  19587. dd, esep := d.d, d.hh.hasElemSeparators()
  19588. containerLen := dd.ReadMapStart()
  19589. if canChange && v == nil {
  19590. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19591. v = make(map[float32]interface{}, xlen)
  19592. changed = true
  19593. }
  19594. if containerLen == 0 {
  19595. dd.ReadMapEnd()
  19596. return v, changed
  19597. }
  19598. d.depthIncr()
  19599. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  19600. var mk float32
  19601. var mv interface{}
  19602. hasLen := containerLen > 0
  19603. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19604. if esep {
  19605. dd.ReadMapElemKey()
  19606. }
  19607. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  19608. if esep {
  19609. dd.ReadMapElemValue()
  19610. }
  19611. if dd.TryDecodeAsNil() {
  19612. if v == nil {
  19613. } else if d.h.DeleteOnNilMapValue {
  19614. delete(v, mk)
  19615. } else {
  19616. v[mk] = nil
  19617. }
  19618. continue
  19619. }
  19620. if mapGet {
  19621. mv = v[mk]
  19622. } else {
  19623. mv = nil
  19624. }
  19625. d.decode(&mv)
  19626. if v != nil {
  19627. v[mk] = mv
  19628. }
  19629. }
  19630. dd.ReadMapEnd()
  19631. d.depthDecr()
  19632. return v, changed
  19633. }
  19634. func (d *Decoder) fastpathDecMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  19635. if rv.Kind() == reflect.Ptr {
  19636. vp := rv2i(rv).(*map[float32]string)
  19637. v, changed := fastpathTV.DecMapFloat32StringV(*vp, true, d)
  19638. if changed {
  19639. *vp = v
  19640. }
  19641. } else {
  19642. fastpathTV.DecMapFloat32StringV(rv2i(rv).(map[float32]string), false, d)
  19643. }
  19644. }
  19645. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, d *Decoder) {
  19646. v, changed := f.DecMapFloat32StringV(*vp, true, d)
  19647. if changed {
  19648. *vp = v
  19649. }
  19650. }
  19651. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, canChange bool,
  19652. d *Decoder) (_ map[float32]string, changed bool) {
  19653. dd, esep := d.d, d.hh.hasElemSeparators()
  19654. containerLen := dd.ReadMapStart()
  19655. if canChange && v == nil {
  19656. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19657. v = make(map[float32]string, xlen)
  19658. changed = true
  19659. }
  19660. if containerLen == 0 {
  19661. dd.ReadMapEnd()
  19662. return v, changed
  19663. }
  19664. d.depthIncr()
  19665. var mk float32
  19666. var mv string
  19667. hasLen := containerLen > 0
  19668. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19669. if esep {
  19670. dd.ReadMapElemKey()
  19671. }
  19672. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  19673. if esep {
  19674. dd.ReadMapElemValue()
  19675. }
  19676. if dd.TryDecodeAsNil() {
  19677. if v == nil {
  19678. } else if d.h.DeleteOnNilMapValue {
  19679. delete(v, mk)
  19680. } else {
  19681. v[mk] = ""
  19682. }
  19683. continue
  19684. }
  19685. mv = dd.DecodeString()
  19686. if v != nil {
  19687. v[mk] = mv
  19688. }
  19689. }
  19690. dd.ReadMapEnd()
  19691. d.depthDecr()
  19692. return v, changed
  19693. }
  19694. func (d *Decoder) fastpathDecMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  19695. if rv.Kind() == reflect.Ptr {
  19696. vp := rv2i(rv).(*map[float32]uint)
  19697. v, changed := fastpathTV.DecMapFloat32UintV(*vp, true, d)
  19698. if changed {
  19699. *vp = v
  19700. }
  19701. } else {
  19702. fastpathTV.DecMapFloat32UintV(rv2i(rv).(map[float32]uint), false, d)
  19703. }
  19704. }
  19705. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, d *Decoder) {
  19706. v, changed := f.DecMapFloat32UintV(*vp, true, d)
  19707. if changed {
  19708. *vp = v
  19709. }
  19710. }
  19711. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, canChange bool,
  19712. d *Decoder) (_ map[float32]uint, changed bool) {
  19713. dd, esep := d.d, d.hh.hasElemSeparators()
  19714. containerLen := dd.ReadMapStart()
  19715. if canChange && v == nil {
  19716. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19717. v = make(map[float32]uint, xlen)
  19718. changed = true
  19719. }
  19720. if containerLen == 0 {
  19721. dd.ReadMapEnd()
  19722. return v, changed
  19723. }
  19724. d.depthIncr()
  19725. var mk float32
  19726. var mv uint
  19727. hasLen := containerLen > 0
  19728. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19729. if esep {
  19730. dd.ReadMapElemKey()
  19731. }
  19732. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  19733. if esep {
  19734. dd.ReadMapElemValue()
  19735. }
  19736. if dd.TryDecodeAsNil() {
  19737. if v == nil {
  19738. } else if d.h.DeleteOnNilMapValue {
  19739. delete(v, mk)
  19740. } else {
  19741. v[mk] = 0
  19742. }
  19743. continue
  19744. }
  19745. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  19746. if v != nil {
  19747. v[mk] = mv
  19748. }
  19749. }
  19750. dd.ReadMapEnd()
  19751. d.depthDecr()
  19752. return v, changed
  19753. }
  19754. func (d *Decoder) fastpathDecMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  19755. if rv.Kind() == reflect.Ptr {
  19756. vp := rv2i(rv).(*map[float32]uint8)
  19757. v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, true, d)
  19758. if changed {
  19759. *vp = v
  19760. }
  19761. } else {
  19762. fastpathTV.DecMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), false, d)
  19763. }
  19764. }
  19765. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, d *Decoder) {
  19766. v, changed := f.DecMapFloat32Uint8V(*vp, true, d)
  19767. if changed {
  19768. *vp = v
  19769. }
  19770. }
  19771. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, canChange bool,
  19772. d *Decoder) (_ map[float32]uint8, changed bool) {
  19773. dd, esep := d.d, d.hh.hasElemSeparators()
  19774. containerLen := dd.ReadMapStart()
  19775. if canChange && v == nil {
  19776. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  19777. v = make(map[float32]uint8, xlen)
  19778. changed = true
  19779. }
  19780. if containerLen == 0 {
  19781. dd.ReadMapEnd()
  19782. return v, changed
  19783. }
  19784. d.depthIncr()
  19785. var mk float32
  19786. var mv uint8
  19787. hasLen := containerLen > 0
  19788. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19789. if esep {
  19790. dd.ReadMapElemKey()
  19791. }
  19792. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  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 = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  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) fastpathDecMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  19815. if rv.Kind() == reflect.Ptr {
  19816. vp := rv2i(rv).(*map[float32]uint16)
  19817. v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, true, d)
  19818. if changed {
  19819. *vp = v
  19820. }
  19821. } else {
  19822. fastpathTV.DecMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), false, d)
  19823. }
  19824. }
  19825. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, d *Decoder) {
  19826. v, changed := f.DecMapFloat32Uint16V(*vp, true, d)
  19827. if changed {
  19828. *vp = v
  19829. }
  19830. }
  19831. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, canChange bool,
  19832. d *Decoder) (_ map[float32]uint16, 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, 6)
  19837. v = make(map[float32]uint16, xlen)
  19838. changed = true
  19839. }
  19840. if containerLen == 0 {
  19841. dd.ReadMapEnd()
  19842. return v, changed
  19843. }
  19844. d.depthIncr()
  19845. var mk float32
  19846. var mv uint16
  19847. hasLen := containerLen > 0
  19848. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19849. if esep {
  19850. dd.ReadMapElemKey()
  19851. }
  19852. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  19853. if esep {
  19854. dd.ReadMapElemValue()
  19855. }
  19856. if dd.TryDecodeAsNil() {
  19857. if v == nil {
  19858. } else if d.h.DeleteOnNilMapValue {
  19859. delete(v, mk)
  19860. } else {
  19861. v[mk] = 0
  19862. }
  19863. continue
  19864. }
  19865. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  19866. if v != nil {
  19867. v[mk] = mv
  19868. }
  19869. }
  19870. dd.ReadMapEnd()
  19871. d.depthDecr()
  19872. return v, changed
  19873. }
  19874. func (d *Decoder) fastpathDecMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  19875. if rv.Kind() == reflect.Ptr {
  19876. vp := rv2i(rv).(*map[float32]uint32)
  19877. v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, true, d)
  19878. if changed {
  19879. *vp = v
  19880. }
  19881. } else {
  19882. fastpathTV.DecMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), false, d)
  19883. }
  19884. }
  19885. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, d *Decoder) {
  19886. v, changed := f.DecMapFloat32Uint32V(*vp, true, d)
  19887. if changed {
  19888. *vp = v
  19889. }
  19890. }
  19891. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, canChange bool,
  19892. d *Decoder) (_ map[float32]uint32, changed bool) {
  19893. dd, esep := d.d, d.hh.hasElemSeparators()
  19894. containerLen := dd.ReadMapStart()
  19895. if canChange && v == nil {
  19896. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  19897. v = make(map[float32]uint32, xlen)
  19898. changed = true
  19899. }
  19900. if containerLen == 0 {
  19901. dd.ReadMapEnd()
  19902. return v, changed
  19903. }
  19904. d.depthIncr()
  19905. var mk float32
  19906. var mv uint32
  19907. hasLen := containerLen > 0
  19908. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19909. if esep {
  19910. dd.ReadMapElemKey()
  19911. }
  19912. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  19913. if esep {
  19914. dd.ReadMapElemValue()
  19915. }
  19916. if dd.TryDecodeAsNil() {
  19917. if v == nil {
  19918. } else if d.h.DeleteOnNilMapValue {
  19919. delete(v, mk)
  19920. } else {
  19921. v[mk] = 0
  19922. }
  19923. continue
  19924. }
  19925. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  19926. if v != nil {
  19927. v[mk] = mv
  19928. }
  19929. }
  19930. dd.ReadMapEnd()
  19931. d.depthDecr()
  19932. return v, changed
  19933. }
  19934. func (d *Decoder) fastpathDecMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  19935. if rv.Kind() == reflect.Ptr {
  19936. vp := rv2i(rv).(*map[float32]uint64)
  19937. v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, true, d)
  19938. if changed {
  19939. *vp = v
  19940. }
  19941. } else {
  19942. fastpathTV.DecMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), false, d)
  19943. }
  19944. }
  19945. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, d *Decoder) {
  19946. v, changed := f.DecMapFloat32Uint64V(*vp, true, d)
  19947. if changed {
  19948. *vp = v
  19949. }
  19950. }
  19951. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, canChange bool,
  19952. d *Decoder) (_ map[float32]uint64, changed bool) {
  19953. dd, esep := d.d, d.hh.hasElemSeparators()
  19954. containerLen := dd.ReadMapStart()
  19955. if canChange && v == nil {
  19956. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19957. v = make(map[float32]uint64, xlen)
  19958. changed = true
  19959. }
  19960. if containerLen == 0 {
  19961. dd.ReadMapEnd()
  19962. return v, changed
  19963. }
  19964. d.depthIncr()
  19965. var mk float32
  19966. var mv uint64
  19967. hasLen := containerLen > 0
  19968. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19969. if esep {
  19970. dd.ReadMapElemKey()
  19971. }
  19972. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  19973. if esep {
  19974. dd.ReadMapElemValue()
  19975. }
  19976. if dd.TryDecodeAsNil() {
  19977. if v == nil {
  19978. } else if d.h.DeleteOnNilMapValue {
  19979. delete(v, mk)
  19980. } else {
  19981. v[mk] = 0
  19982. }
  19983. continue
  19984. }
  19985. mv = dd.DecodeUint64()
  19986. if v != nil {
  19987. v[mk] = mv
  19988. }
  19989. }
  19990. dd.ReadMapEnd()
  19991. d.depthDecr()
  19992. return v, changed
  19993. }
  19994. func (d *Decoder) fastpathDecMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  19995. if rv.Kind() == reflect.Ptr {
  19996. vp := rv2i(rv).(*map[float32]uintptr)
  19997. v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, true, d)
  19998. if changed {
  19999. *vp = v
  20000. }
  20001. } else {
  20002. fastpathTV.DecMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), false, d)
  20003. }
  20004. }
  20005. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, d *Decoder) {
  20006. v, changed := f.DecMapFloat32UintptrV(*vp, true, d)
  20007. if changed {
  20008. *vp = v
  20009. }
  20010. }
  20011. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, canChange bool,
  20012. d *Decoder) (_ map[float32]uintptr, changed bool) {
  20013. dd, esep := d.d, d.hh.hasElemSeparators()
  20014. containerLen := dd.ReadMapStart()
  20015. if canChange && v == nil {
  20016. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20017. v = make(map[float32]uintptr, xlen)
  20018. changed = true
  20019. }
  20020. if containerLen == 0 {
  20021. dd.ReadMapEnd()
  20022. return v, changed
  20023. }
  20024. d.depthIncr()
  20025. var mk float32
  20026. var mv uintptr
  20027. hasLen := containerLen > 0
  20028. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20029. if esep {
  20030. dd.ReadMapElemKey()
  20031. }
  20032. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20033. if esep {
  20034. dd.ReadMapElemValue()
  20035. }
  20036. if dd.TryDecodeAsNil() {
  20037. if v == nil {
  20038. } else if d.h.DeleteOnNilMapValue {
  20039. delete(v, mk)
  20040. } else {
  20041. v[mk] = 0
  20042. }
  20043. continue
  20044. }
  20045. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  20046. if v != nil {
  20047. v[mk] = mv
  20048. }
  20049. }
  20050. dd.ReadMapEnd()
  20051. d.depthDecr()
  20052. return v, changed
  20053. }
  20054. func (d *Decoder) fastpathDecMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  20055. if rv.Kind() == reflect.Ptr {
  20056. vp := rv2i(rv).(*map[float32]int)
  20057. v, changed := fastpathTV.DecMapFloat32IntV(*vp, true, d)
  20058. if changed {
  20059. *vp = v
  20060. }
  20061. } else {
  20062. fastpathTV.DecMapFloat32IntV(rv2i(rv).(map[float32]int), false, d)
  20063. }
  20064. }
  20065. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, d *Decoder) {
  20066. v, changed := f.DecMapFloat32IntV(*vp, true, d)
  20067. if changed {
  20068. *vp = v
  20069. }
  20070. }
  20071. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, canChange bool,
  20072. d *Decoder) (_ map[float32]int, changed bool) {
  20073. dd, esep := d.d, d.hh.hasElemSeparators()
  20074. containerLen := dd.ReadMapStart()
  20075. if canChange && v == nil {
  20076. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20077. v = make(map[float32]int, xlen)
  20078. changed = true
  20079. }
  20080. if containerLen == 0 {
  20081. dd.ReadMapEnd()
  20082. return v, changed
  20083. }
  20084. d.depthIncr()
  20085. var mk float32
  20086. var mv int
  20087. hasLen := containerLen > 0
  20088. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20089. if esep {
  20090. dd.ReadMapElemKey()
  20091. }
  20092. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20093. if esep {
  20094. dd.ReadMapElemValue()
  20095. }
  20096. if dd.TryDecodeAsNil() {
  20097. if v == nil {
  20098. } else if d.h.DeleteOnNilMapValue {
  20099. delete(v, mk)
  20100. } else {
  20101. v[mk] = 0
  20102. }
  20103. continue
  20104. }
  20105. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  20106. if v != nil {
  20107. v[mk] = mv
  20108. }
  20109. }
  20110. dd.ReadMapEnd()
  20111. d.depthDecr()
  20112. return v, changed
  20113. }
  20114. func (d *Decoder) fastpathDecMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  20115. if rv.Kind() == reflect.Ptr {
  20116. vp := rv2i(rv).(*map[float32]int8)
  20117. v, changed := fastpathTV.DecMapFloat32Int8V(*vp, true, d)
  20118. if changed {
  20119. *vp = v
  20120. }
  20121. } else {
  20122. fastpathTV.DecMapFloat32Int8V(rv2i(rv).(map[float32]int8), false, d)
  20123. }
  20124. }
  20125. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, d *Decoder) {
  20126. v, changed := f.DecMapFloat32Int8V(*vp, true, d)
  20127. if changed {
  20128. *vp = v
  20129. }
  20130. }
  20131. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, canChange bool,
  20132. d *Decoder) (_ map[float32]int8, changed bool) {
  20133. dd, esep := d.d, d.hh.hasElemSeparators()
  20134. containerLen := dd.ReadMapStart()
  20135. if canChange && v == nil {
  20136. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  20137. v = make(map[float32]int8, xlen)
  20138. changed = true
  20139. }
  20140. if containerLen == 0 {
  20141. dd.ReadMapEnd()
  20142. return v, changed
  20143. }
  20144. d.depthIncr()
  20145. var mk float32
  20146. var mv int8
  20147. hasLen := containerLen > 0
  20148. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20149. if esep {
  20150. dd.ReadMapElemKey()
  20151. }
  20152. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20153. if esep {
  20154. dd.ReadMapElemValue()
  20155. }
  20156. if dd.TryDecodeAsNil() {
  20157. if v == nil {
  20158. } else if d.h.DeleteOnNilMapValue {
  20159. delete(v, mk)
  20160. } else {
  20161. v[mk] = 0
  20162. }
  20163. continue
  20164. }
  20165. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  20166. if v != nil {
  20167. v[mk] = mv
  20168. }
  20169. }
  20170. dd.ReadMapEnd()
  20171. d.depthDecr()
  20172. return v, changed
  20173. }
  20174. func (d *Decoder) fastpathDecMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  20175. if rv.Kind() == reflect.Ptr {
  20176. vp := rv2i(rv).(*map[float32]int16)
  20177. v, changed := fastpathTV.DecMapFloat32Int16V(*vp, true, d)
  20178. if changed {
  20179. *vp = v
  20180. }
  20181. } else {
  20182. fastpathTV.DecMapFloat32Int16V(rv2i(rv).(map[float32]int16), false, d)
  20183. }
  20184. }
  20185. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, d *Decoder) {
  20186. v, changed := f.DecMapFloat32Int16V(*vp, true, d)
  20187. if changed {
  20188. *vp = v
  20189. }
  20190. }
  20191. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, canChange bool,
  20192. d *Decoder) (_ map[float32]int16, changed bool) {
  20193. dd, esep := d.d, d.hh.hasElemSeparators()
  20194. containerLen := dd.ReadMapStart()
  20195. if canChange && v == nil {
  20196. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  20197. v = make(map[float32]int16, xlen)
  20198. changed = true
  20199. }
  20200. if containerLen == 0 {
  20201. dd.ReadMapEnd()
  20202. return v, changed
  20203. }
  20204. d.depthIncr()
  20205. var mk float32
  20206. var mv int16
  20207. hasLen := containerLen > 0
  20208. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20209. if esep {
  20210. dd.ReadMapElemKey()
  20211. }
  20212. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20213. if esep {
  20214. dd.ReadMapElemValue()
  20215. }
  20216. if dd.TryDecodeAsNil() {
  20217. if v == nil {
  20218. } else if d.h.DeleteOnNilMapValue {
  20219. delete(v, mk)
  20220. } else {
  20221. v[mk] = 0
  20222. }
  20223. continue
  20224. }
  20225. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  20226. if v != nil {
  20227. v[mk] = mv
  20228. }
  20229. }
  20230. dd.ReadMapEnd()
  20231. d.depthDecr()
  20232. return v, changed
  20233. }
  20234. func (d *Decoder) fastpathDecMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  20235. if rv.Kind() == reflect.Ptr {
  20236. vp := rv2i(rv).(*map[float32]int32)
  20237. v, changed := fastpathTV.DecMapFloat32Int32V(*vp, true, d)
  20238. if changed {
  20239. *vp = v
  20240. }
  20241. } else {
  20242. fastpathTV.DecMapFloat32Int32V(rv2i(rv).(map[float32]int32), false, d)
  20243. }
  20244. }
  20245. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, d *Decoder) {
  20246. v, changed := f.DecMapFloat32Int32V(*vp, true, d)
  20247. if changed {
  20248. *vp = v
  20249. }
  20250. }
  20251. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, canChange bool,
  20252. d *Decoder) (_ map[float32]int32, changed bool) {
  20253. dd, esep := d.d, d.hh.hasElemSeparators()
  20254. containerLen := dd.ReadMapStart()
  20255. if canChange && v == nil {
  20256. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  20257. v = make(map[float32]int32, xlen)
  20258. changed = true
  20259. }
  20260. if containerLen == 0 {
  20261. dd.ReadMapEnd()
  20262. return v, changed
  20263. }
  20264. d.depthIncr()
  20265. var mk float32
  20266. var mv int32
  20267. hasLen := containerLen > 0
  20268. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20269. if esep {
  20270. dd.ReadMapElemKey()
  20271. }
  20272. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20273. if esep {
  20274. dd.ReadMapElemValue()
  20275. }
  20276. if dd.TryDecodeAsNil() {
  20277. if v == nil {
  20278. } else if d.h.DeleteOnNilMapValue {
  20279. delete(v, mk)
  20280. } else {
  20281. v[mk] = 0
  20282. }
  20283. continue
  20284. }
  20285. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  20286. if v != nil {
  20287. v[mk] = mv
  20288. }
  20289. }
  20290. dd.ReadMapEnd()
  20291. d.depthDecr()
  20292. return v, changed
  20293. }
  20294. func (d *Decoder) fastpathDecMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  20295. if rv.Kind() == reflect.Ptr {
  20296. vp := rv2i(rv).(*map[float32]int64)
  20297. v, changed := fastpathTV.DecMapFloat32Int64V(*vp, true, d)
  20298. if changed {
  20299. *vp = v
  20300. }
  20301. } else {
  20302. fastpathTV.DecMapFloat32Int64V(rv2i(rv).(map[float32]int64), false, d)
  20303. }
  20304. }
  20305. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, d *Decoder) {
  20306. v, changed := f.DecMapFloat32Int64V(*vp, true, d)
  20307. if changed {
  20308. *vp = v
  20309. }
  20310. }
  20311. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, canChange bool,
  20312. d *Decoder) (_ map[float32]int64, changed bool) {
  20313. dd, esep := d.d, d.hh.hasElemSeparators()
  20314. containerLen := dd.ReadMapStart()
  20315. if canChange && v == nil {
  20316. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20317. v = make(map[float32]int64, xlen)
  20318. changed = true
  20319. }
  20320. if containerLen == 0 {
  20321. dd.ReadMapEnd()
  20322. return v, changed
  20323. }
  20324. d.depthIncr()
  20325. var mk float32
  20326. var mv int64
  20327. hasLen := containerLen > 0
  20328. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20329. if esep {
  20330. dd.ReadMapElemKey()
  20331. }
  20332. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20333. if esep {
  20334. dd.ReadMapElemValue()
  20335. }
  20336. if dd.TryDecodeAsNil() {
  20337. if v == nil {
  20338. } else if d.h.DeleteOnNilMapValue {
  20339. delete(v, mk)
  20340. } else {
  20341. v[mk] = 0
  20342. }
  20343. continue
  20344. }
  20345. mv = dd.DecodeInt64()
  20346. if v != nil {
  20347. v[mk] = mv
  20348. }
  20349. }
  20350. dd.ReadMapEnd()
  20351. d.depthDecr()
  20352. return v, changed
  20353. }
  20354. func (d *Decoder) fastpathDecMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  20355. if rv.Kind() == reflect.Ptr {
  20356. vp := rv2i(rv).(*map[float32]float32)
  20357. v, changed := fastpathTV.DecMapFloat32Float32V(*vp, true, d)
  20358. if changed {
  20359. *vp = v
  20360. }
  20361. } else {
  20362. fastpathTV.DecMapFloat32Float32V(rv2i(rv).(map[float32]float32), false, d)
  20363. }
  20364. }
  20365. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, d *Decoder) {
  20366. v, changed := f.DecMapFloat32Float32V(*vp, true, d)
  20367. if changed {
  20368. *vp = v
  20369. }
  20370. }
  20371. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, canChange bool,
  20372. d *Decoder) (_ map[float32]float32, changed bool) {
  20373. dd, esep := d.d, d.hh.hasElemSeparators()
  20374. containerLen := dd.ReadMapStart()
  20375. if canChange && v == nil {
  20376. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  20377. v = make(map[float32]float32, xlen)
  20378. changed = true
  20379. }
  20380. if containerLen == 0 {
  20381. dd.ReadMapEnd()
  20382. return v, changed
  20383. }
  20384. d.depthIncr()
  20385. var mk float32
  20386. var mv float32
  20387. hasLen := containerLen > 0
  20388. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20389. if esep {
  20390. dd.ReadMapElemKey()
  20391. }
  20392. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20393. if esep {
  20394. dd.ReadMapElemValue()
  20395. }
  20396. if dd.TryDecodeAsNil() {
  20397. if v == nil {
  20398. } else if d.h.DeleteOnNilMapValue {
  20399. delete(v, mk)
  20400. } else {
  20401. v[mk] = 0
  20402. }
  20403. continue
  20404. }
  20405. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20406. if v != nil {
  20407. v[mk] = mv
  20408. }
  20409. }
  20410. dd.ReadMapEnd()
  20411. d.depthDecr()
  20412. return v, changed
  20413. }
  20414. func (d *Decoder) fastpathDecMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  20415. if rv.Kind() == reflect.Ptr {
  20416. vp := rv2i(rv).(*map[float32]float64)
  20417. v, changed := fastpathTV.DecMapFloat32Float64V(*vp, true, d)
  20418. if changed {
  20419. *vp = v
  20420. }
  20421. } else {
  20422. fastpathTV.DecMapFloat32Float64V(rv2i(rv).(map[float32]float64), false, d)
  20423. }
  20424. }
  20425. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, d *Decoder) {
  20426. v, changed := f.DecMapFloat32Float64V(*vp, true, d)
  20427. if changed {
  20428. *vp = v
  20429. }
  20430. }
  20431. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, canChange bool,
  20432. d *Decoder) (_ map[float32]float64, changed bool) {
  20433. dd, esep := d.d, d.hh.hasElemSeparators()
  20434. containerLen := dd.ReadMapStart()
  20435. if canChange && v == nil {
  20436. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20437. v = make(map[float32]float64, xlen)
  20438. changed = true
  20439. }
  20440. if containerLen == 0 {
  20441. dd.ReadMapEnd()
  20442. return v, changed
  20443. }
  20444. d.depthIncr()
  20445. var mk float32
  20446. var mv float64
  20447. hasLen := containerLen > 0
  20448. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20449. if esep {
  20450. dd.ReadMapElemKey()
  20451. }
  20452. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20453. if esep {
  20454. dd.ReadMapElemValue()
  20455. }
  20456. if dd.TryDecodeAsNil() {
  20457. if v == nil {
  20458. } else if d.h.DeleteOnNilMapValue {
  20459. delete(v, mk)
  20460. } else {
  20461. v[mk] = 0
  20462. }
  20463. continue
  20464. }
  20465. mv = dd.DecodeFloat64()
  20466. if v != nil {
  20467. v[mk] = mv
  20468. }
  20469. }
  20470. dd.ReadMapEnd()
  20471. d.depthDecr()
  20472. return v, changed
  20473. }
  20474. func (d *Decoder) fastpathDecMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  20475. if rv.Kind() == reflect.Ptr {
  20476. vp := rv2i(rv).(*map[float32]bool)
  20477. v, changed := fastpathTV.DecMapFloat32BoolV(*vp, true, d)
  20478. if changed {
  20479. *vp = v
  20480. }
  20481. } else {
  20482. fastpathTV.DecMapFloat32BoolV(rv2i(rv).(map[float32]bool), false, d)
  20483. }
  20484. }
  20485. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, d *Decoder) {
  20486. v, changed := f.DecMapFloat32BoolV(*vp, true, d)
  20487. if changed {
  20488. *vp = v
  20489. }
  20490. }
  20491. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, canChange bool,
  20492. d *Decoder) (_ map[float32]bool, changed bool) {
  20493. dd, esep := d.d, d.hh.hasElemSeparators()
  20494. containerLen := dd.ReadMapStart()
  20495. if canChange && v == nil {
  20496. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  20497. v = make(map[float32]bool, xlen)
  20498. changed = true
  20499. }
  20500. if containerLen == 0 {
  20501. dd.ReadMapEnd()
  20502. return v, changed
  20503. }
  20504. d.depthIncr()
  20505. var mk float32
  20506. var mv bool
  20507. hasLen := containerLen > 0
  20508. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20509. if esep {
  20510. dd.ReadMapElemKey()
  20511. }
  20512. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20513. if esep {
  20514. dd.ReadMapElemValue()
  20515. }
  20516. if dd.TryDecodeAsNil() {
  20517. if v == nil {
  20518. } else if d.h.DeleteOnNilMapValue {
  20519. delete(v, mk)
  20520. } else {
  20521. v[mk] = false
  20522. }
  20523. continue
  20524. }
  20525. mv = dd.DecodeBool()
  20526. if v != nil {
  20527. v[mk] = mv
  20528. }
  20529. }
  20530. dd.ReadMapEnd()
  20531. d.depthDecr()
  20532. return v, changed
  20533. }
  20534. func (d *Decoder) fastpathDecMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  20535. if rv.Kind() == reflect.Ptr {
  20536. vp := rv2i(rv).(*map[float64]interface{})
  20537. v, changed := fastpathTV.DecMapFloat64IntfV(*vp, true, d)
  20538. if changed {
  20539. *vp = v
  20540. }
  20541. } else {
  20542. fastpathTV.DecMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), false, d)
  20543. }
  20544. }
  20545. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, d *Decoder) {
  20546. v, changed := f.DecMapFloat64IntfV(*vp, true, d)
  20547. if changed {
  20548. *vp = v
  20549. }
  20550. }
  20551. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, canChange bool,
  20552. d *Decoder) (_ map[float64]interface{}, changed bool) {
  20553. dd, esep := d.d, d.hh.hasElemSeparators()
  20554. containerLen := dd.ReadMapStart()
  20555. if canChange && v == nil {
  20556. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20557. v = make(map[float64]interface{}, xlen)
  20558. changed = true
  20559. }
  20560. if containerLen == 0 {
  20561. dd.ReadMapEnd()
  20562. return v, changed
  20563. }
  20564. d.depthIncr()
  20565. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  20566. var mk float64
  20567. var mv interface{}
  20568. hasLen := containerLen > 0
  20569. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20570. if esep {
  20571. dd.ReadMapElemKey()
  20572. }
  20573. mk = dd.DecodeFloat64()
  20574. if esep {
  20575. dd.ReadMapElemValue()
  20576. }
  20577. if dd.TryDecodeAsNil() {
  20578. if v == nil {
  20579. } else if d.h.DeleteOnNilMapValue {
  20580. delete(v, mk)
  20581. } else {
  20582. v[mk] = nil
  20583. }
  20584. continue
  20585. }
  20586. if mapGet {
  20587. mv = v[mk]
  20588. } else {
  20589. mv = nil
  20590. }
  20591. d.decode(&mv)
  20592. if v != nil {
  20593. v[mk] = mv
  20594. }
  20595. }
  20596. dd.ReadMapEnd()
  20597. d.depthDecr()
  20598. return v, changed
  20599. }
  20600. func (d *Decoder) fastpathDecMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  20601. if rv.Kind() == reflect.Ptr {
  20602. vp := rv2i(rv).(*map[float64]string)
  20603. v, changed := fastpathTV.DecMapFloat64StringV(*vp, true, d)
  20604. if changed {
  20605. *vp = v
  20606. }
  20607. } else {
  20608. fastpathTV.DecMapFloat64StringV(rv2i(rv).(map[float64]string), false, d)
  20609. }
  20610. }
  20611. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, d *Decoder) {
  20612. v, changed := f.DecMapFloat64StringV(*vp, true, d)
  20613. if changed {
  20614. *vp = v
  20615. }
  20616. }
  20617. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, canChange bool,
  20618. d *Decoder) (_ map[float64]string, changed bool) {
  20619. dd, esep := d.d, d.hh.hasElemSeparators()
  20620. containerLen := dd.ReadMapStart()
  20621. if canChange && v == nil {
  20622. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20623. v = make(map[float64]string, xlen)
  20624. changed = true
  20625. }
  20626. if containerLen == 0 {
  20627. dd.ReadMapEnd()
  20628. return v, changed
  20629. }
  20630. d.depthIncr()
  20631. var mk float64
  20632. var mv string
  20633. hasLen := containerLen > 0
  20634. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20635. if esep {
  20636. dd.ReadMapElemKey()
  20637. }
  20638. mk = dd.DecodeFloat64()
  20639. if esep {
  20640. dd.ReadMapElemValue()
  20641. }
  20642. if dd.TryDecodeAsNil() {
  20643. if v == nil {
  20644. } else if d.h.DeleteOnNilMapValue {
  20645. delete(v, mk)
  20646. } else {
  20647. v[mk] = ""
  20648. }
  20649. continue
  20650. }
  20651. mv = dd.DecodeString()
  20652. if v != nil {
  20653. v[mk] = mv
  20654. }
  20655. }
  20656. dd.ReadMapEnd()
  20657. d.depthDecr()
  20658. return v, changed
  20659. }
  20660. func (d *Decoder) fastpathDecMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  20661. if rv.Kind() == reflect.Ptr {
  20662. vp := rv2i(rv).(*map[float64]uint)
  20663. v, changed := fastpathTV.DecMapFloat64UintV(*vp, true, d)
  20664. if changed {
  20665. *vp = v
  20666. }
  20667. } else {
  20668. fastpathTV.DecMapFloat64UintV(rv2i(rv).(map[float64]uint), false, d)
  20669. }
  20670. }
  20671. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, d *Decoder) {
  20672. v, changed := f.DecMapFloat64UintV(*vp, true, d)
  20673. if changed {
  20674. *vp = v
  20675. }
  20676. }
  20677. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, canChange bool,
  20678. d *Decoder) (_ map[float64]uint, changed bool) {
  20679. dd, esep := d.d, d.hh.hasElemSeparators()
  20680. containerLen := dd.ReadMapStart()
  20681. if canChange && v == nil {
  20682. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20683. v = make(map[float64]uint, xlen)
  20684. changed = true
  20685. }
  20686. if containerLen == 0 {
  20687. dd.ReadMapEnd()
  20688. return v, changed
  20689. }
  20690. d.depthIncr()
  20691. var mk float64
  20692. var mv uint
  20693. hasLen := containerLen > 0
  20694. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20695. if esep {
  20696. dd.ReadMapElemKey()
  20697. }
  20698. mk = dd.DecodeFloat64()
  20699. if esep {
  20700. dd.ReadMapElemValue()
  20701. }
  20702. if dd.TryDecodeAsNil() {
  20703. if v == nil {
  20704. } else if d.h.DeleteOnNilMapValue {
  20705. delete(v, mk)
  20706. } else {
  20707. v[mk] = 0
  20708. }
  20709. continue
  20710. }
  20711. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  20712. if v != nil {
  20713. v[mk] = mv
  20714. }
  20715. }
  20716. dd.ReadMapEnd()
  20717. d.depthDecr()
  20718. return v, changed
  20719. }
  20720. func (d *Decoder) fastpathDecMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  20721. if rv.Kind() == reflect.Ptr {
  20722. vp := rv2i(rv).(*map[float64]uint8)
  20723. v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, true, d)
  20724. if changed {
  20725. *vp = v
  20726. }
  20727. } else {
  20728. fastpathTV.DecMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), false, d)
  20729. }
  20730. }
  20731. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, d *Decoder) {
  20732. v, changed := f.DecMapFloat64Uint8V(*vp, true, d)
  20733. if changed {
  20734. *vp = v
  20735. }
  20736. }
  20737. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, canChange bool,
  20738. d *Decoder) (_ map[float64]uint8, changed bool) {
  20739. dd, esep := d.d, d.hh.hasElemSeparators()
  20740. containerLen := dd.ReadMapStart()
  20741. if canChange && v == nil {
  20742. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20743. v = make(map[float64]uint8, xlen)
  20744. changed = true
  20745. }
  20746. if containerLen == 0 {
  20747. dd.ReadMapEnd()
  20748. return v, changed
  20749. }
  20750. d.depthIncr()
  20751. var mk float64
  20752. var mv uint8
  20753. hasLen := containerLen > 0
  20754. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20755. if esep {
  20756. dd.ReadMapElemKey()
  20757. }
  20758. mk = dd.DecodeFloat64()
  20759. if esep {
  20760. dd.ReadMapElemValue()
  20761. }
  20762. if dd.TryDecodeAsNil() {
  20763. if v == nil {
  20764. } else if d.h.DeleteOnNilMapValue {
  20765. delete(v, mk)
  20766. } else {
  20767. v[mk] = 0
  20768. }
  20769. continue
  20770. }
  20771. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  20772. if v != nil {
  20773. v[mk] = mv
  20774. }
  20775. }
  20776. dd.ReadMapEnd()
  20777. d.depthDecr()
  20778. return v, changed
  20779. }
  20780. func (d *Decoder) fastpathDecMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  20781. if rv.Kind() == reflect.Ptr {
  20782. vp := rv2i(rv).(*map[float64]uint16)
  20783. v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, true, d)
  20784. if changed {
  20785. *vp = v
  20786. }
  20787. } else {
  20788. fastpathTV.DecMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), false, d)
  20789. }
  20790. }
  20791. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, d *Decoder) {
  20792. v, changed := f.DecMapFloat64Uint16V(*vp, true, d)
  20793. if changed {
  20794. *vp = v
  20795. }
  20796. }
  20797. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, canChange bool,
  20798. d *Decoder) (_ map[float64]uint16, changed bool) {
  20799. dd, esep := d.d, d.hh.hasElemSeparators()
  20800. containerLen := dd.ReadMapStart()
  20801. if canChange && v == nil {
  20802. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  20803. v = make(map[float64]uint16, xlen)
  20804. changed = true
  20805. }
  20806. if containerLen == 0 {
  20807. dd.ReadMapEnd()
  20808. return v, changed
  20809. }
  20810. d.depthIncr()
  20811. var mk float64
  20812. var mv uint16
  20813. hasLen := containerLen > 0
  20814. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20815. if esep {
  20816. dd.ReadMapElemKey()
  20817. }
  20818. mk = dd.DecodeFloat64()
  20819. if esep {
  20820. dd.ReadMapElemValue()
  20821. }
  20822. if dd.TryDecodeAsNil() {
  20823. if v == nil {
  20824. } else if d.h.DeleteOnNilMapValue {
  20825. delete(v, mk)
  20826. } else {
  20827. v[mk] = 0
  20828. }
  20829. continue
  20830. }
  20831. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  20832. if v != nil {
  20833. v[mk] = mv
  20834. }
  20835. }
  20836. dd.ReadMapEnd()
  20837. d.depthDecr()
  20838. return v, changed
  20839. }
  20840. func (d *Decoder) fastpathDecMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  20841. if rv.Kind() == reflect.Ptr {
  20842. vp := rv2i(rv).(*map[float64]uint32)
  20843. v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, true, d)
  20844. if changed {
  20845. *vp = v
  20846. }
  20847. } else {
  20848. fastpathTV.DecMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), false, d)
  20849. }
  20850. }
  20851. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, d *Decoder) {
  20852. v, changed := f.DecMapFloat64Uint32V(*vp, true, d)
  20853. if changed {
  20854. *vp = v
  20855. }
  20856. }
  20857. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, canChange bool,
  20858. d *Decoder) (_ map[float64]uint32, changed bool) {
  20859. dd, esep := d.d, d.hh.hasElemSeparators()
  20860. containerLen := dd.ReadMapStart()
  20861. if canChange && v == nil {
  20862. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20863. v = make(map[float64]uint32, xlen)
  20864. changed = true
  20865. }
  20866. if containerLen == 0 {
  20867. dd.ReadMapEnd()
  20868. return v, changed
  20869. }
  20870. d.depthIncr()
  20871. var mk float64
  20872. var mv uint32
  20873. hasLen := containerLen > 0
  20874. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20875. if esep {
  20876. dd.ReadMapElemKey()
  20877. }
  20878. mk = dd.DecodeFloat64()
  20879. if esep {
  20880. dd.ReadMapElemValue()
  20881. }
  20882. if dd.TryDecodeAsNil() {
  20883. if v == nil {
  20884. } else if d.h.DeleteOnNilMapValue {
  20885. delete(v, mk)
  20886. } else {
  20887. v[mk] = 0
  20888. }
  20889. continue
  20890. }
  20891. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  20892. if v != nil {
  20893. v[mk] = mv
  20894. }
  20895. }
  20896. dd.ReadMapEnd()
  20897. d.depthDecr()
  20898. return v, changed
  20899. }
  20900. func (d *Decoder) fastpathDecMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  20901. if rv.Kind() == reflect.Ptr {
  20902. vp := rv2i(rv).(*map[float64]uint64)
  20903. v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, true, d)
  20904. if changed {
  20905. *vp = v
  20906. }
  20907. } else {
  20908. fastpathTV.DecMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), false, d)
  20909. }
  20910. }
  20911. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, d *Decoder) {
  20912. v, changed := f.DecMapFloat64Uint64V(*vp, true, d)
  20913. if changed {
  20914. *vp = v
  20915. }
  20916. }
  20917. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, canChange bool,
  20918. d *Decoder) (_ map[float64]uint64, changed bool) {
  20919. dd, esep := d.d, d.hh.hasElemSeparators()
  20920. containerLen := dd.ReadMapStart()
  20921. if canChange && v == nil {
  20922. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20923. v = make(map[float64]uint64, xlen)
  20924. changed = true
  20925. }
  20926. if containerLen == 0 {
  20927. dd.ReadMapEnd()
  20928. return v, changed
  20929. }
  20930. d.depthIncr()
  20931. var mk float64
  20932. var mv uint64
  20933. hasLen := containerLen > 0
  20934. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20935. if esep {
  20936. dd.ReadMapElemKey()
  20937. }
  20938. mk = dd.DecodeFloat64()
  20939. if esep {
  20940. dd.ReadMapElemValue()
  20941. }
  20942. if dd.TryDecodeAsNil() {
  20943. if v == nil {
  20944. } else if d.h.DeleteOnNilMapValue {
  20945. delete(v, mk)
  20946. } else {
  20947. v[mk] = 0
  20948. }
  20949. continue
  20950. }
  20951. mv = dd.DecodeUint64()
  20952. if v != nil {
  20953. v[mk] = mv
  20954. }
  20955. }
  20956. dd.ReadMapEnd()
  20957. d.depthDecr()
  20958. return v, changed
  20959. }
  20960. func (d *Decoder) fastpathDecMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  20961. if rv.Kind() == reflect.Ptr {
  20962. vp := rv2i(rv).(*map[float64]uintptr)
  20963. v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, true, d)
  20964. if changed {
  20965. *vp = v
  20966. }
  20967. } else {
  20968. fastpathTV.DecMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), false, d)
  20969. }
  20970. }
  20971. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, d *Decoder) {
  20972. v, changed := f.DecMapFloat64UintptrV(*vp, true, d)
  20973. if changed {
  20974. *vp = v
  20975. }
  20976. }
  20977. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, canChange bool,
  20978. d *Decoder) (_ map[float64]uintptr, changed bool) {
  20979. dd, esep := d.d, d.hh.hasElemSeparators()
  20980. containerLen := dd.ReadMapStart()
  20981. if canChange && v == nil {
  20982. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20983. v = make(map[float64]uintptr, xlen)
  20984. changed = true
  20985. }
  20986. if containerLen == 0 {
  20987. dd.ReadMapEnd()
  20988. return v, changed
  20989. }
  20990. d.depthIncr()
  20991. var mk float64
  20992. var mv uintptr
  20993. hasLen := containerLen > 0
  20994. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20995. if esep {
  20996. dd.ReadMapElemKey()
  20997. }
  20998. mk = dd.DecodeFloat64()
  20999. if esep {
  21000. dd.ReadMapElemValue()
  21001. }
  21002. if dd.TryDecodeAsNil() {
  21003. if v == nil {
  21004. } else if d.h.DeleteOnNilMapValue {
  21005. delete(v, mk)
  21006. } else {
  21007. v[mk] = 0
  21008. }
  21009. continue
  21010. }
  21011. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21012. if v != nil {
  21013. v[mk] = mv
  21014. }
  21015. }
  21016. dd.ReadMapEnd()
  21017. d.depthDecr()
  21018. return v, changed
  21019. }
  21020. func (d *Decoder) fastpathDecMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  21021. if rv.Kind() == reflect.Ptr {
  21022. vp := rv2i(rv).(*map[float64]int)
  21023. v, changed := fastpathTV.DecMapFloat64IntV(*vp, true, d)
  21024. if changed {
  21025. *vp = v
  21026. }
  21027. } else {
  21028. fastpathTV.DecMapFloat64IntV(rv2i(rv).(map[float64]int), false, d)
  21029. }
  21030. }
  21031. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, d *Decoder) {
  21032. v, changed := f.DecMapFloat64IntV(*vp, true, d)
  21033. if changed {
  21034. *vp = v
  21035. }
  21036. }
  21037. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, canChange bool,
  21038. d *Decoder) (_ map[float64]int, changed bool) {
  21039. dd, esep := d.d, d.hh.hasElemSeparators()
  21040. containerLen := dd.ReadMapStart()
  21041. if canChange && v == nil {
  21042. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21043. v = make(map[float64]int, xlen)
  21044. changed = true
  21045. }
  21046. if containerLen == 0 {
  21047. dd.ReadMapEnd()
  21048. return v, changed
  21049. }
  21050. d.depthIncr()
  21051. var mk float64
  21052. var mv int
  21053. hasLen := containerLen > 0
  21054. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21055. if esep {
  21056. dd.ReadMapElemKey()
  21057. }
  21058. mk = dd.DecodeFloat64()
  21059. if esep {
  21060. dd.ReadMapElemValue()
  21061. }
  21062. if dd.TryDecodeAsNil() {
  21063. if v == nil {
  21064. } else if d.h.DeleteOnNilMapValue {
  21065. delete(v, mk)
  21066. } else {
  21067. v[mk] = 0
  21068. }
  21069. continue
  21070. }
  21071. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  21072. if v != nil {
  21073. v[mk] = mv
  21074. }
  21075. }
  21076. dd.ReadMapEnd()
  21077. d.depthDecr()
  21078. return v, changed
  21079. }
  21080. func (d *Decoder) fastpathDecMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  21081. if rv.Kind() == reflect.Ptr {
  21082. vp := rv2i(rv).(*map[float64]int8)
  21083. v, changed := fastpathTV.DecMapFloat64Int8V(*vp, true, d)
  21084. if changed {
  21085. *vp = v
  21086. }
  21087. } else {
  21088. fastpathTV.DecMapFloat64Int8V(rv2i(rv).(map[float64]int8), false, d)
  21089. }
  21090. }
  21091. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, d *Decoder) {
  21092. v, changed := f.DecMapFloat64Int8V(*vp, true, d)
  21093. if changed {
  21094. *vp = v
  21095. }
  21096. }
  21097. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, canChange bool,
  21098. d *Decoder) (_ map[float64]int8, changed bool) {
  21099. dd, esep := d.d, d.hh.hasElemSeparators()
  21100. containerLen := dd.ReadMapStart()
  21101. if canChange && v == nil {
  21102. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21103. v = make(map[float64]int8, xlen)
  21104. changed = true
  21105. }
  21106. if containerLen == 0 {
  21107. dd.ReadMapEnd()
  21108. return v, changed
  21109. }
  21110. d.depthIncr()
  21111. var mk float64
  21112. var mv int8
  21113. hasLen := containerLen > 0
  21114. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21115. if esep {
  21116. dd.ReadMapElemKey()
  21117. }
  21118. mk = dd.DecodeFloat64()
  21119. if esep {
  21120. dd.ReadMapElemValue()
  21121. }
  21122. if dd.TryDecodeAsNil() {
  21123. if v == nil {
  21124. } else if d.h.DeleteOnNilMapValue {
  21125. delete(v, mk)
  21126. } else {
  21127. v[mk] = 0
  21128. }
  21129. continue
  21130. }
  21131. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  21132. if v != nil {
  21133. v[mk] = mv
  21134. }
  21135. }
  21136. dd.ReadMapEnd()
  21137. d.depthDecr()
  21138. return v, changed
  21139. }
  21140. func (d *Decoder) fastpathDecMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  21141. if rv.Kind() == reflect.Ptr {
  21142. vp := rv2i(rv).(*map[float64]int16)
  21143. v, changed := fastpathTV.DecMapFloat64Int16V(*vp, true, d)
  21144. if changed {
  21145. *vp = v
  21146. }
  21147. } else {
  21148. fastpathTV.DecMapFloat64Int16V(rv2i(rv).(map[float64]int16), false, d)
  21149. }
  21150. }
  21151. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, d *Decoder) {
  21152. v, changed := f.DecMapFloat64Int16V(*vp, true, d)
  21153. if changed {
  21154. *vp = v
  21155. }
  21156. }
  21157. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, canChange bool,
  21158. d *Decoder) (_ map[float64]int16, changed bool) {
  21159. dd, esep := d.d, d.hh.hasElemSeparators()
  21160. containerLen := dd.ReadMapStart()
  21161. if canChange && v == nil {
  21162. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  21163. v = make(map[float64]int16, xlen)
  21164. changed = true
  21165. }
  21166. if containerLen == 0 {
  21167. dd.ReadMapEnd()
  21168. return v, changed
  21169. }
  21170. d.depthIncr()
  21171. var mk float64
  21172. var mv int16
  21173. hasLen := containerLen > 0
  21174. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21175. if esep {
  21176. dd.ReadMapElemKey()
  21177. }
  21178. mk = dd.DecodeFloat64()
  21179. if esep {
  21180. dd.ReadMapElemValue()
  21181. }
  21182. if dd.TryDecodeAsNil() {
  21183. if v == nil {
  21184. } else if d.h.DeleteOnNilMapValue {
  21185. delete(v, mk)
  21186. } else {
  21187. v[mk] = 0
  21188. }
  21189. continue
  21190. }
  21191. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  21192. if v != nil {
  21193. v[mk] = mv
  21194. }
  21195. }
  21196. dd.ReadMapEnd()
  21197. d.depthDecr()
  21198. return v, changed
  21199. }
  21200. func (d *Decoder) fastpathDecMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  21201. if rv.Kind() == reflect.Ptr {
  21202. vp := rv2i(rv).(*map[float64]int32)
  21203. v, changed := fastpathTV.DecMapFloat64Int32V(*vp, true, d)
  21204. if changed {
  21205. *vp = v
  21206. }
  21207. } else {
  21208. fastpathTV.DecMapFloat64Int32V(rv2i(rv).(map[float64]int32), false, d)
  21209. }
  21210. }
  21211. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, d *Decoder) {
  21212. v, changed := f.DecMapFloat64Int32V(*vp, true, d)
  21213. if changed {
  21214. *vp = v
  21215. }
  21216. }
  21217. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, canChange bool,
  21218. d *Decoder) (_ map[float64]int32, changed bool) {
  21219. dd, esep := d.d, d.hh.hasElemSeparators()
  21220. containerLen := dd.ReadMapStart()
  21221. if canChange && v == nil {
  21222. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21223. v = make(map[float64]int32, xlen)
  21224. changed = true
  21225. }
  21226. if containerLen == 0 {
  21227. dd.ReadMapEnd()
  21228. return v, changed
  21229. }
  21230. d.depthIncr()
  21231. var mk float64
  21232. var mv int32
  21233. hasLen := containerLen > 0
  21234. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21235. if esep {
  21236. dd.ReadMapElemKey()
  21237. }
  21238. mk = dd.DecodeFloat64()
  21239. if esep {
  21240. dd.ReadMapElemValue()
  21241. }
  21242. if dd.TryDecodeAsNil() {
  21243. if v == nil {
  21244. } else if d.h.DeleteOnNilMapValue {
  21245. delete(v, mk)
  21246. } else {
  21247. v[mk] = 0
  21248. }
  21249. continue
  21250. }
  21251. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  21252. if v != nil {
  21253. v[mk] = mv
  21254. }
  21255. }
  21256. dd.ReadMapEnd()
  21257. d.depthDecr()
  21258. return v, changed
  21259. }
  21260. func (d *Decoder) fastpathDecMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  21261. if rv.Kind() == reflect.Ptr {
  21262. vp := rv2i(rv).(*map[float64]int64)
  21263. v, changed := fastpathTV.DecMapFloat64Int64V(*vp, true, d)
  21264. if changed {
  21265. *vp = v
  21266. }
  21267. } else {
  21268. fastpathTV.DecMapFloat64Int64V(rv2i(rv).(map[float64]int64), false, d)
  21269. }
  21270. }
  21271. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, d *Decoder) {
  21272. v, changed := f.DecMapFloat64Int64V(*vp, true, d)
  21273. if changed {
  21274. *vp = v
  21275. }
  21276. }
  21277. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, canChange bool,
  21278. d *Decoder) (_ map[float64]int64, changed bool) {
  21279. dd, esep := d.d, d.hh.hasElemSeparators()
  21280. containerLen := dd.ReadMapStart()
  21281. if canChange && v == nil {
  21282. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21283. v = make(map[float64]int64, xlen)
  21284. changed = true
  21285. }
  21286. if containerLen == 0 {
  21287. dd.ReadMapEnd()
  21288. return v, changed
  21289. }
  21290. d.depthIncr()
  21291. var mk float64
  21292. var mv int64
  21293. hasLen := containerLen > 0
  21294. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21295. if esep {
  21296. dd.ReadMapElemKey()
  21297. }
  21298. mk = dd.DecodeFloat64()
  21299. if esep {
  21300. dd.ReadMapElemValue()
  21301. }
  21302. if dd.TryDecodeAsNil() {
  21303. if v == nil {
  21304. } else if d.h.DeleteOnNilMapValue {
  21305. delete(v, mk)
  21306. } else {
  21307. v[mk] = 0
  21308. }
  21309. continue
  21310. }
  21311. mv = dd.DecodeInt64()
  21312. if v != nil {
  21313. v[mk] = mv
  21314. }
  21315. }
  21316. dd.ReadMapEnd()
  21317. d.depthDecr()
  21318. return v, changed
  21319. }
  21320. func (d *Decoder) fastpathDecMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  21321. if rv.Kind() == reflect.Ptr {
  21322. vp := rv2i(rv).(*map[float64]float32)
  21323. v, changed := fastpathTV.DecMapFloat64Float32V(*vp, true, d)
  21324. if changed {
  21325. *vp = v
  21326. }
  21327. } else {
  21328. fastpathTV.DecMapFloat64Float32V(rv2i(rv).(map[float64]float32), false, d)
  21329. }
  21330. }
  21331. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, d *Decoder) {
  21332. v, changed := f.DecMapFloat64Float32V(*vp, true, d)
  21333. if changed {
  21334. *vp = v
  21335. }
  21336. }
  21337. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, canChange bool,
  21338. d *Decoder) (_ map[float64]float32, changed bool) {
  21339. dd, esep := d.d, d.hh.hasElemSeparators()
  21340. containerLen := dd.ReadMapStart()
  21341. if canChange && v == nil {
  21342. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21343. v = make(map[float64]float32, xlen)
  21344. changed = true
  21345. }
  21346. if containerLen == 0 {
  21347. dd.ReadMapEnd()
  21348. return v, changed
  21349. }
  21350. d.depthIncr()
  21351. var mk float64
  21352. var mv float32
  21353. hasLen := containerLen > 0
  21354. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21355. if esep {
  21356. dd.ReadMapElemKey()
  21357. }
  21358. mk = dd.DecodeFloat64()
  21359. if esep {
  21360. dd.ReadMapElemValue()
  21361. }
  21362. if dd.TryDecodeAsNil() {
  21363. if v == nil {
  21364. } else if d.h.DeleteOnNilMapValue {
  21365. delete(v, mk)
  21366. } else {
  21367. v[mk] = 0
  21368. }
  21369. continue
  21370. }
  21371. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21372. if v != nil {
  21373. v[mk] = mv
  21374. }
  21375. }
  21376. dd.ReadMapEnd()
  21377. d.depthDecr()
  21378. return v, changed
  21379. }
  21380. func (d *Decoder) fastpathDecMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  21381. if rv.Kind() == reflect.Ptr {
  21382. vp := rv2i(rv).(*map[float64]float64)
  21383. v, changed := fastpathTV.DecMapFloat64Float64V(*vp, true, d)
  21384. if changed {
  21385. *vp = v
  21386. }
  21387. } else {
  21388. fastpathTV.DecMapFloat64Float64V(rv2i(rv).(map[float64]float64), false, d)
  21389. }
  21390. }
  21391. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, d *Decoder) {
  21392. v, changed := f.DecMapFloat64Float64V(*vp, true, d)
  21393. if changed {
  21394. *vp = v
  21395. }
  21396. }
  21397. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, canChange bool,
  21398. d *Decoder) (_ map[float64]float64, changed bool) {
  21399. dd, esep := d.d, d.hh.hasElemSeparators()
  21400. containerLen := dd.ReadMapStart()
  21401. if canChange && v == nil {
  21402. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21403. v = make(map[float64]float64, xlen)
  21404. changed = true
  21405. }
  21406. if containerLen == 0 {
  21407. dd.ReadMapEnd()
  21408. return v, changed
  21409. }
  21410. d.depthIncr()
  21411. var mk float64
  21412. var mv float64
  21413. hasLen := containerLen > 0
  21414. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21415. if esep {
  21416. dd.ReadMapElemKey()
  21417. }
  21418. mk = dd.DecodeFloat64()
  21419. if esep {
  21420. dd.ReadMapElemValue()
  21421. }
  21422. if dd.TryDecodeAsNil() {
  21423. if v == nil {
  21424. } else if d.h.DeleteOnNilMapValue {
  21425. delete(v, mk)
  21426. } else {
  21427. v[mk] = 0
  21428. }
  21429. continue
  21430. }
  21431. mv = dd.DecodeFloat64()
  21432. if v != nil {
  21433. v[mk] = mv
  21434. }
  21435. }
  21436. dd.ReadMapEnd()
  21437. d.depthDecr()
  21438. return v, changed
  21439. }
  21440. func (d *Decoder) fastpathDecMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  21441. if rv.Kind() == reflect.Ptr {
  21442. vp := rv2i(rv).(*map[float64]bool)
  21443. v, changed := fastpathTV.DecMapFloat64BoolV(*vp, true, d)
  21444. if changed {
  21445. *vp = v
  21446. }
  21447. } else {
  21448. fastpathTV.DecMapFloat64BoolV(rv2i(rv).(map[float64]bool), false, d)
  21449. }
  21450. }
  21451. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, d *Decoder) {
  21452. v, changed := f.DecMapFloat64BoolV(*vp, true, d)
  21453. if changed {
  21454. *vp = v
  21455. }
  21456. }
  21457. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, canChange bool,
  21458. d *Decoder) (_ map[float64]bool, changed bool) {
  21459. dd, esep := d.d, d.hh.hasElemSeparators()
  21460. containerLen := dd.ReadMapStart()
  21461. if canChange && v == nil {
  21462. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21463. v = make(map[float64]bool, xlen)
  21464. changed = true
  21465. }
  21466. if containerLen == 0 {
  21467. dd.ReadMapEnd()
  21468. return v, changed
  21469. }
  21470. d.depthIncr()
  21471. var mk float64
  21472. var mv bool
  21473. hasLen := containerLen > 0
  21474. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21475. if esep {
  21476. dd.ReadMapElemKey()
  21477. }
  21478. mk = dd.DecodeFloat64()
  21479. if esep {
  21480. dd.ReadMapElemValue()
  21481. }
  21482. if dd.TryDecodeAsNil() {
  21483. if v == nil {
  21484. } else if d.h.DeleteOnNilMapValue {
  21485. delete(v, mk)
  21486. } else {
  21487. v[mk] = false
  21488. }
  21489. continue
  21490. }
  21491. mv = dd.DecodeBool()
  21492. if v != nil {
  21493. v[mk] = mv
  21494. }
  21495. }
  21496. dd.ReadMapEnd()
  21497. d.depthDecr()
  21498. return v, changed
  21499. }
  21500. func (d *Decoder) fastpathDecMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  21501. if rv.Kind() == reflect.Ptr {
  21502. vp := rv2i(rv).(*map[uint]interface{})
  21503. v, changed := fastpathTV.DecMapUintIntfV(*vp, true, d)
  21504. if changed {
  21505. *vp = v
  21506. }
  21507. } else {
  21508. fastpathTV.DecMapUintIntfV(rv2i(rv).(map[uint]interface{}), false, d)
  21509. }
  21510. }
  21511. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, d *Decoder) {
  21512. v, changed := f.DecMapUintIntfV(*vp, true, d)
  21513. if changed {
  21514. *vp = v
  21515. }
  21516. }
  21517. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, canChange bool,
  21518. d *Decoder) (_ map[uint]interface{}, changed bool) {
  21519. dd, esep := d.d, d.hh.hasElemSeparators()
  21520. containerLen := dd.ReadMapStart()
  21521. if canChange && v == nil {
  21522. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21523. v = make(map[uint]interface{}, xlen)
  21524. changed = true
  21525. }
  21526. if containerLen == 0 {
  21527. dd.ReadMapEnd()
  21528. return v, changed
  21529. }
  21530. d.depthIncr()
  21531. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  21532. var mk uint
  21533. var mv interface{}
  21534. hasLen := containerLen > 0
  21535. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21536. if esep {
  21537. dd.ReadMapElemKey()
  21538. }
  21539. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21540. if esep {
  21541. dd.ReadMapElemValue()
  21542. }
  21543. if dd.TryDecodeAsNil() {
  21544. if v == nil {
  21545. } else if d.h.DeleteOnNilMapValue {
  21546. delete(v, mk)
  21547. } else {
  21548. v[mk] = nil
  21549. }
  21550. continue
  21551. }
  21552. if mapGet {
  21553. mv = v[mk]
  21554. } else {
  21555. mv = nil
  21556. }
  21557. d.decode(&mv)
  21558. if v != nil {
  21559. v[mk] = mv
  21560. }
  21561. }
  21562. dd.ReadMapEnd()
  21563. d.depthDecr()
  21564. return v, changed
  21565. }
  21566. func (d *Decoder) fastpathDecMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  21567. if rv.Kind() == reflect.Ptr {
  21568. vp := rv2i(rv).(*map[uint]string)
  21569. v, changed := fastpathTV.DecMapUintStringV(*vp, true, d)
  21570. if changed {
  21571. *vp = v
  21572. }
  21573. } else {
  21574. fastpathTV.DecMapUintStringV(rv2i(rv).(map[uint]string), false, d)
  21575. }
  21576. }
  21577. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, d *Decoder) {
  21578. v, changed := f.DecMapUintStringV(*vp, true, d)
  21579. if changed {
  21580. *vp = v
  21581. }
  21582. }
  21583. func (_ fastpathT) DecMapUintStringV(v map[uint]string, canChange bool,
  21584. d *Decoder) (_ map[uint]string, changed bool) {
  21585. dd, esep := d.d, d.hh.hasElemSeparators()
  21586. containerLen := dd.ReadMapStart()
  21587. if canChange && v == nil {
  21588. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21589. v = make(map[uint]string, xlen)
  21590. changed = true
  21591. }
  21592. if containerLen == 0 {
  21593. dd.ReadMapEnd()
  21594. return v, changed
  21595. }
  21596. d.depthIncr()
  21597. var mk uint
  21598. var mv string
  21599. hasLen := containerLen > 0
  21600. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21601. if esep {
  21602. dd.ReadMapElemKey()
  21603. }
  21604. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21605. if esep {
  21606. dd.ReadMapElemValue()
  21607. }
  21608. if dd.TryDecodeAsNil() {
  21609. if v == nil {
  21610. } else if d.h.DeleteOnNilMapValue {
  21611. delete(v, mk)
  21612. } else {
  21613. v[mk] = ""
  21614. }
  21615. continue
  21616. }
  21617. mv = dd.DecodeString()
  21618. if v != nil {
  21619. v[mk] = mv
  21620. }
  21621. }
  21622. dd.ReadMapEnd()
  21623. d.depthDecr()
  21624. return v, changed
  21625. }
  21626. func (d *Decoder) fastpathDecMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  21627. if rv.Kind() == reflect.Ptr {
  21628. vp := rv2i(rv).(*map[uint]uint)
  21629. v, changed := fastpathTV.DecMapUintUintV(*vp, true, d)
  21630. if changed {
  21631. *vp = v
  21632. }
  21633. } else {
  21634. fastpathTV.DecMapUintUintV(rv2i(rv).(map[uint]uint), false, d)
  21635. }
  21636. }
  21637. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, d *Decoder) {
  21638. v, changed := f.DecMapUintUintV(*vp, true, d)
  21639. if changed {
  21640. *vp = v
  21641. }
  21642. }
  21643. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, canChange bool,
  21644. d *Decoder) (_ map[uint]uint, changed bool) {
  21645. dd, esep := d.d, d.hh.hasElemSeparators()
  21646. containerLen := dd.ReadMapStart()
  21647. if canChange && v == nil {
  21648. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21649. v = make(map[uint]uint, xlen)
  21650. changed = true
  21651. }
  21652. if containerLen == 0 {
  21653. dd.ReadMapEnd()
  21654. return v, changed
  21655. }
  21656. d.depthIncr()
  21657. var mk uint
  21658. var mv uint
  21659. hasLen := containerLen > 0
  21660. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21661. if esep {
  21662. dd.ReadMapElemKey()
  21663. }
  21664. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21665. if esep {
  21666. dd.ReadMapElemValue()
  21667. }
  21668. if dd.TryDecodeAsNil() {
  21669. if v == nil {
  21670. } else if d.h.DeleteOnNilMapValue {
  21671. delete(v, mk)
  21672. } else {
  21673. v[mk] = 0
  21674. }
  21675. continue
  21676. }
  21677. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21678. if v != nil {
  21679. v[mk] = mv
  21680. }
  21681. }
  21682. dd.ReadMapEnd()
  21683. d.depthDecr()
  21684. return v, changed
  21685. }
  21686. func (d *Decoder) fastpathDecMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  21687. if rv.Kind() == reflect.Ptr {
  21688. vp := rv2i(rv).(*map[uint]uint8)
  21689. v, changed := fastpathTV.DecMapUintUint8V(*vp, true, d)
  21690. if changed {
  21691. *vp = v
  21692. }
  21693. } else {
  21694. fastpathTV.DecMapUintUint8V(rv2i(rv).(map[uint]uint8), false, d)
  21695. }
  21696. }
  21697. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, d *Decoder) {
  21698. v, changed := f.DecMapUintUint8V(*vp, true, d)
  21699. if changed {
  21700. *vp = v
  21701. }
  21702. }
  21703. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, canChange bool,
  21704. d *Decoder) (_ map[uint]uint8, changed bool) {
  21705. dd, esep := d.d, d.hh.hasElemSeparators()
  21706. containerLen := dd.ReadMapStart()
  21707. if canChange && v == nil {
  21708. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21709. v = make(map[uint]uint8, xlen)
  21710. changed = true
  21711. }
  21712. if containerLen == 0 {
  21713. dd.ReadMapEnd()
  21714. return v, changed
  21715. }
  21716. d.depthIncr()
  21717. var mk uint
  21718. var mv uint8
  21719. hasLen := containerLen > 0
  21720. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21721. if esep {
  21722. dd.ReadMapElemKey()
  21723. }
  21724. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21725. if esep {
  21726. dd.ReadMapElemValue()
  21727. }
  21728. if dd.TryDecodeAsNil() {
  21729. if v == nil {
  21730. } else if d.h.DeleteOnNilMapValue {
  21731. delete(v, mk)
  21732. } else {
  21733. v[mk] = 0
  21734. }
  21735. continue
  21736. }
  21737. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  21738. if v != nil {
  21739. v[mk] = mv
  21740. }
  21741. }
  21742. dd.ReadMapEnd()
  21743. d.depthDecr()
  21744. return v, changed
  21745. }
  21746. func (d *Decoder) fastpathDecMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  21747. if rv.Kind() == reflect.Ptr {
  21748. vp := rv2i(rv).(*map[uint]uint16)
  21749. v, changed := fastpathTV.DecMapUintUint16V(*vp, true, d)
  21750. if changed {
  21751. *vp = v
  21752. }
  21753. } else {
  21754. fastpathTV.DecMapUintUint16V(rv2i(rv).(map[uint]uint16), false, d)
  21755. }
  21756. }
  21757. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, d *Decoder) {
  21758. v, changed := f.DecMapUintUint16V(*vp, true, d)
  21759. if changed {
  21760. *vp = v
  21761. }
  21762. }
  21763. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, canChange bool,
  21764. d *Decoder) (_ map[uint]uint16, changed bool) {
  21765. dd, esep := d.d, d.hh.hasElemSeparators()
  21766. containerLen := dd.ReadMapStart()
  21767. if canChange && v == nil {
  21768. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  21769. v = make(map[uint]uint16, xlen)
  21770. changed = true
  21771. }
  21772. if containerLen == 0 {
  21773. dd.ReadMapEnd()
  21774. return v, changed
  21775. }
  21776. d.depthIncr()
  21777. var mk uint
  21778. var mv uint16
  21779. hasLen := containerLen > 0
  21780. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21781. if esep {
  21782. dd.ReadMapElemKey()
  21783. }
  21784. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21785. if esep {
  21786. dd.ReadMapElemValue()
  21787. }
  21788. if dd.TryDecodeAsNil() {
  21789. if v == nil {
  21790. } else if d.h.DeleteOnNilMapValue {
  21791. delete(v, mk)
  21792. } else {
  21793. v[mk] = 0
  21794. }
  21795. continue
  21796. }
  21797. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  21798. if v != nil {
  21799. v[mk] = mv
  21800. }
  21801. }
  21802. dd.ReadMapEnd()
  21803. d.depthDecr()
  21804. return v, changed
  21805. }
  21806. func (d *Decoder) fastpathDecMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  21807. if rv.Kind() == reflect.Ptr {
  21808. vp := rv2i(rv).(*map[uint]uint32)
  21809. v, changed := fastpathTV.DecMapUintUint32V(*vp, true, d)
  21810. if changed {
  21811. *vp = v
  21812. }
  21813. } else {
  21814. fastpathTV.DecMapUintUint32V(rv2i(rv).(map[uint]uint32), false, d)
  21815. }
  21816. }
  21817. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, d *Decoder) {
  21818. v, changed := f.DecMapUintUint32V(*vp, true, d)
  21819. if changed {
  21820. *vp = v
  21821. }
  21822. }
  21823. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, canChange bool,
  21824. d *Decoder) (_ map[uint]uint32, changed bool) {
  21825. dd, esep := d.d, d.hh.hasElemSeparators()
  21826. containerLen := dd.ReadMapStart()
  21827. if canChange && v == nil {
  21828. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21829. v = make(map[uint]uint32, xlen)
  21830. changed = true
  21831. }
  21832. if containerLen == 0 {
  21833. dd.ReadMapEnd()
  21834. return v, changed
  21835. }
  21836. d.depthIncr()
  21837. var mk uint
  21838. var mv uint32
  21839. hasLen := containerLen > 0
  21840. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21841. if esep {
  21842. dd.ReadMapElemKey()
  21843. }
  21844. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21845. if esep {
  21846. dd.ReadMapElemValue()
  21847. }
  21848. if dd.TryDecodeAsNil() {
  21849. if v == nil {
  21850. } else if d.h.DeleteOnNilMapValue {
  21851. delete(v, mk)
  21852. } else {
  21853. v[mk] = 0
  21854. }
  21855. continue
  21856. }
  21857. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  21858. if v != nil {
  21859. v[mk] = mv
  21860. }
  21861. }
  21862. dd.ReadMapEnd()
  21863. d.depthDecr()
  21864. return v, changed
  21865. }
  21866. func (d *Decoder) fastpathDecMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  21867. if rv.Kind() == reflect.Ptr {
  21868. vp := rv2i(rv).(*map[uint]uint64)
  21869. v, changed := fastpathTV.DecMapUintUint64V(*vp, true, d)
  21870. if changed {
  21871. *vp = v
  21872. }
  21873. } else {
  21874. fastpathTV.DecMapUintUint64V(rv2i(rv).(map[uint]uint64), false, d)
  21875. }
  21876. }
  21877. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, d *Decoder) {
  21878. v, changed := f.DecMapUintUint64V(*vp, true, d)
  21879. if changed {
  21880. *vp = v
  21881. }
  21882. }
  21883. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, canChange bool,
  21884. d *Decoder) (_ map[uint]uint64, changed bool) {
  21885. dd, esep := d.d, d.hh.hasElemSeparators()
  21886. containerLen := dd.ReadMapStart()
  21887. if canChange && v == nil {
  21888. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21889. v = make(map[uint]uint64, xlen)
  21890. changed = true
  21891. }
  21892. if containerLen == 0 {
  21893. dd.ReadMapEnd()
  21894. return v, changed
  21895. }
  21896. d.depthIncr()
  21897. var mk uint
  21898. var mv uint64
  21899. hasLen := containerLen > 0
  21900. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21901. if esep {
  21902. dd.ReadMapElemKey()
  21903. }
  21904. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21905. if esep {
  21906. dd.ReadMapElemValue()
  21907. }
  21908. if dd.TryDecodeAsNil() {
  21909. if v == nil {
  21910. } else if d.h.DeleteOnNilMapValue {
  21911. delete(v, mk)
  21912. } else {
  21913. v[mk] = 0
  21914. }
  21915. continue
  21916. }
  21917. mv = dd.DecodeUint64()
  21918. if v != nil {
  21919. v[mk] = mv
  21920. }
  21921. }
  21922. dd.ReadMapEnd()
  21923. d.depthDecr()
  21924. return v, changed
  21925. }
  21926. func (d *Decoder) fastpathDecMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  21927. if rv.Kind() == reflect.Ptr {
  21928. vp := rv2i(rv).(*map[uint]uintptr)
  21929. v, changed := fastpathTV.DecMapUintUintptrV(*vp, true, d)
  21930. if changed {
  21931. *vp = v
  21932. }
  21933. } else {
  21934. fastpathTV.DecMapUintUintptrV(rv2i(rv).(map[uint]uintptr), false, d)
  21935. }
  21936. }
  21937. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, d *Decoder) {
  21938. v, changed := f.DecMapUintUintptrV(*vp, true, d)
  21939. if changed {
  21940. *vp = v
  21941. }
  21942. }
  21943. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, canChange bool,
  21944. d *Decoder) (_ map[uint]uintptr, changed bool) {
  21945. dd, esep := d.d, d.hh.hasElemSeparators()
  21946. containerLen := dd.ReadMapStart()
  21947. if canChange && v == nil {
  21948. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21949. v = make(map[uint]uintptr, xlen)
  21950. changed = true
  21951. }
  21952. if containerLen == 0 {
  21953. dd.ReadMapEnd()
  21954. return v, changed
  21955. }
  21956. d.depthIncr()
  21957. var mk uint
  21958. var mv uintptr
  21959. hasLen := containerLen > 0
  21960. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21961. if esep {
  21962. dd.ReadMapElemKey()
  21963. }
  21964. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21965. if esep {
  21966. dd.ReadMapElemValue()
  21967. }
  21968. if dd.TryDecodeAsNil() {
  21969. if v == nil {
  21970. } else if d.h.DeleteOnNilMapValue {
  21971. delete(v, mk)
  21972. } else {
  21973. v[mk] = 0
  21974. }
  21975. continue
  21976. }
  21977. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21978. if v != nil {
  21979. v[mk] = mv
  21980. }
  21981. }
  21982. dd.ReadMapEnd()
  21983. d.depthDecr()
  21984. return v, changed
  21985. }
  21986. func (d *Decoder) fastpathDecMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  21987. if rv.Kind() == reflect.Ptr {
  21988. vp := rv2i(rv).(*map[uint]int)
  21989. v, changed := fastpathTV.DecMapUintIntV(*vp, true, d)
  21990. if changed {
  21991. *vp = v
  21992. }
  21993. } else {
  21994. fastpathTV.DecMapUintIntV(rv2i(rv).(map[uint]int), false, d)
  21995. }
  21996. }
  21997. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, d *Decoder) {
  21998. v, changed := f.DecMapUintIntV(*vp, true, d)
  21999. if changed {
  22000. *vp = v
  22001. }
  22002. }
  22003. func (_ fastpathT) DecMapUintIntV(v map[uint]int, canChange bool,
  22004. d *Decoder) (_ map[uint]int, changed bool) {
  22005. dd, esep := d.d, d.hh.hasElemSeparators()
  22006. containerLen := dd.ReadMapStart()
  22007. if canChange && v == nil {
  22008. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22009. v = make(map[uint]int, xlen)
  22010. changed = true
  22011. }
  22012. if containerLen == 0 {
  22013. dd.ReadMapEnd()
  22014. return v, changed
  22015. }
  22016. d.depthIncr()
  22017. var mk uint
  22018. var mv int
  22019. hasLen := containerLen > 0
  22020. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22021. if esep {
  22022. dd.ReadMapElemKey()
  22023. }
  22024. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22025. if esep {
  22026. dd.ReadMapElemValue()
  22027. }
  22028. if dd.TryDecodeAsNil() {
  22029. if v == nil {
  22030. } else if d.h.DeleteOnNilMapValue {
  22031. delete(v, mk)
  22032. } else {
  22033. v[mk] = 0
  22034. }
  22035. continue
  22036. }
  22037. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  22038. if v != nil {
  22039. v[mk] = mv
  22040. }
  22041. }
  22042. dd.ReadMapEnd()
  22043. d.depthDecr()
  22044. return v, changed
  22045. }
  22046. func (d *Decoder) fastpathDecMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  22047. if rv.Kind() == reflect.Ptr {
  22048. vp := rv2i(rv).(*map[uint]int8)
  22049. v, changed := fastpathTV.DecMapUintInt8V(*vp, true, d)
  22050. if changed {
  22051. *vp = v
  22052. }
  22053. } else {
  22054. fastpathTV.DecMapUintInt8V(rv2i(rv).(map[uint]int8), false, d)
  22055. }
  22056. }
  22057. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, d *Decoder) {
  22058. v, changed := f.DecMapUintInt8V(*vp, true, d)
  22059. if changed {
  22060. *vp = v
  22061. }
  22062. }
  22063. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, canChange bool,
  22064. d *Decoder) (_ map[uint]int8, changed bool) {
  22065. dd, esep := d.d, d.hh.hasElemSeparators()
  22066. containerLen := dd.ReadMapStart()
  22067. if canChange && v == nil {
  22068. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22069. v = make(map[uint]int8, xlen)
  22070. changed = true
  22071. }
  22072. if containerLen == 0 {
  22073. dd.ReadMapEnd()
  22074. return v, changed
  22075. }
  22076. d.depthIncr()
  22077. var mk uint
  22078. var mv int8
  22079. hasLen := containerLen > 0
  22080. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22081. if esep {
  22082. dd.ReadMapElemKey()
  22083. }
  22084. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22085. if esep {
  22086. dd.ReadMapElemValue()
  22087. }
  22088. if dd.TryDecodeAsNil() {
  22089. if v == nil {
  22090. } else if d.h.DeleteOnNilMapValue {
  22091. delete(v, mk)
  22092. } else {
  22093. v[mk] = 0
  22094. }
  22095. continue
  22096. }
  22097. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  22098. if v != nil {
  22099. v[mk] = mv
  22100. }
  22101. }
  22102. dd.ReadMapEnd()
  22103. d.depthDecr()
  22104. return v, changed
  22105. }
  22106. func (d *Decoder) fastpathDecMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  22107. if rv.Kind() == reflect.Ptr {
  22108. vp := rv2i(rv).(*map[uint]int16)
  22109. v, changed := fastpathTV.DecMapUintInt16V(*vp, true, d)
  22110. if changed {
  22111. *vp = v
  22112. }
  22113. } else {
  22114. fastpathTV.DecMapUintInt16V(rv2i(rv).(map[uint]int16), false, d)
  22115. }
  22116. }
  22117. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, d *Decoder) {
  22118. v, changed := f.DecMapUintInt16V(*vp, true, d)
  22119. if changed {
  22120. *vp = v
  22121. }
  22122. }
  22123. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, canChange bool,
  22124. d *Decoder) (_ map[uint]int16, changed bool) {
  22125. dd, esep := d.d, d.hh.hasElemSeparators()
  22126. containerLen := dd.ReadMapStart()
  22127. if canChange && v == nil {
  22128. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22129. v = make(map[uint]int16, xlen)
  22130. changed = true
  22131. }
  22132. if containerLen == 0 {
  22133. dd.ReadMapEnd()
  22134. return v, changed
  22135. }
  22136. d.depthIncr()
  22137. var mk uint
  22138. var mv int16
  22139. hasLen := containerLen > 0
  22140. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22141. if esep {
  22142. dd.ReadMapElemKey()
  22143. }
  22144. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22145. if esep {
  22146. dd.ReadMapElemValue()
  22147. }
  22148. if dd.TryDecodeAsNil() {
  22149. if v == nil {
  22150. } else if d.h.DeleteOnNilMapValue {
  22151. delete(v, mk)
  22152. } else {
  22153. v[mk] = 0
  22154. }
  22155. continue
  22156. }
  22157. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  22158. if v != nil {
  22159. v[mk] = mv
  22160. }
  22161. }
  22162. dd.ReadMapEnd()
  22163. d.depthDecr()
  22164. return v, changed
  22165. }
  22166. func (d *Decoder) fastpathDecMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  22167. if rv.Kind() == reflect.Ptr {
  22168. vp := rv2i(rv).(*map[uint]int32)
  22169. v, changed := fastpathTV.DecMapUintInt32V(*vp, true, d)
  22170. if changed {
  22171. *vp = v
  22172. }
  22173. } else {
  22174. fastpathTV.DecMapUintInt32V(rv2i(rv).(map[uint]int32), false, d)
  22175. }
  22176. }
  22177. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, d *Decoder) {
  22178. v, changed := f.DecMapUintInt32V(*vp, true, d)
  22179. if changed {
  22180. *vp = v
  22181. }
  22182. }
  22183. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, canChange bool,
  22184. d *Decoder) (_ map[uint]int32, changed bool) {
  22185. dd, esep := d.d, d.hh.hasElemSeparators()
  22186. containerLen := dd.ReadMapStart()
  22187. if canChange && v == nil {
  22188. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22189. v = make(map[uint]int32, xlen)
  22190. changed = true
  22191. }
  22192. if containerLen == 0 {
  22193. dd.ReadMapEnd()
  22194. return v, changed
  22195. }
  22196. d.depthIncr()
  22197. var mk uint
  22198. var mv int32
  22199. hasLen := containerLen > 0
  22200. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22201. if esep {
  22202. dd.ReadMapElemKey()
  22203. }
  22204. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22205. if esep {
  22206. dd.ReadMapElemValue()
  22207. }
  22208. if dd.TryDecodeAsNil() {
  22209. if v == nil {
  22210. } else if d.h.DeleteOnNilMapValue {
  22211. delete(v, mk)
  22212. } else {
  22213. v[mk] = 0
  22214. }
  22215. continue
  22216. }
  22217. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  22218. if v != nil {
  22219. v[mk] = mv
  22220. }
  22221. }
  22222. dd.ReadMapEnd()
  22223. d.depthDecr()
  22224. return v, changed
  22225. }
  22226. func (d *Decoder) fastpathDecMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  22227. if rv.Kind() == reflect.Ptr {
  22228. vp := rv2i(rv).(*map[uint]int64)
  22229. v, changed := fastpathTV.DecMapUintInt64V(*vp, true, d)
  22230. if changed {
  22231. *vp = v
  22232. }
  22233. } else {
  22234. fastpathTV.DecMapUintInt64V(rv2i(rv).(map[uint]int64), false, d)
  22235. }
  22236. }
  22237. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, d *Decoder) {
  22238. v, changed := f.DecMapUintInt64V(*vp, true, d)
  22239. if changed {
  22240. *vp = v
  22241. }
  22242. }
  22243. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, canChange bool,
  22244. d *Decoder) (_ map[uint]int64, changed bool) {
  22245. dd, esep := d.d, d.hh.hasElemSeparators()
  22246. containerLen := dd.ReadMapStart()
  22247. if canChange && v == nil {
  22248. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22249. v = make(map[uint]int64, xlen)
  22250. changed = true
  22251. }
  22252. if containerLen == 0 {
  22253. dd.ReadMapEnd()
  22254. return v, changed
  22255. }
  22256. d.depthIncr()
  22257. var mk uint
  22258. var mv int64
  22259. hasLen := containerLen > 0
  22260. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22261. if esep {
  22262. dd.ReadMapElemKey()
  22263. }
  22264. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22265. if esep {
  22266. dd.ReadMapElemValue()
  22267. }
  22268. if dd.TryDecodeAsNil() {
  22269. if v == nil {
  22270. } else if d.h.DeleteOnNilMapValue {
  22271. delete(v, mk)
  22272. } else {
  22273. v[mk] = 0
  22274. }
  22275. continue
  22276. }
  22277. mv = dd.DecodeInt64()
  22278. if v != nil {
  22279. v[mk] = mv
  22280. }
  22281. }
  22282. dd.ReadMapEnd()
  22283. d.depthDecr()
  22284. return v, changed
  22285. }
  22286. func (d *Decoder) fastpathDecMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  22287. if rv.Kind() == reflect.Ptr {
  22288. vp := rv2i(rv).(*map[uint]float32)
  22289. v, changed := fastpathTV.DecMapUintFloat32V(*vp, true, d)
  22290. if changed {
  22291. *vp = v
  22292. }
  22293. } else {
  22294. fastpathTV.DecMapUintFloat32V(rv2i(rv).(map[uint]float32), false, d)
  22295. }
  22296. }
  22297. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, d *Decoder) {
  22298. v, changed := f.DecMapUintFloat32V(*vp, true, d)
  22299. if changed {
  22300. *vp = v
  22301. }
  22302. }
  22303. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, canChange bool,
  22304. d *Decoder) (_ map[uint]float32, changed bool) {
  22305. dd, esep := d.d, d.hh.hasElemSeparators()
  22306. containerLen := dd.ReadMapStart()
  22307. if canChange && v == nil {
  22308. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22309. v = make(map[uint]float32, xlen)
  22310. changed = true
  22311. }
  22312. if containerLen == 0 {
  22313. dd.ReadMapEnd()
  22314. return v, changed
  22315. }
  22316. d.depthIncr()
  22317. var mk uint
  22318. var mv float32
  22319. hasLen := containerLen > 0
  22320. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22321. if esep {
  22322. dd.ReadMapElemKey()
  22323. }
  22324. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22325. if esep {
  22326. dd.ReadMapElemValue()
  22327. }
  22328. if dd.TryDecodeAsNil() {
  22329. if v == nil {
  22330. } else if d.h.DeleteOnNilMapValue {
  22331. delete(v, mk)
  22332. } else {
  22333. v[mk] = 0
  22334. }
  22335. continue
  22336. }
  22337. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  22338. if v != nil {
  22339. v[mk] = mv
  22340. }
  22341. }
  22342. dd.ReadMapEnd()
  22343. d.depthDecr()
  22344. return v, changed
  22345. }
  22346. func (d *Decoder) fastpathDecMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  22347. if rv.Kind() == reflect.Ptr {
  22348. vp := rv2i(rv).(*map[uint]float64)
  22349. v, changed := fastpathTV.DecMapUintFloat64V(*vp, true, d)
  22350. if changed {
  22351. *vp = v
  22352. }
  22353. } else {
  22354. fastpathTV.DecMapUintFloat64V(rv2i(rv).(map[uint]float64), false, d)
  22355. }
  22356. }
  22357. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, d *Decoder) {
  22358. v, changed := f.DecMapUintFloat64V(*vp, true, d)
  22359. if changed {
  22360. *vp = v
  22361. }
  22362. }
  22363. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, canChange bool,
  22364. d *Decoder) (_ map[uint]float64, changed bool) {
  22365. dd, esep := d.d, d.hh.hasElemSeparators()
  22366. containerLen := dd.ReadMapStart()
  22367. if canChange && v == nil {
  22368. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22369. v = make(map[uint]float64, xlen)
  22370. changed = true
  22371. }
  22372. if containerLen == 0 {
  22373. dd.ReadMapEnd()
  22374. return v, changed
  22375. }
  22376. d.depthIncr()
  22377. var mk uint
  22378. var mv float64
  22379. hasLen := containerLen > 0
  22380. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22381. if esep {
  22382. dd.ReadMapElemKey()
  22383. }
  22384. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22385. if esep {
  22386. dd.ReadMapElemValue()
  22387. }
  22388. if dd.TryDecodeAsNil() {
  22389. if v == nil {
  22390. } else if d.h.DeleteOnNilMapValue {
  22391. delete(v, mk)
  22392. } else {
  22393. v[mk] = 0
  22394. }
  22395. continue
  22396. }
  22397. mv = dd.DecodeFloat64()
  22398. if v != nil {
  22399. v[mk] = mv
  22400. }
  22401. }
  22402. dd.ReadMapEnd()
  22403. d.depthDecr()
  22404. return v, changed
  22405. }
  22406. func (d *Decoder) fastpathDecMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  22407. if rv.Kind() == reflect.Ptr {
  22408. vp := rv2i(rv).(*map[uint]bool)
  22409. v, changed := fastpathTV.DecMapUintBoolV(*vp, true, d)
  22410. if changed {
  22411. *vp = v
  22412. }
  22413. } else {
  22414. fastpathTV.DecMapUintBoolV(rv2i(rv).(map[uint]bool), false, d)
  22415. }
  22416. }
  22417. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, d *Decoder) {
  22418. v, changed := f.DecMapUintBoolV(*vp, true, d)
  22419. if changed {
  22420. *vp = v
  22421. }
  22422. }
  22423. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, canChange bool,
  22424. d *Decoder) (_ map[uint]bool, changed bool) {
  22425. dd, esep := d.d, d.hh.hasElemSeparators()
  22426. containerLen := dd.ReadMapStart()
  22427. if canChange && v == nil {
  22428. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22429. v = make(map[uint]bool, xlen)
  22430. changed = true
  22431. }
  22432. if containerLen == 0 {
  22433. dd.ReadMapEnd()
  22434. return v, changed
  22435. }
  22436. d.depthIncr()
  22437. var mk uint
  22438. var mv bool
  22439. hasLen := containerLen > 0
  22440. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22441. if esep {
  22442. dd.ReadMapElemKey()
  22443. }
  22444. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22445. if esep {
  22446. dd.ReadMapElemValue()
  22447. }
  22448. if dd.TryDecodeAsNil() {
  22449. if v == nil {
  22450. } else if d.h.DeleteOnNilMapValue {
  22451. delete(v, mk)
  22452. } else {
  22453. v[mk] = false
  22454. }
  22455. continue
  22456. }
  22457. mv = dd.DecodeBool()
  22458. if v != nil {
  22459. v[mk] = mv
  22460. }
  22461. }
  22462. dd.ReadMapEnd()
  22463. d.depthDecr()
  22464. return v, changed
  22465. }
  22466. func (d *Decoder) fastpathDecMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  22467. if rv.Kind() == reflect.Ptr {
  22468. vp := rv2i(rv).(*map[uint8]interface{})
  22469. v, changed := fastpathTV.DecMapUint8IntfV(*vp, true, d)
  22470. if changed {
  22471. *vp = v
  22472. }
  22473. } else {
  22474. fastpathTV.DecMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), false, d)
  22475. }
  22476. }
  22477. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, d *Decoder) {
  22478. v, changed := f.DecMapUint8IntfV(*vp, true, d)
  22479. if changed {
  22480. *vp = v
  22481. }
  22482. }
  22483. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, canChange bool,
  22484. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  22485. dd, esep := d.d, d.hh.hasElemSeparators()
  22486. containerLen := dd.ReadMapStart()
  22487. if canChange && v == nil {
  22488. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  22489. v = make(map[uint8]interface{}, xlen)
  22490. changed = true
  22491. }
  22492. if containerLen == 0 {
  22493. dd.ReadMapEnd()
  22494. return v, changed
  22495. }
  22496. d.depthIncr()
  22497. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  22498. var mk uint8
  22499. var mv interface{}
  22500. hasLen := containerLen > 0
  22501. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22502. if esep {
  22503. dd.ReadMapElemKey()
  22504. }
  22505. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22506. if esep {
  22507. dd.ReadMapElemValue()
  22508. }
  22509. if dd.TryDecodeAsNil() {
  22510. if v == nil {
  22511. } else if d.h.DeleteOnNilMapValue {
  22512. delete(v, mk)
  22513. } else {
  22514. v[mk] = nil
  22515. }
  22516. continue
  22517. }
  22518. if mapGet {
  22519. mv = v[mk]
  22520. } else {
  22521. mv = nil
  22522. }
  22523. d.decode(&mv)
  22524. if v != nil {
  22525. v[mk] = mv
  22526. }
  22527. }
  22528. dd.ReadMapEnd()
  22529. d.depthDecr()
  22530. return v, changed
  22531. }
  22532. func (d *Decoder) fastpathDecMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  22533. if rv.Kind() == reflect.Ptr {
  22534. vp := rv2i(rv).(*map[uint8]string)
  22535. v, changed := fastpathTV.DecMapUint8StringV(*vp, true, d)
  22536. if changed {
  22537. *vp = v
  22538. }
  22539. } else {
  22540. fastpathTV.DecMapUint8StringV(rv2i(rv).(map[uint8]string), false, d)
  22541. }
  22542. }
  22543. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, d *Decoder) {
  22544. v, changed := f.DecMapUint8StringV(*vp, true, d)
  22545. if changed {
  22546. *vp = v
  22547. }
  22548. }
  22549. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, canChange bool,
  22550. d *Decoder) (_ map[uint8]string, changed bool) {
  22551. dd, esep := d.d, d.hh.hasElemSeparators()
  22552. containerLen := dd.ReadMapStart()
  22553. if canChange && v == nil {
  22554. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  22555. v = make(map[uint8]string, xlen)
  22556. changed = true
  22557. }
  22558. if containerLen == 0 {
  22559. dd.ReadMapEnd()
  22560. return v, changed
  22561. }
  22562. d.depthIncr()
  22563. var mk uint8
  22564. var mv string
  22565. hasLen := containerLen > 0
  22566. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22567. if esep {
  22568. dd.ReadMapElemKey()
  22569. }
  22570. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22571. if esep {
  22572. dd.ReadMapElemValue()
  22573. }
  22574. if dd.TryDecodeAsNil() {
  22575. if v == nil {
  22576. } else if d.h.DeleteOnNilMapValue {
  22577. delete(v, mk)
  22578. } else {
  22579. v[mk] = ""
  22580. }
  22581. continue
  22582. }
  22583. mv = dd.DecodeString()
  22584. if v != nil {
  22585. v[mk] = mv
  22586. }
  22587. }
  22588. dd.ReadMapEnd()
  22589. d.depthDecr()
  22590. return v, changed
  22591. }
  22592. func (d *Decoder) fastpathDecMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  22593. if rv.Kind() == reflect.Ptr {
  22594. vp := rv2i(rv).(*map[uint8]uint)
  22595. v, changed := fastpathTV.DecMapUint8UintV(*vp, true, d)
  22596. if changed {
  22597. *vp = v
  22598. }
  22599. } else {
  22600. fastpathTV.DecMapUint8UintV(rv2i(rv).(map[uint8]uint), false, d)
  22601. }
  22602. }
  22603. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, d *Decoder) {
  22604. v, changed := f.DecMapUint8UintV(*vp, true, d)
  22605. if changed {
  22606. *vp = v
  22607. }
  22608. }
  22609. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, canChange bool,
  22610. d *Decoder) (_ map[uint8]uint, changed bool) {
  22611. dd, esep := d.d, d.hh.hasElemSeparators()
  22612. containerLen := dd.ReadMapStart()
  22613. if canChange && v == nil {
  22614. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22615. v = make(map[uint8]uint, xlen)
  22616. changed = true
  22617. }
  22618. if containerLen == 0 {
  22619. dd.ReadMapEnd()
  22620. return v, changed
  22621. }
  22622. d.depthIncr()
  22623. var mk uint8
  22624. var mv uint
  22625. hasLen := containerLen > 0
  22626. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22627. if esep {
  22628. dd.ReadMapElemKey()
  22629. }
  22630. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22631. if esep {
  22632. dd.ReadMapElemValue()
  22633. }
  22634. if dd.TryDecodeAsNil() {
  22635. if v == nil {
  22636. } else if d.h.DeleteOnNilMapValue {
  22637. delete(v, mk)
  22638. } else {
  22639. v[mk] = 0
  22640. }
  22641. continue
  22642. }
  22643. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22644. if v != nil {
  22645. v[mk] = mv
  22646. }
  22647. }
  22648. dd.ReadMapEnd()
  22649. d.depthDecr()
  22650. return v, changed
  22651. }
  22652. func (d *Decoder) fastpathDecMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  22653. if rv.Kind() == reflect.Ptr {
  22654. vp := rv2i(rv).(*map[uint8]uint8)
  22655. v, changed := fastpathTV.DecMapUint8Uint8V(*vp, true, d)
  22656. if changed {
  22657. *vp = v
  22658. }
  22659. } else {
  22660. fastpathTV.DecMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), false, d)
  22661. }
  22662. }
  22663. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, d *Decoder) {
  22664. v, changed := f.DecMapUint8Uint8V(*vp, true, d)
  22665. if changed {
  22666. *vp = v
  22667. }
  22668. }
  22669. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, canChange bool,
  22670. d *Decoder) (_ map[uint8]uint8, changed bool) {
  22671. dd, esep := d.d, d.hh.hasElemSeparators()
  22672. containerLen := dd.ReadMapStart()
  22673. if canChange && v == nil {
  22674. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  22675. v = make(map[uint8]uint8, xlen)
  22676. changed = true
  22677. }
  22678. if containerLen == 0 {
  22679. dd.ReadMapEnd()
  22680. return v, changed
  22681. }
  22682. d.depthIncr()
  22683. var mk uint8
  22684. var mv uint8
  22685. hasLen := containerLen > 0
  22686. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22687. if esep {
  22688. dd.ReadMapElemKey()
  22689. }
  22690. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22691. if esep {
  22692. dd.ReadMapElemValue()
  22693. }
  22694. if dd.TryDecodeAsNil() {
  22695. if v == nil {
  22696. } else if d.h.DeleteOnNilMapValue {
  22697. delete(v, mk)
  22698. } else {
  22699. v[mk] = 0
  22700. }
  22701. continue
  22702. }
  22703. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22704. if v != nil {
  22705. v[mk] = mv
  22706. }
  22707. }
  22708. dd.ReadMapEnd()
  22709. d.depthDecr()
  22710. return v, changed
  22711. }
  22712. func (d *Decoder) fastpathDecMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  22713. if rv.Kind() == reflect.Ptr {
  22714. vp := rv2i(rv).(*map[uint8]uint16)
  22715. v, changed := fastpathTV.DecMapUint8Uint16V(*vp, true, d)
  22716. if changed {
  22717. *vp = v
  22718. }
  22719. } else {
  22720. fastpathTV.DecMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), false, d)
  22721. }
  22722. }
  22723. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, d *Decoder) {
  22724. v, changed := f.DecMapUint8Uint16V(*vp, true, d)
  22725. if changed {
  22726. *vp = v
  22727. }
  22728. }
  22729. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, canChange bool,
  22730. d *Decoder) (_ map[uint8]uint16, changed bool) {
  22731. dd, esep := d.d, d.hh.hasElemSeparators()
  22732. containerLen := dd.ReadMapStart()
  22733. if canChange && v == nil {
  22734. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  22735. v = make(map[uint8]uint16, xlen)
  22736. changed = true
  22737. }
  22738. if containerLen == 0 {
  22739. dd.ReadMapEnd()
  22740. return v, changed
  22741. }
  22742. d.depthIncr()
  22743. var mk uint8
  22744. var mv uint16
  22745. hasLen := containerLen > 0
  22746. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22747. if esep {
  22748. dd.ReadMapElemKey()
  22749. }
  22750. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22751. if esep {
  22752. dd.ReadMapElemValue()
  22753. }
  22754. if dd.TryDecodeAsNil() {
  22755. if v == nil {
  22756. } else if d.h.DeleteOnNilMapValue {
  22757. delete(v, mk)
  22758. } else {
  22759. v[mk] = 0
  22760. }
  22761. continue
  22762. }
  22763. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  22764. if v != nil {
  22765. v[mk] = mv
  22766. }
  22767. }
  22768. dd.ReadMapEnd()
  22769. d.depthDecr()
  22770. return v, changed
  22771. }
  22772. func (d *Decoder) fastpathDecMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  22773. if rv.Kind() == reflect.Ptr {
  22774. vp := rv2i(rv).(*map[uint8]uint32)
  22775. v, changed := fastpathTV.DecMapUint8Uint32V(*vp, true, d)
  22776. if changed {
  22777. *vp = v
  22778. }
  22779. } else {
  22780. fastpathTV.DecMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), false, d)
  22781. }
  22782. }
  22783. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, d *Decoder) {
  22784. v, changed := f.DecMapUint8Uint32V(*vp, true, d)
  22785. if changed {
  22786. *vp = v
  22787. }
  22788. }
  22789. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, canChange bool,
  22790. d *Decoder) (_ map[uint8]uint32, changed bool) {
  22791. dd, esep := d.d, d.hh.hasElemSeparators()
  22792. containerLen := dd.ReadMapStart()
  22793. if canChange && v == nil {
  22794. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  22795. v = make(map[uint8]uint32, xlen)
  22796. changed = true
  22797. }
  22798. if containerLen == 0 {
  22799. dd.ReadMapEnd()
  22800. return v, changed
  22801. }
  22802. d.depthIncr()
  22803. var mk uint8
  22804. var mv uint32
  22805. hasLen := containerLen > 0
  22806. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22807. if esep {
  22808. dd.ReadMapElemKey()
  22809. }
  22810. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22811. if esep {
  22812. dd.ReadMapElemValue()
  22813. }
  22814. if dd.TryDecodeAsNil() {
  22815. if v == nil {
  22816. } else if d.h.DeleteOnNilMapValue {
  22817. delete(v, mk)
  22818. } else {
  22819. v[mk] = 0
  22820. }
  22821. continue
  22822. }
  22823. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  22824. if v != nil {
  22825. v[mk] = mv
  22826. }
  22827. }
  22828. dd.ReadMapEnd()
  22829. d.depthDecr()
  22830. return v, changed
  22831. }
  22832. func (d *Decoder) fastpathDecMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  22833. if rv.Kind() == reflect.Ptr {
  22834. vp := rv2i(rv).(*map[uint8]uint64)
  22835. v, changed := fastpathTV.DecMapUint8Uint64V(*vp, true, d)
  22836. if changed {
  22837. *vp = v
  22838. }
  22839. } else {
  22840. fastpathTV.DecMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), false, d)
  22841. }
  22842. }
  22843. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, d *Decoder) {
  22844. v, changed := f.DecMapUint8Uint64V(*vp, true, d)
  22845. if changed {
  22846. *vp = v
  22847. }
  22848. }
  22849. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, canChange bool,
  22850. d *Decoder) (_ map[uint8]uint64, changed bool) {
  22851. dd, esep := d.d, d.hh.hasElemSeparators()
  22852. containerLen := dd.ReadMapStart()
  22853. if canChange && v == nil {
  22854. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22855. v = make(map[uint8]uint64, xlen)
  22856. changed = true
  22857. }
  22858. if containerLen == 0 {
  22859. dd.ReadMapEnd()
  22860. return v, changed
  22861. }
  22862. d.depthIncr()
  22863. var mk uint8
  22864. var mv uint64
  22865. hasLen := containerLen > 0
  22866. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22867. if esep {
  22868. dd.ReadMapElemKey()
  22869. }
  22870. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22871. if esep {
  22872. dd.ReadMapElemValue()
  22873. }
  22874. if dd.TryDecodeAsNil() {
  22875. if v == nil {
  22876. } else if d.h.DeleteOnNilMapValue {
  22877. delete(v, mk)
  22878. } else {
  22879. v[mk] = 0
  22880. }
  22881. continue
  22882. }
  22883. mv = dd.DecodeUint64()
  22884. if v != nil {
  22885. v[mk] = mv
  22886. }
  22887. }
  22888. dd.ReadMapEnd()
  22889. d.depthDecr()
  22890. return v, changed
  22891. }
  22892. func (d *Decoder) fastpathDecMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  22893. if rv.Kind() == reflect.Ptr {
  22894. vp := rv2i(rv).(*map[uint8]uintptr)
  22895. v, changed := fastpathTV.DecMapUint8UintptrV(*vp, true, d)
  22896. if changed {
  22897. *vp = v
  22898. }
  22899. } else {
  22900. fastpathTV.DecMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), false, d)
  22901. }
  22902. }
  22903. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, d *Decoder) {
  22904. v, changed := f.DecMapUint8UintptrV(*vp, true, d)
  22905. if changed {
  22906. *vp = v
  22907. }
  22908. }
  22909. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, canChange bool,
  22910. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  22911. dd, esep := d.d, d.hh.hasElemSeparators()
  22912. containerLen := dd.ReadMapStart()
  22913. if canChange && v == nil {
  22914. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22915. v = make(map[uint8]uintptr, xlen)
  22916. changed = true
  22917. }
  22918. if containerLen == 0 {
  22919. dd.ReadMapEnd()
  22920. return v, changed
  22921. }
  22922. d.depthIncr()
  22923. var mk uint8
  22924. var mv uintptr
  22925. hasLen := containerLen > 0
  22926. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22927. if esep {
  22928. dd.ReadMapElemKey()
  22929. }
  22930. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22931. if esep {
  22932. dd.ReadMapElemValue()
  22933. }
  22934. if dd.TryDecodeAsNil() {
  22935. if v == nil {
  22936. } else if d.h.DeleteOnNilMapValue {
  22937. delete(v, mk)
  22938. } else {
  22939. v[mk] = 0
  22940. }
  22941. continue
  22942. }
  22943. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22944. if v != nil {
  22945. v[mk] = mv
  22946. }
  22947. }
  22948. dd.ReadMapEnd()
  22949. d.depthDecr()
  22950. return v, changed
  22951. }
  22952. func (d *Decoder) fastpathDecMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  22953. if rv.Kind() == reflect.Ptr {
  22954. vp := rv2i(rv).(*map[uint8]int)
  22955. v, changed := fastpathTV.DecMapUint8IntV(*vp, true, d)
  22956. if changed {
  22957. *vp = v
  22958. }
  22959. } else {
  22960. fastpathTV.DecMapUint8IntV(rv2i(rv).(map[uint8]int), false, d)
  22961. }
  22962. }
  22963. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, d *Decoder) {
  22964. v, changed := f.DecMapUint8IntV(*vp, true, d)
  22965. if changed {
  22966. *vp = v
  22967. }
  22968. }
  22969. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, canChange bool,
  22970. d *Decoder) (_ map[uint8]int, changed bool) {
  22971. dd, esep := d.d, d.hh.hasElemSeparators()
  22972. containerLen := dd.ReadMapStart()
  22973. if canChange && v == nil {
  22974. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22975. v = make(map[uint8]int, xlen)
  22976. changed = true
  22977. }
  22978. if containerLen == 0 {
  22979. dd.ReadMapEnd()
  22980. return v, changed
  22981. }
  22982. d.depthIncr()
  22983. var mk uint8
  22984. var mv int
  22985. hasLen := containerLen > 0
  22986. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22987. if esep {
  22988. dd.ReadMapElemKey()
  22989. }
  22990. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22991. if esep {
  22992. dd.ReadMapElemValue()
  22993. }
  22994. if dd.TryDecodeAsNil() {
  22995. if v == nil {
  22996. } else if d.h.DeleteOnNilMapValue {
  22997. delete(v, mk)
  22998. } else {
  22999. v[mk] = 0
  23000. }
  23001. continue
  23002. }
  23003. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  23004. if v != nil {
  23005. v[mk] = mv
  23006. }
  23007. }
  23008. dd.ReadMapEnd()
  23009. d.depthDecr()
  23010. return v, changed
  23011. }
  23012. func (d *Decoder) fastpathDecMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  23013. if rv.Kind() == reflect.Ptr {
  23014. vp := rv2i(rv).(*map[uint8]int8)
  23015. v, changed := fastpathTV.DecMapUint8Int8V(*vp, true, d)
  23016. if changed {
  23017. *vp = v
  23018. }
  23019. } else {
  23020. fastpathTV.DecMapUint8Int8V(rv2i(rv).(map[uint8]int8), false, d)
  23021. }
  23022. }
  23023. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, d *Decoder) {
  23024. v, changed := f.DecMapUint8Int8V(*vp, true, d)
  23025. if changed {
  23026. *vp = v
  23027. }
  23028. }
  23029. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, canChange bool,
  23030. d *Decoder) (_ map[uint8]int8, changed bool) {
  23031. dd, esep := d.d, d.hh.hasElemSeparators()
  23032. containerLen := dd.ReadMapStart()
  23033. if canChange && v == nil {
  23034. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  23035. v = make(map[uint8]int8, xlen)
  23036. changed = true
  23037. }
  23038. if containerLen == 0 {
  23039. dd.ReadMapEnd()
  23040. return v, changed
  23041. }
  23042. d.depthIncr()
  23043. var mk uint8
  23044. var mv int8
  23045. hasLen := containerLen > 0
  23046. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23047. if esep {
  23048. dd.ReadMapElemKey()
  23049. }
  23050. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23051. if esep {
  23052. dd.ReadMapElemValue()
  23053. }
  23054. if dd.TryDecodeAsNil() {
  23055. if v == nil {
  23056. } else if d.h.DeleteOnNilMapValue {
  23057. delete(v, mk)
  23058. } else {
  23059. v[mk] = 0
  23060. }
  23061. continue
  23062. }
  23063. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  23064. if v != nil {
  23065. v[mk] = mv
  23066. }
  23067. }
  23068. dd.ReadMapEnd()
  23069. d.depthDecr()
  23070. return v, changed
  23071. }
  23072. func (d *Decoder) fastpathDecMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  23073. if rv.Kind() == reflect.Ptr {
  23074. vp := rv2i(rv).(*map[uint8]int16)
  23075. v, changed := fastpathTV.DecMapUint8Int16V(*vp, true, d)
  23076. if changed {
  23077. *vp = v
  23078. }
  23079. } else {
  23080. fastpathTV.DecMapUint8Int16V(rv2i(rv).(map[uint8]int16), false, d)
  23081. }
  23082. }
  23083. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, d *Decoder) {
  23084. v, changed := f.DecMapUint8Int16V(*vp, true, d)
  23085. if changed {
  23086. *vp = v
  23087. }
  23088. }
  23089. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, canChange bool,
  23090. d *Decoder) (_ map[uint8]int16, changed bool) {
  23091. dd, esep := d.d, d.hh.hasElemSeparators()
  23092. containerLen := dd.ReadMapStart()
  23093. if canChange && v == nil {
  23094. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  23095. v = make(map[uint8]int16, xlen)
  23096. changed = true
  23097. }
  23098. if containerLen == 0 {
  23099. dd.ReadMapEnd()
  23100. return v, changed
  23101. }
  23102. d.depthIncr()
  23103. var mk uint8
  23104. var mv int16
  23105. hasLen := containerLen > 0
  23106. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23107. if esep {
  23108. dd.ReadMapElemKey()
  23109. }
  23110. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23111. if esep {
  23112. dd.ReadMapElemValue()
  23113. }
  23114. if dd.TryDecodeAsNil() {
  23115. if v == nil {
  23116. } else if d.h.DeleteOnNilMapValue {
  23117. delete(v, mk)
  23118. } else {
  23119. v[mk] = 0
  23120. }
  23121. continue
  23122. }
  23123. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  23124. if v != nil {
  23125. v[mk] = mv
  23126. }
  23127. }
  23128. dd.ReadMapEnd()
  23129. d.depthDecr()
  23130. return v, changed
  23131. }
  23132. func (d *Decoder) fastpathDecMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  23133. if rv.Kind() == reflect.Ptr {
  23134. vp := rv2i(rv).(*map[uint8]int32)
  23135. v, changed := fastpathTV.DecMapUint8Int32V(*vp, true, d)
  23136. if changed {
  23137. *vp = v
  23138. }
  23139. } else {
  23140. fastpathTV.DecMapUint8Int32V(rv2i(rv).(map[uint8]int32), false, d)
  23141. }
  23142. }
  23143. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, d *Decoder) {
  23144. v, changed := f.DecMapUint8Int32V(*vp, true, d)
  23145. if changed {
  23146. *vp = v
  23147. }
  23148. }
  23149. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, canChange bool,
  23150. d *Decoder) (_ map[uint8]int32, changed bool) {
  23151. dd, esep := d.d, d.hh.hasElemSeparators()
  23152. containerLen := dd.ReadMapStart()
  23153. if canChange && v == nil {
  23154. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  23155. v = make(map[uint8]int32, xlen)
  23156. changed = true
  23157. }
  23158. if containerLen == 0 {
  23159. dd.ReadMapEnd()
  23160. return v, changed
  23161. }
  23162. d.depthIncr()
  23163. var mk uint8
  23164. var mv int32
  23165. hasLen := containerLen > 0
  23166. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23167. if esep {
  23168. dd.ReadMapElemKey()
  23169. }
  23170. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23171. if esep {
  23172. dd.ReadMapElemValue()
  23173. }
  23174. if dd.TryDecodeAsNil() {
  23175. if v == nil {
  23176. } else if d.h.DeleteOnNilMapValue {
  23177. delete(v, mk)
  23178. } else {
  23179. v[mk] = 0
  23180. }
  23181. continue
  23182. }
  23183. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  23184. if v != nil {
  23185. v[mk] = mv
  23186. }
  23187. }
  23188. dd.ReadMapEnd()
  23189. d.depthDecr()
  23190. return v, changed
  23191. }
  23192. func (d *Decoder) fastpathDecMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  23193. if rv.Kind() == reflect.Ptr {
  23194. vp := rv2i(rv).(*map[uint8]int64)
  23195. v, changed := fastpathTV.DecMapUint8Int64V(*vp, true, d)
  23196. if changed {
  23197. *vp = v
  23198. }
  23199. } else {
  23200. fastpathTV.DecMapUint8Int64V(rv2i(rv).(map[uint8]int64), false, d)
  23201. }
  23202. }
  23203. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, d *Decoder) {
  23204. v, changed := f.DecMapUint8Int64V(*vp, true, d)
  23205. if changed {
  23206. *vp = v
  23207. }
  23208. }
  23209. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, canChange bool,
  23210. d *Decoder) (_ map[uint8]int64, changed bool) {
  23211. dd, esep := d.d, d.hh.hasElemSeparators()
  23212. containerLen := dd.ReadMapStart()
  23213. if canChange && v == nil {
  23214. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23215. v = make(map[uint8]int64, xlen)
  23216. changed = true
  23217. }
  23218. if containerLen == 0 {
  23219. dd.ReadMapEnd()
  23220. return v, changed
  23221. }
  23222. d.depthIncr()
  23223. var mk uint8
  23224. var mv int64
  23225. hasLen := containerLen > 0
  23226. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23227. if esep {
  23228. dd.ReadMapElemKey()
  23229. }
  23230. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23231. if esep {
  23232. dd.ReadMapElemValue()
  23233. }
  23234. if dd.TryDecodeAsNil() {
  23235. if v == nil {
  23236. } else if d.h.DeleteOnNilMapValue {
  23237. delete(v, mk)
  23238. } else {
  23239. v[mk] = 0
  23240. }
  23241. continue
  23242. }
  23243. mv = dd.DecodeInt64()
  23244. if v != nil {
  23245. v[mk] = mv
  23246. }
  23247. }
  23248. dd.ReadMapEnd()
  23249. d.depthDecr()
  23250. return v, changed
  23251. }
  23252. func (d *Decoder) fastpathDecMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  23253. if rv.Kind() == reflect.Ptr {
  23254. vp := rv2i(rv).(*map[uint8]float32)
  23255. v, changed := fastpathTV.DecMapUint8Float32V(*vp, true, d)
  23256. if changed {
  23257. *vp = v
  23258. }
  23259. } else {
  23260. fastpathTV.DecMapUint8Float32V(rv2i(rv).(map[uint8]float32), false, d)
  23261. }
  23262. }
  23263. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, d *Decoder) {
  23264. v, changed := f.DecMapUint8Float32V(*vp, true, d)
  23265. if changed {
  23266. *vp = v
  23267. }
  23268. }
  23269. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, canChange bool,
  23270. d *Decoder) (_ map[uint8]float32, changed bool) {
  23271. dd, esep := d.d, d.hh.hasElemSeparators()
  23272. containerLen := dd.ReadMapStart()
  23273. if canChange && v == nil {
  23274. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  23275. v = make(map[uint8]float32, xlen)
  23276. changed = true
  23277. }
  23278. if containerLen == 0 {
  23279. dd.ReadMapEnd()
  23280. return v, changed
  23281. }
  23282. d.depthIncr()
  23283. var mk uint8
  23284. var mv float32
  23285. hasLen := containerLen > 0
  23286. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23287. if esep {
  23288. dd.ReadMapElemKey()
  23289. }
  23290. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23291. if esep {
  23292. dd.ReadMapElemValue()
  23293. }
  23294. if dd.TryDecodeAsNil() {
  23295. if v == nil {
  23296. } else if d.h.DeleteOnNilMapValue {
  23297. delete(v, mk)
  23298. } else {
  23299. v[mk] = 0
  23300. }
  23301. continue
  23302. }
  23303. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  23304. if v != nil {
  23305. v[mk] = mv
  23306. }
  23307. }
  23308. dd.ReadMapEnd()
  23309. d.depthDecr()
  23310. return v, changed
  23311. }
  23312. func (d *Decoder) fastpathDecMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  23313. if rv.Kind() == reflect.Ptr {
  23314. vp := rv2i(rv).(*map[uint8]float64)
  23315. v, changed := fastpathTV.DecMapUint8Float64V(*vp, true, d)
  23316. if changed {
  23317. *vp = v
  23318. }
  23319. } else {
  23320. fastpathTV.DecMapUint8Float64V(rv2i(rv).(map[uint8]float64), false, d)
  23321. }
  23322. }
  23323. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, d *Decoder) {
  23324. v, changed := f.DecMapUint8Float64V(*vp, true, d)
  23325. if changed {
  23326. *vp = v
  23327. }
  23328. }
  23329. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, canChange bool,
  23330. d *Decoder) (_ map[uint8]float64, changed bool) {
  23331. dd, esep := d.d, d.hh.hasElemSeparators()
  23332. containerLen := dd.ReadMapStart()
  23333. if canChange && v == nil {
  23334. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23335. v = make(map[uint8]float64, xlen)
  23336. changed = true
  23337. }
  23338. if containerLen == 0 {
  23339. dd.ReadMapEnd()
  23340. return v, changed
  23341. }
  23342. d.depthIncr()
  23343. var mk uint8
  23344. var mv float64
  23345. hasLen := containerLen > 0
  23346. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23347. if esep {
  23348. dd.ReadMapElemKey()
  23349. }
  23350. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23351. if esep {
  23352. dd.ReadMapElemValue()
  23353. }
  23354. if dd.TryDecodeAsNil() {
  23355. if v == nil {
  23356. } else if d.h.DeleteOnNilMapValue {
  23357. delete(v, mk)
  23358. } else {
  23359. v[mk] = 0
  23360. }
  23361. continue
  23362. }
  23363. mv = dd.DecodeFloat64()
  23364. if v != nil {
  23365. v[mk] = mv
  23366. }
  23367. }
  23368. dd.ReadMapEnd()
  23369. d.depthDecr()
  23370. return v, changed
  23371. }
  23372. func (d *Decoder) fastpathDecMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  23373. if rv.Kind() == reflect.Ptr {
  23374. vp := rv2i(rv).(*map[uint8]bool)
  23375. v, changed := fastpathTV.DecMapUint8BoolV(*vp, true, d)
  23376. if changed {
  23377. *vp = v
  23378. }
  23379. } else {
  23380. fastpathTV.DecMapUint8BoolV(rv2i(rv).(map[uint8]bool), false, d)
  23381. }
  23382. }
  23383. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, d *Decoder) {
  23384. v, changed := f.DecMapUint8BoolV(*vp, true, d)
  23385. if changed {
  23386. *vp = v
  23387. }
  23388. }
  23389. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, canChange bool,
  23390. d *Decoder) (_ map[uint8]bool, changed bool) {
  23391. dd, esep := d.d, d.hh.hasElemSeparators()
  23392. containerLen := dd.ReadMapStart()
  23393. if canChange && v == nil {
  23394. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  23395. v = make(map[uint8]bool, xlen)
  23396. changed = true
  23397. }
  23398. if containerLen == 0 {
  23399. dd.ReadMapEnd()
  23400. return v, changed
  23401. }
  23402. d.depthIncr()
  23403. var mk uint8
  23404. var mv bool
  23405. hasLen := containerLen > 0
  23406. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23407. if esep {
  23408. dd.ReadMapElemKey()
  23409. }
  23410. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23411. if esep {
  23412. dd.ReadMapElemValue()
  23413. }
  23414. if dd.TryDecodeAsNil() {
  23415. if v == nil {
  23416. } else if d.h.DeleteOnNilMapValue {
  23417. delete(v, mk)
  23418. } else {
  23419. v[mk] = false
  23420. }
  23421. continue
  23422. }
  23423. mv = dd.DecodeBool()
  23424. if v != nil {
  23425. v[mk] = mv
  23426. }
  23427. }
  23428. dd.ReadMapEnd()
  23429. d.depthDecr()
  23430. return v, changed
  23431. }
  23432. func (d *Decoder) fastpathDecMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  23433. if rv.Kind() == reflect.Ptr {
  23434. vp := rv2i(rv).(*map[uint16]interface{})
  23435. v, changed := fastpathTV.DecMapUint16IntfV(*vp, true, d)
  23436. if changed {
  23437. *vp = v
  23438. }
  23439. } else {
  23440. fastpathTV.DecMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), false, d)
  23441. }
  23442. }
  23443. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, d *Decoder) {
  23444. v, changed := f.DecMapUint16IntfV(*vp, true, d)
  23445. if changed {
  23446. *vp = v
  23447. }
  23448. }
  23449. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, canChange bool,
  23450. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  23451. dd, esep := d.d, d.hh.hasElemSeparators()
  23452. containerLen := dd.ReadMapStart()
  23453. if canChange && v == nil {
  23454. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  23455. v = make(map[uint16]interface{}, xlen)
  23456. changed = true
  23457. }
  23458. if containerLen == 0 {
  23459. dd.ReadMapEnd()
  23460. return v, changed
  23461. }
  23462. d.depthIncr()
  23463. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  23464. var mk uint16
  23465. var mv interface{}
  23466. hasLen := containerLen > 0
  23467. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23468. if esep {
  23469. dd.ReadMapElemKey()
  23470. }
  23471. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23472. if esep {
  23473. dd.ReadMapElemValue()
  23474. }
  23475. if dd.TryDecodeAsNil() {
  23476. if v == nil {
  23477. } else if d.h.DeleteOnNilMapValue {
  23478. delete(v, mk)
  23479. } else {
  23480. v[mk] = nil
  23481. }
  23482. continue
  23483. }
  23484. if mapGet {
  23485. mv = v[mk]
  23486. } else {
  23487. mv = nil
  23488. }
  23489. d.decode(&mv)
  23490. if v != nil {
  23491. v[mk] = mv
  23492. }
  23493. }
  23494. dd.ReadMapEnd()
  23495. d.depthDecr()
  23496. return v, changed
  23497. }
  23498. func (d *Decoder) fastpathDecMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  23499. if rv.Kind() == reflect.Ptr {
  23500. vp := rv2i(rv).(*map[uint16]string)
  23501. v, changed := fastpathTV.DecMapUint16StringV(*vp, true, d)
  23502. if changed {
  23503. *vp = v
  23504. }
  23505. } else {
  23506. fastpathTV.DecMapUint16StringV(rv2i(rv).(map[uint16]string), false, d)
  23507. }
  23508. }
  23509. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, d *Decoder) {
  23510. v, changed := f.DecMapUint16StringV(*vp, true, d)
  23511. if changed {
  23512. *vp = v
  23513. }
  23514. }
  23515. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, canChange bool,
  23516. d *Decoder) (_ map[uint16]string, changed bool) {
  23517. dd, esep := d.d, d.hh.hasElemSeparators()
  23518. containerLen := dd.ReadMapStart()
  23519. if canChange && v == nil {
  23520. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  23521. v = make(map[uint16]string, xlen)
  23522. changed = true
  23523. }
  23524. if containerLen == 0 {
  23525. dd.ReadMapEnd()
  23526. return v, changed
  23527. }
  23528. d.depthIncr()
  23529. var mk uint16
  23530. var mv string
  23531. hasLen := containerLen > 0
  23532. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23533. if esep {
  23534. dd.ReadMapElemKey()
  23535. }
  23536. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23537. if esep {
  23538. dd.ReadMapElemValue()
  23539. }
  23540. if dd.TryDecodeAsNil() {
  23541. if v == nil {
  23542. } else if d.h.DeleteOnNilMapValue {
  23543. delete(v, mk)
  23544. } else {
  23545. v[mk] = ""
  23546. }
  23547. continue
  23548. }
  23549. mv = dd.DecodeString()
  23550. if v != nil {
  23551. v[mk] = mv
  23552. }
  23553. }
  23554. dd.ReadMapEnd()
  23555. d.depthDecr()
  23556. return v, changed
  23557. }
  23558. func (d *Decoder) fastpathDecMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  23559. if rv.Kind() == reflect.Ptr {
  23560. vp := rv2i(rv).(*map[uint16]uint)
  23561. v, changed := fastpathTV.DecMapUint16UintV(*vp, true, d)
  23562. if changed {
  23563. *vp = v
  23564. }
  23565. } else {
  23566. fastpathTV.DecMapUint16UintV(rv2i(rv).(map[uint16]uint), false, d)
  23567. }
  23568. }
  23569. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, d *Decoder) {
  23570. v, changed := f.DecMapUint16UintV(*vp, true, d)
  23571. if changed {
  23572. *vp = v
  23573. }
  23574. }
  23575. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, canChange bool,
  23576. d *Decoder) (_ map[uint16]uint, changed bool) {
  23577. dd, esep := d.d, d.hh.hasElemSeparators()
  23578. containerLen := dd.ReadMapStart()
  23579. if canChange && v == nil {
  23580. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23581. v = make(map[uint16]uint, xlen)
  23582. changed = true
  23583. }
  23584. if containerLen == 0 {
  23585. dd.ReadMapEnd()
  23586. return v, changed
  23587. }
  23588. d.depthIncr()
  23589. var mk uint16
  23590. var mv uint
  23591. hasLen := containerLen > 0
  23592. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23593. if esep {
  23594. dd.ReadMapElemKey()
  23595. }
  23596. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23597. if esep {
  23598. dd.ReadMapElemValue()
  23599. }
  23600. if dd.TryDecodeAsNil() {
  23601. if v == nil {
  23602. } else if d.h.DeleteOnNilMapValue {
  23603. delete(v, mk)
  23604. } else {
  23605. v[mk] = 0
  23606. }
  23607. continue
  23608. }
  23609. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23610. if v != nil {
  23611. v[mk] = mv
  23612. }
  23613. }
  23614. dd.ReadMapEnd()
  23615. d.depthDecr()
  23616. return v, changed
  23617. }
  23618. func (d *Decoder) fastpathDecMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  23619. if rv.Kind() == reflect.Ptr {
  23620. vp := rv2i(rv).(*map[uint16]uint8)
  23621. v, changed := fastpathTV.DecMapUint16Uint8V(*vp, true, d)
  23622. if changed {
  23623. *vp = v
  23624. }
  23625. } else {
  23626. fastpathTV.DecMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), false, d)
  23627. }
  23628. }
  23629. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, d *Decoder) {
  23630. v, changed := f.DecMapUint16Uint8V(*vp, true, d)
  23631. if changed {
  23632. *vp = v
  23633. }
  23634. }
  23635. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, canChange bool,
  23636. d *Decoder) (_ map[uint16]uint8, changed bool) {
  23637. dd, esep := d.d, d.hh.hasElemSeparators()
  23638. containerLen := dd.ReadMapStart()
  23639. if canChange && v == nil {
  23640. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  23641. v = make(map[uint16]uint8, xlen)
  23642. changed = true
  23643. }
  23644. if containerLen == 0 {
  23645. dd.ReadMapEnd()
  23646. return v, changed
  23647. }
  23648. d.depthIncr()
  23649. var mk uint16
  23650. var mv uint8
  23651. hasLen := containerLen > 0
  23652. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23653. if esep {
  23654. dd.ReadMapElemKey()
  23655. }
  23656. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23657. if esep {
  23658. dd.ReadMapElemValue()
  23659. }
  23660. if dd.TryDecodeAsNil() {
  23661. if v == nil {
  23662. } else if d.h.DeleteOnNilMapValue {
  23663. delete(v, mk)
  23664. } else {
  23665. v[mk] = 0
  23666. }
  23667. continue
  23668. }
  23669. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23670. if v != nil {
  23671. v[mk] = mv
  23672. }
  23673. }
  23674. dd.ReadMapEnd()
  23675. d.depthDecr()
  23676. return v, changed
  23677. }
  23678. func (d *Decoder) fastpathDecMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  23679. if rv.Kind() == reflect.Ptr {
  23680. vp := rv2i(rv).(*map[uint16]uint16)
  23681. v, changed := fastpathTV.DecMapUint16Uint16V(*vp, true, d)
  23682. if changed {
  23683. *vp = v
  23684. }
  23685. } else {
  23686. fastpathTV.DecMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), false, d)
  23687. }
  23688. }
  23689. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, d *Decoder) {
  23690. v, changed := f.DecMapUint16Uint16V(*vp, true, d)
  23691. if changed {
  23692. *vp = v
  23693. }
  23694. }
  23695. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, canChange bool,
  23696. d *Decoder) (_ map[uint16]uint16, changed bool) {
  23697. dd, esep := d.d, d.hh.hasElemSeparators()
  23698. containerLen := dd.ReadMapStart()
  23699. if canChange && v == nil {
  23700. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  23701. v = make(map[uint16]uint16, xlen)
  23702. changed = true
  23703. }
  23704. if containerLen == 0 {
  23705. dd.ReadMapEnd()
  23706. return v, changed
  23707. }
  23708. d.depthIncr()
  23709. var mk uint16
  23710. var mv uint16
  23711. hasLen := containerLen > 0
  23712. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23713. if esep {
  23714. dd.ReadMapElemKey()
  23715. }
  23716. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23717. if esep {
  23718. dd.ReadMapElemValue()
  23719. }
  23720. if dd.TryDecodeAsNil() {
  23721. if v == nil {
  23722. } else if d.h.DeleteOnNilMapValue {
  23723. delete(v, mk)
  23724. } else {
  23725. v[mk] = 0
  23726. }
  23727. continue
  23728. }
  23729. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23730. if v != nil {
  23731. v[mk] = mv
  23732. }
  23733. }
  23734. dd.ReadMapEnd()
  23735. d.depthDecr()
  23736. return v, changed
  23737. }
  23738. func (d *Decoder) fastpathDecMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  23739. if rv.Kind() == reflect.Ptr {
  23740. vp := rv2i(rv).(*map[uint16]uint32)
  23741. v, changed := fastpathTV.DecMapUint16Uint32V(*vp, true, d)
  23742. if changed {
  23743. *vp = v
  23744. }
  23745. } else {
  23746. fastpathTV.DecMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), false, d)
  23747. }
  23748. }
  23749. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, d *Decoder) {
  23750. v, changed := f.DecMapUint16Uint32V(*vp, true, d)
  23751. if changed {
  23752. *vp = v
  23753. }
  23754. }
  23755. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, canChange bool,
  23756. d *Decoder) (_ map[uint16]uint32, changed bool) {
  23757. dd, esep := d.d, d.hh.hasElemSeparators()
  23758. containerLen := dd.ReadMapStart()
  23759. if canChange && v == nil {
  23760. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  23761. v = make(map[uint16]uint32, xlen)
  23762. changed = true
  23763. }
  23764. if containerLen == 0 {
  23765. dd.ReadMapEnd()
  23766. return v, changed
  23767. }
  23768. d.depthIncr()
  23769. var mk uint16
  23770. var mv uint32
  23771. hasLen := containerLen > 0
  23772. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23773. if esep {
  23774. dd.ReadMapElemKey()
  23775. }
  23776. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23777. if esep {
  23778. dd.ReadMapElemValue()
  23779. }
  23780. if dd.TryDecodeAsNil() {
  23781. if v == nil {
  23782. } else if d.h.DeleteOnNilMapValue {
  23783. delete(v, mk)
  23784. } else {
  23785. v[mk] = 0
  23786. }
  23787. continue
  23788. }
  23789. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  23790. if v != nil {
  23791. v[mk] = mv
  23792. }
  23793. }
  23794. dd.ReadMapEnd()
  23795. d.depthDecr()
  23796. return v, changed
  23797. }
  23798. func (d *Decoder) fastpathDecMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  23799. if rv.Kind() == reflect.Ptr {
  23800. vp := rv2i(rv).(*map[uint16]uint64)
  23801. v, changed := fastpathTV.DecMapUint16Uint64V(*vp, true, d)
  23802. if changed {
  23803. *vp = v
  23804. }
  23805. } else {
  23806. fastpathTV.DecMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), false, d)
  23807. }
  23808. }
  23809. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, d *Decoder) {
  23810. v, changed := f.DecMapUint16Uint64V(*vp, true, d)
  23811. if changed {
  23812. *vp = v
  23813. }
  23814. }
  23815. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, canChange bool,
  23816. d *Decoder) (_ map[uint16]uint64, changed bool) {
  23817. dd, esep := d.d, d.hh.hasElemSeparators()
  23818. containerLen := dd.ReadMapStart()
  23819. if canChange && v == nil {
  23820. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23821. v = make(map[uint16]uint64, xlen)
  23822. changed = true
  23823. }
  23824. if containerLen == 0 {
  23825. dd.ReadMapEnd()
  23826. return v, changed
  23827. }
  23828. d.depthIncr()
  23829. var mk uint16
  23830. var mv uint64
  23831. hasLen := containerLen > 0
  23832. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23833. if esep {
  23834. dd.ReadMapElemKey()
  23835. }
  23836. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23837. if esep {
  23838. dd.ReadMapElemValue()
  23839. }
  23840. if dd.TryDecodeAsNil() {
  23841. if v == nil {
  23842. } else if d.h.DeleteOnNilMapValue {
  23843. delete(v, mk)
  23844. } else {
  23845. v[mk] = 0
  23846. }
  23847. continue
  23848. }
  23849. mv = dd.DecodeUint64()
  23850. if v != nil {
  23851. v[mk] = mv
  23852. }
  23853. }
  23854. dd.ReadMapEnd()
  23855. d.depthDecr()
  23856. return v, changed
  23857. }
  23858. func (d *Decoder) fastpathDecMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  23859. if rv.Kind() == reflect.Ptr {
  23860. vp := rv2i(rv).(*map[uint16]uintptr)
  23861. v, changed := fastpathTV.DecMapUint16UintptrV(*vp, true, d)
  23862. if changed {
  23863. *vp = v
  23864. }
  23865. } else {
  23866. fastpathTV.DecMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), false, d)
  23867. }
  23868. }
  23869. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, d *Decoder) {
  23870. v, changed := f.DecMapUint16UintptrV(*vp, true, d)
  23871. if changed {
  23872. *vp = v
  23873. }
  23874. }
  23875. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, canChange bool,
  23876. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  23877. dd, esep := d.d, d.hh.hasElemSeparators()
  23878. containerLen := dd.ReadMapStart()
  23879. if canChange && v == nil {
  23880. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23881. v = make(map[uint16]uintptr, xlen)
  23882. changed = true
  23883. }
  23884. if containerLen == 0 {
  23885. dd.ReadMapEnd()
  23886. return v, changed
  23887. }
  23888. d.depthIncr()
  23889. var mk uint16
  23890. var mv uintptr
  23891. hasLen := containerLen > 0
  23892. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23893. if esep {
  23894. dd.ReadMapElemKey()
  23895. }
  23896. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23897. if esep {
  23898. dd.ReadMapElemValue()
  23899. }
  23900. if dd.TryDecodeAsNil() {
  23901. if v == nil {
  23902. } else if d.h.DeleteOnNilMapValue {
  23903. delete(v, mk)
  23904. } else {
  23905. v[mk] = 0
  23906. }
  23907. continue
  23908. }
  23909. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23910. if v != nil {
  23911. v[mk] = mv
  23912. }
  23913. }
  23914. dd.ReadMapEnd()
  23915. d.depthDecr()
  23916. return v, changed
  23917. }
  23918. func (d *Decoder) fastpathDecMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  23919. if rv.Kind() == reflect.Ptr {
  23920. vp := rv2i(rv).(*map[uint16]int)
  23921. v, changed := fastpathTV.DecMapUint16IntV(*vp, true, d)
  23922. if changed {
  23923. *vp = v
  23924. }
  23925. } else {
  23926. fastpathTV.DecMapUint16IntV(rv2i(rv).(map[uint16]int), false, d)
  23927. }
  23928. }
  23929. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, d *Decoder) {
  23930. v, changed := f.DecMapUint16IntV(*vp, true, d)
  23931. if changed {
  23932. *vp = v
  23933. }
  23934. }
  23935. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, canChange bool,
  23936. d *Decoder) (_ map[uint16]int, changed bool) {
  23937. dd, esep := d.d, d.hh.hasElemSeparators()
  23938. containerLen := dd.ReadMapStart()
  23939. if canChange && v == nil {
  23940. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23941. v = make(map[uint16]int, xlen)
  23942. changed = true
  23943. }
  23944. if containerLen == 0 {
  23945. dd.ReadMapEnd()
  23946. return v, changed
  23947. }
  23948. d.depthIncr()
  23949. var mk uint16
  23950. var mv int
  23951. hasLen := containerLen > 0
  23952. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23953. if esep {
  23954. dd.ReadMapElemKey()
  23955. }
  23956. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23957. if esep {
  23958. dd.ReadMapElemValue()
  23959. }
  23960. if dd.TryDecodeAsNil() {
  23961. if v == nil {
  23962. } else if d.h.DeleteOnNilMapValue {
  23963. delete(v, mk)
  23964. } else {
  23965. v[mk] = 0
  23966. }
  23967. continue
  23968. }
  23969. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  23970. if v != nil {
  23971. v[mk] = mv
  23972. }
  23973. }
  23974. dd.ReadMapEnd()
  23975. d.depthDecr()
  23976. return v, changed
  23977. }
  23978. func (d *Decoder) fastpathDecMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  23979. if rv.Kind() == reflect.Ptr {
  23980. vp := rv2i(rv).(*map[uint16]int8)
  23981. v, changed := fastpathTV.DecMapUint16Int8V(*vp, true, d)
  23982. if changed {
  23983. *vp = v
  23984. }
  23985. } else {
  23986. fastpathTV.DecMapUint16Int8V(rv2i(rv).(map[uint16]int8), false, d)
  23987. }
  23988. }
  23989. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, d *Decoder) {
  23990. v, changed := f.DecMapUint16Int8V(*vp, true, d)
  23991. if changed {
  23992. *vp = v
  23993. }
  23994. }
  23995. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, canChange bool,
  23996. d *Decoder) (_ map[uint16]int8, changed bool) {
  23997. dd, esep := d.d, d.hh.hasElemSeparators()
  23998. containerLen := dd.ReadMapStart()
  23999. if canChange && v == nil {
  24000. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24001. v = make(map[uint16]int8, xlen)
  24002. changed = true
  24003. }
  24004. if containerLen == 0 {
  24005. dd.ReadMapEnd()
  24006. return v, changed
  24007. }
  24008. d.depthIncr()
  24009. var mk uint16
  24010. var mv int8
  24011. hasLen := containerLen > 0
  24012. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24013. if esep {
  24014. dd.ReadMapElemKey()
  24015. }
  24016. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24017. if esep {
  24018. dd.ReadMapElemValue()
  24019. }
  24020. if dd.TryDecodeAsNil() {
  24021. if v == nil {
  24022. } else if d.h.DeleteOnNilMapValue {
  24023. delete(v, mk)
  24024. } else {
  24025. v[mk] = 0
  24026. }
  24027. continue
  24028. }
  24029. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  24030. if v != nil {
  24031. v[mk] = mv
  24032. }
  24033. }
  24034. dd.ReadMapEnd()
  24035. d.depthDecr()
  24036. return v, changed
  24037. }
  24038. func (d *Decoder) fastpathDecMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  24039. if rv.Kind() == reflect.Ptr {
  24040. vp := rv2i(rv).(*map[uint16]int16)
  24041. v, changed := fastpathTV.DecMapUint16Int16V(*vp, true, d)
  24042. if changed {
  24043. *vp = v
  24044. }
  24045. } else {
  24046. fastpathTV.DecMapUint16Int16V(rv2i(rv).(map[uint16]int16), false, d)
  24047. }
  24048. }
  24049. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, d *Decoder) {
  24050. v, changed := f.DecMapUint16Int16V(*vp, true, d)
  24051. if changed {
  24052. *vp = v
  24053. }
  24054. }
  24055. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, canChange bool,
  24056. d *Decoder) (_ map[uint16]int16, changed bool) {
  24057. dd, esep := d.d, d.hh.hasElemSeparators()
  24058. containerLen := dd.ReadMapStart()
  24059. if canChange && v == nil {
  24060. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  24061. v = make(map[uint16]int16, xlen)
  24062. changed = true
  24063. }
  24064. if containerLen == 0 {
  24065. dd.ReadMapEnd()
  24066. return v, changed
  24067. }
  24068. d.depthIncr()
  24069. var mk uint16
  24070. var mv int16
  24071. hasLen := containerLen > 0
  24072. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24073. if esep {
  24074. dd.ReadMapElemKey()
  24075. }
  24076. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24077. if esep {
  24078. dd.ReadMapElemValue()
  24079. }
  24080. if dd.TryDecodeAsNil() {
  24081. if v == nil {
  24082. } else if d.h.DeleteOnNilMapValue {
  24083. delete(v, mk)
  24084. } else {
  24085. v[mk] = 0
  24086. }
  24087. continue
  24088. }
  24089. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  24090. if v != nil {
  24091. v[mk] = mv
  24092. }
  24093. }
  24094. dd.ReadMapEnd()
  24095. d.depthDecr()
  24096. return v, changed
  24097. }
  24098. func (d *Decoder) fastpathDecMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  24099. if rv.Kind() == reflect.Ptr {
  24100. vp := rv2i(rv).(*map[uint16]int32)
  24101. v, changed := fastpathTV.DecMapUint16Int32V(*vp, true, d)
  24102. if changed {
  24103. *vp = v
  24104. }
  24105. } else {
  24106. fastpathTV.DecMapUint16Int32V(rv2i(rv).(map[uint16]int32), false, d)
  24107. }
  24108. }
  24109. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, d *Decoder) {
  24110. v, changed := f.DecMapUint16Int32V(*vp, true, d)
  24111. if changed {
  24112. *vp = v
  24113. }
  24114. }
  24115. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, canChange bool,
  24116. d *Decoder) (_ map[uint16]int32, changed bool) {
  24117. dd, esep := d.d, d.hh.hasElemSeparators()
  24118. containerLen := dd.ReadMapStart()
  24119. if canChange && v == nil {
  24120. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  24121. v = make(map[uint16]int32, xlen)
  24122. changed = true
  24123. }
  24124. if containerLen == 0 {
  24125. dd.ReadMapEnd()
  24126. return v, changed
  24127. }
  24128. d.depthIncr()
  24129. var mk uint16
  24130. var mv int32
  24131. hasLen := containerLen > 0
  24132. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24133. if esep {
  24134. dd.ReadMapElemKey()
  24135. }
  24136. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24137. if esep {
  24138. dd.ReadMapElemValue()
  24139. }
  24140. if dd.TryDecodeAsNil() {
  24141. if v == nil {
  24142. } else if d.h.DeleteOnNilMapValue {
  24143. delete(v, mk)
  24144. } else {
  24145. v[mk] = 0
  24146. }
  24147. continue
  24148. }
  24149. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  24150. if v != nil {
  24151. v[mk] = mv
  24152. }
  24153. }
  24154. dd.ReadMapEnd()
  24155. d.depthDecr()
  24156. return v, changed
  24157. }
  24158. func (d *Decoder) fastpathDecMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  24159. if rv.Kind() == reflect.Ptr {
  24160. vp := rv2i(rv).(*map[uint16]int64)
  24161. v, changed := fastpathTV.DecMapUint16Int64V(*vp, true, d)
  24162. if changed {
  24163. *vp = v
  24164. }
  24165. } else {
  24166. fastpathTV.DecMapUint16Int64V(rv2i(rv).(map[uint16]int64), false, d)
  24167. }
  24168. }
  24169. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, d *Decoder) {
  24170. v, changed := f.DecMapUint16Int64V(*vp, true, d)
  24171. if changed {
  24172. *vp = v
  24173. }
  24174. }
  24175. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, canChange bool,
  24176. d *Decoder) (_ map[uint16]int64, changed bool) {
  24177. dd, esep := d.d, d.hh.hasElemSeparators()
  24178. containerLen := dd.ReadMapStart()
  24179. if canChange && v == nil {
  24180. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24181. v = make(map[uint16]int64, xlen)
  24182. changed = true
  24183. }
  24184. if containerLen == 0 {
  24185. dd.ReadMapEnd()
  24186. return v, changed
  24187. }
  24188. d.depthIncr()
  24189. var mk uint16
  24190. var mv int64
  24191. hasLen := containerLen > 0
  24192. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24193. if esep {
  24194. dd.ReadMapElemKey()
  24195. }
  24196. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24197. if esep {
  24198. dd.ReadMapElemValue()
  24199. }
  24200. if dd.TryDecodeAsNil() {
  24201. if v == nil {
  24202. } else if d.h.DeleteOnNilMapValue {
  24203. delete(v, mk)
  24204. } else {
  24205. v[mk] = 0
  24206. }
  24207. continue
  24208. }
  24209. mv = dd.DecodeInt64()
  24210. if v != nil {
  24211. v[mk] = mv
  24212. }
  24213. }
  24214. dd.ReadMapEnd()
  24215. d.depthDecr()
  24216. return v, changed
  24217. }
  24218. func (d *Decoder) fastpathDecMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  24219. if rv.Kind() == reflect.Ptr {
  24220. vp := rv2i(rv).(*map[uint16]float32)
  24221. v, changed := fastpathTV.DecMapUint16Float32V(*vp, true, d)
  24222. if changed {
  24223. *vp = v
  24224. }
  24225. } else {
  24226. fastpathTV.DecMapUint16Float32V(rv2i(rv).(map[uint16]float32), false, d)
  24227. }
  24228. }
  24229. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, d *Decoder) {
  24230. v, changed := f.DecMapUint16Float32V(*vp, true, d)
  24231. if changed {
  24232. *vp = v
  24233. }
  24234. }
  24235. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, canChange bool,
  24236. d *Decoder) (_ map[uint16]float32, changed bool) {
  24237. dd, esep := d.d, d.hh.hasElemSeparators()
  24238. containerLen := dd.ReadMapStart()
  24239. if canChange && v == nil {
  24240. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  24241. v = make(map[uint16]float32, xlen)
  24242. changed = true
  24243. }
  24244. if containerLen == 0 {
  24245. dd.ReadMapEnd()
  24246. return v, changed
  24247. }
  24248. d.depthIncr()
  24249. var mk uint16
  24250. var mv float32
  24251. hasLen := containerLen > 0
  24252. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24253. if esep {
  24254. dd.ReadMapElemKey()
  24255. }
  24256. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24257. if esep {
  24258. dd.ReadMapElemValue()
  24259. }
  24260. if dd.TryDecodeAsNil() {
  24261. if v == nil {
  24262. } else if d.h.DeleteOnNilMapValue {
  24263. delete(v, mk)
  24264. } else {
  24265. v[mk] = 0
  24266. }
  24267. continue
  24268. }
  24269. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  24270. if v != nil {
  24271. v[mk] = mv
  24272. }
  24273. }
  24274. dd.ReadMapEnd()
  24275. d.depthDecr()
  24276. return v, changed
  24277. }
  24278. func (d *Decoder) fastpathDecMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  24279. if rv.Kind() == reflect.Ptr {
  24280. vp := rv2i(rv).(*map[uint16]float64)
  24281. v, changed := fastpathTV.DecMapUint16Float64V(*vp, true, d)
  24282. if changed {
  24283. *vp = v
  24284. }
  24285. } else {
  24286. fastpathTV.DecMapUint16Float64V(rv2i(rv).(map[uint16]float64), false, d)
  24287. }
  24288. }
  24289. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, d *Decoder) {
  24290. v, changed := f.DecMapUint16Float64V(*vp, true, d)
  24291. if changed {
  24292. *vp = v
  24293. }
  24294. }
  24295. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, canChange bool,
  24296. d *Decoder) (_ map[uint16]float64, changed bool) {
  24297. dd, esep := d.d, d.hh.hasElemSeparators()
  24298. containerLen := dd.ReadMapStart()
  24299. if canChange && v == nil {
  24300. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24301. v = make(map[uint16]float64, xlen)
  24302. changed = true
  24303. }
  24304. if containerLen == 0 {
  24305. dd.ReadMapEnd()
  24306. return v, changed
  24307. }
  24308. d.depthIncr()
  24309. var mk uint16
  24310. var mv float64
  24311. hasLen := containerLen > 0
  24312. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24313. if esep {
  24314. dd.ReadMapElemKey()
  24315. }
  24316. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24317. if esep {
  24318. dd.ReadMapElemValue()
  24319. }
  24320. if dd.TryDecodeAsNil() {
  24321. if v == nil {
  24322. } else if d.h.DeleteOnNilMapValue {
  24323. delete(v, mk)
  24324. } else {
  24325. v[mk] = 0
  24326. }
  24327. continue
  24328. }
  24329. mv = dd.DecodeFloat64()
  24330. if v != nil {
  24331. v[mk] = mv
  24332. }
  24333. }
  24334. dd.ReadMapEnd()
  24335. d.depthDecr()
  24336. return v, changed
  24337. }
  24338. func (d *Decoder) fastpathDecMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  24339. if rv.Kind() == reflect.Ptr {
  24340. vp := rv2i(rv).(*map[uint16]bool)
  24341. v, changed := fastpathTV.DecMapUint16BoolV(*vp, true, d)
  24342. if changed {
  24343. *vp = v
  24344. }
  24345. } else {
  24346. fastpathTV.DecMapUint16BoolV(rv2i(rv).(map[uint16]bool), false, d)
  24347. }
  24348. }
  24349. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, d *Decoder) {
  24350. v, changed := f.DecMapUint16BoolV(*vp, true, d)
  24351. if changed {
  24352. *vp = v
  24353. }
  24354. }
  24355. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, canChange bool,
  24356. d *Decoder) (_ map[uint16]bool, changed bool) {
  24357. dd, esep := d.d, d.hh.hasElemSeparators()
  24358. containerLen := dd.ReadMapStart()
  24359. if canChange && v == nil {
  24360. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24361. v = make(map[uint16]bool, xlen)
  24362. changed = true
  24363. }
  24364. if containerLen == 0 {
  24365. dd.ReadMapEnd()
  24366. return v, changed
  24367. }
  24368. d.depthIncr()
  24369. var mk uint16
  24370. var mv bool
  24371. hasLen := containerLen > 0
  24372. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24373. if esep {
  24374. dd.ReadMapElemKey()
  24375. }
  24376. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24377. if esep {
  24378. dd.ReadMapElemValue()
  24379. }
  24380. if dd.TryDecodeAsNil() {
  24381. if v == nil {
  24382. } else if d.h.DeleteOnNilMapValue {
  24383. delete(v, mk)
  24384. } else {
  24385. v[mk] = false
  24386. }
  24387. continue
  24388. }
  24389. mv = dd.DecodeBool()
  24390. if v != nil {
  24391. v[mk] = mv
  24392. }
  24393. }
  24394. dd.ReadMapEnd()
  24395. d.depthDecr()
  24396. return v, changed
  24397. }
  24398. func (d *Decoder) fastpathDecMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  24399. if rv.Kind() == reflect.Ptr {
  24400. vp := rv2i(rv).(*map[uint32]interface{})
  24401. v, changed := fastpathTV.DecMapUint32IntfV(*vp, true, d)
  24402. if changed {
  24403. *vp = v
  24404. }
  24405. } else {
  24406. fastpathTV.DecMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), false, d)
  24407. }
  24408. }
  24409. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, d *Decoder) {
  24410. v, changed := f.DecMapUint32IntfV(*vp, true, d)
  24411. if changed {
  24412. *vp = v
  24413. }
  24414. }
  24415. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, canChange bool,
  24416. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  24417. dd, esep := d.d, d.hh.hasElemSeparators()
  24418. containerLen := dd.ReadMapStart()
  24419. if canChange && v == nil {
  24420. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  24421. v = make(map[uint32]interface{}, xlen)
  24422. changed = true
  24423. }
  24424. if containerLen == 0 {
  24425. dd.ReadMapEnd()
  24426. return v, changed
  24427. }
  24428. d.depthIncr()
  24429. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  24430. var mk uint32
  24431. var mv interface{}
  24432. hasLen := containerLen > 0
  24433. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24434. if esep {
  24435. dd.ReadMapElemKey()
  24436. }
  24437. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24438. if esep {
  24439. dd.ReadMapElemValue()
  24440. }
  24441. if dd.TryDecodeAsNil() {
  24442. if v == nil {
  24443. } else if d.h.DeleteOnNilMapValue {
  24444. delete(v, mk)
  24445. } else {
  24446. v[mk] = nil
  24447. }
  24448. continue
  24449. }
  24450. if mapGet {
  24451. mv = v[mk]
  24452. } else {
  24453. mv = nil
  24454. }
  24455. d.decode(&mv)
  24456. if v != nil {
  24457. v[mk] = mv
  24458. }
  24459. }
  24460. dd.ReadMapEnd()
  24461. d.depthDecr()
  24462. return v, changed
  24463. }
  24464. func (d *Decoder) fastpathDecMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  24465. if rv.Kind() == reflect.Ptr {
  24466. vp := rv2i(rv).(*map[uint32]string)
  24467. v, changed := fastpathTV.DecMapUint32StringV(*vp, true, d)
  24468. if changed {
  24469. *vp = v
  24470. }
  24471. } else {
  24472. fastpathTV.DecMapUint32StringV(rv2i(rv).(map[uint32]string), false, d)
  24473. }
  24474. }
  24475. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, d *Decoder) {
  24476. v, changed := f.DecMapUint32StringV(*vp, true, d)
  24477. if changed {
  24478. *vp = v
  24479. }
  24480. }
  24481. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, canChange bool,
  24482. d *Decoder) (_ map[uint32]string, changed bool) {
  24483. dd, esep := d.d, d.hh.hasElemSeparators()
  24484. containerLen := dd.ReadMapStart()
  24485. if canChange && v == nil {
  24486. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  24487. v = make(map[uint32]string, xlen)
  24488. changed = true
  24489. }
  24490. if containerLen == 0 {
  24491. dd.ReadMapEnd()
  24492. return v, changed
  24493. }
  24494. d.depthIncr()
  24495. var mk uint32
  24496. var mv string
  24497. hasLen := containerLen > 0
  24498. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24499. if esep {
  24500. dd.ReadMapElemKey()
  24501. }
  24502. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24503. if esep {
  24504. dd.ReadMapElemValue()
  24505. }
  24506. if dd.TryDecodeAsNil() {
  24507. if v == nil {
  24508. } else if d.h.DeleteOnNilMapValue {
  24509. delete(v, mk)
  24510. } else {
  24511. v[mk] = ""
  24512. }
  24513. continue
  24514. }
  24515. mv = dd.DecodeString()
  24516. if v != nil {
  24517. v[mk] = mv
  24518. }
  24519. }
  24520. dd.ReadMapEnd()
  24521. d.depthDecr()
  24522. return v, changed
  24523. }
  24524. func (d *Decoder) fastpathDecMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  24525. if rv.Kind() == reflect.Ptr {
  24526. vp := rv2i(rv).(*map[uint32]uint)
  24527. v, changed := fastpathTV.DecMapUint32UintV(*vp, true, d)
  24528. if changed {
  24529. *vp = v
  24530. }
  24531. } else {
  24532. fastpathTV.DecMapUint32UintV(rv2i(rv).(map[uint32]uint), false, d)
  24533. }
  24534. }
  24535. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, d *Decoder) {
  24536. v, changed := f.DecMapUint32UintV(*vp, true, d)
  24537. if changed {
  24538. *vp = v
  24539. }
  24540. }
  24541. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, canChange bool,
  24542. d *Decoder) (_ map[uint32]uint, changed bool) {
  24543. dd, esep := d.d, d.hh.hasElemSeparators()
  24544. containerLen := dd.ReadMapStart()
  24545. if canChange && v == nil {
  24546. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24547. v = make(map[uint32]uint, xlen)
  24548. changed = true
  24549. }
  24550. if containerLen == 0 {
  24551. dd.ReadMapEnd()
  24552. return v, changed
  24553. }
  24554. d.depthIncr()
  24555. var mk uint32
  24556. var mv uint
  24557. hasLen := containerLen > 0
  24558. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24559. if esep {
  24560. dd.ReadMapElemKey()
  24561. }
  24562. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24563. if esep {
  24564. dd.ReadMapElemValue()
  24565. }
  24566. if dd.TryDecodeAsNil() {
  24567. if v == nil {
  24568. } else if d.h.DeleteOnNilMapValue {
  24569. delete(v, mk)
  24570. } else {
  24571. v[mk] = 0
  24572. }
  24573. continue
  24574. }
  24575. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  24576. if v != nil {
  24577. v[mk] = mv
  24578. }
  24579. }
  24580. dd.ReadMapEnd()
  24581. d.depthDecr()
  24582. return v, changed
  24583. }
  24584. func (d *Decoder) fastpathDecMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  24585. if rv.Kind() == reflect.Ptr {
  24586. vp := rv2i(rv).(*map[uint32]uint8)
  24587. v, changed := fastpathTV.DecMapUint32Uint8V(*vp, true, d)
  24588. if changed {
  24589. *vp = v
  24590. }
  24591. } else {
  24592. fastpathTV.DecMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), false, d)
  24593. }
  24594. }
  24595. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, d *Decoder) {
  24596. v, changed := f.DecMapUint32Uint8V(*vp, true, d)
  24597. if changed {
  24598. *vp = v
  24599. }
  24600. }
  24601. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, canChange bool,
  24602. d *Decoder) (_ map[uint32]uint8, changed bool) {
  24603. dd, esep := d.d, d.hh.hasElemSeparators()
  24604. containerLen := dd.ReadMapStart()
  24605. if canChange && v == nil {
  24606. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24607. v = make(map[uint32]uint8, xlen)
  24608. changed = true
  24609. }
  24610. if containerLen == 0 {
  24611. dd.ReadMapEnd()
  24612. return v, changed
  24613. }
  24614. d.depthIncr()
  24615. var mk uint32
  24616. var mv uint8
  24617. hasLen := containerLen > 0
  24618. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24619. if esep {
  24620. dd.ReadMapElemKey()
  24621. }
  24622. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24623. if esep {
  24624. dd.ReadMapElemValue()
  24625. }
  24626. if dd.TryDecodeAsNil() {
  24627. if v == nil {
  24628. } else if d.h.DeleteOnNilMapValue {
  24629. delete(v, mk)
  24630. } else {
  24631. v[mk] = 0
  24632. }
  24633. continue
  24634. }
  24635. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24636. if v != nil {
  24637. v[mk] = mv
  24638. }
  24639. }
  24640. dd.ReadMapEnd()
  24641. d.depthDecr()
  24642. return v, changed
  24643. }
  24644. func (d *Decoder) fastpathDecMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  24645. if rv.Kind() == reflect.Ptr {
  24646. vp := rv2i(rv).(*map[uint32]uint16)
  24647. v, changed := fastpathTV.DecMapUint32Uint16V(*vp, true, d)
  24648. if changed {
  24649. *vp = v
  24650. }
  24651. } else {
  24652. fastpathTV.DecMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), false, d)
  24653. }
  24654. }
  24655. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, d *Decoder) {
  24656. v, changed := f.DecMapUint32Uint16V(*vp, true, d)
  24657. if changed {
  24658. *vp = v
  24659. }
  24660. }
  24661. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, canChange bool,
  24662. d *Decoder) (_ map[uint32]uint16, changed bool) {
  24663. dd, esep := d.d, d.hh.hasElemSeparators()
  24664. containerLen := dd.ReadMapStart()
  24665. if canChange && v == nil {
  24666. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  24667. v = make(map[uint32]uint16, xlen)
  24668. changed = true
  24669. }
  24670. if containerLen == 0 {
  24671. dd.ReadMapEnd()
  24672. return v, changed
  24673. }
  24674. d.depthIncr()
  24675. var mk uint32
  24676. var mv uint16
  24677. hasLen := containerLen > 0
  24678. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24679. if esep {
  24680. dd.ReadMapElemKey()
  24681. }
  24682. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24683. if esep {
  24684. dd.ReadMapElemValue()
  24685. }
  24686. if dd.TryDecodeAsNil() {
  24687. if v == nil {
  24688. } else if d.h.DeleteOnNilMapValue {
  24689. delete(v, mk)
  24690. } else {
  24691. v[mk] = 0
  24692. }
  24693. continue
  24694. }
  24695. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24696. if v != nil {
  24697. v[mk] = mv
  24698. }
  24699. }
  24700. dd.ReadMapEnd()
  24701. d.depthDecr()
  24702. return v, changed
  24703. }
  24704. func (d *Decoder) fastpathDecMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  24705. if rv.Kind() == reflect.Ptr {
  24706. vp := rv2i(rv).(*map[uint32]uint32)
  24707. v, changed := fastpathTV.DecMapUint32Uint32V(*vp, true, d)
  24708. if changed {
  24709. *vp = v
  24710. }
  24711. } else {
  24712. fastpathTV.DecMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), false, d)
  24713. }
  24714. }
  24715. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, d *Decoder) {
  24716. v, changed := f.DecMapUint32Uint32V(*vp, true, d)
  24717. if changed {
  24718. *vp = v
  24719. }
  24720. }
  24721. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, canChange bool,
  24722. d *Decoder) (_ map[uint32]uint32, changed bool) {
  24723. dd, esep := d.d, d.hh.hasElemSeparators()
  24724. containerLen := dd.ReadMapStart()
  24725. if canChange && v == nil {
  24726. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  24727. v = make(map[uint32]uint32, xlen)
  24728. changed = true
  24729. }
  24730. if containerLen == 0 {
  24731. dd.ReadMapEnd()
  24732. return v, changed
  24733. }
  24734. d.depthIncr()
  24735. var mk uint32
  24736. var mv uint32
  24737. hasLen := containerLen > 0
  24738. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24739. if esep {
  24740. dd.ReadMapElemKey()
  24741. }
  24742. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24743. if esep {
  24744. dd.ReadMapElemValue()
  24745. }
  24746. if dd.TryDecodeAsNil() {
  24747. if v == nil {
  24748. } else if d.h.DeleteOnNilMapValue {
  24749. delete(v, mk)
  24750. } else {
  24751. v[mk] = 0
  24752. }
  24753. continue
  24754. }
  24755. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24756. if v != nil {
  24757. v[mk] = mv
  24758. }
  24759. }
  24760. dd.ReadMapEnd()
  24761. d.depthDecr()
  24762. return v, changed
  24763. }
  24764. func (d *Decoder) fastpathDecMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  24765. if rv.Kind() == reflect.Ptr {
  24766. vp := rv2i(rv).(*map[uint32]uint64)
  24767. v, changed := fastpathTV.DecMapUint32Uint64V(*vp, true, d)
  24768. if changed {
  24769. *vp = v
  24770. }
  24771. } else {
  24772. fastpathTV.DecMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), false, d)
  24773. }
  24774. }
  24775. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, d *Decoder) {
  24776. v, changed := f.DecMapUint32Uint64V(*vp, true, d)
  24777. if changed {
  24778. *vp = v
  24779. }
  24780. }
  24781. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, canChange bool,
  24782. d *Decoder) (_ map[uint32]uint64, changed bool) {
  24783. dd, esep := d.d, d.hh.hasElemSeparators()
  24784. containerLen := dd.ReadMapStart()
  24785. if canChange && v == nil {
  24786. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24787. v = make(map[uint32]uint64, xlen)
  24788. changed = true
  24789. }
  24790. if containerLen == 0 {
  24791. dd.ReadMapEnd()
  24792. return v, changed
  24793. }
  24794. d.depthIncr()
  24795. var mk uint32
  24796. var mv uint64
  24797. hasLen := containerLen > 0
  24798. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24799. if esep {
  24800. dd.ReadMapElemKey()
  24801. }
  24802. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24803. if esep {
  24804. dd.ReadMapElemValue()
  24805. }
  24806. if dd.TryDecodeAsNil() {
  24807. if v == nil {
  24808. } else if d.h.DeleteOnNilMapValue {
  24809. delete(v, mk)
  24810. } else {
  24811. v[mk] = 0
  24812. }
  24813. continue
  24814. }
  24815. mv = dd.DecodeUint64()
  24816. if v != nil {
  24817. v[mk] = mv
  24818. }
  24819. }
  24820. dd.ReadMapEnd()
  24821. d.depthDecr()
  24822. return v, changed
  24823. }
  24824. func (d *Decoder) fastpathDecMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  24825. if rv.Kind() == reflect.Ptr {
  24826. vp := rv2i(rv).(*map[uint32]uintptr)
  24827. v, changed := fastpathTV.DecMapUint32UintptrV(*vp, true, d)
  24828. if changed {
  24829. *vp = v
  24830. }
  24831. } else {
  24832. fastpathTV.DecMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), false, d)
  24833. }
  24834. }
  24835. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, d *Decoder) {
  24836. v, changed := f.DecMapUint32UintptrV(*vp, true, d)
  24837. if changed {
  24838. *vp = v
  24839. }
  24840. }
  24841. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, canChange bool,
  24842. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  24843. dd, esep := d.d, d.hh.hasElemSeparators()
  24844. containerLen := dd.ReadMapStart()
  24845. if canChange && v == nil {
  24846. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24847. v = make(map[uint32]uintptr, xlen)
  24848. changed = true
  24849. }
  24850. if containerLen == 0 {
  24851. dd.ReadMapEnd()
  24852. return v, changed
  24853. }
  24854. d.depthIncr()
  24855. var mk uint32
  24856. var mv uintptr
  24857. hasLen := containerLen > 0
  24858. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24859. if esep {
  24860. dd.ReadMapElemKey()
  24861. }
  24862. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24863. if esep {
  24864. dd.ReadMapElemValue()
  24865. }
  24866. if dd.TryDecodeAsNil() {
  24867. if v == nil {
  24868. } else if d.h.DeleteOnNilMapValue {
  24869. delete(v, mk)
  24870. } else {
  24871. v[mk] = 0
  24872. }
  24873. continue
  24874. }
  24875. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  24876. if v != nil {
  24877. v[mk] = mv
  24878. }
  24879. }
  24880. dd.ReadMapEnd()
  24881. d.depthDecr()
  24882. return v, changed
  24883. }
  24884. func (d *Decoder) fastpathDecMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  24885. if rv.Kind() == reflect.Ptr {
  24886. vp := rv2i(rv).(*map[uint32]int)
  24887. v, changed := fastpathTV.DecMapUint32IntV(*vp, true, d)
  24888. if changed {
  24889. *vp = v
  24890. }
  24891. } else {
  24892. fastpathTV.DecMapUint32IntV(rv2i(rv).(map[uint32]int), false, d)
  24893. }
  24894. }
  24895. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, d *Decoder) {
  24896. v, changed := f.DecMapUint32IntV(*vp, true, d)
  24897. if changed {
  24898. *vp = v
  24899. }
  24900. }
  24901. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, canChange bool,
  24902. d *Decoder) (_ map[uint32]int, changed bool) {
  24903. dd, esep := d.d, d.hh.hasElemSeparators()
  24904. containerLen := dd.ReadMapStart()
  24905. if canChange && v == nil {
  24906. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24907. v = make(map[uint32]int, xlen)
  24908. changed = true
  24909. }
  24910. if containerLen == 0 {
  24911. dd.ReadMapEnd()
  24912. return v, changed
  24913. }
  24914. d.depthIncr()
  24915. var mk uint32
  24916. var mv int
  24917. hasLen := containerLen > 0
  24918. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24919. if esep {
  24920. dd.ReadMapElemKey()
  24921. }
  24922. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24923. if esep {
  24924. dd.ReadMapElemValue()
  24925. }
  24926. if dd.TryDecodeAsNil() {
  24927. if v == nil {
  24928. } else if d.h.DeleteOnNilMapValue {
  24929. delete(v, mk)
  24930. } else {
  24931. v[mk] = 0
  24932. }
  24933. continue
  24934. }
  24935. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  24936. if v != nil {
  24937. v[mk] = mv
  24938. }
  24939. }
  24940. dd.ReadMapEnd()
  24941. d.depthDecr()
  24942. return v, changed
  24943. }
  24944. func (d *Decoder) fastpathDecMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  24945. if rv.Kind() == reflect.Ptr {
  24946. vp := rv2i(rv).(*map[uint32]int8)
  24947. v, changed := fastpathTV.DecMapUint32Int8V(*vp, true, d)
  24948. if changed {
  24949. *vp = v
  24950. }
  24951. } else {
  24952. fastpathTV.DecMapUint32Int8V(rv2i(rv).(map[uint32]int8), false, d)
  24953. }
  24954. }
  24955. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, d *Decoder) {
  24956. v, changed := f.DecMapUint32Int8V(*vp, true, d)
  24957. if changed {
  24958. *vp = v
  24959. }
  24960. }
  24961. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, canChange bool,
  24962. d *Decoder) (_ map[uint32]int8, changed bool) {
  24963. dd, esep := d.d, d.hh.hasElemSeparators()
  24964. containerLen := dd.ReadMapStart()
  24965. if canChange && v == nil {
  24966. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24967. v = make(map[uint32]int8, xlen)
  24968. changed = true
  24969. }
  24970. if containerLen == 0 {
  24971. dd.ReadMapEnd()
  24972. return v, changed
  24973. }
  24974. d.depthIncr()
  24975. var mk uint32
  24976. var mv int8
  24977. hasLen := containerLen > 0
  24978. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24979. if esep {
  24980. dd.ReadMapElemKey()
  24981. }
  24982. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24983. if esep {
  24984. dd.ReadMapElemValue()
  24985. }
  24986. if dd.TryDecodeAsNil() {
  24987. if v == nil {
  24988. } else if d.h.DeleteOnNilMapValue {
  24989. delete(v, mk)
  24990. } else {
  24991. v[mk] = 0
  24992. }
  24993. continue
  24994. }
  24995. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  24996. if v != nil {
  24997. v[mk] = mv
  24998. }
  24999. }
  25000. dd.ReadMapEnd()
  25001. d.depthDecr()
  25002. return v, changed
  25003. }
  25004. func (d *Decoder) fastpathDecMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  25005. if rv.Kind() == reflect.Ptr {
  25006. vp := rv2i(rv).(*map[uint32]int16)
  25007. v, changed := fastpathTV.DecMapUint32Int16V(*vp, true, d)
  25008. if changed {
  25009. *vp = v
  25010. }
  25011. } else {
  25012. fastpathTV.DecMapUint32Int16V(rv2i(rv).(map[uint32]int16), false, d)
  25013. }
  25014. }
  25015. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, d *Decoder) {
  25016. v, changed := f.DecMapUint32Int16V(*vp, true, d)
  25017. if changed {
  25018. *vp = v
  25019. }
  25020. }
  25021. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, canChange bool,
  25022. d *Decoder) (_ map[uint32]int16, changed bool) {
  25023. dd, esep := d.d, d.hh.hasElemSeparators()
  25024. containerLen := dd.ReadMapStart()
  25025. if canChange && v == nil {
  25026. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25027. v = make(map[uint32]int16, xlen)
  25028. changed = true
  25029. }
  25030. if containerLen == 0 {
  25031. dd.ReadMapEnd()
  25032. return v, changed
  25033. }
  25034. d.depthIncr()
  25035. var mk uint32
  25036. var mv int16
  25037. hasLen := containerLen > 0
  25038. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25039. if esep {
  25040. dd.ReadMapElemKey()
  25041. }
  25042. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25043. if esep {
  25044. dd.ReadMapElemValue()
  25045. }
  25046. if dd.TryDecodeAsNil() {
  25047. if v == nil {
  25048. } else if d.h.DeleteOnNilMapValue {
  25049. delete(v, mk)
  25050. } else {
  25051. v[mk] = 0
  25052. }
  25053. continue
  25054. }
  25055. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  25056. if v != nil {
  25057. v[mk] = mv
  25058. }
  25059. }
  25060. dd.ReadMapEnd()
  25061. d.depthDecr()
  25062. return v, changed
  25063. }
  25064. func (d *Decoder) fastpathDecMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  25065. if rv.Kind() == reflect.Ptr {
  25066. vp := rv2i(rv).(*map[uint32]int32)
  25067. v, changed := fastpathTV.DecMapUint32Int32V(*vp, true, d)
  25068. if changed {
  25069. *vp = v
  25070. }
  25071. } else {
  25072. fastpathTV.DecMapUint32Int32V(rv2i(rv).(map[uint32]int32), false, d)
  25073. }
  25074. }
  25075. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, d *Decoder) {
  25076. v, changed := f.DecMapUint32Int32V(*vp, true, d)
  25077. if changed {
  25078. *vp = v
  25079. }
  25080. }
  25081. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, canChange bool,
  25082. d *Decoder) (_ map[uint32]int32, changed bool) {
  25083. dd, esep := d.d, d.hh.hasElemSeparators()
  25084. containerLen := dd.ReadMapStart()
  25085. if canChange && v == nil {
  25086. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  25087. v = make(map[uint32]int32, xlen)
  25088. changed = true
  25089. }
  25090. if containerLen == 0 {
  25091. dd.ReadMapEnd()
  25092. return v, changed
  25093. }
  25094. d.depthIncr()
  25095. var mk uint32
  25096. var mv int32
  25097. hasLen := containerLen > 0
  25098. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25099. if esep {
  25100. dd.ReadMapElemKey()
  25101. }
  25102. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25103. if esep {
  25104. dd.ReadMapElemValue()
  25105. }
  25106. if dd.TryDecodeAsNil() {
  25107. if v == nil {
  25108. } else if d.h.DeleteOnNilMapValue {
  25109. delete(v, mk)
  25110. } else {
  25111. v[mk] = 0
  25112. }
  25113. continue
  25114. }
  25115. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  25116. if v != nil {
  25117. v[mk] = mv
  25118. }
  25119. }
  25120. dd.ReadMapEnd()
  25121. d.depthDecr()
  25122. return v, changed
  25123. }
  25124. func (d *Decoder) fastpathDecMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  25125. if rv.Kind() == reflect.Ptr {
  25126. vp := rv2i(rv).(*map[uint32]int64)
  25127. v, changed := fastpathTV.DecMapUint32Int64V(*vp, true, d)
  25128. if changed {
  25129. *vp = v
  25130. }
  25131. } else {
  25132. fastpathTV.DecMapUint32Int64V(rv2i(rv).(map[uint32]int64), false, d)
  25133. }
  25134. }
  25135. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, d *Decoder) {
  25136. v, changed := f.DecMapUint32Int64V(*vp, true, d)
  25137. if changed {
  25138. *vp = v
  25139. }
  25140. }
  25141. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, canChange bool,
  25142. d *Decoder) (_ map[uint32]int64, changed bool) {
  25143. dd, esep := d.d, d.hh.hasElemSeparators()
  25144. containerLen := dd.ReadMapStart()
  25145. if canChange && v == nil {
  25146. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25147. v = make(map[uint32]int64, xlen)
  25148. changed = true
  25149. }
  25150. if containerLen == 0 {
  25151. dd.ReadMapEnd()
  25152. return v, changed
  25153. }
  25154. d.depthIncr()
  25155. var mk uint32
  25156. var mv int64
  25157. hasLen := containerLen > 0
  25158. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25159. if esep {
  25160. dd.ReadMapElemKey()
  25161. }
  25162. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25163. if esep {
  25164. dd.ReadMapElemValue()
  25165. }
  25166. if dd.TryDecodeAsNil() {
  25167. if v == nil {
  25168. } else if d.h.DeleteOnNilMapValue {
  25169. delete(v, mk)
  25170. } else {
  25171. v[mk] = 0
  25172. }
  25173. continue
  25174. }
  25175. mv = dd.DecodeInt64()
  25176. if v != nil {
  25177. v[mk] = mv
  25178. }
  25179. }
  25180. dd.ReadMapEnd()
  25181. d.depthDecr()
  25182. return v, changed
  25183. }
  25184. func (d *Decoder) fastpathDecMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  25185. if rv.Kind() == reflect.Ptr {
  25186. vp := rv2i(rv).(*map[uint32]float32)
  25187. v, changed := fastpathTV.DecMapUint32Float32V(*vp, true, d)
  25188. if changed {
  25189. *vp = v
  25190. }
  25191. } else {
  25192. fastpathTV.DecMapUint32Float32V(rv2i(rv).(map[uint32]float32), false, d)
  25193. }
  25194. }
  25195. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, d *Decoder) {
  25196. v, changed := f.DecMapUint32Float32V(*vp, true, d)
  25197. if changed {
  25198. *vp = v
  25199. }
  25200. }
  25201. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, canChange bool,
  25202. d *Decoder) (_ map[uint32]float32, changed bool) {
  25203. dd, esep := d.d, d.hh.hasElemSeparators()
  25204. containerLen := dd.ReadMapStart()
  25205. if canChange && v == nil {
  25206. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  25207. v = make(map[uint32]float32, xlen)
  25208. changed = true
  25209. }
  25210. if containerLen == 0 {
  25211. dd.ReadMapEnd()
  25212. return v, changed
  25213. }
  25214. d.depthIncr()
  25215. var mk uint32
  25216. var mv float32
  25217. hasLen := containerLen > 0
  25218. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25219. if esep {
  25220. dd.ReadMapElemKey()
  25221. }
  25222. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25223. if esep {
  25224. dd.ReadMapElemValue()
  25225. }
  25226. if dd.TryDecodeAsNil() {
  25227. if v == nil {
  25228. } else if d.h.DeleteOnNilMapValue {
  25229. delete(v, mk)
  25230. } else {
  25231. v[mk] = 0
  25232. }
  25233. continue
  25234. }
  25235. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  25236. if v != nil {
  25237. v[mk] = mv
  25238. }
  25239. }
  25240. dd.ReadMapEnd()
  25241. d.depthDecr()
  25242. return v, changed
  25243. }
  25244. func (d *Decoder) fastpathDecMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  25245. if rv.Kind() == reflect.Ptr {
  25246. vp := rv2i(rv).(*map[uint32]float64)
  25247. v, changed := fastpathTV.DecMapUint32Float64V(*vp, true, d)
  25248. if changed {
  25249. *vp = v
  25250. }
  25251. } else {
  25252. fastpathTV.DecMapUint32Float64V(rv2i(rv).(map[uint32]float64), false, d)
  25253. }
  25254. }
  25255. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, d *Decoder) {
  25256. v, changed := f.DecMapUint32Float64V(*vp, true, d)
  25257. if changed {
  25258. *vp = v
  25259. }
  25260. }
  25261. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, canChange bool,
  25262. d *Decoder) (_ map[uint32]float64, changed bool) {
  25263. dd, esep := d.d, d.hh.hasElemSeparators()
  25264. containerLen := dd.ReadMapStart()
  25265. if canChange && v == nil {
  25266. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25267. v = make(map[uint32]float64, xlen)
  25268. changed = true
  25269. }
  25270. if containerLen == 0 {
  25271. dd.ReadMapEnd()
  25272. return v, changed
  25273. }
  25274. d.depthIncr()
  25275. var mk uint32
  25276. var mv float64
  25277. hasLen := containerLen > 0
  25278. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25279. if esep {
  25280. dd.ReadMapElemKey()
  25281. }
  25282. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25283. if esep {
  25284. dd.ReadMapElemValue()
  25285. }
  25286. if dd.TryDecodeAsNil() {
  25287. if v == nil {
  25288. } else if d.h.DeleteOnNilMapValue {
  25289. delete(v, mk)
  25290. } else {
  25291. v[mk] = 0
  25292. }
  25293. continue
  25294. }
  25295. mv = dd.DecodeFloat64()
  25296. if v != nil {
  25297. v[mk] = mv
  25298. }
  25299. }
  25300. dd.ReadMapEnd()
  25301. d.depthDecr()
  25302. return v, changed
  25303. }
  25304. func (d *Decoder) fastpathDecMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  25305. if rv.Kind() == reflect.Ptr {
  25306. vp := rv2i(rv).(*map[uint32]bool)
  25307. v, changed := fastpathTV.DecMapUint32BoolV(*vp, true, d)
  25308. if changed {
  25309. *vp = v
  25310. }
  25311. } else {
  25312. fastpathTV.DecMapUint32BoolV(rv2i(rv).(map[uint32]bool), false, d)
  25313. }
  25314. }
  25315. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, d *Decoder) {
  25316. v, changed := f.DecMapUint32BoolV(*vp, true, d)
  25317. if changed {
  25318. *vp = v
  25319. }
  25320. }
  25321. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, canChange bool,
  25322. d *Decoder) (_ map[uint32]bool, changed bool) {
  25323. dd, esep := d.d, d.hh.hasElemSeparators()
  25324. containerLen := dd.ReadMapStart()
  25325. if canChange && v == nil {
  25326. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  25327. v = make(map[uint32]bool, xlen)
  25328. changed = true
  25329. }
  25330. if containerLen == 0 {
  25331. dd.ReadMapEnd()
  25332. return v, changed
  25333. }
  25334. d.depthIncr()
  25335. var mk uint32
  25336. var mv bool
  25337. hasLen := containerLen > 0
  25338. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25339. if esep {
  25340. dd.ReadMapElemKey()
  25341. }
  25342. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25343. if esep {
  25344. dd.ReadMapElemValue()
  25345. }
  25346. if dd.TryDecodeAsNil() {
  25347. if v == nil {
  25348. } else if d.h.DeleteOnNilMapValue {
  25349. delete(v, mk)
  25350. } else {
  25351. v[mk] = false
  25352. }
  25353. continue
  25354. }
  25355. mv = dd.DecodeBool()
  25356. if v != nil {
  25357. v[mk] = mv
  25358. }
  25359. }
  25360. dd.ReadMapEnd()
  25361. d.depthDecr()
  25362. return v, changed
  25363. }
  25364. func (d *Decoder) fastpathDecMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  25365. if rv.Kind() == reflect.Ptr {
  25366. vp := rv2i(rv).(*map[uint64]interface{})
  25367. v, changed := fastpathTV.DecMapUint64IntfV(*vp, true, d)
  25368. if changed {
  25369. *vp = v
  25370. }
  25371. } else {
  25372. fastpathTV.DecMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), false, d)
  25373. }
  25374. }
  25375. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, d *Decoder) {
  25376. v, changed := f.DecMapUint64IntfV(*vp, true, d)
  25377. if changed {
  25378. *vp = v
  25379. }
  25380. }
  25381. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, canChange bool,
  25382. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  25383. dd, esep := d.d, d.hh.hasElemSeparators()
  25384. containerLen := dd.ReadMapStart()
  25385. if canChange && v == nil {
  25386. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  25387. v = make(map[uint64]interface{}, xlen)
  25388. changed = true
  25389. }
  25390. if containerLen == 0 {
  25391. dd.ReadMapEnd()
  25392. return v, changed
  25393. }
  25394. d.depthIncr()
  25395. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  25396. var mk uint64
  25397. var mv interface{}
  25398. hasLen := containerLen > 0
  25399. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25400. if esep {
  25401. dd.ReadMapElemKey()
  25402. }
  25403. mk = dd.DecodeUint64()
  25404. if esep {
  25405. dd.ReadMapElemValue()
  25406. }
  25407. if dd.TryDecodeAsNil() {
  25408. if v == nil {
  25409. } else if d.h.DeleteOnNilMapValue {
  25410. delete(v, mk)
  25411. } else {
  25412. v[mk] = nil
  25413. }
  25414. continue
  25415. }
  25416. if mapGet {
  25417. mv = v[mk]
  25418. } else {
  25419. mv = nil
  25420. }
  25421. d.decode(&mv)
  25422. if v != nil {
  25423. v[mk] = mv
  25424. }
  25425. }
  25426. dd.ReadMapEnd()
  25427. d.depthDecr()
  25428. return v, changed
  25429. }
  25430. func (d *Decoder) fastpathDecMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  25431. if rv.Kind() == reflect.Ptr {
  25432. vp := rv2i(rv).(*map[uint64]string)
  25433. v, changed := fastpathTV.DecMapUint64StringV(*vp, true, d)
  25434. if changed {
  25435. *vp = v
  25436. }
  25437. } else {
  25438. fastpathTV.DecMapUint64StringV(rv2i(rv).(map[uint64]string), false, d)
  25439. }
  25440. }
  25441. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, d *Decoder) {
  25442. v, changed := f.DecMapUint64StringV(*vp, true, d)
  25443. if changed {
  25444. *vp = v
  25445. }
  25446. }
  25447. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, canChange bool,
  25448. d *Decoder) (_ map[uint64]string, changed bool) {
  25449. dd, esep := d.d, d.hh.hasElemSeparators()
  25450. containerLen := dd.ReadMapStart()
  25451. if canChange && v == nil {
  25452. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  25453. v = make(map[uint64]string, xlen)
  25454. changed = true
  25455. }
  25456. if containerLen == 0 {
  25457. dd.ReadMapEnd()
  25458. return v, changed
  25459. }
  25460. d.depthIncr()
  25461. var mk uint64
  25462. var mv string
  25463. hasLen := containerLen > 0
  25464. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25465. if esep {
  25466. dd.ReadMapElemKey()
  25467. }
  25468. mk = dd.DecodeUint64()
  25469. if esep {
  25470. dd.ReadMapElemValue()
  25471. }
  25472. if dd.TryDecodeAsNil() {
  25473. if v == nil {
  25474. } else if d.h.DeleteOnNilMapValue {
  25475. delete(v, mk)
  25476. } else {
  25477. v[mk] = ""
  25478. }
  25479. continue
  25480. }
  25481. mv = dd.DecodeString()
  25482. if v != nil {
  25483. v[mk] = mv
  25484. }
  25485. }
  25486. dd.ReadMapEnd()
  25487. d.depthDecr()
  25488. return v, changed
  25489. }
  25490. func (d *Decoder) fastpathDecMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  25491. if rv.Kind() == reflect.Ptr {
  25492. vp := rv2i(rv).(*map[uint64]uint)
  25493. v, changed := fastpathTV.DecMapUint64UintV(*vp, true, d)
  25494. if changed {
  25495. *vp = v
  25496. }
  25497. } else {
  25498. fastpathTV.DecMapUint64UintV(rv2i(rv).(map[uint64]uint), false, d)
  25499. }
  25500. }
  25501. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, d *Decoder) {
  25502. v, changed := f.DecMapUint64UintV(*vp, true, d)
  25503. if changed {
  25504. *vp = v
  25505. }
  25506. }
  25507. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, canChange bool,
  25508. d *Decoder) (_ map[uint64]uint, changed bool) {
  25509. dd, esep := d.d, d.hh.hasElemSeparators()
  25510. containerLen := dd.ReadMapStart()
  25511. if canChange && v == nil {
  25512. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25513. v = make(map[uint64]uint, xlen)
  25514. changed = true
  25515. }
  25516. if containerLen == 0 {
  25517. dd.ReadMapEnd()
  25518. return v, changed
  25519. }
  25520. d.depthIncr()
  25521. var mk uint64
  25522. var mv uint
  25523. hasLen := containerLen > 0
  25524. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25525. if esep {
  25526. dd.ReadMapElemKey()
  25527. }
  25528. mk = dd.DecodeUint64()
  25529. if esep {
  25530. dd.ReadMapElemValue()
  25531. }
  25532. if dd.TryDecodeAsNil() {
  25533. if v == nil {
  25534. } else if d.h.DeleteOnNilMapValue {
  25535. delete(v, mk)
  25536. } else {
  25537. v[mk] = 0
  25538. }
  25539. continue
  25540. }
  25541. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25542. if v != nil {
  25543. v[mk] = mv
  25544. }
  25545. }
  25546. dd.ReadMapEnd()
  25547. d.depthDecr()
  25548. return v, changed
  25549. }
  25550. func (d *Decoder) fastpathDecMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  25551. if rv.Kind() == reflect.Ptr {
  25552. vp := rv2i(rv).(*map[uint64]uint8)
  25553. v, changed := fastpathTV.DecMapUint64Uint8V(*vp, true, d)
  25554. if changed {
  25555. *vp = v
  25556. }
  25557. } else {
  25558. fastpathTV.DecMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), false, d)
  25559. }
  25560. }
  25561. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, d *Decoder) {
  25562. v, changed := f.DecMapUint64Uint8V(*vp, true, d)
  25563. if changed {
  25564. *vp = v
  25565. }
  25566. }
  25567. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, canChange bool,
  25568. d *Decoder) (_ map[uint64]uint8, changed bool) {
  25569. dd, esep := d.d, d.hh.hasElemSeparators()
  25570. containerLen := dd.ReadMapStart()
  25571. if canChange && v == nil {
  25572. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25573. v = make(map[uint64]uint8, xlen)
  25574. changed = true
  25575. }
  25576. if containerLen == 0 {
  25577. dd.ReadMapEnd()
  25578. return v, changed
  25579. }
  25580. d.depthIncr()
  25581. var mk uint64
  25582. var mv uint8
  25583. hasLen := containerLen > 0
  25584. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25585. if esep {
  25586. dd.ReadMapElemKey()
  25587. }
  25588. mk = dd.DecodeUint64()
  25589. if esep {
  25590. dd.ReadMapElemValue()
  25591. }
  25592. if dd.TryDecodeAsNil() {
  25593. if v == nil {
  25594. } else if d.h.DeleteOnNilMapValue {
  25595. delete(v, mk)
  25596. } else {
  25597. v[mk] = 0
  25598. }
  25599. continue
  25600. }
  25601. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  25602. if v != nil {
  25603. v[mk] = mv
  25604. }
  25605. }
  25606. dd.ReadMapEnd()
  25607. d.depthDecr()
  25608. return v, changed
  25609. }
  25610. func (d *Decoder) fastpathDecMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  25611. if rv.Kind() == reflect.Ptr {
  25612. vp := rv2i(rv).(*map[uint64]uint16)
  25613. v, changed := fastpathTV.DecMapUint64Uint16V(*vp, true, d)
  25614. if changed {
  25615. *vp = v
  25616. }
  25617. } else {
  25618. fastpathTV.DecMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), false, d)
  25619. }
  25620. }
  25621. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, d *Decoder) {
  25622. v, changed := f.DecMapUint64Uint16V(*vp, true, d)
  25623. if changed {
  25624. *vp = v
  25625. }
  25626. }
  25627. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, canChange bool,
  25628. d *Decoder) (_ map[uint64]uint16, changed bool) {
  25629. dd, esep := d.d, d.hh.hasElemSeparators()
  25630. containerLen := dd.ReadMapStart()
  25631. if canChange && v == nil {
  25632. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25633. v = make(map[uint64]uint16, xlen)
  25634. changed = true
  25635. }
  25636. if containerLen == 0 {
  25637. dd.ReadMapEnd()
  25638. return v, changed
  25639. }
  25640. d.depthIncr()
  25641. var mk uint64
  25642. var mv uint16
  25643. hasLen := containerLen > 0
  25644. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25645. if esep {
  25646. dd.ReadMapElemKey()
  25647. }
  25648. mk = dd.DecodeUint64()
  25649. if esep {
  25650. dd.ReadMapElemValue()
  25651. }
  25652. if dd.TryDecodeAsNil() {
  25653. if v == nil {
  25654. } else if d.h.DeleteOnNilMapValue {
  25655. delete(v, mk)
  25656. } else {
  25657. v[mk] = 0
  25658. }
  25659. continue
  25660. }
  25661. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25662. if v != nil {
  25663. v[mk] = mv
  25664. }
  25665. }
  25666. dd.ReadMapEnd()
  25667. d.depthDecr()
  25668. return v, changed
  25669. }
  25670. func (d *Decoder) fastpathDecMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  25671. if rv.Kind() == reflect.Ptr {
  25672. vp := rv2i(rv).(*map[uint64]uint32)
  25673. v, changed := fastpathTV.DecMapUint64Uint32V(*vp, true, d)
  25674. if changed {
  25675. *vp = v
  25676. }
  25677. } else {
  25678. fastpathTV.DecMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), false, d)
  25679. }
  25680. }
  25681. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, d *Decoder) {
  25682. v, changed := f.DecMapUint64Uint32V(*vp, true, d)
  25683. if changed {
  25684. *vp = v
  25685. }
  25686. }
  25687. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, canChange bool,
  25688. d *Decoder) (_ map[uint64]uint32, changed bool) {
  25689. dd, esep := d.d, d.hh.hasElemSeparators()
  25690. containerLen := dd.ReadMapStart()
  25691. if canChange && v == nil {
  25692. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25693. v = make(map[uint64]uint32, xlen)
  25694. changed = true
  25695. }
  25696. if containerLen == 0 {
  25697. dd.ReadMapEnd()
  25698. return v, changed
  25699. }
  25700. d.depthIncr()
  25701. var mk uint64
  25702. var mv uint32
  25703. hasLen := containerLen > 0
  25704. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25705. if esep {
  25706. dd.ReadMapElemKey()
  25707. }
  25708. mk = dd.DecodeUint64()
  25709. if esep {
  25710. dd.ReadMapElemValue()
  25711. }
  25712. if dd.TryDecodeAsNil() {
  25713. if v == nil {
  25714. } else if d.h.DeleteOnNilMapValue {
  25715. delete(v, mk)
  25716. } else {
  25717. v[mk] = 0
  25718. }
  25719. continue
  25720. }
  25721. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25722. if v != nil {
  25723. v[mk] = mv
  25724. }
  25725. }
  25726. dd.ReadMapEnd()
  25727. d.depthDecr()
  25728. return v, changed
  25729. }
  25730. func (d *Decoder) fastpathDecMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  25731. if rv.Kind() == reflect.Ptr {
  25732. vp := rv2i(rv).(*map[uint64]uint64)
  25733. v, changed := fastpathTV.DecMapUint64Uint64V(*vp, true, d)
  25734. if changed {
  25735. *vp = v
  25736. }
  25737. } else {
  25738. fastpathTV.DecMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), false, d)
  25739. }
  25740. }
  25741. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, d *Decoder) {
  25742. v, changed := f.DecMapUint64Uint64V(*vp, true, d)
  25743. if changed {
  25744. *vp = v
  25745. }
  25746. }
  25747. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, canChange bool,
  25748. d *Decoder) (_ map[uint64]uint64, changed bool) {
  25749. dd, esep := d.d, d.hh.hasElemSeparators()
  25750. containerLen := dd.ReadMapStart()
  25751. if canChange && v == nil {
  25752. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25753. v = make(map[uint64]uint64, xlen)
  25754. changed = true
  25755. }
  25756. if containerLen == 0 {
  25757. dd.ReadMapEnd()
  25758. return v, changed
  25759. }
  25760. d.depthIncr()
  25761. var mk uint64
  25762. var mv uint64
  25763. hasLen := containerLen > 0
  25764. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25765. if esep {
  25766. dd.ReadMapElemKey()
  25767. }
  25768. mk = dd.DecodeUint64()
  25769. if esep {
  25770. dd.ReadMapElemValue()
  25771. }
  25772. if dd.TryDecodeAsNil() {
  25773. if v == nil {
  25774. } else if d.h.DeleteOnNilMapValue {
  25775. delete(v, mk)
  25776. } else {
  25777. v[mk] = 0
  25778. }
  25779. continue
  25780. }
  25781. mv = dd.DecodeUint64()
  25782. if v != nil {
  25783. v[mk] = mv
  25784. }
  25785. }
  25786. dd.ReadMapEnd()
  25787. d.depthDecr()
  25788. return v, changed
  25789. }
  25790. func (d *Decoder) fastpathDecMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  25791. if rv.Kind() == reflect.Ptr {
  25792. vp := rv2i(rv).(*map[uint64]uintptr)
  25793. v, changed := fastpathTV.DecMapUint64UintptrV(*vp, true, d)
  25794. if changed {
  25795. *vp = v
  25796. }
  25797. } else {
  25798. fastpathTV.DecMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), false, d)
  25799. }
  25800. }
  25801. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, d *Decoder) {
  25802. v, changed := f.DecMapUint64UintptrV(*vp, true, d)
  25803. if changed {
  25804. *vp = v
  25805. }
  25806. }
  25807. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, canChange bool,
  25808. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  25809. dd, esep := d.d, d.hh.hasElemSeparators()
  25810. containerLen := dd.ReadMapStart()
  25811. if canChange && v == nil {
  25812. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25813. v = make(map[uint64]uintptr, xlen)
  25814. changed = true
  25815. }
  25816. if containerLen == 0 {
  25817. dd.ReadMapEnd()
  25818. return v, changed
  25819. }
  25820. d.depthIncr()
  25821. var mk uint64
  25822. var mv uintptr
  25823. hasLen := containerLen > 0
  25824. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25825. if esep {
  25826. dd.ReadMapElemKey()
  25827. }
  25828. mk = dd.DecodeUint64()
  25829. if esep {
  25830. dd.ReadMapElemValue()
  25831. }
  25832. if dd.TryDecodeAsNil() {
  25833. if v == nil {
  25834. } else if d.h.DeleteOnNilMapValue {
  25835. delete(v, mk)
  25836. } else {
  25837. v[mk] = 0
  25838. }
  25839. continue
  25840. }
  25841. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25842. if v != nil {
  25843. v[mk] = mv
  25844. }
  25845. }
  25846. dd.ReadMapEnd()
  25847. d.depthDecr()
  25848. return v, changed
  25849. }
  25850. func (d *Decoder) fastpathDecMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  25851. if rv.Kind() == reflect.Ptr {
  25852. vp := rv2i(rv).(*map[uint64]int)
  25853. v, changed := fastpathTV.DecMapUint64IntV(*vp, true, d)
  25854. if changed {
  25855. *vp = v
  25856. }
  25857. } else {
  25858. fastpathTV.DecMapUint64IntV(rv2i(rv).(map[uint64]int), false, d)
  25859. }
  25860. }
  25861. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, d *Decoder) {
  25862. v, changed := f.DecMapUint64IntV(*vp, true, d)
  25863. if changed {
  25864. *vp = v
  25865. }
  25866. }
  25867. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, canChange bool,
  25868. d *Decoder) (_ map[uint64]int, changed bool) {
  25869. dd, esep := d.d, d.hh.hasElemSeparators()
  25870. containerLen := dd.ReadMapStart()
  25871. if canChange && v == nil {
  25872. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25873. v = make(map[uint64]int, xlen)
  25874. changed = true
  25875. }
  25876. if containerLen == 0 {
  25877. dd.ReadMapEnd()
  25878. return v, changed
  25879. }
  25880. d.depthIncr()
  25881. var mk uint64
  25882. var mv int
  25883. hasLen := containerLen > 0
  25884. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25885. if esep {
  25886. dd.ReadMapElemKey()
  25887. }
  25888. mk = dd.DecodeUint64()
  25889. if esep {
  25890. dd.ReadMapElemValue()
  25891. }
  25892. if dd.TryDecodeAsNil() {
  25893. if v == nil {
  25894. } else if d.h.DeleteOnNilMapValue {
  25895. delete(v, mk)
  25896. } else {
  25897. v[mk] = 0
  25898. }
  25899. continue
  25900. }
  25901. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  25902. if v != nil {
  25903. v[mk] = mv
  25904. }
  25905. }
  25906. dd.ReadMapEnd()
  25907. d.depthDecr()
  25908. return v, changed
  25909. }
  25910. func (d *Decoder) fastpathDecMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  25911. if rv.Kind() == reflect.Ptr {
  25912. vp := rv2i(rv).(*map[uint64]int8)
  25913. v, changed := fastpathTV.DecMapUint64Int8V(*vp, true, d)
  25914. if changed {
  25915. *vp = v
  25916. }
  25917. } else {
  25918. fastpathTV.DecMapUint64Int8V(rv2i(rv).(map[uint64]int8), false, d)
  25919. }
  25920. }
  25921. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, d *Decoder) {
  25922. v, changed := f.DecMapUint64Int8V(*vp, true, d)
  25923. if changed {
  25924. *vp = v
  25925. }
  25926. }
  25927. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, canChange bool,
  25928. d *Decoder) (_ map[uint64]int8, changed bool) {
  25929. dd, esep := d.d, d.hh.hasElemSeparators()
  25930. containerLen := dd.ReadMapStart()
  25931. if canChange && v == nil {
  25932. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25933. v = make(map[uint64]int8, xlen)
  25934. changed = true
  25935. }
  25936. if containerLen == 0 {
  25937. dd.ReadMapEnd()
  25938. return v, changed
  25939. }
  25940. d.depthIncr()
  25941. var mk uint64
  25942. var mv int8
  25943. hasLen := containerLen > 0
  25944. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25945. if esep {
  25946. dd.ReadMapElemKey()
  25947. }
  25948. mk = dd.DecodeUint64()
  25949. if esep {
  25950. dd.ReadMapElemValue()
  25951. }
  25952. if dd.TryDecodeAsNil() {
  25953. if v == nil {
  25954. } else if d.h.DeleteOnNilMapValue {
  25955. delete(v, mk)
  25956. } else {
  25957. v[mk] = 0
  25958. }
  25959. continue
  25960. }
  25961. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  25962. if v != nil {
  25963. v[mk] = mv
  25964. }
  25965. }
  25966. dd.ReadMapEnd()
  25967. d.depthDecr()
  25968. return v, changed
  25969. }
  25970. func (d *Decoder) fastpathDecMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  25971. if rv.Kind() == reflect.Ptr {
  25972. vp := rv2i(rv).(*map[uint64]int16)
  25973. v, changed := fastpathTV.DecMapUint64Int16V(*vp, true, d)
  25974. if changed {
  25975. *vp = v
  25976. }
  25977. } else {
  25978. fastpathTV.DecMapUint64Int16V(rv2i(rv).(map[uint64]int16), false, d)
  25979. }
  25980. }
  25981. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, d *Decoder) {
  25982. v, changed := f.DecMapUint64Int16V(*vp, true, d)
  25983. if changed {
  25984. *vp = v
  25985. }
  25986. }
  25987. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, canChange bool,
  25988. d *Decoder) (_ map[uint64]int16, changed bool) {
  25989. dd, esep := d.d, d.hh.hasElemSeparators()
  25990. containerLen := dd.ReadMapStart()
  25991. if canChange && v == nil {
  25992. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25993. v = make(map[uint64]int16, xlen)
  25994. changed = true
  25995. }
  25996. if containerLen == 0 {
  25997. dd.ReadMapEnd()
  25998. return v, changed
  25999. }
  26000. d.depthIncr()
  26001. var mk uint64
  26002. var mv int16
  26003. hasLen := containerLen > 0
  26004. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26005. if esep {
  26006. dd.ReadMapElemKey()
  26007. }
  26008. mk = dd.DecodeUint64()
  26009. if esep {
  26010. dd.ReadMapElemValue()
  26011. }
  26012. if dd.TryDecodeAsNil() {
  26013. if v == nil {
  26014. } else if d.h.DeleteOnNilMapValue {
  26015. delete(v, mk)
  26016. } else {
  26017. v[mk] = 0
  26018. }
  26019. continue
  26020. }
  26021. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  26022. if v != nil {
  26023. v[mk] = mv
  26024. }
  26025. }
  26026. dd.ReadMapEnd()
  26027. d.depthDecr()
  26028. return v, changed
  26029. }
  26030. func (d *Decoder) fastpathDecMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  26031. if rv.Kind() == reflect.Ptr {
  26032. vp := rv2i(rv).(*map[uint64]int32)
  26033. v, changed := fastpathTV.DecMapUint64Int32V(*vp, true, d)
  26034. if changed {
  26035. *vp = v
  26036. }
  26037. } else {
  26038. fastpathTV.DecMapUint64Int32V(rv2i(rv).(map[uint64]int32), false, d)
  26039. }
  26040. }
  26041. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, d *Decoder) {
  26042. v, changed := f.DecMapUint64Int32V(*vp, true, d)
  26043. if changed {
  26044. *vp = v
  26045. }
  26046. }
  26047. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, canChange bool,
  26048. d *Decoder) (_ map[uint64]int32, changed bool) {
  26049. dd, esep := d.d, d.hh.hasElemSeparators()
  26050. containerLen := dd.ReadMapStart()
  26051. if canChange && v == nil {
  26052. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26053. v = make(map[uint64]int32, xlen)
  26054. changed = true
  26055. }
  26056. if containerLen == 0 {
  26057. dd.ReadMapEnd()
  26058. return v, changed
  26059. }
  26060. d.depthIncr()
  26061. var mk uint64
  26062. var mv int32
  26063. hasLen := containerLen > 0
  26064. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26065. if esep {
  26066. dd.ReadMapElemKey()
  26067. }
  26068. mk = dd.DecodeUint64()
  26069. if esep {
  26070. dd.ReadMapElemValue()
  26071. }
  26072. if dd.TryDecodeAsNil() {
  26073. if v == nil {
  26074. } else if d.h.DeleteOnNilMapValue {
  26075. delete(v, mk)
  26076. } else {
  26077. v[mk] = 0
  26078. }
  26079. continue
  26080. }
  26081. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  26082. if v != nil {
  26083. v[mk] = mv
  26084. }
  26085. }
  26086. dd.ReadMapEnd()
  26087. d.depthDecr()
  26088. return v, changed
  26089. }
  26090. func (d *Decoder) fastpathDecMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  26091. if rv.Kind() == reflect.Ptr {
  26092. vp := rv2i(rv).(*map[uint64]int64)
  26093. v, changed := fastpathTV.DecMapUint64Int64V(*vp, true, d)
  26094. if changed {
  26095. *vp = v
  26096. }
  26097. } else {
  26098. fastpathTV.DecMapUint64Int64V(rv2i(rv).(map[uint64]int64), false, d)
  26099. }
  26100. }
  26101. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, d *Decoder) {
  26102. v, changed := f.DecMapUint64Int64V(*vp, true, d)
  26103. if changed {
  26104. *vp = v
  26105. }
  26106. }
  26107. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, canChange bool,
  26108. d *Decoder) (_ map[uint64]int64, changed bool) {
  26109. dd, esep := d.d, d.hh.hasElemSeparators()
  26110. containerLen := dd.ReadMapStart()
  26111. if canChange && v == nil {
  26112. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26113. v = make(map[uint64]int64, xlen)
  26114. changed = true
  26115. }
  26116. if containerLen == 0 {
  26117. dd.ReadMapEnd()
  26118. return v, changed
  26119. }
  26120. d.depthIncr()
  26121. var mk uint64
  26122. var mv int64
  26123. hasLen := containerLen > 0
  26124. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26125. if esep {
  26126. dd.ReadMapElemKey()
  26127. }
  26128. mk = dd.DecodeUint64()
  26129. if esep {
  26130. dd.ReadMapElemValue()
  26131. }
  26132. if dd.TryDecodeAsNil() {
  26133. if v == nil {
  26134. } else if d.h.DeleteOnNilMapValue {
  26135. delete(v, mk)
  26136. } else {
  26137. v[mk] = 0
  26138. }
  26139. continue
  26140. }
  26141. mv = dd.DecodeInt64()
  26142. if v != nil {
  26143. v[mk] = mv
  26144. }
  26145. }
  26146. dd.ReadMapEnd()
  26147. d.depthDecr()
  26148. return v, changed
  26149. }
  26150. func (d *Decoder) fastpathDecMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  26151. if rv.Kind() == reflect.Ptr {
  26152. vp := rv2i(rv).(*map[uint64]float32)
  26153. v, changed := fastpathTV.DecMapUint64Float32V(*vp, true, d)
  26154. if changed {
  26155. *vp = v
  26156. }
  26157. } else {
  26158. fastpathTV.DecMapUint64Float32V(rv2i(rv).(map[uint64]float32), false, d)
  26159. }
  26160. }
  26161. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, d *Decoder) {
  26162. v, changed := f.DecMapUint64Float32V(*vp, true, d)
  26163. if changed {
  26164. *vp = v
  26165. }
  26166. }
  26167. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, canChange bool,
  26168. d *Decoder) (_ map[uint64]float32, changed bool) {
  26169. dd, esep := d.d, d.hh.hasElemSeparators()
  26170. containerLen := dd.ReadMapStart()
  26171. if canChange && v == nil {
  26172. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26173. v = make(map[uint64]float32, xlen)
  26174. changed = true
  26175. }
  26176. if containerLen == 0 {
  26177. dd.ReadMapEnd()
  26178. return v, changed
  26179. }
  26180. d.depthIncr()
  26181. var mk uint64
  26182. var mv float32
  26183. hasLen := containerLen > 0
  26184. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26185. if esep {
  26186. dd.ReadMapElemKey()
  26187. }
  26188. mk = dd.DecodeUint64()
  26189. if esep {
  26190. dd.ReadMapElemValue()
  26191. }
  26192. if dd.TryDecodeAsNil() {
  26193. if v == nil {
  26194. } else if d.h.DeleteOnNilMapValue {
  26195. delete(v, mk)
  26196. } else {
  26197. v[mk] = 0
  26198. }
  26199. continue
  26200. }
  26201. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  26202. if v != nil {
  26203. v[mk] = mv
  26204. }
  26205. }
  26206. dd.ReadMapEnd()
  26207. d.depthDecr()
  26208. return v, changed
  26209. }
  26210. func (d *Decoder) fastpathDecMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  26211. if rv.Kind() == reflect.Ptr {
  26212. vp := rv2i(rv).(*map[uint64]float64)
  26213. v, changed := fastpathTV.DecMapUint64Float64V(*vp, true, d)
  26214. if changed {
  26215. *vp = v
  26216. }
  26217. } else {
  26218. fastpathTV.DecMapUint64Float64V(rv2i(rv).(map[uint64]float64), false, d)
  26219. }
  26220. }
  26221. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, d *Decoder) {
  26222. v, changed := f.DecMapUint64Float64V(*vp, true, d)
  26223. if changed {
  26224. *vp = v
  26225. }
  26226. }
  26227. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, canChange bool,
  26228. d *Decoder) (_ map[uint64]float64, changed bool) {
  26229. dd, esep := d.d, d.hh.hasElemSeparators()
  26230. containerLen := dd.ReadMapStart()
  26231. if canChange && v == nil {
  26232. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26233. v = make(map[uint64]float64, xlen)
  26234. changed = true
  26235. }
  26236. if containerLen == 0 {
  26237. dd.ReadMapEnd()
  26238. return v, changed
  26239. }
  26240. d.depthIncr()
  26241. var mk uint64
  26242. var mv float64
  26243. hasLen := containerLen > 0
  26244. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26245. if esep {
  26246. dd.ReadMapElemKey()
  26247. }
  26248. mk = dd.DecodeUint64()
  26249. if esep {
  26250. dd.ReadMapElemValue()
  26251. }
  26252. if dd.TryDecodeAsNil() {
  26253. if v == nil {
  26254. } else if d.h.DeleteOnNilMapValue {
  26255. delete(v, mk)
  26256. } else {
  26257. v[mk] = 0
  26258. }
  26259. continue
  26260. }
  26261. mv = dd.DecodeFloat64()
  26262. if v != nil {
  26263. v[mk] = mv
  26264. }
  26265. }
  26266. dd.ReadMapEnd()
  26267. d.depthDecr()
  26268. return v, changed
  26269. }
  26270. func (d *Decoder) fastpathDecMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  26271. if rv.Kind() == reflect.Ptr {
  26272. vp := rv2i(rv).(*map[uint64]bool)
  26273. v, changed := fastpathTV.DecMapUint64BoolV(*vp, true, d)
  26274. if changed {
  26275. *vp = v
  26276. }
  26277. } else {
  26278. fastpathTV.DecMapUint64BoolV(rv2i(rv).(map[uint64]bool), false, d)
  26279. }
  26280. }
  26281. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, d *Decoder) {
  26282. v, changed := f.DecMapUint64BoolV(*vp, true, d)
  26283. if changed {
  26284. *vp = v
  26285. }
  26286. }
  26287. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, canChange bool,
  26288. d *Decoder) (_ map[uint64]bool, changed bool) {
  26289. dd, esep := d.d, d.hh.hasElemSeparators()
  26290. containerLen := dd.ReadMapStart()
  26291. if canChange && v == nil {
  26292. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26293. v = make(map[uint64]bool, xlen)
  26294. changed = true
  26295. }
  26296. if containerLen == 0 {
  26297. dd.ReadMapEnd()
  26298. return v, changed
  26299. }
  26300. d.depthIncr()
  26301. var mk uint64
  26302. var mv bool
  26303. hasLen := containerLen > 0
  26304. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26305. if esep {
  26306. dd.ReadMapElemKey()
  26307. }
  26308. mk = dd.DecodeUint64()
  26309. if esep {
  26310. dd.ReadMapElemValue()
  26311. }
  26312. if dd.TryDecodeAsNil() {
  26313. if v == nil {
  26314. } else if d.h.DeleteOnNilMapValue {
  26315. delete(v, mk)
  26316. } else {
  26317. v[mk] = false
  26318. }
  26319. continue
  26320. }
  26321. mv = dd.DecodeBool()
  26322. if v != nil {
  26323. v[mk] = mv
  26324. }
  26325. }
  26326. dd.ReadMapEnd()
  26327. d.depthDecr()
  26328. return v, changed
  26329. }
  26330. func (d *Decoder) fastpathDecMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  26331. if rv.Kind() == reflect.Ptr {
  26332. vp := rv2i(rv).(*map[uintptr]interface{})
  26333. v, changed := fastpathTV.DecMapUintptrIntfV(*vp, true, d)
  26334. if changed {
  26335. *vp = v
  26336. }
  26337. } else {
  26338. fastpathTV.DecMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), false, d)
  26339. }
  26340. }
  26341. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, d *Decoder) {
  26342. v, changed := f.DecMapUintptrIntfV(*vp, true, d)
  26343. if changed {
  26344. *vp = v
  26345. }
  26346. }
  26347. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, canChange bool,
  26348. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  26349. dd, esep := d.d, d.hh.hasElemSeparators()
  26350. containerLen := dd.ReadMapStart()
  26351. if canChange && v == nil {
  26352. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26353. v = make(map[uintptr]interface{}, xlen)
  26354. changed = true
  26355. }
  26356. if containerLen == 0 {
  26357. dd.ReadMapEnd()
  26358. return v, changed
  26359. }
  26360. d.depthIncr()
  26361. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  26362. var mk uintptr
  26363. var mv interface{}
  26364. hasLen := containerLen > 0
  26365. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26366. if esep {
  26367. dd.ReadMapElemKey()
  26368. }
  26369. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26370. if esep {
  26371. dd.ReadMapElemValue()
  26372. }
  26373. if dd.TryDecodeAsNil() {
  26374. if v == nil {
  26375. } else if d.h.DeleteOnNilMapValue {
  26376. delete(v, mk)
  26377. } else {
  26378. v[mk] = nil
  26379. }
  26380. continue
  26381. }
  26382. if mapGet {
  26383. mv = v[mk]
  26384. } else {
  26385. mv = nil
  26386. }
  26387. d.decode(&mv)
  26388. if v != nil {
  26389. v[mk] = mv
  26390. }
  26391. }
  26392. dd.ReadMapEnd()
  26393. d.depthDecr()
  26394. return v, changed
  26395. }
  26396. func (d *Decoder) fastpathDecMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  26397. if rv.Kind() == reflect.Ptr {
  26398. vp := rv2i(rv).(*map[uintptr]string)
  26399. v, changed := fastpathTV.DecMapUintptrStringV(*vp, true, d)
  26400. if changed {
  26401. *vp = v
  26402. }
  26403. } else {
  26404. fastpathTV.DecMapUintptrStringV(rv2i(rv).(map[uintptr]string), false, d)
  26405. }
  26406. }
  26407. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, d *Decoder) {
  26408. v, changed := f.DecMapUintptrStringV(*vp, true, d)
  26409. if changed {
  26410. *vp = v
  26411. }
  26412. }
  26413. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, canChange bool,
  26414. d *Decoder) (_ map[uintptr]string, changed bool) {
  26415. dd, esep := d.d, d.hh.hasElemSeparators()
  26416. containerLen := dd.ReadMapStart()
  26417. if canChange && v == nil {
  26418. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26419. v = make(map[uintptr]string, xlen)
  26420. changed = true
  26421. }
  26422. if containerLen == 0 {
  26423. dd.ReadMapEnd()
  26424. return v, changed
  26425. }
  26426. d.depthIncr()
  26427. var mk uintptr
  26428. var mv string
  26429. hasLen := containerLen > 0
  26430. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26431. if esep {
  26432. dd.ReadMapElemKey()
  26433. }
  26434. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26435. if esep {
  26436. dd.ReadMapElemValue()
  26437. }
  26438. if dd.TryDecodeAsNil() {
  26439. if v == nil {
  26440. } else if d.h.DeleteOnNilMapValue {
  26441. delete(v, mk)
  26442. } else {
  26443. v[mk] = ""
  26444. }
  26445. continue
  26446. }
  26447. mv = dd.DecodeString()
  26448. if v != nil {
  26449. v[mk] = mv
  26450. }
  26451. }
  26452. dd.ReadMapEnd()
  26453. d.depthDecr()
  26454. return v, changed
  26455. }
  26456. func (d *Decoder) fastpathDecMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  26457. if rv.Kind() == reflect.Ptr {
  26458. vp := rv2i(rv).(*map[uintptr]uint)
  26459. v, changed := fastpathTV.DecMapUintptrUintV(*vp, true, d)
  26460. if changed {
  26461. *vp = v
  26462. }
  26463. } else {
  26464. fastpathTV.DecMapUintptrUintV(rv2i(rv).(map[uintptr]uint), false, d)
  26465. }
  26466. }
  26467. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, d *Decoder) {
  26468. v, changed := f.DecMapUintptrUintV(*vp, true, d)
  26469. if changed {
  26470. *vp = v
  26471. }
  26472. }
  26473. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, canChange bool,
  26474. d *Decoder) (_ map[uintptr]uint, changed bool) {
  26475. dd, esep := d.d, d.hh.hasElemSeparators()
  26476. containerLen := dd.ReadMapStart()
  26477. if canChange && v == nil {
  26478. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26479. v = make(map[uintptr]uint, xlen)
  26480. changed = true
  26481. }
  26482. if containerLen == 0 {
  26483. dd.ReadMapEnd()
  26484. return v, changed
  26485. }
  26486. d.depthIncr()
  26487. var mk uintptr
  26488. var mv uint
  26489. hasLen := containerLen > 0
  26490. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26491. if esep {
  26492. dd.ReadMapElemKey()
  26493. }
  26494. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26495. if esep {
  26496. dd.ReadMapElemValue()
  26497. }
  26498. if dd.TryDecodeAsNil() {
  26499. if v == nil {
  26500. } else if d.h.DeleteOnNilMapValue {
  26501. delete(v, mk)
  26502. } else {
  26503. v[mk] = 0
  26504. }
  26505. continue
  26506. }
  26507. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26508. if v != nil {
  26509. v[mk] = mv
  26510. }
  26511. }
  26512. dd.ReadMapEnd()
  26513. d.depthDecr()
  26514. return v, changed
  26515. }
  26516. func (d *Decoder) fastpathDecMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  26517. if rv.Kind() == reflect.Ptr {
  26518. vp := rv2i(rv).(*map[uintptr]uint8)
  26519. v, changed := fastpathTV.DecMapUintptrUint8V(*vp, true, d)
  26520. if changed {
  26521. *vp = v
  26522. }
  26523. } else {
  26524. fastpathTV.DecMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), false, d)
  26525. }
  26526. }
  26527. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, d *Decoder) {
  26528. v, changed := f.DecMapUintptrUint8V(*vp, true, d)
  26529. if changed {
  26530. *vp = v
  26531. }
  26532. }
  26533. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, canChange bool,
  26534. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  26535. dd, esep := d.d, d.hh.hasElemSeparators()
  26536. containerLen := dd.ReadMapStart()
  26537. if canChange && v == nil {
  26538. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26539. v = make(map[uintptr]uint8, xlen)
  26540. changed = true
  26541. }
  26542. if containerLen == 0 {
  26543. dd.ReadMapEnd()
  26544. return v, changed
  26545. }
  26546. d.depthIncr()
  26547. var mk uintptr
  26548. var mv uint8
  26549. hasLen := containerLen > 0
  26550. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26551. if esep {
  26552. dd.ReadMapElemKey()
  26553. }
  26554. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26555. if esep {
  26556. dd.ReadMapElemValue()
  26557. }
  26558. if dd.TryDecodeAsNil() {
  26559. if v == nil {
  26560. } else if d.h.DeleteOnNilMapValue {
  26561. delete(v, mk)
  26562. } else {
  26563. v[mk] = 0
  26564. }
  26565. continue
  26566. }
  26567. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  26568. if v != nil {
  26569. v[mk] = mv
  26570. }
  26571. }
  26572. dd.ReadMapEnd()
  26573. d.depthDecr()
  26574. return v, changed
  26575. }
  26576. func (d *Decoder) fastpathDecMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  26577. if rv.Kind() == reflect.Ptr {
  26578. vp := rv2i(rv).(*map[uintptr]uint16)
  26579. v, changed := fastpathTV.DecMapUintptrUint16V(*vp, true, d)
  26580. if changed {
  26581. *vp = v
  26582. }
  26583. } else {
  26584. fastpathTV.DecMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), false, d)
  26585. }
  26586. }
  26587. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, d *Decoder) {
  26588. v, changed := f.DecMapUintptrUint16V(*vp, true, d)
  26589. if changed {
  26590. *vp = v
  26591. }
  26592. }
  26593. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, canChange bool,
  26594. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  26595. dd, esep := d.d, d.hh.hasElemSeparators()
  26596. containerLen := dd.ReadMapStart()
  26597. if canChange && v == nil {
  26598. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26599. v = make(map[uintptr]uint16, xlen)
  26600. changed = true
  26601. }
  26602. if containerLen == 0 {
  26603. dd.ReadMapEnd()
  26604. return v, changed
  26605. }
  26606. d.depthIncr()
  26607. var mk uintptr
  26608. var mv uint16
  26609. hasLen := containerLen > 0
  26610. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26611. if esep {
  26612. dd.ReadMapElemKey()
  26613. }
  26614. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26615. if esep {
  26616. dd.ReadMapElemValue()
  26617. }
  26618. if dd.TryDecodeAsNil() {
  26619. if v == nil {
  26620. } else if d.h.DeleteOnNilMapValue {
  26621. delete(v, mk)
  26622. } else {
  26623. v[mk] = 0
  26624. }
  26625. continue
  26626. }
  26627. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  26628. if v != nil {
  26629. v[mk] = mv
  26630. }
  26631. }
  26632. dd.ReadMapEnd()
  26633. d.depthDecr()
  26634. return v, changed
  26635. }
  26636. func (d *Decoder) fastpathDecMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  26637. if rv.Kind() == reflect.Ptr {
  26638. vp := rv2i(rv).(*map[uintptr]uint32)
  26639. v, changed := fastpathTV.DecMapUintptrUint32V(*vp, true, d)
  26640. if changed {
  26641. *vp = v
  26642. }
  26643. } else {
  26644. fastpathTV.DecMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), false, d)
  26645. }
  26646. }
  26647. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, d *Decoder) {
  26648. v, changed := f.DecMapUintptrUint32V(*vp, true, d)
  26649. if changed {
  26650. *vp = v
  26651. }
  26652. }
  26653. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, canChange bool,
  26654. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  26655. dd, esep := d.d, d.hh.hasElemSeparators()
  26656. containerLen := dd.ReadMapStart()
  26657. if canChange && v == nil {
  26658. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26659. v = make(map[uintptr]uint32, xlen)
  26660. changed = true
  26661. }
  26662. if containerLen == 0 {
  26663. dd.ReadMapEnd()
  26664. return v, changed
  26665. }
  26666. d.depthIncr()
  26667. var mk uintptr
  26668. var mv uint32
  26669. hasLen := containerLen > 0
  26670. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26671. if esep {
  26672. dd.ReadMapElemKey()
  26673. }
  26674. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26675. if esep {
  26676. dd.ReadMapElemValue()
  26677. }
  26678. if dd.TryDecodeAsNil() {
  26679. if v == nil {
  26680. } else if d.h.DeleteOnNilMapValue {
  26681. delete(v, mk)
  26682. } else {
  26683. v[mk] = 0
  26684. }
  26685. continue
  26686. }
  26687. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26688. if v != nil {
  26689. v[mk] = mv
  26690. }
  26691. }
  26692. dd.ReadMapEnd()
  26693. d.depthDecr()
  26694. return v, changed
  26695. }
  26696. func (d *Decoder) fastpathDecMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  26697. if rv.Kind() == reflect.Ptr {
  26698. vp := rv2i(rv).(*map[uintptr]uint64)
  26699. v, changed := fastpathTV.DecMapUintptrUint64V(*vp, true, d)
  26700. if changed {
  26701. *vp = v
  26702. }
  26703. } else {
  26704. fastpathTV.DecMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), false, d)
  26705. }
  26706. }
  26707. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, d *Decoder) {
  26708. v, changed := f.DecMapUintptrUint64V(*vp, true, d)
  26709. if changed {
  26710. *vp = v
  26711. }
  26712. }
  26713. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, canChange bool,
  26714. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  26715. dd, esep := d.d, d.hh.hasElemSeparators()
  26716. containerLen := dd.ReadMapStart()
  26717. if canChange && v == nil {
  26718. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26719. v = make(map[uintptr]uint64, xlen)
  26720. changed = true
  26721. }
  26722. if containerLen == 0 {
  26723. dd.ReadMapEnd()
  26724. return v, changed
  26725. }
  26726. d.depthIncr()
  26727. var mk uintptr
  26728. var mv uint64
  26729. hasLen := containerLen > 0
  26730. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26731. if esep {
  26732. dd.ReadMapElemKey()
  26733. }
  26734. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26735. if esep {
  26736. dd.ReadMapElemValue()
  26737. }
  26738. if dd.TryDecodeAsNil() {
  26739. if v == nil {
  26740. } else if d.h.DeleteOnNilMapValue {
  26741. delete(v, mk)
  26742. } else {
  26743. v[mk] = 0
  26744. }
  26745. continue
  26746. }
  26747. mv = dd.DecodeUint64()
  26748. if v != nil {
  26749. v[mk] = mv
  26750. }
  26751. }
  26752. dd.ReadMapEnd()
  26753. d.depthDecr()
  26754. return v, changed
  26755. }
  26756. func (d *Decoder) fastpathDecMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  26757. if rv.Kind() == reflect.Ptr {
  26758. vp := rv2i(rv).(*map[uintptr]uintptr)
  26759. v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, true, d)
  26760. if changed {
  26761. *vp = v
  26762. }
  26763. } else {
  26764. fastpathTV.DecMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), false, d)
  26765. }
  26766. }
  26767. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, d *Decoder) {
  26768. v, changed := f.DecMapUintptrUintptrV(*vp, true, d)
  26769. if changed {
  26770. *vp = v
  26771. }
  26772. }
  26773. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, canChange bool,
  26774. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  26775. dd, esep := d.d, d.hh.hasElemSeparators()
  26776. containerLen := dd.ReadMapStart()
  26777. if canChange && v == nil {
  26778. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26779. v = make(map[uintptr]uintptr, xlen)
  26780. changed = true
  26781. }
  26782. if containerLen == 0 {
  26783. dd.ReadMapEnd()
  26784. return v, changed
  26785. }
  26786. d.depthIncr()
  26787. var mk uintptr
  26788. var mv uintptr
  26789. hasLen := containerLen > 0
  26790. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26791. if esep {
  26792. dd.ReadMapElemKey()
  26793. }
  26794. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26795. if esep {
  26796. dd.ReadMapElemValue()
  26797. }
  26798. if dd.TryDecodeAsNil() {
  26799. if v == nil {
  26800. } else if d.h.DeleteOnNilMapValue {
  26801. delete(v, mk)
  26802. } else {
  26803. v[mk] = 0
  26804. }
  26805. continue
  26806. }
  26807. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26808. if v != nil {
  26809. v[mk] = mv
  26810. }
  26811. }
  26812. dd.ReadMapEnd()
  26813. d.depthDecr()
  26814. return v, changed
  26815. }
  26816. func (d *Decoder) fastpathDecMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  26817. if rv.Kind() == reflect.Ptr {
  26818. vp := rv2i(rv).(*map[uintptr]int)
  26819. v, changed := fastpathTV.DecMapUintptrIntV(*vp, true, d)
  26820. if changed {
  26821. *vp = v
  26822. }
  26823. } else {
  26824. fastpathTV.DecMapUintptrIntV(rv2i(rv).(map[uintptr]int), false, d)
  26825. }
  26826. }
  26827. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, d *Decoder) {
  26828. v, changed := f.DecMapUintptrIntV(*vp, true, d)
  26829. if changed {
  26830. *vp = v
  26831. }
  26832. }
  26833. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, canChange bool,
  26834. d *Decoder) (_ map[uintptr]int, changed bool) {
  26835. dd, esep := d.d, d.hh.hasElemSeparators()
  26836. containerLen := dd.ReadMapStart()
  26837. if canChange && v == nil {
  26838. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26839. v = make(map[uintptr]int, xlen)
  26840. changed = true
  26841. }
  26842. if containerLen == 0 {
  26843. dd.ReadMapEnd()
  26844. return v, changed
  26845. }
  26846. d.depthIncr()
  26847. var mk uintptr
  26848. var mv int
  26849. hasLen := containerLen > 0
  26850. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26851. if esep {
  26852. dd.ReadMapElemKey()
  26853. }
  26854. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26855. if esep {
  26856. dd.ReadMapElemValue()
  26857. }
  26858. if dd.TryDecodeAsNil() {
  26859. if v == nil {
  26860. } else if d.h.DeleteOnNilMapValue {
  26861. delete(v, mk)
  26862. } else {
  26863. v[mk] = 0
  26864. }
  26865. continue
  26866. }
  26867. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  26868. if v != nil {
  26869. v[mk] = mv
  26870. }
  26871. }
  26872. dd.ReadMapEnd()
  26873. d.depthDecr()
  26874. return v, changed
  26875. }
  26876. func (d *Decoder) fastpathDecMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  26877. if rv.Kind() == reflect.Ptr {
  26878. vp := rv2i(rv).(*map[uintptr]int8)
  26879. v, changed := fastpathTV.DecMapUintptrInt8V(*vp, true, d)
  26880. if changed {
  26881. *vp = v
  26882. }
  26883. } else {
  26884. fastpathTV.DecMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), false, d)
  26885. }
  26886. }
  26887. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, d *Decoder) {
  26888. v, changed := f.DecMapUintptrInt8V(*vp, true, d)
  26889. if changed {
  26890. *vp = v
  26891. }
  26892. }
  26893. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, canChange bool,
  26894. d *Decoder) (_ map[uintptr]int8, changed bool) {
  26895. dd, esep := d.d, d.hh.hasElemSeparators()
  26896. containerLen := dd.ReadMapStart()
  26897. if canChange && v == nil {
  26898. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26899. v = make(map[uintptr]int8, xlen)
  26900. changed = true
  26901. }
  26902. if containerLen == 0 {
  26903. dd.ReadMapEnd()
  26904. return v, changed
  26905. }
  26906. d.depthIncr()
  26907. var mk uintptr
  26908. var mv int8
  26909. hasLen := containerLen > 0
  26910. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26911. if esep {
  26912. dd.ReadMapElemKey()
  26913. }
  26914. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26915. if esep {
  26916. dd.ReadMapElemValue()
  26917. }
  26918. if dd.TryDecodeAsNil() {
  26919. if v == nil {
  26920. } else if d.h.DeleteOnNilMapValue {
  26921. delete(v, mk)
  26922. } else {
  26923. v[mk] = 0
  26924. }
  26925. continue
  26926. }
  26927. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  26928. if v != nil {
  26929. v[mk] = mv
  26930. }
  26931. }
  26932. dd.ReadMapEnd()
  26933. d.depthDecr()
  26934. return v, changed
  26935. }
  26936. func (d *Decoder) fastpathDecMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  26937. if rv.Kind() == reflect.Ptr {
  26938. vp := rv2i(rv).(*map[uintptr]int16)
  26939. v, changed := fastpathTV.DecMapUintptrInt16V(*vp, true, d)
  26940. if changed {
  26941. *vp = v
  26942. }
  26943. } else {
  26944. fastpathTV.DecMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), false, d)
  26945. }
  26946. }
  26947. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, d *Decoder) {
  26948. v, changed := f.DecMapUintptrInt16V(*vp, true, d)
  26949. if changed {
  26950. *vp = v
  26951. }
  26952. }
  26953. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, canChange bool,
  26954. d *Decoder) (_ map[uintptr]int16, changed bool) {
  26955. dd, esep := d.d, d.hh.hasElemSeparators()
  26956. containerLen := dd.ReadMapStart()
  26957. if canChange && v == nil {
  26958. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26959. v = make(map[uintptr]int16, xlen)
  26960. changed = true
  26961. }
  26962. if containerLen == 0 {
  26963. dd.ReadMapEnd()
  26964. return v, changed
  26965. }
  26966. d.depthIncr()
  26967. var mk uintptr
  26968. var mv int16
  26969. hasLen := containerLen > 0
  26970. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26971. if esep {
  26972. dd.ReadMapElemKey()
  26973. }
  26974. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26975. if esep {
  26976. dd.ReadMapElemValue()
  26977. }
  26978. if dd.TryDecodeAsNil() {
  26979. if v == nil {
  26980. } else if d.h.DeleteOnNilMapValue {
  26981. delete(v, mk)
  26982. } else {
  26983. v[mk] = 0
  26984. }
  26985. continue
  26986. }
  26987. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  26988. if v != nil {
  26989. v[mk] = mv
  26990. }
  26991. }
  26992. dd.ReadMapEnd()
  26993. d.depthDecr()
  26994. return v, changed
  26995. }
  26996. func (d *Decoder) fastpathDecMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  26997. if rv.Kind() == reflect.Ptr {
  26998. vp := rv2i(rv).(*map[uintptr]int32)
  26999. v, changed := fastpathTV.DecMapUintptrInt32V(*vp, true, d)
  27000. if changed {
  27001. *vp = v
  27002. }
  27003. } else {
  27004. fastpathTV.DecMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), false, d)
  27005. }
  27006. }
  27007. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, d *Decoder) {
  27008. v, changed := f.DecMapUintptrInt32V(*vp, true, d)
  27009. if changed {
  27010. *vp = v
  27011. }
  27012. }
  27013. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, canChange bool,
  27014. d *Decoder) (_ map[uintptr]int32, changed bool) {
  27015. dd, esep := d.d, d.hh.hasElemSeparators()
  27016. containerLen := dd.ReadMapStart()
  27017. if canChange && v == nil {
  27018. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27019. v = make(map[uintptr]int32, xlen)
  27020. changed = true
  27021. }
  27022. if containerLen == 0 {
  27023. dd.ReadMapEnd()
  27024. return v, changed
  27025. }
  27026. d.depthIncr()
  27027. var mk uintptr
  27028. var mv int32
  27029. hasLen := containerLen > 0
  27030. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27031. if esep {
  27032. dd.ReadMapElemKey()
  27033. }
  27034. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27035. if esep {
  27036. dd.ReadMapElemValue()
  27037. }
  27038. if dd.TryDecodeAsNil() {
  27039. if v == nil {
  27040. } else if d.h.DeleteOnNilMapValue {
  27041. delete(v, mk)
  27042. } else {
  27043. v[mk] = 0
  27044. }
  27045. continue
  27046. }
  27047. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  27048. if v != nil {
  27049. v[mk] = mv
  27050. }
  27051. }
  27052. dd.ReadMapEnd()
  27053. d.depthDecr()
  27054. return v, changed
  27055. }
  27056. func (d *Decoder) fastpathDecMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  27057. if rv.Kind() == reflect.Ptr {
  27058. vp := rv2i(rv).(*map[uintptr]int64)
  27059. v, changed := fastpathTV.DecMapUintptrInt64V(*vp, true, d)
  27060. if changed {
  27061. *vp = v
  27062. }
  27063. } else {
  27064. fastpathTV.DecMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), false, d)
  27065. }
  27066. }
  27067. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, d *Decoder) {
  27068. v, changed := f.DecMapUintptrInt64V(*vp, true, d)
  27069. if changed {
  27070. *vp = v
  27071. }
  27072. }
  27073. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, canChange bool,
  27074. d *Decoder) (_ map[uintptr]int64, changed bool) {
  27075. dd, esep := d.d, d.hh.hasElemSeparators()
  27076. containerLen := dd.ReadMapStart()
  27077. if canChange && v == nil {
  27078. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27079. v = make(map[uintptr]int64, xlen)
  27080. changed = true
  27081. }
  27082. if containerLen == 0 {
  27083. dd.ReadMapEnd()
  27084. return v, changed
  27085. }
  27086. d.depthIncr()
  27087. var mk uintptr
  27088. var mv int64
  27089. hasLen := containerLen > 0
  27090. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27091. if esep {
  27092. dd.ReadMapElemKey()
  27093. }
  27094. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27095. if esep {
  27096. dd.ReadMapElemValue()
  27097. }
  27098. if dd.TryDecodeAsNil() {
  27099. if v == nil {
  27100. } else if d.h.DeleteOnNilMapValue {
  27101. delete(v, mk)
  27102. } else {
  27103. v[mk] = 0
  27104. }
  27105. continue
  27106. }
  27107. mv = dd.DecodeInt64()
  27108. if v != nil {
  27109. v[mk] = mv
  27110. }
  27111. }
  27112. dd.ReadMapEnd()
  27113. d.depthDecr()
  27114. return v, changed
  27115. }
  27116. func (d *Decoder) fastpathDecMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  27117. if rv.Kind() == reflect.Ptr {
  27118. vp := rv2i(rv).(*map[uintptr]float32)
  27119. v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, true, d)
  27120. if changed {
  27121. *vp = v
  27122. }
  27123. } else {
  27124. fastpathTV.DecMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), false, d)
  27125. }
  27126. }
  27127. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, d *Decoder) {
  27128. v, changed := f.DecMapUintptrFloat32V(*vp, true, d)
  27129. if changed {
  27130. *vp = v
  27131. }
  27132. }
  27133. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, canChange bool,
  27134. d *Decoder) (_ map[uintptr]float32, changed bool) {
  27135. dd, esep := d.d, d.hh.hasElemSeparators()
  27136. containerLen := dd.ReadMapStart()
  27137. if canChange && v == nil {
  27138. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27139. v = make(map[uintptr]float32, xlen)
  27140. changed = true
  27141. }
  27142. if containerLen == 0 {
  27143. dd.ReadMapEnd()
  27144. return v, changed
  27145. }
  27146. d.depthIncr()
  27147. var mk uintptr
  27148. var mv float32
  27149. hasLen := containerLen > 0
  27150. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27151. if esep {
  27152. dd.ReadMapElemKey()
  27153. }
  27154. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27155. if esep {
  27156. dd.ReadMapElemValue()
  27157. }
  27158. if dd.TryDecodeAsNil() {
  27159. if v == nil {
  27160. } else if d.h.DeleteOnNilMapValue {
  27161. delete(v, mk)
  27162. } else {
  27163. v[mk] = 0
  27164. }
  27165. continue
  27166. }
  27167. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  27168. if v != nil {
  27169. v[mk] = mv
  27170. }
  27171. }
  27172. dd.ReadMapEnd()
  27173. d.depthDecr()
  27174. return v, changed
  27175. }
  27176. func (d *Decoder) fastpathDecMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  27177. if rv.Kind() == reflect.Ptr {
  27178. vp := rv2i(rv).(*map[uintptr]float64)
  27179. v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, true, d)
  27180. if changed {
  27181. *vp = v
  27182. }
  27183. } else {
  27184. fastpathTV.DecMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), false, d)
  27185. }
  27186. }
  27187. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, d *Decoder) {
  27188. v, changed := f.DecMapUintptrFloat64V(*vp, true, d)
  27189. if changed {
  27190. *vp = v
  27191. }
  27192. }
  27193. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, canChange bool,
  27194. d *Decoder) (_ map[uintptr]float64, changed bool) {
  27195. dd, esep := d.d, d.hh.hasElemSeparators()
  27196. containerLen := dd.ReadMapStart()
  27197. if canChange && v == nil {
  27198. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27199. v = make(map[uintptr]float64, xlen)
  27200. changed = true
  27201. }
  27202. if containerLen == 0 {
  27203. dd.ReadMapEnd()
  27204. return v, changed
  27205. }
  27206. d.depthIncr()
  27207. var mk uintptr
  27208. var mv float64
  27209. hasLen := containerLen > 0
  27210. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27211. if esep {
  27212. dd.ReadMapElemKey()
  27213. }
  27214. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27215. if esep {
  27216. dd.ReadMapElemValue()
  27217. }
  27218. if dd.TryDecodeAsNil() {
  27219. if v == nil {
  27220. } else if d.h.DeleteOnNilMapValue {
  27221. delete(v, mk)
  27222. } else {
  27223. v[mk] = 0
  27224. }
  27225. continue
  27226. }
  27227. mv = dd.DecodeFloat64()
  27228. if v != nil {
  27229. v[mk] = mv
  27230. }
  27231. }
  27232. dd.ReadMapEnd()
  27233. d.depthDecr()
  27234. return v, changed
  27235. }
  27236. func (d *Decoder) fastpathDecMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  27237. if rv.Kind() == reflect.Ptr {
  27238. vp := rv2i(rv).(*map[uintptr]bool)
  27239. v, changed := fastpathTV.DecMapUintptrBoolV(*vp, true, d)
  27240. if changed {
  27241. *vp = v
  27242. }
  27243. } else {
  27244. fastpathTV.DecMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), false, d)
  27245. }
  27246. }
  27247. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, d *Decoder) {
  27248. v, changed := f.DecMapUintptrBoolV(*vp, true, d)
  27249. if changed {
  27250. *vp = v
  27251. }
  27252. }
  27253. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, canChange bool,
  27254. d *Decoder) (_ map[uintptr]bool, changed bool) {
  27255. dd, esep := d.d, d.hh.hasElemSeparators()
  27256. containerLen := dd.ReadMapStart()
  27257. if canChange && v == nil {
  27258. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27259. v = make(map[uintptr]bool, xlen)
  27260. changed = true
  27261. }
  27262. if containerLen == 0 {
  27263. dd.ReadMapEnd()
  27264. return v, changed
  27265. }
  27266. d.depthIncr()
  27267. var mk uintptr
  27268. var mv bool
  27269. hasLen := containerLen > 0
  27270. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27271. if esep {
  27272. dd.ReadMapElemKey()
  27273. }
  27274. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27275. if esep {
  27276. dd.ReadMapElemValue()
  27277. }
  27278. if dd.TryDecodeAsNil() {
  27279. if v == nil {
  27280. } else if d.h.DeleteOnNilMapValue {
  27281. delete(v, mk)
  27282. } else {
  27283. v[mk] = false
  27284. }
  27285. continue
  27286. }
  27287. mv = dd.DecodeBool()
  27288. if v != nil {
  27289. v[mk] = mv
  27290. }
  27291. }
  27292. dd.ReadMapEnd()
  27293. d.depthDecr()
  27294. return v, changed
  27295. }
  27296. func (d *Decoder) fastpathDecMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  27297. if rv.Kind() == reflect.Ptr {
  27298. vp := rv2i(rv).(*map[int]interface{})
  27299. v, changed := fastpathTV.DecMapIntIntfV(*vp, true, d)
  27300. if changed {
  27301. *vp = v
  27302. }
  27303. } else {
  27304. fastpathTV.DecMapIntIntfV(rv2i(rv).(map[int]interface{}), false, d)
  27305. }
  27306. }
  27307. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, d *Decoder) {
  27308. v, changed := f.DecMapIntIntfV(*vp, true, d)
  27309. if changed {
  27310. *vp = v
  27311. }
  27312. }
  27313. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, canChange bool,
  27314. d *Decoder) (_ map[int]interface{}, changed bool) {
  27315. dd, esep := d.d, d.hh.hasElemSeparators()
  27316. containerLen := dd.ReadMapStart()
  27317. if canChange && v == nil {
  27318. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27319. v = make(map[int]interface{}, xlen)
  27320. changed = true
  27321. }
  27322. if containerLen == 0 {
  27323. dd.ReadMapEnd()
  27324. return v, changed
  27325. }
  27326. d.depthIncr()
  27327. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  27328. var mk int
  27329. var mv interface{}
  27330. hasLen := containerLen > 0
  27331. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27332. if esep {
  27333. dd.ReadMapElemKey()
  27334. }
  27335. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27336. if esep {
  27337. dd.ReadMapElemValue()
  27338. }
  27339. if dd.TryDecodeAsNil() {
  27340. if v == nil {
  27341. } else if d.h.DeleteOnNilMapValue {
  27342. delete(v, mk)
  27343. } else {
  27344. v[mk] = nil
  27345. }
  27346. continue
  27347. }
  27348. if mapGet {
  27349. mv = v[mk]
  27350. } else {
  27351. mv = nil
  27352. }
  27353. d.decode(&mv)
  27354. if v != nil {
  27355. v[mk] = mv
  27356. }
  27357. }
  27358. dd.ReadMapEnd()
  27359. d.depthDecr()
  27360. return v, changed
  27361. }
  27362. func (d *Decoder) fastpathDecMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  27363. if rv.Kind() == reflect.Ptr {
  27364. vp := rv2i(rv).(*map[int]string)
  27365. v, changed := fastpathTV.DecMapIntStringV(*vp, true, d)
  27366. if changed {
  27367. *vp = v
  27368. }
  27369. } else {
  27370. fastpathTV.DecMapIntStringV(rv2i(rv).(map[int]string), false, d)
  27371. }
  27372. }
  27373. func (f fastpathT) DecMapIntStringX(vp *map[int]string, d *Decoder) {
  27374. v, changed := f.DecMapIntStringV(*vp, true, d)
  27375. if changed {
  27376. *vp = v
  27377. }
  27378. }
  27379. func (_ fastpathT) DecMapIntStringV(v map[int]string, canChange bool,
  27380. d *Decoder) (_ map[int]string, changed bool) {
  27381. dd, esep := d.d, d.hh.hasElemSeparators()
  27382. containerLen := dd.ReadMapStart()
  27383. if canChange && v == nil {
  27384. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27385. v = make(map[int]string, xlen)
  27386. changed = true
  27387. }
  27388. if containerLen == 0 {
  27389. dd.ReadMapEnd()
  27390. return v, changed
  27391. }
  27392. d.depthIncr()
  27393. var mk int
  27394. var mv string
  27395. hasLen := containerLen > 0
  27396. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27397. if esep {
  27398. dd.ReadMapElemKey()
  27399. }
  27400. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27401. if esep {
  27402. dd.ReadMapElemValue()
  27403. }
  27404. if dd.TryDecodeAsNil() {
  27405. if v == nil {
  27406. } else if d.h.DeleteOnNilMapValue {
  27407. delete(v, mk)
  27408. } else {
  27409. v[mk] = ""
  27410. }
  27411. continue
  27412. }
  27413. mv = dd.DecodeString()
  27414. if v != nil {
  27415. v[mk] = mv
  27416. }
  27417. }
  27418. dd.ReadMapEnd()
  27419. d.depthDecr()
  27420. return v, changed
  27421. }
  27422. func (d *Decoder) fastpathDecMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  27423. if rv.Kind() == reflect.Ptr {
  27424. vp := rv2i(rv).(*map[int]uint)
  27425. v, changed := fastpathTV.DecMapIntUintV(*vp, true, d)
  27426. if changed {
  27427. *vp = v
  27428. }
  27429. } else {
  27430. fastpathTV.DecMapIntUintV(rv2i(rv).(map[int]uint), false, d)
  27431. }
  27432. }
  27433. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, d *Decoder) {
  27434. v, changed := f.DecMapIntUintV(*vp, true, d)
  27435. if changed {
  27436. *vp = v
  27437. }
  27438. }
  27439. func (_ fastpathT) DecMapIntUintV(v map[int]uint, canChange bool,
  27440. d *Decoder) (_ map[int]uint, changed bool) {
  27441. dd, esep := d.d, d.hh.hasElemSeparators()
  27442. containerLen := dd.ReadMapStart()
  27443. if canChange && v == nil {
  27444. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27445. v = make(map[int]uint, xlen)
  27446. changed = true
  27447. }
  27448. if containerLen == 0 {
  27449. dd.ReadMapEnd()
  27450. return v, changed
  27451. }
  27452. d.depthIncr()
  27453. var mk int
  27454. var mv uint
  27455. hasLen := containerLen > 0
  27456. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27457. if esep {
  27458. dd.ReadMapElemKey()
  27459. }
  27460. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27461. if esep {
  27462. dd.ReadMapElemValue()
  27463. }
  27464. if dd.TryDecodeAsNil() {
  27465. if v == nil {
  27466. } else if d.h.DeleteOnNilMapValue {
  27467. delete(v, mk)
  27468. } else {
  27469. v[mk] = 0
  27470. }
  27471. continue
  27472. }
  27473. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27474. if v != nil {
  27475. v[mk] = mv
  27476. }
  27477. }
  27478. dd.ReadMapEnd()
  27479. d.depthDecr()
  27480. return v, changed
  27481. }
  27482. func (d *Decoder) fastpathDecMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  27483. if rv.Kind() == reflect.Ptr {
  27484. vp := rv2i(rv).(*map[int]uint8)
  27485. v, changed := fastpathTV.DecMapIntUint8V(*vp, true, d)
  27486. if changed {
  27487. *vp = v
  27488. }
  27489. } else {
  27490. fastpathTV.DecMapIntUint8V(rv2i(rv).(map[int]uint8), false, d)
  27491. }
  27492. }
  27493. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, d *Decoder) {
  27494. v, changed := f.DecMapIntUint8V(*vp, true, d)
  27495. if changed {
  27496. *vp = v
  27497. }
  27498. }
  27499. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, canChange bool,
  27500. d *Decoder) (_ map[int]uint8, changed bool) {
  27501. dd, esep := d.d, d.hh.hasElemSeparators()
  27502. containerLen := dd.ReadMapStart()
  27503. if canChange && v == nil {
  27504. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27505. v = make(map[int]uint8, xlen)
  27506. changed = true
  27507. }
  27508. if containerLen == 0 {
  27509. dd.ReadMapEnd()
  27510. return v, changed
  27511. }
  27512. d.depthIncr()
  27513. var mk int
  27514. var mv uint8
  27515. hasLen := containerLen > 0
  27516. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27517. if esep {
  27518. dd.ReadMapElemKey()
  27519. }
  27520. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27521. if esep {
  27522. dd.ReadMapElemValue()
  27523. }
  27524. if dd.TryDecodeAsNil() {
  27525. if v == nil {
  27526. } else if d.h.DeleteOnNilMapValue {
  27527. delete(v, mk)
  27528. } else {
  27529. v[mk] = 0
  27530. }
  27531. continue
  27532. }
  27533. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  27534. if v != nil {
  27535. v[mk] = mv
  27536. }
  27537. }
  27538. dd.ReadMapEnd()
  27539. d.depthDecr()
  27540. return v, changed
  27541. }
  27542. func (d *Decoder) fastpathDecMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  27543. if rv.Kind() == reflect.Ptr {
  27544. vp := rv2i(rv).(*map[int]uint16)
  27545. v, changed := fastpathTV.DecMapIntUint16V(*vp, true, d)
  27546. if changed {
  27547. *vp = v
  27548. }
  27549. } else {
  27550. fastpathTV.DecMapIntUint16V(rv2i(rv).(map[int]uint16), false, d)
  27551. }
  27552. }
  27553. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, d *Decoder) {
  27554. v, changed := f.DecMapIntUint16V(*vp, true, d)
  27555. if changed {
  27556. *vp = v
  27557. }
  27558. }
  27559. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, canChange bool,
  27560. d *Decoder) (_ map[int]uint16, changed bool) {
  27561. dd, esep := d.d, d.hh.hasElemSeparators()
  27562. containerLen := dd.ReadMapStart()
  27563. if canChange && v == nil {
  27564. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27565. v = make(map[int]uint16, xlen)
  27566. changed = true
  27567. }
  27568. if containerLen == 0 {
  27569. dd.ReadMapEnd()
  27570. return v, changed
  27571. }
  27572. d.depthIncr()
  27573. var mk int
  27574. var mv uint16
  27575. hasLen := containerLen > 0
  27576. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27577. if esep {
  27578. dd.ReadMapElemKey()
  27579. }
  27580. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27581. if esep {
  27582. dd.ReadMapElemValue()
  27583. }
  27584. if dd.TryDecodeAsNil() {
  27585. if v == nil {
  27586. } else if d.h.DeleteOnNilMapValue {
  27587. delete(v, mk)
  27588. } else {
  27589. v[mk] = 0
  27590. }
  27591. continue
  27592. }
  27593. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  27594. if v != nil {
  27595. v[mk] = mv
  27596. }
  27597. }
  27598. dd.ReadMapEnd()
  27599. d.depthDecr()
  27600. return v, changed
  27601. }
  27602. func (d *Decoder) fastpathDecMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  27603. if rv.Kind() == reflect.Ptr {
  27604. vp := rv2i(rv).(*map[int]uint32)
  27605. v, changed := fastpathTV.DecMapIntUint32V(*vp, true, d)
  27606. if changed {
  27607. *vp = v
  27608. }
  27609. } else {
  27610. fastpathTV.DecMapIntUint32V(rv2i(rv).(map[int]uint32), false, d)
  27611. }
  27612. }
  27613. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, d *Decoder) {
  27614. v, changed := f.DecMapIntUint32V(*vp, true, d)
  27615. if changed {
  27616. *vp = v
  27617. }
  27618. }
  27619. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, canChange bool,
  27620. d *Decoder) (_ map[int]uint32, changed bool) {
  27621. dd, esep := d.d, d.hh.hasElemSeparators()
  27622. containerLen := dd.ReadMapStart()
  27623. if canChange && v == nil {
  27624. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27625. v = make(map[int]uint32, xlen)
  27626. changed = true
  27627. }
  27628. if containerLen == 0 {
  27629. dd.ReadMapEnd()
  27630. return v, changed
  27631. }
  27632. d.depthIncr()
  27633. var mk int
  27634. var mv uint32
  27635. hasLen := containerLen > 0
  27636. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27637. if esep {
  27638. dd.ReadMapElemKey()
  27639. }
  27640. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27641. if esep {
  27642. dd.ReadMapElemValue()
  27643. }
  27644. if dd.TryDecodeAsNil() {
  27645. if v == nil {
  27646. } else if d.h.DeleteOnNilMapValue {
  27647. delete(v, mk)
  27648. } else {
  27649. v[mk] = 0
  27650. }
  27651. continue
  27652. }
  27653. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  27654. if v != nil {
  27655. v[mk] = mv
  27656. }
  27657. }
  27658. dd.ReadMapEnd()
  27659. d.depthDecr()
  27660. return v, changed
  27661. }
  27662. func (d *Decoder) fastpathDecMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  27663. if rv.Kind() == reflect.Ptr {
  27664. vp := rv2i(rv).(*map[int]uint64)
  27665. v, changed := fastpathTV.DecMapIntUint64V(*vp, true, d)
  27666. if changed {
  27667. *vp = v
  27668. }
  27669. } else {
  27670. fastpathTV.DecMapIntUint64V(rv2i(rv).(map[int]uint64), false, d)
  27671. }
  27672. }
  27673. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, d *Decoder) {
  27674. v, changed := f.DecMapIntUint64V(*vp, true, d)
  27675. if changed {
  27676. *vp = v
  27677. }
  27678. }
  27679. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, canChange bool,
  27680. d *Decoder) (_ map[int]uint64, changed bool) {
  27681. dd, esep := d.d, d.hh.hasElemSeparators()
  27682. containerLen := dd.ReadMapStart()
  27683. if canChange && v == nil {
  27684. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27685. v = make(map[int]uint64, xlen)
  27686. changed = true
  27687. }
  27688. if containerLen == 0 {
  27689. dd.ReadMapEnd()
  27690. return v, changed
  27691. }
  27692. d.depthIncr()
  27693. var mk int
  27694. var mv uint64
  27695. hasLen := containerLen > 0
  27696. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27697. if esep {
  27698. dd.ReadMapElemKey()
  27699. }
  27700. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27701. if esep {
  27702. dd.ReadMapElemValue()
  27703. }
  27704. if dd.TryDecodeAsNil() {
  27705. if v == nil {
  27706. } else if d.h.DeleteOnNilMapValue {
  27707. delete(v, mk)
  27708. } else {
  27709. v[mk] = 0
  27710. }
  27711. continue
  27712. }
  27713. mv = dd.DecodeUint64()
  27714. if v != nil {
  27715. v[mk] = mv
  27716. }
  27717. }
  27718. dd.ReadMapEnd()
  27719. d.depthDecr()
  27720. return v, changed
  27721. }
  27722. func (d *Decoder) fastpathDecMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  27723. if rv.Kind() == reflect.Ptr {
  27724. vp := rv2i(rv).(*map[int]uintptr)
  27725. v, changed := fastpathTV.DecMapIntUintptrV(*vp, true, d)
  27726. if changed {
  27727. *vp = v
  27728. }
  27729. } else {
  27730. fastpathTV.DecMapIntUintptrV(rv2i(rv).(map[int]uintptr), false, d)
  27731. }
  27732. }
  27733. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, d *Decoder) {
  27734. v, changed := f.DecMapIntUintptrV(*vp, true, d)
  27735. if changed {
  27736. *vp = v
  27737. }
  27738. }
  27739. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, canChange bool,
  27740. d *Decoder) (_ map[int]uintptr, changed bool) {
  27741. dd, esep := d.d, d.hh.hasElemSeparators()
  27742. containerLen := dd.ReadMapStart()
  27743. if canChange && v == nil {
  27744. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27745. v = make(map[int]uintptr, xlen)
  27746. changed = true
  27747. }
  27748. if containerLen == 0 {
  27749. dd.ReadMapEnd()
  27750. return v, changed
  27751. }
  27752. d.depthIncr()
  27753. var mk int
  27754. var mv uintptr
  27755. hasLen := containerLen > 0
  27756. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27757. if esep {
  27758. dd.ReadMapElemKey()
  27759. }
  27760. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27761. if esep {
  27762. dd.ReadMapElemValue()
  27763. }
  27764. if dd.TryDecodeAsNil() {
  27765. if v == nil {
  27766. } else if d.h.DeleteOnNilMapValue {
  27767. delete(v, mk)
  27768. } else {
  27769. v[mk] = 0
  27770. }
  27771. continue
  27772. }
  27773. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27774. if v != nil {
  27775. v[mk] = mv
  27776. }
  27777. }
  27778. dd.ReadMapEnd()
  27779. d.depthDecr()
  27780. return v, changed
  27781. }
  27782. func (d *Decoder) fastpathDecMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  27783. if rv.Kind() == reflect.Ptr {
  27784. vp := rv2i(rv).(*map[int]int)
  27785. v, changed := fastpathTV.DecMapIntIntV(*vp, true, d)
  27786. if changed {
  27787. *vp = v
  27788. }
  27789. } else {
  27790. fastpathTV.DecMapIntIntV(rv2i(rv).(map[int]int), false, d)
  27791. }
  27792. }
  27793. func (f fastpathT) DecMapIntIntX(vp *map[int]int, d *Decoder) {
  27794. v, changed := f.DecMapIntIntV(*vp, true, d)
  27795. if changed {
  27796. *vp = v
  27797. }
  27798. }
  27799. func (_ fastpathT) DecMapIntIntV(v map[int]int, canChange bool,
  27800. d *Decoder) (_ map[int]int, changed bool) {
  27801. dd, esep := d.d, d.hh.hasElemSeparators()
  27802. containerLen := dd.ReadMapStart()
  27803. if canChange && v == nil {
  27804. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27805. v = make(map[int]int, xlen)
  27806. changed = true
  27807. }
  27808. if containerLen == 0 {
  27809. dd.ReadMapEnd()
  27810. return v, changed
  27811. }
  27812. d.depthIncr()
  27813. var mk int
  27814. var mv int
  27815. hasLen := containerLen > 0
  27816. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27817. if esep {
  27818. dd.ReadMapElemKey()
  27819. }
  27820. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27821. if esep {
  27822. dd.ReadMapElemValue()
  27823. }
  27824. if dd.TryDecodeAsNil() {
  27825. if v == nil {
  27826. } else if d.h.DeleteOnNilMapValue {
  27827. delete(v, mk)
  27828. } else {
  27829. v[mk] = 0
  27830. }
  27831. continue
  27832. }
  27833. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27834. if v != nil {
  27835. v[mk] = mv
  27836. }
  27837. }
  27838. dd.ReadMapEnd()
  27839. d.depthDecr()
  27840. return v, changed
  27841. }
  27842. func (d *Decoder) fastpathDecMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  27843. if rv.Kind() == reflect.Ptr {
  27844. vp := rv2i(rv).(*map[int]int8)
  27845. v, changed := fastpathTV.DecMapIntInt8V(*vp, true, d)
  27846. if changed {
  27847. *vp = v
  27848. }
  27849. } else {
  27850. fastpathTV.DecMapIntInt8V(rv2i(rv).(map[int]int8), false, d)
  27851. }
  27852. }
  27853. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, d *Decoder) {
  27854. v, changed := f.DecMapIntInt8V(*vp, true, d)
  27855. if changed {
  27856. *vp = v
  27857. }
  27858. }
  27859. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, canChange bool,
  27860. d *Decoder) (_ map[int]int8, changed bool) {
  27861. dd, esep := d.d, d.hh.hasElemSeparators()
  27862. containerLen := dd.ReadMapStart()
  27863. if canChange && v == nil {
  27864. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27865. v = make(map[int]int8, xlen)
  27866. changed = true
  27867. }
  27868. if containerLen == 0 {
  27869. dd.ReadMapEnd()
  27870. return v, changed
  27871. }
  27872. d.depthIncr()
  27873. var mk int
  27874. var mv int8
  27875. hasLen := containerLen > 0
  27876. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27877. if esep {
  27878. dd.ReadMapElemKey()
  27879. }
  27880. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27881. if esep {
  27882. dd.ReadMapElemValue()
  27883. }
  27884. if dd.TryDecodeAsNil() {
  27885. if v == nil {
  27886. } else if d.h.DeleteOnNilMapValue {
  27887. delete(v, mk)
  27888. } else {
  27889. v[mk] = 0
  27890. }
  27891. continue
  27892. }
  27893. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  27894. if v != nil {
  27895. v[mk] = mv
  27896. }
  27897. }
  27898. dd.ReadMapEnd()
  27899. d.depthDecr()
  27900. return v, changed
  27901. }
  27902. func (d *Decoder) fastpathDecMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  27903. if rv.Kind() == reflect.Ptr {
  27904. vp := rv2i(rv).(*map[int]int16)
  27905. v, changed := fastpathTV.DecMapIntInt16V(*vp, true, d)
  27906. if changed {
  27907. *vp = v
  27908. }
  27909. } else {
  27910. fastpathTV.DecMapIntInt16V(rv2i(rv).(map[int]int16), false, d)
  27911. }
  27912. }
  27913. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, d *Decoder) {
  27914. v, changed := f.DecMapIntInt16V(*vp, true, d)
  27915. if changed {
  27916. *vp = v
  27917. }
  27918. }
  27919. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, canChange bool,
  27920. d *Decoder) (_ map[int]int16, changed bool) {
  27921. dd, esep := d.d, d.hh.hasElemSeparators()
  27922. containerLen := dd.ReadMapStart()
  27923. if canChange && v == nil {
  27924. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27925. v = make(map[int]int16, xlen)
  27926. changed = true
  27927. }
  27928. if containerLen == 0 {
  27929. dd.ReadMapEnd()
  27930. return v, changed
  27931. }
  27932. d.depthIncr()
  27933. var mk int
  27934. var mv int16
  27935. hasLen := containerLen > 0
  27936. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27937. if esep {
  27938. dd.ReadMapElemKey()
  27939. }
  27940. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27941. if esep {
  27942. dd.ReadMapElemValue()
  27943. }
  27944. if dd.TryDecodeAsNil() {
  27945. if v == nil {
  27946. } else if d.h.DeleteOnNilMapValue {
  27947. delete(v, mk)
  27948. } else {
  27949. v[mk] = 0
  27950. }
  27951. continue
  27952. }
  27953. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  27954. if v != nil {
  27955. v[mk] = mv
  27956. }
  27957. }
  27958. dd.ReadMapEnd()
  27959. d.depthDecr()
  27960. return v, changed
  27961. }
  27962. func (d *Decoder) fastpathDecMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  27963. if rv.Kind() == reflect.Ptr {
  27964. vp := rv2i(rv).(*map[int]int32)
  27965. v, changed := fastpathTV.DecMapIntInt32V(*vp, true, d)
  27966. if changed {
  27967. *vp = v
  27968. }
  27969. } else {
  27970. fastpathTV.DecMapIntInt32V(rv2i(rv).(map[int]int32), false, d)
  27971. }
  27972. }
  27973. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, d *Decoder) {
  27974. v, changed := f.DecMapIntInt32V(*vp, true, d)
  27975. if changed {
  27976. *vp = v
  27977. }
  27978. }
  27979. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, canChange bool,
  27980. d *Decoder) (_ map[int]int32, changed bool) {
  27981. dd, esep := d.d, d.hh.hasElemSeparators()
  27982. containerLen := dd.ReadMapStart()
  27983. if canChange && v == nil {
  27984. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27985. v = make(map[int]int32, xlen)
  27986. changed = true
  27987. }
  27988. if containerLen == 0 {
  27989. dd.ReadMapEnd()
  27990. return v, changed
  27991. }
  27992. d.depthIncr()
  27993. var mk int
  27994. var mv int32
  27995. hasLen := containerLen > 0
  27996. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27997. if esep {
  27998. dd.ReadMapElemKey()
  27999. }
  28000. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28001. if esep {
  28002. dd.ReadMapElemValue()
  28003. }
  28004. if dd.TryDecodeAsNil() {
  28005. if v == nil {
  28006. } else if d.h.DeleteOnNilMapValue {
  28007. delete(v, mk)
  28008. } else {
  28009. v[mk] = 0
  28010. }
  28011. continue
  28012. }
  28013. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  28014. if v != nil {
  28015. v[mk] = mv
  28016. }
  28017. }
  28018. dd.ReadMapEnd()
  28019. d.depthDecr()
  28020. return v, changed
  28021. }
  28022. func (d *Decoder) fastpathDecMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  28023. if rv.Kind() == reflect.Ptr {
  28024. vp := rv2i(rv).(*map[int]int64)
  28025. v, changed := fastpathTV.DecMapIntInt64V(*vp, true, d)
  28026. if changed {
  28027. *vp = v
  28028. }
  28029. } else {
  28030. fastpathTV.DecMapIntInt64V(rv2i(rv).(map[int]int64), false, d)
  28031. }
  28032. }
  28033. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, d *Decoder) {
  28034. v, changed := f.DecMapIntInt64V(*vp, true, d)
  28035. if changed {
  28036. *vp = v
  28037. }
  28038. }
  28039. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, canChange bool,
  28040. d *Decoder) (_ map[int]int64, changed bool) {
  28041. dd, esep := d.d, d.hh.hasElemSeparators()
  28042. containerLen := dd.ReadMapStart()
  28043. if canChange && v == nil {
  28044. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28045. v = make(map[int]int64, xlen)
  28046. changed = true
  28047. }
  28048. if containerLen == 0 {
  28049. dd.ReadMapEnd()
  28050. return v, changed
  28051. }
  28052. d.depthIncr()
  28053. var mk int
  28054. var mv int64
  28055. hasLen := containerLen > 0
  28056. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28057. if esep {
  28058. dd.ReadMapElemKey()
  28059. }
  28060. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28061. if esep {
  28062. dd.ReadMapElemValue()
  28063. }
  28064. if dd.TryDecodeAsNil() {
  28065. if v == nil {
  28066. } else if d.h.DeleteOnNilMapValue {
  28067. delete(v, mk)
  28068. } else {
  28069. v[mk] = 0
  28070. }
  28071. continue
  28072. }
  28073. mv = dd.DecodeInt64()
  28074. if v != nil {
  28075. v[mk] = mv
  28076. }
  28077. }
  28078. dd.ReadMapEnd()
  28079. d.depthDecr()
  28080. return v, changed
  28081. }
  28082. func (d *Decoder) fastpathDecMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  28083. if rv.Kind() == reflect.Ptr {
  28084. vp := rv2i(rv).(*map[int]float32)
  28085. v, changed := fastpathTV.DecMapIntFloat32V(*vp, true, d)
  28086. if changed {
  28087. *vp = v
  28088. }
  28089. } else {
  28090. fastpathTV.DecMapIntFloat32V(rv2i(rv).(map[int]float32), false, d)
  28091. }
  28092. }
  28093. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, d *Decoder) {
  28094. v, changed := f.DecMapIntFloat32V(*vp, true, d)
  28095. if changed {
  28096. *vp = v
  28097. }
  28098. }
  28099. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, canChange bool,
  28100. d *Decoder) (_ map[int]float32, changed bool) {
  28101. dd, esep := d.d, d.hh.hasElemSeparators()
  28102. containerLen := dd.ReadMapStart()
  28103. if canChange && v == nil {
  28104. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28105. v = make(map[int]float32, xlen)
  28106. changed = true
  28107. }
  28108. if containerLen == 0 {
  28109. dd.ReadMapEnd()
  28110. return v, changed
  28111. }
  28112. d.depthIncr()
  28113. var mk int
  28114. var mv float32
  28115. hasLen := containerLen > 0
  28116. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28117. if esep {
  28118. dd.ReadMapElemKey()
  28119. }
  28120. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28121. if esep {
  28122. dd.ReadMapElemValue()
  28123. }
  28124. if dd.TryDecodeAsNil() {
  28125. if v == nil {
  28126. } else if d.h.DeleteOnNilMapValue {
  28127. delete(v, mk)
  28128. } else {
  28129. v[mk] = 0
  28130. }
  28131. continue
  28132. }
  28133. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  28134. if v != nil {
  28135. v[mk] = mv
  28136. }
  28137. }
  28138. dd.ReadMapEnd()
  28139. d.depthDecr()
  28140. return v, changed
  28141. }
  28142. func (d *Decoder) fastpathDecMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  28143. if rv.Kind() == reflect.Ptr {
  28144. vp := rv2i(rv).(*map[int]float64)
  28145. v, changed := fastpathTV.DecMapIntFloat64V(*vp, true, d)
  28146. if changed {
  28147. *vp = v
  28148. }
  28149. } else {
  28150. fastpathTV.DecMapIntFloat64V(rv2i(rv).(map[int]float64), false, d)
  28151. }
  28152. }
  28153. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, d *Decoder) {
  28154. v, changed := f.DecMapIntFloat64V(*vp, true, d)
  28155. if changed {
  28156. *vp = v
  28157. }
  28158. }
  28159. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, canChange bool,
  28160. d *Decoder) (_ map[int]float64, changed bool) {
  28161. dd, esep := d.d, d.hh.hasElemSeparators()
  28162. containerLen := dd.ReadMapStart()
  28163. if canChange && v == nil {
  28164. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28165. v = make(map[int]float64, xlen)
  28166. changed = true
  28167. }
  28168. if containerLen == 0 {
  28169. dd.ReadMapEnd()
  28170. return v, changed
  28171. }
  28172. d.depthIncr()
  28173. var mk int
  28174. var mv float64
  28175. hasLen := containerLen > 0
  28176. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28177. if esep {
  28178. dd.ReadMapElemKey()
  28179. }
  28180. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28181. if esep {
  28182. dd.ReadMapElemValue()
  28183. }
  28184. if dd.TryDecodeAsNil() {
  28185. if v == nil {
  28186. } else if d.h.DeleteOnNilMapValue {
  28187. delete(v, mk)
  28188. } else {
  28189. v[mk] = 0
  28190. }
  28191. continue
  28192. }
  28193. mv = dd.DecodeFloat64()
  28194. if v != nil {
  28195. v[mk] = mv
  28196. }
  28197. }
  28198. dd.ReadMapEnd()
  28199. d.depthDecr()
  28200. return v, changed
  28201. }
  28202. func (d *Decoder) fastpathDecMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  28203. if rv.Kind() == reflect.Ptr {
  28204. vp := rv2i(rv).(*map[int]bool)
  28205. v, changed := fastpathTV.DecMapIntBoolV(*vp, true, d)
  28206. if changed {
  28207. *vp = v
  28208. }
  28209. } else {
  28210. fastpathTV.DecMapIntBoolV(rv2i(rv).(map[int]bool), false, d)
  28211. }
  28212. }
  28213. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, d *Decoder) {
  28214. v, changed := f.DecMapIntBoolV(*vp, true, d)
  28215. if changed {
  28216. *vp = v
  28217. }
  28218. }
  28219. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, canChange bool,
  28220. d *Decoder) (_ map[int]bool, changed bool) {
  28221. dd, esep := d.d, d.hh.hasElemSeparators()
  28222. containerLen := dd.ReadMapStart()
  28223. if canChange && v == nil {
  28224. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28225. v = make(map[int]bool, xlen)
  28226. changed = true
  28227. }
  28228. if containerLen == 0 {
  28229. dd.ReadMapEnd()
  28230. return v, changed
  28231. }
  28232. d.depthIncr()
  28233. var mk int
  28234. var mv bool
  28235. hasLen := containerLen > 0
  28236. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28237. if esep {
  28238. dd.ReadMapElemKey()
  28239. }
  28240. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28241. if esep {
  28242. dd.ReadMapElemValue()
  28243. }
  28244. if dd.TryDecodeAsNil() {
  28245. if v == nil {
  28246. } else if d.h.DeleteOnNilMapValue {
  28247. delete(v, mk)
  28248. } else {
  28249. v[mk] = false
  28250. }
  28251. continue
  28252. }
  28253. mv = dd.DecodeBool()
  28254. if v != nil {
  28255. v[mk] = mv
  28256. }
  28257. }
  28258. dd.ReadMapEnd()
  28259. d.depthDecr()
  28260. return v, changed
  28261. }
  28262. func (d *Decoder) fastpathDecMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  28263. if rv.Kind() == reflect.Ptr {
  28264. vp := rv2i(rv).(*map[int8]interface{})
  28265. v, changed := fastpathTV.DecMapInt8IntfV(*vp, true, d)
  28266. if changed {
  28267. *vp = v
  28268. }
  28269. } else {
  28270. fastpathTV.DecMapInt8IntfV(rv2i(rv).(map[int8]interface{}), false, d)
  28271. }
  28272. }
  28273. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, d *Decoder) {
  28274. v, changed := f.DecMapInt8IntfV(*vp, true, d)
  28275. if changed {
  28276. *vp = v
  28277. }
  28278. }
  28279. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, canChange bool,
  28280. d *Decoder) (_ map[int8]interface{}, changed bool) {
  28281. dd, esep := d.d, d.hh.hasElemSeparators()
  28282. containerLen := dd.ReadMapStart()
  28283. if canChange && v == nil {
  28284. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  28285. v = make(map[int8]interface{}, xlen)
  28286. changed = true
  28287. }
  28288. if containerLen == 0 {
  28289. dd.ReadMapEnd()
  28290. return v, changed
  28291. }
  28292. d.depthIncr()
  28293. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  28294. var mk int8
  28295. var mv interface{}
  28296. hasLen := containerLen > 0
  28297. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28298. if esep {
  28299. dd.ReadMapElemKey()
  28300. }
  28301. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28302. if esep {
  28303. dd.ReadMapElemValue()
  28304. }
  28305. if dd.TryDecodeAsNil() {
  28306. if v == nil {
  28307. } else if d.h.DeleteOnNilMapValue {
  28308. delete(v, mk)
  28309. } else {
  28310. v[mk] = nil
  28311. }
  28312. continue
  28313. }
  28314. if mapGet {
  28315. mv = v[mk]
  28316. } else {
  28317. mv = nil
  28318. }
  28319. d.decode(&mv)
  28320. if v != nil {
  28321. v[mk] = mv
  28322. }
  28323. }
  28324. dd.ReadMapEnd()
  28325. d.depthDecr()
  28326. return v, changed
  28327. }
  28328. func (d *Decoder) fastpathDecMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  28329. if rv.Kind() == reflect.Ptr {
  28330. vp := rv2i(rv).(*map[int8]string)
  28331. v, changed := fastpathTV.DecMapInt8StringV(*vp, true, d)
  28332. if changed {
  28333. *vp = v
  28334. }
  28335. } else {
  28336. fastpathTV.DecMapInt8StringV(rv2i(rv).(map[int8]string), false, d)
  28337. }
  28338. }
  28339. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, d *Decoder) {
  28340. v, changed := f.DecMapInt8StringV(*vp, true, d)
  28341. if changed {
  28342. *vp = v
  28343. }
  28344. }
  28345. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, canChange bool,
  28346. d *Decoder) (_ map[int8]string, changed bool) {
  28347. dd, esep := d.d, d.hh.hasElemSeparators()
  28348. containerLen := dd.ReadMapStart()
  28349. if canChange && v == nil {
  28350. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  28351. v = make(map[int8]string, xlen)
  28352. changed = true
  28353. }
  28354. if containerLen == 0 {
  28355. dd.ReadMapEnd()
  28356. return v, changed
  28357. }
  28358. d.depthIncr()
  28359. var mk int8
  28360. var mv string
  28361. hasLen := containerLen > 0
  28362. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28363. if esep {
  28364. dd.ReadMapElemKey()
  28365. }
  28366. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28367. if esep {
  28368. dd.ReadMapElemValue()
  28369. }
  28370. if dd.TryDecodeAsNil() {
  28371. if v == nil {
  28372. } else if d.h.DeleteOnNilMapValue {
  28373. delete(v, mk)
  28374. } else {
  28375. v[mk] = ""
  28376. }
  28377. continue
  28378. }
  28379. mv = dd.DecodeString()
  28380. if v != nil {
  28381. v[mk] = mv
  28382. }
  28383. }
  28384. dd.ReadMapEnd()
  28385. d.depthDecr()
  28386. return v, changed
  28387. }
  28388. func (d *Decoder) fastpathDecMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  28389. if rv.Kind() == reflect.Ptr {
  28390. vp := rv2i(rv).(*map[int8]uint)
  28391. v, changed := fastpathTV.DecMapInt8UintV(*vp, true, d)
  28392. if changed {
  28393. *vp = v
  28394. }
  28395. } else {
  28396. fastpathTV.DecMapInt8UintV(rv2i(rv).(map[int8]uint), false, d)
  28397. }
  28398. }
  28399. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, d *Decoder) {
  28400. v, changed := f.DecMapInt8UintV(*vp, true, d)
  28401. if changed {
  28402. *vp = v
  28403. }
  28404. }
  28405. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, canChange bool,
  28406. d *Decoder) (_ map[int8]uint, changed bool) {
  28407. dd, esep := d.d, d.hh.hasElemSeparators()
  28408. containerLen := dd.ReadMapStart()
  28409. if canChange && v == nil {
  28410. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28411. v = make(map[int8]uint, xlen)
  28412. changed = true
  28413. }
  28414. if containerLen == 0 {
  28415. dd.ReadMapEnd()
  28416. return v, changed
  28417. }
  28418. d.depthIncr()
  28419. var mk int8
  28420. var mv uint
  28421. hasLen := containerLen > 0
  28422. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28423. if esep {
  28424. dd.ReadMapElemKey()
  28425. }
  28426. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28427. if esep {
  28428. dd.ReadMapElemValue()
  28429. }
  28430. if dd.TryDecodeAsNil() {
  28431. if v == nil {
  28432. } else if d.h.DeleteOnNilMapValue {
  28433. delete(v, mk)
  28434. } else {
  28435. v[mk] = 0
  28436. }
  28437. continue
  28438. }
  28439. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28440. if v != nil {
  28441. v[mk] = mv
  28442. }
  28443. }
  28444. dd.ReadMapEnd()
  28445. d.depthDecr()
  28446. return v, changed
  28447. }
  28448. func (d *Decoder) fastpathDecMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  28449. if rv.Kind() == reflect.Ptr {
  28450. vp := rv2i(rv).(*map[int8]uint8)
  28451. v, changed := fastpathTV.DecMapInt8Uint8V(*vp, true, d)
  28452. if changed {
  28453. *vp = v
  28454. }
  28455. } else {
  28456. fastpathTV.DecMapInt8Uint8V(rv2i(rv).(map[int8]uint8), false, d)
  28457. }
  28458. }
  28459. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, d *Decoder) {
  28460. v, changed := f.DecMapInt8Uint8V(*vp, true, d)
  28461. if changed {
  28462. *vp = v
  28463. }
  28464. }
  28465. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, canChange bool,
  28466. d *Decoder) (_ map[int8]uint8, changed bool) {
  28467. dd, esep := d.d, d.hh.hasElemSeparators()
  28468. containerLen := dd.ReadMapStart()
  28469. if canChange && v == nil {
  28470. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  28471. v = make(map[int8]uint8, xlen)
  28472. changed = true
  28473. }
  28474. if containerLen == 0 {
  28475. dd.ReadMapEnd()
  28476. return v, changed
  28477. }
  28478. d.depthIncr()
  28479. var mk int8
  28480. var mv uint8
  28481. hasLen := containerLen > 0
  28482. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28483. if esep {
  28484. dd.ReadMapElemKey()
  28485. }
  28486. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28487. if esep {
  28488. dd.ReadMapElemValue()
  28489. }
  28490. if dd.TryDecodeAsNil() {
  28491. if v == nil {
  28492. } else if d.h.DeleteOnNilMapValue {
  28493. delete(v, mk)
  28494. } else {
  28495. v[mk] = 0
  28496. }
  28497. continue
  28498. }
  28499. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  28500. if v != nil {
  28501. v[mk] = mv
  28502. }
  28503. }
  28504. dd.ReadMapEnd()
  28505. d.depthDecr()
  28506. return v, changed
  28507. }
  28508. func (d *Decoder) fastpathDecMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  28509. if rv.Kind() == reflect.Ptr {
  28510. vp := rv2i(rv).(*map[int8]uint16)
  28511. v, changed := fastpathTV.DecMapInt8Uint16V(*vp, true, d)
  28512. if changed {
  28513. *vp = v
  28514. }
  28515. } else {
  28516. fastpathTV.DecMapInt8Uint16V(rv2i(rv).(map[int8]uint16), false, d)
  28517. }
  28518. }
  28519. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, d *Decoder) {
  28520. v, changed := f.DecMapInt8Uint16V(*vp, true, d)
  28521. if changed {
  28522. *vp = v
  28523. }
  28524. }
  28525. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, canChange bool,
  28526. d *Decoder) (_ map[int8]uint16, changed bool) {
  28527. dd, esep := d.d, d.hh.hasElemSeparators()
  28528. containerLen := dd.ReadMapStart()
  28529. if canChange && v == nil {
  28530. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  28531. v = make(map[int8]uint16, xlen)
  28532. changed = true
  28533. }
  28534. if containerLen == 0 {
  28535. dd.ReadMapEnd()
  28536. return v, changed
  28537. }
  28538. d.depthIncr()
  28539. var mk int8
  28540. var mv uint16
  28541. hasLen := containerLen > 0
  28542. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28543. if esep {
  28544. dd.ReadMapElemKey()
  28545. }
  28546. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28547. if esep {
  28548. dd.ReadMapElemValue()
  28549. }
  28550. if dd.TryDecodeAsNil() {
  28551. if v == nil {
  28552. } else if d.h.DeleteOnNilMapValue {
  28553. delete(v, mk)
  28554. } else {
  28555. v[mk] = 0
  28556. }
  28557. continue
  28558. }
  28559. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  28560. if v != nil {
  28561. v[mk] = mv
  28562. }
  28563. }
  28564. dd.ReadMapEnd()
  28565. d.depthDecr()
  28566. return v, changed
  28567. }
  28568. func (d *Decoder) fastpathDecMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  28569. if rv.Kind() == reflect.Ptr {
  28570. vp := rv2i(rv).(*map[int8]uint32)
  28571. v, changed := fastpathTV.DecMapInt8Uint32V(*vp, true, d)
  28572. if changed {
  28573. *vp = v
  28574. }
  28575. } else {
  28576. fastpathTV.DecMapInt8Uint32V(rv2i(rv).(map[int8]uint32), false, d)
  28577. }
  28578. }
  28579. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, d *Decoder) {
  28580. v, changed := f.DecMapInt8Uint32V(*vp, true, d)
  28581. if changed {
  28582. *vp = v
  28583. }
  28584. }
  28585. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, canChange bool,
  28586. d *Decoder) (_ map[int8]uint32, changed bool) {
  28587. dd, esep := d.d, d.hh.hasElemSeparators()
  28588. containerLen := dd.ReadMapStart()
  28589. if canChange && v == nil {
  28590. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28591. v = make(map[int8]uint32, xlen)
  28592. changed = true
  28593. }
  28594. if containerLen == 0 {
  28595. dd.ReadMapEnd()
  28596. return v, changed
  28597. }
  28598. d.depthIncr()
  28599. var mk int8
  28600. var mv uint32
  28601. hasLen := containerLen > 0
  28602. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28603. if esep {
  28604. dd.ReadMapElemKey()
  28605. }
  28606. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28607. if esep {
  28608. dd.ReadMapElemValue()
  28609. }
  28610. if dd.TryDecodeAsNil() {
  28611. if v == nil {
  28612. } else if d.h.DeleteOnNilMapValue {
  28613. delete(v, mk)
  28614. } else {
  28615. v[mk] = 0
  28616. }
  28617. continue
  28618. }
  28619. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  28620. if v != nil {
  28621. v[mk] = mv
  28622. }
  28623. }
  28624. dd.ReadMapEnd()
  28625. d.depthDecr()
  28626. return v, changed
  28627. }
  28628. func (d *Decoder) fastpathDecMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  28629. if rv.Kind() == reflect.Ptr {
  28630. vp := rv2i(rv).(*map[int8]uint64)
  28631. v, changed := fastpathTV.DecMapInt8Uint64V(*vp, true, d)
  28632. if changed {
  28633. *vp = v
  28634. }
  28635. } else {
  28636. fastpathTV.DecMapInt8Uint64V(rv2i(rv).(map[int8]uint64), false, d)
  28637. }
  28638. }
  28639. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, d *Decoder) {
  28640. v, changed := f.DecMapInt8Uint64V(*vp, true, d)
  28641. if changed {
  28642. *vp = v
  28643. }
  28644. }
  28645. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, canChange bool,
  28646. d *Decoder) (_ map[int8]uint64, changed bool) {
  28647. dd, esep := d.d, d.hh.hasElemSeparators()
  28648. containerLen := dd.ReadMapStart()
  28649. if canChange && v == nil {
  28650. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28651. v = make(map[int8]uint64, xlen)
  28652. changed = true
  28653. }
  28654. if containerLen == 0 {
  28655. dd.ReadMapEnd()
  28656. return v, changed
  28657. }
  28658. d.depthIncr()
  28659. var mk int8
  28660. var mv uint64
  28661. hasLen := containerLen > 0
  28662. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28663. if esep {
  28664. dd.ReadMapElemKey()
  28665. }
  28666. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28667. if esep {
  28668. dd.ReadMapElemValue()
  28669. }
  28670. if dd.TryDecodeAsNil() {
  28671. if v == nil {
  28672. } else if d.h.DeleteOnNilMapValue {
  28673. delete(v, mk)
  28674. } else {
  28675. v[mk] = 0
  28676. }
  28677. continue
  28678. }
  28679. mv = dd.DecodeUint64()
  28680. if v != nil {
  28681. v[mk] = mv
  28682. }
  28683. }
  28684. dd.ReadMapEnd()
  28685. d.depthDecr()
  28686. return v, changed
  28687. }
  28688. func (d *Decoder) fastpathDecMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  28689. if rv.Kind() == reflect.Ptr {
  28690. vp := rv2i(rv).(*map[int8]uintptr)
  28691. v, changed := fastpathTV.DecMapInt8UintptrV(*vp, true, d)
  28692. if changed {
  28693. *vp = v
  28694. }
  28695. } else {
  28696. fastpathTV.DecMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), false, d)
  28697. }
  28698. }
  28699. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, d *Decoder) {
  28700. v, changed := f.DecMapInt8UintptrV(*vp, true, d)
  28701. if changed {
  28702. *vp = v
  28703. }
  28704. }
  28705. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, canChange bool,
  28706. d *Decoder) (_ map[int8]uintptr, changed bool) {
  28707. dd, esep := d.d, d.hh.hasElemSeparators()
  28708. containerLen := dd.ReadMapStart()
  28709. if canChange && v == nil {
  28710. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28711. v = make(map[int8]uintptr, xlen)
  28712. changed = true
  28713. }
  28714. if containerLen == 0 {
  28715. dd.ReadMapEnd()
  28716. return v, changed
  28717. }
  28718. d.depthIncr()
  28719. var mk int8
  28720. var mv uintptr
  28721. hasLen := containerLen > 0
  28722. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28723. if esep {
  28724. dd.ReadMapElemKey()
  28725. }
  28726. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28727. if esep {
  28728. dd.ReadMapElemValue()
  28729. }
  28730. if dd.TryDecodeAsNil() {
  28731. if v == nil {
  28732. } else if d.h.DeleteOnNilMapValue {
  28733. delete(v, mk)
  28734. } else {
  28735. v[mk] = 0
  28736. }
  28737. continue
  28738. }
  28739. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28740. if v != nil {
  28741. v[mk] = mv
  28742. }
  28743. }
  28744. dd.ReadMapEnd()
  28745. d.depthDecr()
  28746. return v, changed
  28747. }
  28748. func (d *Decoder) fastpathDecMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  28749. if rv.Kind() == reflect.Ptr {
  28750. vp := rv2i(rv).(*map[int8]int)
  28751. v, changed := fastpathTV.DecMapInt8IntV(*vp, true, d)
  28752. if changed {
  28753. *vp = v
  28754. }
  28755. } else {
  28756. fastpathTV.DecMapInt8IntV(rv2i(rv).(map[int8]int), false, d)
  28757. }
  28758. }
  28759. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, d *Decoder) {
  28760. v, changed := f.DecMapInt8IntV(*vp, true, d)
  28761. if changed {
  28762. *vp = v
  28763. }
  28764. }
  28765. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, canChange bool,
  28766. d *Decoder) (_ map[int8]int, changed bool) {
  28767. dd, esep := d.d, d.hh.hasElemSeparators()
  28768. containerLen := dd.ReadMapStart()
  28769. if canChange && v == nil {
  28770. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28771. v = make(map[int8]int, xlen)
  28772. changed = true
  28773. }
  28774. if containerLen == 0 {
  28775. dd.ReadMapEnd()
  28776. return v, changed
  28777. }
  28778. d.depthIncr()
  28779. var mk int8
  28780. var mv int
  28781. hasLen := containerLen > 0
  28782. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28783. if esep {
  28784. dd.ReadMapElemKey()
  28785. }
  28786. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28787. if esep {
  28788. dd.ReadMapElemValue()
  28789. }
  28790. if dd.TryDecodeAsNil() {
  28791. if v == nil {
  28792. } else if d.h.DeleteOnNilMapValue {
  28793. delete(v, mk)
  28794. } else {
  28795. v[mk] = 0
  28796. }
  28797. continue
  28798. }
  28799. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28800. if v != nil {
  28801. v[mk] = mv
  28802. }
  28803. }
  28804. dd.ReadMapEnd()
  28805. d.depthDecr()
  28806. return v, changed
  28807. }
  28808. func (d *Decoder) fastpathDecMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  28809. if rv.Kind() == reflect.Ptr {
  28810. vp := rv2i(rv).(*map[int8]int8)
  28811. v, changed := fastpathTV.DecMapInt8Int8V(*vp, true, d)
  28812. if changed {
  28813. *vp = v
  28814. }
  28815. } else {
  28816. fastpathTV.DecMapInt8Int8V(rv2i(rv).(map[int8]int8), false, d)
  28817. }
  28818. }
  28819. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, d *Decoder) {
  28820. v, changed := f.DecMapInt8Int8V(*vp, true, d)
  28821. if changed {
  28822. *vp = v
  28823. }
  28824. }
  28825. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, canChange bool,
  28826. d *Decoder) (_ map[int8]int8, changed bool) {
  28827. dd, esep := d.d, d.hh.hasElemSeparators()
  28828. containerLen := dd.ReadMapStart()
  28829. if canChange && v == nil {
  28830. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  28831. v = make(map[int8]int8, xlen)
  28832. changed = true
  28833. }
  28834. if containerLen == 0 {
  28835. dd.ReadMapEnd()
  28836. return v, changed
  28837. }
  28838. d.depthIncr()
  28839. var mk int8
  28840. var mv int8
  28841. hasLen := containerLen > 0
  28842. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28843. if esep {
  28844. dd.ReadMapElemKey()
  28845. }
  28846. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28847. if esep {
  28848. dd.ReadMapElemValue()
  28849. }
  28850. if dd.TryDecodeAsNil() {
  28851. if v == nil {
  28852. } else if d.h.DeleteOnNilMapValue {
  28853. delete(v, mk)
  28854. } else {
  28855. v[mk] = 0
  28856. }
  28857. continue
  28858. }
  28859. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28860. if v != nil {
  28861. v[mk] = mv
  28862. }
  28863. }
  28864. dd.ReadMapEnd()
  28865. d.depthDecr()
  28866. return v, changed
  28867. }
  28868. func (d *Decoder) fastpathDecMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  28869. if rv.Kind() == reflect.Ptr {
  28870. vp := rv2i(rv).(*map[int8]int16)
  28871. v, changed := fastpathTV.DecMapInt8Int16V(*vp, true, d)
  28872. if changed {
  28873. *vp = v
  28874. }
  28875. } else {
  28876. fastpathTV.DecMapInt8Int16V(rv2i(rv).(map[int8]int16), false, d)
  28877. }
  28878. }
  28879. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, d *Decoder) {
  28880. v, changed := f.DecMapInt8Int16V(*vp, true, d)
  28881. if changed {
  28882. *vp = v
  28883. }
  28884. }
  28885. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, canChange bool,
  28886. d *Decoder) (_ map[int8]int16, changed bool) {
  28887. dd, esep := d.d, d.hh.hasElemSeparators()
  28888. containerLen := dd.ReadMapStart()
  28889. if canChange && v == nil {
  28890. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  28891. v = make(map[int8]int16, xlen)
  28892. changed = true
  28893. }
  28894. if containerLen == 0 {
  28895. dd.ReadMapEnd()
  28896. return v, changed
  28897. }
  28898. d.depthIncr()
  28899. var mk int8
  28900. var mv int16
  28901. hasLen := containerLen > 0
  28902. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28903. if esep {
  28904. dd.ReadMapElemKey()
  28905. }
  28906. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28907. if esep {
  28908. dd.ReadMapElemValue()
  28909. }
  28910. if dd.TryDecodeAsNil() {
  28911. if v == nil {
  28912. } else if d.h.DeleteOnNilMapValue {
  28913. delete(v, mk)
  28914. } else {
  28915. v[mk] = 0
  28916. }
  28917. continue
  28918. }
  28919. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  28920. if v != nil {
  28921. v[mk] = mv
  28922. }
  28923. }
  28924. dd.ReadMapEnd()
  28925. d.depthDecr()
  28926. return v, changed
  28927. }
  28928. func (d *Decoder) fastpathDecMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  28929. if rv.Kind() == reflect.Ptr {
  28930. vp := rv2i(rv).(*map[int8]int32)
  28931. v, changed := fastpathTV.DecMapInt8Int32V(*vp, true, d)
  28932. if changed {
  28933. *vp = v
  28934. }
  28935. } else {
  28936. fastpathTV.DecMapInt8Int32V(rv2i(rv).(map[int8]int32), false, d)
  28937. }
  28938. }
  28939. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, d *Decoder) {
  28940. v, changed := f.DecMapInt8Int32V(*vp, true, d)
  28941. if changed {
  28942. *vp = v
  28943. }
  28944. }
  28945. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, canChange bool,
  28946. d *Decoder) (_ map[int8]int32, changed bool) {
  28947. dd, esep := d.d, d.hh.hasElemSeparators()
  28948. containerLen := dd.ReadMapStart()
  28949. if canChange && v == nil {
  28950. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28951. v = make(map[int8]int32, xlen)
  28952. changed = true
  28953. }
  28954. if containerLen == 0 {
  28955. dd.ReadMapEnd()
  28956. return v, changed
  28957. }
  28958. d.depthIncr()
  28959. var mk int8
  28960. var mv int32
  28961. hasLen := containerLen > 0
  28962. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28963. if esep {
  28964. dd.ReadMapElemKey()
  28965. }
  28966. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28967. if esep {
  28968. dd.ReadMapElemValue()
  28969. }
  28970. if dd.TryDecodeAsNil() {
  28971. if v == nil {
  28972. } else if d.h.DeleteOnNilMapValue {
  28973. delete(v, mk)
  28974. } else {
  28975. v[mk] = 0
  28976. }
  28977. continue
  28978. }
  28979. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  28980. if v != nil {
  28981. v[mk] = mv
  28982. }
  28983. }
  28984. dd.ReadMapEnd()
  28985. d.depthDecr()
  28986. return v, changed
  28987. }
  28988. func (d *Decoder) fastpathDecMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  28989. if rv.Kind() == reflect.Ptr {
  28990. vp := rv2i(rv).(*map[int8]int64)
  28991. v, changed := fastpathTV.DecMapInt8Int64V(*vp, true, d)
  28992. if changed {
  28993. *vp = v
  28994. }
  28995. } else {
  28996. fastpathTV.DecMapInt8Int64V(rv2i(rv).(map[int8]int64), false, d)
  28997. }
  28998. }
  28999. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, d *Decoder) {
  29000. v, changed := f.DecMapInt8Int64V(*vp, true, d)
  29001. if changed {
  29002. *vp = v
  29003. }
  29004. }
  29005. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, canChange bool,
  29006. d *Decoder) (_ map[int8]int64, changed bool) {
  29007. dd, esep := d.d, d.hh.hasElemSeparators()
  29008. containerLen := dd.ReadMapStart()
  29009. if canChange && v == nil {
  29010. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29011. v = make(map[int8]int64, xlen)
  29012. changed = true
  29013. }
  29014. if containerLen == 0 {
  29015. dd.ReadMapEnd()
  29016. return v, changed
  29017. }
  29018. d.depthIncr()
  29019. var mk int8
  29020. var mv int64
  29021. hasLen := containerLen > 0
  29022. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29023. if esep {
  29024. dd.ReadMapElemKey()
  29025. }
  29026. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29027. if esep {
  29028. dd.ReadMapElemValue()
  29029. }
  29030. if dd.TryDecodeAsNil() {
  29031. if v == nil {
  29032. } else if d.h.DeleteOnNilMapValue {
  29033. delete(v, mk)
  29034. } else {
  29035. v[mk] = 0
  29036. }
  29037. continue
  29038. }
  29039. mv = dd.DecodeInt64()
  29040. if v != nil {
  29041. v[mk] = mv
  29042. }
  29043. }
  29044. dd.ReadMapEnd()
  29045. d.depthDecr()
  29046. return v, changed
  29047. }
  29048. func (d *Decoder) fastpathDecMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  29049. if rv.Kind() == reflect.Ptr {
  29050. vp := rv2i(rv).(*map[int8]float32)
  29051. v, changed := fastpathTV.DecMapInt8Float32V(*vp, true, d)
  29052. if changed {
  29053. *vp = v
  29054. }
  29055. } else {
  29056. fastpathTV.DecMapInt8Float32V(rv2i(rv).(map[int8]float32), false, d)
  29057. }
  29058. }
  29059. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, d *Decoder) {
  29060. v, changed := f.DecMapInt8Float32V(*vp, true, d)
  29061. if changed {
  29062. *vp = v
  29063. }
  29064. }
  29065. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, canChange bool,
  29066. d *Decoder) (_ map[int8]float32, changed bool) {
  29067. dd, esep := d.d, d.hh.hasElemSeparators()
  29068. containerLen := dd.ReadMapStart()
  29069. if canChange && v == nil {
  29070. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  29071. v = make(map[int8]float32, xlen)
  29072. changed = true
  29073. }
  29074. if containerLen == 0 {
  29075. dd.ReadMapEnd()
  29076. return v, changed
  29077. }
  29078. d.depthIncr()
  29079. var mk int8
  29080. var mv float32
  29081. hasLen := containerLen > 0
  29082. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29083. if esep {
  29084. dd.ReadMapElemKey()
  29085. }
  29086. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29087. if esep {
  29088. dd.ReadMapElemValue()
  29089. }
  29090. if dd.TryDecodeAsNil() {
  29091. if v == nil {
  29092. } else if d.h.DeleteOnNilMapValue {
  29093. delete(v, mk)
  29094. } else {
  29095. v[mk] = 0
  29096. }
  29097. continue
  29098. }
  29099. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  29100. if v != nil {
  29101. v[mk] = mv
  29102. }
  29103. }
  29104. dd.ReadMapEnd()
  29105. d.depthDecr()
  29106. return v, changed
  29107. }
  29108. func (d *Decoder) fastpathDecMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  29109. if rv.Kind() == reflect.Ptr {
  29110. vp := rv2i(rv).(*map[int8]float64)
  29111. v, changed := fastpathTV.DecMapInt8Float64V(*vp, true, d)
  29112. if changed {
  29113. *vp = v
  29114. }
  29115. } else {
  29116. fastpathTV.DecMapInt8Float64V(rv2i(rv).(map[int8]float64), false, d)
  29117. }
  29118. }
  29119. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, d *Decoder) {
  29120. v, changed := f.DecMapInt8Float64V(*vp, true, d)
  29121. if changed {
  29122. *vp = v
  29123. }
  29124. }
  29125. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, canChange bool,
  29126. d *Decoder) (_ map[int8]float64, changed bool) {
  29127. dd, esep := d.d, d.hh.hasElemSeparators()
  29128. containerLen := dd.ReadMapStart()
  29129. if canChange && v == nil {
  29130. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29131. v = make(map[int8]float64, xlen)
  29132. changed = true
  29133. }
  29134. if containerLen == 0 {
  29135. dd.ReadMapEnd()
  29136. return v, changed
  29137. }
  29138. d.depthIncr()
  29139. var mk int8
  29140. var mv float64
  29141. hasLen := containerLen > 0
  29142. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29143. if esep {
  29144. dd.ReadMapElemKey()
  29145. }
  29146. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29147. if esep {
  29148. dd.ReadMapElemValue()
  29149. }
  29150. if dd.TryDecodeAsNil() {
  29151. if v == nil {
  29152. } else if d.h.DeleteOnNilMapValue {
  29153. delete(v, mk)
  29154. } else {
  29155. v[mk] = 0
  29156. }
  29157. continue
  29158. }
  29159. mv = dd.DecodeFloat64()
  29160. if v != nil {
  29161. v[mk] = mv
  29162. }
  29163. }
  29164. dd.ReadMapEnd()
  29165. d.depthDecr()
  29166. return v, changed
  29167. }
  29168. func (d *Decoder) fastpathDecMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  29169. if rv.Kind() == reflect.Ptr {
  29170. vp := rv2i(rv).(*map[int8]bool)
  29171. v, changed := fastpathTV.DecMapInt8BoolV(*vp, true, d)
  29172. if changed {
  29173. *vp = v
  29174. }
  29175. } else {
  29176. fastpathTV.DecMapInt8BoolV(rv2i(rv).(map[int8]bool), false, d)
  29177. }
  29178. }
  29179. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, d *Decoder) {
  29180. v, changed := f.DecMapInt8BoolV(*vp, true, d)
  29181. if changed {
  29182. *vp = v
  29183. }
  29184. }
  29185. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, canChange bool,
  29186. d *Decoder) (_ map[int8]bool, changed bool) {
  29187. dd, esep := d.d, d.hh.hasElemSeparators()
  29188. containerLen := dd.ReadMapStart()
  29189. if canChange && v == nil {
  29190. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  29191. v = make(map[int8]bool, xlen)
  29192. changed = true
  29193. }
  29194. if containerLen == 0 {
  29195. dd.ReadMapEnd()
  29196. return v, changed
  29197. }
  29198. d.depthIncr()
  29199. var mk int8
  29200. var mv bool
  29201. hasLen := containerLen > 0
  29202. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29203. if esep {
  29204. dd.ReadMapElemKey()
  29205. }
  29206. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29207. if esep {
  29208. dd.ReadMapElemValue()
  29209. }
  29210. if dd.TryDecodeAsNil() {
  29211. if v == nil {
  29212. } else if d.h.DeleteOnNilMapValue {
  29213. delete(v, mk)
  29214. } else {
  29215. v[mk] = false
  29216. }
  29217. continue
  29218. }
  29219. mv = dd.DecodeBool()
  29220. if v != nil {
  29221. v[mk] = mv
  29222. }
  29223. }
  29224. dd.ReadMapEnd()
  29225. d.depthDecr()
  29226. return v, changed
  29227. }
  29228. func (d *Decoder) fastpathDecMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  29229. if rv.Kind() == reflect.Ptr {
  29230. vp := rv2i(rv).(*map[int16]interface{})
  29231. v, changed := fastpathTV.DecMapInt16IntfV(*vp, true, d)
  29232. if changed {
  29233. *vp = v
  29234. }
  29235. } else {
  29236. fastpathTV.DecMapInt16IntfV(rv2i(rv).(map[int16]interface{}), false, d)
  29237. }
  29238. }
  29239. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, d *Decoder) {
  29240. v, changed := f.DecMapInt16IntfV(*vp, true, d)
  29241. if changed {
  29242. *vp = v
  29243. }
  29244. }
  29245. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, canChange bool,
  29246. d *Decoder) (_ map[int16]interface{}, changed bool) {
  29247. dd, esep := d.d, d.hh.hasElemSeparators()
  29248. containerLen := dd.ReadMapStart()
  29249. if canChange && v == nil {
  29250. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  29251. v = make(map[int16]interface{}, xlen)
  29252. changed = true
  29253. }
  29254. if containerLen == 0 {
  29255. dd.ReadMapEnd()
  29256. return v, changed
  29257. }
  29258. d.depthIncr()
  29259. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  29260. var mk int16
  29261. var mv interface{}
  29262. hasLen := containerLen > 0
  29263. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29264. if esep {
  29265. dd.ReadMapElemKey()
  29266. }
  29267. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29268. if esep {
  29269. dd.ReadMapElemValue()
  29270. }
  29271. if dd.TryDecodeAsNil() {
  29272. if v == nil {
  29273. } else if d.h.DeleteOnNilMapValue {
  29274. delete(v, mk)
  29275. } else {
  29276. v[mk] = nil
  29277. }
  29278. continue
  29279. }
  29280. if mapGet {
  29281. mv = v[mk]
  29282. } else {
  29283. mv = nil
  29284. }
  29285. d.decode(&mv)
  29286. if v != nil {
  29287. v[mk] = mv
  29288. }
  29289. }
  29290. dd.ReadMapEnd()
  29291. d.depthDecr()
  29292. return v, changed
  29293. }
  29294. func (d *Decoder) fastpathDecMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  29295. if rv.Kind() == reflect.Ptr {
  29296. vp := rv2i(rv).(*map[int16]string)
  29297. v, changed := fastpathTV.DecMapInt16StringV(*vp, true, d)
  29298. if changed {
  29299. *vp = v
  29300. }
  29301. } else {
  29302. fastpathTV.DecMapInt16StringV(rv2i(rv).(map[int16]string), false, d)
  29303. }
  29304. }
  29305. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, d *Decoder) {
  29306. v, changed := f.DecMapInt16StringV(*vp, true, d)
  29307. if changed {
  29308. *vp = v
  29309. }
  29310. }
  29311. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, canChange bool,
  29312. d *Decoder) (_ map[int16]string, changed bool) {
  29313. dd, esep := d.d, d.hh.hasElemSeparators()
  29314. containerLen := dd.ReadMapStart()
  29315. if canChange && v == nil {
  29316. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  29317. v = make(map[int16]string, xlen)
  29318. changed = true
  29319. }
  29320. if containerLen == 0 {
  29321. dd.ReadMapEnd()
  29322. return v, changed
  29323. }
  29324. d.depthIncr()
  29325. var mk int16
  29326. var mv string
  29327. hasLen := containerLen > 0
  29328. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29329. if esep {
  29330. dd.ReadMapElemKey()
  29331. }
  29332. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29333. if esep {
  29334. dd.ReadMapElemValue()
  29335. }
  29336. if dd.TryDecodeAsNil() {
  29337. if v == nil {
  29338. } else if d.h.DeleteOnNilMapValue {
  29339. delete(v, mk)
  29340. } else {
  29341. v[mk] = ""
  29342. }
  29343. continue
  29344. }
  29345. mv = dd.DecodeString()
  29346. if v != nil {
  29347. v[mk] = mv
  29348. }
  29349. }
  29350. dd.ReadMapEnd()
  29351. d.depthDecr()
  29352. return v, changed
  29353. }
  29354. func (d *Decoder) fastpathDecMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  29355. if rv.Kind() == reflect.Ptr {
  29356. vp := rv2i(rv).(*map[int16]uint)
  29357. v, changed := fastpathTV.DecMapInt16UintV(*vp, true, d)
  29358. if changed {
  29359. *vp = v
  29360. }
  29361. } else {
  29362. fastpathTV.DecMapInt16UintV(rv2i(rv).(map[int16]uint), false, d)
  29363. }
  29364. }
  29365. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, d *Decoder) {
  29366. v, changed := f.DecMapInt16UintV(*vp, true, d)
  29367. if changed {
  29368. *vp = v
  29369. }
  29370. }
  29371. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, canChange bool,
  29372. d *Decoder) (_ map[int16]uint, changed bool) {
  29373. dd, esep := d.d, d.hh.hasElemSeparators()
  29374. containerLen := dd.ReadMapStart()
  29375. if canChange && v == nil {
  29376. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29377. v = make(map[int16]uint, xlen)
  29378. changed = true
  29379. }
  29380. if containerLen == 0 {
  29381. dd.ReadMapEnd()
  29382. return v, changed
  29383. }
  29384. d.depthIncr()
  29385. var mk int16
  29386. var mv uint
  29387. hasLen := containerLen > 0
  29388. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29389. if esep {
  29390. dd.ReadMapElemKey()
  29391. }
  29392. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29393. if esep {
  29394. dd.ReadMapElemValue()
  29395. }
  29396. if dd.TryDecodeAsNil() {
  29397. if v == nil {
  29398. } else if d.h.DeleteOnNilMapValue {
  29399. delete(v, mk)
  29400. } else {
  29401. v[mk] = 0
  29402. }
  29403. continue
  29404. }
  29405. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  29406. if v != nil {
  29407. v[mk] = mv
  29408. }
  29409. }
  29410. dd.ReadMapEnd()
  29411. d.depthDecr()
  29412. return v, changed
  29413. }
  29414. func (d *Decoder) fastpathDecMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  29415. if rv.Kind() == reflect.Ptr {
  29416. vp := rv2i(rv).(*map[int16]uint8)
  29417. v, changed := fastpathTV.DecMapInt16Uint8V(*vp, true, d)
  29418. if changed {
  29419. *vp = v
  29420. }
  29421. } else {
  29422. fastpathTV.DecMapInt16Uint8V(rv2i(rv).(map[int16]uint8), false, d)
  29423. }
  29424. }
  29425. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, d *Decoder) {
  29426. v, changed := f.DecMapInt16Uint8V(*vp, true, d)
  29427. if changed {
  29428. *vp = v
  29429. }
  29430. }
  29431. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, canChange bool,
  29432. d *Decoder) (_ map[int16]uint8, changed bool) {
  29433. dd, esep := d.d, d.hh.hasElemSeparators()
  29434. containerLen := dd.ReadMapStart()
  29435. if canChange && v == nil {
  29436. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29437. v = make(map[int16]uint8, xlen)
  29438. changed = true
  29439. }
  29440. if containerLen == 0 {
  29441. dd.ReadMapEnd()
  29442. return v, changed
  29443. }
  29444. d.depthIncr()
  29445. var mk int16
  29446. var mv uint8
  29447. hasLen := containerLen > 0
  29448. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29449. if esep {
  29450. dd.ReadMapElemKey()
  29451. }
  29452. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29453. if esep {
  29454. dd.ReadMapElemValue()
  29455. }
  29456. if dd.TryDecodeAsNil() {
  29457. if v == nil {
  29458. } else if d.h.DeleteOnNilMapValue {
  29459. delete(v, mk)
  29460. } else {
  29461. v[mk] = 0
  29462. }
  29463. continue
  29464. }
  29465. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  29466. if v != nil {
  29467. v[mk] = mv
  29468. }
  29469. }
  29470. dd.ReadMapEnd()
  29471. d.depthDecr()
  29472. return v, changed
  29473. }
  29474. func (d *Decoder) fastpathDecMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  29475. if rv.Kind() == reflect.Ptr {
  29476. vp := rv2i(rv).(*map[int16]uint16)
  29477. v, changed := fastpathTV.DecMapInt16Uint16V(*vp, true, d)
  29478. if changed {
  29479. *vp = v
  29480. }
  29481. } else {
  29482. fastpathTV.DecMapInt16Uint16V(rv2i(rv).(map[int16]uint16), false, d)
  29483. }
  29484. }
  29485. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, d *Decoder) {
  29486. v, changed := f.DecMapInt16Uint16V(*vp, true, d)
  29487. if changed {
  29488. *vp = v
  29489. }
  29490. }
  29491. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, canChange bool,
  29492. d *Decoder) (_ map[int16]uint16, changed bool) {
  29493. dd, esep := d.d, d.hh.hasElemSeparators()
  29494. containerLen := dd.ReadMapStart()
  29495. if canChange && v == nil {
  29496. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  29497. v = make(map[int16]uint16, xlen)
  29498. changed = true
  29499. }
  29500. if containerLen == 0 {
  29501. dd.ReadMapEnd()
  29502. return v, changed
  29503. }
  29504. d.depthIncr()
  29505. var mk int16
  29506. var mv uint16
  29507. hasLen := containerLen > 0
  29508. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29509. if esep {
  29510. dd.ReadMapElemKey()
  29511. }
  29512. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29513. if esep {
  29514. dd.ReadMapElemValue()
  29515. }
  29516. if dd.TryDecodeAsNil() {
  29517. if v == nil {
  29518. } else if d.h.DeleteOnNilMapValue {
  29519. delete(v, mk)
  29520. } else {
  29521. v[mk] = 0
  29522. }
  29523. continue
  29524. }
  29525. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  29526. if v != nil {
  29527. v[mk] = mv
  29528. }
  29529. }
  29530. dd.ReadMapEnd()
  29531. d.depthDecr()
  29532. return v, changed
  29533. }
  29534. func (d *Decoder) fastpathDecMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  29535. if rv.Kind() == reflect.Ptr {
  29536. vp := rv2i(rv).(*map[int16]uint32)
  29537. v, changed := fastpathTV.DecMapInt16Uint32V(*vp, true, d)
  29538. if changed {
  29539. *vp = v
  29540. }
  29541. } else {
  29542. fastpathTV.DecMapInt16Uint32V(rv2i(rv).(map[int16]uint32), false, d)
  29543. }
  29544. }
  29545. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, d *Decoder) {
  29546. v, changed := f.DecMapInt16Uint32V(*vp, true, d)
  29547. if changed {
  29548. *vp = v
  29549. }
  29550. }
  29551. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, canChange bool,
  29552. d *Decoder) (_ map[int16]uint32, changed bool) {
  29553. dd, esep := d.d, d.hh.hasElemSeparators()
  29554. containerLen := dd.ReadMapStart()
  29555. if canChange && v == nil {
  29556. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  29557. v = make(map[int16]uint32, xlen)
  29558. changed = true
  29559. }
  29560. if containerLen == 0 {
  29561. dd.ReadMapEnd()
  29562. return v, changed
  29563. }
  29564. d.depthIncr()
  29565. var mk int16
  29566. var mv uint32
  29567. hasLen := containerLen > 0
  29568. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29569. if esep {
  29570. dd.ReadMapElemKey()
  29571. }
  29572. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29573. if esep {
  29574. dd.ReadMapElemValue()
  29575. }
  29576. if dd.TryDecodeAsNil() {
  29577. if v == nil {
  29578. } else if d.h.DeleteOnNilMapValue {
  29579. delete(v, mk)
  29580. } else {
  29581. v[mk] = 0
  29582. }
  29583. continue
  29584. }
  29585. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  29586. if v != nil {
  29587. v[mk] = mv
  29588. }
  29589. }
  29590. dd.ReadMapEnd()
  29591. d.depthDecr()
  29592. return v, changed
  29593. }
  29594. func (d *Decoder) fastpathDecMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  29595. if rv.Kind() == reflect.Ptr {
  29596. vp := rv2i(rv).(*map[int16]uint64)
  29597. v, changed := fastpathTV.DecMapInt16Uint64V(*vp, true, d)
  29598. if changed {
  29599. *vp = v
  29600. }
  29601. } else {
  29602. fastpathTV.DecMapInt16Uint64V(rv2i(rv).(map[int16]uint64), false, d)
  29603. }
  29604. }
  29605. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, d *Decoder) {
  29606. v, changed := f.DecMapInt16Uint64V(*vp, true, d)
  29607. if changed {
  29608. *vp = v
  29609. }
  29610. }
  29611. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, canChange bool,
  29612. d *Decoder) (_ map[int16]uint64, changed bool) {
  29613. dd, esep := d.d, d.hh.hasElemSeparators()
  29614. containerLen := dd.ReadMapStart()
  29615. if canChange && v == nil {
  29616. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29617. v = make(map[int16]uint64, xlen)
  29618. changed = true
  29619. }
  29620. if containerLen == 0 {
  29621. dd.ReadMapEnd()
  29622. return v, changed
  29623. }
  29624. d.depthIncr()
  29625. var mk int16
  29626. var mv uint64
  29627. hasLen := containerLen > 0
  29628. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29629. if esep {
  29630. dd.ReadMapElemKey()
  29631. }
  29632. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29633. if esep {
  29634. dd.ReadMapElemValue()
  29635. }
  29636. if dd.TryDecodeAsNil() {
  29637. if v == nil {
  29638. } else if d.h.DeleteOnNilMapValue {
  29639. delete(v, mk)
  29640. } else {
  29641. v[mk] = 0
  29642. }
  29643. continue
  29644. }
  29645. mv = dd.DecodeUint64()
  29646. if v != nil {
  29647. v[mk] = mv
  29648. }
  29649. }
  29650. dd.ReadMapEnd()
  29651. d.depthDecr()
  29652. return v, changed
  29653. }
  29654. func (d *Decoder) fastpathDecMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  29655. if rv.Kind() == reflect.Ptr {
  29656. vp := rv2i(rv).(*map[int16]uintptr)
  29657. v, changed := fastpathTV.DecMapInt16UintptrV(*vp, true, d)
  29658. if changed {
  29659. *vp = v
  29660. }
  29661. } else {
  29662. fastpathTV.DecMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), false, d)
  29663. }
  29664. }
  29665. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, d *Decoder) {
  29666. v, changed := f.DecMapInt16UintptrV(*vp, true, d)
  29667. if changed {
  29668. *vp = v
  29669. }
  29670. }
  29671. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, canChange bool,
  29672. d *Decoder) (_ map[int16]uintptr, changed bool) {
  29673. dd, esep := d.d, d.hh.hasElemSeparators()
  29674. containerLen := dd.ReadMapStart()
  29675. if canChange && v == nil {
  29676. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29677. v = make(map[int16]uintptr, xlen)
  29678. changed = true
  29679. }
  29680. if containerLen == 0 {
  29681. dd.ReadMapEnd()
  29682. return v, changed
  29683. }
  29684. d.depthIncr()
  29685. var mk int16
  29686. var mv uintptr
  29687. hasLen := containerLen > 0
  29688. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29689. if esep {
  29690. dd.ReadMapElemKey()
  29691. }
  29692. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29693. if esep {
  29694. dd.ReadMapElemValue()
  29695. }
  29696. if dd.TryDecodeAsNil() {
  29697. if v == nil {
  29698. } else if d.h.DeleteOnNilMapValue {
  29699. delete(v, mk)
  29700. } else {
  29701. v[mk] = 0
  29702. }
  29703. continue
  29704. }
  29705. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  29706. if v != nil {
  29707. v[mk] = mv
  29708. }
  29709. }
  29710. dd.ReadMapEnd()
  29711. d.depthDecr()
  29712. return v, changed
  29713. }
  29714. func (d *Decoder) fastpathDecMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  29715. if rv.Kind() == reflect.Ptr {
  29716. vp := rv2i(rv).(*map[int16]int)
  29717. v, changed := fastpathTV.DecMapInt16IntV(*vp, true, d)
  29718. if changed {
  29719. *vp = v
  29720. }
  29721. } else {
  29722. fastpathTV.DecMapInt16IntV(rv2i(rv).(map[int16]int), false, d)
  29723. }
  29724. }
  29725. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, d *Decoder) {
  29726. v, changed := f.DecMapInt16IntV(*vp, true, d)
  29727. if changed {
  29728. *vp = v
  29729. }
  29730. }
  29731. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, canChange bool,
  29732. d *Decoder) (_ map[int16]int, changed bool) {
  29733. dd, esep := d.d, d.hh.hasElemSeparators()
  29734. containerLen := dd.ReadMapStart()
  29735. if canChange && v == nil {
  29736. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29737. v = make(map[int16]int, xlen)
  29738. changed = true
  29739. }
  29740. if containerLen == 0 {
  29741. dd.ReadMapEnd()
  29742. return v, changed
  29743. }
  29744. d.depthIncr()
  29745. var mk int16
  29746. var mv int
  29747. hasLen := containerLen > 0
  29748. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29749. if esep {
  29750. dd.ReadMapElemKey()
  29751. }
  29752. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29753. if esep {
  29754. dd.ReadMapElemValue()
  29755. }
  29756. if dd.TryDecodeAsNil() {
  29757. if v == nil {
  29758. } else if d.h.DeleteOnNilMapValue {
  29759. delete(v, mk)
  29760. } else {
  29761. v[mk] = 0
  29762. }
  29763. continue
  29764. }
  29765. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29766. if v != nil {
  29767. v[mk] = mv
  29768. }
  29769. }
  29770. dd.ReadMapEnd()
  29771. d.depthDecr()
  29772. return v, changed
  29773. }
  29774. func (d *Decoder) fastpathDecMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  29775. if rv.Kind() == reflect.Ptr {
  29776. vp := rv2i(rv).(*map[int16]int8)
  29777. v, changed := fastpathTV.DecMapInt16Int8V(*vp, true, d)
  29778. if changed {
  29779. *vp = v
  29780. }
  29781. } else {
  29782. fastpathTV.DecMapInt16Int8V(rv2i(rv).(map[int16]int8), false, d)
  29783. }
  29784. }
  29785. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, d *Decoder) {
  29786. v, changed := f.DecMapInt16Int8V(*vp, true, d)
  29787. if changed {
  29788. *vp = v
  29789. }
  29790. }
  29791. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, canChange bool,
  29792. d *Decoder) (_ map[int16]int8, changed bool) {
  29793. dd, esep := d.d, d.hh.hasElemSeparators()
  29794. containerLen := dd.ReadMapStart()
  29795. if canChange && v == nil {
  29796. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29797. v = make(map[int16]int8, xlen)
  29798. changed = true
  29799. }
  29800. if containerLen == 0 {
  29801. dd.ReadMapEnd()
  29802. return v, changed
  29803. }
  29804. d.depthIncr()
  29805. var mk int16
  29806. var mv int8
  29807. hasLen := containerLen > 0
  29808. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29809. if esep {
  29810. dd.ReadMapElemKey()
  29811. }
  29812. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29813. if esep {
  29814. dd.ReadMapElemValue()
  29815. }
  29816. if dd.TryDecodeAsNil() {
  29817. if v == nil {
  29818. } else if d.h.DeleteOnNilMapValue {
  29819. delete(v, mk)
  29820. } else {
  29821. v[mk] = 0
  29822. }
  29823. continue
  29824. }
  29825. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29826. if v != nil {
  29827. v[mk] = mv
  29828. }
  29829. }
  29830. dd.ReadMapEnd()
  29831. d.depthDecr()
  29832. return v, changed
  29833. }
  29834. func (d *Decoder) fastpathDecMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  29835. if rv.Kind() == reflect.Ptr {
  29836. vp := rv2i(rv).(*map[int16]int16)
  29837. v, changed := fastpathTV.DecMapInt16Int16V(*vp, true, d)
  29838. if changed {
  29839. *vp = v
  29840. }
  29841. } else {
  29842. fastpathTV.DecMapInt16Int16V(rv2i(rv).(map[int16]int16), false, d)
  29843. }
  29844. }
  29845. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, d *Decoder) {
  29846. v, changed := f.DecMapInt16Int16V(*vp, true, d)
  29847. if changed {
  29848. *vp = v
  29849. }
  29850. }
  29851. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, canChange bool,
  29852. d *Decoder) (_ map[int16]int16, changed bool) {
  29853. dd, esep := d.d, d.hh.hasElemSeparators()
  29854. containerLen := dd.ReadMapStart()
  29855. if canChange && v == nil {
  29856. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  29857. v = make(map[int16]int16, xlen)
  29858. changed = true
  29859. }
  29860. if containerLen == 0 {
  29861. dd.ReadMapEnd()
  29862. return v, changed
  29863. }
  29864. d.depthIncr()
  29865. var mk int16
  29866. var mv int16
  29867. hasLen := containerLen > 0
  29868. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29869. if esep {
  29870. dd.ReadMapElemKey()
  29871. }
  29872. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29873. if esep {
  29874. dd.ReadMapElemValue()
  29875. }
  29876. if dd.TryDecodeAsNil() {
  29877. if v == nil {
  29878. } else if d.h.DeleteOnNilMapValue {
  29879. delete(v, mk)
  29880. } else {
  29881. v[mk] = 0
  29882. }
  29883. continue
  29884. }
  29885. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29886. if v != nil {
  29887. v[mk] = mv
  29888. }
  29889. }
  29890. dd.ReadMapEnd()
  29891. d.depthDecr()
  29892. return v, changed
  29893. }
  29894. func (d *Decoder) fastpathDecMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  29895. if rv.Kind() == reflect.Ptr {
  29896. vp := rv2i(rv).(*map[int16]int32)
  29897. v, changed := fastpathTV.DecMapInt16Int32V(*vp, true, d)
  29898. if changed {
  29899. *vp = v
  29900. }
  29901. } else {
  29902. fastpathTV.DecMapInt16Int32V(rv2i(rv).(map[int16]int32), false, d)
  29903. }
  29904. }
  29905. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, d *Decoder) {
  29906. v, changed := f.DecMapInt16Int32V(*vp, true, d)
  29907. if changed {
  29908. *vp = v
  29909. }
  29910. }
  29911. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, canChange bool,
  29912. d *Decoder) (_ map[int16]int32, changed bool) {
  29913. dd, esep := d.d, d.hh.hasElemSeparators()
  29914. containerLen := dd.ReadMapStart()
  29915. if canChange && v == nil {
  29916. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  29917. v = make(map[int16]int32, xlen)
  29918. changed = true
  29919. }
  29920. if containerLen == 0 {
  29921. dd.ReadMapEnd()
  29922. return v, changed
  29923. }
  29924. d.depthIncr()
  29925. var mk int16
  29926. var mv int32
  29927. hasLen := containerLen > 0
  29928. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29929. if esep {
  29930. dd.ReadMapElemKey()
  29931. }
  29932. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29933. if esep {
  29934. dd.ReadMapElemValue()
  29935. }
  29936. if dd.TryDecodeAsNil() {
  29937. if v == nil {
  29938. } else if d.h.DeleteOnNilMapValue {
  29939. delete(v, mk)
  29940. } else {
  29941. v[mk] = 0
  29942. }
  29943. continue
  29944. }
  29945. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  29946. if v != nil {
  29947. v[mk] = mv
  29948. }
  29949. }
  29950. dd.ReadMapEnd()
  29951. d.depthDecr()
  29952. return v, changed
  29953. }
  29954. func (d *Decoder) fastpathDecMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  29955. if rv.Kind() == reflect.Ptr {
  29956. vp := rv2i(rv).(*map[int16]int64)
  29957. v, changed := fastpathTV.DecMapInt16Int64V(*vp, true, d)
  29958. if changed {
  29959. *vp = v
  29960. }
  29961. } else {
  29962. fastpathTV.DecMapInt16Int64V(rv2i(rv).(map[int16]int64), false, d)
  29963. }
  29964. }
  29965. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, d *Decoder) {
  29966. v, changed := f.DecMapInt16Int64V(*vp, true, d)
  29967. if changed {
  29968. *vp = v
  29969. }
  29970. }
  29971. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, canChange bool,
  29972. d *Decoder) (_ map[int16]int64, changed bool) {
  29973. dd, esep := d.d, d.hh.hasElemSeparators()
  29974. containerLen := dd.ReadMapStart()
  29975. if canChange && v == nil {
  29976. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29977. v = make(map[int16]int64, xlen)
  29978. changed = true
  29979. }
  29980. if containerLen == 0 {
  29981. dd.ReadMapEnd()
  29982. return v, changed
  29983. }
  29984. d.depthIncr()
  29985. var mk int16
  29986. var mv int64
  29987. hasLen := containerLen > 0
  29988. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29989. if esep {
  29990. dd.ReadMapElemKey()
  29991. }
  29992. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29993. if esep {
  29994. dd.ReadMapElemValue()
  29995. }
  29996. if dd.TryDecodeAsNil() {
  29997. if v == nil {
  29998. } else if d.h.DeleteOnNilMapValue {
  29999. delete(v, mk)
  30000. } else {
  30001. v[mk] = 0
  30002. }
  30003. continue
  30004. }
  30005. mv = dd.DecodeInt64()
  30006. if v != nil {
  30007. v[mk] = mv
  30008. }
  30009. }
  30010. dd.ReadMapEnd()
  30011. d.depthDecr()
  30012. return v, changed
  30013. }
  30014. func (d *Decoder) fastpathDecMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  30015. if rv.Kind() == reflect.Ptr {
  30016. vp := rv2i(rv).(*map[int16]float32)
  30017. v, changed := fastpathTV.DecMapInt16Float32V(*vp, true, d)
  30018. if changed {
  30019. *vp = v
  30020. }
  30021. } else {
  30022. fastpathTV.DecMapInt16Float32V(rv2i(rv).(map[int16]float32), false, d)
  30023. }
  30024. }
  30025. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, d *Decoder) {
  30026. v, changed := f.DecMapInt16Float32V(*vp, true, d)
  30027. if changed {
  30028. *vp = v
  30029. }
  30030. }
  30031. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, canChange bool,
  30032. d *Decoder) (_ map[int16]float32, changed bool) {
  30033. dd, esep := d.d, d.hh.hasElemSeparators()
  30034. containerLen := dd.ReadMapStart()
  30035. if canChange && v == nil {
  30036. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  30037. v = make(map[int16]float32, xlen)
  30038. changed = true
  30039. }
  30040. if containerLen == 0 {
  30041. dd.ReadMapEnd()
  30042. return v, changed
  30043. }
  30044. d.depthIncr()
  30045. var mk int16
  30046. var mv float32
  30047. hasLen := containerLen > 0
  30048. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30049. if esep {
  30050. dd.ReadMapElemKey()
  30051. }
  30052. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30053. if esep {
  30054. dd.ReadMapElemValue()
  30055. }
  30056. if dd.TryDecodeAsNil() {
  30057. if v == nil {
  30058. } else if d.h.DeleteOnNilMapValue {
  30059. delete(v, mk)
  30060. } else {
  30061. v[mk] = 0
  30062. }
  30063. continue
  30064. }
  30065. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  30066. if v != nil {
  30067. v[mk] = mv
  30068. }
  30069. }
  30070. dd.ReadMapEnd()
  30071. d.depthDecr()
  30072. return v, changed
  30073. }
  30074. func (d *Decoder) fastpathDecMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  30075. if rv.Kind() == reflect.Ptr {
  30076. vp := rv2i(rv).(*map[int16]float64)
  30077. v, changed := fastpathTV.DecMapInt16Float64V(*vp, true, d)
  30078. if changed {
  30079. *vp = v
  30080. }
  30081. } else {
  30082. fastpathTV.DecMapInt16Float64V(rv2i(rv).(map[int16]float64), false, d)
  30083. }
  30084. }
  30085. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, d *Decoder) {
  30086. v, changed := f.DecMapInt16Float64V(*vp, true, d)
  30087. if changed {
  30088. *vp = v
  30089. }
  30090. }
  30091. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, canChange bool,
  30092. d *Decoder) (_ map[int16]float64, changed bool) {
  30093. dd, esep := d.d, d.hh.hasElemSeparators()
  30094. containerLen := dd.ReadMapStart()
  30095. if canChange && v == nil {
  30096. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30097. v = make(map[int16]float64, xlen)
  30098. changed = true
  30099. }
  30100. if containerLen == 0 {
  30101. dd.ReadMapEnd()
  30102. return v, changed
  30103. }
  30104. d.depthIncr()
  30105. var mk int16
  30106. var mv float64
  30107. hasLen := containerLen > 0
  30108. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30109. if esep {
  30110. dd.ReadMapElemKey()
  30111. }
  30112. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30113. if esep {
  30114. dd.ReadMapElemValue()
  30115. }
  30116. if dd.TryDecodeAsNil() {
  30117. if v == nil {
  30118. } else if d.h.DeleteOnNilMapValue {
  30119. delete(v, mk)
  30120. } else {
  30121. v[mk] = 0
  30122. }
  30123. continue
  30124. }
  30125. mv = dd.DecodeFloat64()
  30126. if v != nil {
  30127. v[mk] = mv
  30128. }
  30129. }
  30130. dd.ReadMapEnd()
  30131. d.depthDecr()
  30132. return v, changed
  30133. }
  30134. func (d *Decoder) fastpathDecMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  30135. if rv.Kind() == reflect.Ptr {
  30136. vp := rv2i(rv).(*map[int16]bool)
  30137. v, changed := fastpathTV.DecMapInt16BoolV(*vp, true, d)
  30138. if changed {
  30139. *vp = v
  30140. }
  30141. } else {
  30142. fastpathTV.DecMapInt16BoolV(rv2i(rv).(map[int16]bool), false, d)
  30143. }
  30144. }
  30145. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, d *Decoder) {
  30146. v, changed := f.DecMapInt16BoolV(*vp, true, d)
  30147. if changed {
  30148. *vp = v
  30149. }
  30150. }
  30151. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, canChange bool,
  30152. d *Decoder) (_ map[int16]bool, changed bool) {
  30153. dd, esep := d.d, d.hh.hasElemSeparators()
  30154. containerLen := dd.ReadMapStart()
  30155. if canChange && v == nil {
  30156. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30157. v = make(map[int16]bool, xlen)
  30158. changed = true
  30159. }
  30160. if containerLen == 0 {
  30161. dd.ReadMapEnd()
  30162. return v, changed
  30163. }
  30164. d.depthIncr()
  30165. var mk int16
  30166. var mv bool
  30167. hasLen := containerLen > 0
  30168. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30169. if esep {
  30170. dd.ReadMapElemKey()
  30171. }
  30172. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30173. if esep {
  30174. dd.ReadMapElemValue()
  30175. }
  30176. if dd.TryDecodeAsNil() {
  30177. if v == nil {
  30178. } else if d.h.DeleteOnNilMapValue {
  30179. delete(v, mk)
  30180. } else {
  30181. v[mk] = false
  30182. }
  30183. continue
  30184. }
  30185. mv = dd.DecodeBool()
  30186. if v != nil {
  30187. v[mk] = mv
  30188. }
  30189. }
  30190. dd.ReadMapEnd()
  30191. d.depthDecr()
  30192. return v, changed
  30193. }
  30194. func (d *Decoder) fastpathDecMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  30195. if rv.Kind() == reflect.Ptr {
  30196. vp := rv2i(rv).(*map[int32]interface{})
  30197. v, changed := fastpathTV.DecMapInt32IntfV(*vp, true, d)
  30198. if changed {
  30199. *vp = v
  30200. }
  30201. } else {
  30202. fastpathTV.DecMapInt32IntfV(rv2i(rv).(map[int32]interface{}), false, d)
  30203. }
  30204. }
  30205. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, d *Decoder) {
  30206. v, changed := f.DecMapInt32IntfV(*vp, true, d)
  30207. if changed {
  30208. *vp = v
  30209. }
  30210. }
  30211. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, canChange bool,
  30212. d *Decoder) (_ map[int32]interface{}, changed bool) {
  30213. dd, esep := d.d, d.hh.hasElemSeparators()
  30214. containerLen := dd.ReadMapStart()
  30215. if canChange && v == nil {
  30216. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  30217. v = make(map[int32]interface{}, xlen)
  30218. changed = true
  30219. }
  30220. if containerLen == 0 {
  30221. dd.ReadMapEnd()
  30222. return v, changed
  30223. }
  30224. d.depthIncr()
  30225. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  30226. var mk int32
  30227. var mv interface{}
  30228. hasLen := containerLen > 0
  30229. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30230. if esep {
  30231. dd.ReadMapElemKey()
  30232. }
  30233. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30234. if esep {
  30235. dd.ReadMapElemValue()
  30236. }
  30237. if dd.TryDecodeAsNil() {
  30238. if v == nil {
  30239. } else if d.h.DeleteOnNilMapValue {
  30240. delete(v, mk)
  30241. } else {
  30242. v[mk] = nil
  30243. }
  30244. continue
  30245. }
  30246. if mapGet {
  30247. mv = v[mk]
  30248. } else {
  30249. mv = nil
  30250. }
  30251. d.decode(&mv)
  30252. if v != nil {
  30253. v[mk] = mv
  30254. }
  30255. }
  30256. dd.ReadMapEnd()
  30257. d.depthDecr()
  30258. return v, changed
  30259. }
  30260. func (d *Decoder) fastpathDecMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  30261. if rv.Kind() == reflect.Ptr {
  30262. vp := rv2i(rv).(*map[int32]string)
  30263. v, changed := fastpathTV.DecMapInt32StringV(*vp, true, d)
  30264. if changed {
  30265. *vp = v
  30266. }
  30267. } else {
  30268. fastpathTV.DecMapInt32StringV(rv2i(rv).(map[int32]string), false, d)
  30269. }
  30270. }
  30271. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, d *Decoder) {
  30272. v, changed := f.DecMapInt32StringV(*vp, true, d)
  30273. if changed {
  30274. *vp = v
  30275. }
  30276. }
  30277. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, canChange bool,
  30278. d *Decoder) (_ map[int32]string, changed bool) {
  30279. dd, esep := d.d, d.hh.hasElemSeparators()
  30280. containerLen := dd.ReadMapStart()
  30281. if canChange && v == nil {
  30282. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  30283. v = make(map[int32]string, xlen)
  30284. changed = true
  30285. }
  30286. if containerLen == 0 {
  30287. dd.ReadMapEnd()
  30288. return v, changed
  30289. }
  30290. d.depthIncr()
  30291. var mk int32
  30292. var mv string
  30293. hasLen := containerLen > 0
  30294. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30295. if esep {
  30296. dd.ReadMapElemKey()
  30297. }
  30298. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30299. if esep {
  30300. dd.ReadMapElemValue()
  30301. }
  30302. if dd.TryDecodeAsNil() {
  30303. if v == nil {
  30304. } else if d.h.DeleteOnNilMapValue {
  30305. delete(v, mk)
  30306. } else {
  30307. v[mk] = ""
  30308. }
  30309. continue
  30310. }
  30311. mv = dd.DecodeString()
  30312. if v != nil {
  30313. v[mk] = mv
  30314. }
  30315. }
  30316. dd.ReadMapEnd()
  30317. d.depthDecr()
  30318. return v, changed
  30319. }
  30320. func (d *Decoder) fastpathDecMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  30321. if rv.Kind() == reflect.Ptr {
  30322. vp := rv2i(rv).(*map[int32]uint)
  30323. v, changed := fastpathTV.DecMapInt32UintV(*vp, true, d)
  30324. if changed {
  30325. *vp = v
  30326. }
  30327. } else {
  30328. fastpathTV.DecMapInt32UintV(rv2i(rv).(map[int32]uint), false, d)
  30329. }
  30330. }
  30331. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, d *Decoder) {
  30332. v, changed := f.DecMapInt32UintV(*vp, true, d)
  30333. if changed {
  30334. *vp = v
  30335. }
  30336. }
  30337. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, canChange bool,
  30338. d *Decoder) (_ map[int32]uint, changed bool) {
  30339. dd, esep := d.d, d.hh.hasElemSeparators()
  30340. containerLen := dd.ReadMapStart()
  30341. if canChange && v == nil {
  30342. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30343. v = make(map[int32]uint, xlen)
  30344. changed = true
  30345. }
  30346. if containerLen == 0 {
  30347. dd.ReadMapEnd()
  30348. return v, changed
  30349. }
  30350. d.depthIncr()
  30351. var mk int32
  30352. var mv uint
  30353. hasLen := containerLen > 0
  30354. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30355. if esep {
  30356. dd.ReadMapElemKey()
  30357. }
  30358. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30359. if esep {
  30360. dd.ReadMapElemValue()
  30361. }
  30362. if dd.TryDecodeAsNil() {
  30363. if v == nil {
  30364. } else if d.h.DeleteOnNilMapValue {
  30365. delete(v, mk)
  30366. } else {
  30367. v[mk] = 0
  30368. }
  30369. continue
  30370. }
  30371. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  30372. if v != nil {
  30373. v[mk] = mv
  30374. }
  30375. }
  30376. dd.ReadMapEnd()
  30377. d.depthDecr()
  30378. return v, changed
  30379. }
  30380. func (d *Decoder) fastpathDecMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  30381. if rv.Kind() == reflect.Ptr {
  30382. vp := rv2i(rv).(*map[int32]uint8)
  30383. v, changed := fastpathTV.DecMapInt32Uint8V(*vp, true, d)
  30384. if changed {
  30385. *vp = v
  30386. }
  30387. } else {
  30388. fastpathTV.DecMapInt32Uint8V(rv2i(rv).(map[int32]uint8), false, d)
  30389. }
  30390. }
  30391. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, d *Decoder) {
  30392. v, changed := f.DecMapInt32Uint8V(*vp, true, d)
  30393. if changed {
  30394. *vp = v
  30395. }
  30396. }
  30397. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, canChange bool,
  30398. d *Decoder) (_ map[int32]uint8, changed bool) {
  30399. dd, esep := d.d, d.hh.hasElemSeparators()
  30400. containerLen := dd.ReadMapStart()
  30401. if canChange && v == nil {
  30402. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30403. v = make(map[int32]uint8, xlen)
  30404. changed = true
  30405. }
  30406. if containerLen == 0 {
  30407. dd.ReadMapEnd()
  30408. return v, changed
  30409. }
  30410. d.depthIncr()
  30411. var mk int32
  30412. var mv uint8
  30413. hasLen := containerLen > 0
  30414. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30415. if esep {
  30416. dd.ReadMapElemKey()
  30417. }
  30418. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30419. if esep {
  30420. dd.ReadMapElemValue()
  30421. }
  30422. if dd.TryDecodeAsNil() {
  30423. if v == nil {
  30424. } else if d.h.DeleteOnNilMapValue {
  30425. delete(v, mk)
  30426. } else {
  30427. v[mk] = 0
  30428. }
  30429. continue
  30430. }
  30431. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  30432. if v != nil {
  30433. v[mk] = mv
  30434. }
  30435. }
  30436. dd.ReadMapEnd()
  30437. d.depthDecr()
  30438. return v, changed
  30439. }
  30440. func (d *Decoder) fastpathDecMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  30441. if rv.Kind() == reflect.Ptr {
  30442. vp := rv2i(rv).(*map[int32]uint16)
  30443. v, changed := fastpathTV.DecMapInt32Uint16V(*vp, true, d)
  30444. if changed {
  30445. *vp = v
  30446. }
  30447. } else {
  30448. fastpathTV.DecMapInt32Uint16V(rv2i(rv).(map[int32]uint16), false, d)
  30449. }
  30450. }
  30451. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, d *Decoder) {
  30452. v, changed := f.DecMapInt32Uint16V(*vp, true, d)
  30453. if changed {
  30454. *vp = v
  30455. }
  30456. }
  30457. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, canChange bool,
  30458. d *Decoder) (_ map[int32]uint16, changed bool) {
  30459. dd, esep := d.d, d.hh.hasElemSeparators()
  30460. containerLen := dd.ReadMapStart()
  30461. if canChange && v == nil {
  30462. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  30463. v = make(map[int32]uint16, xlen)
  30464. changed = true
  30465. }
  30466. if containerLen == 0 {
  30467. dd.ReadMapEnd()
  30468. return v, changed
  30469. }
  30470. d.depthIncr()
  30471. var mk int32
  30472. var mv uint16
  30473. hasLen := containerLen > 0
  30474. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30475. if esep {
  30476. dd.ReadMapElemKey()
  30477. }
  30478. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30479. if esep {
  30480. dd.ReadMapElemValue()
  30481. }
  30482. if dd.TryDecodeAsNil() {
  30483. if v == nil {
  30484. } else if d.h.DeleteOnNilMapValue {
  30485. delete(v, mk)
  30486. } else {
  30487. v[mk] = 0
  30488. }
  30489. continue
  30490. }
  30491. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  30492. if v != nil {
  30493. v[mk] = mv
  30494. }
  30495. }
  30496. dd.ReadMapEnd()
  30497. d.depthDecr()
  30498. return v, changed
  30499. }
  30500. func (d *Decoder) fastpathDecMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  30501. if rv.Kind() == reflect.Ptr {
  30502. vp := rv2i(rv).(*map[int32]uint32)
  30503. v, changed := fastpathTV.DecMapInt32Uint32V(*vp, true, d)
  30504. if changed {
  30505. *vp = v
  30506. }
  30507. } else {
  30508. fastpathTV.DecMapInt32Uint32V(rv2i(rv).(map[int32]uint32), false, d)
  30509. }
  30510. }
  30511. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, d *Decoder) {
  30512. v, changed := f.DecMapInt32Uint32V(*vp, true, d)
  30513. if changed {
  30514. *vp = v
  30515. }
  30516. }
  30517. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, canChange bool,
  30518. d *Decoder) (_ map[int32]uint32, changed bool) {
  30519. dd, esep := d.d, d.hh.hasElemSeparators()
  30520. containerLen := dd.ReadMapStart()
  30521. if canChange && v == nil {
  30522. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  30523. v = make(map[int32]uint32, xlen)
  30524. changed = true
  30525. }
  30526. if containerLen == 0 {
  30527. dd.ReadMapEnd()
  30528. return v, changed
  30529. }
  30530. d.depthIncr()
  30531. var mk int32
  30532. var mv uint32
  30533. hasLen := containerLen > 0
  30534. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30535. if esep {
  30536. dd.ReadMapElemKey()
  30537. }
  30538. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30539. if esep {
  30540. dd.ReadMapElemValue()
  30541. }
  30542. if dd.TryDecodeAsNil() {
  30543. if v == nil {
  30544. } else if d.h.DeleteOnNilMapValue {
  30545. delete(v, mk)
  30546. } else {
  30547. v[mk] = 0
  30548. }
  30549. continue
  30550. }
  30551. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  30552. if v != nil {
  30553. v[mk] = mv
  30554. }
  30555. }
  30556. dd.ReadMapEnd()
  30557. d.depthDecr()
  30558. return v, changed
  30559. }
  30560. func (d *Decoder) fastpathDecMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  30561. if rv.Kind() == reflect.Ptr {
  30562. vp := rv2i(rv).(*map[int32]uint64)
  30563. v, changed := fastpathTV.DecMapInt32Uint64V(*vp, true, d)
  30564. if changed {
  30565. *vp = v
  30566. }
  30567. } else {
  30568. fastpathTV.DecMapInt32Uint64V(rv2i(rv).(map[int32]uint64), false, d)
  30569. }
  30570. }
  30571. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, d *Decoder) {
  30572. v, changed := f.DecMapInt32Uint64V(*vp, true, d)
  30573. if changed {
  30574. *vp = v
  30575. }
  30576. }
  30577. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, canChange bool,
  30578. d *Decoder) (_ map[int32]uint64, changed bool) {
  30579. dd, esep := d.d, d.hh.hasElemSeparators()
  30580. containerLen := dd.ReadMapStart()
  30581. if canChange && v == nil {
  30582. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30583. v = make(map[int32]uint64, xlen)
  30584. changed = true
  30585. }
  30586. if containerLen == 0 {
  30587. dd.ReadMapEnd()
  30588. return v, changed
  30589. }
  30590. d.depthIncr()
  30591. var mk int32
  30592. var mv uint64
  30593. hasLen := containerLen > 0
  30594. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30595. if esep {
  30596. dd.ReadMapElemKey()
  30597. }
  30598. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30599. if esep {
  30600. dd.ReadMapElemValue()
  30601. }
  30602. if dd.TryDecodeAsNil() {
  30603. if v == nil {
  30604. } else if d.h.DeleteOnNilMapValue {
  30605. delete(v, mk)
  30606. } else {
  30607. v[mk] = 0
  30608. }
  30609. continue
  30610. }
  30611. mv = dd.DecodeUint64()
  30612. if v != nil {
  30613. v[mk] = mv
  30614. }
  30615. }
  30616. dd.ReadMapEnd()
  30617. d.depthDecr()
  30618. return v, changed
  30619. }
  30620. func (d *Decoder) fastpathDecMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  30621. if rv.Kind() == reflect.Ptr {
  30622. vp := rv2i(rv).(*map[int32]uintptr)
  30623. v, changed := fastpathTV.DecMapInt32UintptrV(*vp, true, d)
  30624. if changed {
  30625. *vp = v
  30626. }
  30627. } else {
  30628. fastpathTV.DecMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), false, d)
  30629. }
  30630. }
  30631. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, d *Decoder) {
  30632. v, changed := f.DecMapInt32UintptrV(*vp, true, d)
  30633. if changed {
  30634. *vp = v
  30635. }
  30636. }
  30637. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, canChange bool,
  30638. d *Decoder) (_ map[int32]uintptr, changed bool) {
  30639. dd, esep := d.d, d.hh.hasElemSeparators()
  30640. containerLen := dd.ReadMapStart()
  30641. if canChange && v == nil {
  30642. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30643. v = make(map[int32]uintptr, xlen)
  30644. changed = true
  30645. }
  30646. if containerLen == 0 {
  30647. dd.ReadMapEnd()
  30648. return v, changed
  30649. }
  30650. d.depthIncr()
  30651. var mk int32
  30652. var mv uintptr
  30653. hasLen := containerLen > 0
  30654. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30655. if esep {
  30656. dd.ReadMapElemKey()
  30657. }
  30658. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30659. if esep {
  30660. dd.ReadMapElemValue()
  30661. }
  30662. if dd.TryDecodeAsNil() {
  30663. if v == nil {
  30664. } else if d.h.DeleteOnNilMapValue {
  30665. delete(v, mk)
  30666. } else {
  30667. v[mk] = 0
  30668. }
  30669. continue
  30670. }
  30671. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  30672. if v != nil {
  30673. v[mk] = mv
  30674. }
  30675. }
  30676. dd.ReadMapEnd()
  30677. d.depthDecr()
  30678. return v, changed
  30679. }
  30680. func (d *Decoder) fastpathDecMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  30681. if rv.Kind() == reflect.Ptr {
  30682. vp := rv2i(rv).(*map[int32]int)
  30683. v, changed := fastpathTV.DecMapInt32IntV(*vp, true, d)
  30684. if changed {
  30685. *vp = v
  30686. }
  30687. } else {
  30688. fastpathTV.DecMapInt32IntV(rv2i(rv).(map[int32]int), false, d)
  30689. }
  30690. }
  30691. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, d *Decoder) {
  30692. v, changed := f.DecMapInt32IntV(*vp, true, d)
  30693. if changed {
  30694. *vp = v
  30695. }
  30696. }
  30697. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, canChange bool,
  30698. d *Decoder) (_ map[int32]int, changed bool) {
  30699. dd, esep := d.d, d.hh.hasElemSeparators()
  30700. containerLen := dd.ReadMapStart()
  30701. if canChange && v == nil {
  30702. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30703. v = make(map[int32]int, xlen)
  30704. changed = true
  30705. }
  30706. if containerLen == 0 {
  30707. dd.ReadMapEnd()
  30708. return v, changed
  30709. }
  30710. d.depthIncr()
  30711. var mk int32
  30712. var mv int
  30713. hasLen := containerLen > 0
  30714. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30715. if esep {
  30716. dd.ReadMapElemKey()
  30717. }
  30718. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30719. if esep {
  30720. dd.ReadMapElemValue()
  30721. }
  30722. if dd.TryDecodeAsNil() {
  30723. if v == nil {
  30724. } else if d.h.DeleteOnNilMapValue {
  30725. delete(v, mk)
  30726. } else {
  30727. v[mk] = 0
  30728. }
  30729. continue
  30730. }
  30731. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  30732. if v != nil {
  30733. v[mk] = mv
  30734. }
  30735. }
  30736. dd.ReadMapEnd()
  30737. d.depthDecr()
  30738. return v, changed
  30739. }
  30740. func (d *Decoder) fastpathDecMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  30741. if rv.Kind() == reflect.Ptr {
  30742. vp := rv2i(rv).(*map[int32]int8)
  30743. v, changed := fastpathTV.DecMapInt32Int8V(*vp, true, d)
  30744. if changed {
  30745. *vp = v
  30746. }
  30747. } else {
  30748. fastpathTV.DecMapInt32Int8V(rv2i(rv).(map[int32]int8), false, d)
  30749. }
  30750. }
  30751. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, d *Decoder) {
  30752. v, changed := f.DecMapInt32Int8V(*vp, true, d)
  30753. if changed {
  30754. *vp = v
  30755. }
  30756. }
  30757. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, canChange bool,
  30758. d *Decoder) (_ map[int32]int8, changed bool) {
  30759. dd, esep := d.d, d.hh.hasElemSeparators()
  30760. containerLen := dd.ReadMapStart()
  30761. if canChange && v == nil {
  30762. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30763. v = make(map[int32]int8, xlen)
  30764. changed = true
  30765. }
  30766. if containerLen == 0 {
  30767. dd.ReadMapEnd()
  30768. return v, changed
  30769. }
  30770. d.depthIncr()
  30771. var mk int32
  30772. var mv int8
  30773. hasLen := containerLen > 0
  30774. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30775. if esep {
  30776. dd.ReadMapElemKey()
  30777. }
  30778. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30779. if esep {
  30780. dd.ReadMapElemValue()
  30781. }
  30782. if dd.TryDecodeAsNil() {
  30783. if v == nil {
  30784. } else if d.h.DeleteOnNilMapValue {
  30785. delete(v, mk)
  30786. } else {
  30787. v[mk] = 0
  30788. }
  30789. continue
  30790. }
  30791. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30792. if v != nil {
  30793. v[mk] = mv
  30794. }
  30795. }
  30796. dd.ReadMapEnd()
  30797. d.depthDecr()
  30798. return v, changed
  30799. }
  30800. func (d *Decoder) fastpathDecMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  30801. if rv.Kind() == reflect.Ptr {
  30802. vp := rv2i(rv).(*map[int32]int16)
  30803. v, changed := fastpathTV.DecMapInt32Int16V(*vp, true, d)
  30804. if changed {
  30805. *vp = v
  30806. }
  30807. } else {
  30808. fastpathTV.DecMapInt32Int16V(rv2i(rv).(map[int32]int16), false, d)
  30809. }
  30810. }
  30811. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, d *Decoder) {
  30812. v, changed := f.DecMapInt32Int16V(*vp, true, d)
  30813. if changed {
  30814. *vp = v
  30815. }
  30816. }
  30817. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, canChange bool,
  30818. d *Decoder) (_ map[int32]int16, changed bool) {
  30819. dd, esep := d.d, d.hh.hasElemSeparators()
  30820. containerLen := dd.ReadMapStart()
  30821. if canChange && v == nil {
  30822. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  30823. v = make(map[int32]int16, xlen)
  30824. changed = true
  30825. }
  30826. if containerLen == 0 {
  30827. dd.ReadMapEnd()
  30828. return v, changed
  30829. }
  30830. d.depthIncr()
  30831. var mk int32
  30832. var mv int16
  30833. hasLen := containerLen > 0
  30834. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30835. if esep {
  30836. dd.ReadMapElemKey()
  30837. }
  30838. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30839. if esep {
  30840. dd.ReadMapElemValue()
  30841. }
  30842. if dd.TryDecodeAsNil() {
  30843. if v == nil {
  30844. } else if d.h.DeleteOnNilMapValue {
  30845. delete(v, mk)
  30846. } else {
  30847. v[mk] = 0
  30848. }
  30849. continue
  30850. }
  30851. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30852. if v != nil {
  30853. v[mk] = mv
  30854. }
  30855. }
  30856. dd.ReadMapEnd()
  30857. d.depthDecr()
  30858. return v, changed
  30859. }
  30860. func (d *Decoder) fastpathDecMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  30861. if rv.Kind() == reflect.Ptr {
  30862. vp := rv2i(rv).(*map[int32]int32)
  30863. v, changed := fastpathTV.DecMapInt32Int32V(*vp, true, d)
  30864. if changed {
  30865. *vp = v
  30866. }
  30867. } else {
  30868. fastpathTV.DecMapInt32Int32V(rv2i(rv).(map[int32]int32), false, d)
  30869. }
  30870. }
  30871. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, d *Decoder) {
  30872. v, changed := f.DecMapInt32Int32V(*vp, true, d)
  30873. if changed {
  30874. *vp = v
  30875. }
  30876. }
  30877. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, canChange bool,
  30878. d *Decoder) (_ map[int32]int32, changed bool) {
  30879. dd, esep := d.d, d.hh.hasElemSeparators()
  30880. containerLen := dd.ReadMapStart()
  30881. if canChange && v == nil {
  30882. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  30883. v = make(map[int32]int32, xlen)
  30884. changed = true
  30885. }
  30886. if containerLen == 0 {
  30887. dd.ReadMapEnd()
  30888. return v, changed
  30889. }
  30890. d.depthIncr()
  30891. var mk int32
  30892. var mv int32
  30893. hasLen := containerLen > 0
  30894. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30895. if esep {
  30896. dd.ReadMapElemKey()
  30897. }
  30898. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30899. if esep {
  30900. dd.ReadMapElemValue()
  30901. }
  30902. if dd.TryDecodeAsNil() {
  30903. if v == nil {
  30904. } else if d.h.DeleteOnNilMapValue {
  30905. delete(v, mk)
  30906. } else {
  30907. v[mk] = 0
  30908. }
  30909. continue
  30910. }
  30911. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30912. if v != nil {
  30913. v[mk] = mv
  30914. }
  30915. }
  30916. dd.ReadMapEnd()
  30917. d.depthDecr()
  30918. return v, changed
  30919. }
  30920. func (d *Decoder) fastpathDecMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  30921. if rv.Kind() == reflect.Ptr {
  30922. vp := rv2i(rv).(*map[int32]int64)
  30923. v, changed := fastpathTV.DecMapInt32Int64V(*vp, true, d)
  30924. if changed {
  30925. *vp = v
  30926. }
  30927. } else {
  30928. fastpathTV.DecMapInt32Int64V(rv2i(rv).(map[int32]int64), false, d)
  30929. }
  30930. }
  30931. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, d *Decoder) {
  30932. v, changed := f.DecMapInt32Int64V(*vp, true, d)
  30933. if changed {
  30934. *vp = v
  30935. }
  30936. }
  30937. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, canChange bool,
  30938. d *Decoder) (_ map[int32]int64, changed bool) {
  30939. dd, esep := d.d, d.hh.hasElemSeparators()
  30940. containerLen := dd.ReadMapStart()
  30941. if canChange && v == nil {
  30942. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30943. v = make(map[int32]int64, xlen)
  30944. changed = true
  30945. }
  30946. if containerLen == 0 {
  30947. dd.ReadMapEnd()
  30948. return v, changed
  30949. }
  30950. d.depthIncr()
  30951. var mk int32
  30952. var mv int64
  30953. hasLen := containerLen > 0
  30954. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30955. if esep {
  30956. dd.ReadMapElemKey()
  30957. }
  30958. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30959. if esep {
  30960. dd.ReadMapElemValue()
  30961. }
  30962. if dd.TryDecodeAsNil() {
  30963. if v == nil {
  30964. } else if d.h.DeleteOnNilMapValue {
  30965. delete(v, mk)
  30966. } else {
  30967. v[mk] = 0
  30968. }
  30969. continue
  30970. }
  30971. mv = dd.DecodeInt64()
  30972. if v != nil {
  30973. v[mk] = mv
  30974. }
  30975. }
  30976. dd.ReadMapEnd()
  30977. d.depthDecr()
  30978. return v, changed
  30979. }
  30980. func (d *Decoder) fastpathDecMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  30981. if rv.Kind() == reflect.Ptr {
  30982. vp := rv2i(rv).(*map[int32]float32)
  30983. v, changed := fastpathTV.DecMapInt32Float32V(*vp, true, d)
  30984. if changed {
  30985. *vp = v
  30986. }
  30987. } else {
  30988. fastpathTV.DecMapInt32Float32V(rv2i(rv).(map[int32]float32), false, d)
  30989. }
  30990. }
  30991. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, d *Decoder) {
  30992. v, changed := f.DecMapInt32Float32V(*vp, true, d)
  30993. if changed {
  30994. *vp = v
  30995. }
  30996. }
  30997. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, canChange bool,
  30998. d *Decoder) (_ map[int32]float32, changed bool) {
  30999. dd, esep := d.d, d.hh.hasElemSeparators()
  31000. containerLen := dd.ReadMapStart()
  31001. if canChange && v == nil {
  31002. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  31003. v = make(map[int32]float32, xlen)
  31004. changed = true
  31005. }
  31006. if containerLen == 0 {
  31007. dd.ReadMapEnd()
  31008. return v, changed
  31009. }
  31010. d.depthIncr()
  31011. var mk int32
  31012. var mv float32
  31013. hasLen := containerLen > 0
  31014. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31015. if esep {
  31016. dd.ReadMapElemKey()
  31017. }
  31018. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31019. if esep {
  31020. dd.ReadMapElemValue()
  31021. }
  31022. if dd.TryDecodeAsNil() {
  31023. if v == nil {
  31024. } else if d.h.DeleteOnNilMapValue {
  31025. delete(v, mk)
  31026. } else {
  31027. v[mk] = 0
  31028. }
  31029. continue
  31030. }
  31031. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  31032. if v != nil {
  31033. v[mk] = mv
  31034. }
  31035. }
  31036. dd.ReadMapEnd()
  31037. d.depthDecr()
  31038. return v, changed
  31039. }
  31040. func (d *Decoder) fastpathDecMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  31041. if rv.Kind() == reflect.Ptr {
  31042. vp := rv2i(rv).(*map[int32]float64)
  31043. v, changed := fastpathTV.DecMapInt32Float64V(*vp, true, d)
  31044. if changed {
  31045. *vp = v
  31046. }
  31047. } else {
  31048. fastpathTV.DecMapInt32Float64V(rv2i(rv).(map[int32]float64), false, d)
  31049. }
  31050. }
  31051. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, d *Decoder) {
  31052. v, changed := f.DecMapInt32Float64V(*vp, true, d)
  31053. if changed {
  31054. *vp = v
  31055. }
  31056. }
  31057. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, canChange bool,
  31058. d *Decoder) (_ map[int32]float64, changed bool) {
  31059. dd, esep := d.d, d.hh.hasElemSeparators()
  31060. containerLen := dd.ReadMapStart()
  31061. if canChange && v == nil {
  31062. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31063. v = make(map[int32]float64, xlen)
  31064. changed = true
  31065. }
  31066. if containerLen == 0 {
  31067. dd.ReadMapEnd()
  31068. return v, changed
  31069. }
  31070. d.depthIncr()
  31071. var mk int32
  31072. var mv float64
  31073. hasLen := containerLen > 0
  31074. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31075. if esep {
  31076. dd.ReadMapElemKey()
  31077. }
  31078. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31079. if esep {
  31080. dd.ReadMapElemValue()
  31081. }
  31082. if dd.TryDecodeAsNil() {
  31083. if v == nil {
  31084. } else if d.h.DeleteOnNilMapValue {
  31085. delete(v, mk)
  31086. } else {
  31087. v[mk] = 0
  31088. }
  31089. continue
  31090. }
  31091. mv = dd.DecodeFloat64()
  31092. if v != nil {
  31093. v[mk] = mv
  31094. }
  31095. }
  31096. dd.ReadMapEnd()
  31097. d.depthDecr()
  31098. return v, changed
  31099. }
  31100. func (d *Decoder) fastpathDecMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  31101. if rv.Kind() == reflect.Ptr {
  31102. vp := rv2i(rv).(*map[int32]bool)
  31103. v, changed := fastpathTV.DecMapInt32BoolV(*vp, true, d)
  31104. if changed {
  31105. *vp = v
  31106. }
  31107. } else {
  31108. fastpathTV.DecMapInt32BoolV(rv2i(rv).(map[int32]bool), false, d)
  31109. }
  31110. }
  31111. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, d *Decoder) {
  31112. v, changed := f.DecMapInt32BoolV(*vp, true, d)
  31113. if changed {
  31114. *vp = v
  31115. }
  31116. }
  31117. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, canChange bool,
  31118. d *Decoder) (_ map[int32]bool, changed bool) {
  31119. dd, esep := d.d, d.hh.hasElemSeparators()
  31120. containerLen := dd.ReadMapStart()
  31121. if canChange && v == nil {
  31122. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  31123. v = make(map[int32]bool, xlen)
  31124. changed = true
  31125. }
  31126. if containerLen == 0 {
  31127. dd.ReadMapEnd()
  31128. return v, changed
  31129. }
  31130. d.depthIncr()
  31131. var mk int32
  31132. var mv bool
  31133. hasLen := containerLen > 0
  31134. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31135. if esep {
  31136. dd.ReadMapElemKey()
  31137. }
  31138. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31139. if esep {
  31140. dd.ReadMapElemValue()
  31141. }
  31142. if dd.TryDecodeAsNil() {
  31143. if v == nil {
  31144. } else if d.h.DeleteOnNilMapValue {
  31145. delete(v, mk)
  31146. } else {
  31147. v[mk] = false
  31148. }
  31149. continue
  31150. }
  31151. mv = dd.DecodeBool()
  31152. if v != nil {
  31153. v[mk] = mv
  31154. }
  31155. }
  31156. dd.ReadMapEnd()
  31157. d.depthDecr()
  31158. return v, changed
  31159. }
  31160. func (d *Decoder) fastpathDecMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  31161. if rv.Kind() == reflect.Ptr {
  31162. vp := rv2i(rv).(*map[int64]interface{})
  31163. v, changed := fastpathTV.DecMapInt64IntfV(*vp, true, d)
  31164. if changed {
  31165. *vp = v
  31166. }
  31167. } else {
  31168. fastpathTV.DecMapInt64IntfV(rv2i(rv).(map[int64]interface{}), false, d)
  31169. }
  31170. }
  31171. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, d *Decoder) {
  31172. v, changed := f.DecMapInt64IntfV(*vp, true, d)
  31173. if changed {
  31174. *vp = v
  31175. }
  31176. }
  31177. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, canChange bool,
  31178. d *Decoder) (_ map[int64]interface{}, changed bool) {
  31179. dd, esep := d.d, d.hh.hasElemSeparators()
  31180. containerLen := dd.ReadMapStart()
  31181. if canChange && v == nil {
  31182. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  31183. v = make(map[int64]interface{}, xlen)
  31184. changed = true
  31185. }
  31186. if containerLen == 0 {
  31187. dd.ReadMapEnd()
  31188. return v, changed
  31189. }
  31190. d.depthIncr()
  31191. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  31192. var mk int64
  31193. var mv interface{}
  31194. hasLen := containerLen > 0
  31195. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31196. if esep {
  31197. dd.ReadMapElemKey()
  31198. }
  31199. mk = dd.DecodeInt64()
  31200. if esep {
  31201. dd.ReadMapElemValue()
  31202. }
  31203. if dd.TryDecodeAsNil() {
  31204. if v == nil {
  31205. } else if d.h.DeleteOnNilMapValue {
  31206. delete(v, mk)
  31207. } else {
  31208. v[mk] = nil
  31209. }
  31210. continue
  31211. }
  31212. if mapGet {
  31213. mv = v[mk]
  31214. } else {
  31215. mv = nil
  31216. }
  31217. d.decode(&mv)
  31218. if v != nil {
  31219. v[mk] = mv
  31220. }
  31221. }
  31222. dd.ReadMapEnd()
  31223. d.depthDecr()
  31224. return v, changed
  31225. }
  31226. func (d *Decoder) fastpathDecMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  31227. if rv.Kind() == reflect.Ptr {
  31228. vp := rv2i(rv).(*map[int64]string)
  31229. v, changed := fastpathTV.DecMapInt64StringV(*vp, true, d)
  31230. if changed {
  31231. *vp = v
  31232. }
  31233. } else {
  31234. fastpathTV.DecMapInt64StringV(rv2i(rv).(map[int64]string), false, d)
  31235. }
  31236. }
  31237. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, d *Decoder) {
  31238. v, changed := f.DecMapInt64StringV(*vp, true, d)
  31239. if changed {
  31240. *vp = v
  31241. }
  31242. }
  31243. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, canChange bool,
  31244. d *Decoder) (_ map[int64]string, changed bool) {
  31245. dd, esep := d.d, d.hh.hasElemSeparators()
  31246. containerLen := dd.ReadMapStart()
  31247. if canChange && v == nil {
  31248. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  31249. v = make(map[int64]string, xlen)
  31250. changed = true
  31251. }
  31252. if containerLen == 0 {
  31253. dd.ReadMapEnd()
  31254. return v, changed
  31255. }
  31256. d.depthIncr()
  31257. var mk int64
  31258. var mv string
  31259. hasLen := containerLen > 0
  31260. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31261. if esep {
  31262. dd.ReadMapElemKey()
  31263. }
  31264. mk = dd.DecodeInt64()
  31265. if esep {
  31266. dd.ReadMapElemValue()
  31267. }
  31268. if dd.TryDecodeAsNil() {
  31269. if v == nil {
  31270. } else if d.h.DeleteOnNilMapValue {
  31271. delete(v, mk)
  31272. } else {
  31273. v[mk] = ""
  31274. }
  31275. continue
  31276. }
  31277. mv = dd.DecodeString()
  31278. if v != nil {
  31279. v[mk] = mv
  31280. }
  31281. }
  31282. dd.ReadMapEnd()
  31283. d.depthDecr()
  31284. return v, changed
  31285. }
  31286. func (d *Decoder) fastpathDecMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  31287. if rv.Kind() == reflect.Ptr {
  31288. vp := rv2i(rv).(*map[int64]uint)
  31289. v, changed := fastpathTV.DecMapInt64UintV(*vp, true, d)
  31290. if changed {
  31291. *vp = v
  31292. }
  31293. } else {
  31294. fastpathTV.DecMapInt64UintV(rv2i(rv).(map[int64]uint), false, d)
  31295. }
  31296. }
  31297. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, d *Decoder) {
  31298. v, changed := f.DecMapInt64UintV(*vp, true, d)
  31299. if changed {
  31300. *vp = v
  31301. }
  31302. }
  31303. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, canChange bool,
  31304. d *Decoder) (_ map[int64]uint, changed bool) {
  31305. dd, esep := d.d, d.hh.hasElemSeparators()
  31306. containerLen := dd.ReadMapStart()
  31307. if canChange && v == nil {
  31308. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31309. v = make(map[int64]uint, xlen)
  31310. changed = true
  31311. }
  31312. if containerLen == 0 {
  31313. dd.ReadMapEnd()
  31314. return v, changed
  31315. }
  31316. d.depthIncr()
  31317. var mk int64
  31318. var mv uint
  31319. hasLen := containerLen > 0
  31320. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31321. if esep {
  31322. dd.ReadMapElemKey()
  31323. }
  31324. mk = dd.DecodeInt64()
  31325. if esep {
  31326. dd.ReadMapElemValue()
  31327. }
  31328. if dd.TryDecodeAsNil() {
  31329. if v == nil {
  31330. } else if d.h.DeleteOnNilMapValue {
  31331. delete(v, mk)
  31332. } else {
  31333. v[mk] = 0
  31334. }
  31335. continue
  31336. }
  31337. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  31338. if v != nil {
  31339. v[mk] = mv
  31340. }
  31341. }
  31342. dd.ReadMapEnd()
  31343. d.depthDecr()
  31344. return v, changed
  31345. }
  31346. func (d *Decoder) fastpathDecMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  31347. if rv.Kind() == reflect.Ptr {
  31348. vp := rv2i(rv).(*map[int64]uint8)
  31349. v, changed := fastpathTV.DecMapInt64Uint8V(*vp, true, d)
  31350. if changed {
  31351. *vp = v
  31352. }
  31353. } else {
  31354. fastpathTV.DecMapInt64Uint8V(rv2i(rv).(map[int64]uint8), false, d)
  31355. }
  31356. }
  31357. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, d *Decoder) {
  31358. v, changed := f.DecMapInt64Uint8V(*vp, true, d)
  31359. if changed {
  31360. *vp = v
  31361. }
  31362. }
  31363. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, canChange bool,
  31364. d *Decoder) (_ map[int64]uint8, changed bool) {
  31365. dd, esep := d.d, d.hh.hasElemSeparators()
  31366. containerLen := dd.ReadMapStart()
  31367. if canChange && v == nil {
  31368. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31369. v = make(map[int64]uint8, xlen)
  31370. changed = true
  31371. }
  31372. if containerLen == 0 {
  31373. dd.ReadMapEnd()
  31374. return v, changed
  31375. }
  31376. d.depthIncr()
  31377. var mk int64
  31378. var mv uint8
  31379. hasLen := containerLen > 0
  31380. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31381. if esep {
  31382. dd.ReadMapElemKey()
  31383. }
  31384. mk = dd.DecodeInt64()
  31385. if esep {
  31386. dd.ReadMapElemValue()
  31387. }
  31388. if dd.TryDecodeAsNil() {
  31389. if v == nil {
  31390. } else if d.h.DeleteOnNilMapValue {
  31391. delete(v, mk)
  31392. } else {
  31393. v[mk] = 0
  31394. }
  31395. continue
  31396. }
  31397. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  31398. if v != nil {
  31399. v[mk] = mv
  31400. }
  31401. }
  31402. dd.ReadMapEnd()
  31403. d.depthDecr()
  31404. return v, changed
  31405. }
  31406. func (d *Decoder) fastpathDecMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  31407. if rv.Kind() == reflect.Ptr {
  31408. vp := rv2i(rv).(*map[int64]uint16)
  31409. v, changed := fastpathTV.DecMapInt64Uint16V(*vp, true, d)
  31410. if changed {
  31411. *vp = v
  31412. }
  31413. } else {
  31414. fastpathTV.DecMapInt64Uint16V(rv2i(rv).(map[int64]uint16), false, d)
  31415. }
  31416. }
  31417. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, d *Decoder) {
  31418. v, changed := f.DecMapInt64Uint16V(*vp, true, d)
  31419. if changed {
  31420. *vp = v
  31421. }
  31422. }
  31423. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, canChange bool,
  31424. d *Decoder) (_ map[int64]uint16, changed bool) {
  31425. dd, esep := d.d, d.hh.hasElemSeparators()
  31426. containerLen := dd.ReadMapStart()
  31427. if canChange && v == nil {
  31428. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31429. v = make(map[int64]uint16, xlen)
  31430. changed = true
  31431. }
  31432. if containerLen == 0 {
  31433. dd.ReadMapEnd()
  31434. return v, changed
  31435. }
  31436. d.depthIncr()
  31437. var mk int64
  31438. var mv uint16
  31439. hasLen := containerLen > 0
  31440. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31441. if esep {
  31442. dd.ReadMapElemKey()
  31443. }
  31444. mk = dd.DecodeInt64()
  31445. if esep {
  31446. dd.ReadMapElemValue()
  31447. }
  31448. if dd.TryDecodeAsNil() {
  31449. if v == nil {
  31450. } else if d.h.DeleteOnNilMapValue {
  31451. delete(v, mk)
  31452. } else {
  31453. v[mk] = 0
  31454. }
  31455. continue
  31456. }
  31457. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  31458. if v != nil {
  31459. v[mk] = mv
  31460. }
  31461. }
  31462. dd.ReadMapEnd()
  31463. d.depthDecr()
  31464. return v, changed
  31465. }
  31466. func (d *Decoder) fastpathDecMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  31467. if rv.Kind() == reflect.Ptr {
  31468. vp := rv2i(rv).(*map[int64]uint32)
  31469. v, changed := fastpathTV.DecMapInt64Uint32V(*vp, true, d)
  31470. if changed {
  31471. *vp = v
  31472. }
  31473. } else {
  31474. fastpathTV.DecMapInt64Uint32V(rv2i(rv).(map[int64]uint32), false, d)
  31475. }
  31476. }
  31477. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, d *Decoder) {
  31478. v, changed := f.DecMapInt64Uint32V(*vp, true, d)
  31479. if changed {
  31480. *vp = v
  31481. }
  31482. }
  31483. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, canChange bool,
  31484. d *Decoder) (_ map[int64]uint32, changed bool) {
  31485. dd, esep := d.d, d.hh.hasElemSeparators()
  31486. containerLen := dd.ReadMapStart()
  31487. if canChange && v == nil {
  31488. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31489. v = make(map[int64]uint32, xlen)
  31490. changed = true
  31491. }
  31492. if containerLen == 0 {
  31493. dd.ReadMapEnd()
  31494. return v, changed
  31495. }
  31496. d.depthIncr()
  31497. var mk int64
  31498. var mv uint32
  31499. hasLen := containerLen > 0
  31500. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31501. if esep {
  31502. dd.ReadMapElemKey()
  31503. }
  31504. mk = dd.DecodeInt64()
  31505. if esep {
  31506. dd.ReadMapElemValue()
  31507. }
  31508. if dd.TryDecodeAsNil() {
  31509. if v == nil {
  31510. } else if d.h.DeleteOnNilMapValue {
  31511. delete(v, mk)
  31512. } else {
  31513. v[mk] = 0
  31514. }
  31515. continue
  31516. }
  31517. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  31518. if v != nil {
  31519. v[mk] = mv
  31520. }
  31521. }
  31522. dd.ReadMapEnd()
  31523. d.depthDecr()
  31524. return v, changed
  31525. }
  31526. func (d *Decoder) fastpathDecMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  31527. if rv.Kind() == reflect.Ptr {
  31528. vp := rv2i(rv).(*map[int64]uint64)
  31529. v, changed := fastpathTV.DecMapInt64Uint64V(*vp, true, d)
  31530. if changed {
  31531. *vp = v
  31532. }
  31533. } else {
  31534. fastpathTV.DecMapInt64Uint64V(rv2i(rv).(map[int64]uint64), false, d)
  31535. }
  31536. }
  31537. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, d *Decoder) {
  31538. v, changed := f.DecMapInt64Uint64V(*vp, true, d)
  31539. if changed {
  31540. *vp = v
  31541. }
  31542. }
  31543. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, canChange bool,
  31544. d *Decoder) (_ map[int64]uint64, changed bool) {
  31545. dd, esep := d.d, d.hh.hasElemSeparators()
  31546. containerLen := dd.ReadMapStart()
  31547. if canChange && v == nil {
  31548. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31549. v = make(map[int64]uint64, xlen)
  31550. changed = true
  31551. }
  31552. if containerLen == 0 {
  31553. dd.ReadMapEnd()
  31554. return v, changed
  31555. }
  31556. d.depthIncr()
  31557. var mk int64
  31558. var mv uint64
  31559. hasLen := containerLen > 0
  31560. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31561. if esep {
  31562. dd.ReadMapElemKey()
  31563. }
  31564. mk = dd.DecodeInt64()
  31565. if esep {
  31566. dd.ReadMapElemValue()
  31567. }
  31568. if dd.TryDecodeAsNil() {
  31569. if v == nil {
  31570. } else if d.h.DeleteOnNilMapValue {
  31571. delete(v, mk)
  31572. } else {
  31573. v[mk] = 0
  31574. }
  31575. continue
  31576. }
  31577. mv = dd.DecodeUint64()
  31578. if v != nil {
  31579. v[mk] = mv
  31580. }
  31581. }
  31582. dd.ReadMapEnd()
  31583. d.depthDecr()
  31584. return v, changed
  31585. }
  31586. func (d *Decoder) fastpathDecMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  31587. if rv.Kind() == reflect.Ptr {
  31588. vp := rv2i(rv).(*map[int64]uintptr)
  31589. v, changed := fastpathTV.DecMapInt64UintptrV(*vp, true, d)
  31590. if changed {
  31591. *vp = v
  31592. }
  31593. } else {
  31594. fastpathTV.DecMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), false, d)
  31595. }
  31596. }
  31597. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, d *Decoder) {
  31598. v, changed := f.DecMapInt64UintptrV(*vp, true, d)
  31599. if changed {
  31600. *vp = v
  31601. }
  31602. }
  31603. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, canChange bool,
  31604. d *Decoder) (_ map[int64]uintptr, changed bool) {
  31605. dd, esep := d.d, d.hh.hasElemSeparators()
  31606. containerLen := dd.ReadMapStart()
  31607. if canChange && v == nil {
  31608. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31609. v = make(map[int64]uintptr, xlen)
  31610. changed = true
  31611. }
  31612. if containerLen == 0 {
  31613. dd.ReadMapEnd()
  31614. return v, changed
  31615. }
  31616. d.depthIncr()
  31617. var mk int64
  31618. var mv uintptr
  31619. hasLen := containerLen > 0
  31620. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31621. if esep {
  31622. dd.ReadMapElemKey()
  31623. }
  31624. mk = dd.DecodeInt64()
  31625. if esep {
  31626. dd.ReadMapElemValue()
  31627. }
  31628. if dd.TryDecodeAsNil() {
  31629. if v == nil {
  31630. } else if d.h.DeleteOnNilMapValue {
  31631. delete(v, mk)
  31632. } else {
  31633. v[mk] = 0
  31634. }
  31635. continue
  31636. }
  31637. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  31638. if v != nil {
  31639. v[mk] = mv
  31640. }
  31641. }
  31642. dd.ReadMapEnd()
  31643. d.depthDecr()
  31644. return v, changed
  31645. }
  31646. func (d *Decoder) fastpathDecMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  31647. if rv.Kind() == reflect.Ptr {
  31648. vp := rv2i(rv).(*map[int64]int)
  31649. v, changed := fastpathTV.DecMapInt64IntV(*vp, true, d)
  31650. if changed {
  31651. *vp = v
  31652. }
  31653. } else {
  31654. fastpathTV.DecMapInt64IntV(rv2i(rv).(map[int64]int), false, d)
  31655. }
  31656. }
  31657. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, d *Decoder) {
  31658. v, changed := f.DecMapInt64IntV(*vp, true, d)
  31659. if changed {
  31660. *vp = v
  31661. }
  31662. }
  31663. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, canChange bool,
  31664. d *Decoder) (_ map[int64]int, changed bool) {
  31665. dd, esep := d.d, d.hh.hasElemSeparators()
  31666. containerLen := dd.ReadMapStart()
  31667. if canChange && v == nil {
  31668. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31669. v = make(map[int64]int, xlen)
  31670. changed = true
  31671. }
  31672. if containerLen == 0 {
  31673. dd.ReadMapEnd()
  31674. return v, changed
  31675. }
  31676. d.depthIncr()
  31677. var mk int64
  31678. var mv int
  31679. hasLen := containerLen > 0
  31680. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31681. if esep {
  31682. dd.ReadMapElemKey()
  31683. }
  31684. mk = dd.DecodeInt64()
  31685. if esep {
  31686. dd.ReadMapElemValue()
  31687. }
  31688. if dd.TryDecodeAsNil() {
  31689. if v == nil {
  31690. } else if d.h.DeleteOnNilMapValue {
  31691. delete(v, mk)
  31692. } else {
  31693. v[mk] = 0
  31694. }
  31695. continue
  31696. }
  31697. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  31698. if v != nil {
  31699. v[mk] = mv
  31700. }
  31701. }
  31702. dd.ReadMapEnd()
  31703. d.depthDecr()
  31704. return v, changed
  31705. }
  31706. func (d *Decoder) fastpathDecMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  31707. if rv.Kind() == reflect.Ptr {
  31708. vp := rv2i(rv).(*map[int64]int8)
  31709. v, changed := fastpathTV.DecMapInt64Int8V(*vp, true, d)
  31710. if changed {
  31711. *vp = v
  31712. }
  31713. } else {
  31714. fastpathTV.DecMapInt64Int8V(rv2i(rv).(map[int64]int8), false, d)
  31715. }
  31716. }
  31717. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, d *Decoder) {
  31718. v, changed := f.DecMapInt64Int8V(*vp, true, d)
  31719. if changed {
  31720. *vp = v
  31721. }
  31722. }
  31723. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, canChange bool,
  31724. d *Decoder) (_ map[int64]int8, changed bool) {
  31725. dd, esep := d.d, d.hh.hasElemSeparators()
  31726. containerLen := dd.ReadMapStart()
  31727. if canChange && v == nil {
  31728. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31729. v = make(map[int64]int8, xlen)
  31730. changed = true
  31731. }
  31732. if containerLen == 0 {
  31733. dd.ReadMapEnd()
  31734. return v, changed
  31735. }
  31736. d.depthIncr()
  31737. var mk int64
  31738. var mv int8
  31739. hasLen := containerLen > 0
  31740. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31741. if esep {
  31742. dd.ReadMapElemKey()
  31743. }
  31744. mk = dd.DecodeInt64()
  31745. if esep {
  31746. dd.ReadMapElemValue()
  31747. }
  31748. if dd.TryDecodeAsNil() {
  31749. if v == nil {
  31750. } else if d.h.DeleteOnNilMapValue {
  31751. delete(v, mk)
  31752. } else {
  31753. v[mk] = 0
  31754. }
  31755. continue
  31756. }
  31757. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  31758. if v != nil {
  31759. v[mk] = mv
  31760. }
  31761. }
  31762. dd.ReadMapEnd()
  31763. d.depthDecr()
  31764. return v, changed
  31765. }
  31766. func (d *Decoder) fastpathDecMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  31767. if rv.Kind() == reflect.Ptr {
  31768. vp := rv2i(rv).(*map[int64]int16)
  31769. v, changed := fastpathTV.DecMapInt64Int16V(*vp, true, d)
  31770. if changed {
  31771. *vp = v
  31772. }
  31773. } else {
  31774. fastpathTV.DecMapInt64Int16V(rv2i(rv).(map[int64]int16), false, d)
  31775. }
  31776. }
  31777. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, d *Decoder) {
  31778. v, changed := f.DecMapInt64Int16V(*vp, true, d)
  31779. if changed {
  31780. *vp = v
  31781. }
  31782. }
  31783. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, canChange bool,
  31784. d *Decoder) (_ map[int64]int16, changed bool) {
  31785. dd, esep := d.d, d.hh.hasElemSeparators()
  31786. containerLen := dd.ReadMapStart()
  31787. if canChange && v == nil {
  31788. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31789. v = make(map[int64]int16, xlen)
  31790. changed = true
  31791. }
  31792. if containerLen == 0 {
  31793. dd.ReadMapEnd()
  31794. return v, changed
  31795. }
  31796. d.depthIncr()
  31797. var mk int64
  31798. var mv int16
  31799. hasLen := containerLen > 0
  31800. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31801. if esep {
  31802. dd.ReadMapElemKey()
  31803. }
  31804. mk = dd.DecodeInt64()
  31805. if esep {
  31806. dd.ReadMapElemValue()
  31807. }
  31808. if dd.TryDecodeAsNil() {
  31809. if v == nil {
  31810. } else if d.h.DeleteOnNilMapValue {
  31811. delete(v, mk)
  31812. } else {
  31813. v[mk] = 0
  31814. }
  31815. continue
  31816. }
  31817. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31818. if v != nil {
  31819. v[mk] = mv
  31820. }
  31821. }
  31822. dd.ReadMapEnd()
  31823. d.depthDecr()
  31824. return v, changed
  31825. }
  31826. func (d *Decoder) fastpathDecMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  31827. if rv.Kind() == reflect.Ptr {
  31828. vp := rv2i(rv).(*map[int64]int32)
  31829. v, changed := fastpathTV.DecMapInt64Int32V(*vp, true, d)
  31830. if changed {
  31831. *vp = v
  31832. }
  31833. } else {
  31834. fastpathTV.DecMapInt64Int32V(rv2i(rv).(map[int64]int32), false, d)
  31835. }
  31836. }
  31837. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, d *Decoder) {
  31838. v, changed := f.DecMapInt64Int32V(*vp, true, d)
  31839. if changed {
  31840. *vp = v
  31841. }
  31842. }
  31843. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, canChange bool,
  31844. d *Decoder) (_ map[int64]int32, changed bool) {
  31845. dd, esep := d.d, d.hh.hasElemSeparators()
  31846. containerLen := dd.ReadMapStart()
  31847. if canChange && v == nil {
  31848. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31849. v = make(map[int64]int32, xlen)
  31850. changed = true
  31851. }
  31852. if containerLen == 0 {
  31853. dd.ReadMapEnd()
  31854. return v, changed
  31855. }
  31856. d.depthIncr()
  31857. var mk int64
  31858. var mv int32
  31859. hasLen := containerLen > 0
  31860. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31861. if esep {
  31862. dd.ReadMapElemKey()
  31863. }
  31864. mk = dd.DecodeInt64()
  31865. if esep {
  31866. dd.ReadMapElemValue()
  31867. }
  31868. if dd.TryDecodeAsNil() {
  31869. if v == nil {
  31870. } else if d.h.DeleteOnNilMapValue {
  31871. delete(v, mk)
  31872. } else {
  31873. v[mk] = 0
  31874. }
  31875. continue
  31876. }
  31877. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31878. if v != nil {
  31879. v[mk] = mv
  31880. }
  31881. }
  31882. dd.ReadMapEnd()
  31883. d.depthDecr()
  31884. return v, changed
  31885. }
  31886. func (d *Decoder) fastpathDecMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  31887. if rv.Kind() == reflect.Ptr {
  31888. vp := rv2i(rv).(*map[int64]int64)
  31889. v, changed := fastpathTV.DecMapInt64Int64V(*vp, true, d)
  31890. if changed {
  31891. *vp = v
  31892. }
  31893. } else {
  31894. fastpathTV.DecMapInt64Int64V(rv2i(rv).(map[int64]int64), false, d)
  31895. }
  31896. }
  31897. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, d *Decoder) {
  31898. v, changed := f.DecMapInt64Int64V(*vp, true, d)
  31899. if changed {
  31900. *vp = v
  31901. }
  31902. }
  31903. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, canChange bool,
  31904. d *Decoder) (_ map[int64]int64, changed bool) {
  31905. dd, esep := d.d, d.hh.hasElemSeparators()
  31906. containerLen := dd.ReadMapStart()
  31907. if canChange && v == nil {
  31908. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31909. v = make(map[int64]int64, xlen)
  31910. changed = true
  31911. }
  31912. if containerLen == 0 {
  31913. dd.ReadMapEnd()
  31914. return v, changed
  31915. }
  31916. d.depthIncr()
  31917. var mk int64
  31918. var mv int64
  31919. hasLen := containerLen > 0
  31920. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31921. if esep {
  31922. dd.ReadMapElemKey()
  31923. }
  31924. mk = dd.DecodeInt64()
  31925. if esep {
  31926. dd.ReadMapElemValue()
  31927. }
  31928. if dd.TryDecodeAsNil() {
  31929. if v == nil {
  31930. } else if d.h.DeleteOnNilMapValue {
  31931. delete(v, mk)
  31932. } else {
  31933. v[mk] = 0
  31934. }
  31935. continue
  31936. }
  31937. mv = dd.DecodeInt64()
  31938. if v != nil {
  31939. v[mk] = mv
  31940. }
  31941. }
  31942. dd.ReadMapEnd()
  31943. d.depthDecr()
  31944. return v, changed
  31945. }
  31946. func (d *Decoder) fastpathDecMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  31947. if rv.Kind() == reflect.Ptr {
  31948. vp := rv2i(rv).(*map[int64]float32)
  31949. v, changed := fastpathTV.DecMapInt64Float32V(*vp, true, d)
  31950. if changed {
  31951. *vp = v
  31952. }
  31953. } else {
  31954. fastpathTV.DecMapInt64Float32V(rv2i(rv).(map[int64]float32), false, d)
  31955. }
  31956. }
  31957. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, d *Decoder) {
  31958. v, changed := f.DecMapInt64Float32V(*vp, true, d)
  31959. if changed {
  31960. *vp = v
  31961. }
  31962. }
  31963. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, canChange bool,
  31964. d *Decoder) (_ map[int64]float32, changed bool) {
  31965. dd, esep := d.d, d.hh.hasElemSeparators()
  31966. containerLen := dd.ReadMapStart()
  31967. if canChange && v == nil {
  31968. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31969. v = make(map[int64]float32, xlen)
  31970. changed = true
  31971. }
  31972. if containerLen == 0 {
  31973. dd.ReadMapEnd()
  31974. return v, changed
  31975. }
  31976. d.depthIncr()
  31977. var mk int64
  31978. var mv float32
  31979. hasLen := containerLen > 0
  31980. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31981. if esep {
  31982. dd.ReadMapElemKey()
  31983. }
  31984. mk = dd.DecodeInt64()
  31985. if esep {
  31986. dd.ReadMapElemValue()
  31987. }
  31988. if dd.TryDecodeAsNil() {
  31989. if v == nil {
  31990. } else if d.h.DeleteOnNilMapValue {
  31991. delete(v, mk)
  31992. } else {
  31993. v[mk] = 0
  31994. }
  31995. continue
  31996. }
  31997. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  31998. if v != nil {
  31999. v[mk] = mv
  32000. }
  32001. }
  32002. dd.ReadMapEnd()
  32003. d.depthDecr()
  32004. return v, changed
  32005. }
  32006. func (d *Decoder) fastpathDecMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  32007. if rv.Kind() == reflect.Ptr {
  32008. vp := rv2i(rv).(*map[int64]float64)
  32009. v, changed := fastpathTV.DecMapInt64Float64V(*vp, true, d)
  32010. if changed {
  32011. *vp = v
  32012. }
  32013. } else {
  32014. fastpathTV.DecMapInt64Float64V(rv2i(rv).(map[int64]float64), false, d)
  32015. }
  32016. }
  32017. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, d *Decoder) {
  32018. v, changed := f.DecMapInt64Float64V(*vp, true, d)
  32019. if changed {
  32020. *vp = v
  32021. }
  32022. }
  32023. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, canChange bool,
  32024. d *Decoder) (_ map[int64]float64, changed bool) {
  32025. dd, esep := d.d, d.hh.hasElemSeparators()
  32026. containerLen := dd.ReadMapStart()
  32027. if canChange && v == nil {
  32028. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32029. v = make(map[int64]float64, xlen)
  32030. changed = true
  32031. }
  32032. if containerLen == 0 {
  32033. dd.ReadMapEnd()
  32034. return v, changed
  32035. }
  32036. d.depthIncr()
  32037. var mk int64
  32038. var mv float64
  32039. hasLen := containerLen > 0
  32040. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32041. if esep {
  32042. dd.ReadMapElemKey()
  32043. }
  32044. mk = dd.DecodeInt64()
  32045. if esep {
  32046. dd.ReadMapElemValue()
  32047. }
  32048. if dd.TryDecodeAsNil() {
  32049. if v == nil {
  32050. } else if d.h.DeleteOnNilMapValue {
  32051. delete(v, mk)
  32052. } else {
  32053. v[mk] = 0
  32054. }
  32055. continue
  32056. }
  32057. mv = dd.DecodeFloat64()
  32058. if v != nil {
  32059. v[mk] = mv
  32060. }
  32061. }
  32062. dd.ReadMapEnd()
  32063. d.depthDecr()
  32064. return v, changed
  32065. }
  32066. func (d *Decoder) fastpathDecMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  32067. if rv.Kind() == reflect.Ptr {
  32068. vp := rv2i(rv).(*map[int64]bool)
  32069. v, changed := fastpathTV.DecMapInt64BoolV(*vp, true, d)
  32070. if changed {
  32071. *vp = v
  32072. }
  32073. } else {
  32074. fastpathTV.DecMapInt64BoolV(rv2i(rv).(map[int64]bool), false, d)
  32075. }
  32076. }
  32077. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, d *Decoder) {
  32078. v, changed := f.DecMapInt64BoolV(*vp, true, d)
  32079. if changed {
  32080. *vp = v
  32081. }
  32082. }
  32083. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, canChange bool,
  32084. d *Decoder) (_ map[int64]bool, changed bool) {
  32085. dd, esep := d.d, d.hh.hasElemSeparators()
  32086. containerLen := dd.ReadMapStart()
  32087. if canChange && v == nil {
  32088. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32089. v = make(map[int64]bool, xlen)
  32090. changed = true
  32091. }
  32092. if containerLen == 0 {
  32093. dd.ReadMapEnd()
  32094. return v, changed
  32095. }
  32096. d.depthIncr()
  32097. var mk int64
  32098. var mv bool
  32099. hasLen := containerLen > 0
  32100. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32101. if esep {
  32102. dd.ReadMapElemKey()
  32103. }
  32104. mk = dd.DecodeInt64()
  32105. if esep {
  32106. dd.ReadMapElemValue()
  32107. }
  32108. if dd.TryDecodeAsNil() {
  32109. if v == nil {
  32110. } else if d.h.DeleteOnNilMapValue {
  32111. delete(v, mk)
  32112. } else {
  32113. v[mk] = false
  32114. }
  32115. continue
  32116. }
  32117. mv = dd.DecodeBool()
  32118. if v != nil {
  32119. v[mk] = mv
  32120. }
  32121. }
  32122. dd.ReadMapEnd()
  32123. d.depthDecr()
  32124. return v, changed
  32125. }
  32126. func (d *Decoder) fastpathDecMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  32127. if rv.Kind() == reflect.Ptr {
  32128. vp := rv2i(rv).(*map[bool]interface{})
  32129. v, changed := fastpathTV.DecMapBoolIntfV(*vp, true, d)
  32130. if changed {
  32131. *vp = v
  32132. }
  32133. } else {
  32134. fastpathTV.DecMapBoolIntfV(rv2i(rv).(map[bool]interface{}), false, d)
  32135. }
  32136. }
  32137. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, d *Decoder) {
  32138. v, changed := f.DecMapBoolIntfV(*vp, true, d)
  32139. if changed {
  32140. *vp = v
  32141. }
  32142. }
  32143. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, canChange bool,
  32144. d *Decoder) (_ map[bool]interface{}, changed bool) {
  32145. dd, esep := d.d, d.hh.hasElemSeparators()
  32146. containerLen := dd.ReadMapStart()
  32147. if canChange && v == nil {
  32148. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  32149. v = make(map[bool]interface{}, xlen)
  32150. changed = true
  32151. }
  32152. if containerLen == 0 {
  32153. dd.ReadMapEnd()
  32154. return v, changed
  32155. }
  32156. d.depthIncr()
  32157. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  32158. var mk bool
  32159. var mv interface{}
  32160. hasLen := containerLen > 0
  32161. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32162. if esep {
  32163. dd.ReadMapElemKey()
  32164. }
  32165. mk = dd.DecodeBool()
  32166. if esep {
  32167. dd.ReadMapElemValue()
  32168. }
  32169. if dd.TryDecodeAsNil() {
  32170. if v == nil {
  32171. } else if d.h.DeleteOnNilMapValue {
  32172. delete(v, mk)
  32173. } else {
  32174. v[mk] = nil
  32175. }
  32176. continue
  32177. }
  32178. if mapGet {
  32179. mv = v[mk]
  32180. } else {
  32181. mv = nil
  32182. }
  32183. d.decode(&mv)
  32184. if v != nil {
  32185. v[mk] = mv
  32186. }
  32187. }
  32188. dd.ReadMapEnd()
  32189. d.depthDecr()
  32190. return v, changed
  32191. }
  32192. func (d *Decoder) fastpathDecMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  32193. if rv.Kind() == reflect.Ptr {
  32194. vp := rv2i(rv).(*map[bool]string)
  32195. v, changed := fastpathTV.DecMapBoolStringV(*vp, true, d)
  32196. if changed {
  32197. *vp = v
  32198. }
  32199. } else {
  32200. fastpathTV.DecMapBoolStringV(rv2i(rv).(map[bool]string), false, d)
  32201. }
  32202. }
  32203. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, d *Decoder) {
  32204. v, changed := f.DecMapBoolStringV(*vp, true, d)
  32205. if changed {
  32206. *vp = v
  32207. }
  32208. }
  32209. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, canChange bool,
  32210. d *Decoder) (_ map[bool]string, changed bool) {
  32211. dd, esep := d.d, d.hh.hasElemSeparators()
  32212. containerLen := dd.ReadMapStart()
  32213. if canChange && v == nil {
  32214. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  32215. v = make(map[bool]string, xlen)
  32216. changed = true
  32217. }
  32218. if containerLen == 0 {
  32219. dd.ReadMapEnd()
  32220. return v, changed
  32221. }
  32222. d.depthIncr()
  32223. var mk bool
  32224. var mv string
  32225. hasLen := containerLen > 0
  32226. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32227. if esep {
  32228. dd.ReadMapElemKey()
  32229. }
  32230. mk = dd.DecodeBool()
  32231. if esep {
  32232. dd.ReadMapElemValue()
  32233. }
  32234. if dd.TryDecodeAsNil() {
  32235. if v == nil {
  32236. } else if d.h.DeleteOnNilMapValue {
  32237. delete(v, mk)
  32238. } else {
  32239. v[mk] = ""
  32240. }
  32241. continue
  32242. }
  32243. mv = dd.DecodeString()
  32244. if v != nil {
  32245. v[mk] = mv
  32246. }
  32247. }
  32248. dd.ReadMapEnd()
  32249. d.depthDecr()
  32250. return v, changed
  32251. }
  32252. func (d *Decoder) fastpathDecMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  32253. if rv.Kind() == reflect.Ptr {
  32254. vp := rv2i(rv).(*map[bool]uint)
  32255. v, changed := fastpathTV.DecMapBoolUintV(*vp, true, d)
  32256. if changed {
  32257. *vp = v
  32258. }
  32259. } else {
  32260. fastpathTV.DecMapBoolUintV(rv2i(rv).(map[bool]uint), false, d)
  32261. }
  32262. }
  32263. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, d *Decoder) {
  32264. v, changed := f.DecMapBoolUintV(*vp, true, d)
  32265. if changed {
  32266. *vp = v
  32267. }
  32268. }
  32269. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, canChange bool,
  32270. d *Decoder) (_ map[bool]uint, changed bool) {
  32271. dd, esep := d.d, d.hh.hasElemSeparators()
  32272. containerLen := dd.ReadMapStart()
  32273. if canChange && v == nil {
  32274. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32275. v = make(map[bool]uint, xlen)
  32276. changed = true
  32277. }
  32278. if containerLen == 0 {
  32279. dd.ReadMapEnd()
  32280. return v, changed
  32281. }
  32282. d.depthIncr()
  32283. var mk bool
  32284. var mv uint
  32285. hasLen := containerLen > 0
  32286. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32287. if esep {
  32288. dd.ReadMapElemKey()
  32289. }
  32290. mk = dd.DecodeBool()
  32291. if esep {
  32292. dd.ReadMapElemValue()
  32293. }
  32294. if dd.TryDecodeAsNil() {
  32295. if v == nil {
  32296. } else if d.h.DeleteOnNilMapValue {
  32297. delete(v, mk)
  32298. } else {
  32299. v[mk] = 0
  32300. }
  32301. continue
  32302. }
  32303. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  32304. if v != nil {
  32305. v[mk] = mv
  32306. }
  32307. }
  32308. dd.ReadMapEnd()
  32309. d.depthDecr()
  32310. return v, changed
  32311. }
  32312. func (d *Decoder) fastpathDecMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  32313. if rv.Kind() == reflect.Ptr {
  32314. vp := rv2i(rv).(*map[bool]uint8)
  32315. v, changed := fastpathTV.DecMapBoolUint8V(*vp, true, d)
  32316. if changed {
  32317. *vp = v
  32318. }
  32319. } else {
  32320. fastpathTV.DecMapBoolUint8V(rv2i(rv).(map[bool]uint8), false, d)
  32321. }
  32322. }
  32323. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, d *Decoder) {
  32324. v, changed := f.DecMapBoolUint8V(*vp, true, d)
  32325. if changed {
  32326. *vp = v
  32327. }
  32328. }
  32329. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, canChange bool,
  32330. d *Decoder) (_ map[bool]uint8, changed bool) {
  32331. dd, esep := d.d, d.hh.hasElemSeparators()
  32332. containerLen := dd.ReadMapStart()
  32333. if canChange && v == nil {
  32334. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  32335. v = make(map[bool]uint8, xlen)
  32336. changed = true
  32337. }
  32338. if containerLen == 0 {
  32339. dd.ReadMapEnd()
  32340. return v, changed
  32341. }
  32342. d.depthIncr()
  32343. var mk bool
  32344. var mv uint8
  32345. hasLen := containerLen > 0
  32346. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32347. if esep {
  32348. dd.ReadMapElemKey()
  32349. }
  32350. mk = dd.DecodeBool()
  32351. if esep {
  32352. dd.ReadMapElemValue()
  32353. }
  32354. if dd.TryDecodeAsNil() {
  32355. if v == nil {
  32356. } else if d.h.DeleteOnNilMapValue {
  32357. delete(v, mk)
  32358. } else {
  32359. v[mk] = 0
  32360. }
  32361. continue
  32362. }
  32363. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  32364. if v != nil {
  32365. v[mk] = mv
  32366. }
  32367. }
  32368. dd.ReadMapEnd()
  32369. d.depthDecr()
  32370. return v, changed
  32371. }
  32372. func (d *Decoder) fastpathDecMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  32373. if rv.Kind() == reflect.Ptr {
  32374. vp := rv2i(rv).(*map[bool]uint16)
  32375. v, changed := fastpathTV.DecMapBoolUint16V(*vp, true, d)
  32376. if changed {
  32377. *vp = v
  32378. }
  32379. } else {
  32380. fastpathTV.DecMapBoolUint16V(rv2i(rv).(map[bool]uint16), false, d)
  32381. }
  32382. }
  32383. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, d *Decoder) {
  32384. v, changed := f.DecMapBoolUint16V(*vp, true, d)
  32385. if changed {
  32386. *vp = v
  32387. }
  32388. }
  32389. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, canChange bool,
  32390. d *Decoder) (_ map[bool]uint16, changed bool) {
  32391. dd, esep := d.d, d.hh.hasElemSeparators()
  32392. containerLen := dd.ReadMapStart()
  32393. if canChange && v == nil {
  32394. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  32395. v = make(map[bool]uint16, xlen)
  32396. changed = true
  32397. }
  32398. if containerLen == 0 {
  32399. dd.ReadMapEnd()
  32400. return v, changed
  32401. }
  32402. d.depthIncr()
  32403. var mk bool
  32404. var mv uint16
  32405. hasLen := containerLen > 0
  32406. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32407. if esep {
  32408. dd.ReadMapElemKey()
  32409. }
  32410. mk = dd.DecodeBool()
  32411. if esep {
  32412. dd.ReadMapElemValue()
  32413. }
  32414. if dd.TryDecodeAsNil() {
  32415. if v == nil {
  32416. } else if d.h.DeleteOnNilMapValue {
  32417. delete(v, mk)
  32418. } else {
  32419. v[mk] = 0
  32420. }
  32421. continue
  32422. }
  32423. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  32424. if v != nil {
  32425. v[mk] = mv
  32426. }
  32427. }
  32428. dd.ReadMapEnd()
  32429. d.depthDecr()
  32430. return v, changed
  32431. }
  32432. func (d *Decoder) fastpathDecMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  32433. if rv.Kind() == reflect.Ptr {
  32434. vp := rv2i(rv).(*map[bool]uint32)
  32435. v, changed := fastpathTV.DecMapBoolUint32V(*vp, true, d)
  32436. if changed {
  32437. *vp = v
  32438. }
  32439. } else {
  32440. fastpathTV.DecMapBoolUint32V(rv2i(rv).(map[bool]uint32), false, d)
  32441. }
  32442. }
  32443. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, d *Decoder) {
  32444. v, changed := f.DecMapBoolUint32V(*vp, true, d)
  32445. if changed {
  32446. *vp = v
  32447. }
  32448. }
  32449. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, canChange bool,
  32450. d *Decoder) (_ map[bool]uint32, changed bool) {
  32451. dd, esep := d.d, d.hh.hasElemSeparators()
  32452. containerLen := dd.ReadMapStart()
  32453. if canChange && v == nil {
  32454. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32455. v = make(map[bool]uint32, xlen)
  32456. changed = true
  32457. }
  32458. if containerLen == 0 {
  32459. dd.ReadMapEnd()
  32460. return v, changed
  32461. }
  32462. d.depthIncr()
  32463. var mk bool
  32464. var mv uint32
  32465. hasLen := containerLen > 0
  32466. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32467. if esep {
  32468. dd.ReadMapElemKey()
  32469. }
  32470. mk = dd.DecodeBool()
  32471. if esep {
  32472. dd.ReadMapElemValue()
  32473. }
  32474. if dd.TryDecodeAsNil() {
  32475. if v == nil {
  32476. } else if d.h.DeleteOnNilMapValue {
  32477. delete(v, mk)
  32478. } else {
  32479. v[mk] = 0
  32480. }
  32481. continue
  32482. }
  32483. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  32484. if v != nil {
  32485. v[mk] = mv
  32486. }
  32487. }
  32488. dd.ReadMapEnd()
  32489. d.depthDecr()
  32490. return v, changed
  32491. }
  32492. func (d *Decoder) fastpathDecMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  32493. if rv.Kind() == reflect.Ptr {
  32494. vp := rv2i(rv).(*map[bool]uint64)
  32495. v, changed := fastpathTV.DecMapBoolUint64V(*vp, true, d)
  32496. if changed {
  32497. *vp = v
  32498. }
  32499. } else {
  32500. fastpathTV.DecMapBoolUint64V(rv2i(rv).(map[bool]uint64), false, d)
  32501. }
  32502. }
  32503. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, d *Decoder) {
  32504. v, changed := f.DecMapBoolUint64V(*vp, true, d)
  32505. if changed {
  32506. *vp = v
  32507. }
  32508. }
  32509. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, canChange bool,
  32510. d *Decoder) (_ map[bool]uint64, changed bool) {
  32511. dd, esep := d.d, d.hh.hasElemSeparators()
  32512. containerLen := dd.ReadMapStart()
  32513. if canChange && v == nil {
  32514. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32515. v = make(map[bool]uint64, xlen)
  32516. changed = true
  32517. }
  32518. if containerLen == 0 {
  32519. dd.ReadMapEnd()
  32520. return v, changed
  32521. }
  32522. d.depthIncr()
  32523. var mk bool
  32524. var mv uint64
  32525. hasLen := containerLen > 0
  32526. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32527. if esep {
  32528. dd.ReadMapElemKey()
  32529. }
  32530. mk = dd.DecodeBool()
  32531. if esep {
  32532. dd.ReadMapElemValue()
  32533. }
  32534. if dd.TryDecodeAsNil() {
  32535. if v == nil {
  32536. } else if d.h.DeleteOnNilMapValue {
  32537. delete(v, mk)
  32538. } else {
  32539. v[mk] = 0
  32540. }
  32541. continue
  32542. }
  32543. mv = dd.DecodeUint64()
  32544. if v != nil {
  32545. v[mk] = mv
  32546. }
  32547. }
  32548. dd.ReadMapEnd()
  32549. d.depthDecr()
  32550. return v, changed
  32551. }
  32552. func (d *Decoder) fastpathDecMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  32553. if rv.Kind() == reflect.Ptr {
  32554. vp := rv2i(rv).(*map[bool]uintptr)
  32555. v, changed := fastpathTV.DecMapBoolUintptrV(*vp, true, d)
  32556. if changed {
  32557. *vp = v
  32558. }
  32559. } else {
  32560. fastpathTV.DecMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), false, d)
  32561. }
  32562. }
  32563. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, d *Decoder) {
  32564. v, changed := f.DecMapBoolUintptrV(*vp, true, d)
  32565. if changed {
  32566. *vp = v
  32567. }
  32568. }
  32569. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, canChange bool,
  32570. d *Decoder) (_ map[bool]uintptr, changed bool) {
  32571. dd, esep := d.d, d.hh.hasElemSeparators()
  32572. containerLen := dd.ReadMapStart()
  32573. if canChange && v == nil {
  32574. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32575. v = make(map[bool]uintptr, xlen)
  32576. changed = true
  32577. }
  32578. if containerLen == 0 {
  32579. dd.ReadMapEnd()
  32580. return v, changed
  32581. }
  32582. d.depthIncr()
  32583. var mk bool
  32584. var mv uintptr
  32585. hasLen := containerLen > 0
  32586. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32587. if esep {
  32588. dd.ReadMapElemKey()
  32589. }
  32590. mk = dd.DecodeBool()
  32591. if esep {
  32592. dd.ReadMapElemValue()
  32593. }
  32594. if dd.TryDecodeAsNil() {
  32595. if v == nil {
  32596. } else if d.h.DeleteOnNilMapValue {
  32597. delete(v, mk)
  32598. } else {
  32599. v[mk] = 0
  32600. }
  32601. continue
  32602. }
  32603. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  32604. if v != nil {
  32605. v[mk] = mv
  32606. }
  32607. }
  32608. dd.ReadMapEnd()
  32609. d.depthDecr()
  32610. return v, changed
  32611. }
  32612. func (d *Decoder) fastpathDecMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  32613. if rv.Kind() == reflect.Ptr {
  32614. vp := rv2i(rv).(*map[bool]int)
  32615. v, changed := fastpathTV.DecMapBoolIntV(*vp, true, d)
  32616. if changed {
  32617. *vp = v
  32618. }
  32619. } else {
  32620. fastpathTV.DecMapBoolIntV(rv2i(rv).(map[bool]int), false, d)
  32621. }
  32622. }
  32623. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, d *Decoder) {
  32624. v, changed := f.DecMapBoolIntV(*vp, true, d)
  32625. if changed {
  32626. *vp = v
  32627. }
  32628. }
  32629. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, canChange bool,
  32630. d *Decoder) (_ map[bool]int, changed bool) {
  32631. dd, esep := d.d, d.hh.hasElemSeparators()
  32632. containerLen := dd.ReadMapStart()
  32633. if canChange && v == nil {
  32634. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32635. v = make(map[bool]int, xlen)
  32636. changed = true
  32637. }
  32638. if containerLen == 0 {
  32639. dd.ReadMapEnd()
  32640. return v, changed
  32641. }
  32642. d.depthIncr()
  32643. var mk bool
  32644. var mv int
  32645. hasLen := containerLen > 0
  32646. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32647. if esep {
  32648. dd.ReadMapElemKey()
  32649. }
  32650. mk = dd.DecodeBool()
  32651. if esep {
  32652. dd.ReadMapElemValue()
  32653. }
  32654. if dd.TryDecodeAsNil() {
  32655. if v == nil {
  32656. } else if d.h.DeleteOnNilMapValue {
  32657. delete(v, mk)
  32658. } else {
  32659. v[mk] = 0
  32660. }
  32661. continue
  32662. }
  32663. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  32664. if v != nil {
  32665. v[mk] = mv
  32666. }
  32667. }
  32668. dd.ReadMapEnd()
  32669. d.depthDecr()
  32670. return v, changed
  32671. }
  32672. func (d *Decoder) fastpathDecMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  32673. if rv.Kind() == reflect.Ptr {
  32674. vp := rv2i(rv).(*map[bool]int8)
  32675. v, changed := fastpathTV.DecMapBoolInt8V(*vp, true, d)
  32676. if changed {
  32677. *vp = v
  32678. }
  32679. } else {
  32680. fastpathTV.DecMapBoolInt8V(rv2i(rv).(map[bool]int8), false, d)
  32681. }
  32682. }
  32683. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, d *Decoder) {
  32684. v, changed := f.DecMapBoolInt8V(*vp, true, d)
  32685. if changed {
  32686. *vp = v
  32687. }
  32688. }
  32689. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, canChange bool,
  32690. d *Decoder) (_ map[bool]int8, changed bool) {
  32691. dd, esep := d.d, d.hh.hasElemSeparators()
  32692. containerLen := dd.ReadMapStart()
  32693. if canChange && v == nil {
  32694. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  32695. v = make(map[bool]int8, xlen)
  32696. changed = true
  32697. }
  32698. if containerLen == 0 {
  32699. dd.ReadMapEnd()
  32700. return v, changed
  32701. }
  32702. d.depthIncr()
  32703. var mk bool
  32704. var mv int8
  32705. hasLen := containerLen > 0
  32706. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32707. if esep {
  32708. dd.ReadMapElemKey()
  32709. }
  32710. mk = dd.DecodeBool()
  32711. if esep {
  32712. dd.ReadMapElemValue()
  32713. }
  32714. if dd.TryDecodeAsNil() {
  32715. if v == nil {
  32716. } else if d.h.DeleteOnNilMapValue {
  32717. delete(v, mk)
  32718. } else {
  32719. v[mk] = 0
  32720. }
  32721. continue
  32722. }
  32723. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  32724. if v != nil {
  32725. v[mk] = mv
  32726. }
  32727. }
  32728. dd.ReadMapEnd()
  32729. d.depthDecr()
  32730. return v, changed
  32731. }
  32732. func (d *Decoder) fastpathDecMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  32733. if rv.Kind() == reflect.Ptr {
  32734. vp := rv2i(rv).(*map[bool]int16)
  32735. v, changed := fastpathTV.DecMapBoolInt16V(*vp, true, d)
  32736. if changed {
  32737. *vp = v
  32738. }
  32739. } else {
  32740. fastpathTV.DecMapBoolInt16V(rv2i(rv).(map[bool]int16), false, d)
  32741. }
  32742. }
  32743. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, d *Decoder) {
  32744. v, changed := f.DecMapBoolInt16V(*vp, true, d)
  32745. if changed {
  32746. *vp = v
  32747. }
  32748. }
  32749. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, canChange bool,
  32750. d *Decoder) (_ map[bool]int16, changed bool) {
  32751. dd, esep := d.d, d.hh.hasElemSeparators()
  32752. containerLen := dd.ReadMapStart()
  32753. if canChange && v == nil {
  32754. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  32755. v = make(map[bool]int16, xlen)
  32756. changed = true
  32757. }
  32758. if containerLen == 0 {
  32759. dd.ReadMapEnd()
  32760. return v, changed
  32761. }
  32762. d.depthIncr()
  32763. var mk bool
  32764. var mv int16
  32765. hasLen := containerLen > 0
  32766. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32767. if esep {
  32768. dd.ReadMapElemKey()
  32769. }
  32770. mk = dd.DecodeBool()
  32771. if esep {
  32772. dd.ReadMapElemValue()
  32773. }
  32774. if dd.TryDecodeAsNil() {
  32775. if v == nil {
  32776. } else if d.h.DeleteOnNilMapValue {
  32777. delete(v, mk)
  32778. } else {
  32779. v[mk] = 0
  32780. }
  32781. continue
  32782. }
  32783. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  32784. if v != nil {
  32785. v[mk] = mv
  32786. }
  32787. }
  32788. dd.ReadMapEnd()
  32789. d.depthDecr()
  32790. return v, changed
  32791. }
  32792. func (d *Decoder) fastpathDecMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  32793. if rv.Kind() == reflect.Ptr {
  32794. vp := rv2i(rv).(*map[bool]int32)
  32795. v, changed := fastpathTV.DecMapBoolInt32V(*vp, true, d)
  32796. if changed {
  32797. *vp = v
  32798. }
  32799. } else {
  32800. fastpathTV.DecMapBoolInt32V(rv2i(rv).(map[bool]int32), false, d)
  32801. }
  32802. }
  32803. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, d *Decoder) {
  32804. v, changed := f.DecMapBoolInt32V(*vp, true, d)
  32805. if changed {
  32806. *vp = v
  32807. }
  32808. }
  32809. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, canChange bool,
  32810. d *Decoder) (_ map[bool]int32, changed bool) {
  32811. dd, esep := d.d, d.hh.hasElemSeparators()
  32812. containerLen := dd.ReadMapStart()
  32813. if canChange && v == nil {
  32814. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32815. v = make(map[bool]int32, xlen)
  32816. changed = true
  32817. }
  32818. if containerLen == 0 {
  32819. dd.ReadMapEnd()
  32820. return v, changed
  32821. }
  32822. d.depthIncr()
  32823. var mk bool
  32824. var mv int32
  32825. hasLen := containerLen > 0
  32826. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32827. if esep {
  32828. dd.ReadMapElemKey()
  32829. }
  32830. mk = dd.DecodeBool()
  32831. if esep {
  32832. dd.ReadMapElemValue()
  32833. }
  32834. if dd.TryDecodeAsNil() {
  32835. if v == nil {
  32836. } else if d.h.DeleteOnNilMapValue {
  32837. delete(v, mk)
  32838. } else {
  32839. v[mk] = 0
  32840. }
  32841. continue
  32842. }
  32843. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32844. if v != nil {
  32845. v[mk] = mv
  32846. }
  32847. }
  32848. dd.ReadMapEnd()
  32849. d.depthDecr()
  32850. return v, changed
  32851. }
  32852. func (d *Decoder) fastpathDecMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  32853. if rv.Kind() == reflect.Ptr {
  32854. vp := rv2i(rv).(*map[bool]int64)
  32855. v, changed := fastpathTV.DecMapBoolInt64V(*vp, true, d)
  32856. if changed {
  32857. *vp = v
  32858. }
  32859. } else {
  32860. fastpathTV.DecMapBoolInt64V(rv2i(rv).(map[bool]int64), false, d)
  32861. }
  32862. }
  32863. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, d *Decoder) {
  32864. v, changed := f.DecMapBoolInt64V(*vp, true, d)
  32865. if changed {
  32866. *vp = v
  32867. }
  32868. }
  32869. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, canChange bool,
  32870. d *Decoder) (_ map[bool]int64, changed bool) {
  32871. dd, esep := d.d, d.hh.hasElemSeparators()
  32872. containerLen := dd.ReadMapStart()
  32873. if canChange && v == nil {
  32874. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32875. v = make(map[bool]int64, xlen)
  32876. changed = true
  32877. }
  32878. if containerLen == 0 {
  32879. dd.ReadMapEnd()
  32880. return v, changed
  32881. }
  32882. d.depthIncr()
  32883. var mk bool
  32884. var mv int64
  32885. hasLen := containerLen > 0
  32886. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32887. if esep {
  32888. dd.ReadMapElemKey()
  32889. }
  32890. mk = dd.DecodeBool()
  32891. if esep {
  32892. dd.ReadMapElemValue()
  32893. }
  32894. if dd.TryDecodeAsNil() {
  32895. if v == nil {
  32896. } else if d.h.DeleteOnNilMapValue {
  32897. delete(v, mk)
  32898. } else {
  32899. v[mk] = 0
  32900. }
  32901. continue
  32902. }
  32903. mv = dd.DecodeInt64()
  32904. if v != nil {
  32905. v[mk] = mv
  32906. }
  32907. }
  32908. dd.ReadMapEnd()
  32909. d.depthDecr()
  32910. return v, changed
  32911. }
  32912. func (d *Decoder) fastpathDecMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  32913. if rv.Kind() == reflect.Ptr {
  32914. vp := rv2i(rv).(*map[bool]float32)
  32915. v, changed := fastpathTV.DecMapBoolFloat32V(*vp, true, d)
  32916. if changed {
  32917. *vp = v
  32918. }
  32919. } else {
  32920. fastpathTV.DecMapBoolFloat32V(rv2i(rv).(map[bool]float32), false, d)
  32921. }
  32922. }
  32923. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, d *Decoder) {
  32924. v, changed := f.DecMapBoolFloat32V(*vp, true, d)
  32925. if changed {
  32926. *vp = v
  32927. }
  32928. }
  32929. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, canChange bool,
  32930. d *Decoder) (_ map[bool]float32, changed bool) {
  32931. dd, esep := d.d, d.hh.hasElemSeparators()
  32932. containerLen := dd.ReadMapStart()
  32933. if canChange && v == nil {
  32934. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32935. v = make(map[bool]float32, xlen)
  32936. changed = true
  32937. }
  32938. if containerLen == 0 {
  32939. dd.ReadMapEnd()
  32940. return v, changed
  32941. }
  32942. d.depthIncr()
  32943. var mk bool
  32944. var mv float32
  32945. hasLen := containerLen > 0
  32946. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32947. if esep {
  32948. dd.ReadMapElemKey()
  32949. }
  32950. mk = dd.DecodeBool()
  32951. if esep {
  32952. dd.ReadMapElemValue()
  32953. }
  32954. if dd.TryDecodeAsNil() {
  32955. if v == nil {
  32956. } else if d.h.DeleteOnNilMapValue {
  32957. delete(v, mk)
  32958. } else {
  32959. v[mk] = 0
  32960. }
  32961. continue
  32962. }
  32963. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  32964. if v != nil {
  32965. v[mk] = mv
  32966. }
  32967. }
  32968. dd.ReadMapEnd()
  32969. d.depthDecr()
  32970. return v, changed
  32971. }
  32972. func (d *Decoder) fastpathDecMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  32973. if rv.Kind() == reflect.Ptr {
  32974. vp := rv2i(rv).(*map[bool]float64)
  32975. v, changed := fastpathTV.DecMapBoolFloat64V(*vp, true, d)
  32976. if changed {
  32977. *vp = v
  32978. }
  32979. } else {
  32980. fastpathTV.DecMapBoolFloat64V(rv2i(rv).(map[bool]float64), false, d)
  32981. }
  32982. }
  32983. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, d *Decoder) {
  32984. v, changed := f.DecMapBoolFloat64V(*vp, true, d)
  32985. if changed {
  32986. *vp = v
  32987. }
  32988. }
  32989. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, canChange bool,
  32990. d *Decoder) (_ map[bool]float64, changed bool) {
  32991. dd, esep := d.d, d.hh.hasElemSeparators()
  32992. containerLen := dd.ReadMapStart()
  32993. if canChange && v == nil {
  32994. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32995. v = make(map[bool]float64, xlen)
  32996. changed = true
  32997. }
  32998. if containerLen == 0 {
  32999. dd.ReadMapEnd()
  33000. return v, changed
  33001. }
  33002. d.depthIncr()
  33003. var mk bool
  33004. var mv float64
  33005. hasLen := containerLen > 0
  33006. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33007. if esep {
  33008. dd.ReadMapElemKey()
  33009. }
  33010. mk = dd.DecodeBool()
  33011. if esep {
  33012. dd.ReadMapElemValue()
  33013. }
  33014. if dd.TryDecodeAsNil() {
  33015. if v == nil {
  33016. } else if d.h.DeleteOnNilMapValue {
  33017. delete(v, mk)
  33018. } else {
  33019. v[mk] = 0
  33020. }
  33021. continue
  33022. }
  33023. mv = dd.DecodeFloat64()
  33024. if v != nil {
  33025. v[mk] = mv
  33026. }
  33027. }
  33028. dd.ReadMapEnd()
  33029. d.depthDecr()
  33030. return v, changed
  33031. }
  33032. func (d *Decoder) fastpathDecMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  33033. if rv.Kind() == reflect.Ptr {
  33034. vp := rv2i(rv).(*map[bool]bool)
  33035. v, changed := fastpathTV.DecMapBoolBoolV(*vp, true, d)
  33036. if changed {
  33037. *vp = v
  33038. }
  33039. } else {
  33040. fastpathTV.DecMapBoolBoolV(rv2i(rv).(map[bool]bool), false, d)
  33041. }
  33042. }
  33043. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, d *Decoder) {
  33044. v, changed := f.DecMapBoolBoolV(*vp, true, d)
  33045. if changed {
  33046. *vp = v
  33047. }
  33048. }
  33049. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, canChange bool,
  33050. d *Decoder) (_ map[bool]bool, changed bool) {
  33051. dd, esep := d.d, d.hh.hasElemSeparators()
  33052. containerLen := dd.ReadMapStart()
  33053. if canChange && v == nil {
  33054. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  33055. v = make(map[bool]bool, xlen)
  33056. changed = true
  33057. }
  33058. if containerLen == 0 {
  33059. dd.ReadMapEnd()
  33060. return v, changed
  33061. }
  33062. d.depthIncr()
  33063. var mk bool
  33064. var mv bool
  33065. hasLen := containerLen > 0
  33066. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33067. if esep {
  33068. dd.ReadMapElemKey()
  33069. }
  33070. mk = dd.DecodeBool()
  33071. if esep {
  33072. dd.ReadMapElemValue()
  33073. }
  33074. if dd.TryDecodeAsNil() {
  33075. if v == nil {
  33076. } else if d.h.DeleteOnNilMapValue {
  33077. delete(v, mk)
  33078. } else {
  33079. v[mk] = false
  33080. }
  33081. continue
  33082. }
  33083. mv = dd.DecodeBool()
  33084. if v != nil {
  33085. v[mk] = mv
  33086. }
  33087. }
  33088. dd.ReadMapEnd()
  33089. d.depthDecr()
  33090. return v, changed
  33091. }