fast-path.generated.go 751 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002
  1. // +build !notfastpath
  2. // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a MIT license found in the LICENSE file.
  4. // Code generated from fast-path.go.tmpl - DO NOT EDIT.
  5. package codec
  6. // Fast path functions try to create a fast path encode or decode implementation
  7. // for common maps and slices.
  8. //
  9. // We define the functions and register then in this single file
  10. // so as not to pollute the encode.go and decode.go, and create a dependency in there.
  11. // This file can be omitted without causing a build failure.
  12. //
  13. // The advantage of fast paths is:
  14. // - Many calls bypass reflection altogether
  15. //
  16. // Currently support
  17. // - slice of all builtin types,
  18. // - map of all builtin types to string or interface value
  19. // - symmetrical maps of all builtin types (e.g. str-str, uint8-uint8)
  20. // This should provide adequate "typical" implementations.
  21. //
  22. // Note that fast track decode functions must handle values for which an address cannot be obtained.
  23. // For example:
  24. // m2 := map[string]int{}
  25. // p2 := []interface{}{m2}
  26. // // decoding into p2 will bomb if fast track functions do not treat like unaddressable.
  27. //
  28. import (
  29. "reflect"
  30. "sort"
  31. )
  32. const fastpathEnabled = true
  33. type fastpathT struct{}
  34. var fastpathTV fastpathT
  35. type fastpathE struct {
  36. rtid uintptr
  37. rt reflect.Type
  38. encfn func(*Encoder, *codecFnInfo, reflect.Value)
  39. decfn func(*Decoder, *codecFnInfo, reflect.Value)
  40. }
  41. type fastpathA [271]fastpathE
  42. func (x *fastpathA) index(rtid uintptr) int {
  43. // use binary search to grab the index (adapted from sort/search.go)
  44. h, i, j := 0, 0, 271 // len(x)
  45. for i < j {
  46. h = i + (j-i)/2
  47. if x[h].rtid < rtid {
  48. i = h + 1
  49. } else {
  50. j = h
  51. }
  52. }
  53. if i < 271 && x[i].rtid == rtid {
  54. return i
  55. }
  56. return -1
  57. }
  58. type fastpathAslice []fastpathE
  59. func (x fastpathAslice) Len() int { return len(x) }
  60. func (x fastpathAslice) Less(i, j int) bool { return x[i].rtid < x[j].rtid }
  61. func (x fastpathAslice) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
  62. var fastpathAV fastpathA
  63. // due to possible initialization loop error, make fastpath in an init()
  64. func init() {
  65. i := 0
  66. fn := func(v interface{},
  67. fe func(*Encoder, *codecFnInfo, reflect.Value),
  68. fd func(*Decoder, *codecFnInfo, reflect.Value)) (f fastpathE) {
  69. xrt := reflect.TypeOf(v)
  70. xptr := rt2id(xrt)
  71. fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
  72. i++
  73. return
  74. }
  75. fn([]interface{}(nil), (*Encoder).fastpathEncSliceIntfR, (*Decoder).fastpathDecSliceIntfR)
  76. fn([]string(nil), (*Encoder).fastpathEncSliceStringR, (*Decoder).fastpathDecSliceStringR)
  77. fn([]float32(nil), (*Encoder).fastpathEncSliceFloat32R, (*Decoder).fastpathDecSliceFloat32R)
  78. fn([]float64(nil), (*Encoder).fastpathEncSliceFloat64R, (*Decoder).fastpathDecSliceFloat64R)
  79. fn([]uint(nil), (*Encoder).fastpathEncSliceUintR, (*Decoder).fastpathDecSliceUintR)
  80. fn([]uint16(nil), (*Encoder).fastpathEncSliceUint16R, (*Decoder).fastpathDecSliceUint16R)
  81. fn([]uint32(nil), (*Encoder).fastpathEncSliceUint32R, (*Decoder).fastpathDecSliceUint32R)
  82. fn([]uint64(nil), (*Encoder).fastpathEncSliceUint64R, (*Decoder).fastpathDecSliceUint64R)
  83. fn([]uintptr(nil), (*Encoder).fastpathEncSliceUintptrR, (*Decoder).fastpathDecSliceUintptrR)
  84. fn([]int(nil), (*Encoder).fastpathEncSliceIntR, (*Decoder).fastpathDecSliceIntR)
  85. fn([]int8(nil), (*Encoder).fastpathEncSliceInt8R, (*Decoder).fastpathDecSliceInt8R)
  86. fn([]int16(nil), (*Encoder).fastpathEncSliceInt16R, (*Decoder).fastpathDecSliceInt16R)
  87. fn([]int32(nil), (*Encoder).fastpathEncSliceInt32R, (*Decoder).fastpathDecSliceInt32R)
  88. fn([]int64(nil), (*Encoder).fastpathEncSliceInt64R, (*Decoder).fastpathDecSliceInt64R)
  89. fn([]bool(nil), (*Encoder).fastpathEncSliceBoolR, (*Decoder).fastpathDecSliceBoolR)
  90. fn(map[interface{}]interface{}(nil), (*Encoder).fastpathEncMapIntfIntfR, (*Decoder).fastpathDecMapIntfIntfR)
  91. fn(map[interface{}]string(nil), (*Encoder).fastpathEncMapIntfStringR, (*Decoder).fastpathDecMapIntfStringR)
  92. fn(map[interface{}]uint(nil), (*Encoder).fastpathEncMapIntfUintR, (*Decoder).fastpathDecMapIntfUintR)
  93. fn(map[interface{}]uint8(nil), (*Encoder).fastpathEncMapIntfUint8R, (*Decoder).fastpathDecMapIntfUint8R)
  94. fn(map[interface{}]uint16(nil), (*Encoder).fastpathEncMapIntfUint16R, (*Decoder).fastpathDecMapIntfUint16R)
  95. fn(map[interface{}]uint32(nil), (*Encoder).fastpathEncMapIntfUint32R, (*Decoder).fastpathDecMapIntfUint32R)
  96. fn(map[interface{}]uint64(nil), (*Encoder).fastpathEncMapIntfUint64R, (*Decoder).fastpathDecMapIntfUint64R)
  97. fn(map[interface{}]uintptr(nil), (*Encoder).fastpathEncMapIntfUintptrR, (*Decoder).fastpathDecMapIntfUintptrR)
  98. fn(map[interface{}]int(nil), (*Encoder).fastpathEncMapIntfIntR, (*Decoder).fastpathDecMapIntfIntR)
  99. fn(map[interface{}]int8(nil), (*Encoder).fastpathEncMapIntfInt8R, (*Decoder).fastpathDecMapIntfInt8R)
  100. fn(map[interface{}]int16(nil), (*Encoder).fastpathEncMapIntfInt16R, (*Decoder).fastpathDecMapIntfInt16R)
  101. fn(map[interface{}]int32(nil), (*Encoder).fastpathEncMapIntfInt32R, (*Decoder).fastpathDecMapIntfInt32R)
  102. fn(map[interface{}]int64(nil), (*Encoder).fastpathEncMapIntfInt64R, (*Decoder).fastpathDecMapIntfInt64R)
  103. fn(map[interface{}]float32(nil), (*Encoder).fastpathEncMapIntfFloat32R, (*Decoder).fastpathDecMapIntfFloat32R)
  104. fn(map[interface{}]float64(nil), (*Encoder).fastpathEncMapIntfFloat64R, (*Decoder).fastpathDecMapIntfFloat64R)
  105. fn(map[interface{}]bool(nil), (*Encoder).fastpathEncMapIntfBoolR, (*Decoder).fastpathDecMapIntfBoolR)
  106. fn(map[string]interface{}(nil), (*Encoder).fastpathEncMapStringIntfR, (*Decoder).fastpathDecMapStringIntfR)
  107. fn(map[string]string(nil), (*Encoder).fastpathEncMapStringStringR, (*Decoder).fastpathDecMapStringStringR)
  108. fn(map[string]uint(nil), (*Encoder).fastpathEncMapStringUintR, (*Decoder).fastpathDecMapStringUintR)
  109. fn(map[string]uint8(nil), (*Encoder).fastpathEncMapStringUint8R, (*Decoder).fastpathDecMapStringUint8R)
  110. fn(map[string]uint16(nil), (*Encoder).fastpathEncMapStringUint16R, (*Decoder).fastpathDecMapStringUint16R)
  111. fn(map[string]uint32(nil), (*Encoder).fastpathEncMapStringUint32R, (*Decoder).fastpathDecMapStringUint32R)
  112. fn(map[string]uint64(nil), (*Encoder).fastpathEncMapStringUint64R, (*Decoder).fastpathDecMapStringUint64R)
  113. fn(map[string]uintptr(nil), (*Encoder).fastpathEncMapStringUintptrR, (*Decoder).fastpathDecMapStringUintptrR)
  114. fn(map[string]int(nil), (*Encoder).fastpathEncMapStringIntR, (*Decoder).fastpathDecMapStringIntR)
  115. fn(map[string]int8(nil), (*Encoder).fastpathEncMapStringInt8R, (*Decoder).fastpathDecMapStringInt8R)
  116. fn(map[string]int16(nil), (*Encoder).fastpathEncMapStringInt16R, (*Decoder).fastpathDecMapStringInt16R)
  117. fn(map[string]int32(nil), (*Encoder).fastpathEncMapStringInt32R, (*Decoder).fastpathDecMapStringInt32R)
  118. fn(map[string]int64(nil), (*Encoder).fastpathEncMapStringInt64R, (*Decoder).fastpathDecMapStringInt64R)
  119. fn(map[string]float32(nil), (*Encoder).fastpathEncMapStringFloat32R, (*Decoder).fastpathDecMapStringFloat32R)
  120. fn(map[string]float64(nil), (*Encoder).fastpathEncMapStringFloat64R, (*Decoder).fastpathDecMapStringFloat64R)
  121. fn(map[string]bool(nil), (*Encoder).fastpathEncMapStringBoolR, (*Decoder).fastpathDecMapStringBoolR)
  122. fn(map[float32]interface{}(nil), (*Encoder).fastpathEncMapFloat32IntfR, (*Decoder).fastpathDecMapFloat32IntfR)
  123. fn(map[float32]string(nil), (*Encoder).fastpathEncMapFloat32StringR, (*Decoder).fastpathDecMapFloat32StringR)
  124. fn(map[float32]uint(nil), (*Encoder).fastpathEncMapFloat32UintR, (*Decoder).fastpathDecMapFloat32UintR)
  125. fn(map[float32]uint8(nil), (*Encoder).fastpathEncMapFloat32Uint8R, (*Decoder).fastpathDecMapFloat32Uint8R)
  126. fn(map[float32]uint16(nil), (*Encoder).fastpathEncMapFloat32Uint16R, (*Decoder).fastpathDecMapFloat32Uint16R)
  127. fn(map[float32]uint32(nil), (*Encoder).fastpathEncMapFloat32Uint32R, (*Decoder).fastpathDecMapFloat32Uint32R)
  128. fn(map[float32]uint64(nil), (*Encoder).fastpathEncMapFloat32Uint64R, (*Decoder).fastpathDecMapFloat32Uint64R)
  129. fn(map[float32]uintptr(nil), (*Encoder).fastpathEncMapFloat32UintptrR, (*Decoder).fastpathDecMapFloat32UintptrR)
  130. fn(map[float32]int(nil), (*Encoder).fastpathEncMapFloat32IntR, (*Decoder).fastpathDecMapFloat32IntR)
  131. fn(map[float32]int8(nil), (*Encoder).fastpathEncMapFloat32Int8R, (*Decoder).fastpathDecMapFloat32Int8R)
  132. fn(map[float32]int16(nil), (*Encoder).fastpathEncMapFloat32Int16R, (*Decoder).fastpathDecMapFloat32Int16R)
  133. fn(map[float32]int32(nil), (*Encoder).fastpathEncMapFloat32Int32R, (*Decoder).fastpathDecMapFloat32Int32R)
  134. fn(map[float32]int64(nil), (*Encoder).fastpathEncMapFloat32Int64R, (*Decoder).fastpathDecMapFloat32Int64R)
  135. fn(map[float32]float32(nil), (*Encoder).fastpathEncMapFloat32Float32R, (*Decoder).fastpathDecMapFloat32Float32R)
  136. fn(map[float32]float64(nil), (*Encoder).fastpathEncMapFloat32Float64R, (*Decoder).fastpathDecMapFloat32Float64R)
  137. fn(map[float32]bool(nil), (*Encoder).fastpathEncMapFloat32BoolR, (*Decoder).fastpathDecMapFloat32BoolR)
  138. fn(map[float64]interface{}(nil), (*Encoder).fastpathEncMapFloat64IntfR, (*Decoder).fastpathDecMapFloat64IntfR)
  139. fn(map[float64]string(nil), (*Encoder).fastpathEncMapFloat64StringR, (*Decoder).fastpathDecMapFloat64StringR)
  140. fn(map[float64]uint(nil), (*Encoder).fastpathEncMapFloat64UintR, (*Decoder).fastpathDecMapFloat64UintR)
  141. fn(map[float64]uint8(nil), (*Encoder).fastpathEncMapFloat64Uint8R, (*Decoder).fastpathDecMapFloat64Uint8R)
  142. fn(map[float64]uint16(nil), (*Encoder).fastpathEncMapFloat64Uint16R, (*Decoder).fastpathDecMapFloat64Uint16R)
  143. fn(map[float64]uint32(nil), (*Encoder).fastpathEncMapFloat64Uint32R, (*Decoder).fastpathDecMapFloat64Uint32R)
  144. fn(map[float64]uint64(nil), (*Encoder).fastpathEncMapFloat64Uint64R, (*Decoder).fastpathDecMapFloat64Uint64R)
  145. fn(map[float64]uintptr(nil), (*Encoder).fastpathEncMapFloat64UintptrR, (*Decoder).fastpathDecMapFloat64UintptrR)
  146. fn(map[float64]int(nil), (*Encoder).fastpathEncMapFloat64IntR, (*Decoder).fastpathDecMapFloat64IntR)
  147. fn(map[float64]int8(nil), (*Encoder).fastpathEncMapFloat64Int8R, (*Decoder).fastpathDecMapFloat64Int8R)
  148. fn(map[float64]int16(nil), (*Encoder).fastpathEncMapFloat64Int16R, (*Decoder).fastpathDecMapFloat64Int16R)
  149. fn(map[float64]int32(nil), (*Encoder).fastpathEncMapFloat64Int32R, (*Decoder).fastpathDecMapFloat64Int32R)
  150. fn(map[float64]int64(nil), (*Encoder).fastpathEncMapFloat64Int64R, (*Decoder).fastpathDecMapFloat64Int64R)
  151. fn(map[float64]float32(nil), (*Encoder).fastpathEncMapFloat64Float32R, (*Decoder).fastpathDecMapFloat64Float32R)
  152. fn(map[float64]float64(nil), (*Encoder).fastpathEncMapFloat64Float64R, (*Decoder).fastpathDecMapFloat64Float64R)
  153. fn(map[float64]bool(nil), (*Encoder).fastpathEncMapFloat64BoolR, (*Decoder).fastpathDecMapFloat64BoolR)
  154. fn(map[uint]interface{}(nil), (*Encoder).fastpathEncMapUintIntfR, (*Decoder).fastpathDecMapUintIntfR)
  155. fn(map[uint]string(nil), (*Encoder).fastpathEncMapUintStringR, (*Decoder).fastpathDecMapUintStringR)
  156. fn(map[uint]uint(nil), (*Encoder).fastpathEncMapUintUintR, (*Decoder).fastpathDecMapUintUintR)
  157. fn(map[uint]uint8(nil), (*Encoder).fastpathEncMapUintUint8R, (*Decoder).fastpathDecMapUintUint8R)
  158. fn(map[uint]uint16(nil), (*Encoder).fastpathEncMapUintUint16R, (*Decoder).fastpathDecMapUintUint16R)
  159. fn(map[uint]uint32(nil), (*Encoder).fastpathEncMapUintUint32R, (*Decoder).fastpathDecMapUintUint32R)
  160. fn(map[uint]uint64(nil), (*Encoder).fastpathEncMapUintUint64R, (*Decoder).fastpathDecMapUintUint64R)
  161. fn(map[uint]uintptr(nil), (*Encoder).fastpathEncMapUintUintptrR, (*Decoder).fastpathDecMapUintUintptrR)
  162. fn(map[uint]int(nil), (*Encoder).fastpathEncMapUintIntR, (*Decoder).fastpathDecMapUintIntR)
  163. fn(map[uint]int8(nil), (*Encoder).fastpathEncMapUintInt8R, (*Decoder).fastpathDecMapUintInt8R)
  164. fn(map[uint]int16(nil), (*Encoder).fastpathEncMapUintInt16R, (*Decoder).fastpathDecMapUintInt16R)
  165. fn(map[uint]int32(nil), (*Encoder).fastpathEncMapUintInt32R, (*Decoder).fastpathDecMapUintInt32R)
  166. fn(map[uint]int64(nil), (*Encoder).fastpathEncMapUintInt64R, (*Decoder).fastpathDecMapUintInt64R)
  167. fn(map[uint]float32(nil), (*Encoder).fastpathEncMapUintFloat32R, (*Decoder).fastpathDecMapUintFloat32R)
  168. fn(map[uint]float64(nil), (*Encoder).fastpathEncMapUintFloat64R, (*Decoder).fastpathDecMapUintFloat64R)
  169. fn(map[uint]bool(nil), (*Encoder).fastpathEncMapUintBoolR, (*Decoder).fastpathDecMapUintBoolR)
  170. fn(map[uint8]interface{}(nil), (*Encoder).fastpathEncMapUint8IntfR, (*Decoder).fastpathDecMapUint8IntfR)
  171. fn(map[uint8]string(nil), (*Encoder).fastpathEncMapUint8StringR, (*Decoder).fastpathDecMapUint8StringR)
  172. fn(map[uint8]uint(nil), (*Encoder).fastpathEncMapUint8UintR, (*Decoder).fastpathDecMapUint8UintR)
  173. fn(map[uint8]uint8(nil), (*Encoder).fastpathEncMapUint8Uint8R, (*Decoder).fastpathDecMapUint8Uint8R)
  174. fn(map[uint8]uint16(nil), (*Encoder).fastpathEncMapUint8Uint16R, (*Decoder).fastpathDecMapUint8Uint16R)
  175. fn(map[uint8]uint32(nil), (*Encoder).fastpathEncMapUint8Uint32R, (*Decoder).fastpathDecMapUint8Uint32R)
  176. fn(map[uint8]uint64(nil), (*Encoder).fastpathEncMapUint8Uint64R, (*Decoder).fastpathDecMapUint8Uint64R)
  177. fn(map[uint8]uintptr(nil), (*Encoder).fastpathEncMapUint8UintptrR, (*Decoder).fastpathDecMapUint8UintptrR)
  178. fn(map[uint8]int(nil), (*Encoder).fastpathEncMapUint8IntR, (*Decoder).fastpathDecMapUint8IntR)
  179. fn(map[uint8]int8(nil), (*Encoder).fastpathEncMapUint8Int8R, (*Decoder).fastpathDecMapUint8Int8R)
  180. fn(map[uint8]int16(nil), (*Encoder).fastpathEncMapUint8Int16R, (*Decoder).fastpathDecMapUint8Int16R)
  181. fn(map[uint8]int32(nil), (*Encoder).fastpathEncMapUint8Int32R, (*Decoder).fastpathDecMapUint8Int32R)
  182. fn(map[uint8]int64(nil), (*Encoder).fastpathEncMapUint8Int64R, (*Decoder).fastpathDecMapUint8Int64R)
  183. fn(map[uint8]float32(nil), (*Encoder).fastpathEncMapUint8Float32R, (*Decoder).fastpathDecMapUint8Float32R)
  184. fn(map[uint8]float64(nil), (*Encoder).fastpathEncMapUint8Float64R, (*Decoder).fastpathDecMapUint8Float64R)
  185. fn(map[uint8]bool(nil), (*Encoder).fastpathEncMapUint8BoolR, (*Decoder).fastpathDecMapUint8BoolR)
  186. fn(map[uint16]interface{}(nil), (*Encoder).fastpathEncMapUint16IntfR, (*Decoder).fastpathDecMapUint16IntfR)
  187. fn(map[uint16]string(nil), (*Encoder).fastpathEncMapUint16StringR, (*Decoder).fastpathDecMapUint16StringR)
  188. fn(map[uint16]uint(nil), (*Encoder).fastpathEncMapUint16UintR, (*Decoder).fastpathDecMapUint16UintR)
  189. fn(map[uint16]uint8(nil), (*Encoder).fastpathEncMapUint16Uint8R, (*Decoder).fastpathDecMapUint16Uint8R)
  190. fn(map[uint16]uint16(nil), (*Encoder).fastpathEncMapUint16Uint16R, (*Decoder).fastpathDecMapUint16Uint16R)
  191. fn(map[uint16]uint32(nil), (*Encoder).fastpathEncMapUint16Uint32R, (*Decoder).fastpathDecMapUint16Uint32R)
  192. fn(map[uint16]uint64(nil), (*Encoder).fastpathEncMapUint16Uint64R, (*Decoder).fastpathDecMapUint16Uint64R)
  193. fn(map[uint16]uintptr(nil), (*Encoder).fastpathEncMapUint16UintptrR, (*Decoder).fastpathDecMapUint16UintptrR)
  194. fn(map[uint16]int(nil), (*Encoder).fastpathEncMapUint16IntR, (*Decoder).fastpathDecMapUint16IntR)
  195. fn(map[uint16]int8(nil), (*Encoder).fastpathEncMapUint16Int8R, (*Decoder).fastpathDecMapUint16Int8R)
  196. fn(map[uint16]int16(nil), (*Encoder).fastpathEncMapUint16Int16R, (*Decoder).fastpathDecMapUint16Int16R)
  197. fn(map[uint16]int32(nil), (*Encoder).fastpathEncMapUint16Int32R, (*Decoder).fastpathDecMapUint16Int32R)
  198. fn(map[uint16]int64(nil), (*Encoder).fastpathEncMapUint16Int64R, (*Decoder).fastpathDecMapUint16Int64R)
  199. fn(map[uint16]float32(nil), (*Encoder).fastpathEncMapUint16Float32R, (*Decoder).fastpathDecMapUint16Float32R)
  200. fn(map[uint16]float64(nil), (*Encoder).fastpathEncMapUint16Float64R, (*Decoder).fastpathDecMapUint16Float64R)
  201. fn(map[uint16]bool(nil), (*Encoder).fastpathEncMapUint16BoolR, (*Decoder).fastpathDecMapUint16BoolR)
  202. fn(map[uint32]interface{}(nil), (*Encoder).fastpathEncMapUint32IntfR, (*Decoder).fastpathDecMapUint32IntfR)
  203. fn(map[uint32]string(nil), (*Encoder).fastpathEncMapUint32StringR, (*Decoder).fastpathDecMapUint32StringR)
  204. fn(map[uint32]uint(nil), (*Encoder).fastpathEncMapUint32UintR, (*Decoder).fastpathDecMapUint32UintR)
  205. fn(map[uint32]uint8(nil), (*Encoder).fastpathEncMapUint32Uint8R, (*Decoder).fastpathDecMapUint32Uint8R)
  206. fn(map[uint32]uint16(nil), (*Encoder).fastpathEncMapUint32Uint16R, (*Decoder).fastpathDecMapUint32Uint16R)
  207. fn(map[uint32]uint32(nil), (*Encoder).fastpathEncMapUint32Uint32R, (*Decoder).fastpathDecMapUint32Uint32R)
  208. fn(map[uint32]uint64(nil), (*Encoder).fastpathEncMapUint32Uint64R, (*Decoder).fastpathDecMapUint32Uint64R)
  209. fn(map[uint32]uintptr(nil), (*Encoder).fastpathEncMapUint32UintptrR, (*Decoder).fastpathDecMapUint32UintptrR)
  210. fn(map[uint32]int(nil), (*Encoder).fastpathEncMapUint32IntR, (*Decoder).fastpathDecMapUint32IntR)
  211. fn(map[uint32]int8(nil), (*Encoder).fastpathEncMapUint32Int8R, (*Decoder).fastpathDecMapUint32Int8R)
  212. fn(map[uint32]int16(nil), (*Encoder).fastpathEncMapUint32Int16R, (*Decoder).fastpathDecMapUint32Int16R)
  213. fn(map[uint32]int32(nil), (*Encoder).fastpathEncMapUint32Int32R, (*Decoder).fastpathDecMapUint32Int32R)
  214. fn(map[uint32]int64(nil), (*Encoder).fastpathEncMapUint32Int64R, (*Decoder).fastpathDecMapUint32Int64R)
  215. fn(map[uint32]float32(nil), (*Encoder).fastpathEncMapUint32Float32R, (*Decoder).fastpathDecMapUint32Float32R)
  216. fn(map[uint32]float64(nil), (*Encoder).fastpathEncMapUint32Float64R, (*Decoder).fastpathDecMapUint32Float64R)
  217. fn(map[uint32]bool(nil), (*Encoder).fastpathEncMapUint32BoolR, (*Decoder).fastpathDecMapUint32BoolR)
  218. fn(map[uint64]interface{}(nil), (*Encoder).fastpathEncMapUint64IntfR, (*Decoder).fastpathDecMapUint64IntfR)
  219. fn(map[uint64]string(nil), (*Encoder).fastpathEncMapUint64StringR, (*Decoder).fastpathDecMapUint64StringR)
  220. fn(map[uint64]uint(nil), (*Encoder).fastpathEncMapUint64UintR, (*Decoder).fastpathDecMapUint64UintR)
  221. fn(map[uint64]uint8(nil), (*Encoder).fastpathEncMapUint64Uint8R, (*Decoder).fastpathDecMapUint64Uint8R)
  222. fn(map[uint64]uint16(nil), (*Encoder).fastpathEncMapUint64Uint16R, (*Decoder).fastpathDecMapUint64Uint16R)
  223. fn(map[uint64]uint32(nil), (*Encoder).fastpathEncMapUint64Uint32R, (*Decoder).fastpathDecMapUint64Uint32R)
  224. fn(map[uint64]uint64(nil), (*Encoder).fastpathEncMapUint64Uint64R, (*Decoder).fastpathDecMapUint64Uint64R)
  225. fn(map[uint64]uintptr(nil), (*Encoder).fastpathEncMapUint64UintptrR, (*Decoder).fastpathDecMapUint64UintptrR)
  226. fn(map[uint64]int(nil), (*Encoder).fastpathEncMapUint64IntR, (*Decoder).fastpathDecMapUint64IntR)
  227. fn(map[uint64]int8(nil), (*Encoder).fastpathEncMapUint64Int8R, (*Decoder).fastpathDecMapUint64Int8R)
  228. fn(map[uint64]int16(nil), (*Encoder).fastpathEncMapUint64Int16R, (*Decoder).fastpathDecMapUint64Int16R)
  229. fn(map[uint64]int32(nil), (*Encoder).fastpathEncMapUint64Int32R, (*Decoder).fastpathDecMapUint64Int32R)
  230. fn(map[uint64]int64(nil), (*Encoder).fastpathEncMapUint64Int64R, (*Decoder).fastpathDecMapUint64Int64R)
  231. fn(map[uint64]float32(nil), (*Encoder).fastpathEncMapUint64Float32R, (*Decoder).fastpathDecMapUint64Float32R)
  232. fn(map[uint64]float64(nil), (*Encoder).fastpathEncMapUint64Float64R, (*Decoder).fastpathDecMapUint64Float64R)
  233. fn(map[uint64]bool(nil), (*Encoder).fastpathEncMapUint64BoolR, (*Decoder).fastpathDecMapUint64BoolR)
  234. fn(map[uintptr]interface{}(nil), (*Encoder).fastpathEncMapUintptrIntfR, (*Decoder).fastpathDecMapUintptrIntfR)
  235. fn(map[uintptr]string(nil), (*Encoder).fastpathEncMapUintptrStringR, (*Decoder).fastpathDecMapUintptrStringR)
  236. fn(map[uintptr]uint(nil), (*Encoder).fastpathEncMapUintptrUintR, (*Decoder).fastpathDecMapUintptrUintR)
  237. fn(map[uintptr]uint8(nil), (*Encoder).fastpathEncMapUintptrUint8R, (*Decoder).fastpathDecMapUintptrUint8R)
  238. fn(map[uintptr]uint16(nil), (*Encoder).fastpathEncMapUintptrUint16R, (*Decoder).fastpathDecMapUintptrUint16R)
  239. fn(map[uintptr]uint32(nil), (*Encoder).fastpathEncMapUintptrUint32R, (*Decoder).fastpathDecMapUintptrUint32R)
  240. fn(map[uintptr]uint64(nil), (*Encoder).fastpathEncMapUintptrUint64R, (*Decoder).fastpathDecMapUintptrUint64R)
  241. fn(map[uintptr]uintptr(nil), (*Encoder).fastpathEncMapUintptrUintptrR, (*Decoder).fastpathDecMapUintptrUintptrR)
  242. fn(map[uintptr]int(nil), (*Encoder).fastpathEncMapUintptrIntR, (*Decoder).fastpathDecMapUintptrIntR)
  243. fn(map[uintptr]int8(nil), (*Encoder).fastpathEncMapUintptrInt8R, (*Decoder).fastpathDecMapUintptrInt8R)
  244. fn(map[uintptr]int16(nil), (*Encoder).fastpathEncMapUintptrInt16R, (*Decoder).fastpathDecMapUintptrInt16R)
  245. fn(map[uintptr]int32(nil), (*Encoder).fastpathEncMapUintptrInt32R, (*Decoder).fastpathDecMapUintptrInt32R)
  246. fn(map[uintptr]int64(nil), (*Encoder).fastpathEncMapUintptrInt64R, (*Decoder).fastpathDecMapUintptrInt64R)
  247. fn(map[uintptr]float32(nil), (*Encoder).fastpathEncMapUintptrFloat32R, (*Decoder).fastpathDecMapUintptrFloat32R)
  248. fn(map[uintptr]float64(nil), (*Encoder).fastpathEncMapUintptrFloat64R, (*Decoder).fastpathDecMapUintptrFloat64R)
  249. fn(map[uintptr]bool(nil), (*Encoder).fastpathEncMapUintptrBoolR, (*Decoder).fastpathDecMapUintptrBoolR)
  250. fn(map[int]interface{}(nil), (*Encoder).fastpathEncMapIntIntfR, (*Decoder).fastpathDecMapIntIntfR)
  251. fn(map[int]string(nil), (*Encoder).fastpathEncMapIntStringR, (*Decoder).fastpathDecMapIntStringR)
  252. fn(map[int]uint(nil), (*Encoder).fastpathEncMapIntUintR, (*Decoder).fastpathDecMapIntUintR)
  253. fn(map[int]uint8(nil), (*Encoder).fastpathEncMapIntUint8R, (*Decoder).fastpathDecMapIntUint8R)
  254. fn(map[int]uint16(nil), (*Encoder).fastpathEncMapIntUint16R, (*Decoder).fastpathDecMapIntUint16R)
  255. fn(map[int]uint32(nil), (*Encoder).fastpathEncMapIntUint32R, (*Decoder).fastpathDecMapIntUint32R)
  256. fn(map[int]uint64(nil), (*Encoder).fastpathEncMapIntUint64R, (*Decoder).fastpathDecMapIntUint64R)
  257. fn(map[int]uintptr(nil), (*Encoder).fastpathEncMapIntUintptrR, (*Decoder).fastpathDecMapIntUintptrR)
  258. fn(map[int]int(nil), (*Encoder).fastpathEncMapIntIntR, (*Decoder).fastpathDecMapIntIntR)
  259. fn(map[int]int8(nil), (*Encoder).fastpathEncMapIntInt8R, (*Decoder).fastpathDecMapIntInt8R)
  260. fn(map[int]int16(nil), (*Encoder).fastpathEncMapIntInt16R, (*Decoder).fastpathDecMapIntInt16R)
  261. fn(map[int]int32(nil), (*Encoder).fastpathEncMapIntInt32R, (*Decoder).fastpathDecMapIntInt32R)
  262. fn(map[int]int64(nil), (*Encoder).fastpathEncMapIntInt64R, (*Decoder).fastpathDecMapIntInt64R)
  263. fn(map[int]float32(nil), (*Encoder).fastpathEncMapIntFloat32R, (*Decoder).fastpathDecMapIntFloat32R)
  264. fn(map[int]float64(nil), (*Encoder).fastpathEncMapIntFloat64R, (*Decoder).fastpathDecMapIntFloat64R)
  265. fn(map[int]bool(nil), (*Encoder).fastpathEncMapIntBoolR, (*Decoder).fastpathDecMapIntBoolR)
  266. fn(map[int8]interface{}(nil), (*Encoder).fastpathEncMapInt8IntfR, (*Decoder).fastpathDecMapInt8IntfR)
  267. fn(map[int8]string(nil), (*Encoder).fastpathEncMapInt8StringR, (*Decoder).fastpathDecMapInt8StringR)
  268. fn(map[int8]uint(nil), (*Encoder).fastpathEncMapInt8UintR, (*Decoder).fastpathDecMapInt8UintR)
  269. fn(map[int8]uint8(nil), (*Encoder).fastpathEncMapInt8Uint8R, (*Decoder).fastpathDecMapInt8Uint8R)
  270. fn(map[int8]uint16(nil), (*Encoder).fastpathEncMapInt8Uint16R, (*Decoder).fastpathDecMapInt8Uint16R)
  271. fn(map[int8]uint32(nil), (*Encoder).fastpathEncMapInt8Uint32R, (*Decoder).fastpathDecMapInt8Uint32R)
  272. fn(map[int8]uint64(nil), (*Encoder).fastpathEncMapInt8Uint64R, (*Decoder).fastpathDecMapInt8Uint64R)
  273. fn(map[int8]uintptr(nil), (*Encoder).fastpathEncMapInt8UintptrR, (*Decoder).fastpathDecMapInt8UintptrR)
  274. fn(map[int8]int(nil), (*Encoder).fastpathEncMapInt8IntR, (*Decoder).fastpathDecMapInt8IntR)
  275. fn(map[int8]int8(nil), (*Encoder).fastpathEncMapInt8Int8R, (*Decoder).fastpathDecMapInt8Int8R)
  276. fn(map[int8]int16(nil), (*Encoder).fastpathEncMapInt8Int16R, (*Decoder).fastpathDecMapInt8Int16R)
  277. fn(map[int8]int32(nil), (*Encoder).fastpathEncMapInt8Int32R, (*Decoder).fastpathDecMapInt8Int32R)
  278. fn(map[int8]int64(nil), (*Encoder).fastpathEncMapInt8Int64R, (*Decoder).fastpathDecMapInt8Int64R)
  279. fn(map[int8]float32(nil), (*Encoder).fastpathEncMapInt8Float32R, (*Decoder).fastpathDecMapInt8Float32R)
  280. fn(map[int8]float64(nil), (*Encoder).fastpathEncMapInt8Float64R, (*Decoder).fastpathDecMapInt8Float64R)
  281. fn(map[int8]bool(nil), (*Encoder).fastpathEncMapInt8BoolR, (*Decoder).fastpathDecMapInt8BoolR)
  282. fn(map[int16]interface{}(nil), (*Encoder).fastpathEncMapInt16IntfR, (*Decoder).fastpathDecMapInt16IntfR)
  283. fn(map[int16]string(nil), (*Encoder).fastpathEncMapInt16StringR, (*Decoder).fastpathDecMapInt16StringR)
  284. fn(map[int16]uint(nil), (*Encoder).fastpathEncMapInt16UintR, (*Decoder).fastpathDecMapInt16UintR)
  285. fn(map[int16]uint8(nil), (*Encoder).fastpathEncMapInt16Uint8R, (*Decoder).fastpathDecMapInt16Uint8R)
  286. fn(map[int16]uint16(nil), (*Encoder).fastpathEncMapInt16Uint16R, (*Decoder).fastpathDecMapInt16Uint16R)
  287. fn(map[int16]uint32(nil), (*Encoder).fastpathEncMapInt16Uint32R, (*Decoder).fastpathDecMapInt16Uint32R)
  288. fn(map[int16]uint64(nil), (*Encoder).fastpathEncMapInt16Uint64R, (*Decoder).fastpathDecMapInt16Uint64R)
  289. fn(map[int16]uintptr(nil), (*Encoder).fastpathEncMapInt16UintptrR, (*Decoder).fastpathDecMapInt16UintptrR)
  290. fn(map[int16]int(nil), (*Encoder).fastpathEncMapInt16IntR, (*Decoder).fastpathDecMapInt16IntR)
  291. fn(map[int16]int8(nil), (*Encoder).fastpathEncMapInt16Int8R, (*Decoder).fastpathDecMapInt16Int8R)
  292. fn(map[int16]int16(nil), (*Encoder).fastpathEncMapInt16Int16R, (*Decoder).fastpathDecMapInt16Int16R)
  293. fn(map[int16]int32(nil), (*Encoder).fastpathEncMapInt16Int32R, (*Decoder).fastpathDecMapInt16Int32R)
  294. fn(map[int16]int64(nil), (*Encoder).fastpathEncMapInt16Int64R, (*Decoder).fastpathDecMapInt16Int64R)
  295. fn(map[int16]float32(nil), (*Encoder).fastpathEncMapInt16Float32R, (*Decoder).fastpathDecMapInt16Float32R)
  296. fn(map[int16]float64(nil), (*Encoder).fastpathEncMapInt16Float64R, (*Decoder).fastpathDecMapInt16Float64R)
  297. fn(map[int16]bool(nil), (*Encoder).fastpathEncMapInt16BoolR, (*Decoder).fastpathDecMapInt16BoolR)
  298. fn(map[int32]interface{}(nil), (*Encoder).fastpathEncMapInt32IntfR, (*Decoder).fastpathDecMapInt32IntfR)
  299. fn(map[int32]string(nil), (*Encoder).fastpathEncMapInt32StringR, (*Decoder).fastpathDecMapInt32StringR)
  300. fn(map[int32]uint(nil), (*Encoder).fastpathEncMapInt32UintR, (*Decoder).fastpathDecMapInt32UintR)
  301. fn(map[int32]uint8(nil), (*Encoder).fastpathEncMapInt32Uint8R, (*Decoder).fastpathDecMapInt32Uint8R)
  302. fn(map[int32]uint16(nil), (*Encoder).fastpathEncMapInt32Uint16R, (*Decoder).fastpathDecMapInt32Uint16R)
  303. fn(map[int32]uint32(nil), (*Encoder).fastpathEncMapInt32Uint32R, (*Decoder).fastpathDecMapInt32Uint32R)
  304. fn(map[int32]uint64(nil), (*Encoder).fastpathEncMapInt32Uint64R, (*Decoder).fastpathDecMapInt32Uint64R)
  305. fn(map[int32]uintptr(nil), (*Encoder).fastpathEncMapInt32UintptrR, (*Decoder).fastpathDecMapInt32UintptrR)
  306. fn(map[int32]int(nil), (*Encoder).fastpathEncMapInt32IntR, (*Decoder).fastpathDecMapInt32IntR)
  307. fn(map[int32]int8(nil), (*Encoder).fastpathEncMapInt32Int8R, (*Decoder).fastpathDecMapInt32Int8R)
  308. fn(map[int32]int16(nil), (*Encoder).fastpathEncMapInt32Int16R, (*Decoder).fastpathDecMapInt32Int16R)
  309. fn(map[int32]int32(nil), (*Encoder).fastpathEncMapInt32Int32R, (*Decoder).fastpathDecMapInt32Int32R)
  310. fn(map[int32]int64(nil), (*Encoder).fastpathEncMapInt32Int64R, (*Decoder).fastpathDecMapInt32Int64R)
  311. fn(map[int32]float32(nil), (*Encoder).fastpathEncMapInt32Float32R, (*Decoder).fastpathDecMapInt32Float32R)
  312. fn(map[int32]float64(nil), (*Encoder).fastpathEncMapInt32Float64R, (*Decoder).fastpathDecMapInt32Float64R)
  313. fn(map[int32]bool(nil), (*Encoder).fastpathEncMapInt32BoolR, (*Decoder).fastpathDecMapInt32BoolR)
  314. fn(map[int64]interface{}(nil), (*Encoder).fastpathEncMapInt64IntfR, (*Decoder).fastpathDecMapInt64IntfR)
  315. fn(map[int64]string(nil), (*Encoder).fastpathEncMapInt64StringR, (*Decoder).fastpathDecMapInt64StringR)
  316. fn(map[int64]uint(nil), (*Encoder).fastpathEncMapInt64UintR, (*Decoder).fastpathDecMapInt64UintR)
  317. fn(map[int64]uint8(nil), (*Encoder).fastpathEncMapInt64Uint8R, (*Decoder).fastpathDecMapInt64Uint8R)
  318. fn(map[int64]uint16(nil), (*Encoder).fastpathEncMapInt64Uint16R, (*Decoder).fastpathDecMapInt64Uint16R)
  319. fn(map[int64]uint32(nil), (*Encoder).fastpathEncMapInt64Uint32R, (*Decoder).fastpathDecMapInt64Uint32R)
  320. fn(map[int64]uint64(nil), (*Encoder).fastpathEncMapInt64Uint64R, (*Decoder).fastpathDecMapInt64Uint64R)
  321. fn(map[int64]uintptr(nil), (*Encoder).fastpathEncMapInt64UintptrR, (*Decoder).fastpathDecMapInt64UintptrR)
  322. fn(map[int64]int(nil), (*Encoder).fastpathEncMapInt64IntR, (*Decoder).fastpathDecMapInt64IntR)
  323. fn(map[int64]int8(nil), (*Encoder).fastpathEncMapInt64Int8R, (*Decoder).fastpathDecMapInt64Int8R)
  324. fn(map[int64]int16(nil), (*Encoder).fastpathEncMapInt64Int16R, (*Decoder).fastpathDecMapInt64Int16R)
  325. fn(map[int64]int32(nil), (*Encoder).fastpathEncMapInt64Int32R, (*Decoder).fastpathDecMapInt64Int32R)
  326. fn(map[int64]int64(nil), (*Encoder).fastpathEncMapInt64Int64R, (*Decoder).fastpathDecMapInt64Int64R)
  327. fn(map[int64]float32(nil), (*Encoder).fastpathEncMapInt64Float32R, (*Decoder).fastpathDecMapInt64Float32R)
  328. fn(map[int64]float64(nil), (*Encoder).fastpathEncMapInt64Float64R, (*Decoder).fastpathDecMapInt64Float64R)
  329. fn(map[int64]bool(nil), (*Encoder).fastpathEncMapInt64BoolR, (*Decoder).fastpathDecMapInt64BoolR)
  330. fn(map[bool]interface{}(nil), (*Encoder).fastpathEncMapBoolIntfR, (*Decoder).fastpathDecMapBoolIntfR)
  331. fn(map[bool]string(nil), (*Encoder).fastpathEncMapBoolStringR, (*Decoder).fastpathDecMapBoolStringR)
  332. fn(map[bool]uint(nil), (*Encoder).fastpathEncMapBoolUintR, (*Decoder).fastpathDecMapBoolUintR)
  333. fn(map[bool]uint8(nil), (*Encoder).fastpathEncMapBoolUint8R, (*Decoder).fastpathDecMapBoolUint8R)
  334. fn(map[bool]uint16(nil), (*Encoder).fastpathEncMapBoolUint16R, (*Decoder).fastpathDecMapBoolUint16R)
  335. fn(map[bool]uint32(nil), (*Encoder).fastpathEncMapBoolUint32R, (*Decoder).fastpathDecMapBoolUint32R)
  336. fn(map[bool]uint64(nil), (*Encoder).fastpathEncMapBoolUint64R, (*Decoder).fastpathDecMapBoolUint64R)
  337. fn(map[bool]uintptr(nil), (*Encoder).fastpathEncMapBoolUintptrR, (*Decoder).fastpathDecMapBoolUintptrR)
  338. fn(map[bool]int(nil), (*Encoder).fastpathEncMapBoolIntR, (*Decoder).fastpathDecMapBoolIntR)
  339. fn(map[bool]int8(nil), (*Encoder).fastpathEncMapBoolInt8R, (*Decoder).fastpathDecMapBoolInt8R)
  340. fn(map[bool]int16(nil), (*Encoder).fastpathEncMapBoolInt16R, (*Decoder).fastpathDecMapBoolInt16R)
  341. fn(map[bool]int32(nil), (*Encoder).fastpathEncMapBoolInt32R, (*Decoder).fastpathDecMapBoolInt32R)
  342. fn(map[bool]int64(nil), (*Encoder).fastpathEncMapBoolInt64R, (*Decoder).fastpathDecMapBoolInt64R)
  343. fn(map[bool]float32(nil), (*Encoder).fastpathEncMapBoolFloat32R, (*Decoder).fastpathDecMapBoolFloat32R)
  344. fn(map[bool]float64(nil), (*Encoder).fastpathEncMapBoolFloat64R, (*Decoder).fastpathDecMapBoolFloat64R)
  345. fn(map[bool]bool(nil), (*Encoder).fastpathEncMapBoolBoolR, (*Decoder).fastpathDecMapBoolBoolR)
  346. sort.Sort(fastpathAslice(fastpathAV[:]))
  347. }
  348. // -- encode
  349. // -- -- fast path type switch
  350. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  351. switch v := iv.(type) {
  352. case []interface{}:
  353. fastpathTV.EncSliceIntfV(v, e)
  354. case *[]interface{}:
  355. fastpathTV.EncSliceIntfV(*v, e)
  356. case []string:
  357. fastpathTV.EncSliceStringV(v, e)
  358. case *[]string:
  359. fastpathTV.EncSliceStringV(*v, e)
  360. case []float32:
  361. fastpathTV.EncSliceFloat32V(v, e)
  362. case *[]float32:
  363. fastpathTV.EncSliceFloat32V(*v, e)
  364. case []float64:
  365. fastpathTV.EncSliceFloat64V(v, e)
  366. case *[]float64:
  367. fastpathTV.EncSliceFloat64V(*v, e)
  368. case []uint:
  369. fastpathTV.EncSliceUintV(v, e)
  370. case *[]uint:
  371. fastpathTV.EncSliceUintV(*v, e)
  372. case []uint16:
  373. fastpathTV.EncSliceUint16V(v, e)
  374. case *[]uint16:
  375. fastpathTV.EncSliceUint16V(*v, e)
  376. case []uint32:
  377. fastpathTV.EncSliceUint32V(v, e)
  378. case *[]uint32:
  379. fastpathTV.EncSliceUint32V(*v, e)
  380. case []uint64:
  381. fastpathTV.EncSliceUint64V(v, e)
  382. case *[]uint64:
  383. fastpathTV.EncSliceUint64V(*v, e)
  384. case []uintptr:
  385. fastpathTV.EncSliceUintptrV(v, e)
  386. case *[]uintptr:
  387. fastpathTV.EncSliceUintptrV(*v, e)
  388. case []int:
  389. fastpathTV.EncSliceIntV(v, e)
  390. case *[]int:
  391. fastpathTV.EncSliceIntV(*v, e)
  392. case []int8:
  393. fastpathTV.EncSliceInt8V(v, e)
  394. case *[]int8:
  395. fastpathTV.EncSliceInt8V(*v, e)
  396. case []int16:
  397. fastpathTV.EncSliceInt16V(v, e)
  398. case *[]int16:
  399. fastpathTV.EncSliceInt16V(*v, e)
  400. case []int32:
  401. fastpathTV.EncSliceInt32V(v, e)
  402. case *[]int32:
  403. fastpathTV.EncSliceInt32V(*v, e)
  404. case []int64:
  405. fastpathTV.EncSliceInt64V(v, e)
  406. case *[]int64:
  407. fastpathTV.EncSliceInt64V(*v, e)
  408. case []bool:
  409. fastpathTV.EncSliceBoolV(v, e)
  410. case *[]bool:
  411. fastpathTV.EncSliceBoolV(*v, e)
  412. case map[interface{}]interface{}:
  413. fastpathTV.EncMapIntfIntfV(v, e)
  414. case *map[interface{}]interface{}:
  415. fastpathTV.EncMapIntfIntfV(*v, e)
  416. case map[interface{}]string:
  417. fastpathTV.EncMapIntfStringV(v, e)
  418. case *map[interface{}]string:
  419. fastpathTV.EncMapIntfStringV(*v, e)
  420. case map[interface{}]uint:
  421. fastpathTV.EncMapIntfUintV(v, e)
  422. case *map[interface{}]uint:
  423. fastpathTV.EncMapIntfUintV(*v, e)
  424. case map[interface{}]uint8:
  425. fastpathTV.EncMapIntfUint8V(v, e)
  426. case *map[interface{}]uint8:
  427. fastpathTV.EncMapIntfUint8V(*v, e)
  428. case map[interface{}]uint16:
  429. fastpathTV.EncMapIntfUint16V(v, e)
  430. case *map[interface{}]uint16:
  431. fastpathTV.EncMapIntfUint16V(*v, e)
  432. case map[interface{}]uint32:
  433. fastpathTV.EncMapIntfUint32V(v, e)
  434. case *map[interface{}]uint32:
  435. fastpathTV.EncMapIntfUint32V(*v, e)
  436. case map[interface{}]uint64:
  437. fastpathTV.EncMapIntfUint64V(v, e)
  438. case *map[interface{}]uint64:
  439. fastpathTV.EncMapIntfUint64V(*v, e)
  440. case map[interface{}]uintptr:
  441. fastpathTV.EncMapIntfUintptrV(v, e)
  442. case *map[interface{}]uintptr:
  443. fastpathTV.EncMapIntfUintptrV(*v, e)
  444. case map[interface{}]int:
  445. fastpathTV.EncMapIntfIntV(v, e)
  446. case *map[interface{}]int:
  447. fastpathTV.EncMapIntfIntV(*v, e)
  448. case map[interface{}]int8:
  449. fastpathTV.EncMapIntfInt8V(v, e)
  450. case *map[interface{}]int8:
  451. fastpathTV.EncMapIntfInt8V(*v, e)
  452. case map[interface{}]int16:
  453. fastpathTV.EncMapIntfInt16V(v, e)
  454. case *map[interface{}]int16:
  455. fastpathTV.EncMapIntfInt16V(*v, e)
  456. case map[interface{}]int32:
  457. fastpathTV.EncMapIntfInt32V(v, e)
  458. case *map[interface{}]int32:
  459. fastpathTV.EncMapIntfInt32V(*v, e)
  460. case map[interface{}]int64:
  461. fastpathTV.EncMapIntfInt64V(v, e)
  462. case *map[interface{}]int64:
  463. fastpathTV.EncMapIntfInt64V(*v, e)
  464. case map[interface{}]float32:
  465. fastpathTV.EncMapIntfFloat32V(v, e)
  466. case *map[interface{}]float32:
  467. fastpathTV.EncMapIntfFloat32V(*v, e)
  468. case map[interface{}]float64:
  469. fastpathTV.EncMapIntfFloat64V(v, e)
  470. case *map[interface{}]float64:
  471. fastpathTV.EncMapIntfFloat64V(*v, e)
  472. case map[interface{}]bool:
  473. fastpathTV.EncMapIntfBoolV(v, e)
  474. case *map[interface{}]bool:
  475. fastpathTV.EncMapIntfBoolV(*v, e)
  476. case map[string]interface{}:
  477. fastpathTV.EncMapStringIntfV(v, e)
  478. case *map[string]interface{}:
  479. fastpathTV.EncMapStringIntfV(*v, e)
  480. case map[string]string:
  481. fastpathTV.EncMapStringStringV(v, e)
  482. case *map[string]string:
  483. fastpathTV.EncMapStringStringV(*v, e)
  484. case map[string]uint:
  485. fastpathTV.EncMapStringUintV(v, e)
  486. case *map[string]uint:
  487. fastpathTV.EncMapStringUintV(*v, e)
  488. case map[string]uint8:
  489. fastpathTV.EncMapStringUint8V(v, e)
  490. case *map[string]uint8:
  491. fastpathTV.EncMapStringUint8V(*v, e)
  492. case map[string]uint16:
  493. fastpathTV.EncMapStringUint16V(v, e)
  494. case *map[string]uint16:
  495. fastpathTV.EncMapStringUint16V(*v, e)
  496. case map[string]uint32:
  497. fastpathTV.EncMapStringUint32V(v, e)
  498. case *map[string]uint32:
  499. fastpathTV.EncMapStringUint32V(*v, e)
  500. case map[string]uint64:
  501. fastpathTV.EncMapStringUint64V(v, e)
  502. case *map[string]uint64:
  503. fastpathTV.EncMapStringUint64V(*v, e)
  504. case map[string]uintptr:
  505. fastpathTV.EncMapStringUintptrV(v, e)
  506. case *map[string]uintptr:
  507. fastpathTV.EncMapStringUintptrV(*v, e)
  508. case map[string]int:
  509. fastpathTV.EncMapStringIntV(v, e)
  510. case *map[string]int:
  511. fastpathTV.EncMapStringIntV(*v, e)
  512. case map[string]int8:
  513. fastpathTV.EncMapStringInt8V(v, e)
  514. case *map[string]int8:
  515. fastpathTV.EncMapStringInt8V(*v, e)
  516. case map[string]int16:
  517. fastpathTV.EncMapStringInt16V(v, e)
  518. case *map[string]int16:
  519. fastpathTV.EncMapStringInt16V(*v, e)
  520. case map[string]int32:
  521. fastpathTV.EncMapStringInt32V(v, e)
  522. case *map[string]int32:
  523. fastpathTV.EncMapStringInt32V(*v, e)
  524. case map[string]int64:
  525. fastpathTV.EncMapStringInt64V(v, e)
  526. case *map[string]int64:
  527. fastpathTV.EncMapStringInt64V(*v, e)
  528. case map[string]float32:
  529. fastpathTV.EncMapStringFloat32V(v, e)
  530. case *map[string]float32:
  531. fastpathTV.EncMapStringFloat32V(*v, e)
  532. case map[string]float64:
  533. fastpathTV.EncMapStringFloat64V(v, e)
  534. case *map[string]float64:
  535. fastpathTV.EncMapStringFloat64V(*v, e)
  536. case map[string]bool:
  537. fastpathTV.EncMapStringBoolV(v, e)
  538. case *map[string]bool:
  539. fastpathTV.EncMapStringBoolV(*v, e)
  540. case map[float32]interface{}:
  541. fastpathTV.EncMapFloat32IntfV(v, e)
  542. case *map[float32]interface{}:
  543. fastpathTV.EncMapFloat32IntfV(*v, e)
  544. case map[float32]string:
  545. fastpathTV.EncMapFloat32StringV(v, e)
  546. case *map[float32]string:
  547. fastpathTV.EncMapFloat32StringV(*v, e)
  548. case map[float32]uint:
  549. fastpathTV.EncMapFloat32UintV(v, e)
  550. case *map[float32]uint:
  551. fastpathTV.EncMapFloat32UintV(*v, e)
  552. case map[float32]uint8:
  553. fastpathTV.EncMapFloat32Uint8V(v, e)
  554. case *map[float32]uint8:
  555. fastpathTV.EncMapFloat32Uint8V(*v, e)
  556. case map[float32]uint16:
  557. fastpathTV.EncMapFloat32Uint16V(v, e)
  558. case *map[float32]uint16:
  559. fastpathTV.EncMapFloat32Uint16V(*v, e)
  560. case map[float32]uint32:
  561. fastpathTV.EncMapFloat32Uint32V(v, e)
  562. case *map[float32]uint32:
  563. fastpathTV.EncMapFloat32Uint32V(*v, e)
  564. case map[float32]uint64:
  565. fastpathTV.EncMapFloat32Uint64V(v, e)
  566. case *map[float32]uint64:
  567. fastpathTV.EncMapFloat32Uint64V(*v, e)
  568. case map[float32]uintptr:
  569. fastpathTV.EncMapFloat32UintptrV(v, e)
  570. case *map[float32]uintptr:
  571. fastpathTV.EncMapFloat32UintptrV(*v, e)
  572. case map[float32]int:
  573. fastpathTV.EncMapFloat32IntV(v, e)
  574. case *map[float32]int:
  575. fastpathTV.EncMapFloat32IntV(*v, e)
  576. case map[float32]int8:
  577. fastpathTV.EncMapFloat32Int8V(v, e)
  578. case *map[float32]int8:
  579. fastpathTV.EncMapFloat32Int8V(*v, e)
  580. case map[float32]int16:
  581. fastpathTV.EncMapFloat32Int16V(v, e)
  582. case *map[float32]int16:
  583. fastpathTV.EncMapFloat32Int16V(*v, e)
  584. case map[float32]int32:
  585. fastpathTV.EncMapFloat32Int32V(v, e)
  586. case *map[float32]int32:
  587. fastpathTV.EncMapFloat32Int32V(*v, e)
  588. case map[float32]int64:
  589. fastpathTV.EncMapFloat32Int64V(v, e)
  590. case *map[float32]int64:
  591. fastpathTV.EncMapFloat32Int64V(*v, e)
  592. case map[float32]float32:
  593. fastpathTV.EncMapFloat32Float32V(v, e)
  594. case *map[float32]float32:
  595. fastpathTV.EncMapFloat32Float32V(*v, e)
  596. case map[float32]float64:
  597. fastpathTV.EncMapFloat32Float64V(v, e)
  598. case *map[float32]float64:
  599. fastpathTV.EncMapFloat32Float64V(*v, e)
  600. case map[float32]bool:
  601. fastpathTV.EncMapFloat32BoolV(v, e)
  602. case *map[float32]bool:
  603. fastpathTV.EncMapFloat32BoolV(*v, e)
  604. case map[float64]interface{}:
  605. fastpathTV.EncMapFloat64IntfV(v, e)
  606. case *map[float64]interface{}:
  607. fastpathTV.EncMapFloat64IntfV(*v, e)
  608. case map[float64]string:
  609. fastpathTV.EncMapFloat64StringV(v, e)
  610. case *map[float64]string:
  611. fastpathTV.EncMapFloat64StringV(*v, e)
  612. case map[float64]uint:
  613. fastpathTV.EncMapFloat64UintV(v, e)
  614. case *map[float64]uint:
  615. fastpathTV.EncMapFloat64UintV(*v, e)
  616. case map[float64]uint8:
  617. fastpathTV.EncMapFloat64Uint8V(v, e)
  618. case *map[float64]uint8:
  619. fastpathTV.EncMapFloat64Uint8V(*v, e)
  620. case map[float64]uint16:
  621. fastpathTV.EncMapFloat64Uint16V(v, e)
  622. case *map[float64]uint16:
  623. fastpathTV.EncMapFloat64Uint16V(*v, e)
  624. case map[float64]uint32:
  625. fastpathTV.EncMapFloat64Uint32V(v, e)
  626. case *map[float64]uint32:
  627. fastpathTV.EncMapFloat64Uint32V(*v, e)
  628. case map[float64]uint64:
  629. fastpathTV.EncMapFloat64Uint64V(v, e)
  630. case *map[float64]uint64:
  631. fastpathTV.EncMapFloat64Uint64V(*v, e)
  632. case map[float64]uintptr:
  633. fastpathTV.EncMapFloat64UintptrV(v, e)
  634. case *map[float64]uintptr:
  635. fastpathTV.EncMapFloat64UintptrV(*v, e)
  636. case map[float64]int:
  637. fastpathTV.EncMapFloat64IntV(v, e)
  638. case *map[float64]int:
  639. fastpathTV.EncMapFloat64IntV(*v, e)
  640. case map[float64]int8:
  641. fastpathTV.EncMapFloat64Int8V(v, e)
  642. case *map[float64]int8:
  643. fastpathTV.EncMapFloat64Int8V(*v, e)
  644. case map[float64]int16:
  645. fastpathTV.EncMapFloat64Int16V(v, e)
  646. case *map[float64]int16:
  647. fastpathTV.EncMapFloat64Int16V(*v, e)
  648. case map[float64]int32:
  649. fastpathTV.EncMapFloat64Int32V(v, e)
  650. case *map[float64]int32:
  651. fastpathTV.EncMapFloat64Int32V(*v, e)
  652. case map[float64]int64:
  653. fastpathTV.EncMapFloat64Int64V(v, e)
  654. case *map[float64]int64:
  655. fastpathTV.EncMapFloat64Int64V(*v, e)
  656. case map[float64]float32:
  657. fastpathTV.EncMapFloat64Float32V(v, e)
  658. case *map[float64]float32:
  659. fastpathTV.EncMapFloat64Float32V(*v, e)
  660. case map[float64]float64:
  661. fastpathTV.EncMapFloat64Float64V(v, e)
  662. case *map[float64]float64:
  663. fastpathTV.EncMapFloat64Float64V(*v, e)
  664. case map[float64]bool:
  665. fastpathTV.EncMapFloat64BoolV(v, e)
  666. case *map[float64]bool:
  667. fastpathTV.EncMapFloat64BoolV(*v, e)
  668. case map[uint]interface{}:
  669. fastpathTV.EncMapUintIntfV(v, e)
  670. case *map[uint]interface{}:
  671. fastpathTV.EncMapUintIntfV(*v, e)
  672. case map[uint]string:
  673. fastpathTV.EncMapUintStringV(v, e)
  674. case *map[uint]string:
  675. fastpathTV.EncMapUintStringV(*v, e)
  676. case map[uint]uint:
  677. fastpathTV.EncMapUintUintV(v, e)
  678. case *map[uint]uint:
  679. fastpathTV.EncMapUintUintV(*v, e)
  680. case map[uint]uint8:
  681. fastpathTV.EncMapUintUint8V(v, e)
  682. case *map[uint]uint8:
  683. fastpathTV.EncMapUintUint8V(*v, e)
  684. case map[uint]uint16:
  685. fastpathTV.EncMapUintUint16V(v, e)
  686. case *map[uint]uint16:
  687. fastpathTV.EncMapUintUint16V(*v, e)
  688. case map[uint]uint32:
  689. fastpathTV.EncMapUintUint32V(v, e)
  690. case *map[uint]uint32:
  691. fastpathTV.EncMapUintUint32V(*v, e)
  692. case map[uint]uint64:
  693. fastpathTV.EncMapUintUint64V(v, e)
  694. case *map[uint]uint64:
  695. fastpathTV.EncMapUintUint64V(*v, e)
  696. case map[uint]uintptr:
  697. fastpathTV.EncMapUintUintptrV(v, e)
  698. case *map[uint]uintptr:
  699. fastpathTV.EncMapUintUintptrV(*v, e)
  700. case map[uint]int:
  701. fastpathTV.EncMapUintIntV(v, e)
  702. case *map[uint]int:
  703. fastpathTV.EncMapUintIntV(*v, e)
  704. case map[uint]int8:
  705. fastpathTV.EncMapUintInt8V(v, e)
  706. case *map[uint]int8:
  707. fastpathTV.EncMapUintInt8V(*v, e)
  708. case map[uint]int16:
  709. fastpathTV.EncMapUintInt16V(v, e)
  710. case *map[uint]int16:
  711. fastpathTV.EncMapUintInt16V(*v, e)
  712. case map[uint]int32:
  713. fastpathTV.EncMapUintInt32V(v, e)
  714. case *map[uint]int32:
  715. fastpathTV.EncMapUintInt32V(*v, e)
  716. case map[uint]int64:
  717. fastpathTV.EncMapUintInt64V(v, e)
  718. case *map[uint]int64:
  719. fastpathTV.EncMapUintInt64V(*v, e)
  720. case map[uint]float32:
  721. fastpathTV.EncMapUintFloat32V(v, e)
  722. case *map[uint]float32:
  723. fastpathTV.EncMapUintFloat32V(*v, e)
  724. case map[uint]float64:
  725. fastpathTV.EncMapUintFloat64V(v, e)
  726. case *map[uint]float64:
  727. fastpathTV.EncMapUintFloat64V(*v, e)
  728. case map[uint]bool:
  729. fastpathTV.EncMapUintBoolV(v, e)
  730. case *map[uint]bool:
  731. fastpathTV.EncMapUintBoolV(*v, e)
  732. case map[uint8]interface{}:
  733. fastpathTV.EncMapUint8IntfV(v, e)
  734. case *map[uint8]interface{}:
  735. fastpathTV.EncMapUint8IntfV(*v, e)
  736. case map[uint8]string:
  737. fastpathTV.EncMapUint8StringV(v, e)
  738. case *map[uint8]string:
  739. fastpathTV.EncMapUint8StringV(*v, e)
  740. case map[uint8]uint:
  741. fastpathTV.EncMapUint8UintV(v, e)
  742. case *map[uint8]uint:
  743. fastpathTV.EncMapUint8UintV(*v, e)
  744. case map[uint8]uint8:
  745. fastpathTV.EncMapUint8Uint8V(v, e)
  746. case *map[uint8]uint8:
  747. fastpathTV.EncMapUint8Uint8V(*v, e)
  748. case map[uint8]uint16:
  749. fastpathTV.EncMapUint8Uint16V(v, e)
  750. case *map[uint8]uint16:
  751. fastpathTV.EncMapUint8Uint16V(*v, e)
  752. case map[uint8]uint32:
  753. fastpathTV.EncMapUint8Uint32V(v, e)
  754. case *map[uint8]uint32:
  755. fastpathTV.EncMapUint8Uint32V(*v, e)
  756. case map[uint8]uint64:
  757. fastpathTV.EncMapUint8Uint64V(v, e)
  758. case *map[uint8]uint64:
  759. fastpathTV.EncMapUint8Uint64V(*v, e)
  760. case map[uint8]uintptr:
  761. fastpathTV.EncMapUint8UintptrV(v, e)
  762. case *map[uint8]uintptr:
  763. fastpathTV.EncMapUint8UintptrV(*v, e)
  764. case map[uint8]int:
  765. fastpathTV.EncMapUint8IntV(v, e)
  766. case *map[uint8]int:
  767. fastpathTV.EncMapUint8IntV(*v, e)
  768. case map[uint8]int8:
  769. fastpathTV.EncMapUint8Int8V(v, e)
  770. case *map[uint8]int8:
  771. fastpathTV.EncMapUint8Int8V(*v, e)
  772. case map[uint8]int16:
  773. fastpathTV.EncMapUint8Int16V(v, e)
  774. case *map[uint8]int16:
  775. fastpathTV.EncMapUint8Int16V(*v, e)
  776. case map[uint8]int32:
  777. fastpathTV.EncMapUint8Int32V(v, e)
  778. case *map[uint8]int32:
  779. fastpathTV.EncMapUint8Int32V(*v, e)
  780. case map[uint8]int64:
  781. fastpathTV.EncMapUint8Int64V(v, e)
  782. case *map[uint8]int64:
  783. fastpathTV.EncMapUint8Int64V(*v, e)
  784. case map[uint8]float32:
  785. fastpathTV.EncMapUint8Float32V(v, e)
  786. case *map[uint8]float32:
  787. fastpathTV.EncMapUint8Float32V(*v, e)
  788. case map[uint8]float64:
  789. fastpathTV.EncMapUint8Float64V(v, e)
  790. case *map[uint8]float64:
  791. fastpathTV.EncMapUint8Float64V(*v, e)
  792. case map[uint8]bool:
  793. fastpathTV.EncMapUint8BoolV(v, e)
  794. case *map[uint8]bool:
  795. fastpathTV.EncMapUint8BoolV(*v, e)
  796. case map[uint16]interface{}:
  797. fastpathTV.EncMapUint16IntfV(v, e)
  798. case *map[uint16]interface{}:
  799. fastpathTV.EncMapUint16IntfV(*v, e)
  800. case map[uint16]string:
  801. fastpathTV.EncMapUint16StringV(v, e)
  802. case *map[uint16]string:
  803. fastpathTV.EncMapUint16StringV(*v, e)
  804. case map[uint16]uint:
  805. fastpathTV.EncMapUint16UintV(v, e)
  806. case *map[uint16]uint:
  807. fastpathTV.EncMapUint16UintV(*v, e)
  808. case map[uint16]uint8:
  809. fastpathTV.EncMapUint16Uint8V(v, e)
  810. case *map[uint16]uint8:
  811. fastpathTV.EncMapUint16Uint8V(*v, e)
  812. case map[uint16]uint16:
  813. fastpathTV.EncMapUint16Uint16V(v, e)
  814. case *map[uint16]uint16:
  815. fastpathTV.EncMapUint16Uint16V(*v, e)
  816. case map[uint16]uint32:
  817. fastpathTV.EncMapUint16Uint32V(v, e)
  818. case *map[uint16]uint32:
  819. fastpathTV.EncMapUint16Uint32V(*v, e)
  820. case map[uint16]uint64:
  821. fastpathTV.EncMapUint16Uint64V(v, e)
  822. case *map[uint16]uint64:
  823. fastpathTV.EncMapUint16Uint64V(*v, e)
  824. case map[uint16]uintptr:
  825. fastpathTV.EncMapUint16UintptrV(v, e)
  826. case *map[uint16]uintptr:
  827. fastpathTV.EncMapUint16UintptrV(*v, e)
  828. case map[uint16]int:
  829. fastpathTV.EncMapUint16IntV(v, e)
  830. case *map[uint16]int:
  831. fastpathTV.EncMapUint16IntV(*v, e)
  832. case map[uint16]int8:
  833. fastpathTV.EncMapUint16Int8V(v, e)
  834. case *map[uint16]int8:
  835. fastpathTV.EncMapUint16Int8V(*v, e)
  836. case map[uint16]int16:
  837. fastpathTV.EncMapUint16Int16V(v, e)
  838. case *map[uint16]int16:
  839. fastpathTV.EncMapUint16Int16V(*v, e)
  840. case map[uint16]int32:
  841. fastpathTV.EncMapUint16Int32V(v, e)
  842. case *map[uint16]int32:
  843. fastpathTV.EncMapUint16Int32V(*v, e)
  844. case map[uint16]int64:
  845. fastpathTV.EncMapUint16Int64V(v, e)
  846. case *map[uint16]int64:
  847. fastpathTV.EncMapUint16Int64V(*v, e)
  848. case map[uint16]float32:
  849. fastpathTV.EncMapUint16Float32V(v, e)
  850. case *map[uint16]float32:
  851. fastpathTV.EncMapUint16Float32V(*v, e)
  852. case map[uint16]float64:
  853. fastpathTV.EncMapUint16Float64V(v, e)
  854. case *map[uint16]float64:
  855. fastpathTV.EncMapUint16Float64V(*v, e)
  856. case map[uint16]bool:
  857. fastpathTV.EncMapUint16BoolV(v, e)
  858. case *map[uint16]bool:
  859. fastpathTV.EncMapUint16BoolV(*v, e)
  860. case map[uint32]interface{}:
  861. fastpathTV.EncMapUint32IntfV(v, e)
  862. case *map[uint32]interface{}:
  863. fastpathTV.EncMapUint32IntfV(*v, e)
  864. case map[uint32]string:
  865. fastpathTV.EncMapUint32StringV(v, e)
  866. case *map[uint32]string:
  867. fastpathTV.EncMapUint32StringV(*v, e)
  868. case map[uint32]uint:
  869. fastpathTV.EncMapUint32UintV(v, e)
  870. case *map[uint32]uint:
  871. fastpathTV.EncMapUint32UintV(*v, e)
  872. case map[uint32]uint8:
  873. fastpathTV.EncMapUint32Uint8V(v, e)
  874. case *map[uint32]uint8:
  875. fastpathTV.EncMapUint32Uint8V(*v, e)
  876. case map[uint32]uint16:
  877. fastpathTV.EncMapUint32Uint16V(v, e)
  878. case *map[uint32]uint16:
  879. fastpathTV.EncMapUint32Uint16V(*v, e)
  880. case map[uint32]uint32:
  881. fastpathTV.EncMapUint32Uint32V(v, e)
  882. case *map[uint32]uint32:
  883. fastpathTV.EncMapUint32Uint32V(*v, e)
  884. case map[uint32]uint64:
  885. fastpathTV.EncMapUint32Uint64V(v, e)
  886. case *map[uint32]uint64:
  887. fastpathTV.EncMapUint32Uint64V(*v, e)
  888. case map[uint32]uintptr:
  889. fastpathTV.EncMapUint32UintptrV(v, e)
  890. case *map[uint32]uintptr:
  891. fastpathTV.EncMapUint32UintptrV(*v, e)
  892. case map[uint32]int:
  893. fastpathTV.EncMapUint32IntV(v, e)
  894. case *map[uint32]int:
  895. fastpathTV.EncMapUint32IntV(*v, e)
  896. case map[uint32]int8:
  897. fastpathTV.EncMapUint32Int8V(v, e)
  898. case *map[uint32]int8:
  899. fastpathTV.EncMapUint32Int8V(*v, e)
  900. case map[uint32]int16:
  901. fastpathTV.EncMapUint32Int16V(v, e)
  902. case *map[uint32]int16:
  903. fastpathTV.EncMapUint32Int16V(*v, e)
  904. case map[uint32]int32:
  905. fastpathTV.EncMapUint32Int32V(v, e)
  906. case *map[uint32]int32:
  907. fastpathTV.EncMapUint32Int32V(*v, e)
  908. case map[uint32]int64:
  909. fastpathTV.EncMapUint32Int64V(v, e)
  910. case *map[uint32]int64:
  911. fastpathTV.EncMapUint32Int64V(*v, e)
  912. case map[uint32]float32:
  913. fastpathTV.EncMapUint32Float32V(v, e)
  914. case *map[uint32]float32:
  915. fastpathTV.EncMapUint32Float32V(*v, e)
  916. case map[uint32]float64:
  917. fastpathTV.EncMapUint32Float64V(v, e)
  918. case *map[uint32]float64:
  919. fastpathTV.EncMapUint32Float64V(*v, e)
  920. case map[uint32]bool:
  921. fastpathTV.EncMapUint32BoolV(v, e)
  922. case *map[uint32]bool:
  923. fastpathTV.EncMapUint32BoolV(*v, e)
  924. case map[uint64]interface{}:
  925. fastpathTV.EncMapUint64IntfV(v, e)
  926. case *map[uint64]interface{}:
  927. fastpathTV.EncMapUint64IntfV(*v, e)
  928. case map[uint64]string:
  929. fastpathTV.EncMapUint64StringV(v, e)
  930. case *map[uint64]string:
  931. fastpathTV.EncMapUint64StringV(*v, e)
  932. case map[uint64]uint:
  933. fastpathTV.EncMapUint64UintV(v, e)
  934. case *map[uint64]uint:
  935. fastpathTV.EncMapUint64UintV(*v, e)
  936. case map[uint64]uint8:
  937. fastpathTV.EncMapUint64Uint8V(v, e)
  938. case *map[uint64]uint8:
  939. fastpathTV.EncMapUint64Uint8V(*v, e)
  940. case map[uint64]uint16:
  941. fastpathTV.EncMapUint64Uint16V(v, e)
  942. case *map[uint64]uint16:
  943. fastpathTV.EncMapUint64Uint16V(*v, e)
  944. case map[uint64]uint32:
  945. fastpathTV.EncMapUint64Uint32V(v, e)
  946. case *map[uint64]uint32:
  947. fastpathTV.EncMapUint64Uint32V(*v, e)
  948. case map[uint64]uint64:
  949. fastpathTV.EncMapUint64Uint64V(v, e)
  950. case *map[uint64]uint64:
  951. fastpathTV.EncMapUint64Uint64V(*v, e)
  952. case map[uint64]uintptr:
  953. fastpathTV.EncMapUint64UintptrV(v, e)
  954. case *map[uint64]uintptr:
  955. fastpathTV.EncMapUint64UintptrV(*v, e)
  956. case map[uint64]int:
  957. fastpathTV.EncMapUint64IntV(v, e)
  958. case *map[uint64]int:
  959. fastpathTV.EncMapUint64IntV(*v, e)
  960. case map[uint64]int8:
  961. fastpathTV.EncMapUint64Int8V(v, e)
  962. case *map[uint64]int8:
  963. fastpathTV.EncMapUint64Int8V(*v, e)
  964. case map[uint64]int16:
  965. fastpathTV.EncMapUint64Int16V(v, e)
  966. case *map[uint64]int16:
  967. fastpathTV.EncMapUint64Int16V(*v, e)
  968. case map[uint64]int32:
  969. fastpathTV.EncMapUint64Int32V(v, e)
  970. case *map[uint64]int32:
  971. fastpathTV.EncMapUint64Int32V(*v, e)
  972. case map[uint64]int64:
  973. fastpathTV.EncMapUint64Int64V(v, e)
  974. case *map[uint64]int64:
  975. fastpathTV.EncMapUint64Int64V(*v, e)
  976. case map[uint64]float32:
  977. fastpathTV.EncMapUint64Float32V(v, e)
  978. case *map[uint64]float32:
  979. fastpathTV.EncMapUint64Float32V(*v, e)
  980. case map[uint64]float64:
  981. fastpathTV.EncMapUint64Float64V(v, e)
  982. case *map[uint64]float64:
  983. fastpathTV.EncMapUint64Float64V(*v, e)
  984. case map[uint64]bool:
  985. fastpathTV.EncMapUint64BoolV(v, e)
  986. case *map[uint64]bool:
  987. fastpathTV.EncMapUint64BoolV(*v, e)
  988. case map[uintptr]interface{}:
  989. fastpathTV.EncMapUintptrIntfV(v, e)
  990. case *map[uintptr]interface{}:
  991. fastpathTV.EncMapUintptrIntfV(*v, e)
  992. case map[uintptr]string:
  993. fastpathTV.EncMapUintptrStringV(v, e)
  994. case *map[uintptr]string:
  995. fastpathTV.EncMapUintptrStringV(*v, e)
  996. case map[uintptr]uint:
  997. fastpathTV.EncMapUintptrUintV(v, e)
  998. case *map[uintptr]uint:
  999. fastpathTV.EncMapUintptrUintV(*v, e)
  1000. case map[uintptr]uint8:
  1001. fastpathTV.EncMapUintptrUint8V(v, e)
  1002. case *map[uintptr]uint8:
  1003. fastpathTV.EncMapUintptrUint8V(*v, e)
  1004. case map[uintptr]uint16:
  1005. fastpathTV.EncMapUintptrUint16V(v, e)
  1006. case *map[uintptr]uint16:
  1007. fastpathTV.EncMapUintptrUint16V(*v, e)
  1008. case map[uintptr]uint32:
  1009. fastpathTV.EncMapUintptrUint32V(v, e)
  1010. case *map[uintptr]uint32:
  1011. fastpathTV.EncMapUintptrUint32V(*v, e)
  1012. case map[uintptr]uint64:
  1013. fastpathTV.EncMapUintptrUint64V(v, e)
  1014. case *map[uintptr]uint64:
  1015. fastpathTV.EncMapUintptrUint64V(*v, e)
  1016. case map[uintptr]uintptr:
  1017. fastpathTV.EncMapUintptrUintptrV(v, e)
  1018. case *map[uintptr]uintptr:
  1019. fastpathTV.EncMapUintptrUintptrV(*v, e)
  1020. case map[uintptr]int:
  1021. fastpathTV.EncMapUintptrIntV(v, e)
  1022. case *map[uintptr]int:
  1023. fastpathTV.EncMapUintptrIntV(*v, e)
  1024. case map[uintptr]int8:
  1025. fastpathTV.EncMapUintptrInt8V(v, e)
  1026. case *map[uintptr]int8:
  1027. fastpathTV.EncMapUintptrInt8V(*v, e)
  1028. case map[uintptr]int16:
  1029. fastpathTV.EncMapUintptrInt16V(v, e)
  1030. case *map[uintptr]int16:
  1031. fastpathTV.EncMapUintptrInt16V(*v, e)
  1032. case map[uintptr]int32:
  1033. fastpathTV.EncMapUintptrInt32V(v, e)
  1034. case *map[uintptr]int32:
  1035. fastpathTV.EncMapUintptrInt32V(*v, e)
  1036. case map[uintptr]int64:
  1037. fastpathTV.EncMapUintptrInt64V(v, e)
  1038. case *map[uintptr]int64:
  1039. fastpathTV.EncMapUintptrInt64V(*v, e)
  1040. case map[uintptr]float32:
  1041. fastpathTV.EncMapUintptrFloat32V(v, e)
  1042. case *map[uintptr]float32:
  1043. fastpathTV.EncMapUintptrFloat32V(*v, e)
  1044. case map[uintptr]float64:
  1045. fastpathTV.EncMapUintptrFloat64V(v, e)
  1046. case *map[uintptr]float64:
  1047. fastpathTV.EncMapUintptrFloat64V(*v, e)
  1048. case map[uintptr]bool:
  1049. fastpathTV.EncMapUintptrBoolV(v, e)
  1050. case *map[uintptr]bool:
  1051. fastpathTV.EncMapUintptrBoolV(*v, e)
  1052. case map[int]interface{}:
  1053. fastpathTV.EncMapIntIntfV(v, e)
  1054. case *map[int]interface{}:
  1055. fastpathTV.EncMapIntIntfV(*v, e)
  1056. case map[int]string:
  1057. fastpathTV.EncMapIntStringV(v, e)
  1058. case *map[int]string:
  1059. fastpathTV.EncMapIntStringV(*v, e)
  1060. case map[int]uint:
  1061. fastpathTV.EncMapIntUintV(v, e)
  1062. case *map[int]uint:
  1063. fastpathTV.EncMapIntUintV(*v, e)
  1064. case map[int]uint8:
  1065. fastpathTV.EncMapIntUint8V(v, e)
  1066. case *map[int]uint8:
  1067. fastpathTV.EncMapIntUint8V(*v, e)
  1068. case map[int]uint16:
  1069. fastpathTV.EncMapIntUint16V(v, e)
  1070. case *map[int]uint16:
  1071. fastpathTV.EncMapIntUint16V(*v, e)
  1072. case map[int]uint32:
  1073. fastpathTV.EncMapIntUint32V(v, e)
  1074. case *map[int]uint32:
  1075. fastpathTV.EncMapIntUint32V(*v, e)
  1076. case map[int]uint64:
  1077. fastpathTV.EncMapIntUint64V(v, e)
  1078. case *map[int]uint64:
  1079. fastpathTV.EncMapIntUint64V(*v, e)
  1080. case map[int]uintptr:
  1081. fastpathTV.EncMapIntUintptrV(v, e)
  1082. case *map[int]uintptr:
  1083. fastpathTV.EncMapIntUintptrV(*v, e)
  1084. case map[int]int:
  1085. fastpathTV.EncMapIntIntV(v, e)
  1086. case *map[int]int:
  1087. fastpathTV.EncMapIntIntV(*v, e)
  1088. case map[int]int8:
  1089. fastpathTV.EncMapIntInt8V(v, e)
  1090. case *map[int]int8:
  1091. fastpathTV.EncMapIntInt8V(*v, e)
  1092. case map[int]int16:
  1093. fastpathTV.EncMapIntInt16V(v, e)
  1094. case *map[int]int16:
  1095. fastpathTV.EncMapIntInt16V(*v, e)
  1096. case map[int]int32:
  1097. fastpathTV.EncMapIntInt32V(v, e)
  1098. case *map[int]int32:
  1099. fastpathTV.EncMapIntInt32V(*v, e)
  1100. case map[int]int64:
  1101. fastpathTV.EncMapIntInt64V(v, e)
  1102. case *map[int]int64:
  1103. fastpathTV.EncMapIntInt64V(*v, e)
  1104. case map[int]float32:
  1105. fastpathTV.EncMapIntFloat32V(v, e)
  1106. case *map[int]float32:
  1107. fastpathTV.EncMapIntFloat32V(*v, e)
  1108. case map[int]float64:
  1109. fastpathTV.EncMapIntFloat64V(v, e)
  1110. case *map[int]float64:
  1111. fastpathTV.EncMapIntFloat64V(*v, e)
  1112. case map[int]bool:
  1113. fastpathTV.EncMapIntBoolV(v, e)
  1114. case *map[int]bool:
  1115. fastpathTV.EncMapIntBoolV(*v, e)
  1116. case map[int8]interface{}:
  1117. fastpathTV.EncMapInt8IntfV(v, e)
  1118. case *map[int8]interface{}:
  1119. fastpathTV.EncMapInt8IntfV(*v, e)
  1120. case map[int8]string:
  1121. fastpathTV.EncMapInt8StringV(v, e)
  1122. case *map[int8]string:
  1123. fastpathTV.EncMapInt8StringV(*v, e)
  1124. case map[int8]uint:
  1125. fastpathTV.EncMapInt8UintV(v, e)
  1126. case *map[int8]uint:
  1127. fastpathTV.EncMapInt8UintV(*v, e)
  1128. case map[int8]uint8:
  1129. fastpathTV.EncMapInt8Uint8V(v, e)
  1130. case *map[int8]uint8:
  1131. fastpathTV.EncMapInt8Uint8V(*v, e)
  1132. case map[int8]uint16:
  1133. fastpathTV.EncMapInt8Uint16V(v, e)
  1134. case *map[int8]uint16:
  1135. fastpathTV.EncMapInt8Uint16V(*v, e)
  1136. case map[int8]uint32:
  1137. fastpathTV.EncMapInt8Uint32V(v, e)
  1138. case *map[int8]uint32:
  1139. fastpathTV.EncMapInt8Uint32V(*v, e)
  1140. case map[int8]uint64:
  1141. fastpathTV.EncMapInt8Uint64V(v, e)
  1142. case *map[int8]uint64:
  1143. fastpathTV.EncMapInt8Uint64V(*v, e)
  1144. case map[int8]uintptr:
  1145. fastpathTV.EncMapInt8UintptrV(v, e)
  1146. case *map[int8]uintptr:
  1147. fastpathTV.EncMapInt8UintptrV(*v, e)
  1148. case map[int8]int:
  1149. fastpathTV.EncMapInt8IntV(v, e)
  1150. case *map[int8]int:
  1151. fastpathTV.EncMapInt8IntV(*v, e)
  1152. case map[int8]int8:
  1153. fastpathTV.EncMapInt8Int8V(v, e)
  1154. case *map[int8]int8:
  1155. fastpathTV.EncMapInt8Int8V(*v, e)
  1156. case map[int8]int16:
  1157. fastpathTV.EncMapInt8Int16V(v, e)
  1158. case *map[int8]int16:
  1159. fastpathTV.EncMapInt8Int16V(*v, e)
  1160. case map[int8]int32:
  1161. fastpathTV.EncMapInt8Int32V(v, e)
  1162. case *map[int8]int32:
  1163. fastpathTV.EncMapInt8Int32V(*v, e)
  1164. case map[int8]int64:
  1165. fastpathTV.EncMapInt8Int64V(v, e)
  1166. case *map[int8]int64:
  1167. fastpathTV.EncMapInt8Int64V(*v, e)
  1168. case map[int8]float32:
  1169. fastpathTV.EncMapInt8Float32V(v, e)
  1170. case *map[int8]float32:
  1171. fastpathTV.EncMapInt8Float32V(*v, e)
  1172. case map[int8]float64:
  1173. fastpathTV.EncMapInt8Float64V(v, e)
  1174. case *map[int8]float64:
  1175. fastpathTV.EncMapInt8Float64V(*v, e)
  1176. case map[int8]bool:
  1177. fastpathTV.EncMapInt8BoolV(v, e)
  1178. case *map[int8]bool:
  1179. fastpathTV.EncMapInt8BoolV(*v, e)
  1180. case map[int16]interface{}:
  1181. fastpathTV.EncMapInt16IntfV(v, e)
  1182. case *map[int16]interface{}:
  1183. fastpathTV.EncMapInt16IntfV(*v, e)
  1184. case map[int16]string:
  1185. fastpathTV.EncMapInt16StringV(v, e)
  1186. case *map[int16]string:
  1187. fastpathTV.EncMapInt16StringV(*v, e)
  1188. case map[int16]uint:
  1189. fastpathTV.EncMapInt16UintV(v, e)
  1190. case *map[int16]uint:
  1191. fastpathTV.EncMapInt16UintV(*v, e)
  1192. case map[int16]uint8:
  1193. fastpathTV.EncMapInt16Uint8V(v, e)
  1194. case *map[int16]uint8:
  1195. fastpathTV.EncMapInt16Uint8V(*v, e)
  1196. case map[int16]uint16:
  1197. fastpathTV.EncMapInt16Uint16V(v, e)
  1198. case *map[int16]uint16:
  1199. fastpathTV.EncMapInt16Uint16V(*v, e)
  1200. case map[int16]uint32:
  1201. fastpathTV.EncMapInt16Uint32V(v, e)
  1202. case *map[int16]uint32:
  1203. fastpathTV.EncMapInt16Uint32V(*v, e)
  1204. case map[int16]uint64:
  1205. fastpathTV.EncMapInt16Uint64V(v, e)
  1206. case *map[int16]uint64:
  1207. fastpathTV.EncMapInt16Uint64V(*v, e)
  1208. case map[int16]uintptr:
  1209. fastpathTV.EncMapInt16UintptrV(v, e)
  1210. case *map[int16]uintptr:
  1211. fastpathTV.EncMapInt16UintptrV(*v, e)
  1212. case map[int16]int:
  1213. fastpathTV.EncMapInt16IntV(v, e)
  1214. case *map[int16]int:
  1215. fastpathTV.EncMapInt16IntV(*v, e)
  1216. case map[int16]int8:
  1217. fastpathTV.EncMapInt16Int8V(v, e)
  1218. case *map[int16]int8:
  1219. fastpathTV.EncMapInt16Int8V(*v, e)
  1220. case map[int16]int16:
  1221. fastpathTV.EncMapInt16Int16V(v, e)
  1222. case *map[int16]int16:
  1223. fastpathTV.EncMapInt16Int16V(*v, e)
  1224. case map[int16]int32:
  1225. fastpathTV.EncMapInt16Int32V(v, e)
  1226. case *map[int16]int32:
  1227. fastpathTV.EncMapInt16Int32V(*v, e)
  1228. case map[int16]int64:
  1229. fastpathTV.EncMapInt16Int64V(v, e)
  1230. case *map[int16]int64:
  1231. fastpathTV.EncMapInt16Int64V(*v, e)
  1232. case map[int16]float32:
  1233. fastpathTV.EncMapInt16Float32V(v, e)
  1234. case *map[int16]float32:
  1235. fastpathTV.EncMapInt16Float32V(*v, e)
  1236. case map[int16]float64:
  1237. fastpathTV.EncMapInt16Float64V(v, e)
  1238. case *map[int16]float64:
  1239. fastpathTV.EncMapInt16Float64V(*v, e)
  1240. case map[int16]bool:
  1241. fastpathTV.EncMapInt16BoolV(v, e)
  1242. case *map[int16]bool:
  1243. fastpathTV.EncMapInt16BoolV(*v, e)
  1244. case map[int32]interface{}:
  1245. fastpathTV.EncMapInt32IntfV(v, e)
  1246. case *map[int32]interface{}:
  1247. fastpathTV.EncMapInt32IntfV(*v, e)
  1248. case map[int32]string:
  1249. fastpathTV.EncMapInt32StringV(v, e)
  1250. case *map[int32]string:
  1251. fastpathTV.EncMapInt32StringV(*v, e)
  1252. case map[int32]uint:
  1253. fastpathTV.EncMapInt32UintV(v, e)
  1254. case *map[int32]uint:
  1255. fastpathTV.EncMapInt32UintV(*v, e)
  1256. case map[int32]uint8:
  1257. fastpathTV.EncMapInt32Uint8V(v, e)
  1258. case *map[int32]uint8:
  1259. fastpathTV.EncMapInt32Uint8V(*v, e)
  1260. case map[int32]uint16:
  1261. fastpathTV.EncMapInt32Uint16V(v, e)
  1262. case *map[int32]uint16:
  1263. fastpathTV.EncMapInt32Uint16V(*v, e)
  1264. case map[int32]uint32:
  1265. fastpathTV.EncMapInt32Uint32V(v, e)
  1266. case *map[int32]uint32:
  1267. fastpathTV.EncMapInt32Uint32V(*v, e)
  1268. case map[int32]uint64:
  1269. fastpathTV.EncMapInt32Uint64V(v, e)
  1270. case *map[int32]uint64:
  1271. fastpathTV.EncMapInt32Uint64V(*v, e)
  1272. case map[int32]uintptr:
  1273. fastpathTV.EncMapInt32UintptrV(v, e)
  1274. case *map[int32]uintptr:
  1275. fastpathTV.EncMapInt32UintptrV(*v, e)
  1276. case map[int32]int:
  1277. fastpathTV.EncMapInt32IntV(v, e)
  1278. case *map[int32]int:
  1279. fastpathTV.EncMapInt32IntV(*v, e)
  1280. case map[int32]int8:
  1281. fastpathTV.EncMapInt32Int8V(v, e)
  1282. case *map[int32]int8:
  1283. fastpathTV.EncMapInt32Int8V(*v, e)
  1284. case map[int32]int16:
  1285. fastpathTV.EncMapInt32Int16V(v, e)
  1286. case *map[int32]int16:
  1287. fastpathTV.EncMapInt32Int16V(*v, e)
  1288. case map[int32]int32:
  1289. fastpathTV.EncMapInt32Int32V(v, e)
  1290. case *map[int32]int32:
  1291. fastpathTV.EncMapInt32Int32V(*v, e)
  1292. case map[int32]int64:
  1293. fastpathTV.EncMapInt32Int64V(v, e)
  1294. case *map[int32]int64:
  1295. fastpathTV.EncMapInt32Int64V(*v, e)
  1296. case map[int32]float32:
  1297. fastpathTV.EncMapInt32Float32V(v, e)
  1298. case *map[int32]float32:
  1299. fastpathTV.EncMapInt32Float32V(*v, e)
  1300. case map[int32]float64:
  1301. fastpathTV.EncMapInt32Float64V(v, e)
  1302. case *map[int32]float64:
  1303. fastpathTV.EncMapInt32Float64V(*v, e)
  1304. case map[int32]bool:
  1305. fastpathTV.EncMapInt32BoolV(v, e)
  1306. case *map[int32]bool:
  1307. fastpathTV.EncMapInt32BoolV(*v, e)
  1308. case map[int64]interface{}:
  1309. fastpathTV.EncMapInt64IntfV(v, e)
  1310. case *map[int64]interface{}:
  1311. fastpathTV.EncMapInt64IntfV(*v, e)
  1312. case map[int64]string:
  1313. fastpathTV.EncMapInt64StringV(v, e)
  1314. case *map[int64]string:
  1315. fastpathTV.EncMapInt64StringV(*v, e)
  1316. case map[int64]uint:
  1317. fastpathTV.EncMapInt64UintV(v, e)
  1318. case *map[int64]uint:
  1319. fastpathTV.EncMapInt64UintV(*v, e)
  1320. case map[int64]uint8:
  1321. fastpathTV.EncMapInt64Uint8V(v, e)
  1322. case *map[int64]uint8:
  1323. fastpathTV.EncMapInt64Uint8V(*v, e)
  1324. case map[int64]uint16:
  1325. fastpathTV.EncMapInt64Uint16V(v, e)
  1326. case *map[int64]uint16:
  1327. fastpathTV.EncMapInt64Uint16V(*v, e)
  1328. case map[int64]uint32:
  1329. fastpathTV.EncMapInt64Uint32V(v, e)
  1330. case *map[int64]uint32:
  1331. fastpathTV.EncMapInt64Uint32V(*v, e)
  1332. case map[int64]uint64:
  1333. fastpathTV.EncMapInt64Uint64V(v, e)
  1334. case *map[int64]uint64:
  1335. fastpathTV.EncMapInt64Uint64V(*v, e)
  1336. case map[int64]uintptr:
  1337. fastpathTV.EncMapInt64UintptrV(v, e)
  1338. case *map[int64]uintptr:
  1339. fastpathTV.EncMapInt64UintptrV(*v, e)
  1340. case map[int64]int:
  1341. fastpathTV.EncMapInt64IntV(v, e)
  1342. case *map[int64]int:
  1343. fastpathTV.EncMapInt64IntV(*v, e)
  1344. case map[int64]int8:
  1345. fastpathTV.EncMapInt64Int8V(v, e)
  1346. case *map[int64]int8:
  1347. fastpathTV.EncMapInt64Int8V(*v, e)
  1348. case map[int64]int16:
  1349. fastpathTV.EncMapInt64Int16V(v, e)
  1350. case *map[int64]int16:
  1351. fastpathTV.EncMapInt64Int16V(*v, e)
  1352. case map[int64]int32:
  1353. fastpathTV.EncMapInt64Int32V(v, e)
  1354. case *map[int64]int32:
  1355. fastpathTV.EncMapInt64Int32V(*v, e)
  1356. case map[int64]int64:
  1357. fastpathTV.EncMapInt64Int64V(v, e)
  1358. case *map[int64]int64:
  1359. fastpathTV.EncMapInt64Int64V(*v, e)
  1360. case map[int64]float32:
  1361. fastpathTV.EncMapInt64Float32V(v, e)
  1362. case *map[int64]float32:
  1363. fastpathTV.EncMapInt64Float32V(*v, e)
  1364. case map[int64]float64:
  1365. fastpathTV.EncMapInt64Float64V(v, e)
  1366. case *map[int64]float64:
  1367. fastpathTV.EncMapInt64Float64V(*v, e)
  1368. case map[int64]bool:
  1369. fastpathTV.EncMapInt64BoolV(v, e)
  1370. case *map[int64]bool:
  1371. fastpathTV.EncMapInt64BoolV(*v, e)
  1372. case map[bool]interface{}:
  1373. fastpathTV.EncMapBoolIntfV(v, e)
  1374. case *map[bool]interface{}:
  1375. fastpathTV.EncMapBoolIntfV(*v, e)
  1376. case map[bool]string:
  1377. fastpathTV.EncMapBoolStringV(v, e)
  1378. case *map[bool]string:
  1379. fastpathTV.EncMapBoolStringV(*v, e)
  1380. case map[bool]uint:
  1381. fastpathTV.EncMapBoolUintV(v, e)
  1382. case *map[bool]uint:
  1383. fastpathTV.EncMapBoolUintV(*v, e)
  1384. case map[bool]uint8:
  1385. fastpathTV.EncMapBoolUint8V(v, e)
  1386. case *map[bool]uint8:
  1387. fastpathTV.EncMapBoolUint8V(*v, e)
  1388. case map[bool]uint16:
  1389. fastpathTV.EncMapBoolUint16V(v, e)
  1390. case *map[bool]uint16:
  1391. fastpathTV.EncMapBoolUint16V(*v, e)
  1392. case map[bool]uint32:
  1393. fastpathTV.EncMapBoolUint32V(v, e)
  1394. case *map[bool]uint32:
  1395. fastpathTV.EncMapBoolUint32V(*v, e)
  1396. case map[bool]uint64:
  1397. fastpathTV.EncMapBoolUint64V(v, e)
  1398. case *map[bool]uint64:
  1399. fastpathTV.EncMapBoolUint64V(*v, e)
  1400. case map[bool]uintptr:
  1401. fastpathTV.EncMapBoolUintptrV(v, e)
  1402. case *map[bool]uintptr:
  1403. fastpathTV.EncMapBoolUintptrV(*v, e)
  1404. case map[bool]int:
  1405. fastpathTV.EncMapBoolIntV(v, e)
  1406. case *map[bool]int:
  1407. fastpathTV.EncMapBoolIntV(*v, e)
  1408. case map[bool]int8:
  1409. fastpathTV.EncMapBoolInt8V(v, e)
  1410. case *map[bool]int8:
  1411. fastpathTV.EncMapBoolInt8V(*v, e)
  1412. case map[bool]int16:
  1413. fastpathTV.EncMapBoolInt16V(v, e)
  1414. case *map[bool]int16:
  1415. fastpathTV.EncMapBoolInt16V(*v, e)
  1416. case map[bool]int32:
  1417. fastpathTV.EncMapBoolInt32V(v, e)
  1418. case *map[bool]int32:
  1419. fastpathTV.EncMapBoolInt32V(*v, e)
  1420. case map[bool]int64:
  1421. fastpathTV.EncMapBoolInt64V(v, e)
  1422. case *map[bool]int64:
  1423. fastpathTV.EncMapBoolInt64V(*v, e)
  1424. case map[bool]float32:
  1425. fastpathTV.EncMapBoolFloat32V(v, e)
  1426. case *map[bool]float32:
  1427. fastpathTV.EncMapBoolFloat32V(*v, e)
  1428. case map[bool]float64:
  1429. fastpathTV.EncMapBoolFloat64V(v, e)
  1430. case *map[bool]float64:
  1431. fastpathTV.EncMapBoolFloat64V(*v, e)
  1432. case map[bool]bool:
  1433. fastpathTV.EncMapBoolBoolV(v, e)
  1434. case *map[bool]bool:
  1435. fastpathTV.EncMapBoolBoolV(*v, e)
  1436. default:
  1437. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  1438. return false
  1439. }
  1440. return true
  1441. }
  1442. // -- -- fast path functions
  1443. func (e *Encoder) fastpathEncSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  1444. if f.ti.mbs {
  1445. fastpathTV.EncAsMapSliceIntfV(rv2i(rv).([]interface{}), e)
  1446. } else {
  1447. fastpathTV.EncSliceIntfV(rv2i(rv).([]interface{}), e)
  1448. }
  1449. }
  1450. func (_ fastpathT) EncSliceIntfV(v []interface{}, e *Encoder) {
  1451. if v == nil {
  1452. e.e.EncodeNil()
  1453. return
  1454. }
  1455. ee, esep := e.e, e.hh.hasElemSeparators()
  1456. ee.WriteArrayStart(len(v))
  1457. for _, v2 := range v {
  1458. if esep {
  1459. ee.WriteArrayElem()
  1460. }
  1461. e.encode(v2)
  1462. }
  1463. ee.WriteArrayEnd()
  1464. }
  1465. func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, e *Encoder) {
  1466. ee, esep := e.e, e.hh.hasElemSeparators()
  1467. if len(v)%2 == 1 {
  1468. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1469. return
  1470. }
  1471. ee.WriteMapStart(len(v) / 2)
  1472. for j, v2 := range v {
  1473. if esep {
  1474. if j%2 == 0 {
  1475. ee.WriteMapElemKey()
  1476. } else {
  1477. ee.WriteMapElemValue()
  1478. }
  1479. }
  1480. e.encode(v2)
  1481. }
  1482. ee.WriteMapEnd()
  1483. }
  1484. func (e *Encoder) fastpathEncSliceStringR(f *codecFnInfo, rv reflect.Value) {
  1485. if f.ti.mbs {
  1486. fastpathTV.EncAsMapSliceStringV(rv2i(rv).([]string), e)
  1487. } else {
  1488. fastpathTV.EncSliceStringV(rv2i(rv).([]string), e)
  1489. }
  1490. }
  1491. func (_ fastpathT) EncSliceStringV(v []string, e *Encoder) {
  1492. if v == nil {
  1493. e.e.EncodeNil()
  1494. return
  1495. }
  1496. ee, esep := e.e, e.hh.hasElemSeparators()
  1497. ee.WriteArrayStart(len(v))
  1498. for _, v2 := range v {
  1499. if esep {
  1500. ee.WriteArrayElem()
  1501. }
  1502. ee.EncodeString(cUTF8, v2)
  1503. }
  1504. ee.WriteArrayEnd()
  1505. }
  1506. func (_ fastpathT) EncAsMapSliceStringV(v []string, e *Encoder) {
  1507. ee, esep := e.e, e.hh.hasElemSeparators()
  1508. if len(v)%2 == 1 {
  1509. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1510. return
  1511. }
  1512. ee.WriteMapStart(len(v) / 2)
  1513. for j, v2 := range v {
  1514. if esep {
  1515. if j%2 == 0 {
  1516. ee.WriteMapElemKey()
  1517. } else {
  1518. ee.WriteMapElemValue()
  1519. }
  1520. }
  1521. ee.EncodeString(cUTF8, v2)
  1522. }
  1523. ee.WriteMapEnd()
  1524. }
  1525. func (e *Encoder) fastpathEncSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  1526. if f.ti.mbs {
  1527. fastpathTV.EncAsMapSliceFloat32V(rv2i(rv).([]float32), e)
  1528. } else {
  1529. fastpathTV.EncSliceFloat32V(rv2i(rv).([]float32), e)
  1530. }
  1531. }
  1532. func (_ fastpathT) EncSliceFloat32V(v []float32, e *Encoder) {
  1533. if v == nil {
  1534. e.e.EncodeNil()
  1535. return
  1536. }
  1537. ee, esep := e.e, e.hh.hasElemSeparators()
  1538. ee.WriteArrayStart(len(v))
  1539. for _, v2 := range v {
  1540. if esep {
  1541. ee.WriteArrayElem()
  1542. }
  1543. ee.EncodeFloat32(v2)
  1544. }
  1545. ee.WriteArrayEnd()
  1546. }
  1547. func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, e *Encoder) {
  1548. ee, esep := e.e, e.hh.hasElemSeparators()
  1549. if len(v)%2 == 1 {
  1550. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1551. return
  1552. }
  1553. ee.WriteMapStart(len(v) / 2)
  1554. for j, v2 := range v {
  1555. if esep {
  1556. if j%2 == 0 {
  1557. ee.WriteMapElemKey()
  1558. } else {
  1559. ee.WriteMapElemValue()
  1560. }
  1561. }
  1562. ee.EncodeFloat32(v2)
  1563. }
  1564. ee.WriteMapEnd()
  1565. }
  1566. func (e *Encoder) fastpathEncSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  1567. if f.ti.mbs {
  1568. fastpathTV.EncAsMapSliceFloat64V(rv2i(rv).([]float64), e)
  1569. } else {
  1570. fastpathTV.EncSliceFloat64V(rv2i(rv).([]float64), e)
  1571. }
  1572. }
  1573. func (_ fastpathT) EncSliceFloat64V(v []float64, e *Encoder) {
  1574. if v == nil {
  1575. e.e.EncodeNil()
  1576. return
  1577. }
  1578. ee, esep := e.e, e.hh.hasElemSeparators()
  1579. ee.WriteArrayStart(len(v))
  1580. for _, v2 := range v {
  1581. if esep {
  1582. ee.WriteArrayElem()
  1583. }
  1584. ee.EncodeFloat64(v2)
  1585. }
  1586. ee.WriteArrayEnd()
  1587. }
  1588. func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, e *Encoder) {
  1589. ee, esep := e.e, e.hh.hasElemSeparators()
  1590. if len(v)%2 == 1 {
  1591. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1592. return
  1593. }
  1594. ee.WriteMapStart(len(v) / 2)
  1595. for j, v2 := range v {
  1596. if esep {
  1597. if j%2 == 0 {
  1598. ee.WriteMapElemKey()
  1599. } else {
  1600. ee.WriteMapElemValue()
  1601. }
  1602. }
  1603. ee.EncodeFloat64(v2)
  1604. }
  1605. ee.WriteMapEnd()
  1606. }
  1607. func (e *Encoder) fastpathEncSliceUintR(f *codecFnInfo, rv reflect.Value) {
  1608. if f.ti.mbs {
  1609. fastpathTV.EncAsMapSliceUintV(rv2i(rv).([]uint), e)
  1610. } else {
  1611. fastpathTV.EncSliceUintV(rv2i(rv).([]uint), e)
  1612. }
  1613. }
  1614. func (_ fastpathT) EncSliceUintV(v []uint, e *Encoder) {
  1615. if v == nil {
  1616. e.e.EncodeNil()
  1617. return
  1618. }
  1619. ee, esep := e.e, e.hh.hasElemSeparators()
  1620. ee.WriteArrayStart(len(v))
  1621. for _, v2 := range v {
  1622. if esep {
  1623. ee.WriteArrayElem()
  1624. }
  1625. ee.EncodeUint(uint64(v2))
  1626. }
  1627. ee.WriteArrayEnd()
  1628. }
  1629. func (_ fastpathT) EncAsMapSliceUintV(v []uint, e *Encoder) {
  1630. ee, esep := e.e, e.hh.hasElemSeparators()
  1631. if len(v)%2 == 1 {
  1632. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1633. return
  1634. }
  1635. ee.WriteMapStart(len(v) / 2)
  1636. for j, v2 := range v {
  1637. if esep {
  1638. if j%2 == 0 {
  1639. ee.WriteMapElemKey()
  1640. } else {
  1641. ee.WriteMapElemValue()
  1642. }
  1643. }
  1644. ee.EncodeUint(uint64(v2))
  1645. }
  1646. ee.WriteMapEnd()
  1647. }
  1648. func (e *Encoder) fastpathEncSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  1649. if f.ti.mbs {
  1650. fastpathTV.EncAsMapSliceUint8V(rv2i(rv).([]uint8), e)
  1651. } else {
  1652. fastpathTV.EncSliceUint8V(rv2i(rv).([]uint8), e)
  1653. }
  1654. }
  1655. func (_ fastpathT) EncSliceUint8V(v []uint8, e *Encoder) {
  1656. if v == nil {
  1657. e.e.EncodeNil()
  1658. return
  1659. }
  1660. ee, esep := e.e, e.hh.hasElemSeparators()
  1661. ee.WriteArrayStart(len(v))
  1662. for _, v2 := range v {
  1663. if esep {
  1664. ee.WriteArrayElem()
  1665. }
  1666. ee.EncodeUint(uint64(v2))
  1667. }
  1668. ee.WriteArrayEnd()
  1669. }
  1670. func (_ fastpathT) EncAsMapSliceUint8V(v []uint8, e *Encoder) {
  1671. ee, esep := e.e, e.hh.hasElemSeparators()
  1672. if len(v)%2 == 1 {
  1673. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1674. return
  1675. }
  1676. ee.WriteMapStart(len(v) / 2)
  1677. for j, v2 := range v {
  1678. if esep {
  1679. if j%2 == 0 {
  1680. ee.WriteMapElemKey()
  1681. } else {
  1682. ee.WriteMapElemValue()
  1683. }
  1684. }
  1685. ee.EncodeUint(uint64(v2))
  1686. }
  1687. ee.WriteMapEnd()
  1688. }
  1689. func (e *Encoder) fastpathEncSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  1690. if f.ti.mbs {
  1691. fastpathTV.EncAsMapSliceUint16V(rv2i(rv).([]uint16), e)
  1692. } else {
  1693. fastpathTV.EncSliceUint16V(rv2i(rv).([]uint16), e)
  1694. }
  1695. }
  1696. func (_ fastpathT) EncSliceUint16V(v []uint16, e *Encoder) {
  1697. if v == nil {
  1698. e.e.EncodeNil()
  1699. return
  1700. }
  1701. ee, esep := e.e, e.hh.hasElemSeparators()
  1702. ee.WriteArrayStart(len(v))
  1703. for _, v2 := range v {
  1704. if esep {
  1705. ee.WriteArrayElem()
  1706. }
  1707. ee.EncodeUint(uint64(v2))
  1708. }
  1709. ee.WriteArrayEnd()
  1710. }
  1711. func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, e *Encoder) {
  1712. ee, esep := e.e, e.hh.hasElemSeparators()
  1713. if len(v)%2 == 1 {
  1714. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1715. return
  1716. }
  1717. ee.WriteMapStart(len(v) / 2)
  1718. for j, v2 := range v {
  1719. if esep {
  1720. if j%2 == 0 {
  1721. ee.WriteMapElemKey()
  1722. } else {
  1723. ee.WriteMapElemValue()
  1724. }
  1725. }
  1726. ee.EncodeUint(uint64(v2))
  1727. }
  1728. ee.WriteMapEnd()
  1729. }
  1730. func (e *Encoder) fastpathEncSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  1731. if f.ti.mbs {
  1732. fastpathTV.EncAsMapSliceUint32V(rv2i(rv).([]uint32), e)
  1733. } else {
  1734. fastpathTV.EncSliceUint32V(rv2i(rv).([]uint32), e)
  1735. }
  1736. }
  1737. func (_ fastpathT) EncSliceUint32V(v []uint32, e *Encoder) {
  1738. if v == nil {
  1739. e.e.EncodeNil()
  1740. return
  1741. }
  1742. ee, esep := e.e, e.hh.hasElemSeparators()
  1743. ee.WriteArrayStart(len(v))
  1744. for _, v2 := range v {
  1745. if esep {
  1746. ee.WriteArrayElem()
  1747. }
  1748. ee.EncodeUint(uint64(v2))
  1749. }
  1750. ee.WriteArrayEnd()
  1751. }
  1752. func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, e *Encoder) {
  1753. ee, esep := e.e, e.hh.hasElemSeparators()
  1754. if len(v)%2 == 1 {
  1755. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1756. return
  1757. }
  1758. ee.WriteMapStart(len(v) / 2)
  1759. for j, v2 := range v {
  1760. if esep {
  1761. if j%2 == 0 {
  1762. ee.WriteMapElemKey()
  1763. } else {
  1764. ee.WriteMapElemValue()
  1765. }
  1766. }
  1767. ee.EncodeUint(uint64(v2))
  1768. }
  1769. ee.WriteMapEnd()
  1770. }
  1771. func (e *Encoder) fastpathEncSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  1772. if f.ti.mbs {
  1773. fastpathTV.EncAsMapSliceUint64V(rv2i(rv).([]uint64), e)
  1774. } else {
  1775. fastpathTV.EncSliceUint64V(rv2i(rv).([]uint64), e)
  1776. }
  1777. }
  1778. func (_ fastpathT) EncSliceUint64V(v []uint64, e *Encoder) {
  1779. if v == nil {
  1780. e.e.EncodeNil()
  1781. return
  1782. }
  1783. ee, esep := e.e, e.hh.hasElemSeparators()
  1784. ee.WriteArrayStart(len(v))
  1785. for _, v2 := range v {
  1786. if esep {
  1787. ee.WriteArrayElem()
  1788. }
  1789. ee.EncodeUint(uint64(v2))
  1790. }
  1791. ee.WriteArrayEnd()
  1792. }
  1793. func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, e *Encoder) {
  1794. ee, esep := e.e, e.hh.hasElemSeparators()
  1795. if len(v)%2 == 1 {
  1796. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1797. return
  1798. }
  1799. ee.WriteMapStart(len(v) / 2)
  1800. for j, v2 := range v {
  1801. if esep {
  1802. if j%2 == 0 {
  1803. ee.WriteMapElemKey()
  1804. } else {
  1805. ee.WriteMapElemValue()
  1806. }
  1807. }
  1808. ee.EncodeUint(uint64(v2))
  1809. }
  1810. ee.WriteMapEnd()
  1811. }
  1812. func (e *Encoder) fastpathEncSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  1813. if f.ti.mbs {
  1814. fastpathTV.EncAsMapSliceUintptrV(rv2i(rv).([]uintptr), e)
  1815. } else {
  1816. fastpathTV.EncSliceUintptrV(rv2i(rv).([]uintptr), e)
  1817. }
  1818. }
  1819. func (_ fastpathT) EncSliceUintptrV(v []uintptr, e *Encoder) {
  1820. if v == nil {
  1821. e.e.EncodeNil()
  1822. return
  1823. }
  1824. ee, esep := e.e, e.hh.hasElemSeparators()
  1825. ee.WriteArrayStart(len(v))
  1826. for _, v2 := range v {
  1827. if esep {
  1828. ee.WriteArrayElem()
  1829. }
  1830. e.encode(v2)
  1831. }
  1832. ee.WriteArrayEnd()
  1833. }
  1834. func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, e *Encoder) {
  1835. ee, esep := e.e, e.hh.hasElemSeparators()
  1836. if len(v)%2 == 1 {
  1837. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1838. return
  1839. }
  1840. ee.WriteMapStart(len(v) / 2)
  1841. for j, v2 := range v {
  1842. if esep {
  1843. if j%2 == 0 {
  1844. ee.WriteMapElemKey()
  1845. } else {
  1846. ee.WriteMapElemValue()
  1847. }
  1848. }
  1849. e.encode(v2)
  1850. }
  1851. ee.WriteMapEnd()
  1852. }
  1853. func (e *Encoder) fastpathEncSliceIntR(f *codecFnInfo, rv reflect.Value) {
  1854. if f.ti.mbs {
  1855. fastpathTV.EncAsMapSliceIntV(rv2i(rv).([]int), e)
  1856. } else {
  1857. fastpathTV.EncSliceIntV(rv2i(rv).([]int), e)
  1858. }
  1859. }
  1860. func (_ fastpathT) EncSliceIntV(v []int, e *Encoder) {
  1861. if v == nil {
  1862. e.e.EncodeNil()
  1863. return
  1864. }
  1865. ee, esep := e.e, e.hh.hasElemSeparators()
  1866. ee.WriteArrayStart(len(v))
  1867. for _, v2 := range v {
  1868. if esep {
  1869. ee.WriteArrayElem()
  1870. }
  1871. ee.EncodeInt(int64(v2))
  1872. }
  1873. ee.WriteArrayEnd()
  1874. }
  1875. func (_ fastpathT) EncAsMapSliceIntV(v []int, e *Encoder) {
  1876. ee, esep := e.e, e.hh.hasElemSeparators()
  1877. if len(v)%2 == 1 {
  1878. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1879. return
  1880. }
  1881. ee.WriteMapStart(len(v) / 2)
  1882. for j, v2 := range v {
  1883. if esep {
  1884. if j%2 == 0 {
  1885. ee.WriteMapElemKey()
  1886. } else {
  1887. ee.WriteMapElemValue()
  1888. }
  1889. }
  1890. ee.EncodeInt(int64(v2))
  1891. }
  1892. ee.WriteMapEnd()
  1893. }
  1894. func (e *Encoder) fastpathEncSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  1895. if f.ti.mbs {
  1896. fastpathTV.EncAsMapSliceInt8V(rv2i(rv).([]int8), e)
  1897. } else {
  1898. fastpathTV.EncSliceInt8V(rv2i(rv).([]int8), e)
  1899. }
  1900. }
  1901. func (_ fastpathT) EncSliceInt8V(v []int8, e *Encoder) {
  1902. if v == nil {
  1903. e.e.EncodeNil()
  1904. return
  1905. }
  1906. ee, esep := e.e, e.hh.hasElemSeparators()
  1907. ee.WriteArrayStart(len(v))
  1908. for _, v2 := range v {
  1909. if esep {
  1910. ee.WriteArrayElem()
  1911. }
  1912. ee.EncodeInt(int64(v2))
  1913. }
  1914. ee.WriteArrayEnd()
  1915. }
  1916. func (_ fastpathT) EncAsMapSliceInt8V(v []int8, e *Encoder) {
  1917. ee, esep := e.e, e.hh.hasElemSeparators()
  1918. if len(v)%2 == 1 {
  1919. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1920. return
  1921. }
  1922. ee.WriteMapStart(len(v) / 2)
  1923. for j, v2 := range v {
  1924. if esep {
  1925. if j%2 == 0 {
  1926. ee.WriteMapElemKey()
  1927. } else {
  1928. ee.WriteMapElemValue()
  1929. }
  1930. }
  1931. ee.EncodeInt(int64(v2))
  1932. }
  1933. ee.WriteMapEnd()
  1934. }
  1935. func (e *Encoder) fastpathEncSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  1936. if f.ti.mbs {
  1937. fastpathTV.EncAsMapSliceInt16V(rv2i(rv).([]int16), e)
  1938. } else {
  1939. fastpathTV.EncSliceInt16V(rv2i(rv).([]int16), e)
  1940. }
  1941. }
  1942. func (_ fastpathT) EncSliceInt16V(v []int16, e *Encoder) {
  1943. if v == nil {
  1944. e.e.EncodeNil()
  1945. return
  1946. }
  1947. ee, esep := e.e, e.hh.hasElemSeparators()
  1948. ee.WriteArrayStart(len(v))
  1949. for _, v2 := range v {
  1950. if esep {
  1951. ee.WriteArrayElem()
  1952. }
  1953. ee.EncodeInt(int64(v2))
  1954. }
  1955. ee.WriteArrayEnd()
  1956. }
  1957. func (_ fastpathT) EncAsMapSliceInt16V(v []int16, e *Encoder) {
  1958. ee, esep := e.e, e.hh.hasElemSeparators()
  1959. if len(v)%2 == 1 {
  1960. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1961. return
  1962. }
  1963. ee.WriteMapStart(len(v) / 2)
  1964. for j, v2 := range v {
  1965. if esep {
  1966. if j%2 == 0 {
  1967. ee.WriteMapElemKey()
  1968. } else {
  1969. ee.WriteMapElemValue()
  1970. }
  1971. }
  1972. ee.EncodeInt(int64(v2))
  1973. }
  1974. ee.WriteMapEnd()
  1975. }
  1976. func (e *Encoder) fastpathEncSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  1977. if f.ti.mbs {
  1978. fastpathTV.EncAsMapSliceInt32V(rv2i(rv).([]int32), e)
  1979. } else {
  1980. fastpathTV.EncSliceInt32V(rv2i(rv).([]int32), e)
  1981. }
  1982. }
  1983. func (_ fastpathT) EncSliceInt32V(v []int32, e *Encoder) {
  1984. if v == nil {
  1985. e.e.EncodeNil()
  1986. return
  1987. }
  1988. ee, esep := e.e, e.hh.hasElemSeparators()
  1989. ee.WriteArrayStart(len(v))
  1990. for _, v2 := range v {
  1991. if esep {
  1992. ee.WriteArrayElem()
  1993. }
  1994. ee.EncodeInt(int64(v2))
  1995. }
  1996. ee.WriteArrayEnd()
  1997. }
  1998. func (_ fastpathT) EncAsMapSliceInt32V(v []int32, e *Encoder) {
  1999. ee, esep := e.e, e.hh.hasElemSeparators()
  2000. if len(v)%2 == 1 {
  2001. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2002. return
  2003. }
  2004. ee.WriteMapStart(len(v) / 2)
  2005. for j, v2 := range v {
  2006. if esep {
  2007. if j%2 == 0 {
  2008. ee.WriteMapElemKey()
  2009. } else {
  2010. ee.WriteMapElemValue()
  2011. }
  2012. }
  2013. ee.EncodeInt(int64(v2))
  2014. }
  2015. ee.WriteMapEnd()
  2016. }
  2017. func (e *Encoder) fastpathEncSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  2018. if f.ti.mbs {
  2019. fastpathTV.EncAsMapSliceInt64V(rv2i(rv).([]int64), e)
  2020. } else {
  2021. fastpathTV.EncSliceInt64V(rv2i(rv).([]int64), e)
  2022. }
  2023. }
  2024. func (_ fastpathT) EncSliceInt64V(v []int64, e *Encoder) {
  2025. if v == nil {
  2026. e.e.EncodeNil()
  2027. return
  2028. }
  2029. ee, esep := e.e, e.hh.hasElemSeparators()
  2030. ee.WriteArrayStart(len(v))
  2031. for _, v2 := range v {
  2032. if esep {
  2033. ee.WriteArrayElem()
  2034. }
  2035. ee.EncodeInt(int64(v2))
  2036. }
  2037. ee.WriteArrayEnd()
  2038. }
  2039. func (_ fastpathT) EncAsMapSliceInt64V(v []int64, e *Encoder) {
  2040. ee, esep := e.e, e.hh.hasElemSeparators()
  2041. if len(v)%2 == 1 {
  2042. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2043. return
  2044. }
  2045. ee.WriteMapStart(len(v) / 2)
  2046. for j, v2 := range v {
  2047. if esep {
  2048. if j%2 == 0 {
  2049. ee.WriteMapElemKey()
  2050. } else {
  2051. ee.WriteMapElemValue()
  2052. }
  2053. }
  2054. ee.EncodeInt(int64(v2))
  2055. }
  2056. ee.WriteMapEnd()
  2057. }
  2058. func (e *Encoder) fastpathEncSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  2059. if f.ti.mbs {
  2060. fastpathTV.EncAsMapSliceBoolV(rv2i(rv).([]bool), e)
  2061. } else {
  2062. fastpathTV.EncSliceBoolV(rv2i(rv).([]bool), e)
  2063. }
  2064. }
  2065. func (_ fastpathT) EncSliceBoolV(v []bool, e *Encoder) {
  2066. if v == nil {
  2067. e.e.EncodeNil()
  2068. return
  2069. }
  2070. ee, esep := e.e, e.hh.hasElemSeparators()
  2071. ee.WriteArrayStart(len(v))
  2072. for _, v2 := range v {
  2073. if esep {
  2074. ee.WriteArrayElem()
  2075. }
  2076. ee.EncodeBool(v2)
  2077. }
  2078. ee.WriteArrayEnd()
  2079. }
  2080. func (_ fastpathT) EncAsMapSliceBoolV(v []bool, e *Encoder) {
  2081. ee, esep := e.e, e.hh.hasElemSeparators()
  2082. if len(v)%2 == 1 {
  2083. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2084. return
  2085. }
  2086. ee.WriteMapStart(len(v) / 2)
  2087. for j, v2 := range v {
  2088. if esep {
  2089. if j%2 == 0 {
  2090. ee.WriteMapElemKey()
  2091. } else {
  2092. ee.WriteMapElemValue()
  2093. }
  2094. }
  2095. ee.EncodeBool(v2)
  2096. }
  2097. ee.WriteMapEnd()
  2098. }
  2099. func (e *Encoder) fastpathEncMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  2100. fastpathTV.EncMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), e)
  2101. }
  2102. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, e *Encoder) {
  2103. if v == nil {
  2104. e.e.EncodeNil()
  2105. return
  2106. }
  2107. ee, esep := e.e, e.hh.hasElemSeparators()
  2108. ee.WriteMapStart(len(v))
  2109. if e.h.Canonical {
  2110. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2111. e2 := NewEncoderBytes(&mksv, e.hh)
  2112. v2 := make([]bytesI, len(v))
  2113. var i, l int
  2114. var vp *bytesI
  2115. for k2, _ := range v {
  2116. l = len(mksv)
  2117. e2.MustEncode(k2)
  2118. vp = &v2[i]
  2119. vp.v = mksv[l:]
  2120. vp.i = k2
  2121. i++
  2122. }
  2123. sort.Sort(bytesISlice(v2))
  2124. for j := range v2 {
  2125. if esep {
  2126. ee.WriteMapElemKey()
  2127. }
  2128. e.asis(v2[j].v)
  2129. if esep {
  2130. ee.WriteMapElemValue()
  2131. }
  2132. e.encode(v[v2[j].i])
  2133. }
  2134. } else {
  2135. for k2, v2 := range v {
  2136. if esep {
  2137. ee.WriteMapElemKey()
  2138. }
  2139. e.encode(k2)
  2140. if esep {
  2141. ee.WriteMapElemValue()
  2142. }
  2143. e.encode(v2)
  2144. }
  2145. }
  2146. ee.WriteMapEnd()
  2147. }
  2148. func (e *Encoder) fastpathEncMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  2149. fastpathTV.EncMapIntfStringV(rv2i(rv).(map[interface{}]string), e)
  2150. }
  2151. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, e *Encoder) {
  2152. if v == nil {
  2153. e.e.EncodeNil()
  2154. return
  2155. }
  2156. ee, esep := e.e, e.hh.hasElemSeparators()
  2157. ee.WriteMapStart(len(v))
  2158. if e.h.Canonical {
  2159. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2160. e2 := NewEncoderBytes(&mksv, e.hh)
  2161. v2 := make([]bytesI, len(v))
  2162. var i, l int
  2163. var vp *bytesI
  2164. for k2, _ := range v {
  2165. l = len(mksv)
  2166. e2.MustEncode(k2)
  2167. vp = &v2[i]
  2168. vp.v = mksv[l:]
  2169. vp.i = k2
  2170. i++
  2171. }
  2172. sort.Sort(bytesISlice(v2))
  2173. for j := range v2 {
  2174. if esep {
  2175. ee.WriteMapElemKey()
  2176. }
  2177. e.asis(v2[j].v)
  2178. if esep {
  2179. ee.WriteMapElemValue()
  2180. }
  2181. e.encode(v[v2[j].i])
  2182. }
  2183. } else {
  2184. for k2, v2 := range v {
  2185. if esep {
  2186. ee.WriteMapElemKey()
  2187. }
  2188. e.encode(k2)
  2189. if esep {
  2190. ee.WriteMapElemValue()
  2191. }
  2192. ee.EncodeString(cUTF8, v2)
  2193. }
  2194. }
  2195. ee.WriteMapEnd()
  2196. }
  2197. func (e *Encoder) fastpathEncMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  2198. fastpathTV.EncMapIntfUintV(rv2i(rv).(map[interface{}]uint), e)
  2199. }
  2200. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, e *Encoder) {
  2201. if v == nil {
  2202. e.e.EncodeNil()
  2203. return
  2204. }
  2205. ee, esep := e.e, e.hh.hasElemSeparators()
  2206. ee.WriteMapStart(len(v))
  2207. if e.h.Canonical {
  2208. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2209. e2 := NewEncoderBytes(&mksv, e.hh)
  2210. v2 := make([]bytesI, len(v))
  2211. var i, l int
  2212. var vp *bytesI
  2213. for k2, _ := range v {
  2214. l = len(mksv)
  2215. e2.MustEncode(k2)
  2216. vp = &v2[i]
  2217. vp.v = mksv[l:]
  2218. vp.i = k2
  2219. i++
  2220. }
  2221. sort.Sort(bytesISlice(v2))
  2222. for j := range v2 {
  2223. if esep {
  2224. ee.WriteMapElemKey()
  2225. }
  2226. e.asis(v2[j].v)
  2227. if esep {
  2228. ee.WriteMapElemValue()
  2229. }
  2230. e.encode(v[v2[j].i])
  2231. }
  2232. } else {
  2233. for k2, v2 := range v {
  2234. if esep {
  2235. ee.WriteMapElemKey()
  2236. }
  2237. e.encode(k2)
  2238. if esep {
  2239. ee.WriteMapElemValue()
  2240. }
  2241. ee.EncodeUint(uint64(v2))
  2242. }
  2243. }
  2244. ee.WriteMapEnd()
  2245. }
  2246. func (e *Encoder) fastpathEncMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  2247. fastpathTV.EncMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), e)
  2248. }
  2249. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, e *Encoder) {
  2250. if v == nil {
  2251. e.e.EncodeNil()
  2252. return
  2253. }
  2254. ee, esep := e.e, e.hh.hasElemSeparators()
  2255. ee.WriteMapStart(len(v))
  2256. if e.h.Canonical {
  2257. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2258. e2 := NewEncoderBytes(&mksv, e.hh)
  2259. v2 := make([]bytesI, len(v))
  2260. var i, l int
  2261. var vp *bytesI
  2262. for k2, _ := range v {
  2263. l = len(mksv)
  2264. e2.MustEncode(k2)
  2265. vp = &v2[i]
  2266. vp.v = mksv[l:]
  2267. vp.i = k2
  2268. i++
  2269. }
  2270. sort.Sort(bytesISlice(v2))
  2271. for j := range v2 {
  2272. if esep {
  2273. ee.WriteMapElemKey()
  2274. }
  2275. e.asis(v2[j].v)
  2276. if esep {
  2277. ee.WriteMapElemValue()
  2278. }
  2279. e.encode(v[v2[j].i])
  2280. }
  2281. } else {
  2282. for k2, v2 := range v {
  2283. if esep {
  2284. ee.WriteMapElemKey()
  2285. }
  2286. e.encode(k2)
  2287. if esep {
  2288. ee.WriteMapElemValue()
  2289. }
  2290. ee.EncodeUint(uint64(v2))
  2291. }
  2292. }
  2293. ee.WriteMapEnd()
  2294. }
  2295. func (e *Encoder) fastpathEncMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  2296. fastpathTV.EncMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), e)
  2297. }
  2298. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, e *Encoder) {
  2299. if v == nil {
  2300. e.e.EncodeNil()
  2301. return
  2302. }
  2303. ee, esep := e.e, e.hh.hasElemSeparators()
  2304. ee.WriteMapStart(len(v))
  2305. if e.h.Canonical {
  2306. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2307. e2 := NewEncoderBytes(&mksv, e.hh)
  2308. v2 := make([]bytesI, len(v))
  2309. var i, l int
  2310. var vp *bytesI
  2311. for k2, _ := range v {
  2312. l = len(mksv)
  2313. e2.MustEncode(k2)
  2314. vp = &v2[i]
  2315. vp.v = mksv[l:]
  2316. vp.i = k2
  2317. i++
  2318. }
  2319. sort.Sort(bytesISlice(v2))
  2320. for j := range v2 {
  2321. if esep {
  2322. ee.WriteMapElemKey()
  2323. }
  2324. e.asis(v2[j].v)
  2325. if esep {
  2326. ee.WriteMapElemValue()
  2327. }
  2328. e.encode(v[v2[j].i])
  2329. }
  2330. } else {
  2331. for k2, v2 := range v {
  2332. if esep {
  2333. ee.WriteMapElemKey()
  2334. }
  2335. e.encode(k2)
  2336. if esep {
  2337. ee.WriteMapElemValue()
  2338. }
  2339. ee.EncodeUint(uint64(v2))
  2340. }
  2341. }
  2342. ee.WriteMapEnd()
  2343. }
  2344. func (e *Encoder) fastpathEncMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  2345. fastpathTV.EncMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), e)
  2346. }
  2347. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, e *Encoder) {
  2348. if v == nil {
  2349. e.e.EncodeNil()
  2350. return
  2351. }
  2352. ee, esep := e.e, e.hh.hasElemSeparators()
  2353. ee.WriteMapStart(len(v))
  2354. if e.h.Canonical {
  2355. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2356. e2 := NewEncoderBytes(&mksv, e.hh)
  2357. v2 := make([]bytesI, len(v))
  2358. var i, l int
  2359. var vp *bytesI
  2360. for k2, _ := range v {
  2361. l = len(mksv)
  2362. e2.MustEncode(k2)
  2363. vp = &v2[i]
  2364. vp.v = mksv[l:]
  2365. vp.i = k2
  2366. i++
  2367. }
  2368. sort.Sort(bytesISlice(v2))
  2369. for j := range v2 {
  2370. if esep {
  2371. ee.WriteMapElemKey()
  2372. }
  2373. e.asis(v2[j].v)
  2374. if esep {
  2375. ee.WriteMapElemValue()
  2376. }
  2377. e.encode(v[v2[j].i])
  2378. }
  2379. } else {
  2380. for k2, v2 := range v {
  2381. if esep {
  2382. ee.WriteMapElemKey()
  2383. }
  2384. e.encode(k2)
  2385. if esep {
  2386. ee.WriteMapElemValue()
  2387. }
  2388. ee.EncodeUint(uint64(v2))
  2389. }
  2390. }
  2391. ee.WriteMapEnd()
  2392. }
  2393. func (e *Encoder) fastpathEncMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  2394. fastpathTV.EncMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), e)
  2395. }
  2396. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, e *Encoder) {
  2397. if v == nil {
  2398. e.e.EncodeNil()
  2399. return
  2400. }
  2401. ee, esep := e.e, e.hh.hasElemSeparators()
  2402. ee.WriteMapStart(len(v))
  2403. if e.h.Canonical {
  2404. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2405. e2 := NewEncoderBytes(&mksv, e.hh)
  2406. v2 := make([]bytesI, len(v))
  2407. var i, l int
  2408. var vp *bytesI
  2409. for k2, _ := range v {
  2410. l = len(mksv)
  2411. e2.MustEncode(k2)
  2412. vp = &v2[i]
  2413. vp.v = mksv[l:]
  2414. vp.i = k2
  2415. i++
  2416. }
  2417. sort.Sort(bytesISlice(v2))
  2418. for j := range v2 {
  2419. if esep {
  2420. ee.WriteMapElemKey()
  2421. }
  2422. e.asis(v2[j].v)
  2423. if esep {
  2424. ee.WriteMapElemValue()
  2425. }
  2426. e.encode(v[v2[j].i])
  2427. }
  2428. } else {
  2429. for k2, v2 := range v {
  2430. if esep {
  2431. ee.WriteMapElemKey()
  2432. }
  2433. e.encode(k2)
  2434. if esep {
  2435. ee.WriteMapElemValue()
  2436. }
  2437. ee.EncodeUint(uint64(v2))
  2438. }
  2439. }
  2440. ee.WriteMapEnd()
  2441. }
  2442. func (e *Encoder) fastpathEncMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  2443. fastpathTV.EncMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), e)
  2444. }
  2445. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, e *Encoder) {
  2446. if v == nil {
  2447. e.e.EncodeNil()
  2448. return
  2449. }
  2450. ee, esep := e.e, e.hh.hasElemSeparators()
  2451. ee.WriteMapStart(len(v))
  2452. if e.h.Canonical {
  2453. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2454. e2 := NewEncoderBytes(&mksv, e.hh)
  2455. v2 := make([]bytesI, len(v))
  2456. var i, l int
  2457. var vp *bytesI
  2458. for k2, _ := range v {
  2459. l = len(mksv)
  2460. e2.MustEncode(k2)
  2461. vp = &v2[i]
  2462. vp.v = mksv[l:]
  2463. vp.i = k2
  2464. i++
  2465. }
  2466. sort.Sort(bytesISlice(v2))
  2467. for j := range v2 {
  2468. if esep {
  2469. ee.WriteMapElemKey()
  2470. }
  2471. e.asis(v2[j].v)
  2472. if esep {
  2473. ee.WriteMapElemValue()
  2474. }
  2475. e.encode(v[v2[j].i])
  2476. }
  2477. } else {
  2478. for k2, v2 := range v {
  2479. if esep {
  2480. ee.WriteMapElemKey()
  2481. }
  2482. e.encode(k2)
  2483. if esep {
  2484. ee.WriteMapElemValue()
  2485. }
  2486. e.encode(v2)
  2487. }
  2488. }
  2489. ee.WriteMapEnd()
  2490. }
  2491. func (e *Encoder) fastpathEncMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  2492. fastpathTV.EncMapIntfIntV(rv2i(rv).(map[interface{}]int), e)
  2493. }
  2494. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, e *Encoder) {
  2495. if v == nil {
  2496. e.e.EncodeNil()
  2497. return
  2498. }
  2499. ee, esep := e.e, e.hh.hasElemSeparators()
  2500. ee.WriteMapStart(len(v))
  2501. if e.h.Canonical {
  2502. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2503. e2 := NewEncoderBytes(&mksv, e.hh)
  2504. v2 := make([]bytesI, len(v))
  2505. var i, l int
  2506. var vp *bytesI
  2507. for k2, _ := range v {
  2508. l = len(mksv)
  2509. e2.MustEncode(k2)
  2510. vp = &v2[i]
  2511. vp.v = mksv[l:]
  2512. vp.i = k2
  2513. i++
  2514. }
  2515. sort.Sort(bytesISlice(v2))
  2516. for j := range v2 {
  2517. if esep {
  2518. ee.WriteMapElemKey()
  2519. }
  2520. e.asis(v2[j].v)
  2521. if esep {
  2522. ee.WriteMapElemValue()
  2523. }
  2524. e.encode(v[v2[j].i])
  2525. }
  2526. } else {
  2527. for k2, v2 := range v {
  2528. if esep {
  2529. ee.WriteMapElemKey()
  2530. }
  2531. e.encode(k2)
  2532. if esep {
  2533. ee.WriteMapElemValue()
  2534. }
  2535. ee.EncodeInt(int64(v2))
  2536. }
  2537. }
  2538. ee.WriteMapEnd()
  2539. }
  2540. func (e *Encoder) fastpathEncMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  2541. fastpathTV.EncMapIntfInt8V(rv2i(rv).(map[interface{}]int8), e)
  2542. }
  2543. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, e *Encoder) {
  2544. if v == nil {
  2545. e.e.EncodeNil()
  2546. return
  2547. }
  2548. ee, esep := e.e, e.hh.hasElemSeparators()
  2549. ee.WriteMapStart(len(v))
  2550. if e.h.Canonical {
  2551. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2552. e2 := NewEncoderBytes(&mksv, e.hh)
  2553. v2 := make([]bytesI, len(v))
  2554. var i, l int
  2555. var vp *bytesI
  2556. for k2, _ := range v {
  2557. l = len(mksv)
  2558. e2.MustEncode(k2)
  2559. vp = &v2[i]
  2560. vp.v = mksv[l:]
  2561. vp.i = k2
  2562. i++
  2563. }
  2564. sort.Sort(bytesISlice(v2))
  2565. for j := range v2 {
  2566. if esep {
  2567. ee.WriteMapElemKey()
  2568. }
  2569. e.asis(v2[j].v)
  2570. if esep {
  2571. ee.WriteMapElemValue()
  2572. }
  2573. e.encode(v[v2[j].i])
  2574. }
  2575. } else {
  2576. for k2, v2 := range v {
  2577. if esep {
  2578. ee.WriteMapElemKey()
  2579. }
  2580. e.encode(k2)
  2581. if esep {
  2582. ee.WriteMapElemValue()
  2583. }
  2584. ee.EncodeInt(int64(v2))
  2585. }
  2586. }
  2587. ee.WriteMapEnd()
  2588. }
  2589. func (e *Encoder) fastpathEncMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  2590. fastpathTV.EncMapIntfInt16V(rv2i(rv).(map[interface{}]int16), e)
  2591. }
  2592. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, e *Encoder) {
  2593. if v == nil {
  2594. e.e.EncodeNil()
  2595. return
  2596. }
  2597. ee, esep := e.e, e.hh.hasElemSeparators()
  2598. ee.WriteMapStart(len(v))
  2599. if e.h.Canonical {
  2600. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2601. e2 := NewEncoderBytes(&mksv, e.hh)
  2602. v2 := make([]bytesI, len(v))
  2603. var i, l int
  2604. var vp *bytesI
  2605. for k2, _ := range v {
  2606. l = len(mksv)
  2607. e2.MustEncode(k2)
  2608. vp = &v2[i]
  2609. vp.v = mksv[l:]
  2610. vp.i = k2
  2611. i++
  2612. }
  2613. sort.Sort(bytesISlice(v2))
  2614. for j := range v2 {
  2615. if esep {
  2616. ee.WriteMapElemKey()
  2617. }
  2618. e.asis(v2[j].v)
  2619. if esep {
  2620. ee.WriteMapElemValue()
  2621. }
  2622. e.encode(v[v2[j].i])
  2623. }
  2624. } else {
  2625. for k2, v2 := range v {
  2626. if esep {
  2627. ee.WriteMapElemKey()
  2628. }
  2629. e.encode(k2)
  2630. if esep {
  2631. ee.WriteMapElemValue()
  2632. }
  2633. ee.EncodeInt(int64(v2))
  2634. }
  2635. }
  2636. ee.WriteMapEnd()
  2637. }
  2638. func (e *Encoder) fastpathEncMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  2639. fastpathTV.EncMapIntfInt32V(rv2i(rv).(map[interface{}]int32), e)
  2640. }
  2641. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, e *Encoder) {
  2642. if v == nil {
  2643. e.e.EncodeNil()
  2644. return
  2645. }
  2646. ee, esep := e.e, e.hh.hasElemSeparators()
  2647. ee.WriteMapStart(len(v))
  2648. if e.h.Canonical {
  2649. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2650. e2 := NewEncoderBytes(&mksv, e.hh)
  2651. v2 := make([]bytesI, len(v))
  2652. var i, l int
  2653. var vp *bytesI
  2654. for k2, _ := range v {
  2655. l = len(mksv)
  2656. e2.MustEncode(k2)
  2657. vp = &v2[i]
  2658. vp.v = mksv[l:]
  2659. vp.i = k2
  2660. i++
  2661. }
  2662. sort.Sort(bytesISlice(v2))
  2663. for j := range v2 {
  2664. if esep {
  2665. ee.WriteMapElemKey()
  2666. }
  2667. e.asis(v2[j].v)
  2668. if esep {
  2669. ee.WriteMapElemValue()
  2670. }
  2671. e.encode(v[v2[j].i])
  2672. }
  2673. } else {
  2674. for k2, v2 := range v {
  2675. if esep {
  2676. ee.WriteMapElemKey()
  2677. }
  2678. e.encode(k2)
  2679. if esep {
  2680. ee.WriteMapElemValue()
  2681. }
  2682. ee.EncodeInt(int64(v2))
  2683. }
  2684. }
  2685. ee.WriteMapEnd()
  2686. }
  2687. func (e *Encoder) fastpathEncMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  2688. fastpathTV.EncMapIntfInt64V(rv2i(rv).(map[interface{}]int64), e)
  2689. }
  2690. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, e *Encoder) {
  2691. if v == nil {
  2692. e.e.EncodeNil()
  2693. return
  2694. }
  2695. ee, esep := e.e, e.hh.hasElemSeparators()
  2696. ee.WriteMapStart(len(v))
  2697. if e.h.Canonical {
  2698. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2699. e2 := NewEncoderBytes(&mksv, e.hh)
  2700. v2 := make([]bytesI, len(v))
  2701. var i, l int
  2702. var vp *bytesI
  2703. for k2, _ := range v {
  2704. l = len(mksv)
  2705. e2.MustEncode(k2)
  2706. vp = &v2[i]
  2707. vp.v = mksv[l:]
  2708. vp.i = k2
  2709. i++
  2710. }
  2711. sort.Sort(bytesISlice(v2))
  2712. for j := range v2 {
  2713. if esep {
  2714. ee.WriteMapElemKey()
  2715. }
  2716. e.asis(v2[j].v)
  2717. if esep {
  2718. ee.WriteMapElemValue()
  2719. }
  2720. e.encode(v[v2[j].i])
  2721. }
  2722. } else {
  2723. for k2, v2 := range v {
  2724. if esep {
  2725. ee.WriteMapElemKey()
  2726. }
  2727. e.encode(k2)
  2728. if esep {
  2729. ee.WriteMapElemValue()
  2730. }
  2731. ee.EncodeInt(int64(v2))
  2732. }
  2733. }
  2734. ee.WriteMapEnd()
  2735. }
  2736. func (e *Encoder) fastpathEncMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  2737. fastpathTV.EncMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), e)
  2738. }
  2739. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, e *Encoder) {
  2740. if v == nil {
  2741. e.e.EncodeNil()
  2742. return
  2743. }
  2744. ee, esep := e.e, e.hh.hasElemSeparators()
  2745. ee.WriteMapStart(len(v))
  2746. if e.h.Canonical {
  2747. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2748. e2 := NewEncoderBytes(&mksv, e.hh)
  2749. v2 := make([]bytesI, len(v))
  2750. var i, l int
  2751. var vp *bytesI
  2752. for k2, _ := range v {
  2753. l = len(mksv)
  2754. e2.MustEncode(k2)
  2755. vp = &v2[i]
  2756. vp.v = mksv[l:]
  2757. vp.i = k2
  2758. i++
  2759. }
  2760. sort.Sort(bytesISlice(v2))
  2761. for j := range v2 {
  2762. if esep {
  2763. ee.WriteMapElemKey()
  2764. }
  2765. e.asis(v2[j].v)
  2766. if esep {
  2767. ee.WriteMapElemValue()
  2768. }
  2769. e.encode(v[v2[j].i])
  2770. }
  2771. } else {
  2772. for k2, v2 := range v {
  2773. if esep {
  2774. ee.WriteMapElemKey()
  2775. }
  2776. e.encode(k2)
  2777. if esep {
  2778. ee.WriteMapElemValue()
  2779. }
  2780. ee.EncodeFloat32(v2)
  2781. }
  2782. }
  2783. ee.WriteMapEnd()
  2784. }
  2785. func (e *Encoder) fastpathEncMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  2786. fastpathTV.EncMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), e)
  2787. }
  2788. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, e *Encoder) {
  2789. if v == nil {
  2790. e.e.EncodeNil()
  2791. return
  2792. }
  2793. ee, esep := e.e, e.hh.hasElemSeparators()
  2794. ee.WriteMapStart(len(v))
  2795. if e.h.Canonical {
  2796. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2797. e2 := NewEncoderBytes(&mksv, e.hh)
  2798. v2 := make([]bytesI, len(v))
  2799. var i, l int
  2800. var vp *bytesI
  2801. for k2, _ := range v {
  2802. l = len(mksv)
  2803. e2.MustEncode(k2)
  2804. vp = &v2[i]
  2805. vp.v = mksv[l:]
  2806. vp.i = k2
  2807. i++
  2808. }
  2809. sort.Sort(bytesISlice(v2))
  2810. for j := range v2 {
  2811. if esep {
  2812. ee.WriteMapElemKey()
  2813. }
  2814. e.asis(v2[j].v)
  2815. if esep {
  2816. ee.WriteMapElemValue()
  2817. }
  2818. e.encode(v[v2[j].i])
  2819. }
  2820. } else {
  2821. for k2, v2 := range v {
  2822. if esep {
  2823. ee.WriteMapElemKey()
  2824. }
  2825. e.encode(k2)
  2826. if esep {
  2827. ee.WriteMapElemValue()
  2828. }
  2829. ee.EncodeFloat64(v2)
  2830. }
  2831. }
  2832. ee.WriteMapEnd()
  2833. }
  2834. func (e *Encoder) fastpathEncMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  2835. fastpathTV.EncMapIntfBoolV(rv2i(rv).(map[interface{}]bool), e)
  2836. }
  2837. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, e *Encoder) {
  2838. if v == nil {
  2839. e.e.EncodeNil()
  2840. return
  2841. }
  2842. ee, esep := e.e, e.hh.hasElemSeparators()
  2843. ee.WriteMapStart(len(v))
  2844. if e.h.Canonical {
  2845. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2846. e2 := NewEncoderBytes(&mksv, e.hh)
  2847. v2 := make([]bytesI, len(v))
  2848. var i, l int
  2849. var vp *bytesI
  2850. for k2, _ := range v {
  2851. l = len(mksv)
  2852. e2.MustEncode(k2)
  2853. vp = &v2[i]
  2854. vp.v = mksv[l:]
  2855. vp.i = k2
  2856. i++
  2857. }
  2858. sort.Sort(bytesISlice(v2))
  2859. for j := range v2 {
  2860. if esep {
  2861. ee.WriteMapElemKey()
  2862. }
  2863. e.asis(v2[j].v)
  2864. if esep {
  2865. ee.WriteMapElemValue()
  2866. }
  2867. e.encode(v[v2[j].i])
  2868. }
  2869. } else {
  2870. for k2, v2 := range v {
  2871. if esep {
  2872. ee.WriteMapElemKey()
  2873. }
  2874. e.encode(k2)
  2875. if esep {
  2876. ee.WriteMapElemValue()
  2877. }
  2878. ee.EncodeBool(v2)
  2879. }
  2880. }
  2881. ee.WriteMapEnd()
  2882. }
  2883. func (e *Encoder) fastpathEncMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  2884. fastpathTV.EncMapStringIntfV(rv2i(rv).(map[string]interface{}), e)
  2885. }
  2886. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, e *Encoder) {
  2887. if v == nil {
  2888. e.e.EncodeNil()
  2889. return
  2890. }
  2891. ee, esep := e.e, e.hh.hasElemSeparators()
  2892. ee.WriteMapStart(len(v))
  2893. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2894. if e.h.Canonical {
  2895. v2 := make([]string, len(v))
  2896. var i int
  2897. for k, _ := range v {
  2898. v2[i] = string(k)
  2899. i++
  2900. }
  2901. sort.Sort(stringSlice(v2))
  2902. for _, k2 := range v2 {
  2903. if esep {
  2904. ee.WriteMapElemKey()
  2905. }
  2906. if asSymbols {
  2907. ee.EncodeSymbol(k2)
  2908. } else {
  2909. ee.EncodeString(cUTF8, k2)
  2910. }
  2911. if esep {
  2912. ee.WriteMapElemValue()
  2913. }
  2914. e.encode(v[string(k2)])
  2915. }
  2916. } else {
  2917. for k2, v2 := range v {
  2918. if esep {
  2919. ee.WriteMapElemKey()
  2920. }
  2921. if asSymbols {
  2922. ee.EncodeSymbol(k2)
  2923. } else {
  2924. ee.EncodeString(cUTF8, k2)
  2925. }
  2926. if esep {
  2927. ee.WriteMapElemValue()
  2928. }
  2929. e.encode(v2)
  2930. }
  2931. }
  2932. ee.WriteMapEnd()
  2933. }
  2934. func (e *Encoder) fastpathEncMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  2935. fastpathTV.EncMapStringStringV(rv2i(rv).(map[string]string), e)
  2936. }
  2937. func (_ fastpathT) EncMapStringStringV(v map[string]string, e *Encoder) {
  2938. if v == nil {
  2939. e.e.EncodeNil()
  2940. return
  2941. }
  2942. ee, esep := e.e, e.hh.hasElemSeparators()
  2943. ee.WriteMapStart(len(v))
  2944. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2945. if e.h.Canonical {
  2946. v2 := make([]string, len(v))
  2947. var i int
  2948. for k, _ := range v {
  2949. v2[i] = string(k)
  2950. i++
  2951. }
  2952. sort.Sort(stringSlice(v2))
  2953. for _, k2 := range v2 {
  2954. if esep {
  2955. ee.WriteMapElemKey()
  2956. }
  2957. if asSymbols {
  2958. ee.EncodeSymbol(k2)
  2959. } else {
  2960. ee.EncodeString(cUTF8, k2)
  2961. }
  2962. if esep {
  2963. ee.WriteMapElemValue()
  2964. }
  2965. ee.EncodeString(cUTF8, v[string(k2)])
  2966. }
  2967. } else {
  2968. for k2, v2 := range v {
  2969. if esep {
  2970. ee.WriteMapElemKey()
  2971. }
  2972. if asSymbols {
  2973. ee.EncodeSymbol(k2)
  2974. } else {
  2975. ee.EncodeString(cUTF8, k2)
  2976. }
  2977. if esep {
  2978. ee.WriteMapElemValue()
  2979. }
  2980. ee.EncodeString(cUTF8, v2)
  2981. }
  2982. }
  2983. ee.WriteMapEnd()
  2984. }
  2985. func (e *Encoder) fastpathEncMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  2986. fastpathTV.EncMapStringUintV(rv2i(rv).(map[string]uint), e)
  2987. }
  2988. func (_ fastpathT) EncMapStringUintV(v map[string]uint, e *Encoder) {
  2989. if v == nil {
  2990. e.e.EncodeNil()
  2991. return
  2992. }
  2993. ee, esep := e.e, e.hh.hasElemSeparators()
  2994. ee.WriteMapStart(len(v))
  2995. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2996. if e.h.Canonical {
  2997. v2 := make([]string, len(v))
  2998. var i int
  2999. for k, _ := range v {
  3000. v2[i] = string(k)
  3001. i++
  3002. }
  3003. sort.Sort(stringSlice(v2))
  3004. for _, k2 := range v2 {
  3005. if esep {
  3006. ee.WriteMapElemKey()
  3007. }
  3008. if asSymbols {
  3009. ee.EncodeSymbol(k2)
  3010. } else {
  3011. ee.EncodeString(cUTF8, k2)
  3012. }
  3013. if esep {
  3014. ee.WriteMapElemValue()
  3015. }
  3016. ee.EncodeUint(uint64(v[string(k2)]))
  3017. }
  3018. } else {
  3019. for k2, v2 := range v {
  3020. if esep {
  3021. ee.WriteMapElemKey()
  3022. }
  3023. if asSymbols {
  3024. ee.EncodeSymbol(k2)
  3025. } else {
  3026. ee.EncodeString(cUTF8, k2)
  3027. }
  3028. if esep {
  3029. ee.WriteMapElemValue()
  3030. }
  3031. ee.EncodeUint(uint64(v2))
  3032. }
  3033. }
  3034. ee.WriteMapEnd()
  3035. }
  3036. func (e *Encoder) fastpathEncMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  3037. fastpathTV.EncMapStringUint8V(rv2i(rv).(map[string]uint8), e)
  3038. }
  3039. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, e *Encoder) {
  3040. if v == nil {
  3041. e.e.EncodeNil()
  3042. return
  3043. }
  3044. ee, esep := e.e, e.hh.hasElemSeparators()
  3045. ee.WriteMapStart(len(v))
  3046. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3047. if e.h.Canonical {
  3048. v2 := make([]string, len(v))
  3049. var i int
  3050. for k, _ := range v {
  3051. v2[i] = string(k)
  3052. i++
  3053. }
  3054. sort.Sort(stringSlice(v2))
  3055. for _, k2 := range v2 {
  3056. if esep {
  3057. ee.WriteMapElemKey()
  3058. }
  3059. if asSymbols {
  3060. ee.EncodeSymbol(k2)
  3061. } else {
  3062. ee.EncodeString(cUTF8, k2)
  3063. }
  3064. if esep {
  3065. ee.WriteMapElemValue()
  3066. }
  3067. ee.EncodeUint(uint64(v[string(k2)]))
  3068. }
  3069. } else {
  3070. for k2, v2 := range v {
  3071. if esep {
  3072. ee.WriteMapElemKey()
  3073. }
  3074. if asSymbols {
  3075. ee.EncodeSymbol(k2)
  3076. } else {
  3077. ee.EncodeString(cUTF8, k2)
  3078. }
  3079. if esep {
  3080. ee.WriteMapElemValue()
  3081. }
  3082. ee.EncodeUint(uint64(v2))
  3083. }
  3084. }
  3085. ee.WriteMapEnd()
  3086. }
  3087. func (e *Encoder) fastpathEncMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  3088. fastpathTV.EncMapStringUint16V(rv2i(rv).(map[string]uint16), e)
  3089. }
  3090. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, e *Encoder) {
  3091. if v == nil {
  3092. e.e.EncodeNil()
  3093. return
  3094. }
  3095. ee, esep := e.e, e.hh.hasElemSeparators()
  3096. ee.WriteMapStart(len(v))
  3097. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3098. if e.h.Canonical {
  3099. v2 := make([]string, len(v))
  3100. var i int
  3101. for k, _ := range v {
  3102. v2[i] = string(k)
  3103. i++
  3104. }
  3105. sort.Sort(stringSlice(v2))
  3106. for _, k2 := range v2 {
  3107. if esep {
  3108. ee.WriteMapElemKey()
  3109. }
  3110. if asSymbols {
  3111. ee.EncodeSymbol(k2)
  3112. } else {
  3113. ee.EncodeString(cUTF8, k2)
  3114. }
  3115. if esep {
  3116. ee.WriteMapElemValue()
  3117. }
  3118. ee.EncodeUint(uint64(v[string(k2)]))
  3119. }
  3120. } else {
  3121. for k2, v2 := range v {
  3122. if esep {
  3123. ee.WriteMapElemKey()
  3124. }
  3125. if asSymbols {
  3126. ee.EncodeSymbol(k2)
  3127. } else {
  3128. ee.EncodeString(cUTF8, k2)
  3129. }
  3130. if esep {
  3131. ee.WriteMapElemValue()
  3132. }
  3133. ee.EncodeUint(uint64(v2))
  3134. }
  3135. }
  3136. ee.WriteMapEnd()
  3137. }
  3138. func (e *Encoder) fastpathEncMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  3139. fastpathTV.EncMapStringUint32V(rv2i(rv).(map[string]uint32), e)
  3140. }
  3141. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, e *Encoder) {
  3142. if v == nil {
  3143. e.e.EncodeNil()
  3144. return
  3145. }
  3146. ee, esep := e.e, e.hh.hasElemSeparators()
  3147. ee.WriteMapStart(len(v))
  3148. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3149. if e.h.Canonical {
  3150. v2 := make([]string, len(v))
  3151. var i int
  3152. for k, _ := range v {
  3153. v2[i] = string(k)
  3154. i++
  3155. }
  3156. sort.Sort(stringSlice(v2))
  3157. for _, k2 := range v2 {
  3158. if esep {
  3159. ee.WriteMapElemKey()
  3160. }
  3161. if asSymbols {
  3162. ee.EncodeSymbol(k2)
  3163. } else {
  3164. ee.EncodeString(cUTF8, k2)
  3165. }
  3166. if esep {
  3167. ee.WriteMapElemValue()
  3168. }
  3169. ee.EncodeUint(uint64(v[string(k2)]))
  3170. }
  3171. } else {
  3172. for k2, v2 := range v {
  3173. if esep {
  3174. ee.WriteMapElemKey()
  3175. }
  3176. if asSymbols {
  3177. ee.EncodeSymbol(k2)
  3178. } else {
  3179. ee.EncodeString(cUTF8, k2)
  3180. }
  3181. if esep {
  3182. ee.WriteMapElemValue()
  3183. }
  3184. ee.EncodeUint(uint64(v2))
  3185. }
  3186. }
  3187. ee.WriteMapEnd()
  3188. }
  3189. func (e *Encoder) fastpathEncMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  3190. fastpathTV.EncMapStringUint64V(rv2i(rv).(map[string]uint64), e)
  3191. }
  3192. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, e *Encoder) {
  3193. if v == nil {
  3194. e.e.EncodeNil()
  3195. return
  3196. }
  3197. ee, esep := e.e, e.hh.hasElemSeparators()
  3198. ee.WriteMapStart(len(v))
  3199. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3200. if e.h.Canonical {
  3201. v2 := make([]string, len(v))
  3202. var i int
  3203. for k, _ := range v {
  3204. v2[i] = string(k)
  3205. i++
  3206. }
  3207. sort.Sort(stringSlice(v2))
  3208. for _, k2 := range v2 {
  3209. if esep {
  3210. ee.WriteMapElemKey()
  3211. }
  3212. if asSymbols {
  3213. ee.EncodeSymbol(k2)
  3214. } else {
  3215. ee.EncodeString(cUTF8, k2)
  3216. }
  3217. if esep {
  3218. ee.WriteMapElemValue()
  3219. }
  3220. ee.EncodeUint(uint64(v[string(k2)]))
  3221. }
  3222. } else {
  3223. for k2, v2 := range v {
  3224. if esep {
  3225. ee.WriteMapElemKey()
  3226. }
  3227. if asSymbols {
  3228. ee.EncodeSymbol(k2)
  3229. } else {
  3230. ee.EncodeString(cUTF8, k2)
  3231. }
  3232. if esep {
  3233. ee.WriteMapElemValue()
  3234. }
  3235. ee.EncodeUint(uint64(v2))
  3236. }
  3237. }
  3238. ee.WriteMapEnd()
  3239. }
  3240. func (e *Encoder) fastpathEncMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  3241. fastpathTV.EncMapStringUintptrV(rv2i(rv).(map[string]uintptr), e)
  3242. }
  3243. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, e *Encoder) {
  3244. if v == nil {
  3245. e.e.EncodeNil()
  3246. return
  3247. }
  3248. ee, esep := e.e, e.hh.hasElemSeparators()
  3249. ee.WriteMapStart(len(v))
  3250. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3251. if e.h.Canonical {
  3252. v2 := make([]string, len(v))
  3253. var i int
  3254. for k, _ := range v {
  3255. v2[i] = string(k)
  3256. i++
  3257. }
  3258. sort.Sort(stringSlice(v2))
  3259. for _, k2 := range v2 {
  3260. if esep {
  3261. ee.WriteMapElemKey()
  3262. }
  3263. if asSymbols {
  3264. ee.EncodeSymbol(k2)
  3265. } else {
  3266. ee.EncodeString(cUTF8, k2)
  3267. }
  3268. if esep {
  3269. ee.WriteMapElemValue()
  3270. }
  3271. e.encode(v[string(k2)])
  3272. }
  3273. } else {
  3274. for k2, v2 := range v {
  3275. if esep {
  3276. ee.WriteMapElemKey()
  3277. }
  3278. if asSymbols {
  3279. ee.EncodeSymbol(k2)
  3280. } else {
  3281. ee.EncodeString(cUTF8, k2)
  3282. }
  3283. if esep {
  3284. ee.WriteMapElemValue()
  3285. }
  3286. e.encode(v2)
  3287. }
  3288. }
  3289. ee.WriteMapEnd()
  3290. }
  3291. func (e *Encoder) fastpathEncMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  3292. fastpathTV.EncMapStringIntV(rv2i(rv).(map[string]int), e)
  3293. }
  3294. func (_ fastpathT) EncMapStringIntV(v map[string]int, e *Encoder) {
  3295. if v == nil {
  3296. e.e.EncodeNil()
  3297. return
  3298. }
  3299. ee, esep := e.e, e.hh.hasElemSeparators()
  3300. ee.WriteMapStart(len(v))
  3301. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3302. if e.h.Canonical {
  3303. v2 := make([]string, len(v))
  3304. var i int
  3305. for k, _ := range v {
  3306. v2[i] = string(k)
  3307. i++
  3308. }
  3309. sort.Sort(stringSlice(v2))
  3310. for _, k2 := range v2 {
  3311. if esep {
  3312. ee.WriteMapElemKey()
  3313. }
  3314. if asSymbols {
  3315. ee.EncodeSymbol(k2)
  3316. } else {
  3317. ee.EncodeString(cUTF8, k2)
  3318. }
  3319. if esep {
  3320. ee.WriteMapElemValue()
  3321. }
  3322. ee.EncodeInt(int64(v[string(k2)]))
  3323. }
  3324. } else {
  3325. for k2, v2 := range v {
  3326. if esep {
  3327. ee.WriteMapElemKey()
  3328. }
  3329. if asSymbols {
  3330. ee.EncodeSymbol(k2)
  3331. } else {
  3332. ee.EncodeString(cUTF8, k2)
  3333. }
  3334. if esep {
  3335. ee.WriteMapElemValue()
  3336. }
  3337. ee.EncodeInt(int64(v2))
  3338. }
  3339. }
  3340. ee.WriteMapEnd()
  3341. }
  3342. func (e *Encoder) fastpathEncMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  3343. fastpathTV.EncMapStringInt8V(rv2i(rv).(map[string]int8), e)
  3344. }
  3345. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, e *Encoder) {
  3346. if v == nil {
  3347. e.e.EncodeNil()
  3348. return
  3349. }
  3350. ee, esep := e.e, e.hh.hasElemSeparators()
  3351. ee.WriteMapStart(len(v))
  3352. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3353. if e.h.Canonical {
  3354. v2 := make([]string, len(v))
  3355. var i int
  3356. for k, _ := range v {
  3357. v2[i] = string(k)
  3358. i++
  3359. }
  3360. sort.Sort(stringSlice(v2))
  3361. for _, k2 := range v2 {
  3362. if esep {
  3363. ee.WriteMapElemKey()
  3364. }
  3365. if asSymbols {
  3366. ee.EncodeSymbol(k2)
  3367. } else {
  3368. ee.EncodeString(cUTF8, k2)
  3369. }
  3370. if esep {
  3371. ee.WriteMapElemValue()
  3372. }
  3373. ee.EncodeInt(int64(v[string(k2)]))
  3374. }
  3375. } else {
  3376. for k2, v2 := range v {
  3377. if esep {
  3378. ee.WriteMapElemKey()
  3379. }
  3380. if asSymbols {
  3381. ee.EncodeSymbol(k2)
  3382. } else {
  3383. ee.EncodeString(cUTF8, k2)
  3384. }
  3385. if esep {
  3386. ee.WriteMapElemValue()
  3387. }
  3388. ee.EncodeInt(int64(v2))
  3389. }
  3390. }
  3391. ee.WriteMapEnd()
  3392. }
  3393. func (e *Encoder) fastpathEncMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  3394. fastpathTV.EncMapStringInt16V(rv2i(rv).(map[string]int16), e)
  3395. }
  3396. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, e *Encoder) {
  3397. if v == nil {
  3398. e.e.EncodeNil()
  3399. return
  3400. }
  3401. ee, esep := e.e, e.hh.hasElemSeparators()
  3402. ee.WriteMapStart(len(v))
  3403. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3404. if e.h.Canonical {
  3405. v2 := make([]string, len(v))
  3406. var i int
  3407. for k, _ := range v {
  3408. v2[i] = string(k)
  3409. i++
  3410. }
  3411. sort.Sort(stringSlice(v2))
  3412. for _, k2 := range v2 {
  3413. if esep {
  3414. ee.WriteMapElemKey()
  3415. }
  3416. if asSymbols {
  3417. ee.EncodeSymbol(k2)
  3418. } else {
  3419. ee.EncodeString(cUTF8, k2)
  3420. }
  3421. if esep {
  3422. ee.WriteMapElemValue()
  3423. }
  3424. ee.EncodeInt(int64(v[string(k2)]))
  3425. }
  3426. } else {
  3427. for k2, v2 := range v {
  3428. if esep {
  3429. ee.WriteMapElemKey()
  3430. }
  3431. if asSymbols {
  3432. ee.EncodeSymbol(k2)
  3433. } else {
  3434. ee.EncodeString(cUTF8, k2)
  3435. }
  3436. if esep {
  3437. ee.WriteMapElemValue()
  3438. }
  3439. ee.EncodeInt(int64(v2))
  3440. }
  3441. }
  3442. ee.WriteMapEnd()
  3443. }
  3444. func (e *Encoder) fastpathEncMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  3445. fastpathTV.EncMapStringInt32V(rv2i(rv).(map[string]int32), e)
  3446. }
  3447. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, e *Encoder) {
  3448. if v == nil {
  3449. e.e.EncodeNil()
  3450. return
  3451. }
  3452. ee, esep := e.e, e.hh.hasElemSeparators()
  3453. ee.WriteMapStart(len(v))
  3454. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3455. if e.h.Canonical {
  3456. v2 := make([]string, len(v))
  3457. var i int
  3458. for k, _ := range v {
  3459. v2[i] = string(k)
  3460. i++
  3461. }
  3462. sort.Sort(stringSlice(v2))
  3463. for _, k2 := range v2 {
  3464. if esep {
  3465. ee.WriteMapElemKey()
  3466. }
  3467. if asSymbols {
  3468. ee.EncodeSymbol(k2)
  3469. } else {
  3470. ee.EncodeString(cUTF8, k2)
  3471. }
  3472. if esep {
  3473. ee.WriteMapElemValue()
  3474. }
  3475. ee.EncodeInt(int64(v[string(k2)]))
  3476. }
  3477. } else {
  3478. for k2, v2 := range v {
  3479. if esep {
  3480. ee.WriteMapElemKey()
  3481. }
  3482. if asSymbols {
  3483. ee.EncodeSymbol(k2)
  3484. } else {
  3485. ee.EncodeString(cUTF8, k2)
  3486. }
  3487. if esep {
  3488. ee.WriteMapElemValue()
  3489. }
  3490. ee.EncodeInt(int64(v2))
  3491. }
  3492. }
  3493. ee.WriteMapEnd()
  3494. }
  3495. func (e *Encoder) fastpathEncMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  3496. fastpathTV.EncMapStringInt64V(rv2i(rv).(map[string]int64), e)
  3497. }
  3498. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, e *Encoder) {
  3499. if v == nil {
  3500. e.e.EncodeNil()
  3501. return
  3502. }
  3503. ee, esep := e.e, e.hh.hasElemSeparators()
  3504. ee.WriteMapStart(len(v))
  3505. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3506. if e.h.Canonical {
  3507. v2 := make([]string, len(v))
  3508. var i int
  3509. for k, _ := range v {
  3510. v2[i] = string(k)
  3511. i++
  3512. }
  3513. sort.Sort(stringSlice(v2))
  3514. for _, k2 := range v2 {
  3515. if esep {
  3516. ee.WriteMapElemKey()
  3517. }
  3518. if asSymbols {
  3519. ee.EncodeSymbol(k2)
  3520. } else {
  3521. ee.EncodeString(cUTF8, k2)
  3522. }
  3523. if esep {
  3524. ee.WriteMapElemValue()
  3525. }
  3526. ee.EncodeInt(int64(v[string(k2)]))
  3527. }
  3528. } else {
  3529. for k2, v2 := range v {
  3530. if esep {
  3531. ee.WriteMapElemKey()
  3532. }
  3533. if asSymbols {
  3534. ee.EncodeSymbol(k2)
  3535. } else {
  3536. ee.EncodeString(cUTF8, k2)
  3537. }
  3538. if esep {
  3539. ee.WriteMapElemValue()
  3540. }
  3541. ee.EncodeInt(int64(v2))
  3542. }
  3543. }
  3544. ee.WriteMapEnd()
  3545. }
  3546. func (e *Encoder) fastpathEncMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  3547. fastpathTV.EncMapStringFloat32V(rv2i(rv).(map[string]float32), e)
  3548. }
  3549. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, e *Encoder) {
  3550. if v == nil {
  3551. e.e.EncodeNil()
  3552. return
  3553. }
  3554. ee, esep := e.e, e.hh.hasElemSeparators()
  3555. ee.WriteMapStart(len(v))
  3556. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3557. if e.h.Canonical {
  3558. v2 := make([]string, len(v))
  3559. var i int
  3560. for k, _ := range v {
  3561. v2[i] = string(k)
  3562. i++
  3563. }
  3564. sort.Sort(stringSlice(v2))
  3565. for _, k2 := range v2 {
  3566. if esep {
  3567. ee.WriteMapElemKey()
  3568. }
  3569. if asSymbols {
  3570. ee.EncodeSymbol(k2)
  3571. } else {
  3572. ee.EncodeString(cUTF8, k2)
  3573. }
  3574. if esep {
  3575. ee.WriteMapElemValue()
  3576. }
  3577. ee.EncodeFloat32(v[string(k2)])
  3578. }
  3579. } else {
  3580. for k2, v2 := range v {
  3581. if esep {
  3582. ee.WriteMapElemKey()
  3583. }
  3584. if asSymbols {
  3585. ee.EncodeSymbol(k2)
  3586. } else {
  3587. ee.EncodeString(cUTF8, k2)
  3588. }
  3589. if esep {
  3590. ee.WriteMapElemValue()
  3591. }
  3592. ee.EncodeFloat32(v2)
  3593. }
  3594. }
  3595. ee.WriteMapEnd()
  3596. }
  3597. func (e *Encoder) fastpathEncMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  3598. fastpathTV.EncMapStringFloat64V(rv2i(rv).(map[string]float64), e)
  3599. }
  3600. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, e *Encoder) {
  3601. if v == nil {
  3602. e.e.EncodeNil()
  3603. return
  3604. }
  3605. ee, esep := e.e, e.hh.hasElemSeparators()
  3606. ee.WriteMapStart(len(v))
  3607. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3608. if e.h.Canonical {
  3609. v2 := make([]string, len(v))
  3610. var i int
  3611. for k, _ := range v {
  3612. v2[i] = string(k)
  3613. i++
  3614. }
  3615. sort.Sort(stringSlice(v2))
  3616. for _, k2 := range v2 {
  3617. if esep {
  3618. ee.WriteMapElemKey()
  3619. }
  3620. if asSymbols {
  3621. ee.EncodeSymbol(k2)
  3622. } else {
  3623. ee.EncodeString(cUTF8, k2)
  3624. }
  3625. if esep {
  3626. ee.WriteMapElemValue()
  3627. }
  3628. ee.EncodeFloat64(v[string(k2)])
  3629. }
  3630. } else {
  3631. for k2, v2 := range v {
  3632. if esep {
  3633. ee.WriteMapElemKey()
  3634. }
  3635. if asSymbols {
  3636. ee.EncodeSymbol(k2)
  3637. } else {
  3638. ee.EncodeString(cUTF8, k2)
  3639. }
  3640. if esep {
  3641. ee.WriteMapElemValue()
  3642. }
  3643. ee.EncodeFloat64(v2)
  3644. }
  3645. }
  3646. ee.WriteMapEnd()
  3647. }
  3648. func (e *Encoder) fastpathEncMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  3649. fastpathTV.EncMapStringBoolV(rv2i(rv).(map[string]bool), e)
  3650. }
  3651. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, e *Encoder) {
  3652. if v == nil {
  3653. e.e.EncodeNil()
  3654. return
  3655. }
  3656. ee, esep := e.e, e.hh.hasElemSeparators()
  3657. ee.WriteMapStart(len(v))
  3658. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3659. if e.h.Canonical {
  3660. v2 := make([]string, len(v))
  3661. var i int
  3662. for k, _ := range v {
  3663. v2[i] = string(k)
  3664. i++
  3665. }
  3666. sort.Sort(stringSlice(v2))
  3667. for _, k2 := range v2 {
  3668. if esep {
  3669. ee.WriteMapElemKey()
  3670. }
  3671. if asSymbols {
  3672. ee.EncodeSymbol(k2)
  3673. } else {
  3674. ee.EncodeString(cUTF8, k2)
  3675. }
  3676. if esep {
  3677. ee.WriteMapElemValue()
  3678. }
  3679. ee.EncodeBool(v[string(k2)])
  3680. }
  3681. } else {
  3682. for k2, v2 := range v {
  3683. if esep {
  3684. ee.WriteMapElemKey()
  3685. }
  3686. if asSymbols {
  3687. ee.EncodeSymbol(k2)
  3688. } else {
  3689. ee.EncodeString(cUTF8, k2)
  3690. }
  3691. if esep {
  3692. ee.WriteMapElemValue()
  3693. }
  3694. ee.EncodeBool(v2)
  3695. }
  3696. }
  3697. ee.WriteMapEnd()
  3698. }
  3699. func (e *Encoder) fastpathEncMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  3700. fastpathTV.EncMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), e)
  3701. }
  3702. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, e *Encoder) {
  3703. if v == nil {
  3704. e.e.EncodeNil()
  3705. return
  3706. }
  3707. ee, esep := e.e, e.hh.hasElemSeparators()
  3708. ee.WriteMapStart(len(v))
  3709. if e.h.Canonical {
  3710. v2 := make([]float64, len(v))
  3711. var i int
  3712. for k, _ := range v {
  3713. v2[i] = float64(k)
  3714. i++
  3715. }
  3716. sort.Sort(floatSlice(v2))
  3717. for _, k2 := range v2 {
  3718. if esep {
  3719. ee.WriteMapElemKey()
  3720. }
  3721. ee.EncodeFloat32(float32(k2))
  3722. if esep {
  3723. ee.WriteMapElemValue()
  3724. }
  3725. e.encode(v[float32(k2)])
  3726. }
  3727. } else {
  3728. for k2, v2 := range v {
  3729. if esep {
  3730. ee.WriteMapElemKey()
  3731. }
  3732. ee.EncodeFloat32(k2)
  3733. if esep {
  3734. ee.WriteMapElemValue()
  3735. }
  3736. e.encode(v2)
  3737. }
  3738. }
  3739. ee.WriteMapEnd()
  3740. }
  3741. func (e *Encoder) fastpathEncMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  3742. fastpathTV.EncMapFloat32StringV(rv2i(rv).(map[float32]string), e)
  3743. }
  3744. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, e *Encoder) {
  3745. if v == nil {
  3746. e.e.EncodeNil()
  3747. return
  3748. }
  3749. ee, esep := e.e, e.hh.hasElemSeparators()
  3750. ee.WriteMapStart(len(v))
  3751. if e.h.Canonical {
  3752. v2 := make([]float64, len(v))
  3753. var i int
  3754. for k, _ := range v {
  3755. v2[i] = float64(k)
  3756. i++
  3757. }
  3758. sort.Sort(floatSlice(v2))
  3759. for _, k2 := range v2 {
  3760. if esep {
  3761. ee.WriteMapElemKey()
  3762. }
  3763. ee.EncodeFloat32(float32(k2))
  3764. if esep {
  3765. ee.WriteMapElemValue()
  3766. }
  3767. ee.EncodeString(cUTF8, v[float32(k2)])
  3768. }
  3769. } else {
  3770. for k2, v2 := range v {
  3771. if esep {
  3772. ee.WriteMapElemKey()
  3773. }
  3774. ee.EncodeFloat32(k2)
  3775. if esep {
  3776. ee.WriteMapElemValue()
  3777. }
  3778. ee.EncodeString(cUTF8, v2)
  3779. }
  3780. }
  3781. ee.WriteMapEnd()
  3782. }
  3783. func (e *Encoder) fastpathEncMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  3784. fastpathTV.EncMapFloat32UintV(rv2i(rv).(map[float32]uint), e)
  3785. }
  3786. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, e *Encoder) {
  3787. if v == nil {
  3788. e.e.EncodeNil()
  3789. return
  3790. }
  3791. ee, esep := e.e, e.hh.hasElemSeparators()
  3792. ee.WriteMapStart(len(v))
  3793. if e.h.Canonical {
  3794. v2 := make([]float64, len(v))
  3795. var i int
  3796. for k, _ := range v {
  3797. v2[i] = float64(k)
  3798. i++
  3799. }
  3800. sort.Sort(floatSlice(v2))
  3801. for _, k2 := range v2 {
  3802. if esep {
  3803. ee.WriteMapElemKey()
  3804. }
  3805. ee.EncodeFloat32(float32(k2))
  3806. if esep {
  3807. ee.WriteMapElemValue()
  3808. }
  3809. ee.EncodeUint(uint64(v[float32(k2)]))
  3810. }
  3811. } else {
  3812. for k2, v2 := range v {
  3813. if esep {
  3814. ee.WriteMapElemKey()
  3815. }
  3816. ee.EncodeFloat32(k2)
  3817. if esep {
  3818. ee.WriteMapElemValue()
  3819. }
  3820. ee.EncodeUint(uint64(v2))
  3821. }
  3822. }
  3823. ee.WriteMapEnd()
  3824. }
  3825. func (e *Encoder) fastpathEncMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  3826. fastpathTV.EncMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), e)
  3827. }
  3828. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, e *Encoder) {
  3829. if v == nil {
  3830. e.e.EncodeNil()
  3831. return
  3832. }
  3833. ee, esep := e.e, e.hh.hasElemSeparators()
  3834. ee.WriteMapStart(len(v))
  3835. if e.h.Canonical {
  3836. v2 := make([]float64, len(v))
  3837. var i int
  3838. for k, _ := range v {
  3839. v2[i] = float64(k)
  3840. i++
  3841. }
  3842. sort.Sort(floatSlice(v2))
  3843. for _, k2 := range v2 {
  3844. if esep {
  3845. ee.WriteMapElemKey()
  3846. }
  3847. ee.EncodeFloat32(float32(k2))
  3848. if esep {
  3849. ee.WriteMapElemValue()
  3850. }
  3851. ee.EncodeUint(uint64(v[float32(k2)]))
  3852. }
  3853. } else {
  3854. for k2, v2 := range v {
  3855. if esep {
  3856. ee.WriteMapElemKey()
  3857. }
  3858. ee.EncodeFloat32(k2)
  3859. if esep {
  3860. ee.WriteMapElemValue()
  3861. }
  3862. ee.EncodeUint(uint64(v2))
  3863. }
  3864. }
  3865. ee.WriteMapEnd()
  3866. }
  3867. func (e *Encoder) fastpathEncMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  3868. fastpathTV.EncMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), e)
  3869. }
  3870. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, e *Encoder) {
  3871. if v == nil {
  3872. e.e.EncodeNil()
  3873. return
  3874. }
  3875. ee, esep := e.e, e.hh.hasElemSeparators()
  3876. ee.WriteMapStart(len(v))
  3877. if e.h.Canonical {
  3878. v2 := make([]float64, len(v))
  3879. var i int
  3880. for k, _ := range v {
  3881. v2[i] = float64(k)
  3882. i++
  3883. }
  3884. sort.Sort(floatSlice(v2))
  3885. for _, k2 := range v2 {
  3886. if esep {
  3887. ee.WriteMapElemKey()
  3888. }
  3889. ee.EncodeFloat32(float32(k2))
  3890. if esep {
  3891. ee.WriteMapElemValue()
  3892. }
  3893. ee.EncodeUint(uint64(v[float32(k2)]))
  3894. }
  3895. } else {
  3896. for k2, v2 := range v {
  3897. if esep {
  3898. ee.WriteMapElemKey()
  3899. }
  3900. ee.EncodeFloat32(k2)
  3901. if esep {
  3902. ee.WriteMapElemValue()
  3903. }
  3904. ee.EncodeUint(uint64(v2))
  3905. }
  3906. }
  3907. ee.WriteMapEnd()
  3908. }
  3909. func (e *Encoder) fastpathEncMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  3910. fastpathTV.EncMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), e)
  3911. }
  3912. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, e *Encoder) {
  3913. if v == nil {
  3914. e.e.EncodeNil()
  3915. return
  3916. }
  3917. ee, esep := e.e, e.hh.hasElemSeparators()
  3918. ee.WriteMapStart(len(v))
  3919. if e.h.Canonical {
  3920. v2 := make([]float64, len(v))
  3921. var i int
  3922. for k, _ := range v {
  3923. v2[i] = float64(k)
  3924. i++
  3925. }
  3926. sort.Sort(floatSlice(v2))
  3927. for _, k2 := range v2 {
  3928. if esep {
  3929. ee.WriteMapElemKey()
  3930. }
  3931. ee.EncodeFloat32(float32(k2))
  3932. if esep {
  3933. ee.WriteMapElemValue()
  3934. }
  3935. ee.EncodeUint(uint64(v[float32(k2)]))
  3936. }
  3937. } else {
  3938. for k2, v2 := range v {
  3939. if esep {
  3940. ee.WriteMapElemKey()
  3941. }
  3942. ee.EncodeFloat32(k2)
  3943. if esep {
  3944. ee.WriteMapElemValue()
  3945. }
  3946. ee.EncodeUint(uint64(v2))
  3947. }
  3948. }
  3949. ee.WriteMapEnd()
  3950. }
  3951. func (e *Encoder) fastpathEncMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  3952. fastpathTV.EncMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), e)
  3953. }
  3954. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, e *Encoder) {
  3955. if v == nil {
  3956. e.e.EncodeNil()
  3957. return
  3958. }
  3959. ee, esep := e.e, e.hh.hasElemSeparators()
  3960. ee.WriteMapStart(len(v))
  3961. if e.h.Canonical {
  3962. v2 := make([]float64, len(v))
  3963. var i int
  3964. for k, _ := range v {
  3965. v2[i] = float64(k)
  3966. i++
  3967. }
  3968. sort.Sort(floatSlice(v2))
  3969. for _, k2 := range v2 {
  3970. if esep {
  3971. ee.WriteMapElemKey()
  3972. }
  3973. ee.EncodeFloat32(float32(k2))
  3974. if esep {
  3975. ee.WriteMapElemValue()
  3976. }
  3977. ee.EncodeUint(uint64(v[float32(k2)]))
  3978. }
  3979. } else {
  3980. for k2, v2 := range v {
  3981. if esep {
  3982. ee.WriteMapElemKey()
  3983. }
  3984. ee.EncodeFloat32(k2)
  3985. if esep {
  3986. ee.WriteMapElemValue()
  3987. }
  3988. ee.EncodeUint(uint64(v2))
  3989. }
  3990. }
  3991. ee.WriteMapEnd()
  3992. }
  3993. func (e *Encoder) fastpathEncMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  3994. fastpathTV.EncMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), e)
  3995. }
  3996. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, e *Encoder) {
  3997. if v == nil {
  3998. e.e.EncodeNil()
  3999. return
  4000. }
  4001. ee, esep := e.e, e.hh.hasElemSeparators()
  4002. ee.WriteMapStart(len(v))
  4003. if e.h.Canonical {
  4004. v2 := make([]float64, len(v))
  4005. var i int
  4006. for k, _ := range v {
  4007. v2[i] = float64(k)
  4008. i++
  4009. }
  4010. sort.Sort(floatSlice(v2))
  4011. for _, k2 := range v2 {
  4012. if esep {
  4013. ee.WriteMapElemKey()
  4014. }
  4015. ee.EncodeFloat32(float32(k2))
  4016. if esep {
  4017. ee.WriteMapElemValue()
  4018. }
  4019. e.encode(v[float32(k2)])
  4020. }
  4021. } else {
  4022. for k2, v2 := range v {
  4023. if esep {
  4024. ee.WriteMapElemKey()
  4025. }
  4026. ee.EncodeFloat32(k2)
  4027. if esep {
  4028. ee.WriteMapElemValue()
  4029. }
  4030. e.encode(v2)
  4031. }
  4032. }
  4033. ee.WriteMapEnd()
  4034. }
  4035. func (e *Encoder) fastpathEncMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  4036. fastpathTV.EncMapFloat32IntV(rv2i(rv).(map[float32]int), e)
  4037. }
  4038. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, e *Encoder) {
  4039. if v == nil {
  4040. e.e.EncodeNil()
  4041. return
  4042. }
  4043. ee, esep := e.e, e.hh.hasElemSeparators()
  4044. ee.WriteMapStart(len(v))
  4045. if e.h.Canonical {
  4046. v2 := make([]float64, len(v))
  4047. var i int
  4048. for k, _ := range v {
  4049. v2[i] = float64(k)
  4050. i++
  4051. }
  4052. sort.Sort(floatSlice(v2))
  4053. for _, k2 := range v2 {
  4054. if esep {
  4055. ee.WriteMapElemKey()
  4056. }
  4057. ee.EncodeFloat32(float32(k2))
  4058. if esep {
  4059. ee.WriteMapElemValue()
  4060. }
  4061. ee.EncodeInt(int64(v[float32(k2)]))
  4062. }
  4063. } else {
  4064. for k2, v2 := range v {
  4065. if esep {
  4066. ee.WriteMapElemKey()
  4067. }
  4068. ee.EncodeFloat32(k2)
  4069. if esep {
  4070. ee.WriteMapElemValue()
  4071. }
  4072. ee.EncodeInt(int64(v2))
  4073. }
  4074. }
  4075. ee.WriteMapEnd()
  4076. }
  4077. func (e *Encoder) fastpathEncMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  4078. fastpathTV.EncMapFloat32Int8V(rv2i(rv).(map[float32]int8), e)
  4079. }
  4080. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, e *Encoder) {
  4081. if v == nil {
  4082. e.e.EncodeNil()
  4083. return
  4084. }
  4085. ee, esep := e.e, e.hh.hasElemSeparators()
  4086. ee.WriteMapStart(len(v))
  4087. if e.h.Canonical {
  4088. v2 := make([]float64, len(v))
  4089. var i int
  4090. for k, _ := range v {
  4091. v2[i] = float64(k)
  4092. i++
  4093. }
  4094. sort.Sort(floatSlice(v2))
  4095. for _, k2 := range v2 {
  4096. if esep {
  4097. ee.WriteMapElemKey()
  4098. }
  4099. ee.EncodeFloat32(float32(k2))
  4100. if esep {
  4101. ee.WriteMapElemValue()
  4102. }
  4103. ee.EncodeInt(int64(v[float32(k2)]))
  4104. }
  4105. } else {
  4106. for k2, v2 := range v {
  4107. if esep {
  4108. ee.WriteMapElemKey()
  4109. }
  4110. ee.EncodeFloat32(k2)
  4111. if esep {
  4112. ee.WriteMapElemValue()
  4113. }
  4114. ee.EncodeInt(int64(v2))
  4115. }
  4116. }
  4117. ee.WriteMapEnd()
  4118. }
  4119. func (e *Encoder) fastpathEncMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  4120. fastpathTV.EncMapFloat32Int16V(rv2i(rv).(map[float32]int16), e)
  4121. }
  4122. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, e *Encoder) {
  4123. if v == nil {
  4124. e.e.EncodeNil()
  4125. return
  4126. }
  4127. ee, esep := e.e, e.hh.hasElemSeparators()
  4128. ee.WriteMapStart(len(v))
  4129. if e.h.Canonical {
  4130. v2 := make([]float64, len(v))
  4131. var i int
  4132. for k, _ := range v {
  4133. v2[i] = float64(k)
  4134. i++
  4135. }
  4136. sort.Sort(floatSlice(v2))
  4137. for _, k2 := range v2 {
  4138. if esep {
  4139. ee.WriteMapElemKey()
  4140. }
  4141. ee.EncodeFloat32(float32(k2))
  4142. if esep {
  4143. ee.WriteMapElemValue()
  4144. }
  4145. ee.EncodeInt(int64(v[float32(k2)]))
  4146. }
  4147. } else {
  4148. for k2, v2 := range v {
  4149. if esep {
  4150. ee.WriteMapElemKey()
  4151. }
  4152. ee.EncodeFloat32(k2)
  4153. if esep {
  4154. ee.WriteMapElemValue()
  4155. }
  4156. ee.EncodeInt(int64(v2))
  4157. }
  4158. }
  4159. ee.WriteMapEnd()
  4160. }
  4161. func (e *Encoder) fastpathEncMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  4162. fastpathTV.EncMapFloat32Int32V(rv2i(rv).(map[float32]int32), e)
  4163. }
  4164. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, e *Encoder) {
  4165. if v == nil {
  4166. e.e.EncodeNil()
  4167. return
  4168. }
  4169. ee, esep := e.e, e.hh.hasElemSeparators()
  4170. ee.WriteMapStart(len(v))
  4171. if e.h.Canonical {
  4172. v2 := make([]float64, len(v))
  4173. var i int
  4174. for k, _ := range v {
  4175. v2[i] = float64(k)
  4176. i++
  4177. }
  4178. sort.Sort(floatSlice(v2))
  4179. for _, k2 := range v2 {
  4180. if esep {
  4181. ee.WriteMapElemKey()
  4182. }
  4183. ee.EncodeFloat32(float32(k2))
  4184. if esep {
  4185. ee.WriteMapElemValue()
  4186. }
  4187. ee.EncodeInt(int64(v[float32(k2)]))
  4188. }
  4189. } else {
  4190. for k2, v2 := range v {
  4191. if esep {
  4192. ee.WriteMapElemKey()
  4193. }
  4194. ee.EncodeFloat32(k2)
  4195. if esep {
  4196. ee.WriteMapElemValue()
  4197. }
  4198. ee.EncodeInt(int64(v2))
  4199. }
  4200. }
  4201. ee.WriteMapEnd()
  4202. }
  4203. func (e *Encoder) fastpathEncMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  4204. fastpathTV.EncMapFloat32Int64V(rv2i(rv).(map[float32]int64), e)
  4205. }
  4206. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, e *Encoder) {
  4207. if v == nil {
  4208. e.e.EncodeNil()
  4209. return
  4210. }
  4211. ee, esep := e.e, e.hh.hasElemSeparators()
  4212. ee.WriteMapStart(len(v))
  4213. if e.h.Canonical {
  4214. v2 := make([]float64, len(v))
  4215. var i int
  4216. for k, _ := range v {
  4217. v2[i] = float64(k)
  4218. i++
  4219. }
  4220. sort.Sort(floatSlice(v2))
  4221. for _, k2 := range v2 {
  4222. if esep {
  4223. ee.WriteMapElemKey()
  4224. }
  4225. ee.EncodeFloat32(float32(k2))
  4226. if esep {
  4227. ee.WriteMapElemValue()
  4228. }
  4229. ee.EncodeInt(int64(v[float32(k2)]))
  4230. }
  4231. } else {
  4232. for k2, v2 := range v {
  4233. if esep {
  4234. ee.WriteMapElemKey()
  4235. }
  4236. ee.EncodeFloat32(k2)
  4237. if esep {
  4238. ee.WriteMapElemValue()
  4239. }
  4240. ee.EncodeInt(int64(v2))
  4241. }
  4242. }
  4243. ee.WriteMapEnd()
  4244. }
  4245. func (e *Encoder) fastpathEncMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  4246. fastpathTV.EncMapFloat32Float32V(rv2i(rv).(map[float32]float32), e)
  4247. }
  4248. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, e *Encoder) {
  4249. if v == nil {
  4250. e.e.EncodeNil()
  4251. return
  4252. }
  4253. ee, esep := e.e, e.hh.hasElemSeparators()
  4254. ee.WriteMapStart(len(v))
  4255. if e.h.Canonical {
  4256. v2 := make([]float64, len(v))
  4257. var i int
  4258. for k, _ := range v {
  4259. v2[i] = float64(k)
  4260. i++
  4261. }
  4262. sort.Sort(floatSlice(v2))
  4263. for _, k2 := range v2 {
  4264. if esep {
  4265. ee.WriteMapElemKey()
  4266. }
  4267. ee.EncodeFloat32(float32(k2))
  4268. if esep {
  4269. ee.WriteMapElemValue()
  4270. }
  4271. ee.EncodeFloat32(v[float32(k2)])
  4272. }
  4273. } else {
  4274. for k2, v2 := range v {
  4275. if esep {
  4276. ee.WriteMapElemKey()
  4277. }
  4278. ee.EncodeFloat32(k2)
  4279. if esep {
  4280. ee.WriteMapElemValue()
  4281. }
  4282. ee.EncodeFloat32(v2)
  4283. }
  4284. }
  4285. ee.WriteMapEnd()
  4286. }
  4287. func (e *Encoder) fastpathEncMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  4288. fastpathTV.EncMapFloat32Float64V(rv2i(rv).(map[float32]float64), e)
  4289. }
  4290. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, e *Encoder) {
  4291. if v == nil {
  4292. e.e.EncodeNil()
  4293. return
  4294. }
  4295. ee, esep := e.e, e.hh.hasElemSeparators()
  4296. ee.WriteMapStart(len(v))
  4297. if e.h.Canonical {
  4298. v2 := make([]float64, len(v))
  4299. var i int
  4300. for k, _ := range v {
  4301. v2[i] = float64(k)
  4302. i++
  4303. }
  4304. sort.Sort(floatSlice(v2))
  4305. for _, k2 := range v2 {
  4306. if esep {
  4307. ee.WriteMapElemKey()
  4308. }
  4309. ee.EncodeFloat32(float32(k2))
  4310. if esep {
  4311. ee.WriteMapElemValue()
  4312. }
  4313. ee.EncodeFloat64(v[float32(k2)])
  4314. }
  4315. } else {
  4316. for k2, v2 := range v {
  4317. if esep {
  4318. ee.WriteMapElemKey()
  4319. }
  4320. ee.EncodeFloat32(k2)
  4321. if esep {
  4322. ee.WriteMapElemValue()
  4323. }
  4324. ee.EncodeFloat64(v2)
  4325. }
  4326. }
  4327. ee.WriteMapEnd()
  4328. }
  4329. func (e *Encoder) fastpathEncMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  4330. fastpathTV.EncMapFloat32BoolV(rv2i(rv).(map[float32]bool), e)
  4331. }
  4332. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, e *Encoder) {
  4333. if v == nil {
  4334. e.e.EncodeNil()
  4335. return
  4336. }
  4337. ee, esep := e.e, e.hh.hasElemSeparators()
  4338. ee.WriteMapStart(len(v))
  4339. if e.h.Canonical {
  4340. v2 := make([]float64, len(v))
  4341. var i int
  4342. for k, _ := range v {
  4343. v2[i] = float64(k)
  4344. i++
  4345. }
  4346. sort.Sort(floatSlice(v2))
  4347. for _, k2 := range v2 {
  4348. if esep {
  4349. ee.WriteMapElemKey()
  4350. }
  4351. ee.EncodeFloat32(float32(k2))
  4352. if esep {
  4353. ee.WriteMapElemValue()
  4354. }
  4355. ee.EncodeBool(v[float32(k2)])
  4356. }
  4357. } else {
  4358. for k2, v2 := range v {
  4359. if esep {
  4360. ee.WriteMapElemKey()
  4361. }
  4362. ee.EncodeFloat32(k2)
  4363. if esep {
  4364. ee.WriteMapElemValue()
  4365. }
  4366. ee.EncodeBool(v2)
  4367. }
  4368. }
  4369. ee.WriteMapEnd()
  4370. }
  4371. func (e *Encoder) fastpathEncMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  4372. fastpathTV.EncMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), e)
  4373. }
  4374. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, e *Encoder) {
  4375. if v == nil {
  4376. e.e.EncodeNil()
  4377. return
  4378. }
  4379. ee, esep := e.e, e.hh.hasElemSeparators()
  4380. ee.WriteMapStart(len(v))
  4381. if e.h.Canonical {
  4382. v2 := make([]float64, len(v))
  4383. var i int
  4384. for k, _ := range v {
  4385. v2[i] = float64(k)
  4386. i++
  4387. }
  4388. sort.Sort(floatSlice(v2))
  4389. for _, k2 := range v2 {
  4390. if esep {
  4391. ee.WriteMapElemKey()
  4392. }
  4393. ee.EncodeFloat64(float64(k2))
  4394. if esep {
  4395. ee.WriteMapElemValue()
  4396. }
  4397. e.encode(v[float64(k2)])
  4398. }
  4399. } else {
  4400. for k2, v2 := range v {
  4401. if esep {
  4402. ee.WriteMapElemKey()
  4403. }
  4404. ee.EncodeFloat64(k2)
  4405. if esep {
  4406. ee.WriteMapElemValue()
  4407. }
  4408. e.encode(v2)
  4409. }
  4410. }
  4411. ee.WriteMapEnd()
  4412. }
  4413. func (e *Encoder) fastpathEncMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  4414. fastpathTV.EncMapFloat64StringV(rv2i(rv).(map[float64]string), e)
  4415. }
  4416. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, e *Encoder) {
  4417. if v == nil {
  4418. e.e.EncodeNil()
  4419. return
  4420. }
  4421. ee, esep := e.e, e.hh.hasElemSeparators()
  4422. ee.WriteMapStart(len(v))
  4423. if e.h.Canonical {
  4424. v2 := make([]float64, len(v))
  4425. var i int
  4426. for k, _ := range v {
  4427. v2[i] = float64(k)
  4428. i++
  4429. }
  4430. sort.Sort(floatSlice(v2))
  4431. for _, k2 := range v2 {
  4432. if esep {
  4433. ee.WriteMapElemKey()
  4434. }
  4435. ee.EncodeFloat64(float64(k2))
  4436. if esep {
  4437. ee.WriteMapElemValue()
  4438. }
  4439. ee.EncodeString(cUTF8, v[float64(k2)])
  4440. }
  4441. } else {
  4442. for k2, v2 := range v {
  4443. if esep {
  4444. ee.WriteMapElemKey()
  4445. }
  4446. ee.EncodeFloat64(k2)
  4447. if esep {
  4448. ee.WriteMapElemValue()
  4449. }
  4450. ee.EncodeString(cUTF8, v2)
  4451. }
  4452. }
  4453. ee.WriteMapEnd()
  4454. }
  4455. func (e *Encoder) fastpathEncMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  4456. fastpathTV.EncMapFloat64UintV(rv2i(rv).(map[float64]uint), e)
  4457. }
  4458. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, e *Encoder) {
  4459. if v == nil {
  4460. e.e.EncodeNil()
  4461. return
  4462. }
  4463. ee, esep := e.e, e.hh.hasElemSeparators()
  4464. ee.WriteMapStart(len(v))
  4465. if e.h.Canonical {
  4466. v2 := make([]float64, len(v))
  4467. var i int
  4468. for k, _ := range v {
  4469. v2[i] = float64(k)
  4470. i++
  4471. }
  4472. sort.Sort(floatSlice(v2))
  4473. for _, k2 := range v2 {
  4474. if esep {
  4475. ee.WriteMapElemKey()
  4476. }
  4477. ee.EncodeFloat64(float64(k2))
  4478. if esep {
  4479. ee.WriteMapElemValue()
  4480. }
  4481. ee.EncodeUint(uint64(v[float64(k2)]))
  4482. }
  4483. } else {
  4484. for k2, v2 := range v {
  4485. if esep {
  4486. ee.WriteMapElemKey()
  4487. }
  4488. ee.EncodeFloat64(k2)
  4489. if esep {
  4490. ee.WriteMapElemValue()
  4491. }
  4492. ee.EncodeUint(uint64(v2))
  4493. }
  4494. }
  4495. ee.WriteMapEnd()
  4496. }
  4497. func (e *Encoder) fastpathEncMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  4498. fastpathTV.EncMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), e)
  4499. }
  4500. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, e *Encoder) {
  4501. if v == nil {
  4502. e.e.EncodeNil()
  4503. return
  4504. }
  4505. ee, esep := e.e, e.hh.hasElemSeparators()
  4506. ee.WriteMapStart(len(v))
  4507. if e.h.Canonical {
  4508. v2 := make([]float64, len(v))
  4509. var i int
  4510. for k, _ := range v {
  4511. v2[i] = float64(k)
  4512. i++
  4513. }
  4514. sort.Sort(floatSlice(v2))
  4515. for _, k2 := range v2 {
  4516. if esep {
  4517. ee.WriteMapElemKey()
  4518. }
  4519. ee.EncodeFloat64(float64(k2))
  4520. if esep {
  4521. ee.WriteMapElemValue()
  4522. }
  4523. ee.EncodeUint(uint64(v[float64(k2)]))
  4524. }
  4525. } else {
  4526. for k2, v2 := range v {
  4527. if esep {
  4528. ee.WriteMapElemKey()
  4529. }
  4530. ee.EncodeFloat64(k2)
  4531. if esep {
  4532. ee.WriteMapElemValue()
  4533. }
  4534. ee.EncodeUint(uint64(v2))
  4535. }
  4536. }
  4537. ee.WriteMapEnd()
  4538. }
  4539. func (e *Encoder) fastpathEncMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  4540. fastpathTV.EncMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), e)
  4541. }
  4542. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, e *Encoder) {
  4543. if v == nil {
  4544. e.e.EncodeNil()
  4545. return
  4546. }
  4547. ee, esep := e.e, e.hh.hasElemSeparators()
  4548. ee.WriteMapStart(len(v))
  4549. if e.h.Canonical {
  4550. v2 := make([]float64, len(v))
  4551. var i int
  4552. for k, _ := range v {
  4553. v2[i] = float64(k)
  4554. i++
  4555. }
  4556. sort.Sort(floatSlice(v2))
  4557. for _, k2 := range v2 {
  4558. if esep {
  4559. ee.WriteMapElemKey()
  4560. }
  4561. ee.EncodeFloat64(float64(k2))
  4562. if esep {
  4563. ee.WriteMapElemValue()
  4564. }
  4565. ee.EncodeUint(uint64(v[float64(k2)]))
  4566. }
  4567. } else {
  4568. for k2, v2 := range v {
  4569. if esep {
  4570. ee.WriteMapElemKey()
  4571. }
  4572. ee.EncodeFloat64(k2)
  4573. if esep {
  4574. ee.WriteMapElemValue()
  4575. }
  4576. ee.EncodeUint(uint64(v2))
  4577. }
  4578. }
  4579. ee.WriteMapEnd()
  4580. }
  4581. func (e *Encoder) fastpathEncMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  4582. fastpathTV.EncMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), e)
  4583. }
  4584. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, e *Encoder) {
  4585. if v == nil {
  4586. e.e.EncodeNil()
  4587. return
  4588. }
  4589. ee, esep := e.e, e.hh.hasElemSeparators()
  4590. ee.WriteMapStart(len(v))
  4591. if e.h.Canonical {
  4592. v2 := make([]float64, len(v))
  4593. var i int
  4594. for k, _ := range v {
  4595. v2[i] = float64(k)
  4596. i++
  4597. }
  4598. sort.Sort(floatSlice(v2))
  4599. for _, k2 := range v2 {
  4600. if esep {
  4601. ee.WriteMapElemKey()
  4602. }
  4603. ee.EncodeFloat64(float64(k2))
  4604. if esep {
  4605. ee.WriteMapElemValue()
  4606. }
  4607. ee.EncodeUint(uint64(v[float64(k2)]))
  4608. }
  4609. } else {
  4610. for k2, v2 := range v {
  4611. if esep {
  4612. ee.WriteMapElemKey()
  4613. }
  4614. ee.EncodeFloat64(k2)
  4615. if esep {
  4616. ee.WriteMapElemValue()
  4617. }
  4618. ee.EncodeUint(uint64(v2))
  4619. }
  4620. }
  4621. ee.WriteMapEnd()
  4622. }
  4623. func (e *Encoder) fastpathEncMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  4624. fastpathTV.EncMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), e)
  4625. }
  4626. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, e *Encoder) {
  4627. if v == nil {
  4628. e.e.EncodeNil()
  4629. return
  4630. }
  4631. ee, esep := e.e, e.hh.hasElemSeparators()
  4632. ee.WriteMapStart(len(v))
  4633. if e.h.Canonical {
  4634. v2 := make([]float64, len(v))
  4635. var i int
  4636. for k, _ := range v {
  4637. v2[i] = float64(k)
  4638. i++
  4639. }
  4640. sort.Sort(floatSlice(v2))
  4641. for _, k2 := range v2 {
  4642. if esep {
  4643. ee.WriteMapElemKey()
  4644. }
  4645. ee.EncodeFloat64(float64(k2))
  4646. if esep {
  4647. ee.WriteMapElemValue()
  4648. }
  4649. ee.EncodeUint(uint64(v[float64(k2)]))
  4650. }
  4651. } else {
  4652. for k2, v2 := range v {
  4653. if esep {
  4654. ee.WriteMapElemKey()
  4655. }
  4656. ee.EncodeFloat64(k2)
  4657. if esep {
  4658. ee.WriteMapElemValue()
  4659. }
  4660. ee.EncodeUint(uint64(v2))
  4661. }
  4662. }
  4663. ee.WriteMapEnd()
  4664. }
  4665. func (e *Encoder) fastpathEncMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  4666. fastpathTV.EncMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), e)
  4667. }
  4668. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, e *Encoder) {
  4669. if v == nil {
  4670. e.e.EncodeNil()
  4671. return
  4672. }
  4673. ee, esep := e.e, e.hh.hasElemSeparators()
  4674. ee.WriteMapStart(len(v))
  4675. if e.h.Canonical {
  4676. v2 := make([]float64, len(v))
  4677. var i int
  4678. for k, _ := range v {
  4679. v2[i] = float64(k)
  4680. i++
  4681. }
  4682. sort.Sort(floatSlice(v2))
  4683. for _, k2 := range v2 {
  4684. if esep {
  4685. ee.WriteMapElemKey()
  4686. }
  4687. ee.EncodeFloat64(float64(k2))
  4688. if esep {
  4689. ee.WriteMapElemValue()
  4690. }
  4691. e.encode(v[float64(k2)])
  4692. }
  4693. } else {
  4694. for k2, v2 := range v {
  4695. if esep {
  4696. ee.WriteMapElemKey()
  4697. }
  4698. ee.EncodeFloat64(k2)
  4699. if esep {
  4700. ee.WriteMapElemValue()
  4701. }
  4702. e.encode(v2)
  4703. }
  4704. }
  4705. ee.WriteMapEnd()
  4706. }
  4707. func (e *Encoder) fastpathEncMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  4708. fastpathTV.EncMapFloat64IntV(rv2i(rv).(map[float64]int), e)
  4709. }
  4710. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, e *Encoder) {
  4711. if v == nil {
  4712. e.e.EncodeNil()
  4713. return
  4714. }
  4715. ee, esep := e.e, e.hh.hasElemSeparators()
  4716. ee.WriteMapStart(len(v))
  4717. if e.h.Canonical {
  4718. v2 := make([]float64, len(v))
  4719. var i int
  4720. for k, _ := range v {
  4721. v2[i] = float64(k)
  4722. i++
  4723. }
  4724. sort.Sort(floatSlice(v2))
  4725. for _, k2 := range v2 {
  4726. if esep {
  4727. ee.WriteMapElemKey()
  4728. }
  4729. ee.EncodeFloat64(float64(k2))
  4730. if esep {
  4731. ee.WriteMapElemValue()
  4732. }
  4733. ee.EncodeInt(int64(v[float64(k2)]))
  4734. }
  4735. } else {
  4736. for k2, v2 := range v {
  4737. if esep {
  4738. ee.WriteMapElemKey()
  4739. }
  4740. ee.EncodeFloat64(k2)
  4741. if esep {
  4742. ee.WriteMapElemValue()
  4743. }
  4744. ee.EncodeInt(int64(v2))
  4745. }
  4746. }
  4747. ee.WriteMapEnd()
  4748. }
  4749. func (e *Encoder) fastpathEncMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  4750. fastpathTV.EncMapFloat64Int8V(rv2i(rv).(map[float64]int8), e)
  4751. }
  4752. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, e *Encoder) {
  4753. if v == nil {
  4754. e.e.EncodeNil()
  4755. return
  4756. }
  4757. ee, esep := e.e, e.hh.hasElemSeparators()
  4758. ee.WriteMapStart(len(v))
  4759. if e.h.Canonical {
  4760. v2 := make([]float64, len(v))
  4761. var i int
  4762. for k, _ := range v {
  4763. v2[i] = float64(k)
  4764. i++
  4765. }
  4766. sort.Sort(floatSlice(v2))
  4767. for _, k2 := range v2 {
  4768. if esep {
  4769. ee.WriteMapElemKey()
  4770. }
  4771. ee.EncodeFloat64(float64(k2))
  4772. if esep {
  4773. ee.WriteMapElemValue()
  4774. }
  4775. ee.EncodeInt(int64(v[float64(k2)]))
  4776. }
  4777. } else {
  4778. for k2, v2 := range v {
  4779. if esep {
  4780. ee.WriteMapElemKey()
  4781. }
  4782. ee.EncodeFloat64(k2)
  4783. if esep {
  4784. ee.WriteMapElemValue()
  4785. }
  4786. ee.EncodeInt(int64(v2))
  4787. }
  4788. }
  4789. ee.WriteMapEnd()
  4790. }
  4791. func (e *Encoder) fastpathEncMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  4792. fastpathTV.EncMapFloat64Int16V(rv2i(rv).(map[float64]int16), e)
  4793. }
  4794. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, e *Encoder) {
  4795. if v == nil {
  4796. e.e.EncodeNil()
  4797. return
  4798. }
  4799. ee, esep := e.e, e.hh.hasElemSeparators()
  4800. ee.WriteMapStart(len(v))
  4801. if e.h.Canonical {
  4802. v2 := make([]float64, len(v))
  4803. var i int
  4804. for k, _ := range v {
  4805. v2[i] = float64(k)
  4806. i++
  4807. }
  4808. sort.Sort(floatSlice(v2))
  4809. for _, k2 := range v2 {
  4810. if esep {
  4811. ee.WriteMapElemKey()
  4812. }
  4813. ee.EncodeFloat64(float64(k2))
  4814. if esep {
  4815. ee.WriteMapElemValue()
  4816. }
  4817. ee.EncodeInt(int64(v[float64(k2)]))
  4818. }
  4819. } else {
  4820. for k2, v2 := range v {
  4821. if esep {
  4822. ee.WriteMapElemKey()
  4823. }
  4824. ee.EncodeFloat64(k2)
  4825. if esep {
  4826. ee.WriteMapElemValue()
  4827. }
  4828. ee.EncodeInt(int64(v2))
  4829. }
  4830. }
  4831. ee.WriteMapEnd()
  4832. }
  4833. func (e *Encoder) fastpathEncMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  4834. fastpathTV.EncMapFloat64Int32V(rv2i(rv).(map[float64]int32), e)
  4835. }
  4836. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, e *Encoder) {
  4837. if v == nil {
  4838. e.e.EncodeNil()
  4839. return
  4840. }
  4841. ee, esep := e.e, e.hh.hasElemSeparators()
  4842. ee.WriteMapStart(len(v))
  4843. if e.h.Canonical {
  4844. v2 := make([]float64, len(v))
  4845. var i int
  4846. for k, _ := range v {
  4847. v2[i] = float64(k)
  4848. i++
  4849. }
  4850. sort.Sort(floatSlice(v2))
  4851. for _, k2 := range v2 {
  4852. if esep {
  4853. ee.WriteMapElemKey()
  4854. }
  4855. ee.EncodeFloat64(float64(k2))
  4856. if esep {
  4857. ee.WriteMapElemValue()
  4858. }
  4859. ee.EncodeInt(int64(v[float64(k2)]))
  4860. }
  4861. } else {
  4862. for k2, v2 := range v {
  4863. if esep {
  4864. ee.WriteMapElemKey()
  4865. }
  4866. ee.EncodeFloat64(k2)
  4867. if esep {
  4868. ee.WriteMapElemValue()
  4869. }
  4870. ee.EncodeInt(int64(v2))
  4871. }
  4872. }
  4873. ee.WriteMapEnd()
  4874. }
  4875. func (e *Encoder) fastpathEncMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  4876. fastpathTV.EncMapFloat64Int64V(rv2i(rv).(map[float64]int64), e)
  4877. }
  4878. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, e *Encoder) {
  4879. if v == nil {
  4880. e.e.EncodeNil()
  4881. return
  4882. }
  4883. ee, esep := e.e, e.hh.hasElemSeparators()
  4884. ee.WriteMapStart(len(v))
  4885. if e.h.Canonical {
  4886. v2 := make([]float64, len(v))
  4887. var i int
  4888. for k, _ := range v {
  4889. v2[i] = float64(k)
  4890. i++
  4891. }
  4892. sort.Sort(floatSlice(v2))
  4893. for _, k2 := range v2 {
  4894. if esep {
  4895. ee.WriteMapElemKey()
  4896. }
  4897. ee.EncodeFloat64(float64(k2))
  4898. if esep {
  4899. ee.WriteMapElemValue()
  4900. }
  4901. ee.EncodeInt(int64(v[float64(k2)]))
  4902. }
  4903. } else {
  4904. for k2, v2 := range v {
  4905. if esep {
  4906. ee.WriteMapElemKey()
  4907. }
  4908. ee.EncodeFloat64(k2)
  4909. if esep {
  4910. ee.WriteMapElemValue()
  4911. }
  4912. ee.EncodeInt(int64(v2))
  4913. }
  4914. }
  4915. ee.WriteMapEnd()
  4916. }
  4917. func (e *Encoder) fastpathEncMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  4918. fastpathTV.EncMapFloat64Float32V(rv2i(rv).(map[float64]float32), e)
  4919. }
  4920. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, e *Encoder) {
  4921. if v == nil {
  4922. e.e.EncodeNil()
  4923. return
  4924. }
  4925. ee, esep := e.e, e.hh.hasElemSeparators()
  4926. ee.WriteMapStart(len(v))
  4927. if e.h.Canonical {
  4928. v2 := make([]float64, len(v))
  4929. var i int
  4930. for k, _ := range v {
  4931. v2[i] = float64(k)
  4932. i++
  4933. }
  4934. sort.Sort(floatSlice(v2))
  4935. for _, k2 := range v2 {
  4936. if esep {
  4937. ee.WriteMapElemKey()
  4938. }
  4939. ee.EncodeFloat64(float64(k2))
  4940. if esep {
  4941. ee.WriteMapElemValue()
  4942. }
  4943. ee.EncodeFloat32(v[float64(k2)])
  4944. }
  4945. } else {
  4946. for k2, v2 := range v {
  4947. if esep {
  4948. ee.WriteMapElemKey()
  4949. }
  4950. ee.EncodeFloat64(k2)
  4951. if esep {
  4952. ee.WriteMapElemValue()
  4953. }
  4954. ee.EncodeFloat32(v2)
  4955. }
  4956. }
  4957. ee.WriteMapEnd()
  4958. }
  4959. func (e *Encoder) fastpathEncMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  4960. fastpathTV.EncMapFloat64Float64V(rv2i(rv).(map[float64]float64), e)
  4961. }
  4962. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, e *Encoder) {
  4963. if v == nil {
  4964. e.e.EncodeNil()
  4965. return
  4966. }
  4967. ee, esep := e.e, e.hh.hasElemSeparators()
  4968. ee.WriteMapStart(len(v))
  4969. if e.h.Canonical {
  4970. v2 := make([]float64, len(v))
  4971. var i int
  4972. for k, _ := range v {
  4973. v2[i] = float64(k)
  4974. i++
  4975. }
  4976. sort.Sort(floatSlice(v2))
  4977. for _, k2 := range v2 {
  4978. if esep {
  4979. ee.WriteMapElemKey()
  4980. }
  4981. ee.EncodeFloat64(float64(k2))
  4982. if esep {
  4983. ee.WriteMapElemValue()
  4984. }
  4985. ee.EncodeFloat64(v[float64(k2)])
  4986. }
  4987. } else {
  4988. for k2, v2 := range v {
  4989. if esep {
  4990. ee.WriteMapElemKey()
  4991. }
  4992. ee.EncodeFloat64(k2)
  4993. if esep {
  4994. ee.WriteMapElemValue()
  4995. }
  4996. ee.EncodeFloat64(v2)
  4997. }
  4998. }
  4999. ee.WriteMapEnd()
  5000. }
  5001. func (e *Encoder) fastpathEncMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  5002. fastpathTV.EncMapFloat64BoolV(rv2i(rv).(map[float64]bool), e)
  5003. }
  5004. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, e *Encoder) {
  5005. if v == nil {
  5006. e.e.EncodeNil()
  5007. return
  5008. }
  5009. ee, esep := e.e, e.hh.hasElemSeparators()
  5010. ee.WriteMapStart(len(v))
  5011. if e.h.Canonical {
  5012. v2 := make([]float64, len(v))
  5013. var i int
  5014. for k, _ := range v {
  5015. v2[i] = float64(k)
  5016. i++
  5017. }
  5018. sort.Sort(floatSlice(v2))
  5019. for _, k2 := range v2 {
  5020. if esep {
  5021. ee.WriteMapElemKey()
  5022. }
  5023. ee.EncodeFloat64(float64(k2))
  5024. if esep {
  5025. ee.WriteMapElemValue()
  5026. }
  5027. ee.EncodeBool(v[float64(k2)])
  5028. }
  5029. } else {
  5030. for k2, v2 := range v {
  5031. if esep {
  5032. ee.WriteMapElemKey()
  5033. }
  5034. ee.EncodeFloat64(k2)
  5035. if esep {
  5036. ee.WriteMapElemValue()
  5037. }
  5038. ee.EncodeBool(v2)
  5039. }
  5040. }
  5041. ee.WriteMapEnd()
  5042. }
  5043. func (e *Encoder) fastpathEncMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  5044. fastpathTV.EncMapUintIntfV(rv2i(rv).(map[uint]interface{}), e)
  5045. }
  5046. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, e *Encoder) {
  5047. if v == nil {
  5048. e.e.EncodeNil()
  5049. return
  5050. }
  5051. ee, esep := e.e, e.hh.hasElemSeparators()
  5052. ee.WriteMapStart(len(v))
  5053. if e.h.Canonical {
  5054. v2 := make([]uint64, len(v))
  5055. var i int
  5056. for k, _ := range v {
  5057. v2[i] = uint64(k)
  5058. i++
  5059. }
  5060. sort.Sort(uintSlice(v2))
  5061. for _, k2 := range v2 {
  5062. if esep {
  5063. ee.WriteMapElemKey()
  5064. }
  5065. ee.EncodeUint(uint64(uint(k2)))
  5066. if esep {
  5067. ee.WriteMapElemValue()
  5068. }
  5069. e.encode(v[uint(k2)])
  5070. }
  5071. } else {
  5072. for k2, v2 := range v {
  5073. if esep {
  5074. ee.WriteMapElemKey()
  5075. }
  5076. ee.EncodeUint(uint64(k2))
  5077. if esep {
  5078. ee.WriteMapElemValue()
  5079. }
  5080. e.encode(v2)
  5081. }
  5082. }
  5083. ee.WriteMapEnd()
  5084. }
  5085. func (e *Encoder) fastpathEncMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  5086. fastpathTV.EncMapUintStringV(rv2i(rv).(map[uint]string), e)
  5087. }
  5088. func (_ fastpathT) EncMapUintStringV(v map[uint]string, e *Encoder) {
  5089. if v == nil {
  5090. e.e.EncodeNil()
  5091. return
  5092. }
  5093. ee, esep := e.e, e.hh.hasElemSeparators()
  5094. ee.WriteMapStart(len(v))
  5095. if e.h.Canonical {
  5096. v2 := make([]uint64, len(v))
  5097. var i int
  5098. for k, _ := range v {
  5099. v2[i] = uint64(k)
  5100. i++
  5101. }
  5102. sort.Sort(uintSlice(v2))
  5103. for _, k2 := range v2 {
  5104. if esep {
  5105. ee.WriteMapElemKey()
  5106. }
  5107. ee.EncodeUint(uint64(uint(k2)))
  5108. if esep {
  5109. ee.WriteMapElemValue()
  5110. }
  5111. ee.EncodeString(cUTF8, v[uint(k2)])
  5112. }
  5113. } else {
  5114. for k2, v2 := range v {
  5115. if esep {
  5116. ee.WriteMapElemKey()
  5117. }
  5118. ee.EncodeUint(uint64(k2))
  5119. if esep {
  5120. ee.WriteMapElemValue()
  5121. }
  5122. ee.EncodeString(cUTF8, v2)
  5123. }
  5124. }
  5125. ee.WriteMapEnd()
  5126. }
  5127. func (e *Encoder) fastpathEncMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  5128. fastpathTV.EncMapUintUintV(rv2i(rv).(map[uint]uint), e)
  5129. }
  5130. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, e *Encoder) {
  5131. if v == nil {
  5132. e.e.EncodeNil()
  5133. return
  5134. }
  5135. ee, esep := e.e, e.hh.hasElemSeparators()
  5136. ee.WriteMapStart(len(v))
  5137. if e.h.Canonical {
  5138. v2 := make([]uint64, len(v))
  5139. var i int
  5140. for k, _ := range v {
  5141. v2[i] = uint64(k)
  5142. i++
  5143. }
  5144. sort.Sort(uintSlice(v2))
  5145. for _, k2 := range v2 {
  5146. if esep {
  5147. ee.WriteMapElemKey()
  5148. }
  5149. ee.EncodeUint(uint64(uint(k2)))
  5150. if esep {
  5151. ee.WriteMapElemValue()
  5152. }
  5153. ee.EncodeUint(uint64(v[uint(k2)]))
  5154. }
  5155. } else {
  5156. for k2, v2 := range v {
  5157. if esep {
  5158. ee.WriteMapElemKey()
  5159. }
  5160. ee.EncodeUint(uint64(k2))
  5161. if esep {
  5162. ee.WriteMapElemValue()
  5163. }
  5164. ee.EncodeUint(uint64(v2))
  5165. }
  5166. }
  5167. ee.WriteMapEnd()
  5168. }
  5169. func (e *Encoder) fastpathEncMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  5170. fastpathTV.EncMapUintUint8V(rv2i(rv).(map[uint]uint8), e)
  5171. }
  5172. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, e *Encoder) {
  5173. if v == nil {
  5174. e.e.EncodeNil()
  5175. return
  5176. }
  5177. ee, esep := e.e, e.hh.hasElemSeparators()
  5178. ee.WriteMapStart(len(v))
  5179. if e.h.Canonical {
  5180. v2 := make([]uint64, len(v))
  5181. var i int
  5182. for k, _ := range v {
  5183. v2[i] = uint64(k)
  5184. i++
  5185. }
  5186. sort.Sort(uintSlice(v2))
  5187. for _, k2 := range v2 {
  5188. if esep {
  5189. ee.WriteMapElemKey()
  5190. }
  5191. ee.EncodeUint(uint64(uint(k2)))
  5192. if esep {
  5193. ee.WriteMapElemValue()
  5194. }
  5195. ee.EncodeUint(uint64(v[uint(k2)]))
  5196. }
  5197. } else {
  5198. for k2, v2 := range v {
  5199. if esep {
  5200. ee.WriteMapElemKey()
  5201. }
  5202. ee.EncodeUint(uint64(k2))
  5203. if esep {
  5204. ee.WriteMapElemValue()
  5205. }
  5206. ee.EncodeUint(uint64(v2))
  5207. }
  5208. }
  5209. ee.WriteMapEnd()
  5210. }
  5211. func (e *Encoder) fastpathEncMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  5212. fastpathTV.EncMapUintUint16V(rv2i(rv).(map[uint]uint16), e)
  5213. }
  5214. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, e *Encoder) {
  5215. if v == nil {
  5216. e.e.EncodeNil()
  5217. return
  5218. }
  5219. ee, esep := e.e, e.hh.hasElemSeparators()
  5220. ee.WriteMapStart(len(v))
  5221. if e.h.Canonical {
  5222. v2 := make([]uint64, len(v))
  5223. var i int
  5224. for k, _ := range v {
  5225. v2[i] = uint64(k)
  5226. i++
  5227. }
  5228. sort.Sort(uintSlice(v2))
  5229. for _, k2 := range v2 {
  5230. if esep {
  5231. ee.WriteMapElemKey()
  5232. }
  5233. ee.EncodeUint(uint64(uint(k2)))
  5234. if esep {
  5235. ee.WriteMapElemValue()
  5236. }
  5237. ee.EncodeUint(uint64(v[uint(k2)]))
  5238. }
  5239. } else {
  5240. for k2, v2 := range v {
  5241. if esep {
  5242. ee.WriteMapElemKey()
  5243. }
  5244. ee.EncodeUint(uint64(k2))
  5245. if esep {
  5246. ee.WriteMapElemValue()
  5247. }
  5248. ee.EncodeUint(uint64(v2))
  5249. }
  5250. }
  5251. ee.WriteMapEnd()
  5252. }
  5253. func (e *Encoder) fastpathEncMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  5254. fastpathTV.EncMapUintUint32V(rv2i(rv).(map[uint]uint32), e)
  5255. }
  5256. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, e *Encoder) {
  5257. if v == nil {
  5258. e.e.EncodeNil()
  5259. return
  5260. }
  5261. ee, esep := e.e, e.hh.hasElemSeparators()
  5262. ee.WriteMapStart(len(v))
  5263. if e.h.Canonical {
  5264. v2 := make([]uint64, len(v))
  5265. var i int
  5266. for k, _ := range v {
  5267. v2[i] = uint64(k)
  5268. i++
  5269. }
  5270. sort.Sort(uintSlice(v2))
  5271. for _, k2 := range v2 {
  5272. if esep {
  5273. ee.WriteMapElemKey()
  5274. }
  5275. ee.EncodeUint(uint64(uint(k2)))
  5276. if esep {
  5277. ee.WriteMapElemValue()
  5278. }
  5279. ee.EncodeUint(uint64(v[uint(k2)]))
  5280. }
  5281. } else {
  5282. for k2, v2 := range v {
  5283. if esep {
  5284. ee.WriteMapElemKey()
  5285. }
  5286. ee.EncodeUint(uint64(k2))
  5287. if esep {
  5288. ee.WriteMapElemValue()
  5289. }
  5290. ee.EncodeUint(uint64(v2))
  5291. }
  5292. }
  5293. ee.WriteMapEnd()
  5294. }
  5295. func (e *Encoder) fastpathEncMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  5296. fastpathTV.EncMapUintUint64V(rv2i(rv).(map[uint]uint64), e)
  5297. }
  5298. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, e *Encoder) {
  5299. if v == nil {
  5300. e.e.EncodeNil()
  5301. return
  5302. }
  5303. ee, esep := e.e, e.hh.hasElemSeparators()
  5304. ee.WriteMapStart(len(v))
  5305. if e.h.Canonical {
  5306. v2 := make([]uint64, len(v))
  5307. var i int
  5308. for k, _ := range v {
  5309. v2[i] = uint64(k)
  5310. i++
  5311. }
  5312. sort.Sort(uintSlice(v2))
  5313. for _, k2 := range v2 {
  5314. if esep {
  5315. ee.WriteMapElemKey()
  5316. }
  5317. ee.EncodeUint(uint64(uint(k2)))
  5318. if esep {
  5319. ee.WriteMapElemValue()
  5320. }
  5321. ee.EncodeUint(uint64(v[uint(k2)]))
  5322. }
  5323. } else {
  5324. for k2, v2 := range v {
  5325. if esep {
  5326. ee.WriteMapElemKey()
  5327. }
  5328. ee.EncodeUint(uint64(k2))
  5329. if esep {
  5330. ee.WriteMapElemValue()
  5331. }
  5332. ee.EncodeUint(uint64(v2))
  5333. }
  5334. }
  5335. ee.WriteMapEnd()
  5336. }
  5337. func (e *Encoder) fastpathEncMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  5338. fastpathTV.EncMapUintUintptrV(rv2i(rv).(map[uint]uintptr), e)
  5339. }
  5340. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, e *Encoder) {
  5341. if v == nil {
  5342. e.e.EncodeNil()
  5343. return
  5344. }
  5345. ee, esep := e.e, e.hh.hasElemSeparators()
  5346. ee.WriteMapStart(len(v))
  5347. if e.h.Canonical {
  5348. v2 := make([]uint64, len(v))
  5349. var i int
  5350. for k, _ := range v {
  5351. v2[i] = uint64(k)
  5352. i++
  5353. }
  5354. sort.Sort(uintSlice(v2))
  5355. for _, k2 := range v2 {
  5356. if esep {
  5357. ee.WriteMapElemKey()
  5358. }
  5359. ee.EncodeUint(uint64(uint(k2)))
  5360. if esep {
  5361. ee.WriteMapElemValue()
  5362. }
  5363. e.encode(v[uint(k2)])
  5364. }
  5365. } else {
  5366. for k2, v2 := range v {
  5367. if esep {
  5368. ee.WriteMapElemKey()
  5369. }
  5370. ee.EncodeUint(uint64(k2))
  5371. if esep {
  5372. ee.WriteMapElemValue()
  5373. }
  5374. e.encode(v2)
  5375. }
  5376. }
  5377. ee.WriteMapEnd()
  5378. }
  5379. func (e *Encoder) fastpathEncMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  5380. fastpathTV.EncMapUintIntV(rv2i(rv).(map[uint]int), e)
  5381. }
  5382. func (_ fastpathT) EncMapUintIntV(v map[uint]int, e *Encoder) {
  5383. if v == nil {
  5384. e.e.EncodeNil()
  5385. return
  5386. }
  5387. ee, esep := e.e, e.hh.hasElemSeparators()
  5388. ee.WriteMapStart(len(v))
  5389. if e.h.Canonical {
  5390. v2 := make([]uint64, len(v))
  5391. var i int
  5392. for k, _ := range v {
  5393. v2[i] = uint64(k)
  5394. i++
  5395. }
  5396. sort.Sort(uintSlice(v2))
  5397. for _, k2 := range v2 {
  5398. if esep {
  5399. ee.WriteMapElemKey()
  5400. }
  5401. ee.EncodeUint(uint64(uint(k2)))
  5402. if esep {
  5403. ee.WriteMapElemValue()
  5404. }
  5405. ee.EncodeInt(int64(v[uint(k2)]))
  5406. }
  5407. } else {
  5408. for k2, v2 := range v {
  5409. if esep {
  5410. ee.WriteMapElemKey()
  5411. }
  5412. ee.EncodeUint(uint64(k2))
  5413. if esep {
  5414. ee.WriteMapElemValue()
  5415. }
  5416. ee.EncodeInt(int64(v2))
  5417. }
  5418. }
  5419. ee.WriteMapEnd()
  5420. }
  5421. func (e *Encoder) fastpathEncMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  5422. fastpathTV.EncMapUintInt8V(rv2i(rv).(map[uint]int8), e)
  5423. }
  5424. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, e *Encoder) {
  5425. if v == nil {
  5426. e.e.EncodeNil()
  5427. return
  5428. }
  5429. ee, esep := e.e, e.hh.hasElemSeparators()
  5430. ee.WriteMapStart(len(v))
  5431. if e.h.Canonical {
  5432. v2 := make([]uint64, len(v))
  5433. var i int
  5434. for k, _ := range v {
  5435. v2[i] = uint64(k)
  5436. i++
  5437. }
  5438. sort.Sort(uintSlice(v2))
  5439. for _, k2 := range v2 {
  5440. if esep {
  5441. ee.WriteMapElemKey()
  5442. }
  5443. ee.EncodeUint(uint64(uint(k2)))
  5444. if esep {
  5445. ee.WriteMapElemValue()
  5446. }
  5447. ee.EncodeInt(int64(v[uint(k2)]))
  5448. }
  5449. } else {
  5450. for k2, v2 := range v {
  5451. if esep {
  5452. ee.WriteMapElemKey()
  5453. }
  5454. ee.EncodeUint(uint64(k2))
  5455. if esep {
  5456. ee.WriteMapElemValue()
  5457. }
  5458. ee.EncodeInt(int64(v2))
  5459. }
  5460. }
  5461. ee.WriteMapEnd()
  5462. }
  5463. func (e *Encoder) fastpathEncMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  5464. fastpathTV.EncMapUintInt16V(rv2i(rv).(map[uint]int16), e)
  5465. }
  5466. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, e *Encoder) {
  5467. if v == nil {
  5468. e.e.EncodeNil()
  5469. return
  5470. }
  5471. ee, esep := e.e, e.hh.hasElemSeparators()
  5472. ee.WriteMapStart(len(v))
  5473. if e.h.Canonical {
  5474. v2 := make([]uint64, len(v))
  5475. var i int
  5476. for k, _ := range v {
  5477. v2[i] = uint64(k)
  5478. i++
  5479. }
  5480. sort.Sort(uintSlice(v2))
  5481. for _, k2 := range v2 {
  5482. if esep {
  5483. ee.WriteMapElemKey()
  5484. }
  5485. ee.EncodeUint(uint64(uint(k2)))
  5486. if esep {
  5487. ee.WriteMapElemValue()
  5488. }
  5489. ee.EncodeInt(int64(v[uint(k2)]))
  5490. }
  5491. } else {
  5492. for k2, v2 := range v {
  5493. if esep {
  5494. ee.WriteMapElemKey()
  5495. }
  5496. ee.EncodeUint(uint64(k2))
  5497. if esep {
  5498. ee.WriteMapElemValue()
  5499. }
  5500. ee.EncodeInt(int64(v2))
  5501. }
  5502. }
  5503. ee.WriteMapEnd()
  5504. }
  5505. func (e *Encoder) fastpathEncMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  5506. fastpathTV.EncMapUintInt32V(rv2i(rv).(map[uint]int32), e)
  5507. }
  5508. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, e *Encoder) {
  5509. if v == nil {
  5510. e.e.EncodeNil()
  5511. return
  5512. }
  5513. ee, esep := e.e, e.hh.hasElemSeparators()
  5514. ee.WriteMapStart(len(v))
  5515. if e.h.Canonical {
  5516. v2 := make([]uint64, len(v))
  5517. var i int
  5518. for k, _ := range v {
  5519. v2[i] = uint64(k)
  5520. i++
  5521. }
  5522. sort.Sort(uintSlice(v2))
  5523. for _, k2 := range v2 {
  5524. if esep {
  5525. ee.WriteMapElemKey()
  5526. }
  5527. ee.EncodeUint(uint64(uint(k2)))
  5528. if esep {
  5529. ee.WriteMapElemValue()
  5530. }
  5531. ee.EncodeInt(int64(v[uint(k2)]))
  5532. }
  5533. } else {
  5534. for k2, v2 := range v {
  5535. if esep {
  5536. ee.WriteMapElemKey()
  5537. }
  5538. ee.EncodeUint(uint64(k2))
  5539. if esep {
  5540. ee.WriteMapElemValue()
  5541. }
  5542. ee.EncodeInt(int64(v2))
  5543. }
  5544. }
  5545. ee.WriteMapEnd()
  5546. }
  5547. func (e *Encoder) fastpathEncMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  5548. fastpathTV.EncMapUintInt64V(rv2i(rv).(map[uint]int64), e)
  5549. }
  5550. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, e *Encoder) {
  5551. if v == nil {
  5552. e.e.EncodeNil()
  5553. return
  5554. }
  5555. ee, esep := e.e, e.hh.hasElemSeparators()
  5556. ee.WriteMapStart(len(v))
  5557. if e.h.Canonical {
  5558. v2 := make([]uint64, len(v))
  5559. var i int
  5560. for k, _ := range v {
  5561. v2[i] = uint64(k)
  5562. i++
  5563. }
  5564. sort.Sort(uintSlice(v2))
  5565. for _, k2 := range v2 {
  5566. if esep {
  5567. ee.WriteMapElemKey()
  5568. }
  5569. ee.EncodeUint(uint64(uint(k2)))
  5570. if esep {
  5571. ee.WriteMapElemValue()
  5572. }
  5573. ee.EncodeInt(int64(v[uint(k2)]))
  5574. }
  5575. } else {
  5576. for k2, v2 := range v {
  5577. if esep {
  5578. ee.WriteMapElemKey()
  5579. }
  5580. ee.EncodeUint(uint64(k2))
  5581. if esep {
  5582. ee.WriteMapElemValue()
  5583. }
  5584. ee.EncodeInt(int64(v2))
  5585. }
  5586. }
  5587. ee.WriteMapEnd()
  5588. }
  5589. func (e *Encoder) fastpathEncMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  5590. fastpathTV.EncMapUintFloat32V(rv2i(rv).(map[uint]float32), e)
  5591. }
  5592. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, e *Encoder) {
  5593. if v == nil {
  5594. e.e.EncodeNil()
  5595. return
  5596. }
  5597. ee, esep := e.e, e.hh.hasElemSeparators()
  5598. ee.WriteMapStart(len(v))
  5599. if e.h.Canonical {
  5600. v2 := make([]uint64, len(v))
  5601. var i int
  5602. for k, _ := range v {
  5603. v2[i] = uint64(k)
  5604. i++
  5605. }
  5606. sort.Sort(uintSlice(v2))
  5607. for _, k2 := range v2 {
  5608. if esep {
  5609. ee.WriteMapElemKey()
  5610. }
  5611. ee.EncodeUint(uint64(uint(k2)))
  5612. if esep {
  5613. ee.WriteMapElemValue()
  5614. }
  5615. ee.EncodeFloat32(v[uint(k2)])
  5616. }
  5617. } else {
  5618. for k2, v2 := range v {
  5619. if esep {
  5620. ee.WriteMapElemKey()
  5621. }
  5622. ee.EncodeUint(uint64(k2))
  5623. if esep {
  5624. ee.WriteMapElemValue()
  5625. }
  5626. ee.EncodeFloat32(v2)
  5627. }
  5628. }
  5629. ee.WriteMapEnd()
  5630. }
  5631. func (e *Encoder) fastpathEncMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  5632. fastpathTV.EncMapUintFloat64V(rv2i(rv).(map[uint]float64), e)
  5633. }
  5634. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, e *Encoder) {
  5635. if v == nil {
  5636. e.e.EncodeNil()
  5637. return
  5638. }
  5639. ee, esep := e.e, e.hh.hasElemSeparators()
  5640. ee.WriteMapStart(len(v))
  5641. if e.h.Canonical {
  5642. v2 := make([]uint64, len(v))
  5643. var i int
  5644. for k, _ := range v {
  5645. v2[i] = uint64(k)
  5646. i++
  5647. }
  5648. sort.Sort(uintSlice(v2))
  5649. for _, k2 := range v2 {
  5650. if esep {
  5651. ee.WriteMapElemKey()
  5652. }
  5653. ee.EncodeUint(uint64(uint(k2)))
  5654. if esep {
  5655. ee.WriteMapElemValue()
  5656. }
  5657. ee.EncodeFloat64(v[uint(k2)])
  5658. }
  5659. } else {
  5660. for k2, v2 := range v {
  5661. if esep {
  5662. ee.WriteMapElemKey()
  5663. }
  5664. ee.EncodeUint(uint64(k2))
  5665. if esep {
  5666. ee.WriteMapElemValue()
  5667. }
  5668. ee.EncodeFloat64(v2)
  5669. }
  5670. }
  5671. ee.WriteMapEnd()
  5672. }
  5673. func (e *Encoder) fastpathEncMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  5674. fastpathTV.EncMapUintBoolV(rv2i(rv).(map[uint]bool), e)
  5675. }
  5676. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, e *Encoder) {
  5677. if v == nil {
  5678. e.e.EncodeNil()
  5679. return
  5680. }
  5681. ee, esep := e.e, e.hh.hasElemSeparators()
  5682. ee.WriteMapStart(len(v))
  5683. if e.h.Canonical {
  5684. v2 := make([]uint64, len(v))
  5685. var i int
  5686. for k, _ := range v {
  5687. v2[i] = uint64(k)
  5688. i++
  5689. }
  5690. sort.Sort(uintSlice(v2))
  5691. for _, k2 := range v2 {
  5692. if esep {
  5693. ee.WriteMapElemKey()
  5694. }
  5695. ee.EncodeUint(uint64(uint(k2)))
  5696. if esep {
  5697. ee.WriteMapElemValue()
  5698. }
  5699. ee.EncodeBool(v[uint(k2)])
  5700. }
  5701. } else {
  5702. for k2, v2 := range v {
  5703. if esep {
  5704. ee.WriteMapElemKey()
  5705. }
  5706. ee.EncodeUint(uint64(k2))
  5707. if esep {
  5708. ee.WriteMapElemValue()
  5709. }
  5710. ee.EncodeBool(v2)
  5711. }
  5712. }
  5713. ee.WriteMapEnd()
  5714. }
  5715. func (e *Encoder) fastpathEncMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  5716. fastpathTV.EncMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), e)
  5717. }
  5718. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, e *Encoder) {
  5719. if v == nil {
  5720. e.e.EncodeNil()
  5721. return
  5722. }
  5723. ee, esep := e.e, e.hh.hasElemSeparators()
  5724. ee.WriteMapStart(len(v))
  5725. if e.h.Canonical {
  5726. v2 := make([]uint64, len(v))
  5727. var i int
  5728. for k, _ := range v {
  5729. v2[i] = uint64(k)
  5730. i++
  5731. }
  5732. sort.Sort(uintSlice(v2))
  5733. for _, k2 := range v2 {
  5734. if esep {
  5735. ee.WriteMapElemKey()
  5736. }
  5737. ee.EncodeUint(uint64(uint8(k2)))
  5738. if esep {
  5739. ee.WriteMapElemValue()
  5740. }
  5741. e.encode(v[uint8(k2)])
  5742. }
  5743. } else {
  5744. for k2, v2 := range v {
  5745. if esep {
  5746. ee.WriteMapElemKey()
  5747. }
  5748. ee.EncodeUint(uint64(k2))
  5749. if esep {
  5750. ee.WriteMapElemValue()
  5751. }
  5752. e.encode(v2)
  5753. }
  5754. }
  5755. ee.WriteMapEnd()
  5756. }
  5757. func (e *Encoder) fastpathEncMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  5758. fastpathTV.EncMapUint8StringV(rv2i(rv).(map[uint8]string), e)
  5759. }
  5760. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, e *Encoder) {
  5761. if v == nil {
  5762. e.e.EncodeNil()
  5763. return
  5764. }
  5765. ee, esep := e.e, e.hh.hasElemSeparators()
  5766. ee.WriteMapStart(len(v))
  5767. if e.h.Canonical {
  5768. v2 := make([]uint64, len(v))
  5769. var i int
  5770. for k, _ := range v {
  5771. v2[i] = uint64(k)
  5772. i++
  5773. }
  5774. sort.Sort(uintSlice(v2))
  5775. for _, k2 := range v2 {
  5776. if esep {
  5777. ee.WriteMapElemKey()
  5778. }
  5779. ee.EncodeUint(uint64(uint8(k2)))
  5780. if esep {
  5781. ee.WriteMapElemValue()
  5782. }
  5783. ee.EncodeString(cUTF8, v[uint8(k2)])
  5784. }
  5785. } else {
  5786. for k2, v2 := range v {
  5787. if esep {
  5788. ee.WriteMapElemKey()
  5789. }
  5790. ee.EncodeUint(uint64(k2))
  5791. if esep {
  5792. ee.WriteMapElemValue()
  5793. }
  5794. ee.EncodeString(cUTF8, v2)
  5795. }
  5796. }
  5797. ee.WriteMapEnd()
  5798. }
  5799. func (e *Encoder) fastpathEncMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  5800. fastpathTV.EncMapUint8UintV(rv2i(rv).(map[uint8]uint), e)
  5801. }
  5802. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, e *Encoder) {
  5803. if v == nil {
  5804. e.e.EncodeNil()
  5805. return
  5806. }
  5807. ee, esep := e.e, e.hh.hasElemSeparators()
  5808. ee.WriteMapStart(len(v))
  5809. if e.h.Canonical {
  5810. v2 := make([]uint64, len(v))
  5811. var i int
  5812. for k, _ := range v {
  5813. v2[i] = uint64(k)
  5814. i++
  5815. }
  5816. sort.Sort(uintSlice(v2))
  5817. for _, k2 := range v2 {
  5818. if esep {
  5819. ee.WriteMapElemKey()
  5820. }
  5821. ee.EncodeUint(uint64(uint8(k2)))
  5822. if esep {
  5823. ee.WriteMapElemValue()
  5824. }
  5825. ee.EncodeUint(uint64(v[uint8(k2)]))
  5826. }
  5827. } else {
  5828. for k2, v2 := range v {
  5829. if esep {
  5830. ee.WriteMapElemKey()
  5831. }
  5832. ee.EncodeUint(uint64(k2))
  5833. if esep {
  5834. ee.WriteMapElemValue()
  5835. }
  5836. ee.EncodeUint(uint64(v2))
  5837. }
  5838. }
  5839. ee.WriteMapEnd()
  5840. }
  5841. func (e *Encoder) fastpathEncMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  5842. fastpathTV.EncMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), e)
  5843. }
  5844. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, e *Encoder) {
  5845. if v == nil {
  5846. e.e.EncodeNil()
  5847. return
  5848. }
  5849. ee, esep := e.e, e.hh.hasElemSeparators()
  5850. ee.WriteMapStart(len(v))
  5851. if e.h.Canonical {
  5852. v2 := make([]uint64, len(v))
  5853. var i int
  5854. for k, _ := range v {
  5855. v2[i] = uint64(k)
  5856. i++
  5857. }
  5858. sort.Sort(uintSlice(v2))
  5859. for _, k2 := range v2 {
  5860. if esep {
  5861. ee.WriteMapElemKey()
  5862. }
  5863. ee.EncodeUint(uint64(uint8(k2)))
  5864. if esep {
  5865. ee.WriteMapElemValue()
  5866. }
  5867. ee.EncodeUint(uint64(v[uint8(k2)]))
  5868. }
  5869. } else {
  5870. for k2, v2 := range v {
  5871. if esep {
  5872. ee.WriteMapElemKey()
  5873. }
  5874. ee.EncodeUint(uint64(k2))
  5875. if esep {
  5876. ee.WriteMapElemValue()
  5877. }
  5878. ee.EncodeUint(uint64(v2))
  5879. }
  5880. }
  5881. ee.WriteMapEnd()
  5882. }
  5883. func (e *Encoder) fastpathEncMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  5884. fastpathTV.EncMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), e)
  5885. }
  5886. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, e *Encoder) {
  5887. if v == nil {
  5888. e.e.EncodeNil()
  5889. return
  5890. }
  5891. ee, esep := e.e, e.hh.hasElemSeparators()
  5892. ee.WriteMapStart(len(v))
  5893. if e.h.Canonical {
  5894. v2 := make([]uint64, len(v))
  5895. var i int
  5896. for k, _ := range v {
  5897. v2[i] = uint64(k)
  5898. i++
  5899. }
  5900. sort.Sort(uintSlice(v2))
  5901. for _, k2 := range v2 {
  5902. if esep {
  5903. ee.WriteMapElemKey()
  5904. }
  5905. ee.EncodeUint(uint64(uint8(k2)))
  5906. if esep {
  5907. ee.WriteMapElemValue()
  5908. }
  5909. ee.EncodeUint(uint64(v[uint8(k2)]))
  5910. }
  5911. } else {
  5912. for k2, v2 := range v {
  5913. if esep {
  5914. ee.WriteMapElemKey()
  5915. }
  5916. ee.EncodeUint(uint64(k2))
  5917. if esep {
  5918. ee.WriteMapElemValue()
  5919. }
  5920. ee.EncodeUint(uint64(v2))
  5921. }
  5922. }
  5923. ee.WriteMapEnd()
  5924. }
  5925. func (e *Encoder) fastpathEncMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  5926. fastpathTV.EncMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), e)
  5927. }
  5928. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, e *Encoder) {
  5929. if v == nil {
  5930. e.e.EncodeNil()
  5931. return
  5932. }
  5933. ee, esep := e.e, e.hh.hasElemSeparators()
  5934. ee.WriteMapStart(len(v))
  5935. if e.h.Canonical {
  5936. v2 := make([]uint64, len(v))
  5937. var i int
  5938. for k, _ := range v {
  5939. v2[i] = uint64(k)
  5940. i++
  5941. }
  5942. sort.Sort(uintSlice(v2))
  5943. for _, k2 := range v2 {
  5944. if esep {
  5945. ee.WriteMapElemKey()
  5946. }
  5947. ee.EncodeUint(uint64(uint8(k2)))
  5948. if esep {
  5949. ee.WriteMapElemValue()
  5950. }
  5951. ee.EncodeUint(uint64(v[uint8(k2)]))
  5952. }
  5953. } else {
  5954. for k2, v2 := range v {
  5955. if esep {
  5956. ee.WriteMapElemKey()
  5957. }
  5958. ee.EncodeUint(uint64(k2))
  5959. if esep {
  5960. ee.WriteMapElemValue()
  5961. }
  5962. ee.EncodeUint(uint64(v2))
  5963. }
  5964. }
  5965. ee.WriteMapEnd()
  5966. }
  5967. func (e *Encoder) fastpathEncMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  5968. fastpathTV.EncMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), e)
  5969. }
  5970. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, e *Encoder) {
  5971. if v == nil {
  5972. e.e.EncodeNil()
  5973. return
  5974. }
  5975. ee, esep := e.e, e.hh.hasElemSeparators()
  5976. ee.WriteMapStart(len(v))
  5977. if e.h.Canonical {
  5978. v2 := make([]uint64, len(v))
  5979. var i int
  5980. for k, _ := range v {
  5981. v2[i] = uint64(k)
  5982. i++
  5983. }
  5984. sort.Sort(uintSlice(v2))
  5985. for _, k2 := range v2 {
  5986. if esep {
  5987. ee.WriteMapElemKey()
  5988. }
  5989. ee.EncodeUint(uint64(uint8(k2)))
  5990. if esep {
  5991. ee.WriteMapElemValue()
  5992. }
  5993. ee.EncodeUint(uint64(v[uint8(k2)]))
  5994. }
  5995. } else {
  5996. for k2, v2 := range v {
  5997. if esep {
  5998. ee.WriteMapElemKey()
  5999. }
  6000. ee.EncodeUint(uint64(k2))
  6001. if esep {
  6002. ee.WriteMapElemValue()
  6003. }
  6004. ee.EncodeUint(uint64(v2))
  6005. }
  6006. }
  6007. ee.WriteMapEnd()
  6008. }
  6009. func (e *Encoder) fastpathEncMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  6010. fastpathTV.EncMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), e)
  6011. }
  6012. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, e *Encoder) {
  6013. if v == nil {
  6014. e.e.EncodeNil()
  6015. return
  6016. }
  6017. ee, esep := e.e, e.hh.hasElemSeparators()
  6018. ee.WriteMapStart(len(v))
  6019. if e.h.Canonical {
  6020. v2 := make([]uint64, len(v))
  6021. var i int
  6022. for k, _ := range v {
  6023. v2[i] = uint64(k)
  6024. i++
  6025. }
  6026. sort.Sort(uintSlice(v2))
  6027. for _, k2 := range v2 {
  6028. if esep {
  6029. ee.WriteMapElemKey()
  6030. }
  6031. ee.EncodeUint(uint64(uint8(k2)))
  6032. if esep {
  6033. ee.WriteMapElemValue()
  6034. }
  6035. e.encode(v[uint8(k2)])
  6036. }
  6037. } else {
  6038. for k2, v2 := range v {
  6039. if esep {
  6040. ee.WriteMapElemKey()
  6041. }
  6042. ee.EncodeUint(uint64(k2))
  6043. if esep {
  6044. ee.WriteMapElemValue()
  6045. }
  6046. e.encode(v2)
  6047. }
  6048. }
  6049. ee.WriteMapEnd()
  6050. }
  6051. func (e *Encoder) fastpathEncMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  6052. fastpathTV.EncMapUint8IntV(rv2i(rv).(map[uint8]int), e)
  6053. }
  6054. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, e *Encoder) {
  6055. if v == nil {
  6056. e.e.EncodeNil()
  6057. return
  6058. }
  6059. ee, esep := e.e, e.hh.hasElemSeparators()
  6060. ee.WriteMapStart(len(v))
  6061. if e.h.Canonical {
  6062. v2 := make([]uint64, len(v))
  6063. var i int
  6064. for k, _ := range v {
  6065. v2[i] = uint64(k)
  6066. i++
  6067. }
  6068. sort.Sort(uintSlice(v2))
  6069. for _, k2 := range v2 {
  6070. if esep {
  6071. ee.WriteMapElemKey()
  6072. }
  6073. ee.EncodeUint(uint64(uint8(k2)))
  6074. if esep {
  6075. ee.WriteMapElemValue()
  6076. }
  6077. ee.EncodeInt(int64(v[uint8(k2)]))
  6078. }
  6079. } else {
  6080. for k2, v2 := range v {
  6081. if esep {
  6082. ee.WriteMapElemKey()
  6083. }
  6084. ee.EncodeUint(uint64(k2))
  6085. if esep {
  6086. ee.WriteMapElemValue()
  6087. }
  6088. ee.EncodeInt(int64(v2))
  6089. }
  6090. }
  6091. ee.WriteMapEnd()
  6092. }
  6093. func (e *Encoder) fastpathEncMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  6094. fastpathTV.EncMapUint8Int8V(rv2i(rv).(map[uint8]int8), e)
  6095. }
  6096. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, e *Encoder) {
  6097. if v == nil {
  6098. e.e.EncodeNil()
  6099. return
  6100. }
  6101. ee, esep := e.e, e.hh.hasElemSeparators()
  6102. ee.WriteMapStart(len(v))
  6103. if e.h.Canonical {
  6104. v2 := make([]uint64, len(v))
  6105. var i int
  6106. for k, _ := range v {
  6107. v2[i] = uint64(k)
  6108. i++
  6109. }
  6110. sort.Sort(uintSlice(v2))
  6111. for _, k2 := range v2 {
  6112. if esep {
  6113. ee.WriteMapElemKey()
  6114. }
  6115. ee.EncodeUint(uint64(uint8(k2)))
  6116. if esep {
  6117. ee.WriteMapElemValue()
  6118. }
  6119. ee.EncodeInt(int64(v[uint8(k2)]))
  6120. }
  6121. } else {
  6122. for k2, v2 := range v {
  6123. if esep {
  6124. ee.WriteMapElemKey()
  6125. }
  6126. ee.EncodeUint(uint64(k2))
  6127. if esep {
  6128. ee.WriteMapElemValue()
  6129. }
  6130. ee.EncodeInt(int64(v2))
  6131. }
  6132. }
  6133. ee.WriteMapEnd()
  6134. }
  6135. func (e *Encoder) fastpathEncMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  6136. fastpathTV.EncMapUint8Int16V(rv2i(rv).(map[uint8]int16), e)
  6137. }
  6138. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, e *Encoder) {
  6139. if v == nil {
  6140. e.e.EncodeNil()
  6141. return
  6142. }
  6143. ee, esep := e.e, e.hh.hasElemSeparators()
  6144. ee.WriteMapStart(len(v))
  6145. if e.h.Canonical {
  6146. v2 := make([]uint64, len(v))
  6147. var i int
  6148. for k, _ := range v {
  6149. v2[i] = uint64(k)
  6150. i++
  6151. }
  6152. sort.Sort(uintSlice(v2))
  6153. for _, k2 := range v2 {
  6154. if esep {
  6155. ee.WriteMapElemKey()
  6156. }
  6157. ee.EncodeUint(uint64(uint8(k2)))
  6158. if esep {
  6159. ee.WriteMapElemValue()
  6160. }
  6161. ee.EncodeInt(int64(v[uint8(k2)]))
  6162. }
  6163. } else {
  6164. for k2, v2 := range v {
  6165. if esep {
  6166. ee.WriteMapElemKey()
  6167. }
  6168. ee.EncodeUint(uint64(k2))
  6169. if esep {
  6170. ee.WriteMapElemValue()
  6171. }
  6172. ee.EncodeInt(int64(v2))
  6173. }
  6174. }
  6175. ee.WriteMapEnd()
  6176. }
  6177. func (e *Encoder) fastpathEncMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  6178. fastpathTV.EncMapUint8Int32V(rv2i(rv).(map[uint8]int32), e)
  6179. }
  6180. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, e *Encoder) {
  6181. if v == nil {
  6182. e.e.EncodeNil()
  6183. return
  6184. }
  6185. ee, esep := e.e, e.hh.hasElemSeparators()
  6186. ee.WriteMapStart(len(v))
  6187. if e.h.Canonical {
  6188. v2 := make([]uint64, len(v))
  6189. var i int
  6190. for k, _ := range v {
  6191. v2[i] = uint64(k)
  6192. i++
  6193. }
  6194. sort.Sort(uintSlice(v2))
  6195. for _, k2 := range v2 {
  6196. if esep {
  6197. ee.WriteMapElemKey()
  6198. }
  6199. ee.EncodeUint(uint64(uint8(k2)))
  6200. if esep {
  6201. ee.WriteMapElemValue()
  6202. }
  6203. ee.EncodeInt(int64(v[uint8(k2)]))
  6204. }
  6205. } else {
  6206. for k2, v2 := range v {
  6207. if esep {
  6208. ee.WriteMapElemKey()
  6209. }
  6210. ee.EncodeUint(uint64(k2))
  6211. if esep {
  6212. ee.WriteMapElemValue()
  6213. }
  6214. ee.EncodeInt(int64(v2))
  6215. }
  6216. }
  6217. ee.WriteMapEnd()
  6218. }
  6219. func (e *Encoder) fastpathEncMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  6220. fastpathTV.EncMapUint8Int64V(rv2i(rv).(map[uint8]int64), e)
  6221. }
  6222. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, e *Encoder) {
  6223. if v == nil {
  6224. e.e.EncodeNil()
  6225. return
  6226. }
  6227. ee, esep := e.e, e.hh.hasElemSeparators()
  6228. ee.WriteMapStart(len(v))
  6229. if e.h.Canonical {
  6230. v2 := make([]uint64, len(v))
  6231. var i int
  6232. for k, _ := range v {
  6233. v2[i] = uint64(k)
  6234. i++
  6235. }
  6236. sort.Sort(uintSlice(v2))
  6237. for _, k2 := range v2 {
  6238. if esep {
  6239. ee.WriteMapElemKey()
  6240. }
  6241. ee.EncodeUint(uint64(uint8(k2)))
  6242. if esep {
  6243. ee.WriteMapElemValue()
  6244. }
  6245. ee.EncodeInt(int64(v[uint8(k2)]))
  6246. }
  6247. } else {
  6248. for k2, v2 := range v {
  6249. if esep {
  6250. ee.WriteMapElemKey()
  6251. }
  6252. ee.EncodeUint(uint64(k2))
  6253. if esep {
  6254. ee.WriteMapElemValue()
  6255. }
  6256. ee.EncodeInt(int64(v2))
  6257. }
  6258. }
  6259. ee.WriteMapEnd()
  6260. }
  6261. func (e *Encoder) fastpathEncMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  6262. fastpathTV.EncMapUint8Float32V(rv2i(rv).(map[uint8]float32), e)
  6263. }
  6264. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, e *Encoder) {
  6265. if v == nil {
  6266. e.e.EncodeNil()
  6267. return
  6268. }
  6269. ee, esep := e.e, e.hh.hasElemSeparators()
  6270. ee.WriteMapStart(len(v))
  6271. if e.h.Canonical {
  6272. v2 := make([]uint64, len(v))
  6273. var i int
  6274. for k, _ := range v {
  6275. v2[i] = uint64(k)
  6276. i++
  6277. }
  6278. sort.Sort(uintSlice(v2))
  6279. for _, k2 := range v2 {
  6280. if esep {
  6281. ee.WriteMapElemKey()
  6282. }
  6283. ee.EncodeUint(uint64(uint8(k2)))
  6284. if esep {
  6285. ee.WriteMapElemValue()
  6286. }
  6287. ee.EncodeFloat32(v[uint8(k2)])
  6288. }
  6289. } else {
  6290. for k2, v2 := range v {
  6291. if esep {
  6292. ee.WriteMapElemKey()
  6293. }
  6294. ee.EncodeUint(uint64(k2))
  6295. if esep {
  6296. ee.WriteMapElemValue()
  6297. }
  6298. ee.EncodeFloat32(v2)
  6299. }
  6300. }
  6301. ee.WriteMapEnd()
  6302. }
  6303. func (e *Encoder) fastpathEncMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  6304. fastpathTV.EncMapUint8Float64V(rv2i(rv).(map[uint8]float64), e)
  6305. }
  6306. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, e *Encoder) {
  6307. if v == nil {
  6308. e.e.EncodeNil()
  6309. return
  6310. }
  6311. ee, esep := e.e, e.hh.hasElemSeparators()
  6312. ee.WriteMapStart(len(v))
  6313. if e.h.Canonical {
  6314. v2 := make([]uint64, len(v))
  6315. var i int
  6316. for k, _ := range v {
  6317. v2[i] = uint64(k)
  6318. i++
  6319. }
  6320. sort.Sort(uintSlice(v2))
  6321. for _, k2 := range v2 {
  6322. if esep {
  6323. ee.WriteMapElemKey()
  6324. }
  6325. ee.EncodeUint(uint64(uint8(k2)))
  6326. if esep {
  6327. ee.WriteMapElemValue()
  6328. }
  6329. ee.EncodeFloat64(v[uint8(k2)])
  6330. }
  6331. } else {
  6332. for k2, v2 := range v {
  6333. if esep {
  6334. ee.WriteMapElemKey()
  6335. }
  6336. ee.EncodeUint(uint64(k2))
  6337. if esep {
  6338. ee.WriteMapElemValue()
  6339. }
  6340. ee.EncodeFloat64(v2)
  6341. }
  6342. }
  6343. ee.WriteMapEnd()
  6344. }
  6345. func (e *Encoder) fastpathEncMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  6346. fastpathTV.EncMapUint8BoolV(rv2i(rv).(map[uint8]bool), e)
  6347. }
  6348. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, e *Encoder) {
  6349. if v == nil {
  6350. e.e.EncodeNil()
  6351. return
  6352. }
  6353. ee, esep := e.e, e.hh.hasElemSeparators()
  6354. ee.WriteMapStart(len(v))
  6355. if e.h.Canonical {
  6356. v2 := make([]uint64, len(v))
  6357. var i int
  6358. for k, _ := range v {
  6359. v2[i] = uint64(k)
  6360. i++
  6361. }
  6362. sort.Sort(uintSlice(v2))
  6363. for _, k2 := range v2 {
  6364. if esep {
  6365. ee.WriteMapElemKey()
  6366. }
  6367. ee.EncodeUint(uint64(uint8(k2)))
  6368. if esep {
  6369. ee.WriteMapElemValue()
  6370. }
  6371. ee.EncodeBool(v[uint8(k2)])
  6372. }
  6373. } else {
  6374. for k2, v2 := range v {
  6375. if esep {
  6376. ee.WriteMapElemKey()
  6377. }
  6378. ee.EncodeUint(uint64(k2))
  6379. if esep {
  6380. ee.WriteMapElemValue()
  6381. }
  6382. ee.EncodeBool(v2)
  6383. }
  6384. }
  6385. ee.WriteMapEnd()
  6386. }
  6387. func (e *Encoder) fastpathEncMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  6388. fastpathTV.EncMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), e)
  6389. }
  6390. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, e *Encoder) {
  6391. if v == nil {
  6392. e.e.EncodeNil()
  6393. return
  6394. }
  6395. ee, esep := e.e, e.hh.hasElemSeparators()
  6396. ee.WriteMapStart(len(v))
  6397. if e.h.Canonical {
  6398. v2 := make([]uint64, len(v))
  6399. var i int
  6400. for k, _ := range v {
  6401. v2[i] = uint64(k)
  6402. i++
  6403. }
  6404. sort.Sort(uintSlice(v2))
  6405. for _, k2 := range v2 {
  6406. if esep {
  6407. ee.WriteMapElemKey()
  6408. }
  6409. ee.EncodeUint(uint64(uint16(k2)))
  6410. if esep {
  6411. ee.WriteMapElemValue()
  6412. }
  6413. e.encode(v[uint16(k2)])
  6414. }
  6415. } else {
  6416. for k2, v2 := range v {
  6417. if esep {
  6418. ee.WriteMapElemKey()
  6419. }
  6420. ee.EncodeUint(uint64(k2))
  6421. if esep {
  6422. ee.WriteMapElemValue()
  6423. }
  6424. e.encode(v2)
  6425. }
  6426. }
  6427. ee.WriteMapEnd()
  6428. }
  6429. func (e *Encoder) fastpathEncMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  6430. fastpathTV.EncMapUint16StringV(rv2i(rv).(map[uint16]string), e)
  6431. }
  6432. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, e *Encoder) {
  6433. if v == nil {
  6434. e.e.EncodeNil()
  6435. return
  6436. }
  6437. ee, esep := e.e, e.hh.hasElemSeparators()
  6438. ee.WriteMapStart(len(v))
  6439. if e.h.Canonical {
  6440. v2 := make([]uint64, len(v))
  6441. var i int
  6442. for k, _ := range v {
  6443. v2[i] = uint64(k)
  6444. i++
  6445. }
  6446. sort.Sort(uintSlice(v2))
  6447. for _, k2 := range v2 {
  6448. if esep {
  6449. ee.WriteMapElemKey()
  6450. }
  6451. ee.EncodeUint(uint64(uint16(k2)))
  6452. if esep {
  6453. ee.WriteMapElemValue()
  6454. }
  6455. ee.EncodeString(cUTF8, v[uint16(k2)])
  6456. }
  6457. } else {
  6458. for k2, v2 := range v {
  6459. if esep {
  6460. ee.WriteMapElemKey()
  6461. }
  6462. ee.EncodeUint(uint64(k2))
  6463. if esep {
  6464. ee.WriteMapElemValue()
  6465. }
  6466. ee.EncodeString(cUTF8, v2)
  6467. }
  6468. }
  6469. ee.WriteMapEnd()
  6470. }
  6471. func (e *Encoder) fastpathEncMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  6472. fastpathTV.EncMapUint16UintV(rv2i(rv).(map[uint16]uint), e)
  6473. }
  6474. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, e *Encoder) {
  6475. if v == nil {
  6476. e.e.EncodeNil()
  6477. return
  6478. }
  6479. ee, esep := e.e, e.hh.hasElemSeparators()
  6480. ee.WriteMapStart(len(v))
  6481. if e.h.Canonical {
  6482. v2 := make([]uint64, len(v))
  6483. var i int
  6484. for k, _ := range v {
  6485. v2[i] = uint64(k)
  6486. i++
  6487. }
  6488. sort.Sort(uintSlice(v2))
  6489. for _, k2 := range v2 {
  6490. if esep {
  6491. ee.WriteMapElemKey()
  6492. }
  6493. ee.EncodeUint(uint64(uint16(k2)))
  6494. if esep {
  6495. ee.WriteMapElemValue()
  6496. }
  6497. ee.EncodeUint(uint64(v[uint16(k2)]))
  6498. }
  6499. } else {
  6500. for k2, v2 := range v {
  6501. if esep {
  6502. ee.WriteMapElemKey()
  6503. }
  6504. ee.EncodeUint(uint64(k2))
  6505. if esep {
  6506. ee.WriteMapElemValue()
  6507. }
  6508. ee.EncodeUint(uint64(v2))
  6509. }
  6510. }
  6511. ee.WriteMapEnd()
  6512. }
  6513. func (e *Encoder) fastpathEncMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  6514. fastpathTV.EncMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), e)
  6515. }
  6516. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, e *Encoder) {
  6517. if v == nil {
  6518. e.e.EncodeNil()
  6519. return
  6520. }
  6521. ee, esep := e.e, e.hh.hasElemSeparators()
  6522. ee.WriteMapStart(len(v))
  6523. if e.h.Canonical {
  6524. v2 := make([]uint64, len(v))
  6525. var i int
  6526. for k, _ := range v {
  6527. v2[i] = uint64(k)
  6528. i++
  6529. }
  6530. sort.Sort(uintSlice(v2))
  6531. for _, k2 := range v2 {
  6532. if esep {
  6533. ee.WriteMapElemKey()
  6534. }
  6535. ee.EncodeUint(uint64(uint16(k2)))
  6536. if esep {
  6537. ee.WriteMapElemValue()
  6538. }
  6539. ee.EncodeUint(uint64(v[uint16(k2)]))
  6540. }
  6541. } else {
  6542. for k2, v2 := range v {
  6543. if esep {
  6544. ee.WriteMapElemKey()
  6545. }
  6546. ee.EncodeUint(uint64(k2))
  6547. if esep {
  6548. ee.WriteMapElemValue()
  6549. }
  6550. ee.EncodeUint(uint64(v2))
  6551. }
  6552. }
  6553. ee.WriteMapEnd()
  6554. }
  6555. func (e *Encoder) fastpathEncMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  6556. fastpathTV.EncMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), e)
  6557. }
  6558. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, e *Encoder) {
  6559. if v == nil {
  6560. e.e.EncodeNil()
  6561. return
  6562. }
  6563. ee, esep := e.e, e.hh.hasElemSeparators()
  6564. ee.WriteMapStart(len(v))
  6565. if e.h.Canonical {
  6566. v2 := make([]uint64, len(v))
  6567. var i int
  6568. for k, _ := range v {
  6569. v2[i] = uint64(k)
  6570. i++
  6571. }
  6572. sort.Sort(uintSlice(v2))
  6573. for _, k2 := range v2 {
  6574. if esep {
  6575. ee.WriteMapElemKey()
  6576. }
  6577. ee.EncodeUint(uint64(uint16(k2)))
  6578. if esep {
  6579. ee.WriteMapElemValue()
  6580. }
  6581. ee.EncodeUint(uint64(v[uint16(k2)]))
  6582. }
  6583. } else {
  6584. for k2, v2 := range v {
  6585. if esep {
  6586. ee.WriteMapElemKey()
  6587. }
  6588. ee.EncodeUint(uint64(k2))
  6589. if esep {
  6590. ee.WriteMapElemValue()
  6591. }
  6592. ee.EncodeUint(uint64(v2))
  6593. }
  6594. }
  6595. ee.WriteMapEnd()
  6596. }
  6597. func (e *Encoder) fastpathEncMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  6598. fastpathTV.EncMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), e)
  6599. }
  6600. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, e *Encoder) {
  6601. if v == nil {
  6602. e.e.EncodeNil()
  6603. return
  6604. }
  6605. ee, esep := e.e, e.hh.hasElemSeparators()
  6606. ee.WriteMapStart(len(v))
  6607. if e.h.Canonical {
  6608. v2 := make([]uint64, len(v))
  6609. var i int
  6610. for k, _ := range v {
  6611. v2[i] = uint64(k)
  6612. i++
  6613. }
  6614. sort.Sort(uintSlice(v2))
  6615. for _, k2 := range v2 {
  6616. if esep {
  6617. ee.WriteMapElemKey()
  6618. }
  6619. ee.EncodeUint(uint64(uint16(k2)))
  6620. if esep {
  6621. ee.WriteMapElemValue()
  6622. }
  6623. ee.EncodeUint(uint64(v[uint16(k2)]))
  6624. }
  6625. } else {
  6626. for k2, v2 := range v {
  6627. if esep {
  6628. ee.WriteMapElemKey()
  6629. }
  6630. ee.EncodeUint(uint64(k2))
  6631. if esep {
  6632. ee.WriteMapElemValue()
  6633. }
  6634. ee.EncodeUint(uint64(v2))
  6635. }
  6636. }
  6637. ee.WriteMapEnd()
  6638. }
  6639. func (e *Encoder) fastpathEncMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  6640. fastpathTV.EncMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), e)
  6641. }
  6642. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, e *Encoder) {
  6643. if v == nil {
  6644. e.e.EncodeNil()
  6645. return
  6646. }
  6647. ee, esep := e.e, e.hh.hasElemSeparators()
  6648. ee.WriteMapStart(len(v))
  6649. if e.h.Canonical {
  6650. v2 := make([]uint64, len(v))
  6651. var i int
  6652. for k, _ := range v {
  6653. v2[i] = uint64(k)
  6654. i++
  6655. }
  6656. sort.Sort(uintSlice(v2))
  6657. for _, k2 := range v2 {
  6658. if esep {
  6659. ee.WriteMapElemKey()
  6660. }
  6661. ee.EncodeUint(uint64(uint16(k2)))
  6662. if esep {
  6663. ee.WriteMapElemValue()
  6664. }
  6665. ee.EncodeUint(uint64(v[uint16(k2)]))
  6666. }
  6667. } else {
  6668. for k2, v2 := range v {
  6669. if esep {
  6670. ee.WriteMapElemKey()
  6671. }
  6672. ee.EncodeUint(uint64(k2))
  6673. if esep {
  6674. ee.WriteMapElemValue()
  6675. }
  6676. ee.EncodeUint(uint64(v2))
  6677. }
  6678. }
  6679. ee.WriteMapEnd()
  6680. }
  6681. func (e *Encoder) fastpathEncMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  6682. fastpathTV.EncMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), e)
  6683. }
  6684. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, e *Encoder) {
  6685. if v == nil {
  6686. e.e.EncodeNil()
  6687. return
  6688. }
  6689. ee, esep := e.e, e.hh.hasElemSeparators()
  6690. ee.WriteMapStart(len(v))
  6691. if e.h.Canonical {
  6692. v2 := make([]uint64, len(v))
  6693. var i int
  6694. for k, _ := range v {
  6695. v2[i] = uint64(k)
  6696. i++
  6697. }
  6698. sort.Sort(uintSlice(v2))
  6699. for _, k2 := range v2 {
  6700. if esep {
  6701. ee.WriteMapElemKey()
  6702. }
  6703. ee.EncodeUint(uint64(uint16(k2)))
  6704. if esep {
  6705. ee.WriteMapElemValue()
  6706. }
  6707. e.encode(v[uint16(k2)])
  6708. }
  6709. } else {
  6710. for k2, v2 := range v {
  6711. if esep {
  6712. ee.WriteMapElemKey()
  6713. }
  6714. ee.EncodeUint(uint64(k2))
  6715. if esep {
  6716. ee.WriteMapElemValue()
  6717. }
  6718. e.encode(v2)
  6719. }
  6720. }
  6721. ee.WriteMapEnd()
  6722. }
  6723. func (e *Encoder) fastpathEncMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  6724. fastpathTV.EncMapUint16IntV(rv2i(rv).(map[uint16]int), e)
  6725. }
  6726. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, e *Encoder) {
  6727. if v == nil {
  6728. e.e.EncodeNil()
  6729. return
  6730. }
  6731. ee, esep := e.e, e.hh.hasElemSeparators()
  6732. ee.WriteMapStart(len(v))
  6733. if e.h.Canonical {
  6734. v2 := make([]uint64, len(v))
  6735. var i int
  6736. for k, _ := range v {
  6737. v2[i] = uint64(k)
  6738. i++
  6739. }
  6740. sort.Sort(uintSlice(v2))
  6741. for _, k2 := range v2 {
  6742. if esep {
  6743. ee.WriteMapElemKey()
  6744. }
  6745. ee.EncodeUint(uint64(uint16(k2)))
  6746. if esep {
  6747. ee.WriteMapElemValue()
  6748. }
  6749. ee.EncodeInt(int64(v[uint16(k2)]))
  6750. }
  6751. } else {
  6752. for k2, v2 := range v {
  6753. if esep {
  6754. ee.WriteMapElemKey()
  6755. }
  6756. ee.EncodeUint(uint64(k2))
  6757. if esep {
  6758. ee.WriteMapElemValue()
  6759. }
  6760. ee.EncodeInt(int64(v2))
  6761. }
  6762. }
  6763. ee.WriteMapEnd()
  6764. }
  6765. func (e *Encoder) fastpathEncMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  6766. fastpathTV.EncMapUint16Int8V(rv2i(rv).(map[uint16]int8), e)
  6767. }
  6768. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, e *Encoder) {
  6769. if v == nil {
  6770. e.e.EncodeNil()
  6771. return
  6772. }
  6773. ee, esep := e.e, e.hh.hasElemSeparators()
  6774. ee.WriteMapStart(len(v))
  6775. if e.h.Canonical {
  6776. v2 := make([]uint64, len(v))
  6777. var i int
  6778. for k, _ := range v {
  6779. v2[i] = uint64(k)
  6780. i++
  6781. }
  6782. sort.Sort(uintSlice(v2))
  6783. for _, k2 := range v2 {
  6784. if esep {
  6785. ee.WriteMapElemKey()
  6786. }
  6787. ee.EncodeUint(uint64(uint16(k2)))
  6788. if esep {
  6789. ee.WriteMapElemValue()
  6790. }
  6791. ee.EncodeInt(int64(v[uint16(k2)]))
  6792. }
  6793. } else {
  6794. for k2, v2 := range v {
  6795. if esep {
  6796. ee.WriteMapElemKey()
  6797. }
  6798. ee.EncodeUint(uint64(k2))
  6799. if esep {
  6800. ee.WriteMapElemValue()
  6801. }
  6802. ee.EncodeInt(int64(v2))
  6803. }
  6804. }
  6805. ee.WriteMapEnd()
  6806. }
  6807. func (e *Encoder) fastpathEncMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  6808. fastpathTV.EncMapUint16Int16V(rv2i(rv).(map[uint16]int16), e)
  6809. }
  6810. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, e *Encoder) {
  6811. if v == nil {
  6812. e.e.EncodeNil()
  6813. return
  6814. }
  6815. ee, esep := e.e, e.hh.hasElemSeparators()
  6816. ee.WriteMapStart(len(v))
  6817. if e.h.Canonical {
  6818. v2 := make([]uint64, len(v))
  6819. var i int
  6820. for k, _ := range v {
  6821. v2[i] = uint64(k)
  6822. i++
  6823. }
  6824. sort.Sort(uintSlice(v2))
  6825. for _, k2 := range v2 {
  6826. if esep {
  6827. ee.WriteMapElemKey()
  6828. }
  6829. ee.EncodeUint(uint64(uint16(k2)))
  6830. if esep {
  6831. ee.WriteMapElemValue()
  6832. }
  6833. ee.EncodeInt(int64(v[uint16(k2)]))
  6834. }
  6835. } else {
  6836. for k2, v2 := range v {
  6837. if esep {
  6838. ee.WriteMapElemKey()
  6839. }
  6840. ee.EncodeUint(uint64(k2))
  6841. if esep {
  6842. ee.WriteMapElemValue()
  6843. }
  6844. ee.EncodeInt(int64(v2))
  6845. }
  6846. }
  6847. ee.WriteMapEnd()
  6848. }
  6849. func (e *Encoder) fastpathEncMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  6850. fastpathTV.EncMapUint16Int32V(rv2i(rv).(map[uint16]int32), e)
  6851. }
  6852. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, e *Encoder) {
  6853. if v == nil {
  6854. e.e.EncodeNil()
  6855. return
  6856. }
  6857. ee, esep := e.e, e.hh.hasElemSeparators()
  6858. ee.WriteMapStart(len(v))
  6859. if e.h.Canonical {
  6860. v2 := make([]uint64, len(v))
  6861. var i int
  6862. for k, _ := range v {
  6863. v2[i] = uint64(k)
  6864. i++
  6865. }
  6866. sort.Sort(uintSlice(v2))
  6867. for _, k2 := range v2 {
  6868. if esep {
  6869. ee.WriteMapElemKey()
  6870. }
  6871. ee.EncodeUint(uint64(uint16(k2)))
  6872. if esep {
  6873. ee.WriteMapElemValue()
  6874. }
  6875. ee.EncodeInt(int64(v[uint16(k2)]))
  6876. }
  6877. } else {
  6878. for k2, v2 := range v {
  6879. if esep {
  6880. ee.WriteMapElemKey()
  6881. }
  6882. ee.EncodeUint(uint64(k2))
  6883. if esep {
  6884. ee.WriteMapElemValue()
  6885. }
  6886. ee.EncodeInt(int64(v2))
  6887. }
  6888. }
  6889. ee.WriteMapEnd()
  6890. }
  6891. func (e *Encoder) fastpathEncMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  6892. fastpathTV.EncMapUint16Int64V(rv2i(rv).(map[uint16]int64), e)
  6893. }
  6894. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, e *Encoder) {
  6895. if v == nil {
  6896. e.e.EncodeNil()
  6897. return
  6898. }
  6899. ee, esep := e.e, e.hh.hasElemSeparators()
  6900. ee.WriteMapStart(len(v))
  6901. if e.h.Canonical {
  6902. v2 := make([]uint64, len(v))
  6903. var i int
  6904. for k, _ := range v {
  6905. v2[i] = uint64(k)
  6906. i++
  6907. }
  6908. sort.Sort(uintSlice(v2))
  6909. for _, k2 := range v2 {
  6910. if esep {
  6911. ee.WriteMapElemKey()
  6912. }
  6913. ee.EncodeUint(uint64(uint16(k2)))
  6914. if esep {
  6915. ee.WriteMapElemValue()
  6916. }
  6917. ee.EncodeInt(int64(v[uint16(k2)]))
  6918. }
  6919. } else {
  6920. for k2, v2 := range v {
  6921. if esep {
  6922. ee.WriteMapElemKey()
  6923. }
  6924. ee.EncodeUint(uint64(k2))
  6925. if esep {
  6926. ee.WriteMapElemValue()
  6927. }
  6928. ee.EncodeInt(int64(v2))
  6929. }
  6930. }
  6931. ee.WriteMapEnd()
  6932. }
  6933. func (e *Encoder) fastpathEncMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  6934. fastpathTV.EncMapUint16Float32V(rv2i(rv).(map[uint16]float32), e)
  6935. }
  6936. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, e *Encoder) {
  6937. if v == nil {
  6938. e.e.EncodeNil()
  6939. return
  6940. }
  6941. ee, esep := e.e, e.hh.hasElemSeparators()
  6942. ee.WriteMapStart(len(v))
  6943. if e.h.Canonical {
  6944. v2 := make([]uint64, len(v))
  6945. var i int
  6946. for k, _ := range v {
  6947. v2[i] = uint64(k)
  6948. i++
  6949. }
  6950. sort.Sort(uintSlice(v2))
  6951. for _, k2 := range v2 {
  6952. if esep {
  6953. ee.WriteMapElemKey()
  6954. }
  6955. ee.EncodeUint(uint64(uint16(k2)))
  6956. if esep {
  6957. ee.WriteMapElemValue()
  6958. }
  6959. ee.EncodeFloat32(v[uint16(k2)])
  6960. }
  6961. } else {
  6962. for k2, v2 := range v {
  6963. if esep {
  6964. ee.WriteMapElemKey()
  6965. }
  6966. ee.EncodeUint(uint64(k2))
  6967. if esep {
  6968. ee.WriteMapElemValue()
  6969. }
  6970. ee.EncodeFloat32(v2)
  6971. }
  6972. }
  6973. ee.WriteMapEnd()
  6974. }
  6975. func (e *Encoder) fastpathEncMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  6976. fastpathTV.EncMapUint16Float64V(rv2i(rv).(map[uint16]float64), e)
  6977. }
  6978. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, e *Encoder) {
  6979. if v == nil {
  6980. e.e.EncodeNil()
  6981. return
  6982. }
  6983. ee, esep := e.e, e.hh.hasElemSeparators()
  6984. ee.WriteMapStart(len(v))
  6985. if e.h.Canonical {
  6986. v2 := make([]uint64, len(v))
  6987. var i int
  6988. for k, _ := range v {
  6989. v2[i] = uint64(k)
  6990. i++
  6991. }
  6992. sort.Sort(uintSlice(v2))
  6993. for _, k2 := range v2 {
  6994. if esep {
  6995. ee.WriteMapElemKey()
  6996. }
  6997. ee.EncodeUint(uint64(uint16(k2)))
  6998. if esep {
  6999. ee.WriteMapElemValue()
  7000. }
  7001. ee.EncodeFloat64(v[uint16(k2)])
  7002. }
  7003. } else {
  7004. for k2, v2 := range v {
  7005. if esep {
  7006. ee.WriteMapElemKey()
  7007. }
  7008. ee.EncodeUint(uint64(k2))
  7009. if esep {
  7010. ee.WriteMapElemValue()
  7011. }
  7012. ee.EncodeFloat64(v2)
  7013. }
  7014. }
  7015. ee.WriteMapEnd()
  7016. }
  7017. func (e *Encoder) fastpathEncMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  7018. fastpathTV.EncMapUint16BoolV(rv2i(rv).(map[uint16]bool), e)
  7019. }
  7020. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, e *Encoder) {
  7021. if v == nil {
  7022. e.e.EncodeNil()
  7023. return
  7024. }
  7025. ee, esep := e.e, e.hh.hasElemSeparators()
  7026. ee.WriteMapStart(len(v))
  7027. if e.h.Canonical {
  7028. v2 := make([]uint64, len(v))
  7029. var i int
  7030. for k, _ := range v {
  7031. v2[i] = uint64(k)
  7032. i++
  7033. }
  7034. sort.Sort(uintSlice(v2))
  7035. for _, k2 := range v2 {
  7036. if esep {
  7037. ee.WriteMapElemKey()
  7038. }
  7039. ee.EncodeUint(uint64(uint16(k2)))
  7040. if esep {
  7041. ee.WriteMapElemValue()
  7042. }
  7043. ee.EncodeBool(v[uint16(k2)])
  7044. }
  7045. } else {
  7046. for k2, v2 := range v {
  7047. if esep {
  7048. ee.WriteMapElemKey()
  7049. }
  7050. ee.EncodeUint(uint64(k2))
  7051. if esep {
  7052. ee.WriteMapElemValue()
  7053. }
  7054. ee.EncodeBool(v2)
  7055. }
  7056. }
  7057. ee.WriteMapEnd()
  7058. }
  7059. func (e *Encoder) fastpathEncMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  7060. fastpathTV.EncMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), e)
  7061. }
  7062. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, e *Encoder) {
  7063. if v == nil {
  7064. e.e.EncodeNil()
  7065. return
  7066. }
  7067. ee, esep := e.e, e.hh.hasElemSeparators()
  7068. ee.WriteMapStart(len(v))
  7069. if e.h.Canonical {
  7070. v2 := make([]uint64, len(v))
  7071. var i int
  7072. for k, _ := range v {
  7073. v2[i] = uint64(k)
  7074. i++
  7075. }
  7076. sort.Sort(uintSlice(v2))
  7077. for _, k2 := range v2 {
  7078. if esep {
  7079. ee.WriteMapElemKey()
  7080. }
  7081. ee.EncodeUint(uint64(uint32(k2)))
  7082. if esep {
  7083. ee.WriteMapElemValue()
  7084. }
  7085. e.encode(v[uint32(k2)])
  7086. }
  7087. } else {
  7088. for k2, v2 := range v {
  7089. if esep {
  7090. ee.WriteMapElemKey()
  7091. }
  7092. ee.EncodeUint(uint64(k2))
  7093. if esep {
  7094. ee.WriteMapElemValue()
  7095. }
  7096. e.encode(v2)
  7097. }
  7098. }
  7099. ee.WriteMapEnd()
  7100. }
  7101. func (e *Encoder) fastpathEncMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  7102. fastpathTV.EncMapUint32StringV(rv2i(rv).(map[uint32]string), e)
  7103. }
  7104. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, e *Encoder) {
  7105. if v == nil {
  7106. e.e.EncodeNil()
  7107. return
  7108. }
  7109. ee, esep := e.e, e.hh.hasElemSeparators()
  7110. ee.WriteMapStart(len(v))
  7111. if e.h.Canonical {
  7112. v2 := make([]uint64, len(v))
  7113. var i int
  7114. for k, _ := range v {
  7115. v2[i] = uint64(k)
  7116. i++
  7117. }
  7118. sort.Sort(uintSlice(v2))
  7119. for _, k2 := range v2 {
  7120. if esep {
  7121. ee.WriteMapElemKey()
  7122. }
  7123. ee.EncodeUint(uint64(uint32(k2)))
  7124. if esep {
  7125. ee.WriteMapElemValue()
  7126. }
  7127. ee.EncodeString(cUTF8, v[uint32(k2)])
  7128. }
  7129. } else {
  7130. for k2, v2 := range v {
  7131. if esep {
  7132. ee.WriteMapElemKey()
  7133. }
  7134. ee.EncodeUint(uint64(k2))
  7135. if esep {
  7136. ee.WriteMapElemValue()
  7137. }
  7138. ee.EncodeString(cUTF8, v2)
  7139. }
  7140. }
  7141. ee.WriteMapEnd()
  7142. }
  7143. func (e *Encoder) fastpathEncMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  7144. fastpathTV.EncMapUint32UintV(rv2i(rv).(map[uint32]uint), e)
  7145. }
  7146. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, e *Encoder) {
  7147. if v == nil {
  7148. e.e.EncodeNil()
  7149. return
  7150. }
  7151. ee, esep := e.e, e.hh.hasElemSeparators()
  7152. ee.WriteMapStart(len(v))
  7153. if e.h.Canonical {
  7154. v2 := make([]uint64, len(v))
  7155. var i int
  7156. for k, _ := range v {
  7157. v2[i] = uint64(k)
  7158. i++
  7159. }
  7160. sort.Sort(uintSlice(v2))
  7161. for _, k2 := range v2 {
  7162. if esep {
  7163. ee.WriteMapElemKey()
  7164. }
  7165. ee.EncodeUint(uint64(uint32(k2)))
  7166. if esep {
  7167. ee.WriteMapElemValue()
  7168. }
  7169. ee.EncodeUint(uint64(v[uint32(k2)]))
  7170. }
  7171. } else {
  7172. for k2, v2 := range v {
  7173. if esep {
  7174. ee.WriteMapElemKey()
  7175. }
  7176. ee.EncodeUint(uint64(k2))
  7177. if esep {
  7178. ee.WriteMapElemValue()
  7179. }
  7180. ee.EncodeUint(uint64(v2))
  7181. }
  7182. }
  7183. ee.WriteMapEnd()
  7184. }
  7185. func (e *Encoder) fastpathEncMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  7186. fastpathTV.EncMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), e)
  7187. }
  7188. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, e *Encoder) {
  7189. if v == nil {
  7190. e.e.EncodeNil()
  7191. return
  7192. }
  7193. ee, esep := e.e, e.hh.hasElemSeparators()
  7194. ee.WriteMapStart(len(v))
  7195. if e.h.Canonical {
  7196. v2 := make([]uint64, len(v))
  7197. var i int
  7198. for k, _ := range v {
  7199. v2[i] = uint64(k)
  7200. i++
  7201. }
  7202. sort.Sort(uintSlice(v2))
  7203. for _, k2 := range v2 {
  7204. if esep {
  7205. ee.WriteMapElemKey()
  7206. }
  7207. ee.EncodeUint(uint64(uint32(k2)))
  7208. if esep {
  7209. ee.WriteMapElemValue()
  7210. }
  7211. ee.EncodeUint(uint64(v[uint32(k2)]))
  7212. }
  7213. } else {
  7214. for k2, v2 := range v {
  7215. if esep {
  7216. ee.WriteMapElemKey()
  7217. }
  7218. ee.EncodeUint(uint64(k2))
  7219. if esep {
  7220. ee.WriteMapElemValue()
  7221. }
  7222. ee.EncodeUint(uint64(v2))
  7223. }
  7224. }
  7225. ee.WriteMapEnd()
  7226. }
  7227. func (e *Encoder) fastpathEncMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  7228. fastpathTV.EncMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), e)
  7229. }
  7230. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, e *Encoder) {
  7231. if v == nil {
  7232. e.e.EncodeNil()
  7233. return
  7234. }
  7235. ee, esep := e.e, e.hh.hasElemSeparators()
  7236. ee.WriteMapStart(len(v))
  7237. if e.h.Canonical {
  7238. v2 := make([]uint64, len(v))
  7239. var i int
  7240. for k, _ := range v {
  7241. v2[i] = uint64(k)
  7242. i++
  7243. }
  7244. sort.Sort(uintSlice(v2))
  7245. for _, k2 := range v2 {
  7246. if esep {
  7247. ee.WriteMapElemKey()
  7248. }
  7249. ee.EncodeUint(uint64(uint32(k2)))
  7250. if esep {
  7251. ee.WriteMapElemValue()
  7252. }
  7253. ee.EncodeUint(uint64(v[uint32(k2)]))
  7254. }
  7255. } else {
  7256. for k2, v2 := range v {
  7257. if esep {
  7258. ee.WriteMapElemKey()
  7259. }
  7260. ee.EncodeUint(uint64(k2))
  7261. if esep {
  7262. ee.WriteMapElemValue()
  7263. }
  7264. ee.EncodeUint(uint64(v2))
  7265. }
  7266. }
  7267. ee.WriteMapEnd()
  7268. }
  7269. func (e *Encoder) fastpathEncMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  7270. fastpathTV.EncMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), e)
  7271. }
  7272. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, e *Encoder) {
  7273. if v == nil {
  7274. e.e.EncodeNil()
  7275. return
  7276. }
  7277. ee, esep := e.e, e.hh.hasElemSeparators()
  7278. ee.WriteMapStart(len(v))
  7279. if e.h.Canonical {
  7280. v2 := make([]uint64, len(v))
  7281. var i int
  7282. for k, _ := range v {
  7283. v2[i] = uint64(k)
  7284. i++
  7285. }
  7286. sort.Sort(uintSlice(v2))
  7287. for _, k2 := range v2 {
  7288. if esep {
  7289. ee.WriteMapElemKey()
  7290. }
  7291. ee.EncodeUint(uint64(uint32(k2)))
  7292. if esep {
  7293. ee.WriteMapElemValue()
  7294. }
  7295. ee.EncodeUint(uint64(v[uint32(k2)]))
  7296. }
  7297. } else {
  7298. for k2, v2 := range v {
  7299. if esep {
  7300. ee.WriteMapElemKey()
  7301. }
  7302. ee.EncodeUint(uint64(k2))
  7303. if esep {
  7304. ee.WriteMapElemValue()
  7305. }
  7306. ee.EncodeUint(uint64(v2))
  7307. }
  7308. }
  7309. ee.WriteMapEnd()
  7310. }
  7311. func (e *Encoder) fastpathEncMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  7312. fastpathTV.EncMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), e)
  7313. }
  7314. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, e *Encoder) {
  7315. if v == nil {
  7316. e.e.EncodeNil()
  7317. return
  7318. }
  7319. ee, esep := e.e, e.hh.hasElemSeparators()
  7320. ee.WriteMapStart(len(v))
  7321. if e.h.Canonical {
  7322. v2 := make([]uint64, len(v))
  7323. var i int
  7324. for k, _ := range v {
  7325. v2[i] = uint64(k)
  7326. i++
  7327. }
  7328. sort.Sort(uintSlice(v2))
  7329. for _, k2 := range v2 {
  7330. if esep {
  7331. ee.WriteMapElemKey()
  7332. }
  7333. ee.EncodeUint(uint64(uint32(k2)))
  7334. if esep {
  7335. ee.WriteMapElemValue()
  7336. }
  7337. ee.EncodeUint(uint64(v[uint32(k2)]))
  7338. }
  7339. } else {
  7340. for k2, v2 := range v {
  7341. if esep {
  7342. ee.WriteMapElemKey()
  7343. }
  7344. ee.EncodeUint(uint64(k2))
  7345. if esep {
  7346. ee.WriteMapElemValue()
  7347. }
  7348. ee.EncodeUint(uint64(v2))
  7349. }
  7350. }
  7351. ee.WriteMapEnd()
  7352. }
  7353. func (e *Encoder) fastpathEncMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  7354. fastpathTV.EncMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), e)
  7355. }
  7356. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, e *Encoder) {
  7357. if v == nil {
  7358. e.e.EncodeNil()
  7359. return
  7360. }
  7361. ee, esep := e.e, e.hh.hasElemSeparators()
  7362. ee.WriteMapStart(len(v))
  7363. if e.h.Canonical {
  7364. v2 := make([]uint64, len(v))
  7365. var i int
  7366. for k, _ := range v {
  7367. v2[i] = uint64(k)
  7368. i++
  7369. }
  7370. sort.Sort(uintSlice(v2))
  7371. for _, k2 := range v2 {
  7372. if esep {
  7373. ee.WriteMapElemKey()
  7374. }
  7375. ee.EncodeUint(uint64(uint32(k2)))
  7376. if esep {
  7377. ee.WriteMapElemValue()
  7378. }
  7379. e.encode(v[uint32(k2)])
  7380. }
  7381. } else {
  7382. for k2, v2 := range v {
  7383. if esep {
  7384. ee.WriteMapElemKey()
  7385. }
  7386. ee.EncodeUint(uint64(k2))
  7387. if esep {
  7388. ee.WriteMapElemValue()
  7389. }
  7390. e.encode(v2)
  7391. }
  7392. }
  7393. ee.WriteMapEnd()
  7394. }
  7395. func (e *Encoder) fastpathEncMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  7396. fastpathTV.EncMapUint32IntV(rv2i(rv).(map[uint32]int), e)
  7397. }
  7398. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, e *Encoder) {
  7399. if v == nil {
  7400. e.e.EncodeNil()
  7401. return
  7402. }
  7403. ee, esep := e.e, e.hh.hasElemSeparators()
  7404. ee.WriteMapStart(len(v))
  7405. if e.h.Canonical {
  7406. v2 := make([]uint64, len(v))
  7407. var i int
  7408. for k, _ := range v {
  7409. v2[i] = uint64(k)
  7410. i++
  7411. }
  7412. sort.Sort(uintSlice(v2))
  7413. for _, k2 := range v2 {
  7414. if esep {
  7415. ee.WriteMapElemKey()
  7416. }
  7417. ee.EncodeUint(uint64(uint32(k2)))
  7418. if esep {
  7419. ee.WriteMapElemValue()
  7420. }
  7421. ee.EncodeInt(int64(v[uint32(k2)]))
  7422. }
  7423. } else {
  7424. for k2, v2 := range v {
  7425. if esep {
  7426. ee.WriteMapElemKey()
  7427. }
  7428. ee.EncodeUint(uint64(k2))
  7429. if esep {
  7430. ee.WriteMapElemValue()
  7431. }
  7432. ee.EncodeInt(int64(v2))
  7433. }
  7434. }
  7435. ee.WriteMapEnd()
  7436. }
  7437. func (e *Encoder) fastpathEncMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  7438. fastpathTV.EncMapUint32Int8V(rv2i(rv).(map[uint32]int8), e)
  7439. }
  7440. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, e *Encoder) {
  7441. if v == nil {
  7442. e.e.EncodeNil()
  7443. return
  7444. }
  7445. ee, esep := e.e, e.hh.hasElemSeparators()
  7446. ee.WriteMapStart(len(v))
  7447. if e.h.Canonical {
  7448. v2 := make([]uint64, len(v))
  7449. var i int
  7450. for k, _ := range v {
  7451. v2[i] = uint64(k)
  7452. i++
  7453. }
  7454. sort.Sort(uintSlice(v2))
  7455. for _, k2 := range v2 {
  7456. if esep {
  7457. ee.WriteMapElemKey()
  7458. }
  7459. ee.EncodeUint(uint64(uint32(k2)))
  7460. if esep {
  7461. ee.WriteMapElemValue()
  7462. }
  7463. ee.EncodeInt(int64(v[uint32(k2)]))
  7464. }
  7465. } else {
  7466. for k2, v2 := range v {
  7467. if esep {
  7468. ee.WriteMapElemKey()
  7469. }
  7470. ee.EncodeUint(uint64(k2))
  7471. if esep {
  7472. ee.WriteMapElemValue()
  7473. }
  7474. ee.EncodeInt(int64(v2))
  7475. }
  7476. }
  7477. ee.WriteMapEnd()
  7478. }
  7479. func (e *Encoder) fastpathEncMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  7480. fastpathTV.EncMapUint32Int16V(rv2i(rv).(map[uint32]int16), e)
  7481. }
  7482. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, e *Encoder) {
  7483. if v == nil {
  7484. e.e.EncodeNil()
  7485. return
  7486. }
  7487. ee, esep := e.e, e.hh.hasElemSeparators()
  7488. ee.WriteMapStart(len(v))
  7489. if e.h.Canonical {
  7490. v2 := make([]uint64, len(v))
  7491. var i int
  7492. for k, _ := range v {
  7493. v2[i] = uint64(k)
  7494. i++
  7495. }
  7496. sort.Sort(uintSlice(v2))
  7497. for _, k2 := range v2 {
  7498. if esep {
  7499. ee.WriteMapElemKey()
  7500. }
  7501. ee.EncodeUint(uint64(uint32(k2)))
  7502. if esep {
  7503. ee.WriteMapElemValue()
  7504. }
  7505. ee.EncodeInt(int64(v[uint32(k2)]))
  7506. }
  7507. } else {
  7508. for k2, v2 := range v {
  7509. if esep {
  7510. ee.WriteMapElemKey()
  7511. }
  7512. ee.EncodeUint(uint64(k2))
  7513. if esep {
  7514. ee.WriteMapElemValue()
  7515. }
  7516. ee.EncodeInt(int64(v2))
  7517. }
  7518. }
  7519. ee.WriteMapEnd()
  7520. }
  7521. func (e *Encoder) fastpathEncMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  7522. fastpathTV.EncMapUint32Int32V(rv2i(rv).(map[uint32]int32), e)
  7523. }
  7524. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, e *Encoder) {
  7525. if v == nil {
  7526. e.e.EncodeNil()
  7527. return
  7528. }
  7529. ee, esep := e.e, e.hh.hasElemSeparators()
  7530. ee.WriteMapStart(len(v))
  7531. if e.h.Canonical {
  7532. v2 := make([]uint64, len(v))
  7533. var i int
  7534. for k, _ := range v {
  7535. v2[i] = uint64(k)
  7536. i++
  7537. }
  7538. sort.Sort(uintSlice(v2))
  7539. for _, k2 := range v2 {
  7540. if esep {
  7541. ee.WriteMapElemKey()
  7542. }
  7543. ee.EncodeUint(uint64(uint32(k2)))
  7544. if esep {
  7545. ee.WriteMapElemValue()
  7546. }
  7547. ee.EncodeInt(int64(v[uint32(k2)]))
  7548. }
  7549. } else {
  7550. for k2, v2 := range v {
  7551. if esep {
  7552. ee.WriteMapElemKey()
  7553. }
  7554. ee.EncodeUint(uint64(k2))
  7555. if esep {
  7556. ee.WriteMapElemValue()
  7557. }
  7558. ee.EncodeInt(int64(v2))
  7559. }
  7560. }
  7561. ee.WriteMapEnd()
  7562. }
  7563. func (e *Encoder) fastpathEncMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  7564. fastpathTV.EncMapUint32Int64V(rv2i(rv).(map[uint32]int64), e)
  7565. }
  7566. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, e *Encoder) {
  7567. if v == nil {
  7568. e.e.EncodeNil()
  7569. return
  7570. }
  7571. ee, esep := e.e, e.hh.hasElemSeparators()
  7572. ee.WriteMapStart(len(v))
  7573. if e.h.Canonical {
  7574. v2 := make([]uint64, len(v))
  7575. var i int
  7576. for k, _ := range v {
  7577. v2[i] = uint64(k)
  7578. i++
  7579. }
  7580. sort.Sort(uintSlice(v2))
  7581. for _, k2 := range v2 {
  7582. if esep {
  7583. ee.WriteMapElemKey()
  7584. }
  7585. ee.EncodeUint(uint64(uint32(k2)))
  7586. if esep {
  7587. ee.WriteMapElemValue()
  7588. }
  7589. ee.EncodeInt(int64(v[uint32(k2)]))
  7590. }
  7591. } else {
  7592. for k2, v2 := range v {
  7593. if esep {
  7594. ee.WriteMapElemKey()
  7595. }
  7596. ee.EncodeUint(uint64(k2))
  7597. if esep {
  7598. ee.WriteMapElemValue()
  7599. }
  7600. ee.EncodeInt(int64(v2))
  7601. }
  7602. }
  7603. ee.WriteMapEnd()
  7604. }
  7605. func (e *Encoder) fastpathEncMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  7606. fastpathTV.EncMapUint32Float32V(rv2i(rv).(map[uint32]float32), e)
  7607. }
  7608. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, e *Encoder) {
  7609. if v == nil {
  7610. e.e.EncodeNil()
  7611. return
  7612. }
  7613. ee, esep := e.e, e.hh.hasElemSeparators()
  7614. ee.WriteMapStart(len(v))
  7615. if e.h.Canonical {
  7616. v2 := make([]uint64, len(v))
  7617. var i int
  7618. for k, _ := range v {
  7619. v2[i] = uint64(k)
  7620. i++
  7621. }
  7622. sort.Sort(uintSlice(v2))
  7623. for _, k2 := range v2 {
  7624. if esep {
  7625. ee.WriteMapElemKey()
  7626. }
  7627. ee.EncodeUint(uint64(uint32(k2)))
  7628. if esep {
  7629. ee.WriteMapElemValue()
  7630. }
  7631. ee.EncodeFloat32(v[uint32(k2)])
  7632. }
  7633. } else {
  7634. for k2, v2 := range v {
  7635. if esep {
  7636. ee.WriteMapElemKey()
  7637. }
  7638. ee.EncodeUint(uint64(k2))
  7639. if esep {
  7640. ee.WriteMapElemValue()
  7641. }
  7642. ee.EncodeFloat32(v2)
  7643. }
  7644. }
  7645. ee.WriteMapEnd()
  7646. }
  7647. func (e *Encoder) fastpathEncMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  7648. fastpathTV.EncMapUint32Float64V(rv2i(rv).(map[uint32]float64), e)
  7649. }
  7650. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, e *Encoder) {
  7651. if v == nil {
  7652. e.e.EncodeNil()
  7653. return
  7654. }
  7655. ee, esep := e.e, e.hh.hasElemSeparators()
  7656. ee.WriteMapStart(len(v))
  7657. if e.h.Canonical {
  7658. v2 := make([]uint64, len(v))
  7659. var i int
  7660. for k, _ := range v {
  7661. v2[i] = uint64(k)
  7662. i++
  7663. }
  7664. sort.Sort(uintSlice(v2))
  7665. for _, k2 := range v2 {
  7666. if esep {
  7667. ee.WriteMapElemKey()
  7668. }
  7669. ee.EncodeUint(uint64(uint32(k2)))
  7670. if esep {
  7671. ee.WriteMapElemValue()
  7672. }
  7673. ee.EncodeFloat64(v[uint32(k2)])
  7674. }
  7675. } else {
  7676. for k2, v2 := range v {
  7677. if esep {
  7678. ee.WriteMapElemKey()
  7679. }
  7680. ee.EncodeUint(uint64(k2))
  7681. if esep {
  7682. ee.WriteMapElemValue()
  7683. }
  7684. ee.EncodeFloat64(v2)
  7685. }
  7686. }
  7687. ee.WriteMapEnd()
  7688. }
  7689. func (e *Encoder) fastpathEncMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  7690. fastpathTV.EncMapUint32BoolV(rv2i(rv).(map[uint32]bool), e)
  7691. }
  7692. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, e *Encoder) {
  7693. if v == nil {
  7694. e.e.EncodeNil()
  7695. return
  7696. }
  7697. ee, esep := e.e, e.hh.hasElemSeparators()
  7698. ee.WriteMapStart(len(v))
  7699. if e.h.Canonical {
  7700. v2 := make([]uint64, len(v))
  7701. var i int
  7702. for k, _ := range v {
  7703. v2[i] = uint64(k)
  7704. i++
  7705. }
  7706. sort.Sort(uintSlice(v2))
  7707. for _, k2 := range v2 {
  7708. if esep {
  7709. ee.WriteMapElemKey()
  7710. }
  7711. ee.EncodeUint(uint64(uint32(k2)))
  7712. if esep {
  7713. ee.WriteMapElemValue()
  7714. }
  7715. ee.EncodeBool(v[uint32(k2)])
  7716. }
  7717. } else {
  7718. for k2, v2 := range v {
  7719. if esep {
  7720. ee.WriteMapElemKey()
  7721. }
  7722. ee.EncodeUint(uint64(k2))
  7723. if esep {
  7724. ee.WriteMapElemValue()
  7725. }
  7726. ee.EncodeBool(v2)
  7727. }
  7728. }
  7729. ee.WriteMapEnd()
  7730. }
  7731. func (e *Encoder) fastpathEncMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  7732. fastpathTV.EncMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), e)
  7733. }
  7734. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, e *Encoder) {
  7735. if v == nil {
  7736. e.e.EncodeNil()
  7737. return
  7738. }
  7739. ee, esep := e.e, e.hh.hasElemSeparators()
  7740. ee.WriteMapStart(len(v))
  7741. if e.h.Canonical {
  7742. v2 := make([]uint64, len(v))
  7743. var i int
  7744. for k, _ := range v {
  7745. v2[i] = uint64(k)
  7746. i++
  7747. }
  7748. sort.Sort(uintSlice(v2))
  7749. for _, k2 := range v2 {
  7750. if esep {
  7751. ee.WriteMapElemKey()
  7752. }
  7753. ee.EncodeUint(uint64(uint64(k2)))
  7754. if esep {
  7755. ee.WriteMapElemValue()
  7756. }
  7757. e.encode(v[uint64(k2)])
  7758. }
  7759. } else {
  7760. for k2, v2 := range v {
  7761. if esep {
  7762. ee.WriteMapElemKey()
  7763. }
  7764. ee.EncodeUint(uint64(k2))
  7765. if esep {
  7766. ee.WriteMapElemValue()
  7767. }
  7768. e.encode(v2)
  7769. }
  7770. }
  7771. ee.WriteMapEnd()
  7772. }
  7773. func (e *Encoder) fastpathEncMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  7774. fastpathTV.EncMapUint64StringV(rv2i(rv).(map[uint64]string), e)
  7775. }
  7776. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, e *Encoder) {
  7777. if v == nil {
  7778. e.e.EncodeNil()
  7779. return
  7780. }
  7781. ee, esep := e.e, e.hh.hasElemSeparators()
  7782. ee.WriteMapStart(len(v))
  7783. if e.h.Canonical {
  7784. v2 := make([]uint64, len(v))
  7785. var i int
  7786. for k, _ := range v {
  7787. v2[i] = uint64(k)
  7788. i++
  7789. }
  7790. sort.Sort(uintSlice(v2))
  7791. for _, k2 := range v2 {
  7792. if esep {
  7793. ee.WriteMapElemKey()
  7794. }
  7795. ee.EncodeUint(uint64(uint64(k2)))
  7796. if esep {
  7797. ee.WriteMapElemValue()
  7798. }
  7799. ee.EncodeString(cUTF8, v[uint64(k2)])
  7800. }
  7801. } else {
  7802. for k2, v2 := range v {
  7803. if esep {
  7804. ee.WriteMapElemKey()
  7805. }
  7806. ee.EncodeUint(uint64(k2))
  7807. if esep {
  7808. ee.WriteMapElemValue()
  7809. }
  7810. ee.EncodeString(cUTF8, v2)
  7811. }
  7812. }
  7813. ee.WriteMapEnd()
  7814. }
  7815. func (e *Encoder) fastpathEncMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  7816. fastpathTV.EncMapUint64UintV(rv2i(rv).(map[uint64]uint), e)
  7817. }
  7818. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, e *Encoder) {
  7819. if v == nil {
  7820. e.e.EncodeNil()
  7821. return
  7822. }
  7823. ee, esep := e.e, e.hh.hasElemSeparators()
  7824. ee.WriteMapStart(len(v))
  7825. if e.h.Canonical {
  7826. v2 := make([]uint64, len(v))
  7827. var i int
  7828. for k, _ := range v {
  7829. v2[i] = uint64(k)
  7830. i++
  7831. }
  7832. sort.Sort(uintSlice(v2))
  7833. for _, k2 := range v2 {
  7834. if esep {
  7835. ee.WriteMapElemKey()
  7836. }
  7837. ee.EncodeUint(uint64(uint64(k2)))
  7838. if esep {
  7839. ee.WriteMapElemValue()
  7840. }
  7841. ee.EncodeUint(uint64(v[uint64(k2)]))
  7842. }
  7843. } else {
  7844. for k2, v2 := range v {
  7845. if esep {
  7846. ee.WriteMapElemKey()
  7847. }
  7848. ee.EncodeUint(uint64(k2))
  7849. if esep {
  7850. ee.WriteMapElemValue()
  7851. }
  7852. ee.EncodeUint(uint64(v2))
  7853. }
  7854. }
  7855. ee.WriteMapEnd()
  7856. }
  7857. func (e *Encoder) fastpathEncMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  7858. fastpathTV.EncMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), e)
  7859. }
  7860. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, e *Encoder) {
  7861. if v == nil {
  7862. e.e.EncodeNil()
  7863. return
  7864. }
  7865. ee, esep := e.e, e.hh.hasElemSeparators()
  7866. ee.WriteMapStart(len(v))
  7867. if e.h.Canonical {
  7868. v2 := make([]uint64, len(v))
  7869. var i int
  7870. for k, _ := range v {
  7871. v2[i] = uint64(k)
  7872. i++
  7873. }
  7874. sort.Sort(uintSlice(v2))
  7875. for _, k2 := range v2 {
  7876. if esep {
  7877. ee.WriteMapElemKey()
  7878. }
  7879. ee.EncodeUint(uint64(uint64(k2)))
  7880. if esep {
  7881. ee.WriteMapElemValue()
  7882. }
  7883. ee.EncodeUint(uint64(v[uint64(k2)]))
  7884. }
  7885. } else {
  7886. for k2, v2 := range v {
  7887. if esep {
  7888. ee.WriteMapElemKey()
  7889. }
  7890. ee.EncodeUint(uint64(k2))
  7891. if esep {
  7892. ee.WriteMapElemValue()
  7893. }
  7894. ee.EncodeUint(uint64(v2))
  7895. }
  7896. }
  7897. ee.WriteMapEnd()
  7898. }
  7899. func (e *Encoder) fastpathEncMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  7900. fastpathTV.EncMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), e)
  7901. }
  7902. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, e *Encoder) {
  7903. if v == nil {
  7904. e.e.EncodeNil()
  7905. return
  7906. }
  7907. ee, esep := e.e, e.hh.hasElemSeparators()
  7908. ee.WriteMapStart(len(v))
  7909. if e.h.Canonical {
  7910. v2 := make([]uint64, len(v))
  7911. var i int
  7912. for k, _ := range v {
  7913. v2[i] = uint64(k)
  7914. i++
  7915. }
  7916. sort.Sort(uintSlice(v2))
  7917. for _, k2 := range v2 {
  7918. if esep {
  7919. ee.WriteMapElemKey()
  7920. }
  7921. ee.EncodeUint(uint64(uint64(k2)))
  7922. if esep {
  7923. ee.WriteMapElemValue()
  7924. }
  7925. ee.EncodeUint(uint64(v[uint64(k2)]))
  7926. }
  7927. } else {
  7928. for k2, v2 := range v {
  7929. if esep {
  7930. ee.WriteMapElemKey()
  7931. }
  7932. ee.EncodeUint(uint64(k2))
  7933. if esep {
  7934. ee.WriteMapElemValue()
  7935. }
  7936. ee.EncodeUint(uint64(v2))
  7937. }
  7938. }
  7939. ee.WriteMapEnd()
  7940. }
  7941. func (e *Encoder) fastpathEncMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  7942. fastpathTV.EncMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), e)
  7943. }
  7944. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, e *Encoder) {
  7945. if v == nil {
  7946. e.e.EncodeNil()
  7947. return
  7948. }
  7949. ee, esep := e.e, e.hh.hasElemSeparators()
  7950. ee.WriteMapStart(len(v))
  7951. if e.h.Canonical {
  7952. v2 := make([]uint64, len(v))
  7953. var i int
  7954. for k, _ := range v {
  7955. v2[i] = uint64(k)
  7956. i++
  7957. }
  7958. sort.Sort(uintSlice(v2))
  7959. for _, k2 := range v2 {
  7960. if esep {
  7961. ee.WriteMapElemKey()
  7962. }
  7963. ee.EncodeUint(uint64(uint64(k2)))
  7964. if esep {
  7965. ee.WriteMapElemValue()
  7966. }
  7967. ee.EncodeUint(uint64(v[uint64(k2)]))
  7968. }
  7969. } else {
  7970. for k2, v2 := range v {
  7971. if esep {
  7972. ee.WriteMapElemKey()
  7973. }
  7974. ee.EncodeUint(uint64(k2))
  7975. if esep {
  7976. ee.WriteMapElemValue()
  7977. }
  7978. ee.EncodeUint(uint64(v2))
  7979. }
  7980. }
  7981. ee.WriteMapEnd()
  7982. }
  7983. func (e *Encoder) fastpathEncMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  7984. fastpathTV.EncMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), e)
  7985. }
  7986. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, e *Encoder) {
  7987. if v == nil {
  7988. e.e.EncodeNil()
  7989. return
  7990. }
  7991. ee, esep := e.e, e.hh.hasElemSeparators()
  7992. ee.WriteMapStart(len(v))
  7993. if e.h.Canonical {
  7994. v2 := make([]uint64, len(v))
  7995. var i int
  7996. for k, _ := range v {
  7997. v2[i] = uint64(k)
  7998. i++
  7999. }
  8000. sort.Sort(uintSlice(v2))
  8001. for _, k2 := range v2 {
  8002. if esep {
  8003. ee.WriteMapElemKey()
  8004. }
  8005. ee.EncodeUint(uint64(uint64(k2)))
  8006. if esep {
  8007. ee.WriteMapElemValue()
  8008. }
  8009. ee.EncodeUint(uint64(v[uint64(k2)]))
  8010. }
  8011. } else {
  8012. for k2, v2 := range v {
  8013. if esep {
  8014. ee.WriteMapElemKey()
  8015. }
  8016. ee.EncodeUint(uint64(k2))
  8017. if esep {
  8018. ee.WriteMapElemValue()
  8019. }
  8020. ee.EncodeUint(uint64(v2))
  8021. }
  8022. }
  8023. ee.WriteMapEnd()
  8024. }
  8025. func (e *Encoder) fastpathEncMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  8026. fastpathTV.EncMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), e)
  8027. }
  8028. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, e *Encoder) {
  8029. if v == nil {
  8030. e.e.EncodeNil()
  8031. return
  8032. }
  8033. ee, esep := e.e, e.hh.hasElemSeparators()
  8034. ee.WriteMapStart(len(v))
  8035. if e.h.Canonical {
  8036. v2 := make([]uint64, len(v))
  8037. var i int
  8038. for k, _ := range v {
  8039. v2[i] = uint64(k)
  8040. i++
  8041. }
  8042. sort.Sort(uintSlice(v2))
  8043. for _, k2 := range v2 {
  8044. if esep {
  8045. ee.WriteMapElemKey()
  8046. }
  8047. ee.EncodeUint(uint64(uint64(k2)))
  8048. if esep {
  8049. ee.WriteMapElemValue()
  8050. }
  8051. e.encode(v[uint64(k2)])
  8052. }
  8053. } else {
  8054. for k2, v2 := range v {
  8055. if esep {
  8056. ee.WriteMapElemKey()
  8057. }
  8058. ee.EncodeUint(uint64(k2))
  8059. if esep {
  8060. ee.WriteMapElemValue()
  8061. }
  8062. e.encode(v2)
  8063. }
  8064. }
  8065. ee.WriteMapEnd()
  8066. }
  8067. func (e *Encoder) fastpathEncMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  8068. fastpathTV.EncMapUint64IntV(rv2i(rv).(map[uint64]int), e)
  8069. }
  8070. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, e *Encoder) {
  8071. if v == nil {
  8072. e.e.EncodeNil()
  8073. return
  8074. }
  8075. ee, esep := e.e, e.hh.hasElemSeparators()
  8076. ee.WriteMapStart(len(v))
  8077. if e.h.Canonical {
  8078. v2 := make([]uint64, len(v))
  8079. var i int
  8080. for k, _ := range v {
  8081. v2[i] = uint64(k)
  8082. i++
  8083. }
  8084. sort.Sort(uintSlice(v2))
  8085. for _, k2 := range v2 {
  8086. if esep {
  8087. ee.WriteMapElemKey()
  8088. }
  8089. ee.EncodeUint(uint64(uint64(k2)))
  8090. if esep {
  8091. ee.WriteMapElemValue()
  8092. }
  8093. ee.EncodeInt(int64(v[uint64(k2)]))
  8094. }
  8095. } else {
  8096. for k2, v2 := range v {
  8097. if esep {
  8098. ee.WriteMapElemKey()
  8099. }
  8100. ee.EncodeUint(uint64(k2))
  8101. if esep {
  8102. ee.WriteMapElemValue()
  8103. }
  8104. ee.EncodeInt(int64(v2))
  8105. }
  8106. }
  8107. ee.WriteMapEnd()
  8108. }
  8109. func (e *Encoder) fastpathEncMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  8110. fastpathTV.EncMapUint64Int8V(rv2i(rv).(map[uint64]int8), e)
  8111. }
  8112. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, e *Encoder) {
  8113. if v == nil {
  8114. e.e.EncodeNil()
  8115. return
  8116. }
  8117. ee, esep := e.e, e.hh.hasElemSeparators()
  8118. ee.WriteMapStart(len(v))
  8119. if e.h.Canonical {
  8120. v2 := make([]uint64, len(v))
  8121. var i int
  8122. for k, _ := range v {
  8123. v2[i] = uint64(k)
  8124. i++
  8125. }
  8126. sort.Sort(uintSlice(v2))
  8127. for _, k2 := range v2 {
  8128. if esep {
  8129. ee.WriteMapElemKey()
  8130. }
  8131. ee.EncodeUint(uint64(uint64(k2)))
  8132. if esep {
  8133. ee.WriteMapElemValue()
  8134. }
  8135. ee.EncodeInt(int64(v[uint64(k2)]))
  8136. }
  8137. } else {
  8138. for k2, v2 := range v {
  8139. if esep {
  8140. ee.WriteMapElemKey()
  8141. }
  8142. ee.EncodeUint(uint64(k2))
  8143. if esep {
  8144. ee.WriteMapElemValue()
  8145. }
  8146. ee.EncodeInt(int64(v2))
  8147. }
  8148. }
  8149. ee.WriteMapEnd()
  8150. }
  8151. func (e *Encoder) fastpathEncMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  8152. fastpathTV.EncMapUint64Int16V(rv2i(rv).(map[uint64]int16), e)
  8153. }
  8154. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, e *Encoder) {
  8155. if v == nil {
  8156. e.e.EncodeNil()
  8157. return
  8158. }
  8159. ee, esep := e.e, e.hh.hasElemSeparators()
  8160. ee.WriteMapStart(len(v))
  8161. if e.h.Canonical {
  8162. v2 := make([]uint64, len(v))
  8163. var i int
  8164. for k, _ := range v {
  8165. v2[i] = uint64(k)
  8166. i++
  8167. }
  8168. sort.Sort(uintSlice(v2))
  8169. for _, k2 := range v2 {
  8170. if esep {
  8171. ee.WriteMapElemKey()
  8172. }
  8173. ee.EncodeUint(uint64(uint64(k2)))
  8174. if esep {
  8175. ee.WriteMapElemValue()
  8176. }
  8177. ee.EncodeInt(int64(v[uint64(k2)]))
  8178. }
  8179. } else {
  8180. for k2, v2 := range v {
  8181. if esep {
  8182. ee.WriteMapElemKey()
  8183. }
  8184. ee.EncodeUint(uint64(k2))
  8185. if esep {
  8186. ee.WriteMapElemValue()
  8187. }
  8188. ee.EncodeInt(int64(v2))
  8189. }
  8190. }
  8191. ee.WriteMapEnd()
  8192. }
  8193. func (e *Encoder) fastpathEncMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  8194. fastpathTV.EncMapUint64Int32V(rv2i(rv).(map[uint64]int32), e)
  8195. }
  8196. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, e *Encoder) {
  8197. if v == nil {
  8198. e.e.EncodeNil()
  8199. return
  8200. }
  8201. ee, esep := e.e, e.hh.hasElemSeparators()
  8202. ee.WriteMapStart(len(v))
  8203. if e.h.Canonical {
  8204. v2 := make([]uint64, len(v))
  8205. var i int
  8206. for k, _ := range v {
  8207. v2[i] = uint64(k)
  8208. i++
  8209. }
  8210. sort.Sort(uintSlice(v2))
  8211. for _, k2 := range v2 {
  8212. if esep {
  8213. ee.WriteMapElemKey()
  8214. }
  8215. ee.EncodeUint(uint64(uint64(k2)))
  8216. if esep {
  8217. ee.WriteMapElemValue()
  8218. }
  8219. ee.EncodeInt(int64(v[uint64(k2)]))
  8220. }
  8221. } else {
  8222. for k2, v2 := range v {
  8223. if esep {
  8224. ee.WriteMapElemKey()
  8225. }
  8226. ee.EncodeUint(uint64(k2))
  8227. if esep {
  8228. ee.WriteMapElemValue()
  8229. }
  8230. ee.EncodeInt(int64(v2))
  8231. }
  8232. }
  8233. ee.WriteMapEnd()
  8234. }
  8235. func (e *Encoder) fastpathEncMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  8236. fastpathTV.EncMapUint64Int64V(rv2i(rv).(map[uint64]int64), e)
  8237. }
  8238. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, e *Encoder) {
  8239. if v == nil {
  8240. e.e.EncodeNil()
  8241. return
  8242. }
  8243. ee, esep := e.e, e.hh.hasElemSeparators()
  8244. ee.WriteMapStart(len(v))
  8245. if e.h.Canonical {
  8246. v2 := make([]uint64, len(v))
  8247. var i int
  8248. for k, _ := range v {
  8249. v2[i] = uint64(k)
  8250. i++
  8251. }
  8252. sort.Sort(uintSlice(v2))
  8253. for _, k2 := range v2 {
  8254. if esep {
  8255. ee.WriteMapElemKey()
  8256. }
  8257. ee.EncodeUint(uint64(uint64(k2)))
  8258. if esep {
  8259. ee.WriteMapElemValue()
  8260. }
  8261. ee.EncodeInt(int64(v[uint64(k2)]))
  8262. }
  8263. } else {
  8264. for k2, v2 := range v {
  8265. if esep {
  8266. ee.WriteMapElemKey()
  8267. }
  8268. ee.EncodeUint(uint64(k2))
  8269. if esep {
  8270. ee.WriteMapElemValue()
  8271. }
  8272. ee.EncodeInt(int64(v2))
  8273. }
  8274. }
  8275. ee.WriteMapEnd()
  8276. }
  8277. func (e *Encoder) fastpathEncMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  8278. fastpathTV.EncMapUint64Float32V(rv2i(rv).(map[uint64]float32), e)
  8279. }
  8280. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, e *Encoder) {
  8281. if v == nil {
  8282. e.e.EncodeNil()
  8283. return
  8284. }
  8285. ee, esep := e.e, e.hh.hasElemSeparators()
  8286. ee.WriteMapStart(len(v))
  8287. if e.h.Canonical {
  8288. v2 := make([]uint64, len(v))
  8289. var i int
  8290. for k, _ := range v {
  8291. v2[i] = uint64(k)
  8292. i++
  8293. }
  8294. sort.Sort(uintSlice(v2))
  8295. for _, k2 := range v2 {
  8296. if esep {
  8297. ee.WriteMapElemKey()
  8298. }
  8299. ee.EncodeUint(uint64(uint64(k2)))
  8300. if esep {
  8301. ee.WriteMapElemValue()
  8302. }
  8303. ee.EncodeFloat32(v[uint64(k2)])
  8304. }
  8305. } else {
  8306. for k2, v2 := range v {
  8307. if esep {
  8308. ee.WriteMapElemKey()
  8309. }
  8310. ee.EncodeUint(uint64(k2))
  8311. if esep {
  8312. ee.WriteMapElemValue()
  8313. }
  8314. ee.EncodeFloat32(v2)
  8315. }
  8316. }
  8317. ee.WriteMapEnd()
  8318. }
  8319. func (e *Encoder) fastpathEncMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  8320. fastpathTV.EncMapUint64Float64V(rv2i(rv).(map[uint64]float64), e)
  8321. }
  8322. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, e *Encoder) {
  8323. if v == nil {
  8324. e.e.EncodeNil()
  8325. return
  8326. }
  8327. ee, esep := e.e, e.hh.hasElemSeparators()
  8328. ee.WriteMapStart(len(v))
  8329. if e.h.Canonical {
  8330. v2 := make([]uint64, len(v))
  8331. var i int
  8332. for k, _ := range v {
  8333. v2[i] = uint64(k)
  8334. i++
  8335. }
  8336. sort.Sort(uintSlice(v2))
  8337. for _, k2 := range v2 {
  8338. if esep {
  8339. ee.WriteMapElemKey()
  8340. }
  8341. ee.EncodeUint(uint64(uint64(k2)))
  8342. if esep {
  8343. ee.WriteMapElemValue()
  8344. }
  8345. ee.EncodeFloat64(v[uint64(k2)])
  8346. }
  8347. } else {
  8348. for k2, v2 := range v {
  8349. if esep {
  8350. ee.WriteMapElemKey()
  8351. }
  8352. ee.EncodeUint(uint64(k2))
  8353. if esep {
  8354. ee.WriteMapElemValue()
  8355. }
  8356. ee.EncodeFloat64(v2)
  8357. }
  8358. }
  8359. ee.WriteMapEnd()
  8360. }
  8361. func (e *Encoder) fastpathEncMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  8362. fastpathTV.EncMapUint64BoolV(rv2i(rv).(map[uint64]bool), e)
  8363. }
  8364. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, e *Encoder) {
  8365. if v == nil {
  8366. e.e.EncodeNil()
  8367. return
  8368. }
  8369. ee, esep := e.e, e.hh.hasElemSeparators()
  8370. ee.WriteMapStart(len(v))
  8371. if e.h.Canonical {
  8372. v2 := make([]uint64, len(v))
  8373. var i int
  8374. for k, _ := range v {
  8375. v2[i] = uint64(k)
  8376. i++
  8377. }
  8378. sort.Sort(uintSlice(v2))
  8379. for _, k2 := range v2 {
  8380. if esep {
  8381. ee.WriteMapElemKey()
  8382. }
  8383. ee.EncodeUint(uint64(uint64(k2)))
  8384. if esep {
  8385. ee.WriteMapElemValue()
  8386. }
  8387. ee.EncodeBool(v[uint64(k2)])
  8388. }
  8389. } else {
  8390. for k2, v2 := range v {
  8391. if esep {
  8392. ee.WriteMapElemKey()
  8393. }
  8394. ee.EncodeUint(uint64(k2))
  8395. if esep {
  8396. ee.WriteMapElemValue()
  8397. }
  8398. ee.EncodeBool(v2)
  8399. }
  8400. }
  8401. ee.WriteMapEnd()
  8402. }
  8403. func (e *Encoder) fastpathEncMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  8404. fastpathTV.EncMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), e)
  8405. }
  8406. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, e *Encoder) {
  8407. if v == nil {
  8408. e.e.EncodeNil()
  8409. return
  8410. }
  8411. ee, esep := e.e, e.hh.hasElemSeparators()
  8412. ee.WriteMapStart(len(v))
  8413. if e.h.Canonical {
  8414. v2 := make([]uint64, len(v))
  8415. var i int
  8416. for k, _ := range v {
  8417. v2[i] = uint64(k)
  8418. i++
  8419. }
  8420. sort.Sort(uintSlice(v2))
  8421. for _, k2 := range v2 {
  8422. if esep {
  8423. ee.WriteMapElemKey()
  8424. }
  8425. e.encode(uintptr(k2))
  8426. if esep {
  8427. ee.WriteMapElemValue()
  8428. }
  8429. e.encode(v[uintptr(k2)])
  8430. }
  8431. } else {
  8432. for k2, v2 := range v {
  8433. if esep {
  8434. ee.WriteMapElemKey()
  8435. }
  8436. e.encode(k2)
  8437. if esep {
  8438. ee.WriteMapElemValue()
  8439. }
  8440. e.encode(v2)
  8441. }
  8442. }
  8443. ee.WriteMapEnd()
  8444. }
  8445. func (e *Encoder) fastpathEncMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  8446. fastpathTV.EncMapUintptrStringV(rv2i(rv).(map[uintptr]string), e)
  8447. }
  8448. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, e *Encoder) {
  8449. if v == nil {
  8450. e.e.EncodeNil()
  8451. return
  8452. }
  8453. ee, esep := e.e, e.hh.hasElemSeparators()
  8454. ee.WriteMapStart(len(v))
  8455. if e.h.Canonical {
  8456. v2 := make([]uint64, len(v))
  8457. var i int
  8458. for k, _ := range v {
  8459. v2[i] = uint64(k)
  8460. i++
  8461. }
  8462. sort.Sort(uintSlice(v2))
  8463. for _, k2 := range v2 {
  8464. if esep {
  8465. ee.WriteMapElemKey()
  8466. }
  8467. e.encode(uintptr(k2))
  8468. if esep {
  8469. ee.WriteMapElemValue()
  8470. }
  8471. ee.EncodeString(cUTF8, v[uintptr(k2)])
  8472. }
  8473. } else {
  8474. for k2, v2 := range v {
  8475. if esep {
  8476. ee.WriteMapElemKey()
  8477. }
  8478. e.encode(k2)
  8479. if esep {
  8480. ee.WriteMapElemValue()
  8481. }
  8482. ee.EncodeString(cUTF8, v2)
  8483. }
  8484. }
  8485. ee.WriteMapEnd()
  8486. }
  8487. func (e *Encoder) fastpathEncMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  8488. fastpathTV.EncMapUintptrUintV(rv2i(rv).(map[uintptr]uint), e)
  8489. }
  8490. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, e *Encoder) {
  8491. if v == nil {
  8492. e.e.EncodeNil()
  8493. return
  8494. }
  8495. ee, esep := e.e, e.hh.hasElemSeparators()
  8496. ee.WriteMapStart(len(v))
  8497. if e.h.Canonical {
  8498. v2 := make([]uint64, len(v))
  8499. var i int
  8500. for k, _ := range v {
  8501. v2[i] = uint64(k)
  8502. i++
  8503. }
  8504. sort.Sort(uintSlice(v2))
  8505. for _, k2 := range v2 {
  8506. if esep {
  8507. ee.WriteMapElemKey()
  8508. }
  8509. e.encode(uintptr(k2))
  8510. if esep {
  8511. ee.WriteMapElemValue()
  8512. }
  8513. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8514. }
  8515. } else {
  8516. for k2, v2 := range v {
  8517. if esep {
  8518. ee.WriteMapElemKey()
  8519. }
  8520. e.encode(k2)
  8521. if esep {
  8522. ee.WriteMapElemValue()
  8523. }
  8524. ee.EncodeUint(uint64(v2))
  8525. }
  8526. }
  8527. ee.WriteMapEnd()
  8528. }
  8529. func (e *Encoder) fastpathEncMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  8530. fastpathTV.EncMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), e)
  8531. }
  8532. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, e *Encoder) {
  8533. if v == nil {
  8534. e.e.EncodeNil()
  8535. return
  8536. }
  8537. ee, esep := e.e, e.hh.hasElemSeparators()
  8538. ee.WriteMapStart(len(v))
  8539. if e.h.Canonical {
  8540. v2 := make([]uint64, len(v))
  8541. var i int
  8542. for k, _ := range v {
  8543. v2[i] = uint64(k)
  8544. i++
  8545. }
  8546. sort.Sort(uintSlice(v2))
  8547. for _, k2 := range v2 {
  8548. if esep {
  8549. ee.WriteMapElemKey()
  8550. }
  8551. e.encode(uintptr(k2))
  8552. if esep {
  8553. ee.WriteMapElemValue()
  8554. }
  8555. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8556. }
  8557. } else {
  8558. for k2, v2 := range v {
  8559. if esep {
  8560. ee.WriteMapElemKey()
  8561. }
  8562. e.encode(k2)
  8563. if esep {
  8564. ee.WriteMapElemValue()
  8565. }
  8566. ee.EncodeUint(uint64(v2))
  8567. }
  8568. }
  8569. ee.WriteMapEnd()
  8570. }
  8571. func (e *Encoder) fastpathEncMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  8572. fastpathTV.EncMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), e)
  8573. }
  8574. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, e *Encoder) {
  8575. if v == nil {
  8576. e.e.EncodeNil()
  8577. return
  8578. }
  8579. ee, esep := e.e, e.hh.hasElemSeparators()
  8580. ee.WriteMapStart(len(v))
  8581. if e.h.Canonical {
  8582. v2 := make([]uint64, len(v))
  8583. var i int
  8584. for k, _ := range v {
  8585. v2[i] = uint64(k)
  8586. i++
  8587. }
  8588. sort.Sort(uintSlice(v2))
  8589. for _, k2 := range v2 {
  8590. if esep {
  8591. ee.WriteMapElemKey()
  8592. }
  8593. e.encode(uintptr(k2))
  8594. if esep {
  8595. ee.WriteMapElemValue()
  8596. }
  8597. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8598. }
  8599. } else {
  8600. for k2, v2 := range v {
  8601. if esep {
  8602. ee.WriteMapElemKey()
  8603. }
  8604. e.encode(k2)
  8605. if esep {
  8606. ee.WriteMapElemValue()
  8607. }
  8608. ee.EncodeUint(uint64(v2))
  8609. }
  8610. }
  8611. ee.WriteMapEnd()
  8612. }
  8613. func (e *Encoder) fastpathEncMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  8614. fastpathTV.EncMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), e)
  8615. }
  8616. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, e *Encoder) {
  8617. if v == nil {
  8618. e.e.EncodeNil()
  8619. return
  8620. }
  8621. ee, esep := e.e, e.hh.hasElemSeparators()
  8622. ee.WriteMapStart(len(v))
  8623. if e.h.Canonical {
  8624. v2 := make([]uint64, len(v))
  8625. var i int
  8626. for k, _ := range v {
  8627. v2[i] = uint64(k)
  8628. i++
  8629. }
  8630. sort.Sort(uintSlice(v2))
  8631. for _, k2 := range v2 {
  8632. if esep {
  8633. ee.WriteMapElemKey()
  8634. }
  8635. e.encode(uintptr(k2))
  8636. if esep {
  8637. ee.WriteMapElemValue()
  8638. }
  8639. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8640. }
  8641. } else {
  8642. for k2, v2 := range v {
  8643. if esep {
  8644. ee.WriteMapElemKey()
  8645. }
  8646. e.encode(k2)
  8647. if esep {
  8648. ee.WriteMapElemValue()
  8649. }
  8650. ee.EncodeUint(uint64(v2))
  8651. }
  8652. }
  8653. ee.WriteMapEnd()
  8654. }
  8655. func (e *Encoder) fastpathEncMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  8656. fastpathTV.EncMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), e)
  8657. }
  8658. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, e *Encoder) {
  8659. if v == nil {
  8660. e.e.EncodeNil()
  8661. return
  8662. }
  8663. ee, esep := e.e, e.hh.hasElemSeparators()
  8664. ee.WriteMapStart(len(v))
  8665. if e.h.Canonical {
  8666. v2 := make([]uint64, len(v))
  8667. var i int
  8668. for k, _ := range v {
  8669. v2[i] = uint64(k)
  8670. i++
  8671. }
  8672. sort.Sort(uintSlice(v2))
  8673. for _, k2 := range v2 {
  8674. if esep {
  8675. ee.WriteMapElemKey()
  8676. }
  8677. e.encode(uintptr(k2))
  8678. if esep {
  8679. ee.WriteMapElemValue()
  8680. }
  8681. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8682. }
  8683. } else {
  8684. for k2, v2 := range v {
  8685. if esep {
  8686. ee.WriteMapElemKey()
  8687. }
  8688. e.encode(k2)
  8689. if esep {
  8690. ee.WriteMapElemValue()
  8691. }
  8692. ee.EncodeUint(uint64(v2))
  8693. }
  8694. }
  8695. ee.WriteMapEnd()
  8696. }
  8697. func (e *Encoder) fastpathEncMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  8698. fastpathTV.EncMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), e)
  8699. }
  8700. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, e *Encoder) {
  8701. if v == nil {
  8702. e.e.EncodeNil()
  8703. return
  8704. }
  8705. ee, esep := e.e, e.hh.hasElemSeparators()
  8706. ee.WriteMapStart(len(v))
  8707. if e.h.Canonical {
  8708. v2 := make([]uint64, len(v))
  8709. var i int
  8710. for k, _ := range v {
  8711. v2[i] = uint64(k)
  8712. i++
  8713. }
  8714. sort.Sort(uintSlice(v2))
  8715. for _, k2 := range v2 {
  8716. if esep {
  8717. ee.WriteMapElemKey()
  8718. }
  8719. e.encode(uintptr(k2))
  8720. if esep {
  8721. ee.WriteMapElemValue()
  8722. }
  8723. e.encode(v[uintptr(k2)])
  8724. }
  8725. } else {
  8726. for k2, v2 := range v {
  8727. if esep {
  8728. ee.WriteMapElemKey()
  8729. }
  8730. e.encode(k2)
  8731. if esep {
  8732. ee.WriteMapElemValue()
  8733. }
  8734. e.encode(v2)
  8735. }
  8736. }
  8737. ee.WriteMapEnd()
  8738. }
  8739. func (e *Encoder) fastpathEncMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  8740. fastpathTV.EncMapUintptrIntV(rv2i(rv).(map[uintptr]int), e)
  8741. }
  8742. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, e *Encoder) {
  8743. if v == nil {
  8744. e.e.EncodeNil()
  8745. return
  8746. }
  8747. ee, esep := e.e, e.hh.hasElemSeparators()
  8748. ee.WriteMapStart(len(v))
  8749. if e.h.Canonical {
  8750. v2 := make([]uint64, len(v))
  8751. var i int
  8752. for k, _ := range v {
  8753. v2[i] = uint64(k)
  8754. i++
  8755. }
  8756. sort.Sort(uintSlice(v2))
  8757. for _, k2 := range v2 {
  8758. if esep {
  8759. ee.WriteMapElemKey()
  8760. }
  8761. e.encode(uintptr(k2))
  8762. if esep {
  8763. ee.WriteMapElemValue()
  8764. }
  8765. ee.EncodeInt(int64(v[uintptr(k2)]))
  8766. }
  8767. } else {
  8768. for k2, v2 := range v {
  8769. if esep {
  8770. ee.WriteMapElemKey()
  8771. }
  8772. e.encode(k2)
  8773. if esep {
  8774. ee.WriteMapElemValue()
  8775. }
  8776. ee.EncodeInt(int64(v2))
  8777. }
  8778. }
  8779. ee.WriteMapEnd()
  8780. }
  8781. func (e *Encoder) fastpathEncMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  8782. fastpathTV.EncMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), e)
  8783. }
  8784. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, e *Encoder) {
  8785. if v == nil {
  8786. e.e.EncodeNil()
  8787. return
  8788. }
  8789. ee, esep := e.e, e.hh.hasElemSeparators()
  8790. ee.WriteMapStart(len(v))
  8791. if e.h.Canonical {
  8792. v2 := make([]uint64, len(v))
  8793. var i int
  8794. for k, _ := range v {
  8795. v2[i] = uint64(k)
  8796. i++
  8797. }
  8798. sort.Sort(uintSlice(v2))
  8799. for _, k2 := range v2 {
  8800. if esep {
  8801. ee.WriteMapElemKey()
  8802. }
  8803. e.encode(uintptr(k2))
  8804. if esep {
  8805. ee.WriteMapElemValue()
  8806. }
  8807. ee.EncodeInt(int64(v[uintptr(k2)]))
  8808. }
  8809. } else {
  8810. for k2, v2 := range v {
  8811. if esep {
  8812. ee.WriteMapElemKey()
  8813. }
  8814. e.encode(k2)
  8815. if esep {
  8816. ee.WriteMapElemValue()
  8817. }
  8818. ee.EncodeInt(int64(v2))
  8819. }
  8820. }
  8821. ee.WriteMapEnd()
  8822. }
  8823. func (e *Encoder) fastpathEncMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  8824. fastpathTV.EncMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), e)
  8825. }
  8826. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, e *Encoder) {
  8827. if v == nil {
  8828. e.e.EncodeNil()
  8829. return
  8830. }
  8831. ee, esep := e.e, e.hh.hasElemSeparators()
  8832. ee.WriteMapStart(len(v))
  8833. if e.h.Canonical {
  8834. v2 := make([]uint64, len(v))
  8835. var i int
  8836. for k, _ := range v {
  8837. v2[i] = uint64(k)
  8838. i++
  8839. }
  8840. sort.Sort(uintSlice(v2))
  8841. for _, k2 := range v2 {
  8842. if esep {
  8843. ee.WriteMapElemKey()
  8844. }
  8845. e.encode(uintptr(k2))
  8846. if esep {
  8847. ee.WriteMapElemValue()
  8848. }
  8849. ee.EncodeInt(int64(v[uintptr(k2)]))
  8850. }
  8851. } else {
  8852. for k2, v2 := range v {
  8853. if esep {
  8854. ee.WriteMapElemKey()
  8855. }
  8856. e.encode(k2)
  8857. if esep {
  8858. ee.WriteMapElemValue()
  8859. }
  8860. ee.EncodeInt(int64(v2))
  8861. }
  8862. }
  8863. ee.WriteMapEnd()
  8864. }
  8865. func (e *Encoder) fastpathEncMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  8866. fastpathTV.EncMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), e)
  8867. }
  8868. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, e *Encoder) {
  8869. if v == nil {
  8870. e.e.EncodeNil()
  8871. return
  8872. }
  8873. ee, esep := e.e, e.hh.hasElemSeparators()
  8874. ee.WriteMapStart(len(v))
  8875. if e.h.Canonical {
  8876. v2 := make([]uint64, len(v))
  8877. var i int
  8878. for k, _ := range v {
  8879. v2[i] = uint64(k)
  8880. i++
  8881. }
  8882. sort.Sort(uintSlice(v2))
  8883. for _, k2 := range v2 {
  8884. if esep {
  8885. ee.WriteMapElemKey()
  8886. }
  8887. e.encode(uintptr(k2))
  8888. if esep {
  8889. ee.WriteMapElemValue()
  8890. }
  8891. ee.EncodeInt(int64(v[uintptr(k2)]))
  8892. }
  8893. } else {
  8894. for k2, v2 := range v {
  8895. if esep {
  8896. ee.WriteMapElemKey()
  8897. }
  8898. e.encode(k2)
  8899. if esep {
  8900. ee.WriteMapElemValue()
  8901. }
  8902. ee.EncodeInt(int64(v2))
  8903. }
  8904. }
  8905. ee.WriteMapEnd()
  8906. }
  8907. func (e *Encoder) fastpathEncMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  8908. fastpathTV.EncMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), e)
  8909. }
  8910. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, e *Encoder) {
  8911. if v == nil {
  8912. e.e.EncodeNil()
  8913. return
  8914. }
  8915. ee, esep := e.e, e.hh.hasElemSeparators()
  8916. ee.WriteMapStart(len(v))
  8917. if e.h.Canonical {
  8918. v2 := make([]uint64, len(v))
  8919. var i int
  8920. for k, _ := range v {
  8921. v2[i] = uint64(k)
  8922. i++
  8923. }
  8924. sort.Sort(uintSlice(v2))
  8925. for _, k2 := range v2 {
  8926. if esep {
  8927. ee.WriteMapElemKey()
  8928. }
  8929. e.encode(uintptr(k2))
  8930. if esep {
  8931. ee.WriteMapElemValue()
  8932. }
  8933. ee.EncodeInt(int64(v[uintptr(k2)]))
  8934. }
  8935. } else {
  8936. for k2, v2 := range v {
  8937. if esep {
  8938. ee.WriteMapElemKey()
  8939. }
  8940. e.encode(k2)
  8941. if esep {
  8942. ee.WriteMapElemValue()
  8943. }
  8944. ee.EncodeInt(int64(v2))
  8945. }
  8946. }
  8947. ee.WriteMapEnd()
  8948. }
  8949. func (e *Encoder) fastpathEncMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  8950. fastpathTV.EncMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), e)
  8951. }
  8952. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, e *Encoder) {
  8953. if v == nil {
  8954. e.e.EncodeNil()
  8955. return
  8956. }
  8957. ee, esep := e.e, e.hh.hasElemSeparators()
  8958. ee.WriteMapStart(len(v))
  8959. if e.h.Canonical {
  8960. v2 := make([]uint64, len(v))
  8961. var i int
  8962. for k, _ := range v {
  8963. v2[i] = uint64(k)
  8964. i++
  8965. }
  8966. sort.Sort(uintSlice(v2))
  8967. for _, k2 := range v2 {
  8968. if esep {
  8969. ee.WriteMapElemKey()
  8970. }
  8971. e.encode(uintptr(k2))
  8972. if esep {
  8973. ee.WriteMapElemValue()
  8974. }
  8975. ee.EncodeFloat32(v[uintptr(k2)])
  8976. }
  8977. } else {
  8978. for k2, v2 := range v {
  8979. if esep {
  8980. ee.WriteMapElemKey()
  8981. }
  8982. e.encode(k2)
  8983. if esep {
  8984. ee.WriteMapElemValue()
  8985. }
  8986. ee.EncodeFloat32(v2)
  8987. }
  8988. }
  8989. ee.WriteMapEnd()
  8990. }
  8991. func (e *Encoder) fastpathEncMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  8992. fastpathTV.EncMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), e)
  8993. }
  8994. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, e *Encoder) {
  8995. if v == nil {
  8996. e.e.EncodeNil()
  8997. return
  8998. }
  8999. ee, esep := e.e, e.hh.hasElemSeparators()
  9000. ee.WriteMapStart(len(v))
  9001. if e.h.Canonical {
  9002. v2 := make([]uint64, len(v))
  9003. var i int
  9004. for k, _ := range v {
  9005. v2[i] = uint64(k)
  9006. i++
  9007. }
  9008. sort.Sort(uintSlice(v2))
  9009. for _, k2 := range v2 {
  9010. if esep {
  9011. ee.WriteMapElemKey()
  9012. }
  9013. e.encode(uintptr(k2))
  9014. if esep {
  9015. ee.WriteMapElemValue()
  9016. }
  9017. ee.EncodeFloat64(v[uintptr(k2)])
  9018. }
  9019. } else {
  9020. for k2, v2 := range v {
  9021. if esep {
  9022. ee.WriteMapElemKey()
  9023. }
  9024. e.encode(k2)
  9025. if esep {
  9026. ee.WriteMapElemValue()
  9027. }
  9028. ee.EncodeFloat64(v2)
  9029. }
  9030. }
  9031. ee.WriteMapEnd()
  9032. }
  9033. func (e *Encoder) fastpathEncMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  9034. fastpathTV.EncMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), e)
  9035. }
  9036. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, e *Encoder) {
  9037. if v == nil {
  9038. e.e.EncodeNil()
  9039. return
  9040. }
  9041. ee, esep := e.e, e.hh.hasElemSeparators()
  9042. ee.WriteMapStart(len(v))
  9043. if e.h.Canonical {
  9044. v2 := make([]uint64, len(v))
  9045. var i int
  9046. for k, _ := range v {
  9047. v2[i] = uint64(k)
  9048. i++
  9049. }
  9050. sort.Sort(uintSlice(v2))
  9051. for _, k2 := range v2 {
  9052. if esep {
  9053. ee.WriteMapElemKey()
  9054. }
  9055. e.encode(uintptr(k2))
  9056. if esep {
  9057. ee.WriteMapElemValue()
  9058. }
  9059. ee.EncodeBool(v[uintptr(k2)])
  9060. }
  9061. } else {
  9062. for k2, v2 := range v {
  9063. if esep {
  9064. ee.WriteMapElemKey()
  9065. }
  9066. e.encode(k2)
  9067. if esep {
  9068. ee.WriteMapElemValue()
  9069. }
  9070. ee.EncodeBool(v2)
  9071. }
  9072. }
  9073. ee.WriteMapEnd()
  9074. }
  9075. func (e *Encoder) fastpathEncMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  9076. fastpathTV.EncMapIntIntfV(rv2i(rv).(map[int]interface{}), e)
  9077. }
  9078. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, e *Encoder) {
  9079. if v == nil {
  9080. e.e.EncodeNil()
  9081. return
  9082. }
  9083. ee, esep := e.e, e.hh.hasElemSeparators()
  9084. ee.WriteMapStart(len(v))
  9085. if e.h.Canonical {
  9086. v2 := make([]int64, len(v))
  9087. var i int
  9088. for k, _ := range v {
  9089. v2[i] = int64(k)
  9090. i++
  9091. }
  9092. sort.Sort(intSlice(v2))
  9093. for _, k2 := range v2 {
  9094. if esep {
  9095. ee.WriteMapElemKey()
  9096. }
  9097. ee.EncodeInt(int64(int(k2)))
  9098. if esep {
  9099. ee.WriteMapElemValue()
  9100. }
  9101. e.encode(v[int(k2)])
  9102. }
  9103. } else {
  9104. for k2, v2 := range v {
  9105. if esep {
  9106. ee.WriteMapElemKey()
  9107. }
  9108. ee.EncodeInt(int64(k2))
  9109. if esep {
  9110. ee.WriteMapElemValue()
  9111. }
  9112. e.encode(v2)
  9113. }
  9114. }
  9115. ee.WriteMapEnd()
  9116. }
  9117. func (e *Encoder) fastpathEncMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  9118. fastpathTV.EncMapIntStringV(rv2i(rv).(map[int]string), e)
  9119. }
  9120. func (_ fastpathT) EncMapIntStringV(v map[int]string, e *Encoder) {
  9121. if v == nil {
  9122. e.e.EncodeNil()
  9123. return
  9124. }
  9125. ee, esep := e.e, e.hh.hasElemSeparators()
  9126. ee.WriteMapStart(len(v))
  9127. if e.h.Canonical {
  9128. v2 := make([]int64, len(v))
  9129. var i int
  9130. for k, _ := range v {
  9131. v2[i] = int64(k)
  9132. i++
  9133. }
  9134. sort.Sort(intSlice(v2))
  9135. for _, k2 := range v2 {
  9136. if esep {
  9137. ee.WriteMapElemKey()
  9138. }
  9139. ee.EncodeInt(int64(int(k2)))
  9140. if esep {
  9141. ee.WriteMapElemValue()
  9142. }
  9143. ee.EncodeString(cUTF8, v[int(k2)])
  9144. }
  9145. } else {
  9146. for k2, v2 := range v {
  9147. if esep {
  9148. ee.WriteMapElemKey()
  9149. }
  9150. ee.EncodeInt(int64(k2))
  9151. if esep {
  9152. ee.WriteMapElemValue()
  9153. }
  9154. ee.EncodeString(cUTF8, v2)
  9155. }
  9156. }
  9157. ee.WriteMapEnd()
  9158. }
  9159. func (e *Encoder) fastpathEncMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  9160. fastpathTV.EncMapIntUintV(rv2i(rv).(map[int]uint), e)
  9161. }
  9162. func (_ fastpathT) EncMapIntUintV(v map[int]uint, e *Encoder) {
  9163. if v == nil {
  9164. e.e.EncodeNil()
  9165. return
  9166. }
  9167. ee, esep := e.e, e.hh.hasElemSeparators()
  9168. ee.WriteMapStart(len(v))
  9169. if e.h.Canonical {
  9170. v2 := make([]int64, len(v))
  9171. var i int
  9172. for k, _ := range v {
  9173. v2[i] = int64(k)
  9174. i++
  9175. }
  9176. sort.Sort(intSlice(v2))
  9177. for _, k2 := range v2 {
  9178. if esep {
  9179. ee.WriteMapElemKey()
  9180. }
  9181. ee.EncodeInt(int64(int(k2)))
  9182. if esep {
  9183. ee.WriteMapElemValue()
  9184. }
  9185. ee.EncodeUint(uint64(v[int(k2)]))
  9186. }
  9187. } else {
  9188. for k2, v2 := range v {
  9189. if esep {
  9190. ee.WriteMapElemKey()
  9191. }
  9192. ee.EncodeInt(int64(k2))
  9193. if esep {
  9194. ee.WriteMapElemValue()
  9195. }
  9196. ee.EncodeUint(uint64(v2))
  9197. }
  9198. }
  9199. ee.WriteMapEnd()
  9200. }
  9201. func (e *Encoder) fastpathEncMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  9202. fastpathTV.EncMapIntUint8V(rv2i(rv).(map[int]uint8), e)
  9203. }
  9204. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, e *Encoder) {
  9205. if v == nil {
  9206. e.e.EncodeNil()
  9207. return
  9208. }
  9209. ee, esep := e.e, e.hh.hasElemSeparators()
  9210. ee.WriteMapStart(len(v))
  9211. if e.h.Canonical {
  9212. v2 := make([]int64, len(v))
  9213. var i int
  9214. for k, _ := range v {
  9215. v2[i] = int64(k)
  9216. i++
  9217. }
  9218. sort.Sort(intSlice(v2))
  9219. for _, k2 := range v2 {
  9220. if esep {
  9221. ee.WriteMapElemKey()
  9222. }
  9223. ee.EncodeInt(int64(int(k2)))
  9224. if esep {
  9225. ee.WriteMapElemValue()
  9226. }
  9227. ee.EncodeUint(uint64(v[int(k2)]))
  9228. }
  9229. } else {
  9230. for k2, v2 := range v {
  9231. if esep {
  9232. ee.WriteMapElemKey()
  9233. }
  9234. ee.EncodeInt(int64(k2))
  9235. if esep {
  9236. ee.WriteMapElemValue()
  9237. }
  9238. ee.EncodeUint(uint64(v2))
  9239. }
  9240. }
  9241. ee.WriteMapEnd()
  9242. }
  9243. func (e *Encoder) fastpathEncMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  9244. fastpathTV.EncMapIntUint16V(rv2i(rv).(map[int]uint16), e)
  9245. }
  9246. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, e *Encoder) {
  9247. if v == nil {
  9248. e.e.EncodeNil()
  9249. return
  9250. }
  9251. ee, esep := e.e, e.hh.hasElemSeparators()
  9252. ee.WriteMapStart(len(v))
  9253. if e.h.Canonical {
  9254. v2 := make([]int64, len(v))
  9255. var i int
  9256. for k, _ := range v {
  9257. v2[i] = int64(k)
  9258. i++
  9259. }
  9260. sort.Sort(intSlice(v2))
  9261. for _, k2 := range v2 {
  9262. if esep {
  9263. ee.WriteMapElemKey()
  9264. }
  9265. ee.EncodeInt(int64(int(k2)))
  9266. if esep {
  9267. ee.WriteMapElemValue()
  9268. }
  9269. ee.EncodeUint(uint64(v[int(k2)]))
  9270. }
  9271. } else {
  9272. for k2, v2 := range v {
  9273. if esep {
  9274. ee.WriteMapElemKey()
  9275. }
  9276. ee.EncodeInt(int64(k2))
  9277. if esep {
  9278. ee.WriteMapElemValue()
  9279. }
  9280. ee.EncodeUint(uint64(v2))
  9281. }
  9282. }
  9283. ee.WriteMapEnd()
  9284. }
  9285. func (e *Encoder) fastpathEncMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  9286. fastpathTV.EncMapIntUint32V(rv2i(rv).(map[int]uint32), e)
  9287. }
  9288. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, e *Encoder) {
  9289. if v == nil {
  9290. e.e.EncodeNil()
  9291. return
  9292. }
  9293. ee, esep := e.e, e.hh.hasElemSeparators()
  9294. ee.WriteMapStart(len(v))
  9295. if e.h.Canonical {
  9296. v2 := make([]int64, len(v))
  9297. var i int
  9298. for k, _ := range v {
  9299. v2[i] = int64(k)
  9300. i++
  9301. }
  9302. sort.Sort(intSlice(v2))
  9303. for _, k2 := range v2 {
  9304. if esep {
  9305. ee.WriteMapElemKey()
  9306. }
  9307. ee.EncodeInt(int64(int(k2)))
  9308. if esep {
  9309. ee.WriteMapElemValue()
  9310. }
  9311. ee.EncodeUint(uint64(v[int(k2)]))
  9312. }
  9313. } else {
  9314. for k2, v2 := range v {
  9315. if esep {
  9316. ee.WriteMapElemKey()
  9317. }
  9318. ee.EncodeInt(int64(k2))
  9319. if esep {
  9320. ee.WriteMapElemValue()
  9321. }
  9322. ee.EncodeUint(uint64(v2))
  9323. }
  9324. }
  9325. ee.WriteMapEnd()
  9326. }
  9327. func (e *Encoder) fastpathEncMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  9328. fastpathTV.EncMapIntUint64V(rv2i(rv).(map[int]uint64), e)
  9329. }
  9330. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, e *Encoder) {
  9331. if v == nil {
  9332. e.e.EncodeNil()
  9333. return
  9334. }
  9335. ee, esep := e.e, e.hh.hasElemSeparators()
  9336. ee.WriteMapStart(len(v))
  9337. if e.h.Canonical {
  9338. v2 := make([]int64, len(v))
  9339. var i int
  9340. for k, _ := range v {
  9341. v2[i] = int64(k)
  9342. i++
  9343. }
  9344. sort.Sort(intSlice(v2))
  9345. for _, k2 := range v2 {
  9346. if esep {
  9347. ee.WriteMapElemKey()
  9348. }
  9349. ee.EncodeInt(int64(int(k2)))
  9350. if esep {
  9351. ee.WriteMapElemValue()
  9352. }
  9353. ee.EncodeUint(uint64(v[int(k2)]))
  9354. }
  9355. } else {
  9356. for k2, v2 := range v {
  9357. if esep {
  9358. ee.WriteMapElemKey()
  9359. }
  9360. ee.EncodeInt(int64(k2))
  9361. if esep {
  9362. ee.WriteMapElemValue()
  9363. }
  9364. ee.EncodeUint(uint64(v2))
  9365. }
  9366. }
  9367. ee.WriteMapEnd()
  9368. }
  9369. func (e *Encoder) fastpathEncMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  9370. fastpathTV.EncMapIntUintptrV(rv2i(rv).(map[int]uintptr), e)
  9371. }
  9372. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, e *Encoder) {
  9373. if v == nil {
  9374. e.e.EncodeNil()
  9375. return
  9376. }
  9377. ee, esep := e.e, e.hh.hasElemSeparators()
  9378. ee.WriteMapStart(len(v))
  9379. if e.h.Canonical {
  9380. v2 := make([]int64, len(v))
  9381. var i int
  9382. for k, _ := range v {
  9383. v2[i] = int64(k)
  9384. i++
  9385. }
  9386. sort.Sort(intSlice(v2))
  9387. for _, k2 := range v2 {
  9388. if esep {
  9389. ee.WriteMapElemKey()
  9390. }
  9391. ee.EncodeInt(int64(int(k2)))
  9392. if esep {
  9393. ee.WriteMapElemValue()
  9394. }
  9395. e.encode(v[int(k2)])
  9396. }
  9397. } else {
  9398. for k2, v2 := range v {
  9399. if esep {
  9400. ee.WriteMapElemKey()
  9401. }
  9402. ee.EncodeInt(int64(k2))
  9403. if esep {
  9404. ee.WriteMapElemValue()
  9405. }
  9406. e.encode(v2)
  9407. }
  9408. }
  9409. ee.WriteMapEnd()
  9410. }
  9411. func (e *Encoder) fastpathEncMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  9412. fastpathTV.EncMapIntIntV(rv2i(rv).(map[int]int), e)
  9413. }
  9414. func (_ fastpathT) EncMapIntIntV(v map[int]int, e *Encoder) {
  9415. if v == nil {
  9416. e.e.EncodeNil()
  9417. return
  9418. }
  9419. ee, esep := e.e, e.hh.hasElemSeparators()
  9420. ee.WriteMapStart(len(v))
  9421. if e.h.Canonical {
  9422. v2 := make([]int64, len(v))
  9423. var i int
  9424. for k, _ := range v {
  9425. v2[i] = int64(k)
  9426. i++
  9427. }
  9428. sort.Sort(intSlice(v2))
  9429. for _, k2 := range v2 {
  9430. if esep {
  9431. ee.WriteMapElemKey()
  9432. }
  9433. ee.EncodeInt(int64(int(k2)))
  9434. if esep {
  9435. ee.WriteMapElemValue()
  9436. }
  9437. ee.EncodeInt(int64(v[int(k2)]))
  9438. }
  9439. } else {
  9440. for k2, v2 := range v {
  9441. if esep {
  9442. ee.WriteMapElemKey()
  9443. }
  9444. ee.EncodeInt(int64(k2))
  9445. if esep {
  9446. ee.WriteMapElemValue()
  9447. }
  9448. ee.EncodeInt(int64(v2))
  9449. }
  9450. }
  9451. ee.WriteMapEnd()
  9452. }
  9453. func (e *Encoder) fastpathEncMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  9454. fastpathTV.EncMapIntInt8V(rv2i(rv).(map[int]int8), e)
  9455. }
  9456. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, e *Encoder) {
  9457. if v == nil {
  9458. e.e.EncodeNil()
  9459. return
  9460. }
  9461. ee, esep := e.e, e.hh.hasElemSeparators()
  9462. ee.WriteMapStart(len(v))
  9463. if e.h.Canonical {
  9464. v2 := make([]int64, len(v))
  9465. var i int
  9466. for k, _ := range v {
  9467. v2[i] = int64(k)
  9468. i++
  9469. }
  9470. sort.Sort(intSlice(v2))
  9471. for _, k2 := range v2 {
  9472. if esep {
  9473. ee.WriteMapElemKey()
  9474. }
  9475. ee.EncodeInt(int64(int(k2)))
  9476. if esep {
  9477. ee.WriteMapElemValue()
  9478. }
  9479. ee.EncodeInt(int64(v[int(k2)]))
  9480. }
  9481. } else {
  9482. for k2, v2 := range v {
  9483. if esep {
  9484. ee.WriteMapElemKey()
  9485. }
  9486. ee.EncodeInt(int64(k2))
  9487. if esep {
  9488. ee.WriteMapElemValue()
  9489. }
  9490. ee.EncodeInt(int64(v2))
  9491. }
  9492. }
  9493. ee.WriteMapEnd()
  9494. }
  9495. func (e *Encoder) fastpathEncMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  9496. fastpathTV.EncMapIntInt16V(rv2i(rv).(map[int]int16), e)
  9497. }
  9498. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, e *Encoder) {
  9499. if v == nil {
  9500. e.e.EncodeNil()
  9501. return
  9502. }
  9503. ee, esep := e.e, e.hh.hasElemSeparators()
  9504. ee.WriteMapStart(len(v))
  9505. if e.h.Canonical {
  9506. v2 := make([]int64, len(v))
  9507. var i int
  9508. for k, _ := range v {
  9509. v2[i] = int64(k)
  9510. i++
  9511. }
  9512. sort.Sort(intSlice(v2))
  9513. for _, k2 := range v2 {
  9514. if esep {
  9515. ee.WriteMapElemKey()
  9516. }
  9517. ee.EncodeInt(int64(int(k2)))
  9518. if esep {
  9519. ee.WriteMapElemValue()
  9520. }
  9521. ee.EncodeInt(int64(v[int(k2)]))
  9522. }
  9523. } else {
  9524. for k2, v2 := range v {
  9525. if esep {
  9526. ee.WriteMapElemKey()
  9527. }
  9528. ee.EncodeInt(int64(k2))
  9529. if esep {
  9530. ee.WriteMapElemValue()
  9531. }
  9532. ee.EncodeInt(int64(v2))
  9533. }
  9534. }
  9535. ee.WriteMapEnd()
  9536. }
  9537. func (e *Encoder) fastpathEncMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  9538. fastpathTV.EncMapIntInt32V(rv2i(rv).(map[int]int32), e)
  9539. }
  9540. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, e *Encoder) {
  9541. if v == nil {
  9542. e.e.EncodeNil()
  9543. return
  9544. }
  9545. ee, esep := e.e, e.hh.hasElemSeparators()
  9546. ee.WriteMapStart(len(v))
  9547. if e.h.Canonical {
  9548. v2 := make([]int64, len(v))
  9549. var i int
  9550. for k, _ := range v {
  9551. v2[i] = int64(k)
  9552. i++
  9553. }
  9554. sort.Sort(intSlice(v2))
  9555. for _, k2 := range v2 {
  9556. if esep {
  9557. ee.WriteMapElemKey()
  9558. }
  9559. ee.EncodeInt(int64(int(k2)))
  9560. if esep {
  9561. ee.WriteMapElemValue()
  9562. }
  9563. ee.EncodeInt(int64(v[int(k2)]))
  9564. }
  9565. } else {
  9566. for k2, v2 := range v {
  9567. if esep {
  9568. ee.WriteMapElemKey()
  9569. }
  9570. ee.EncodeInt(int64(k2))
  9571. if esep {
  9572. ee.WriteMapElemValue()
  9573. }
  9574. ee.EncodeInt(int64(v2))
  9575. }
  9576. }
  9577. ee.WriteMapEnd()
  9578. }
  9579. func (e *Encoder) fastpathEncMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  9580. fastpathTV.EncMapIntInt64V(rv2i(rv).(map[int]int64), e)
  9581. }
  9582. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, e *Encoder) {
  9583. if v == nil {
  9584. e.e.EncodeNil()
  9585. return
  9586. }
  9587. ee, esep := e.e, e.hh.hasElemSeparators()
  9588. ee.WriteMapStart(len(v))
  9589. if e.h.Canonical {
  9590. v2 := make([]int64, len(v))
  9591. var i int
  9592. for k, _ := range v {
  9593. v2[i] = int64(k)
  9594. i++
  9595. }
  9596. sort.Sort(intSlice(v2))
  9597. for _, k2 := range v2 {
  9598. if esep {
  9599. ee.WriteMapElemKey()
  9600. }
  9601. ee.EncodeInt(int64(int(k2)))
  9602. if esep {
  9603. ee.WriteMapElemValue()
  9604. }
  9605. ee.EncodeInt(int64(v[int(k2)]))
  9606. }
  9607. } else {
  9608. for k2, v2 := range v {
  9609. if esep {
  9610. ee.WriteMapElemKey()
  9611. }
  9612. ee.EncodeInt(int64(k2))
  9613. if esep {
  9614. ee.WriteMapElemValue()
  9615. }
  9616. ee.EncodeInt(int64(v2))
  9617. }
  9618. }
  9619. ee.WriteMapEnd()
  9620. }
  9621. func (e *Encoder) fastpathEncMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  9622. fastpathTV.EncMapIntFloat32V(rv2i(rv).(map[int]float32), e)
  9623. }
  9624. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, e *Encoder) {
  9625. if v == nil {
  9626. e.e.EncodeNil()
  9627. return
  9628. }
  9629. ee, esep := e.e, e.hh.hasElemSeparators()
  9630. ee.WriteMapStart(len(v))
  9631. if e.h.Canonical {
  9632. v2 := make([]int64, len(v))
  9633. var i int
  9634. for k, _ := range v {
  9635. v2[i] = int64(k)
  9636. i++
  9637. }
  9638. sort.Sort(intSlice(v2))
  9639. for _, k2 := range v2 {
  9640. if esep {
  9641. ee.WriteMapElemKey()
  9642. }
  9643. ee.EncodeInt(int64(int(k2)))
  9644. if esep {
  9645. ee.WriteMapElemValue()
  9646. }
  9647. ee.EncodeFloat32(v[int(k2)])
  9648. }
  9649. } else {
  9650. for k2, v2 := range v {
  9651. if esep {
  9652. ee.WriteMapElemKey()
  9653. }
  9654. ee.EncodeInt(int64(k2))
  9655. if esep {
  9656. ee.WriteMapElemValue()
  9657. }
  9658. ee.EncodeFloat32(v2)
  9659. }
  9660. }
  9661. ee.WriteMapEnd()
  9662. }
  9663. func (e *Encoder) fastpathEncMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  9664. fastpathTV.EncMapIntFloat64V(rv2i(rv).(map[int]float64), e)
  9665. }
  9666. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, e *Encoder) {
  9667. if v == nil {
  9668. e.e.EncodeNil()
  9669. return
  9670. }
  9671. ee, esep := e.e, e.hh.hasElemSeparators()
  9672. ee.WriteMapStart(len(v))
  9673. if e.h.Canonical {
  9674. v2 := make([]int64, len(v))
  9675. var i int
  9676. for k, _ := range v {
  9677. v2[i] = int64(k)
  9678. i++
  9679. }
  9680. sort.Sort(intSlice(v2))
  9681. for _, k2 := range v2 {
  9682. if esep {
  9683. ee.WriteMapElemKey()
  9684. }
  9685. ee.EncodeInt(int64(int(k2)))
  9686. if esep {
  9687. ee.WriteMapElemValue()
  9688. }
  9689. ee.EncodeFloat64(v[int(k2)])
  9690. }
  9691. } else {
  9692. for k2, v2 := range v {
  9693. if esep {
  9694. ee.WriteMapElemKey()
  9695. }
  9696. ee.EncodeInt(int64(k2))
  9697. if esep {
  9698. ee.WriteMapElemValue()
  9699. }
  9700. ee.EncodeFloat64(v2)
  9701. }
  9702. }
  9703. ee.WriteMapEnd()
  9704. }
  9705. func (e *Encoder) fastpathEncMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  9706. fastpathTV.EncMapIntBoolV(rv2i(rv).(map[int]bool), e)
  9707. }
  9708. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, e *Encoder) {
  9709. if v == nil {
  9710. e.e.EncodeNil()
  9711. return
  9712. }
  9713. ee, esep := e.e, e.hh.hasElemSeparators()
  9714. ee.WriteMapStart(len(v))
  9715. if e.h.Canonical {
  9716. v2 := make([]int64, len(v))
  9717. var i int
  9718. for k, _ := range v {
  9719. v2[i] = int64(k)
  9720. i++
  9721. }
  9722. sort.Sort(intSlice(v2))
  9723. for _, k2 := range v2 {
  9724. if esep {
  9725. ee.WriteMapElemKey()
  9726. }
  9727. ee.EncodeInt(int64(int(k2)))
  9728. if esep {
  9729. ee.WriteMapElemValue()
  9730. }
  9731. ee.EncodeBool(v[int(k2)])
  9732. }
  9733. } else {
  9734. for k2, v2 := range v {
  9735. if esep {
  9736. ee.WriteMapElemKey()
  9737. }
  9738. ee.EncodeInt(int64(k2))
  9739. if esep {
  9740. ee.WriteMapElemValue()
  9741. }
  9742. ee.EncodeBool(v2)
  9743. }
  9744. }
  9745. ee.WriteMapEnd()
  9746. }
  9747. func (e *Encoder) fastpathEncMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  9748. fastpathTV.EncMapInt8IntfV(rv2i(rv).(map[int8]interface{}), e)
  9749. }
  9750. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, e *Encoder) {
  9751. if v == nil {
  9752. e.e.EncodeNil()
  9753. return
  9754. }
  9755. ee, esep := e.e, e.hh.hasElemSeparators()
  9756. ee.WriteMapStart(len(v))
  9757. if e.h.Canonical {
  9758. v2 := make([]int64, len(v))
  9759. var i int
  9760. for k, _ := range v {
  9761. v2[i] = int64(k)
  9762. i++
  9763. }
  9764. sort.Sort(intSlice(v2))
  9765. for _, k2 := range v2 {
  9766. if esep {
  9767. ee.WriteMapElemKey()
  9768. }
  9769. ee.EncodeInt(int64(int8(k2)))
  9770. if esep {
  9771. ee.WriteMapElemValue()
  9772. }
  9773. e.encode(v[int8(k2)])
  9774. }
  9775. } else {
  9776. for k2, v2 := range v {
  9777. if esep {
  9778. ee.WriteMapElemKey()
  9779. }
  9780. ee.EncodeInt(int64(k2))
  9781. if esep {
  9782. ee.WriteMapElemValue()
  9783. }
  9784. e.encode(v2)
  9785. }
  9786. }
  9787. ee.WriteMapEnd()
  9788. }
  9789. func (e *Encoder) fastpathEncMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  9790. fastpathTV.EncMapInt8StringV(rv2i(rv).(map[int8]string), e)
  9791. }
  9792. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, e *Encoder) {
  9793. if v == nil {
  9794. e.e.EncodeNil()
  9795. return
  9796. }
  9797. ee, esep := e.e, e.hh.hasElemSeparators()
  9798. ee.WriteMapStart(len(v))
  9799. if e.h.Canonical {
  9800. v2 := make([]int64, len(v))
  9801. var i int
  9802. for k, _ := range v {
  9803. v2[i] = int64(k)
  9804. i++
  9805. }
  9806. sort.Sort(intSlice(v2))
  9807. for _, k2 := range v2 {
  9808. if esep {
  9809. ee.WriteMapElemKey()
  9810. }
  9811. ee.EncodeInt(int64(int8(k2)))
  9812. if esep {
  9813. ee.WriteMapElemValue()
  9814. }
  9815. ee.EncodeString(cUTF8, v[int8(k2)])
  9816. }
  9817. } else {
  9818. for k2, v2 := range v {
  9819. if esep {
  9820. ee.WriteMapElemKey()
  9821. }
  9822. ee.EncodeInt(int64(k2))
  9823. if esep {
  9824. ee.WriteMapElemValue()
  9825. }
  9826. ee.EncodeString(cUTF8, v2)
  9827. }
  9828. }
  9829. ee.WriteMapEnd()
  9830. }
  9831. func (e *Encoder) fastpathEncMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  9832. fastpathTV.EncMapInt8UintV(rv2i(rv).(map[int8]uint), e)
  9833. }
  9834. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, e *Encoder) {
  9835. if v == nil {
  9836. e.e.EncodeNil()
  9837. return
  9838. }
  9839. ee, esep := e.e, e.hh.hasElemSeparators()
  9840. ee.WriteMapStart(len(v))
  9841. if e.h.Canonical {
  9842. v2 := make([]int64, len(v))
  9843. var i int
  9844. for k, _ := range v {
  9845. v2[i] = int64(k)
  9846. i++
  9847. }
  9848. sort.Sort(intSlice(v2))
  9849. for _, k2 := range v2 {
  9850. if esep {
  9851. ee.WriteMapElemKey()
  9852. }
  9853. ee.EncodeInt(int64(int8(k2)))
  9854. if esep {
  9855. ee.WriteMapElemValue()
  9856. }
  9857. ee.EncodeUint(uint64(v[int8(k2)]))
  9858. }
  9859. } else {
  9860. for k2, v2 := range v {
  9861. if esep {
  9862. ee.WriteMapElemKey()
  9863. }
  9864. ee.EncodeInt(int64(k2))
  9865. if esep {
  9866. ee.WriteMapElemValue()
  9867. }
  9868. ee.EncodeUint(uint64(v2))
  9869. }
  9870. }
  9871. ee.WriteMapEnd()
  9872. }
  9873. func (e *Encoder) fastpathEncMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  9874. fastpathTV.EncMapInt8Uint8V(rv2i(rv).(map[int8]uint8), e)
  9875. }
  9876. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, e *Encoder) {
  9877. if v == nil {
  9878. e.e.EncodeNil()
  9879. return
  9880. }
  9881. ee, esep := e.e, e.hh.hasElemSeparators()
  9882. ee.WriteMapStart(len(v))
  9883. if e.h.Canonical {
  9884. v2 := make([]int64, len(v))
  9885. var i int
  9886. for k, _ := range v {
  9887. v2[i] = int64(k)
  9888. i++
  9889. }
  9890. sort.Sort(intSlice(v2))
  9891. for _, k2 := range v2 {
  9892. if esep {
  9893. ee.WriteMapElemKey()
  9894. }
  9895. ee.EncodeInt(int64(int8(k2)))
  9896. if esep {
  9897. ee.WriteMapElemValue()
  9898. }
  9899. ee.EncodeUint(uint64(v[int8(k2)]))
  9900. }
  9901. } else {
  9902. for k2, v2 := range v {
  9903. if esep {
  9904. ee.WriteMapElemKey()
  9905. }
  9906. ee.EncodeInt(int64(k2))
  9907. if esep {
  9908. ee.WriteMapElemValue()
  9909. }
  9910. ee.EncodeUint(uint64(v2))
  9911. }
  9912. }
  9913. ee.WriteMapEnd()
  9914. }
  9915. func (e *Encoder) fastpathEncMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  9916. fastpathTV.EncMapInt8Uint16V(rv2i(rv).(map[int8]uint16), e)
  9917. }
  9918. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, e *Encoder) {
  9919. if v == nil {
  9920. e.e.EncodeNil()
  9921. return
  9922. }
  9923. ee, esep := e.e, e.hh.hasElemSeparators()
  9924. ee.WriteMapStart(len(v))
  9925. if e.h.Canonical {
  9926. v2 := make([]int64, len(v))
  9927. var i int
  9928. for k, _ := range v {
  9929. v2[i] = int64(k)
  9930. i++
  9931. }
  9932. sort.Sort(intSlice(v2))
  9933. for _, k2 := range v2 {
  9934. if esep {
  9935. ee.WriteMapElemKey()
  9936. }
  9937. ee.EncodeInt(int64(int8(k2)))
  9938. if esep {
  9939. ee.WriteMapElemValue()
  9940. }
  9941. ee.EncodeUint(uint64(v[int8(k2)]))
  9942. }
  9943. } else {
  9944. for k2, v2 := range v {
  9945. if esep {
  9946. ee.WriteMapElemKey()
  9947. }
  9948. ee.EncodeInt(int64(k2))
  9949. if esep {
  9950. ee.WriteMapElemValue()
  9951. }
  9952. ee.EncodeUint(uint64(v2))
  9953. }
  9954. }
  9955. ee.WriteMapEnd()
  9956. }
  9957. func (e *Encoder) fastpathEncMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  9958. fastpathTV.EncMapInt8Uint32V(rv2i(rv).(map[int8]uint32), e)
  9959. }
  9960. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, e *Encoder) {
  9961. if v == nil {
  9962. e.e.EncodeNil()
  9963. return
  9964. }
  9965. ee, esep := e.e, e.hh.hasElemSeparators()
  9966. ee.WriteMapStart(len(v))
  9967. if e.h.Canonical {
  9968. v2 := make([]int64, len(v))
  9969. var i int
  9970. for k, _ := range v {
  9971. v2[i] = int64(k)
  9972. i++
  9973. }
  9974. sort.Sort(intSlice(v2))
  9975. for _, k2 := range v2 {
  9976. if esep {
  9977. ee.WriteMapElemKey()
  9978. }
  9979. ee.EncodeInt(int64(int8(k2)))
  9980. if esep {
  9981. ee.WriteMapElemValue()
  9982. }
  9983. ee.EncodeUint(uint64(v[int8(k2)]))
  9984. }
  9985. } else {
  9986. for k2, v2 := range v {
  9987. if esep {
  9988. ee.WriteMapElemKey()
  9989. }
  9990. ee.EncodeInt(int64(k2))
  9991. if esep {
  9992. ee.WriteMapElemValue()
  9993. }
  9994. ee.EncodeUint(uint64(v2))
  9995. }
  9996. }
  9997. ee.WriteMapEnd()
  9998. }
  9999. func (e *Encoder) fastpathEncMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  10000. fastpathTV.EncMapInt8Uint64V(rv2i(rv).(map[int8]uint64), e)
  10001. }
  10002. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, e *Encoder) {
  10003. if v == nil {
  10004. e.e.EncodeNil()
  10005. return
  10006. }
  10007. ee, esep := e.e, e.hh.hasElemSeparators()
  10008. ee.WriteMapStart(len(v))
  10009. if e.h.Canonical {
  10010. v2 := make([]int64, len(v))
  10011. var i int
  10012. for k, _ := range v {
  10013. v2[i] = int64(k)
  10014. i++
  10015. }
  10016. sort.Sort(intSlice(v2))
  10017. for _, k2 := range v2 {
  10018. if esep {
  10019. ee.WriteMapElemKey()
  10020. }
  10021. ee.EncodeInt(int64(int8(k2)))
  10022. if esep {
  10023. ee.WriteMapElemValue()
  10024. }
  10025. ee.EncodeUint(uint64(v[int8(k2)]))
  10026. }
  10027. } else {
  10028. for k2, v2 := range v {
  10029. if esep {
  10030. ee.WriteMapElemKey()
  10031. }
  10032. ee.EncodeInt(int64(k2))
  10033. if esep {
  10034. ee.WriteMapElemValue()
  10035. }
  10036. ee.EncodeUint(uint64(v2))
  10037. }
  10038. }
  10039. ee.WriteMapEnd()
  10040. }
  10041. func (e *Encoder) fastpathEncMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  10042. fastpathTV.EncMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), e)
  10043. }
  10044. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, e *Encoder) {
  10045. if v == nil {
  10046. e.e.EncodeNil()
  10047. return
  10048. }
  10049. ee, esep := e.e, e.hh.hasElemSeparators()
  10050. ee.WriteMapStart(len(v))
  10051. if e.h.Canonical {
  10052. v2 := make([]int64, len(v))
  10053. var i int
  10054. for k, _ := range v {
  10055. v2[i] = int64(k)
  10056. i++
  10057. }
  10058. sort.Sort(intSlice(v2))
  10059. for _, k2 := range v2 {
  10060. if esep {
  10061. ee.WriteMapElemKey()
  10062. }
  10063. ee.EncodeInt(int64(int8(k2)))
  10064. if esep {
  10065. ee.WriteMapElemValue()
  10066. }
  10067. e.encode(v[int8(k2)])
  10068. }
  10069. } else {
  10070. for k2, v2 := range v {
  10071. if esep {
  10072. ee.WriteMapElemKey()
  10073. }
  10074. ee.EncodeInt(int64(k2))
  10075. if esep {
  10076. ee.WriteMapElemValue()
  10077. }
  10078. e.encode(v2)
  10079. }
  10080. }
  10081. ee.WriteMapEnd()
  10082. }
  10083. func (e *Encoder) fastpathEncMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  10084. fastpathTV.EncMapInt8IntV(rv2i(rv).(map[int8]int), e)
  10085. }
  10086. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, e *Encoder) {
  10087. if v == nil {
  10088. e.e.EncodeNil()
  10089. return
  10090. }
  10091. ee, esep := e.e, e.hh.hasElemSeparators()
  10092. ee.WriteMapStart(len(v))
  10093. if e.h.Canonical {
  10094. v2 := make([]int64, len(v))
  10095. var i int
  10096. for k, _ := range v {
  10097. v2[i] = int64(k)
  10098. i++
  10099. }
  10100. sort.Sort(intSlice(v2))
  10101. for _, k2 := range v2 {
  10102. if esep {
  10103. ee.WriteMapElemKey()
  10104. }
  10105. ee.EncodeInt(int64(int8(k2)))
  10106. if esep {
  10107. ee.WriteMapElemValue()
  10108. }
  10109. ee.EncodeInt(int64(v[int8(k2)]))
  10110. }
  10111. } else {
  10112. for k2, v2 := range v {
  10113. if esep {
  10114. ee.WriteMapElemKey()
  10115. }
  10116. ee.EncodeInt(int64(k2))
  10117. if esep {
  10118. ee.WriteMapElemValue()
  10119. }
  10120. ee.EncodeInt(int64(v2))
  10121. }
  10122. }
  10123. ee.WriteMapEnd()
  10124. }
  10125. func (e *Encoder) fastpathEncMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  10126. fastpathTV.EncMapInt8Int8V(rv2i(rv).(map[int8]int8), e)
  10127. }
  10128. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, e *Encoder) {
  10129. if v == nil {
  10130. e.e.EncodeNil()
  10131. return
  10132. }
  10133. ee, esep := e.e, e.hh.hasElemSeparators()
  10134. ee.WriteMapStart(len(v))
  10135. if e.h.Canonical {
  10136. v2 := make([]int64, len(v))
  10137. var i int
  10138. for k, _ := range v {
  10139. v2[i] = int64(k)
  10140. i++
  10141. }
  10142. sort.Sort(intSlice(v2))
  10143. for _, k2 := range v2 {
  10144. if esep {
  10145. ee.WriteMapElemKey()
  10146. }
  10147. ee.EncodeInt(int64(int8(k2)))
  10148. if esep {
  10149. ee.WriteMapElemValue()
  10150. }
  10151. ee.EncodeInt(int64(v[int8(k2)]))
  10152. }
  10153. } else {
  10154. for k2, v2 := range v {
  10155. if esep {
  10156. ee.WriteMapElemKey()
  10157. }
  10158. ee.EncodeInt(int64(k2))
  10159. if esep {
  10160. ee.WriteMapElemValue()
  10161. }
  10162. ee.EncodeInt(int64(v2))
  10163. }
  10164. }
  10165. ee.WriteMapEnd()
  10166. }
  10167. func (e *Encoder) fastpathEncMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  10168. fastpathTV.EncMapInt8Int16V(rv2i(rv).(map[int8]int16), e)
  10169. }
  10170. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, e *Encoder) {
  10171. if v == nil {
  10172. e.e.EncodeNil()
  10173. return
  10174. }
  10175. ee, esep := e.e, e.hh.hasElemSeparators()
  10176. ee.WriteMapStart(len(v))
  10177. if e.h.Canonical {
  10178. v2 := make([]int64, len(v))
  10179. var i int
  10180. for k, _ := range v {
  10181. v2[i] = int64(k)
  10182. i++
  10183. }
  10184. sort.Sort(intSlice(v2))
  10185. for _, k2 := range v2 {
  10186. if esep {
  10187. ee.WriteMapElemKey()
  10188. }
  10189. ee.EncodeInt(int64(int8(k2)))
  10190. if esep {
  10191. ee.WriteMapElemValue()
  10192. }
  10193. ee.EncodeInt(int64(v[int8(k2)]))
  10194. }
  10195. } else {
  10196. for k2, v2 := range v {
  10197. if esep {
  10198. ee.WriteMapElemKey()
  10199. }
  10200. ee.EncodeInt(int64(k2))
  10201. if esep {
  10202. ee.WriteMapElemValue()
  10203. }
  10204. ee.EncodeInt(int64(v2))
  10205. }
  10206. }
  10207. ee.WriteMapEnd()
  10208. }
  10209. func (e *Encoder) fastpathEncMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  10210. fastpathTV.EncMapInt8Int32V(rv2i(rv).(map[int8]int32), e)
  10211. }
  10212. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, e *Encoder) {
  10213. if v == nil {
  10214. e.e.EncodeNil()
  10215. return
  10216. }
  10217. ee, esep := e.e, e.hh.hasElemSeparators()
  10218. ee.WriteMapStart(len(v))
  10219. if e.h.Canonical {
  10220. v2 := make([]int64, len(v))
  10221. var i int
  10222. for k, _ := range v {
  10223. v2[i] = int64(k)
  10224. i++
  10225. }
  10226. sort.Sort(intSlice(v2))
  10227. for _, k2 := range v2 {
  10228. if esep {
  10229. ee.WriteMapElemKey()
  10230. }
  10231. ee.EncodeInt(int64(int8(k2)))
  10232. if esep {
  10233. ee.WriteMapElemValue()
  10234. }
  10235. ee.EncodeInt(int64(v[int8(k2)]))
  10236. }
  10237. } else {
  10238. for k2, v2 := range v {
  10239. if esep {
  10240. ee.WriteMapElemKey()
  10241. }
  10242. ee.EncodeInt(int64(k2))
  10243. if esep {
  10244. ee.WriteMapElemValue()
  10245. }
  10246. ee.EncodeInt(int64(v2))
  10247. }
  10248. }
  10249. ee.WriteMapEnd()
  10250. }
  10251. func (e *Encoder) fastpathEncMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  10252. fastpathTV.EncMapInt8Int64V(rv2i(rv).(map[int8]int64), e)
  10253. }
  10254. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, e *Encoder) {
  10255. if v == nil {
  10256. e.e.EncodeNil()
  10257. return
  10258. }
  10259. ee, esep := e.e, e.hh.hasElemSeparators()
  10260. ee.WriteMapStart(len(v))
  10261. if e.h.Canonical {
  10262. v2 := make([]int64, len(v))
  10263. var i int
  10264. for k, _ := range v {
  10265. v2[i] = int64(k)
  10266. i++
  10267. }
  10268. sort.Sort(intSlice(v2))
  10269. for _, k2 := range v2 {
  10270. if esep {
  10271. ee.WriteMapElemKey()
  10272. }
  10273. ee.EncodeInt(int64(int8(k2)))
  10274. if esep {
  10275. ee.WriteMapElemValue()
  10276. }
  10277. ee.EncodeInt(int64(v[int8(k2)]))
  10278. }
  10279. } else {
  10280. for k2, v2 := range v {
  10281. if esep {
  10282. ee.WriteMapElemKey()
  10283. }
  10284. ee.EncodeInt(int64(k2))
  10285. if esep {
  10286. ee.WriteMapElemValue()
  10287. }
  10288. ee.EncodeInt(int64(v2))
  10289. }
  10290. }
  10291. ee.WriteMapEnd()
  10292. }
  10293. func (e *Encoder) fastpathEncMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  10294. fastpathTV.EncMapInt8Float32V(rv2i(rv).(map[int8]float32), e)
  10295. }
  10296. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, e *Encoder) {
  10297. if v == nil {
  10298. e.e.EncodeNil()
  10299. return
  10300. }
  10301. ee, esep := e.e, e.hh.hasElemSeparators()
  10302. ee.WriteMapStart(len(v))
  10303. if e.h.Canonical {
  10304. v2 := make([]int64, len(v))
  10305. var i int
  10306. for k, _ := range v {
  10307. v2[i] = int64(k)
  10308. i++
  10309. }
  10310. sort.Sort(intSlice(v2))
  10311. for _, k2 := range v2 {
  10312. if esep {
  10313. ee.WriteMapElemKey()
  10314. }
  10315. ee.EncodeInt(int64(int8(k2)))
  10316. if esep {
  10317. ee.WriteMapElemValue()
  10318. }
  10319. ee.EncodeFloat32(v[int8(k2)])
  10320. }
  10321. } else {
  10322. for k2, v2 := range v {
  10323. if esep {
  10324. ee.WriteMapElemKey()
  10325. }
  10326. ee.EncodeInt(int64(k2))
  10327. if esep {
  10328. ee.WriteMapElemValue()
  10329. }
  10330. ee.EncodeFloat32(v2)
  10331. }
  10332. }
  10333. ee.WriteMapEnd()
  10334. }
  10335. func (e *Encoder) fastpathEncMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  10336. fastpathTV.EncMapInt8Float64V(rv2i(rv).(map[int8]float64), e)
  10337. }
  10338. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, e *Encoder) {
  10339. if v == nil {
  10340. e.e.EncodeNil()
  10341. return
  10342. }
  10343. ee, esep := e.e, e.hh.hasElemSeparators()
  10344. ee.WriteMapStart(len(v))
  10345. if e.h.Canonical {
  10346. v2 := make([]int64, len(v))
  10347. var i int
  10348. for k, _ := range v {
  10349. v2[i] = int64(k)
  10350. i++
  10351. }
  10352. sort.Sort(intSlice(v2))
  10353. for _, k2 := range v2 {
  10354. if esep {
  10355. ee.WriteMapElemKey()
  10356. }
  10357. ee.EncodeInt(int64(int8(k2)))
  10358. if esep {
  10359. ee.WriteMapElemValue()
  10360. }
  10361. ee.EncodeFloat64(v[int8(k2)])
  10362. }
  10363. } else {
  10364. for k2, v2 := range v {
  10365. if esep {
  10366. ee.WriteMapElemKey()
  10367. }
  10368. ee.EncodeInt(int64(k2))
  10369. if esep {
  10370. ee.WriteMapElemValue()
  10371. }
  10372. ee.EncodeFloat64(v2)
  10373. }
  10374. }
  10375. ee.WriteMapEnd()
  10376. }
  10377. func (e *Encoder) fastpathEncMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  10378. fastpathTV.EncMapInt8BoolV(rv2i(rv).(map[int8]bool), e)
  10379. }
  10380. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, e *Encoder) {
  10381. if v == nil {
  10382. e.e.EncodeNil()
  10383. return
  10384. }
  10385. ee, esep := e.e, e.hh.hasElemSeparators()
  10386. ee.WriteMapStart(len(v))
  10387. if e.h.Canonical {
  10388. v2 := make([]int64, len(v))
  10389. var i int
  10390. for k, _ := range v {
  10391. v2[i] = int64(k)
  10392. i++
  10393. }
  10394. sort.Sort(intSlice(v2))
  10395. for _, k2 := range v2 {
  10396. if esep {
  10397. ee.WriteMapElemKey()
  10398. }
  10399. ee.EncodeInt(int64(int8(k2)))
  10400. if esep {
  10401. ee.WriteMapElemValue()
  10402. }
  10403. ee.EncodeBool(v[int8(k2)])
  10404. }
  10405. } else {
  10406. for k2, v2 := range v {
  10407. if esep {
  10408. ee.WriteMapElemKey()
  10409. }
  10410. ee.EncodeInt(int64(k2))
  10411. if esep {
  10412. ee.WriteMapElemValue()
  10413. }
  10414. ee.EncodeBool(v2)
  10415. }
  10416. }
  10417. ee.WriteMapEnd()
  10418. }
  10419. func (e *Encoder) fastpathEncMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  10420. fastpathTV.EncMapInt16IntfV(rv2i(rv).(map[int16]interface{}), e)
  10421. }
  10422. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, e *Encoder) {
  10423. if v == nil {
  10424. e.e.EncodeNil()
  10425. return
  10426. }
  10427. ee, esep := e.e, e.hh.hasElemSeparators()
  10428. ee.WriteMapStart(len(v))
  10429. if e.h.Canonical {
  10430. v2 := make([]int64, len(v))
  10431. var i int
  10432. for k, _ := range v {
  10433. v2[i] = int64(k)
  10434. i++
  10435. }
  10436. sort.Sort(intSlice(v2))
  10437. for _, k2 := range v2 {
  10438. if esep {
  10439. ee.WriteMapElemKey()
  10440. }
  10441. ee.EncodeInt(int64(int16(k2)))
  10442. if esep {
  10443. ee.WriteMapElemValue()
  10444. }
  10445. e.encode(v[int16(k2)])
  10446. }
  10447. } else {
  10448. for k2, v2 := range v {
  10449. if esep {
  10450. ee.WriteMapElemKey()
  10451. }
  10452. ee.EncodeInt(int64(k2))
  10453. if esep {
  10454. ee.WriteMapElemValue()
  10455. }
  10456. e.encode(v2)
  10457. }
  10458. }
  10459. ee.WriteMapEnd()
  10460. }
  10461. func (e *Encoder) fastpathEncMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  10462. fastpathTV.EncMapInt16StringV(rv2i(rv).(map[int16]string), e)
  10463. }
  10464. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, e *Encoder) {
  10465. if v == nil {
  10466. e.e.EncodeNil()
  10467. return
  10468. }
  10469. ee, esep := e.e, e.hh.hasElemSeparators()
  10470. ee.WriteMapStart(len(v))
  10471. if e.h.Canonical {
  10472. v2 := make([]int64, len(v))
  10473. var i int
  10474. for k, _ := range v {
  10475. v2[i] = int64(k)
  10476. i++
  10477. }
  10478. sort.Sort(intSlice(v2))
  10479. for _, k2 := range v2 {
  10480. if esep {
  10481. ee.WriteMapElemKey()
  10482. }
  10483. ee.EncodeInt(int64(int16(k2)))
  10484. if esep {
  10485. ee.WriteMapElemValue()
  10486. }
  10487. ee.EncodeString(cUTF8, v[int16(k2)])
  10488. }
  10489. } else {
  10490. for k2, v2 := range v {
  10491. if esep {
  10492. ee.WriteMapElemKey()
  10493. }
  10494. ee.EncodeInt(int64(k2))
  10495. if esep {
  10496. ee.WriteMapElemValue()
  10497. }
  10498. ee.EncodeString(cUTF8, v2)
  10499. }
  10500. }
  10501. ee.WriteMapEnd()
  10502. }
  10503. func (e *Encoder) fastpathEncMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  10504. fastpathTV.EncMapInt16UintV(rv2i(rv).(map[int16]uint), e)
  10505. }
  10506. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, e *Encoder) {
  10507. if v == nil {
  10508. e.e.EncodeNil()
  10509. return
  10510. }
  10511. ee, esep := e.e, e.hh.hasElemSeparators()
  10512. ee.WriteMapStart(len(v))
  10513. if e.h.Canonical {
  10514. v2 := make([]int64, len(v))
  10515. var i int
  10516. for k, _ := range v {
  10517. v2[i] = int64(k)
  10518. i++
  10519. }
  10520. sort.Sort(intSlice(v2))
  10521. for _, k2 := range v2 {
  10522. if esep {
  10523. ee.WriteMapElemKey()
  10524. }
  10525. ee.EncodeInt(int64(int16(k2)))
  10526. if esep {
  10527. ee.WriteMapElemValue()
  10528. }
  10529. ee.EncodeUint(uint64(v[int16(k2)]))
  10530. }
  10531. } else {
  10532. for k2, v2 := range v {
  10533. if esep {
  10534. ee.WriteMapElemKey()
  10535. }
  10536. ee.EncodeInt(int64(k2))
  10537. if esep {
  10538. ee.WriteMapElemValue()
  10539. }
  10540. ee.EncodeUint(uint64(v2))
  10541. }
  10542. }
  10543. ee.WriteMapEnd()
  10544. }
  10545. func (e *Encoder) fastpathEncMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  10546. fastpathTV.EncMapInt16Uint8V(rv2i(rv).(map[int16]uint8), e)
  10547. }
  10548. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, e *Encoder) {
  10549. if v == nil {
  10550. e.e.EncodeNil()
  10551. return
  10552. }
  10553. ee, esep := e.e, e.hh.hasElemSeparators()
  10554. ee.WriteMapStart(len(v))
  10555. if e.h.Canonical {
  10556. v2 := make([]int64, len(v))
  10557. var i int
  10558. for k, _ := range v {
  10559. v2[i] = int64(k)
  10560. i++
  10561. }
  10562. sort.Sort(intSlice(v2))
  10563. for _, k2 := range v2 {
  10564. if esep {
  10565. ee.WriteMapElemKey()
  10566. }
  10567. ee.EncodeInt(int64(int16(k2)))
  10568. if esep {
  10569. ee.WriteMapElemValue()
  10570. }
  10571. ee.EncodeUint(uint64(v[int16(k2)]))
  10572. }
  10573. } else {
  10574. for k2, v2 := range v {
  10575. if esep {
  10576. ee.WriteMapElemKey()
  10577. }
  10578. ee.EncodeInt(int64(k2))
  10579. if esep {
  10580. ee.WriteMapElemValue()
  10581. }
  10582. ee.EncodeUint(uint64(v2))
  10583. }
  10584. }
  10585. ee.WriteMapEnd()
  10586. }
  10587. func (e *Encoder) fastpathEncMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  10588. fastpathTV.EncMapInt16Uint16V(rv2i(rv).(map[int16]uint16), e)
  10589. }
  10590. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, e *Encoder) {
  10591. if v == nil {
  10592. e.e.EncodeNil()
  10593. return
  10594. }
  10595. ee, esep := e.e, e.hh.hasElemSeparators()
  10596. ee.WriteMapStart(len(v))
  10597. if e.h.Canonical {
  10598. v2 := make([]int64, len(v))
  10599. var i int
  10600. for k, _ := range v {
  10601. v2[i] = int64(k)
  10602. i++
  10603. }
  10604. sort.Sort(intSlice(v2))
  10605. for _, k2 := range v2 {
  10606. if esep {
  10607. ee.WriteMapElemKey()
  10608. }
  10609. ee.EncodeInt(int64(int16(k2)))
  10610. if esep {
  10611. ee.WriteMapElemValue()
  10612. }
  10613. ee.EncodeUint(uint64(v[int16(k2)]))
  10614. }
  10615. } else {
  10616. for k2, v2 := range v {
  10617. if esep {
  10618. ee.WriteMapElemKey()
  10619. }
  10620. ee.EncodeInt(int64(k2))
  10621. if esep {
  10622. ee.WriteMapElemValue()
  10623. }
  10624. ee.EncodeUint(uint64(v2))
  10625. }
  10626. }
  10627. ee.WriteMapEnd()
  10628. }
  10629. func (e *Encoder) fastpathEncMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  10630. fastpathTV.EncMapInt16Uint32V(rv2i(rv).(map[int16]uint32), e)
  10631. }
  10632. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, e *Encoder) {
  10633. if v == nil {
  10634. e.e.EncodeNil()
  10635. return
  10636. }
  10637. ee, esep := e.e, e.hh.hasElemSeparators()
  10638. ee.WriteMapStart(len(v))
  10639. if e.h.Canonical {
  10640. v2 := make([]int64, len(v))
  10641. var i int
  10642. for k, _ := range v {
  10643. v2[i] = int64(k)
  10644. i++
  10645. }
  10646. sort.Sort(intSlice(v2))
  10647. for _, k2 := range v2 {
  10648. if esep {
  10649. ee.WriteMapElemKey()
  10650. }
  10651. ee.EncodeInt(int64(int16(k2)))
  10652. if esep {
  10653. ee.WriteMapElemValue()
  10654. }
  10655. ee.EncodeUint(uint64(v[int16(k2)]))
  10656. }
  10657. } else {
  10658. for k2, v2 := range v {
  10659. if esep {
  10660. ee.WriteMapElemKey()
  10661. }
  10662. ee.EncodeInt(int64(k2))
  10663. if esep {
  10664. ee.WriteMapElemValue()
  10665. }
  10666. ee.EncodeUint(uint64(v2))
  10667. }
  10668. }
  10669. ee.WriteMapEnd()
  10670. }
  10671. func (e *Encoder) fastpathEncMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  10672. fastpathTV.EncMapInt16Uint64V(rv2i(rv).(map[int16]uint64), e)
  10673. }
  10674. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, e *Encoder) {
  10675. if v == nil {
  10676. e.e.EncodeNil()
  10677. return
  10678. }
  10679. ee, esep := e.e, e.hh.hasElemSeparators()
  10680. ee.WriteMapStart(len(v))
  10681. if e.h.Canonical {
  10682. v2 := make([]int64, len(v))
  10683. var i int
  10684. for k, _ := range v {
  10685. v2[i] = int64(k)
  10686. i++
  10687. }
  10688. sort.Sort(intSlice(v2))
  10689. for _, k2 := range v2 {
  10690. if esep {
  10691. ee.WriteMapElemKey()
  10692. }
  10693. ee.EncodeInt(int64(int16(k2)))
  10694. if esep {
  10695. ee.WriteMapElemValue()
  10696. }
  10697. ee.EncodeUint(uint64(v[int16(k2)]))
  10698. }
  10699. } else {
  10700. for k2, v2 := range v {
  10701. if esep {
  10702. ee.WriteMapElemKey()
  10703. }
  10704. ee.EncodeInt(int64(k2))
  10705. if esep {
  10706. ee.WriteMapElemValue()
  10707. }
  10708. ee.EncodeUint(uint64(v2))
  10709. }
  10710. }
  10711. ee.WriteMapEnd()
  10712. }
  10713. func (e *Encoder) fastpathEncMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  10714. fastpathTV.EncMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), e)
  10715. }
  10716. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, e *Encoder) {
  10717. if v == nil {
  10718. e.e.EncodeNil()
  10719. return
  10720. }
  10721. ee, esep := e.e, e.hh.hasElemSeparators()
  10722. ee.WriteMapStart(len(v))
  10723. if e.h.Canonical {
  10724. v2 := make([]int64, len(v))
  10725. var i int
  10726. for k, _ := range v {
  10727. v2[i] = int64(k)
  10728. i++
  10729. }
  10730. sort.Sort(intSlice(v2))
  10731. for _, k2 := range v2 {
  10732. if esep {
  10733. ee.WriteMapElemKey()
  10734. }
  10735. ee.EncodeInt(int64(int16(k2)))
  10736. if esep {
  10737. ee.WriteMapElemValue()
  10738. }
  10739. e.encode(v[int16(k2)])
  10740. }
  10741. } else {
  10742. for k2, v2 := range v {
  10743. if esep {
  10744. ee.WriteMapElemKey()
  10745. }
  10746. ee.EncodeInt(int64(k2))
  10747. if esep {
  10748. ee.WriteMapElemValue()
  10749. }
  10750. e.encode(v2)
  10751. }
  10752. }
  10753. ee.WriteMapEnd()
  10754. }
  10755. func (e *Encoder) fastpathEncMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  10756. fastpathTV.EncMapInt16IntV(rv2i(rv).(map[int16]int), e)
  10757. }
  10758. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, e *Encoder) {
  10759. if v == nil {
  10760. e.e.EncodeNil()
  10761. return
  10762. }
  10763. ee, esep := e.e, e.hh.hasElemSeparators()
  10764. ee.WriteMapStart(len(v))
  10765. if e.h.Canonical {
  10766. v2 := make([]int64, len(v))
  10767. var i int
  10768. for k, _ := range v {
  10769. v2[i] = int64(k)
  10770. i++
  10771. }
  10772. sort.Sort(intSlice(v2))
  10773. for _, k2 := range v2 {
  10774. if esep {
  10775. ee.WriteMapElemKey()
  10776. }
  10777. ee.EncodeInt(int64(int16(k2)))
  10778. if esep {
  10779. ee.WriteMapElemValue()
  10780. }
  10781. ee.EncodeInt(int64(v[int16(k2)]))
  10782. }
  10783. } else {
  10784. for k2, v2 := range v {
  10785. if esep {
  10786. ee.WriteMapElemKey()
  10787. }
  10788. ee.EncodeInt(int64(k2))
  10789. if esep {
  10790. ee.WriteMapElemValue()
  10791. }
  10792. ee.EncodeInt(int64(v2))
  10793. }
  10794. }
  10795. ee.WriteMapEnd()
  10796. }
  10797. func (e *Encoder) fastpathEncMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  10798. fastpathTV.EncMapInt16Int8V(rv2i(rv).(map[int16]int8), e)
  10799. }
  10800. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, e *Encoder) {
  10801. if v == nil {
  10802. e.e.EncodeNil()
  10803. return
  10804. }
  10805. ee, esep := e.e, e.hh.hasElemSeparators()
  10806. ee.WriteMapStart(len(v))
  10807. if e.h.Canonical {
  10808. v2 := make([]int64, len(v))
  10809. var i int
  10810. for k, _ := range v {
  10811. v2[i] = int64(k)
  10812. i++
  10813. }
  10814. sort.Sort(intSlice(v2))
  10815. for _, k2 := range v2 {
  10816. if esep {
  10817. ee.WriteMapElemKey()
  10818. }
  10819. ee.EncodeInt(int64(int16(k2)))
  10820. if esep {
  10821. ee.WriteMapElemValue()
  10822. }
  10823. ee.EncodeInt(int64(v[int16(k2)]))
  10824. }
  10825. } else {
  10826. for k2, v2 := range v {
  10827. if esep {
  10828. ee.WriteMapElemKey()
  10829. }
  10830. ee.EncodeInt(int64(k2))
  10831. if esep {
  10832. ee.WriteMapElemValue()
  10833. }
  10834. ee.EncodeInt(int64(v2))
  10835. }
  10836. }
  10837. ee.WriteMapEnd()
  10838. }
  10839. func (e *Encoder) fastpathEncMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  10840. fastpathTV.EncMapInt16Int16V(rv2i(rv).(map[int16]int16), e)
  10841. }
  10842. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, e *Encoder) {
  10843. if v == nil {
  10844. e.e.EncodeNil()
  10845. return
  10846. }
  10847. ee, esep := e.e, e.hh.hasElemSeparators()
  10848. ee.WriteMapStart(len(v))
  10849. if e.h.Canonical {
  10850. v2 := make([]int64, len(v))
  10851. var i int
  10852. for k, _ := range v {
  10853. v2[i] = int64(k)
  10854. i++
  10855. }
  10856. sort.Sort(intSlice(v2))
  10857. for _, k2 := range v2 {
  10858. if esep {
  10859. ee.WriteMapElemKey()
  10860. }
  10861. ee.EncodeInt(int64(int16(k2)))
  10862. if esep {
  10863. ee.WriteMapElemValue()
  10864. }
  10865. ee.EncodeInt(int64(v[int16(k2)]))
  10866. }
  10867. } else {
  10868. for k2, v2 := range v {
  10869. if esep {
  10870. ee.WriteMapElemKey()
  10871. }
  10872. ee.EncodeInt(int64(k2))
  10873. if esep {
  10874. ee.WriteMapElemValue()
  10875. }
  10876. ee.EncodeInt(int64(v2))
  10877. }
  10878. }
  10879. ee.WriteMapEnd()
  10880. }
  10881. func (e *Encoder) fastpathEncMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  10882. fastpathTV.EncMapInt16Int32V(rv2i(rv).(map[int16]int32), e)
  10883. }
  10884. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, e *Encoder) {
  10885. if v == nil {
  10886. e.e.EncodeNil()
  10887. return
  10888. }
  10889. ee, esep := e.e, e.hh.hasElemSeparators()
  10890. ee.WriteMapStart(len(v))
  10891. if e.h.Canonical {
  10892. v2 := make([]int64, len(v))
  10893. var i int
  10894. for k, _ := range v {
  10895. v2[i] = int64(k)
  10896. i++
  10897. }
  10898. sort.Sort(intSlice(v2))
  10899. for _, k2 := range v2 {
  10900. if esep {
  10901. ee.WriteMapElemKey()
  10902. }
  10903. ee.EncodeInt(int64(int16(k2)))
  10904. if esep {
  10905. ee.WriteMapElemValue()
  10906. }
  10907. ee.EncodeInt(int64(v[int16(k2)]))
  10908. }
  10909. } else {
  10910. for k2, v2 := range v {
  10911. if esep {
  10912. ee.WriteMapElemKey()
  10913. }
  10914. ee.EncodeInt(int64(k2))
  10915. if esep {
  10916. ee.WriteMapElemValue()
  10917. }
  10918. ee.EncodeInt(int64(v2))
  10919. }
  10920. }
  10921. ee.WriteMapEnd()
  10922. }
  10923. func (e *Encoder) fastpathEncMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  10924. fastpathTV.EncMapInt16Int64V(rv2i(rv).(map[int16]int64), e)
  10925. }
  10926. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, e *Encoder) {
  10927. if v == nil {
  10928. e.e.EncodeNil()
  10929. return
  10930. }
  10931. ee, esep := e.e, e.hh.hasElemSeparators()
  10932. ee.WriteMapStart(len(v))
  10933. if e.h.Canonical {
  10934. v2 := make([]int64, len(v))
  10935. var i int
  10936. for k, _ := range v {
  10937. v2[i] = int64(k)
  10938. i++
  10939. }
  10940. sort.Sort(intSlice(v2))
  10941. for _, k2 := range v2 {
  10942. if esep {
  10943. ee.WriteMapElemKey()
  10944. }
  10945. ee.EncodeInt(int64(int16(k2)))
  10946. if esep {
  10947. ee.WriteMapElemValue()
  10948. }
  10949. ee.EncodeInt(int64(v[int16(k2)]))
  10950. }
  10951. } else {
  10952. for k2, v2 := range v {
  10953. if esep {
  10954. ee.WriteMapElemKey()
  10955. }
  10956. ee.EncodeInt(int64(k2))
  10957. if esep {
  10958. ee.WriteMapElemValue()
  10959. }
  10960. ee.EncodeInt(int64(v2))
  10961. }
  10962. }
  10963. ee.WriteMapEnd()
  10964. }
  10965. func (e *Encoder) fastpathEncMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  10966. fastpathTV.EncMapInt16Float32V(rv2i(rv).(map[int16]float32), e)
  10967. }
  10968. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, e *Encoder) {
  10969. if v == nil {
  10970. e.e.EncodeNil()
  10971. return
  10972. }
  10973. ee, esep := e.e, e.hh.hasElemSeparators()
  10974. ee.WriteMapStart(len(v))
  10975. if e.h.Canonical {
  10976. v2 := make([]int64, len(v))
  10977. var i int
  10978. for k, _ := range v {
  10979. v2[i] = int64(k)
  10980. i++
  10981. }
  10982. sort.Sort(intSlice(v2))
  10983. for _, k2 := range v2 {
  10984. if esep {
  10985. ee.WriteMapElemKey()
  10986. }
  10987. ee.EncodeInt(int64(int16(k2)))
  10988. if esep {
  10989. ee.WriteMapElemValue()
  10990. }
  10991. ee.EncodeFloat32(v[int16(k2)])
  10992. }
  10993. } else {
  10994. for k2, v2 := range v {
  10995. if esep {
  10996. ee.WriteMapElemKey()
  10997. }
  10998. ee.EncodeInt(int64(k2))
  10999. if esep {
  11000. ee.WriteMapElemValue()
  11001. }
  11002. ee.EncodeFloat32(v2)
  11003. }
  11004. }
  11005. ee.WriteMapEnd()
  11006. }
  11007. func (e *Encoder) fastpathEncMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  11008. fastpathTV.EncMapInt16Float64V(rv2i(rv).(map[int16]float64), e)
  11009. }
  11010. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, e *Encoder) {
  11011. if v == nil {
  11012. e.e.EncodeNil()
  11013. return
  11014. }
  11015. ee, esep := e.e, e.hh.hasElemSeparators()
  11016. ee.WriteMapStart(len(v))
  11017. if e.h.Canonical {
  11018. v2 := make([]int64, len(v))
  11019. var i int
  11020. for k, _ := range v {
  11021. v2[i] = int64(k)
  11022. i++
  11023. }
  11024. sort.Sort(intSlice(v2))
  11025. for _, k2 := range v2 {
  11026. if esep {
  11027. ee.WriteMapElemKey()
  11028. }
  11029. ee.EncodeInt(int64(int16(k2)))
  11030. if esep {
  11031. ee.WriteMapElemValue()
  11032. }
  11033. ee.EncodeFloat64(v[int16(k2)])
  11034. }
  11035. } else {
  11036. for k2, v2 := range v {
  11037. if esep {
  11038. ee.WriteMapElemKey()
  11039. }
  11040. ee.EncodeInt(int64(k2))
  11041. if esep {
  11042. ee.WriteMapElemValue()
  11043. }
  11044. ee.EncodeFloat64(v2)
  11045. }
  11046. }
  11047. ee.WriteMapEnd()
  11048. }
  11049. func (e *Encoder) fastpathEncMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  11050. fastpathTV.EncMapInt16BoolV(rv2i(rv).(map[int16]bool), e)
  11051. }
  11052. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, e *Encoder) {
  11053. if v == nil {
  11054. e.e.EncodeNil()
  11055. return
  11056. }
  11057. ee, esep := e.e, e.hh.hasElemSeparators()
  11058. ee.WriteMapStart(len(v))
  11059. if e.h.Canonical {
  11060. v2 := make([]int64, len(v))
  11061. var i int
  11062. for k, _ := range v {
  11063. v2[i] = int64(k)
  11064. i++
  11065. }
  11066. sort.Sort(intSlice(v2))
  11067. for _, k2 := range v2 {
  11068. if esep {
  11069. ee.WriteMapElemKey()
  11070. }
  11071. ee.EncodeInt(int64(int16(k2)))
  11072. if esep {
  11073. ee.WriteMapElemValue()
  11074. }
  11075. ee.EncodeBool(v[int16(k2)])
  11076. }
  11077. } else {
  11078. for k2, v2 := range v {
  11079. if esep {
  11080. ee.WriteMapElemKey()
  11081. }
  11082. ee.EncodeInt(int64(k2))
  11083. if esep {
  11084. ee.WriteMapElemValue()
  11085. }
  11086. ee.EncodeBool(v2)
  11087. }
  11088. }
  11089. ee.WriteMapEnd()
  11090. }
  11091. func (e *Encoder) fastpathEncMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  11092. fastpathTV.EncMapInt32IntfV(rv2i(rv).(map[int32]interface{}), e)
  11093. }
  11094. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, e *Encoder) {
  11095. if v == nil {
  11096. e.e.EncodeNil()
  11097. return
  11098. }
  11099. ee, esep := e.e, e.hh.hasElemSeparators()
  11100. ee.WriteMapStart(len(v))
  11101. if e.h.Canonical {
  11102. v2 := make([]int64, len(v))
  11103. var i int
  11104. for k, _ := range v {
  11105. v2[i] = int64(k)
  11106. i++
  11107. }
  11108. sort.Sort(intSlice(v2))
  11109. for _, k2 := range v2 {
  11110. if esep {
  11111. ee.WriteMapElemKey()
  11112. }
  11113. ee.EncodeInt(int64(int32(k2)))
  11114. if esep {
  11115. ee.WriteMapElemValue()
  11116. }
  11117. e.encode(v[int32(k2)])
  11118. }
  11119. } else {
  11120. for k2, v2 := range v {
  11121. if esep {
  11122. ee.WriteMapElemKey()
  11123. }
  11124. ee.EncodeInt(int64(k2))
  11125. if esep {
  11126. ee.WriteMapElemValue()
  11127. }
  11128. e.encode(v2)
  11129. }
  11130. }
  11131. ee.WriteMapEnd()
  11132. }
  11133. func (e *Encoder) fastpathEncMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  11134. fastpathTV.EncMapInt32StringV(rv2i(rv).(map[int32]string), e)
  11135. }
  11136. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, e *Encoder) {
  11137. if v == nil {
  11138. e.e.EncodeNil()
  11139. return
  11140. }
  11141. ee, esep := e.e, e.hh.hasElemSeparators()
  11142. ee.WriteMapStart(len(v))
  11143. if e.h.Canonical {
  11144. v2 := make([]int64, len(v))
  11145. var i int
  11146. for k, _ := range v {
  11147. v2[i] = int64(k)
  11148. i++
  11149. }
  11150. sort.Sort(intSlice(v2))
  11151. for _, k2 := range v2 {
  11152. if esep {
  11153. ee.WriteMapElemKey()
  11154. }
  11155. ee.EncodeInt(int64(int32(k2)))
  11156. if esep {
  11157. ee.WriteMapElemValue()
  11158. }
  11159. ee.EncodeString(cUTF8, v[int32(k2)])
  11160. }
  11161. } else {
  11162. for k2, v2 := range v {
  11163. if esep {
  11164. ee.WriteMapElemKey()
  11165. }
  11166. ee.EncodeInt(int64(k2))
  11167. if esep {
  11168. ee.WriteMapElemValue()
  11169. }
  11170. ee.EncodeString(cUTF8, v2)
  11171. }
  11172. }
  11173. ee.WriteMapEnd()
  11174. }
  11175. func (e *Encoder) fastpathEncMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  11176. fastpathTV.EncMapInt32UintV(rv2i(rv).(map[int32]uint), e)
  11177. }
  11178. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, e *Encoder) {
  11179. if v == nil {
  11180. e.e.EncodeNil()
  11181. return
  11182. }
  11183. ee, esep := e.e, e.hh.hasElemSeparators()
  11184. ee.WriteMapStart(len(v))
  11185. if e.h.Canonical {
  11186. v2 := make([]int64, len(v))
  11187. var i int
  11188. for k, _ := range v {
  11189. v2[i] = int64(k)
  11190. i++
  11191. }
  11192. sort.Sort(intSlice(v2))
  11193. for _, k2 := range v2 {
  11194. if esep {
  11195. ee.WriteMapElemKey()
  11196. }
  11197. ee.EncodeInt(int64(int32(k2)))
  11198. if esep {
  11199. ee.WriteMapElemValue()
  11200. }
  11201. ee.EncodeUint(uint64(v[int32(k2)]))
  11202. }
  11203. } else {
  11204. for k2, v2 := range v {
  11205. if esep {
  11206. ee.WriteMapElemKey()
  11207. }
  11208. ee.EncodeInt(int64(k2))
  11209. if esep {
  11210. ee.WriteMapElemValue()
  11211. }
  11212. ee.EncodeUint(uint64(v2))
  11213. }
  11214. }
  11215. ee.WriteMapEnd()
  11216. }
  11217. func (e *Encoder) fastpathEncMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  11218. fastpathTV.EncMapInt32Uint8V(rv2i(rv).(map[int32]uint8), e)
  11219. }
  11220. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, e *Encoder) {
  11221. if v == nil {
  11222. e.e.EncodeNil()
  11223. return
  11224. }
  11225. ee, esep := e.e, e.hh.hasElemSeparators()
  11226. ee.WriteMapStart(len(v))
  11227. if e.h.Canonical {
  11228. v2 := make([]int64, len(v))
  11229. var i int
  11230. for k, _ := range v {
  11231. v2[i] = int64(k)
  11232. i++
  11233. }
  11234. sort.Sort(intSlice(v2))
  11235. for _, k2 := range v2 {
  11236. if esep {
  11237. ee.WriteMapElemKey()
  11238. }
  11239. ee.EncodeInt(int64(int32(k2)))
  11240. if esep {
  11241. ee.WriteMapElemValue()
  11242. }
  11243. ee.EncodeUint(uint64(v[int32(k2)]))
  11244. }
  11245. } else {
  11246. for k2, v2 := range v {
  11247. if esep {
  11248. ee.WriteMapElemKey()
  11249. }
  11250. ee.EncodeInt(int64(k2))
  11251. if esep {
  11252. ee.WriteMapElemValue()
  11253. }
  11254. ee.EncodeUint(uint64(v2))
  11255. }
  11256. }
  11257. ee.WriteMapEnd()
  11258. }
  11259. func (e *Encoder) fastpathEncMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  11260. fastpathTV.EncMapInt32Uint16V(rv2i(rv).(map[int32]uint16), e)
  11261. }
  11262. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, e *Encoder) {
  11263. if v == nil {
  11264. e.e.EncodeNil()
  11265. return
  11266. }
  11267. ee, esep := e.e, e.hh.hasElemSeparators()
  11268. ee.WriteMapStart(len(v))
  11269. if e.h.Canonical {
  11270. v2 := make([]int64, len(v))
  11271. var i int
  11272. for k, _ := range v {
  11273. v2[i] = int64(k)
  11274. i++
  11275. }
  11276. sort.Sort(intSlice(v2))
  11277. for _, k2 := range v2 {
  11278. if esep {
  11279. ee.WriteMapElemKey()
  11280. }
  11281. ee.EncodeInt(int64(int32(k2)))
  11282. if esep {
  11283. ee.WriteMapElemValue()
  11284. }
  11285. ee.EncodeUint(uint64(v[int32(k2)]))
  11286. }
  11287. } else {
  11288. for k2, v2 := range v {
  11289. if esep {
  11290. ee.WriteMapElemKey()
  11291. }
  11292. ee.EncodeInt(int64(k2))
  11293. if esep {
  11294. ee.WriteMapElemValue()
  11295. }
  11296. ee.EncodeUint(uint64(v2))
  11297. }
  11298. }
  11299. ee.WriteMapEnd()
  11300. }
  11301. func (e *Encoder) fastpathEncMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  11302. fastpathTV.EncMapInt32Uint32V(rv2i(rv).(map[int32]uint32), e)
  11303. }
  11304. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, e *Encoder) {
  11305. if v == nil {
  11306. e.e.EncodeNil()
  11307. return
  11308. }
  11309. ee, esep := e.e, e.hh.hasElemSeparators()
  11310. ee.WriteMapStart(len(v))
  11311. if e.h.Canonical {
  11312. v2 := make([]int64, len(v))
  11313. var i int
  11314. for k, _ := range v {
  11315. v2[i] = int64(k)
  11316. i++
  11317. }
  11318. sort.Sort(intSlice(v2))
  11319. for _, k2 := range v2 {
  11320. if esep {
  11321. ee.WriteMapElemKey()
  11322. }
  11323. ee.EncodeInt(int64(int32(k2)))
  11324. if esep {
  11325. ee.WriteMapElemValue()
  11326. }
  11327. ee.EncodeUint(uint64(v[int32(k2)]))
  11328. }
  11329. } else {
  11330. for k2, v2 := range v {
  11331. if esep {
  11332. ee.WriteMapElemKey()
  11333. }
  11334. ee.EncodeInt(int64(k2))
  11335. if esep {
  11336. ee.WriteMapElemValue()
  11337. }
  11338. ee.EncodeUint(uint64(v2))
  11339. }
  11340. }
  11341. ee.WriteMapEnd()
  11342. }
  11343. func (e *Encoder) fastpathEncMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  11344. fastpathTV.EncMapInt32Uint64V(rv2i(rv).(map[int32]uint64), e)
  11345. }
  11346. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, e *Encoder) {
  11347. if v == nil {
  11348. e.e.EncodeNil()
  11349. return
  11350. }
  11351. ee, esep := e.e, e.hh.hasElemSeparators()
  11352. ee.WriteMapStart(len(v))
  11353. if e.h.Canonical {
  11354. v2 := make([]int64, len(v))
  11355. var i int
  11356. for k, _ := range v {
  11357. v2[i] = int64(k)
  11358. i++
  11359. }
  11360. sort.Sort(intSlice(v2))
  11361. for _, k2 := range v2 {
  11362. if esep {
  11363. ee.WriteMapElemKey()
  11364. }
  11365. ee.EncodeInt(int64(int32(k2)))
  11366. if esep {
  11367. ee.WriteMapElemValue()
  11368. }
  11369. ee.EncodeUint(uint64(v[int32(k2)]))
  11370. }
  11371. } else {
  11372. for k2, v2 := range v {
  11373. if esep {
  11374. ee.WriteMapElemKey()
  11375. }
  11376. ee.EncodeInt(int64(k2))
  11377. if esep {
  11378. ee.WriteMapElemValue()
  11379. }
  11380. ee.EncodeUint(uint64(v2))
  11381. }
  11382. }
  11383. ee.WriteMapEnd()
  11384. }
  11385. func (e *Encoder) fastpathEncMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  11386. fastpathTV.EncMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), e)
  11387. }
  11388. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, e *Encoder) {
  11389. if v == nil {
  11390. e.e.EncodeNil()
  11391. return
  11392. }
  11393. ee, esep := e.e, e.hh.hasElemSeparators()
  11394. ee.WriteMapStart(len(v))
  11395. if e.h.Canonical {
  11396. v2 := make([]int64, len(v))
  11397. var i int
  11398. for k, _ := range v {
  11399. v2[i] = int64(k)
  11400. i++
  11401. }
  11402. sort.Sort(intSlice(v2))
  11403. for _, k2 := range v2 {
  11404. if esep {
  11405. ee.WriteMapElemKey()
  11406. }
  11407. ee.EncodeInt(int64(int32(k2)))
  11408. if esep {
  11409. ee.WriteMapElemValue()
  11410. }
  11411. e.encode(v[int32(k2)])
  11412. }
  11413. } else {
  11414. for k2, v2 := range v {
  11415. if esep {
  11416. ee.WriteMapElemKey()
  11417. }
  11418. ee.EncodeInt(int64(k2))
  11419. if esep {
  11420. ee.WriteMapElemValue()
  11421. }
  11422. e.encode(v2)
  11423. }
  11424. }
  11425. ee.WriteMapEnd()
  11426. }
  11427. func (e *Encoder) fastpathEncMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  11428. fastpathTV.EncMapInt32IntV(rv2i(rv).(map[int32]int), e)
  11429. }
  11430. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, e *Encoder) {
  11431. if v == nil {
  11432. e.e.EncodeNil()
  11433. return
  11434. }
  11435. ee, esep := e.e, e.hh.hasElemSeparators()
  11436. ee.WriteMapStart(len(v))
  11437. if e.h.Canonical {
  11438. v2 := make([]int64, len(v))
  11439. var i int
  11440. for k, _ := range v {
  11441. v2[i] = int64(k)
  11442. i++
  11443. }
  11444. sort.Sort(intSlice(v2))
  11445. for _, k2 := range v2 {
  11446. if esep {
  11447. ee.WriteMapElemKey()
  11448. }
  11449. ee.EncodeInt(int64(int32(k2)))
  11450. if esep {
  11451. ee.WriteMapElemValue()
  11452. }
  11453. ee.EncodeInt(int64(v[int32(k2)]))
  11454. }
  11455. } else {
  11456. for k2, v2 := range v {
  11457. if esep {
  11458. ee.WriteMapElemKey()
  11459. }
  11460. ee.EncodeInt(int64(k2))
  11461. if esep {
  11462. ee.WriteMapElemValue()
  11463. }
  11464. ee.EncodeInt(int64(v2))
  11465. }
  11466. }
  11467. ee.WriteMapEnd()
  11468. }
  11469. func (e *Encoder) fastpathEncMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  11470. fastpathTV.EncMapInt32Int8V(rv2i(rv).(map[int32]int8), e)
  11471. }
  11472. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, e *Encoder) {
  11473. if v == nil {
  11474. e.e.EncodeNil()
  11475. return
  11476. }
  11477. ee, esep := e.e, e.hh.hasElemSeparators()
  11478. ee.WriteMapStart(len(v))
  11479. if e.h.Canonical {
  11480. v2 := make([]int64, len(v))
  11481. var i int
  11482. for k, _ := range v {
  11483. v2[i] = int64(k)
  11484. i++
  11485. }
  11486. sort.Sort(intSlice(v2))
  11487. for _, k2 := range v2 {
  11488. if esep {
  11489. ee.WriteMapElemKey()
  11490. }
  11491. ee.EncodeInt(int64(int32(k2)))
  11492. if esep {
  11493. ee.WriteMapElemValue()
  11494. }
  11495. ee.EncodeInt(int64(v[int32(k2)]))
  11496. }
  11497. } else {
  11498. for k2, v2 := range v {
  11499. if esep {
  11500. ee.WriteMapElemKey()
  11501. }
  11502. ee.EncodeInt(int64(k2))
  11503. if esep {
  11504. ee.WriteMapElemValue()
  11505. }
  11506. ee.EncodeInt(int64(v2))
  11507. }
  11508. }
  11509. ee.WriteMapEnd()
  11510. }
  11511. func (e *Encoder) fastpathEncMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  11512. fastpathTV.EncMapInt32Int16V(rv2i(rv).(map[int32]int16), e)
  11513. }
  11514. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, e *Encoder) {
  11515. if v == nil {
  11516. e.e.EncodeNil()
  11517. return
  11518. }
  11519. ee, esep := e.e, e.hh.hasElemSeparators()
  11520. ee.WriteMapStart(len(v))
  11521. if e.h.Canonical {
  11522. v2 := make([]int64, len(v))
  11523. var i int
  11524. for k, _ := range v {
  11525. v2[i] = int64(k)
  11526. i++
  11527. }
  11528. sort.Sort(intSlice(v2))
  11529. for _, k2 := range v2 {
  11530. if esep {
  11531. ee.WriteMapElemKey()
  11532. }
  11533. ee.EncodeInt(int64(int32(k2)))
  11534. if esep {
  11535. ee.WriteMapElemValue()
  11536. }
  11537. ee.EncodeInt(int64(v[int32(k2)]))
  11538. }
  11539. } else {
  11540. for k2, v2 := range v {
  11541. if esep {
  11542. ee.WriteMapElemKey()
  11543. }
  11544. ee.EncodeInt(int64(k2))
  11545. if esep {
  11546. ee.WriteMapElemValue()
  11547. }
  11548. ee.EncodeInt(int64(v2))
  11549. }
  11550. }
  11551. ee.WriteMapEnd()
  11552. }
  11553. func (e *Encoder) fastpathEncMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  11554. fastpathTV.EncMapInt32Int32V(rv2i(rv).(map[int32]int32), e)
  11555. }
  11556. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, e *Encoder) {
  11557. if v == nil {
  11558. e.e.EncodeNil()
  11559. return
  11560. }
  11561. ee, esep := e.e, e.hh.hasElemSeparators()
  11562. ee.WriteMapStart(len(v))
  11563. if e.h.Canonical {
  11564. v2 := make([]int64, len(v))
  11565. var i int
  11566. for k, _ := range v {
  11567. v2[i] = int64(k)
  11568. i++
  11569. }
  11570. sort.Sort(intSlice(v2))
  11571. for _, k2 := range v2 {
  11572. if esep {
  11573. ee.WriteMapElemKey()
  11574. }
  11575. ee.EncodeInt(int64(int32(k2)))
  11576. if esep {
  11577. ee.WriteMapElemValue()
  11578. }
  11579. ee.EncodeInt(int64(v[int32(k2)]))
  11580. }
  11581. } else {
  11582. for k2, v2 := range v {
  11583. if esep {
  11584. ee.WriteMapElemKey()
  11585. }
  11586. ee.EncodeInt(int64(k2))
  11587. if esep {
  11588. ee.WriteMapElemValue()
  11589. }
  11590. ee.EncodeInt(int64(v2))
  11591. }
  11592. }
  11593. ee.WriteMapEnd()
  11594. }
  11595. func (e *Encoder) fastpathEncMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  11596. fastpathTV.EncMapInt32Int64V(rv2i(rv).(map[int32]int64), e)
  11597. }
  11598. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, e *Encoder) {
  11599. if v == nil {
  11600. e.e.EncodeNil()
  11601. return
  11602. }
  11603. ee, esep := e.e, e.hh.hasElemSeparators()
  11604. ee.WriteMapStart(len(v))
  11605. if e.h.Canonical {
  11606. v2 := make([]int64, len(v))
  11607. var i int
  11608. for k, _ := range v {
  11609. v2[i] = int64(k)
  11610. i++
  11611. }
  11612. sort.Sort(intSlice(v2))
  11613. for _, k2 := range v2 {
  11614. if esep {
  11615. ee.WriteMapElemKey()
  11616. }
  11617. ee.EncodeInt(int64(int32(k2)))
  11618. if esep {
  11619. ee.WriteMapElemValue()
  11620. }
  11621. ee.EncodeInt(int64(v[int32(k2)]))
  11622. }
  11623. } else {
  11624. for k2, v2 := range v {
  11625. if esep {
  11626. ee.WriteMapElemKey()
  11627. }
  11628. ee.EncodeInt(int64(k2))
  11629. if esep {
  11630. ee.WriteMapElemValue()
  11631. }
  11632. ee.EncodeInt(int64(v2))
  11633. }
  11634. }
  11635. ee.WriteMapEnd()
  11636. }
  11637. func (e *Encoder) fastpathEncMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  11638. fastpathTV.EncMapInt32Float32V(rv2i(rv).(map[int32]float32), e)
  11639. }
  11640. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, e *Encoder) {
  11641. if v == nil {
  11642. e.e.EncodeNil()
  11643. return
  11644. }
  11645. ee, esep := e.e, e.hh.hasElemSeparators()
  11646. ee.WriteMapStart(len(v))
  11647. if e.h.Canonical {
  11648. v2 := make([]int64, len(v))
  11649. var i int
  11650. for k, _ := range v {
  11651. v2[i] = int64(k)
  11652. i++
  11653. }
  11654. sort.Sort(intSlice(v2))
  11655. for _, k2 := range v2 {
  11656. if esep {
  11657. ee.WriteMapElemKey()
  11658. }
  11659. ee.EncodeInt(int64(int32(k2)))
  11660. if esep {
  11661. ee.WriteMapElemValue()
  11662. }
  11663. ee.EncodeFloat32(v[int32(k2)])
  11664. }
  11665. } else {
  11666. for k2, v2 := range v {
  11667. if esep {
  11668. ee.WriteMapElemKey()
  11669. }
  11670. ee.EncodeInt(int64(k2))
  11671. if esep {
  11672. ee.WriteMapElemValue()
  11673. }
  11674. ee.EncodeFloat32(v2)
  11675. }
  11676. }
  11677. ee.WriteMapEnd()
  11678. }
  11679. func (e *Encoder) fastpathEncMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  11680. fastpathTV.EncMapInt32Float64V(rv2i(rv).(map[int32]float64), e)
  11681. }
  11682. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, e *Encoder) {
  11683. if v == nil {
  11684. e.e.EncodeNil()
  11685. return
  11686. }
  11687. ee, esep := e.e, e.hh.hasElemSeparators()
  11688. ee.WriteMapStart(len(v))
  11689. if e.h.Canonical {
  11690. v2 := make([]int64, len(v))
  11691. var i int
  11692. for k, _ := range v {
  11693. v2[i] = int64(k)
  11694. i++
  11695. }
  11696. sort.Sort(intSlice(v2))
  11697. for _, k2 := range v2 {
  11698. if esep {
  11699. ee.WriteMapElemKey()
  11700. }
  11701. ee.EncodeInt(int64(int32(k2)))
  11702. if esep {
  11703. ee.WriteMapElemValue()
  11704. }
  11705. ee.EncodeFloat64(v[int32(k2)])
  11706. }
  11707. } else {
  11708. for k2, v2 := range v {
  11709. if esep {
  11710. ee.WriteMapElemKey()
  11711. }
  11712. ee.EncodeInt(int64(k2))
  11713. if esep {
  11714. ee.WriteMapElemValue()
  11715. }
  11716. ee.EncodeFloat64(v2)
  11717. }
  11718. }
  11719. ee.WriteMapEnd()
  11720. }
  11721. func (e *Encoder) fastpathEncMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  11722. fastpathTV.EncMapInt32BoolV(rv2i(rv).(map[int32]bool), e)
  11723. }
  11724. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, e *Encoder) {
  11725. if v == nil {
  11726. e.e.EncodeNil()
  11727. return
  11728. }
  11729. ee, esep := e.e, e.hh.hasElemSeparators()
  11730. ee.WriteMapStart(len(v))
  11731. if e.h.Canonical {
  11732. v2 := make([]int64, len(v))
  11733. var i int
  11734. for k, _ := range v {
  11735. v2[i] = int64(k)
  11736. i++
  11737. }
  11738. sort.Sort(intSlice(v2))
  11739. for _, k2 := range v2 {
  11740. if esep {
  11741. ee.WriteMapElemKey()
  11742. }
  11743. ee.EncodeInt(int64(int32(k2)))
  11744. if esep {
  11745. ee.WriteMapElemValue()
  11746. }
  11747. ee.EncodeBool(v[int32(k2)])
  11748. }
  11749. } else {
  11750. for k2, v2 := range v {
  11751. if esep {
  11752. ee.WriteMapElemKey()
  11753. }
  11754. ee.EncodeInt(int64(k2))
  11755. if esep {
  11756. ee.WriteMapElemValue()
  11757. }
  11758. ee.EncodeBool(v2)
  11759. }
  11760. }
  11761. ee.WriteMapEnd()
  11762. }
  11763. func (e *Encoder) fastpathEncMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  11764. fastpathTV.EncMapInt64IntfV(rv2i(rv).(map[int64]interface{}), e)
  11765. }
  11766. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, e *Encoder) {
  11767. if v == nil {
  11768. e.e.EncodeNil()
  11769. return
  11770. }
  11771. ee, esep := e.e, e.hh.hasElemSeparators()
  11772. ee.WriteMapStart(len(v))
  11773. if e.h.Canonical {
  11774. v2 := make([]int64, len(v))
  11775. var i int
  11776. for k, _ := range v {
  11777. v2[i] = int64(k)
  11778. i++
  11779. }
  11780. sort.Sort(intSlice(v2))
  11781. for _, k2 := range v2 {
  11782. if esep {
  11783. ee.WriteMapElemKey()
  11784. }
  11785. ee.EncodeInt(int64(int64(k2)))
  11786. if esep {
  11787. ee.WriteMapElemValue()
  11788. }
  11789. e.encode(v[int64(k2)])
  11790. }
  11791. } else {
  11792. for k2, v2 := range v {
  11793. if esep {
  11794. ee.WriteMapElemKey()
  11795. }
  11796. ee.EncodeInt(int64(k2))
  11797. if esep {
  11798. ee.WriteMapElemValue()
  11799. }
  11800. e.encode(v2)
  11801. }
  11802. }
  11803. ee.WriteMapEnd()
  11804. }
  11805. func (e *Encoder) fastpathEncMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  11806. fastpathTV.EncMapInt64StringV(rv2i(rv).(map[int64]string), e)
  11807. }
  11808. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, e *Encoder) {
  11809. if v == nil {
  11810. e.e.EncodeNil()
  11811. return
  11812. }
  11813. ee, esep := e.e, e.hh.hasElemSeparators()
  11814. ee.WriteMapStart(len(v))
  11815. if e.h.Canonical {
  11816. v2 := make([]int64, len(v))
  11817. var i int
  11818. for k, _ := range v {
  11819. v2[i] = int64(k)
  11820. i++
  11821. }
  11822. sort.Sort(intSlice(v2))
  11823. for _, k2 := range v2 {
  11824. if esep {
  11825. ee.WriteMapElemKey()
  11826. }
  11827. ee.EncodeInt(int64(int64(k2)))
  11828. if esep {
  11829. ee.WriteMapElemValue()
  11830. }
  11831. ee.EncodeString(cUTF8, v[int64(k2)])
  11832. }
  11833. } else {
  11834. for k2, v2 := range v {
  11835. if esep {
  11836. ee.WriteMapElemKey()
  11837. }
  11838. ee.EncodeInt(int64(k2))
  11839. if esep {
  11840. ee.WriteMapElemValue()
  11841. }
  11842. ee.EncodeString(cUTF8, v2)
  11843. }
  11844. }
  11845. ee.WriteMapEnd()
  11846. }
  11847. func (e *Encoder) fastpathEncMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  11848. fastpathTV.EncMapInt64UintV(rv2i(rv).(map[int64]uint), e)
  11849. }
  11850. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, e *Encoder) {
  11851. if v == nil {
  11852. e.e.EncodeNil()
  11853. return
  11854. }
  11855. ee, esep := e.e, e.hh.hasElemSeparators()
  11856. ee.WriteMapStart(len(v))
  11857. if e.h.Canonical {
  11858. v2 := make([]int64, len(v))
  11859. var i int
  11860. for k, _ := range v {
  11861. v2[i] = int64(k)
  11862. i++
  11863. }
  11864. sort.Sort(intSlice(v2))
  11865. for _, k2 := range v2 {
  11866. if esep {
  11867. ee.WriteMapElemKey()
  11868. }
  11869. ee.EncodeInt(int64(int64(k2)))
  11870. if esep {
  11871. ee.WriteMapElemValue()
  11872. }
  11873. ee.EncodeUint(uint64(v[int64(k2)]))
  11874. }
  11875. } else {
  11876. for k2, v2 := range v {
  11877. if esep {
  11878. ee.WriteMapElemKey()
  11879. }
  11880. ee.EncodeInt(int64(k2))
  11881. if esep {
  11882. ee.WriteMapElemValue()
  11883. }
  11884. ee.EncodeUint(uint64(v2))
  11885. }
  11886. }
  11887. ee.WriteMapEnd()
  11888. }
  11889. func (e *Encoder) fastpathEncMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  11890. fastpathTV.EncMapInt64Uint8V(rv2i(rv).(map[int64]uint8), e)
  11891. }
  11892. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, e *Encoder) {
  11893. if v == nil {
  11894. e.e.EncodeNil()
  11895. return
  11896. }
  11897. ee, esep := e.e, e.hh.hasElemSeparators()
  11898. ee.WriteMapStart(len(v))
  11899. if e.h.Canonical {
  11900. v2 := make([]int64, len(v))
  11901. var i int
  11902. for k, _ := range v {
  11903. v2[i] = int64(k)
  11904. i++
  11905. }
  11906. sort.Sort(intSlice(v2))
  11907. for _, k2 := range v2 {
  11908. if esep {
  11909. ee.WriteMapElemKey()
  11910. }
  11911. ee.EncodeInt(int64(int64(k2)))
  11912. if esep {
  11913. ee.WriteMapElemValue()
  11914. }
  11915. ee.EncodeUint(uint64(v[int64(k2)]))
  11916. }
  11917. } else {
  11918. for k2, v2 := range v {
  11919. if esep {
  11920. ee.WriteMapElemKey()
  11921. }
  11922. ee.EncodeInt(int64(k2))
  11923. if esep {
  11924. ee.WriteMapElemValue()
  11925. }
  11926. ee.EncodeUint(uint64(v2))
  11927. }
  11928. }
  11929. ee.WriteMapEnd()
  11930. }
  11931. func (e *Encoder) fastpathEncMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  11932. fastpathTV.EncMapInt64Uint16V(rv2i(rv).(map[int64]uint16), e)
  11933. }
  11934. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, e *Encoder) {
  11935. if v == nil {
  11936. e.e.EncodeNil()
  11937. return
  11938. }
  11939. ee, esep := e.e, e.hh.hasElemSeparators()
  11940. ee.WriteMapStart(len(v))
  11941. if e.h.Canonical {
  11942. v2 := make([]int64, len(v))
  11943. var i int
  11944. for k, _ := range v {
  11945. v2[i] = int64(k)
  11946. i++
  11947. }
  11948. sort.Sort(intSlice(v2))
  11949. for _, k2 := range v2 {
  11950. if esep {
  11951. ee.WriteMapElemKey()
  11952. }
  11953. ee.EncodeInt(int64(int64(k2)))
  11954. if esep {
  11955. ee.WriteMapElemValue()
  11956. }
  11957. ee.EncodeUint(uint64(v[int64(k2)]))
  11958. }
  11959. } else {
  11960. for k2, v2 := range v {
  11961. if esep {
  11962. ee.WriteMapElemKey()
  11963. }
  11964. ee.EncodeInt(int64(k2))
  11965. if esep {
  11966. ee.WriteMapElemValue()
  11967. }
  11968. ee.EncodeUint(uint64(v2))
  11969. }
  11970. }
  11971. ee.WriteMapEnd()
  11972. }
  11973. func (e *Encoder) fastpathEncMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  11974. fastpathTV.EncMapInt64Uint32V(rv2i(rv).(map[int64]uint32), e)
  11975. }
  11976. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, e *Encoder) {
  11977. if v == nil {
  11978. e.e.EncodeNil()
  11979. return
  11980. }
  11981. ee, esep := e.e, e.hh.hasElemSeparators()
  11982. ee.WriteMapStart(len(v))
  11983. if e.h.Canonical {
  11984. v2 := make([]int64, len(v))
  11985. var i int
  11986. for k, _ := range v {
  11987. v2[i] = int64(k)
  11988. i++
  11989. }
  11990. sort.Sort(intSlice(v2))
  11991. for _, k2 := range v2 {
  11992. if esep {
  11993. ee.WriteMapElemKey()
  11994. }
  11995. ee.EncodeInt(int64(int64(k2)))
  11996. if esep {
  11997. ee.WriteMapElemValue()
  11998. }
  11999. ee.EncodeUint(uint64(v[int64(k2)]))
  12000. }
  12001. } else {
  12002. for k2, v2 := range v {
  12003. if esep {
  12004. ee.WriteMapElemKey()
  12005. }
  12006. ee.EncodeInt(int64(k2))
  12007. if esep {
  12008. ee.WriteMapElemValue()
  12009. }
  12010. ee.EncodeUint(uint64(v2))
  12011. }
  12012. }
  12013. ee.WriteMapEnd()
  12014. }
  12015. func (e *Encoder) fastpathEncMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  12016. fastpathTV.EncMapInt64Uint64V(rv2i(rv).(map[int64]uint64), e)
  12017. }
  12018. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, e *Encoder) {
  12019. if v == nil {
  12020. e.e.EncodeNil()
  12021. return
  12022. }
  12023. ee, esep := e.e, e.hh.hasElemSeparators()
  12024. ee.WriteMapStart(len(v))
  12025. if e.h.Canonical {
  12026. v2 := make([]int64, len(v))
  12027. var i int
  12028. for k, _ := range v {
  12029. v2[i] = int64(k)
  12030. i++
  12031. }
  12032. sort.Sort(intSlice(v2))
  12033. for _, k2 := range v2 {
  12034. if esep {
  12035. ee.WriteMapElemKey()
  12036. }
  12037. ee.EncodeInt(int64(int64(k2)))
  12038. if esep {
  12039. ee.WriteMapElemValue()
  12040. }
  12041. ee.EncodeUint(uint64(v[int64(k2)]))
  12042. }
  12043. } else {
  12044. for k2, v2 := range v {
  12045. if esep {
  12046. ee.WriteMapElemKey()
  12047. }
  12048. ee.EncodeInt(int64(k2))
  12049. if esep {
  12050. ee.WriteMapElemValue()
  12051. }
  12052. ee.EncodeUint(uint64(v2))
  12053. }
  12054. }
  12055. ee.WriteMapEnd()
  12056. }
  12057. func (e *Encoder) fastpathEncMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  12058. fastpathTV.EncMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), e)
  12059. }
  12060. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, e *Encoder) {
  12061. if v == nil {
  12062. e.e.EncodeNil()
  12063. return
  12064. }
  12065. ee, esep := e.e, e.hh.hasElemSeparators()
  12066. ee.WriteMapStart(len(v))
  12067. if e.h.Canonical {
  12068. v2 := make([]int64, len(v))
  12069. var i int
  12070. for k, _ := range v {
  12071. v2[i] = int64(k)
  12072. i++
  12073. }
  12074. sort.Sort(intSlice(v2))
  12075. for _, k2 := range v2 {
  12076. if esep {
  12077. ee.WriteMapElemKey()
  12078. }
  12079. ee.EncodeInt(int64(int64(k2)))
  12080. if esep {
  12081. ee.WriteMapElemValue()
  12082. }
  12083. e.encode(v[int64(k2)])
  12084. }
  12085. } else {
  12086. for k2, v2 := range v {
  12087. if esep {
  12088. ee.WriteMapElemKey()
  12089. }
  12090. ee.EncodeInt(int64(k2))
  12091. if esep {
  12092. ee.WriteMapElemValue()
  12093. }
  12094. e.encode(v2)
  12095. }
  12096. }
  12097. ee.WriteMapEnd()
  12098. }
  12099. func (e *Encoder) fastpathEncMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  12100. fastpathTV.EncMapInt64IntV(rv2i(rv).(map[int64]int), e)
  12101. }
  12102. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, e *Encoder) {
  12103. if v == nil {
  12104. e.e.EncodeNil()
  12105. return
  12106. }
  12107. ee, esep := e.e, e.hh.hasElemSeparators()
  12108. ee.WriteMapStart(len(v))
  12109. if e.h.Canonical {
  12110. v2 := make([]int64, len(v))
  12111. var i int
  12112. for k, _ := range v {
  12113. v2[i] = int64(k)
  12114. i++
  12115. }
  12116. sort.Sort(intSlice(v2))
  12117. for _, k2 := range v2 {
  12118. if esep {
  12119. ee.WriteMapElemKey()
  12120. }
  12121. ee.EncodeInt(int64(int64(k2)))
  12122. if esep {
  12123. ee.WriteMapElemValue()
  12124. }
  12125. ee.EncodeInt(int64(v[int64(k2)]))
  12126. }
  12127. } else {
  12128. for k2, v2 := range v {
  12129. if esep {
  12130. ee.WriteMapElemKey()
  12131. }
  12132. ee.EncodeInt(int64(k2))
  12133. if esep {
  12134. ee.WriteMapElemValue()
  12135. }
  12136. ee.EncodeInt(int64(v2))
  12137. }
  12138. }
  12139. ee.WriteMapEnd()
  12140. }
  12141. func (e *Encoder) fastpathEncMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  12142. fastpathTV.EncMapInt64Int8V(rv2i(rv).(map[int64]int8), e)
  12143. }
  12144. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, e *Encoder) {
  12145. if v == nil {
  12146. e.e.EncodeNil()
  12147. return
  12148. }
  12149. ee, esep := e.e, e.hh.hasElemSeparators()
  12150. ee.WriteMapStart(len(v))
  12151. if e.h.Canonical {
  12152. v2 := make([]int64, len(v))
  12153. var i int
  12154. for k, _ := range v {
  12155. v2[i] = int64(k)
  12156. i++
  12157. }
  12158. sort.Sort(intSlice(v2))
  12159. for _, k2 := range v2 {
  12160. if esep {
  12161. ee.WriteMapElemKey()
  12162. }
  12163. ee.EncodeInt(int64(int64(k2)))
  12164. if esep {
  12165. ee.WriteMapElemValue()
  12166. }
  12167. ee.EncodeInt(int64(v[int64(k2)]))
  12168. }
  12169. } else {
  12170. for k2, v2 := range v {
  12171. if esep {
  12172. ee.WriteMapElemKey()
  12173. }
  12174. ee.EncodeInt(int64(k2))
  12175. if esep {
  12176. ee.WriteMapElemValue()
  12177. }
  12178. ee.EncodeInt(int64(v2))
  12179. }
  12180. }
  12181. ee.WriteMapEnd()
  12182. }
  12183. func (e *Encoder) fastpathEncMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  12184. fastpathTV.EncMapInt64Int16V(rv2i(rv).(map[int64]int16), e)
  12185. }
  12186. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, e *Encoder) {
  12187. if v == nil {
  12188. e.e.EncodeNil()
  12189. return
  12190. }
  12191. ee, esep := e.e, e.hh.hasElemSeparators()
  12192. ee.WriteMapStart(len(v))
  12193. if e.h.Canonical {
  12194. v2 := make([]int64, len(v))
  12195. var i int
  12196. for k, _ := range v {
  12197. v2[i] = int64(k)
  12198. i++
  12199. }
  12200. sort.Sort(intSlice(v2))
  12201. for _, k2 := range v2 {
  12202. if esep {
  12203. ee.WriteMapElemKey()
  12204. }
  12205. ee.EncodeInt(int64(int64(k2)))
  12206. if esep {
  12207. ee.WriteMapElemValue()
  12208. }
  12209. ee.EncodeInt(int64(v[int64(k2)]))
  12210. }
  12211. } else {
  12212. for k2, v2 := range v {
  12213. if esep {
  12214. ee.WriteMapElemKey()
  12215. }
  12216. ee.EncodeInt(int64(k2))
  12217. if esep {
  12218. ee.WriteMapElemValue()
  12219. }
  12220. ee.EncodeInt(int64(v2))
  12221. }
  12222. }
  12223. ee.WriteMapEnd()
  12224. }
  12225. func (e *Encoder) fastpathEncMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  12226. fastpathTV.EncMapInt64Int32V(rv2i(rv).(map[int64]int32), e)
  12227. }
  12228. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, e *Encoder) {
  12229. if v == nil {
  12230. e.e.EncodeNil()
  12231. return
  12232. }
  12233. ee, esep := e.e, e.hh.hasElemSeparators()
  12234. ee.WriteMapStart(len(v))
  12235. if e.h.Canonical {
  12236. v2 := make([]int64, len(v))
  12237. var i int
  12238. for k, _ := range v {
  12239. v2[i] = int64(k)
  12240. i++
  12241. }
  12242. sort.Sort(intSlice(v2))
  12243. for _, k2 := range v2 {
  12244. if esep {
  12245. ee.WriteMapElemKey()
  12246. }
  12247. ee.EncodeInt(int64(int64(k2)))
  12248. if esep {
  12249. ee.WriteMapElemValue()
  12250. }
  12251. ee.EncodeInt(int64(v[int64(k2)]))
  12252. }
  12253. } else {
  12254. for k2, v2 := range v {
  12255. if esep {
  12256. ee.WriteMapElemKey()
  12257. }
  12258. ee.EncodeInt(int64(k2))
  12259. if esep {
  12260. ee.WriteMapElemValue()
  12261. }
  12262. ee.EncodeInt(int64(v2))
  12263. }
  12264. }
  12265. ee.WriteMapEnd()
  12266. }
  12267. func (e *Encoder) fastpathEncMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  12268. fastpathTV.EncMapInt64Int64V(rv2i(rv).(map[int64]int64), e)
  12269. }
  12270. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, e *Encoder) {
  12271. if v == nil {
  12272. e.e.EncodeNil()
  12273. return
  12274. }
  12275. ee, esep := e.e, e.hh.hasElemSeparators()
  12276. ee.WriteMapStart(len(v))
  12277. if e.h.Canonical {
  12278. v2 := make([]int64, len(v))
  12279. var i int
  12280. for k, _ := range v {
  12281. v2[i] = int64(k)
  12282. i++
  12283. }
  12284. sort.Sort(intSlice(v2))
  12285. for _, k2 := range v2 {
  12286. if esep {
  12287. ee.WriteMapElemKey()
  12288. }
  12289. ee.EncodeInt(int64(int64(k2)))
  12290. if esep {
  12291. ee.WriteMapElemValue()
  12292. }
  12293. ee.EncodeInt(int64(v[int64(k2)]))
  12294. }
  12295. } else {
  12296. for k2, v2 := range v {
  12297. if esep {
  12298. ee.WriteMapElemKey()
  12299. }
  12300. ee.EncodeInt(int64(k2))
  12301. if esep {
  12302. ee.WriteMapElemValue()
  12303. }
  12304. ee.EncodeInt(int64(v2))
  12305. }
  12306. }
  12307. ee.WriteMapEnd()
  12308. }
  12309. func (e *Encoder) fastpathEncMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  12310. fastpathTV.EncMapInt64Float32V(rv2i(rv).(map[int64]float32), e)
  12311. }
  12312. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, e *Encoder) {
  12313. if v == nil {
  12314. e.e.EncodeNil()
  12315. return
  12316. }
  12317. ee, esep := e.e, e.hh.hasElemSeparators()
  12318. ee.WriteMapStart(len(v))
  12319. if e.h.Canonical {
  12320. v2 := make([]int64, len(v))
  12321. var i int
  12322. for k, _ := range v {
  12323. v2[i] = int64(k)
  12324. i++
  12325. }
  12326. sort.Sort(intSlice(v2))
  12327. for _, k2 := range v2 {
  12328. if esep {
  12329. ee.WriteMapElemKey()
  12330. }
  12331. ee.EncodeInt(int64(int64(k2)))
  12332. if esep {
  12333. ee.WriteMapElemValue()
  12334. }
  12335. ee.EncodeFloat32(v[int64(k2)])
  12336. }
  12337. } else {
  12338. for k2, v2 := range v {
  12339. if esep {
  12340. ee.WriteMapElemKey()
  12341. }
  12342. ee.EncodeInt(int64(k2))
  12343. if esep {
  12344. ee.WriteMapElemValue()
  12345. }
  12346. ee.EncodeFloat32(v2)
  12347. }
  12348. }
  12349. ee.WriteMapEnd()
  12350. }
  12351. func (e *Encoder) fastpathEncMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  12352. fastpathTV.EncMapInt64Float64V(rv2i(rv).(map[int64]float64), e)
  12353. }
  12354. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, e *Encoder) {
  12355. if v == nil {
  12356. e.e.EncodeNil()
  12357. return
  12358. }
  12359. ee, esep := e.e, e.hh.hasElemSeparators()
  12360. ee.WriteMapStart(len(v))
  12361. if e.h.Canonical {
  12362. v2 := make([]int64, len(v))
  12363. var i int
  12364. for k, _ := range v {
  12365. v2[i] = int64(k)
  12366. i++
  12367. }
  12368. sort.Sort(intSlice(v2))
  12369. for _, k2 := range v2 {
  12370. if esep {
  12371. ee.WriteMapElemKey()
  12372. }
  12373. ee.EncodeInt(int64(int64(k2)))
  12374. if esep {
  12375. ee.WriteMapElemValue()
  12376. }
  12377. ee.EncodeFloat64(v[int64(k2)])
  12378. }
  12379. } else {
  12380. for k2, v2 := range v {
  12381. if esep {
  12382. ee.WriteMapElemKey()
  12383. }
  12384. ee.EncodeInt(int64(k2))
  12385. if esep {
  12386. ee.WriteMapElemValue()
  12387. }
  12388. ee.EncodeFloat64(v2)
  12389. }
  12390. }
  12391. ee.WriteMapEnd()
  12392. }
  12393. func (e *Encoder) fastpathEncMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  12394. fastpathTV.EncMapInt64BoolV(rv2i(rv).(map[int64]bool), e)
  12395. }
  12396. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, e *Encoder) {
  12397. if v == nil {
  12398. e.e.EncodeNil()
  12399. return
  12400. }
  12401. ee, esep := e.e, e.hh.hasElemSeparators()
  12402. ee.WriteMapStart(len(v))
  12403. if e.h.Canonical {
  12404. v2 := make([]int64, len(v))
  12405. var i int
  12406. for k, _ := range v {
  12407. v2[i] = int64(k)
  12408. i++
  12409. }
  12410. sort.Sort(intSlice(v2))
  12411. for _, k2 := range v2 {
  12412. if esep {
  12413. ee.WriteMapElemKey()
  12414. }
  12415. ee.EncodeInt(int64(int64(k2)))
  12416. if esep {
  12417. ee.WriteMapElemValue()
  12418. }
  12419. ee.EncodeBool(v[int64(k2)])
  12420. }
  12421. } else {
  12422. for k2, v2 := range v {
  12423. if esep {
  12424. ee.WriteMapElemKey()
  12425. }
  12426. ee.EncodeInt(int64(k2))
  12427. if esep {
  12428. ee.WriteMapElemValue()
  12429. }
  12430. ee.EncodeBool(v2)
  12431. }
  12432. }
  12433. ee.WriteMapEnd()
  12434. }
  12435. func (e *Encoder) fastpathEncMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  12436. fastpathTV.EncMapBoolIntfV(rv2i(rv).(map[bool]interface{}), e)
  12437. }
  12438. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, e *Encoder) {
  12439. if v == nil {
  12440. e.e.EncodeNil()
  12441. return
  12442. }
  12443. ee, esep := e.e, e.hh.hasElemSeparators()
  12444. ee.WriteMapStart(len(v))
  12445. if e.h.Canonical {
  12446. v2 := make([]bool, len(v))
  12447. var i int
  12448. for k, _ := range v {
  12449. v2[i] = bool(k)
  12450. i++
  12451. }
  12452. sort.Sort(boolSlice(v2))
  12453. for _, k2 := range v2 {
  12454. if esep {
  12455. ee.WriteMapElemKey()
  12456. }
  12457. ee.EncodeBool(bool(k2))
  12458. if esep {
  12459. ee.WriteMapElemValue()
  12460. }
  12461. e.encode(v[bool(k2)])
  12462. }
  12463. } else {
  12464. for k2, v2 := range v {
  12465. if esep {
  12466. ee.WriteMapElemKey()
  12467. }
  12468. ee.EncodeBool(k2)
  12469. if esep {
  12470. ee.WriteMapElemValue()
  12471. }
  12472. e.encode(v2)
  12473. }
  12474. }
  12475. ee.WriteMapEnd()
  12476. }
  12477. func (e *Encoder) fastpathEncMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  12478. fastpathTV.EncMapBoolStringV(rv2i(rv).(map[bool]string), e)
  12479. }
  12480. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, e *Encoder) {
  12481. if v == nil {
  12482. e.e.EncodeNil()
  12483. return
  12484. }
  12485. ee, esep := e.e, e.hh.hasElemSeparators()
  12486. ee.WriteMapStart(len(v))
  12487. if e.h.Canonical {
  12488. v2 := make([]bool, len(v))
  12489. var i int
  12490. for k, _ := range v {
  12491. v2[i] = bool(k)
  12492. i++
  12493. }
  12494. sort.Sort(boolSlice(v2))
  12495. for _, k2 := range v2 {
  12496. if esep {
  12497. ee.WriteMapElemKey()
  12498. }
  12499. ee.EncodeBool(bool(k2))
  12500. if esep {
  12501. ee.WriteMapElemValue()
  12502. }
  12503. ee.EncodeString(cUTF8, v[bool(k2)])
  12504. }
  12505. } else {
  12506. for k2, v2 := range v {
  12507. if esep {
  12508. ee.WriteMapElemKey()
  12509. }
  12510. ee.EncodeBool(k2)
  12511. if esep {
  12512. ee.WriteMapElemValue()
  12513. }
  12514. ee.EncodeString(cUTF8, v2)
  12515. }
  12516. }
  12517. ee.WriteMapEnd()
  12518. }
  12519. func (e *Encoder) fastpathEncMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  12520. fastpathTV.EncMapBoolUintV(rv2i(rv).(map[bool]uint), e)
  12521. }
  12522. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, e *Encoder) {
  12523. if v == nil {
  12524. e.e.EncodeNil()
  12525. return
  12526. }
  12527. ee, esep := e.e, e.hh.hasElemSeparators()
  12528. ee.WriteMapStart(len(v))
  12529. if e.h.Canonical {
  12530. v2 := make([]bool, len(v))
  12531. var i int
  12532. for k, _ := range v {
  12533. v2[i] = bool(k)
  12534. i++
  12535. }
  12536. sort.Sort(boolSlice(v2))
  12537. for _, k2 := range v2 {
  12538. if esep {
  12539. ee.WriteMapElemKey()
  12540. }
  12541. ee.EncodeBool(bool(k2))
  12542. if esep {
  12543. ee.WriteMapElemValue()
  12544. }
  12545. ee.EncodeUint(uint64(v[bool(k2)]))
  12546. }
  12547. } else {
  12548. for k2, v2 := range v {
  12549. if esep {
  12550. ee.WriteMapElemKey()
  12551. }
  12552. ee.EncodeBool(k2)
  12553. if esep {
  12554. ee.WriteMapElemValue()
  12555. }
  12556. ee.EncodeUint(uint64(v2))
  12557. }
  12558. }
  12559. ee.WriteMapEnd()
  12560. }
  12561. func (e *Encoder) fastpathEncMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  12562. fastpathTV.EncMapBoolUint8V(rv2i(rv).(map[bool]uint8), e)
  12563. }
  12564. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, e *Encoder) {
  12565. if v == nil {
  12566. e.e.EncodeNil()
  12567. return
  12568. }
  12569. ee, esep := e.e, e.hh.hasElemSeparators()
  12570. ee.WriteMapStart(len(v))
  12571. if e.h.Canonical {
  12572. v2 := make([]bool, len(v))
  12573. var i int
  12574. for k, _ := range v {
  12575. v2[i] = bool(k)
  12576. i++
  12577. }
  12578. sort.Sort(boolSlice(v2))
  12579. for _, k2 := range v2 {
  12580. if esep {
  12581. ee.WriteMapElemKey()
  12582. }
  12583. ee.EncodeBool(bool(k2))
  12584. if esep {
  12585. ee.WriteMapElemValue()
  12586. }
  12587. ee.EncodeUint(uint64(v[bool(k2)]))
  12588. }
  12589. } else {
  12590. for k2, v2 := range v {
  12591. if esep {
  12592. ee.WriteMapElemKey()
  12593. }
  12594. ee.EncodeBool(k2)
  12595. if esep {
  12596. ee.WriteMapElemValue()
  12597. }
  12598. ee.EncodeUint(uint64(v2))
  12599. }
  12600. }
  12601. ee.WriteMapEnd()
  12602. }
  12603. func (e *Encoder) fastpathEncMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  12604. fastpathTV.EncMapBoolUint16V(rv2i(rv).(map[bool]uint16), e)
  12605. }
  12606. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, e *Encoder) {
  12607. if v == nil {
  12608. e.e.EncodeNil()
  12609. return
  12610. }
  12611. ee, esep := e.e, e.hh.hasElemSeparators()
  12612. ee.WriteMapStart(len(v))
  12613. if e.h.Canonical {
  12614. v2 := make([]bool, len(v))
  12615. var i int
  12616. for k, _ := range v {
  12617. v2[i] = bool(k)
  12618. i++
  12619. }
  12620. sort.Sort(boolSlice(v2))
  12621. for _, k2 := range v2 {
  12622. if esep {
  12623. ee.WriteMapElemKey()
  12624. }
  12625. ee.EncodeBool(bool(k2))
  12626. if esep {
  12627. ee.WriteMapElemValue()
  12628. }
  12629. ee.EncodeUint(uint64(v[bool(k2)]))
  12630. }
  12631. } else {
  12632. for k2, v2 := range v {
  12633. if esep {
  12634. ee.WriteMapElemKey()
  12635. }
  12636. ee.EncodeBool(k2)
  12637. if esep {
  12638. ee.WriteMapElemValue()
  12639. }
  12640. ee.EncodeUint(uint64(v2))
  12641. }
  12642. }
  12643. ee.WriteMapEnd()
  12644. }
  12645. func (e *Encoder) fastpathEncMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  12646. fastpathTV.EncMapBoolUint32V(rv2i(rv).(map[bool]uint32), e)
  12647. }
  12648. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, e *Encoder) {
  12649. if v == nil {
  12650. e.e.EncodeNil()
  12651. return
  12652. }
  12653. ee, esep := e.e, e.hh.hasElemSeparators()
  12654. ee.WriteMapStart(len(v))
  12655. if e.h.Canonical {
  12656. v2 := make([]bool, len(v))
  12657. var i int
  12658. for k, _ := range v {
  12659. v2[i] = bool(k)
  12660. i++
  12661. }
  12662. sort.Sort(boolSlice(v2))
  12663. for _, k2 := range v2 {
  12664. if esep {
  12665. ee.WriteMapElemKey()
  12666. }
  12667. ee.EncodeBool(bool(k2))
  12668. if esep {
  12669. ee.WriteMapElemValue()
  12670. }
  12671. ee.EncodeUint(uint64(v[bool(k2)]))
  12672. }
  12673. } else {
  12674. for k2, v2 := range v {
  12675. if esep {
  12676. ee.WriteMapElemKey()
  12677. }
  12678. ee.EncodeBool(k2)
  12679. if esep {
  12680. ee.WriteMapElemValue()
  12681. }
  12682. ee.EncodeUint(uint64(v2))
  12683. }
  12684. }
  12685. ee.WriteMapEnd()
  12686. }
  12687. func (e *Encoder) fastpathEncMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  12688. fastpathTV.EncMapBoolUint64V(rv2i(rv).(map[bool]uint64), e)
  12689. }
  12690. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, e *Encoder) {
  12691. if v == nil {
  12692. e.e.EncodeNil()
  12693. return
  12694. }
  12695. ee, esep := e.e, e.hh.hasElemSeparators()
  12696. ee.WriteMapStart(len(v))
  12697. if e.h.Canonical {
  12698. v2 := make([]bool, len(v))
  12699. var i int
  12700. for k, _ := range v {
  12701. v2[i] = bool(k)
  12702. i++
  12703. }
  12704. sort.Sort(boolSlice(v2))
  12705. for _, k2 := range v2 {
  12706. if esep {
  12707. ee.WriteMapElemKey()
  12708. }
  12709. ee.EncodeBool(bool(k2))
  12710. if esep {
  12711. ee.WriteMapElemValue()
  12712. }
  12713. ee.EncodeUint(uint64(v[bool(k2)]))
  12714. }
  12715. } else {
  12716. for k2, v2 := range v {
  12717. if esep {
  12718. ee.WriteMapElemKey()
  12719. }
  12720. ee.EncodeBool(k2)
  12721. if esep {
  12722. ee.WriteMapElemValue()
  12723. }
  12724. ee.EncodeUint(uint64(v2))
  12725. }
  12726. }
  12727. ee.WriteMapEnd()
  12728. }
  12729. func (e *Encoder) fastpathEncMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  12730. fastpathTV.EncMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), e)
  12731. }
  12732. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, e *Encoder) {
  12733. if v == nil {
  12734. e.e.EncodeNil()
  12735. return
  12736. }
  12737. ee, esep := e.e, e.hh.hasElemSeparators()
  12738. ee.WriteMapStart(len(v))
  12739. if e.h.Canonical {
  12740. v2 := make([]bool, len(v))
  12741. var i int
  12742. for k, _ := range v {
  12743. v2[i] = bool(k)
  12744. i++
  12745. }
  12746. sort.Sort(boolSlice(v2))
  12747. for _, k2 := range v2 {
  12748. if esep {
  12749. ee.WriteMapElemKey()
  12750. }
  12751. ee.EncodeBool(bool(k2))
  12752. if esep {
  12753. ee.WriteMapElemValue()
  12754. }
  12755. e.encode(v[bool(k2)])
  12756. }
  12757. } else {
  12758. for k2, v2 := range v {
  12759. if esep {
  12760. ee.WriteMapElemKey()
  12761. }
  12762. ee.EncodeBool(k2)
  12763. if esep {
  12764. ee.WriteMapElemValue()
  12765. }
  12766. e.encode(v2)
  12767. }
  12768. }
  12769. ee.WriteMapEnd()
  12770. }
  12771. func (e *Encoder) fastpathEncMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  12772. fastpathTV.EncMapBoolIntV(rv2i(rv).(map[bool]int), e)
  12773. }
  12774. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, e *Encoder) {
  12775. if v == nil {
  12776. e.e.EncodeNil()
  12777. return
  12778. }
  12779. ee, esep := e.e, e.hh.hasElemSeparators()
  12780. ee.WriteMapStart(len(v))
  12781. if e.h.Canonical {
  12782. v2 := make([]bool, len(v))
  12783. var i int
  12784. for k, _ := range v {
  12785. v2[i] = bool(k)
  12786. i++
  12787. }
  12788. sort.Sort(boolSlice(v2))
  12789. for _, k2 := range v2 {
  12790. if esep {
  12791. ee.WriteMapElemKey()
  12792. }
  12793. ee.EncodeBool(bool(k2))
  12794. if esep {
  12795. ee.WriteMapElemValue()
  12796. }
  12797. ee.EncodeInt(int64(v[bool(k2)]))
  12798. }
  12799. } else {
  12800. for k2, v2 := range v {
  12801. if esep {
  12802. ee.WriteMapElemKey()
  12803. }
  12804. ee.EncodeBool(k2)
  12805. if esep {
  12806. ee.WriteMapElemValue()
  12807. }
  12808. ee.EncodeInt(int64(v2))
  12809. }
  12810. }
  12811. ee.WriteMapEnd()
  12812. }
  12813. func (e *Encoder) fastpathEncMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  12814. fastpathTV.EncMapBoolInt8V(rv2i(rv).(map[bool]int8), e)
  12815. }
  12816. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, e *Encoder) {
  12817. if v == nil {
  12818. e.e.EncodeNil()
  12819. return
  12820. }
  12821. ee, esep := e.e, e.hh.hasElemSeparators()
  12822. ee.WriteMapStart(len(v))
  12823. if e.h.Canonical {
  12824. v2 := make([]bool, len(v))
  12825. var i int
  12826. for k, _ := range v {
  12827. v2[i] = bool(k)
  12828. i++
  12829. }
  12830. sort.Sort(boolSlice(v2))
  12831. for _, k2 := range v2 {
  12832. if esep {
  12833. ee.WriteMapElemKey()
  12834. }
  12835. ee.EncodeBool(bool(k2))
  12836. if esep {
  12837. ee.WriteMapElemValue()
  12838. }
  12839. ee.EncodeInt(int64(v[bool(k2)]))
  12840. }
  12841. } else {
  12842. for k2, v2 := range v {
  12843. if esep {
  12844. ee.WriteMapElemKey()
  12845. }
  12846. ee.EncodeBool(k2)
  12847. if esep {
  12848. ee.WriteMapElemValue()
  12849. }
  12850. ee.EncodeInt(int64(v2))
  12851. }
  12852. }
  12853. ee.WriteMapEnd()
  12854. }
  12855. func (e *Encoder) fastpathEncMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  12856. fastpathTV.EncMapBoolInt16V(rv2i(rv).(map[bool]int16), e)
  12857. }
  12858. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, e *Encoder) {
  12859. if v == nil {
  12860. e.e.EncodeNil()
  12861. return
  12862. }
  12863. ee, esep := e.e, e.hh.hasElemSeparators()
  12864. ee.WriteMapStart(len(v))
  12865. if e.h.Canonical {
  12866. v2 := make([]bool, len(v))
  12867. var i int
  12868. for k, _ := range v {
  12869. v2[i] = bool(k)
  12870. i++
  12871. }
  12872. sort.Sort(boolSlice(v2))
  12873. for _, k2 := range v2 {
  12874. if esep {
  12875. ee.WriteMapElemKey()
  12876. }
  12877. ee.EncodeBool(bool(k2))
  12878. if esep {
  12879. ee.WriteMapElemValue()
  12880. }
  12881. ee.EncodeInt(int64(v[bool(k2)]))
  12882. }
  12883. } else {
  12884. for k2, v2 := range v {
  12885. if esep {
  12886. ee.WriteMapElemKey()
  12887. }
  12888. ee.EncodeBool(k2)
  12889. if esep {
  12890. ee.WriteMapElemValue()
  12891. }
  12892. ee.EncodeInt(int64(v2))
  12893. }
  12894. }
  12895. ee.WriteMapEnd()
  12896. }
  12897. func (e *Encoder) fastpathEncMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  12898. fastpathTV.EncMapBoolInt32V(rv2i(rv).(map[bool]int32), e)
  12899. }
  12900. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, e *Encoder) {
  12901. if v == nil {
  12902. e.e.EncodeNil()
  12903. return
  12904. }
  12905. ee, esep := e.e, e.hh.hasElemSeparators()
  12906. ee.WriteMapStart(len(v))
  12907. if e.h.Canonical {
  12908. v2 := make([]bool, len(v))
  12909. var i int
  12910. for k, _ := range v {
  12911. v2[i] = bool(k)
  12912. i++
  12913. }
  12914. sort.Sort(boolSlice(v2))
  12915. for _, k2 := range v2 {
  12916. if esep {
  12917. ee.WriteMapElemKey()
  12918. }
  12919. ee.EncodeBool(bool(k2))
  12920. if esep {
  12921. ee.WriteMapElemValue()
  12922. }
  12923. ee.EncodeInt(int64(v[bool(k2)]))
  12924. }
  12925. } else {
  12926. for k2, v2 := range v {
  12927. if esep {
  12928. ee.WriteMapElemKey()
  12929. }
  12930. ee.EncodeBool(k2)
  12931. if esep {
  12932. ee.WriteMapElemValue()
  12933. }
  12934. ee.EncodeInt(int64(v2))
  12935. }
  12936. }
  12937. ee.WriteMapEnd()
  12938. }
  12939. func (e *Encoder) fastpathEncMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  12940. fastpathTV.EncMapBoolInt64V(rv2i(rv).(map[bool]int64), e)
  12941. }
  12942. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, e *Encoder) {
  12943. if v == nil {
  12944. e.e.EncodeNil()
  12945. return
  12946. }
  12947. ee, esep := e.e, e.hh.hasElemSeparators()
  12948. ee.WriteMapStart(len(v))
  12949. if e.h.Canonical {
  12950. v2 := make([]bool, len(v))
  12951. var i int
  12952. for k, _ := range v {
  12953. v2[i] = bool(k)
  12954. i++
  12955. }
  12956. sort.Sort(boolSlice(v2))
  12957. for _, k2 := range v2 {
  12958. if esep {
  12959. ee.WriteMapElemKey()
  12960. }
  12961. ee.EncodeBool(bool(k2))
  12962. if esep {
  12963. ee.WriteMapElemValue()
  12964. }
  12965. ee.EncodeInt(int64(v[bool(k2)]))
  12966. }
  12967. } else {
  12968. for k2, v2 := range v {
  12969. if esep {
  12970. ee.WriteMapElemKey()
  12971. }
  12972. ee.EncodeBool(k2)
  12973. if esep {
  12974. ee.WriteMapElemValue()
  12975. }
  12976. ee.EncodeInt(int64(v2))
  12977. }
  12978. }
  12979. ee.WriteMapEnd()
  12980. }
  12981. func (e *Encoder) fastpathEncMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  12982. fastpathTV.EncMapBoolFloat32V(rv2i(rv).(map[bool]float32), e)
  12983. }
  12984. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, e *Encoder) {
  12985. if v == nil {
  12986. e.e.EncodeNil()
  12987. return
  12988. }
  12989. ee, esep := e.e, e.hh.hasElemSeparators()
  12990. ee.WriteMapStart(len(v))
  12991. if e.h.Canonical {
  12992. v2 := make([]bool, len(v))
  12993. var i int
  12994. for k, _ := range v {
  12995. v2[i] = bool(k)
  12996. i++
  12997. }
  12998. sort.Sort(boolSlice(v2))
  12999. for _, k2 := range v2 {
  13000. if esep {
  13001. ee.WriteMapElemKey()
  13002. }
  13003. ee.EncodeBool(bool(k2))
  13004. if esep {
  13005. ee.WriteMapElemValue()
  13006. }
  13007. ee.EncodeFloat32(v[bool(k2)])
  13008. }
  13009. } else {
  13010. for k2, v2 := range v {
  13011. if esep {
  13012. ee.WriteMapElemKey()
  13013. }
  13014. ee.EncodeBool(k2)
  13015. if esep {
  13016. ee.WriteMapElemValue()
  13017. }
  13018. ee.EncodeFloat32(v2)
  13019. }
  13020. }
  13021. ee.WriteMapEnd()
  13022. }
  13023. func (e *Encoder) fastpathEncMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  13024. fastpathTV.EncMapBoolFloat64V(rv2i(rv).(map[bool]float64), e)
  13025. }
  13026. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, e *Encoder) {
  13027. if v == nil {
  13028. e.e.EncodeNil()
  13029. return
  13030. }
  13031. ee, esep := e.e, e.hh.hasElemSeparators()
  13032. ee.WriteMapStart(len(v))
  13033. if e.h.Canonical {
  13034. v2 := make([]bool, len(v))
  13035. var i int
  13036. for k, _ := range v {
  13037. v2[i] = bool(k)
  13038. i++
  13039. }
  13040. sort.Sort(boolSlice(v2))
  13041. for _, k2 := range v2 {
  13042. if esep {
  13043. ee.WriteMapElemKey()
  13044. }
  13045. ee.EncodeBool(bool(k2))
  13046. if esep {
  13047. ee.WriteMapElemValue()
  13048. }
  13049. ee.EncodeFloat64(v[bool(k2)])
  13050. }
  13051. } else {
  13052. for k2, v2 := range v {
  13053. if esep {
  13054. ee.WriteMapElemKey()
  13055. }
  13056. ee.EncodeBool(k2)
  13057. if esep {
  13058. ee.WriteMapElemValue()
  13059. }
  13060. ee.EncodeFloat64(v2)
  13061. }
  13062. }
  13063. ee.WriteMapEnd()
  13064. }
  13065. func (e *Encoder) fastpathEncMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  13066. fastpathTV.EncMapBoolBoolV(rv2i(rv).(map[bool]bool), e)
  13067. }
  13068. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, e *Encoder) {
  13069. if v == nil {
  13070. e.e.EncodeNil()
  13071. return
  13072. }
  13073. ee, esep := e.e, e.hh.hasElemSeparators()
  13074. ee.WriteMapStart(len(v))
  13075. if e.h.Canonical {
  13076. v2 := make([]bool, len(v))
  13077. var i int
  13078. for k, _ := range v {
  13079. v2[i] = bool(k)
  13080. i++
  13081. }
  13082. sort.Sort(boolSlice(v2))
  13083. for _, k2 := range v2 {
  13084. if esep {
  13085. ee.WriteMapElemKey()
  13086. }
  13087. ee.EncodeBool(bool(k2))
  13088. if esep {
  13089. ee.WriteMapElemValue()
  13090. }
  13091. ee.EncodeBool(v[bool(k2)])
  13092. }
  13093. } else {
  13094. for k2, v2 := range v {
  13095. if esep {
  13096. ee.WriteMapElemKey()
  13097. }
  13098. ee.EncodeBool(k2)
  13099. if esep {
  13100. ee.WriteMapElemValue()
  13101. }
  13102. ee.EncodeBool(v2)
  13103. }
  13104. }
  13105. ee.WriteMapEnd()
  13106. }
  13107. // -- decode
  13108. // -- -- fast path type switch
  13109. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  13110. var changed bool
  13111. switch v := iv.(type) {
  13112. case []interface{}:
  13113. var v2 []interface{}
  13114. v2, changed = fastpathTV.DecSliceIntfV(v, false, d)
  13115. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13116. copy(v, v2)
  13117. }
  13118. case *[]interface{}:
  13119. var v2 []interface{}
  13120. v2, changed = fastpathTV.DecSliceIntfV(*v, true, d)
  13121. if changed {
  13122. *v = v2
  13123. }
  13124. case []string:
  13125. var v2 []string
  13126. v2, changed = fastpathTV.DecSliceStringV(v, false, d)
  13127. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13128. copy(v, v2)
  13129. }
  13130. case *[]string:
  13131. var v2 []string
  13132. v2, changed = fastpathTV.DecSliceStringV(*v, true, d)
  13133. if changed {
  13134. *v = v2
  13135. }
  13136. case []float32:
  13137. var v2 []float32
  13138. v2, changed = fastpathTV.DecSliceFloat32V(v, false, d)
  13139. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13140. copy(v, v2)
  13141. }
  13142. case *[]float32:
  13143. var v2 []float32
  13144. v2, changed = fastpathTV.DecSliceFloat32V(*v, true, d)
  13145. if changed {
  13146. *v = v2
  13147. }
  13148. case []float64:
  13149. var v2 []float64
  13150. v2, changed = fastpathTV.DecSliceFloat64V(v, false, d)
  13151. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13152. copy(v, v2)
  13153. }
  13154. case *[]float64:
  13155. var v2 []float64
  13156. v2, changed = fastpathTV.DecSliceFloat64V(*v, true, d)
  13157. if changed {
  13158. *v = v2
  13159. }
  13160. case []uint:
  13161. var v2 []uint
  13162. v2, changed = fastpathTV.DecSliceUintV(v, false, d)
  13163. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13164. copy(v, v2)
  13165. }
  13166. case *[]uint:
  13167. var v2 []uint
  13168. v2, changed = fastpathTV.DecSliceUintV(*v, true, d)
  13169. if changed {
  13170. *v = v2
  13171. }
  13172. case []uint16:
  13173. var v2 []uint16
  13174. v2, changed = fastpathTV.DecSliceUint16V(v, false, d)
  13175. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13176. copy(v, v2)
  13177. }
  13178. case *[]uint16:
  13179. var v2 []uint16
  13180. v2, changed = fastpathTV.DecSliceUint16V(*v, true, d)
  13181. if changed {
  13182. *v = v2
  13183. }
  13184. case []uint32:
  13185. var v2 []uint32
  13186. v2, changed = fastpathTV.DecSliceUint32V(v, false, d)
  13187. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13188. copy(v, v2)
  13189. }
  13190. case *[]uint32:
  13191. var v2 []uint32
  13192. v2, changed = fastpathTV.DecSliceUint32V(*v, true, d)
  13193. if changed {
  13194. *v = v2
  13195. }
  13196. case []uint64:
  13197. var v2 []uint64
  13198. v2, changed = fastpathTV.DecSliceUint64V(v, false, d)
  13199. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13200. copy(v, v2)
  13201. }
  13202. case *[]uint64:
  13203. var v2 []uint64
  13204. v2, changed = fastpathTV.DecSliceUint64V(*v, true, d)
  13205. if changed {
  13206. *v = v2
  13207. }
  13208. case []uintptr:
  13209. var v2 []uintptr
  13210. v2, changed = fastpathTV.DecSliceUintptrV(v, false, d)
  13211. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13212. copy(v, v2)
  13213. }
  13214. case *[]uintptr:
  13215. var v2 []uintptr
  13216. v2, changed = fastpathTV.DecSliceUintptrV(*v, true, d)
  13217. if changed {
  13218. *v = v2
  13219. }
  13220. case []int:
  13221. var v2 []int
  13222. v2, changed = fastpathTV.DecSliceIntV(v, false, d)
  13223. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13224. copy(v, v2)
  13225. }
  13226. case *[]int:
  13227. var v2 []int
  13228. v2, changed = fastpathTV.DecSliceIntV(*v, true, d)
  13229. if changed {
  13230. *v = v2
  13231. }
  13232. case []int8:
  13233. var v2 []int8
  13234. v2, changed = fastpathTV.DecSliceInt8V(v, false, d)
  13235. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13236. copy(v, v2)
  13237. }
  13238. case *[]int8:
  13239. var v2 []int8
  13240. v2, changed = fastpathTV.DecSliceInt8V(*v, true, d)
  13241. if changed {
  13242. *v = v2
  13243. }
  13244. case []int16:
  13245. var v2 []int16
  13246. v2, changed = fastpathTV.DecSliceInt16V(v, false, d)
  13247. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13248. copy(v, v2)
  13249. }
  13250. case *[]int16:
  13251. var v2 []int16
  13252. v2, changed = fastpathTV.DecSliceInt16V(*v, true, d)
  13253. if changed {
  13254. *v = v2
  13255. }
  13256. case []int32:
  13257. var v2 []int32
  13258. v2, changed = fastpathTV.DecSliceInt32V(v, false, d)
  13259. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13260. copy(v, v2)
  13261. }
  13262. case *[]int32:
  13263. var v2 []int32
  13264. v2, changed = fastpathTV.DecSliceInt32V(*v, true, d)
  13265. if changed {
  13266. *v = v2
  13267. }
  13268. case []int64:
  13269. var v2 []int64
  13270. v2, changed = fastpathTV.DecSliceInt64V(v, false, d)
  13271. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13272. copy(v, v2)
  13273. }
  13274. case *[]int64:
  13275. var v2 []int64
  13276. v2, changed = fastpathTV.DecSliceInt64V(*v, true, d)
  13277. if changed {
  13278. *v = v2
  13279. }
  13280. case []bool:
  13281. var v2 []bool
  13282. v2, changed = fastpathTV.DecSliceBoolV(v, false, d)
  13283. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  13284. copy(v, v2)
  13285. }
  13286. case *[]bool:
  13287. var v2 []bool
  13288. v2, changed = fastpathTV.DecSliceBoolV(*v, true, d)
  13289. if changed {
  13290. *v = v2
  13291. }
  13292. case map[interface{}]interface{}:
  13293. fastpathTV.DecMapIntfIntfV(v, false, d)
  13294. case *map[interface{}]interface{}:
  13295. var v2 map[interface{}]interface{}
  13296. v2, changed = fastpathTV.DecMapIntfIntfV(*v, true, d)
  13297. if changed {
  13298. *v = v2
  13299. }
  13300. case map[interface{}]string:
  13301. fastpathTV.DecMapIntfStringV(v, false, d)
  13302. case *map[interface{}]string:
  13303. var v2 map[interface{}]string
  13304. v2, changed = fastpathTV.DecMapIntfStringV(*v, true, d)
  13305. if changed {
  13306. *v = v2
  13307. }
  13308. case map[interface{}]uint:
  13309. fastpathTV.DecMapIntfUintV(v, false, d)
  13310. case *map[interface{}]uint:
  13311. var v2 map[interface{}]uint
  13312. v2, changed = fastpathTV.DecMapIntfUintV(*v, true, d)
  13313. if changed {
  13314. *v = v2
  13315. }
  13316. case map[interface{}]uint8:
  13317. fastpathTV.DecMapIntfUint8V(v, false, d)
  13318. case *map[interface{}]uint8:
  13319. var v2 map[interface{}]uint8
  13320. v2, changed = fastpathTV.DecMapIntfUint8V(*v, true, d)
  13321. if changed {
  13322. *v = v2
  13323. }
  13324. case map[interface{}]uint16:
  13325. fastpathTV.DecMapIntfUint16V(v, false, d)
  13326. case *map[interface{}]uint16:
  13327. var v2 map[interface{}]uint16
  13328. v2, changed = fastpathTV.DecMapIntfUint16V(*v, true, d)
  13329. if changed {
  13330. *v = v2
  13331. }
  13332. case map[interface{}]uint32:
  13333. fastpathTV.DecMapIntfUint32V(v, false, d)
  13334. case *map[interface{}]uint32:
  13335. var v2 map[interface{}]uint32
  13336. v2, changed = fastpathTV.DecMapIntfUint32V(*v, true, d)
  13337. if changed {
  13338. *v = v2
  13339. }
  13340. case map[interface{}]uint64:
  13341. fastpathTV.DecMapIntfUint64V(v, false, d)
  13342. case *map[interface{}]uint64:
  13343. var v2 map[interface{}]uint64
  13344. v2, changed = fastpathTV.DecMapIntfUint64V(*v, true, d)
  13345. if changed {
  13346. *v = v2
  13347. }
  13348. case map[interface{}]uintptr:
  13349. fastpathTV.DecMapIntfUintptrV(v, false, d)
  13350. case *map[interface{}]uintptr:
  13351. var v2 map[interface{}]uintptr
  13352. v2, changed = fastpathTV.DecMapIntfUintptrV(*v, true, d)
  13353. if changed {
  13354. *v = v2
  13355. }
  13356. case map[interface{}]int:
  13357. fastpathTV.DecMapIntfIntV(v, false, d)
  13358. case *map[interface{}]int:
  13359. var v2 map[interface{}]int
  13360. v2, changed = fastpathTV.DecMapIntfIntV(*v, true, d)
  13361. if changed {
  13362. *v = v2
  13363. }
  13364. case map[interface{}]int8:
  13365. fastpathTV.DecMapIntfInt8V(v, false, d)
  13366. case *map[interface{}]int8:
  13367. var v2 map[interface{}]int8
  13368. v2, changed = fastpathTV.DecMapIntfInt8V(*v, true, d)
  13369. if changed {
  13370. *v = v2
  13371. }
  13372. case map[interface{}]int16:
  13373. fastpathTV.DecMapIntfInt16V(v, false, d)
  13374. case *map[interface{}]int16:
  13375. var v2 map[interface{}]int16
  13376. v2, changed = fastpathTV.DecMapIntfInt16V(*v, true, d)
  13377. if changed {
  13378. *v = v2
  13379. }
  13380. case map[interface{}]int32:
  13381. fastpathTV.DecMapIntfInt32V(v, false, d)
  13382. case *map[interface{}]int32:
  13383. var v2 map[interface{}]int32
  13384. v2, changed = fastpathTV.DecMapIntfInt32V(*v, true, d)
  13385. if changed {
  13386. *v = v2
  13387. }
  13388. case map[interface{}]int64:
  13389. fastpathTV.DecMapIntfInt64V(v, false, d)
  13390. case *map[interface{}]int64:
  13391. var v2 map[interface{}]int64
  13392. v2, changed = fastpathTV.DecMapIntfInt64V(*v, true, d)
  13393. if changed {
  13394. *v = v2
  13395. }
  13396. case map[interface{}]float32:
  13397. fastpathTV.DecMapIntfFloat32V(v, false, d)
  13398. case *map[interface{}]float32:
  13399. var v2 map[interface{}]float32
  13400. v2, changed = fastpathTV.DecMapIntfFloat32V(*v, true, d)
  13401. if changed {
  13402. *v = v2
  13403. }
  13404. case map[interface{}]float64:
  13405. fastpathTV.DecMapIntfFloat64V(v, false, d)
  13406. case *map[interface{}]float64:
  13407. var v2 map[interface{}]float64
  13408. v2, changed = fastpathTV.DecMapIntfFloat64V(*v, true, d)
  13409. if changed {
  13410. *v = v2
  13411. }
  13412. case map[interface{}]bool:
  13413. fastpathTV.DecMapIntfBoolV(v, false, d)
  13414. case *map[interface{}]bool:
  13415. var v2 map[interface{}]bool
  13416. v2, changed = fastpathTV.DecMapIntfBoolV(*v, true, d)
  13417. if changed {
  13418. *v = v2
  13419. }
  13420. case map[string]interface{}:
  13421. fastpathTV.DecMapStringIntfV(v, false, d)
  13422. case *map[string]interface{}:
  13423. var v2 map[string]interface{}
  13424. v2, changed = fastpathTV.DecMapStringIntfV(*v, true, d)
  13425. if changed {
  13426. *v = v2
  13427. }
  13428. case map[string]string:
  13429. fastpathTV.DecMapStringStringV(v, false, d)
  13430. case *map[string]string:
  13431. var v2 map[string]string
  13432. v2, changed = fastpathTV.DecMapStringStringV(*v, true, d)
  13433. if changed {
  13434. *v = v2
  13435. }
  13436. case map[string]uint:
  13437. fastpathTV.DecMapStringUintV(v, false, d)
  13438. case *map[string]uint:
  13439. var v2 map[string]uint
  13440. v2, changed = fastpathTV.DecMapStringUintV(*v, true, d)
  13441. if changed {
  13442. *v = v2
  13443. }
  13444. case map[string]uint8:
  13445. fastpathTV.DecMapStringUint8V(v, false, d)
  13446. case *map[string]uint8:
  13447. var v2 map[string]uint8
  13448. v2, changed = fastpathTV.DecMapStringUint8V(*v, true, d)
  13449. if changed {
  13450. *v = v2
  13451. }
  13452. case map[string]uint16:
  13453. fastpathTV.DecMapStringUint16V(v, false, d)
  13454. case *map[string]uint16:
  13455. var v2 map[string]uint16
  13456. v2, changed = fastpathTV.DecMapStringUint16V(*v, true, d)
  13457. if changed {
  13458. *v = v2
  13459. }
  13460. case map[string]uint32:
  13461. fastpathTV.DecMapStringUint32V(v, false, d)
  13462. case *map[string]uint32:
  13463. var v2 map[string]uint32
  13464. v2, changed = fastpathTV.DecMapStringUint32V(*v, true, d)
  13465. if changed {
  13466. *v = v2
  13467. }
  13468. case map[string]uint64:
  13469. fastpathTV.DecMapStringUint64V(v, false, d)
  13470. case *map[string]uint64:
  13471. var v2 map[string]uint64
  13472. v2, changed = fastpathTV.DecMapStringUint64V(*v, true, d)
  13473. if changed {
  13474. *v = v2
  13475. }
  13476. case map[string]uintptr:
  13477. fastpathTV.DecMapStringUintptrV(v, false, d)
  13478. case *map[string]uintptr:
  13479. var v2 map[string]uintptr
  13480. v2, changed = fastpathTV.DecMapStringUintptrV(*v, true, d)
  13481. if changed {
  13482. *v = v2
  13483. }
  13484. case map[string]int:
  13485. fastpathTV.DecMapStringIntV(v, false, d)
  13486. case *map[string]int:
  13487. var v2 map[string]int
  13488. v2, changed = fastpathTV.DecMapStringIntV(*v, true, d)
  13489. if changed {
  13490. *v = v2
  13491. }
  13492. case map[string]int8:
  13493. fastpathTV.DecMapStringInt8V(v, false, d)
  13494. case *map[string]int8:
  13495. var v2 map[string]int8
  13496. v2, changed = fastpathTV.DecMapStringInt8V(*v, true, d)
  13497. if changed {
  13498. *v = v2
  13499. }
  13500. case map[string]int16:
  13501. fastpathTV.DecMapStringInt16V(v, false, d)
  13502. case *map[string]int16:
  13503. var v2 map[string]int16
  13504. v2, changed = fastpathTV.DecMapStringInt16V(*v, true, d)
  13505. if changed {
  13506. *v = v2
  13507. }
  13508. case map[string]int32:
  13509. fastpathTV.DecMapStringInt32V(v, false, d)
  13510. case *map[string]int32:
  13511. var v2 map[string]int32
  13512. v2, changed = fastpathTV.DecMapStringInt32V(*v, true, d)
  13513. if changed {
  13514. *v = v2
  13515. }
  13516. case map[string]int64:
  13517. fastpathTV.DecMapStringInt64V(v, false, d)
  13518. case *map[string]int64:
  13519. var v2 map[string]int64
  13520. v2, changed = fastpathTV.DecMapStringInt64V(*v, true, d)
  13521. if changed {
  13522. *v = v2
  13523. }
  13524. case map[string]float32:
  13525. fastpathTV.DecMapStringFloat32V(v, false, d)
  13526. case *map[string]float32:
  13527. var v2 map[string]float32
  13528. v2, changed = fastpathTV.DecMapStringFloat32V(*v, true, d)
  13529. if changed {
  13530. *v = v2
  13531. }
  13532. case map[string]float64:
  13533. fastpathTV.DecMapStringFloat64V(v, false, d)
  13534. case *map[string]float64:
  13535. var v2 map[string]float64
  13536. v2, changed = fastpathTV.DecMapStringFloat64V(*v, true, d)
  13537. if changed {
  13538. *v = v2
  13539. }
  13540. case map[string]bool:
  13541. fastpathTV.DecMapStringBoolV(v, false, d)
  13542. case *map[string]bool:
  13543. var v2 map[string]bool
  13544. v2, changed = fastpathTV.DecMapStringBoolV(*v, true, d)
  13545. if changed {
  13546. *v = v2
  13547. }
  13548. case map[float32]interface{}:
  13549. fastpathTV.DecMapFloat32IntfV(v, false, d)
  13550. case *map[float32]interface{}:
  13551. var v2 map[float32]interface{}
  13552. v2, changed = fastpathTV.DecMapFloat32IntfV(*v, true, d)
  13553. if changed {
  13554. *v = v2
  13555. }
  13556. case map[float32]string:
  13557. fastpathTV.DecMapFloat32StringV(v, false, d)
  13558. case *map[float32]string:
  13559. var v2 map[float32]string
  13560. v2, changed = fastpathTV.DecMapFloat32StringV(*v, true, d)
  13561. if changed {
  13562. *v = v2
  13563. }
  13564. case map[float32]uint:
  13565. fastpathTV.DecMapFloat32UintV(v, false, d)
  13566. case *map[float32]uint:
  13567. var v2 map[float32]uint
  13568. v2, changed = fastpathTV.DecMapFloat32UintV(*v, true, d)
  13569. if changed {
  13570. *v = v2
  13571. }
  13572. case map[float32]uint8:
  13573. fastpathTV.DecMapFloat32Uint8V(v, false, d)
  13574. case *map[float32]uint8:
  13575. var v2 map[float32]uint8
  13576. v2, changed = fastpathTV.DecMapFloat32Uint8V(*v, true, d)
  13577. if changed {
  13578. *v = v2
  13579. }
  13580. case map[float32]uint16:
  13581. fastpathTV.DecMapFloat32Uint16V(v, false, d)
  13582. case *map[float32]uint16:
  13583. var v2 map[float32]uint16
  13584. v2, changed = fastpathTV.DecMapFloat32Uint16V(*v, true, d)
  13585. if changed {
  13586. *v = v2
  13587. }
  13588. case map[float32]uint32:
  13589. fastpathTV.DecMapFloat32Uint32V(v, false, d)
  13590. case *map[float32]uint32:
  13591. var v2 map[float32]uint32
  13592. v2, changed = fastpathTV.DecMapFloat32Uint32V(*v, true, d)
  13593. if changed {
  13594. *v = v2
  13595. }
  13596. case map[float32]uint64:
  13597. fastpathTV.DecMapFloat32Uint64V(v, false, d)
  13598. case *map[float32]uint64:
  13599. var v2 map[float32]uint64
  13600. v2, changed = fastpathTV.DecMapFloat32Uint64V(*v, true, d)
  13601. if changed {
  13602. *v = v2
  13603. }
  13604. case map[float32]uintptr:
  13605. fastpathTV.DecMapFloat32UintptrV(v, false, d)
  13606. case *map[float32]uintptr:
  13607. var v2 map[float32]uintptr
  13608. v2, changed = fastpathTV.DecMapFloat32UintptrV(*v, true, d)
  13609. if changed {
  13610. *v = v2
  13611. }
  13612. case map[float32]int:
  13613. fastpathTV.DecMapFloat32IntV(v, false, d)
  13614. case *map[float32]int:
  13615. var v2 map[float32]int
  13616. v2, changed = fastpathTV.DecMapFloat32IntV(*v, true, d)
  13617. if changed {
  13618. *v = v2
  13619. }
  13620. case map[float32]int8:
  13621. fastpathTV.DecMapFloat32Int8V(v, false, d)
  13622. case *map[float32]int8:
  13623. var v2 map[float32]int8
  13624. v2, changed = fastpathTV.DecMapFloat32Int8V(*v, true, d)
  13625. if changed {
  13626. *v = v2
  13627. }
  13628. case map[float32]int16:
  13629. fastpathTV.DecMapFloat32Int16V(v, false, d)
  13630. case *map[float32]int16:
  13631. var v2 map[float32]int16
  13632. v2, changed = fastpathTV.DecMapFloat32Int16V(*v, true, d)
  13633. if changed {
  13634. *v = v2
  13635. }
  13636. case map[float32]int32:
  13637. fastpathTV.DecMapFloat32Int32V(v, false, d)
  13638. case *map[float32]int32:
  13639. var v2 map[float32]int32
  13640. v2, changed = fastpathTV.DecMapFloat32Int32V(*v, true, d)
  13641. if changed {
  13642. *v = v2
  13643. }
  13644. case map[float32]int64:
  13645. fastpathTV.DecMapFloat32Int64V(v, false, d)
  13646. case *map[float32]int64:
  13647. var v2 map[float32]int64
  13648. v2, changed = fastpathTV.DecMapFloat32Int64V(*v, true, d)
  13649. if changed {
  13650. *v = v2
  13651. }
  13652. case map[float32]float32:
  13653. fastpathTV.DecMapFloat32Float32V(v, false, d)
  13654. case *map[float32]float32:
  13655. var v2 map[float32]float32
  13656. v2, changed = fastpathTV.DecMapFloat32Float32V(*v, true, d)
  13657. if changed {
  13658. *v = v2
  13659. }
  13660. case map[float32]float64:
  13661. fastpathTV.DecMapFloat32Float64V(v, false, d)
  13662. case *map[float32]float64:
  13663. var v2 map[float32]float64
  13664. v2, changed = fastpathTV.DecMapFloat32Float64V(*v, true, d)
  13665. if changed {
  13666. *v = v2
  13667. }
  13668. case map[float32]bool:
  13669. fastpathTV.DecMapFloat32BoolV(v, false, d)
  13670. case *map[float32]bool:
  13671. var v2 map[float32]bool
  13672. v2, changed = fastpathTV.DecMapFloat32BoolV(*v, true, d)
  13673. if changed {
  13674. *v = v2
  13675. }
  13676. case map[float64]interface{}:
  13677. fastpathTV.DecMapFloat64IntfV(v, false, d)
  13678. case *map[float64]interface{}:
  13679. var v2 map[float64]interface{}
  13680. v2, changed = fastpathTV.DecMapFloat64IntfV(*v, true, d)
  13681. if changed {
  13682. *v = v2
  13683. }
  13684. case map[float64]string:
  13685. fastpathTV.DecMapFloat64StringV(v, false, d)
  13686. case *map[float64]string:
  13687. var v2 map[float64]string
  13688. v2, changed = fastpathTV.DecMapFloat64StringV(*v, true, d)
  13689. if changed {
  13690. *v = v2
  13691. }
  13692. case map[float64]uint:
  13693. fastpathTV.DecMapFloat64UintV(v, false, d)
  13694. case *map[float64]uint:
  13695. var v2 map[float64]uint
  13696. v2, changed = fastpathTV.DecMapFloat64UintV(*v, true, d)
  13697. if changed {
  13698. *v = v2
  13699. }
  13700. case map[float64]uint8:
  13701. fastpathTV.DecMapFloat64Uint8V(v, false, d)
  13702. case *map[float64]uint8:
  13703. var v2 map[float64]uint8
  13704. v2, changed = fastpathTV.DecMapFloat64Uint8V(*v, true, d)
  13705. if changed {
  13706. *v = v2
  13707. }
  13708. case map[float64]uint16:
  13709. fastpathTV.DecMapFloat64Uint16V(v, false, d)
  13710. case *map[float64]uint16:
  13711. var v2 map[float64]uint16
  13712. v2, changed = fastpathTV.DecMapFloat64Uint16V(*v, true, d)
  13713. if changed {
  13714. *v = v2
  13715. }
  13716. case map[float64]uint32:
  13717. fastpathTV.DecMapFloat64Uint32V(v, false, d)
  13718. case *map[float64]uint32:
  13719. var v2 map[float64]uint32
  13720. v2, changed = fastpathTV.DecMapFloat64Uint32V(*v, true, d)
  13721. if changed {
  13722. *v = v2
  13723. }
  13724. case map[float64]uint64:
  13725. fastpathTV.DecMapFloat64Uint64V(v, false, d)
  13726. case *map[float64]uint64:
  13727. var v2 map[float64]uint64
  13728. v2, changed = fastpathTV.DecMapFloat64Uint64V(*v, true, d)
  13729. if changed {
  13730. *v = v2
  13731. }
  13732. case map[float64]uintptr:
  13733. fastpathTV.DecMapFloat64UintptrV(v, false, d)
  13734. case *map[float64]uintptr:
  13735. var v2 map[float64]uintptr
  13736. v2, changed = fastpathTV.DecMapFloat64UintptrV(*v, true, d)
  13737. if changed {
  13738. *v = v2
  13739. }
  13740. case map[float64]int:
  13741. fastpathTV.DecMapFloat64IntV(v, false, d)
  13742. case *map[float64]int:
  13743. var v2 map[float64]int
  13744. v2, changed = fastpathTV.DecMapFloat64IntV(*v, true, d)
  13745. if changed {
  13746. *v = v2
  13747. }
  13748. case map[float64]int8:
  13749. fastpathTV.DecMapFloat64Int8V(v, false, d)
  13750. case *map[float64]int8:
  13751. var v2 map[float64]int8
  13752. v2, changed = fastpathTV.DecMapFloat64Int8V(*v, true, d)
  13753. if changed {
  13754. *v = v2
  13755. }
  13756. case map[float64]int16:
  13757. fastpathTV.DecMapFloat64Int16V(v, false, d)
  13758. case *map[float64]int16:
  13759. var v2 map[float64]int16
  13760. v2, changed = fastpathTV.DecMapFloat64Int16V(*v, true, d)
  13761. if changed {
  13762. *v = v2
  13763. }
  13764. case map[float64]int32:
  13765. fastpathTV.DecMapFloat64Int32V(v, false, d)
  13766. case *map[float64]int32:
  13767. var v2 map[float64]int32
  13768. v2, changed = fastpathTV.DecMapFloat64Int32V(*v, true, d)
  13769. if changed {
  13770. *v = v2
  13771. }
  13772. case map[float64]int64:
  13773. fastpathTV.DecMapFloat64Int64V(v, false, d)
  13774. case *map[float64]int64:
  13775. var v2 map[float64]int64
  13776. v2, changed = fastpathTV.DecMapFloat64Int64V(*v, true, d)
  13777. if changed {
  13778. *v = v2
  13779. }
  13780. case map[float64]float32:
  13781. fastpathTV.DecMapFloat64Float32V(v, false, d)
  13782. case *map[float64]float32:
  13783. var v2 map[float64]float32
  13784. v2, changed = fastpathTV.DecMapFloat64Float32V(*v, true, d)
  13785. if changed {
  13786. *v = v2
  13787. }
  13788. case map[float64]float64:
  13789. fastpathTV.DecMapFloat64Float64V(v, false, d)
  13790. case *map[float64]float64:
  13791. var v2 map[float64]float64
  13792. v2, changed = fastpathTV.DecMapFloat64Float64V(*v, true, d)
  13793. if changed {
  13794. *v = v2
  13795. }
  13796. case map[float64]bool:
  13797. fastpathTV.DecMapFloat64BoolV(v, false, d)
  13798. case *map[float64]bool:
  13799. var v2 map[float64]bool
  13800. v2, changed = fastpathTV.DecMapFloat64BoolV(*v, true, d)
  13801. if changed {
  13802. *v = v2
  13803. }
  13804. case map[uint]interface{}:
  13805. fastpathTV.DecMapUintIntfV(v, false, d)
  13806. case *map[uint]interface{}:
  13807. var v2 map[uint]interface{}
  13808. v2, changed = fastpathTV.DecMapUintIntfV(*v, true, d)
  13809. if changed {
  13810. *v = v2
  13811. }
  13812. case map[uint]string:
  13813. fastpathTV.DecMapUintStringV(v, false, d)
  13814. case *map[uint]string:
  13815. var v2 map[uint]string
  13816. v2, changed = fastpathTV.DecMapUintStringV(*v, true, d)
  13817. if changed {
  13818. *v = v2
  13819. }
  13820. case map[uint]uint:
  13821. fastpathTV.DecMapUintUintV(v, false, d)
  13822. case *map[uint]uint:
  13823. var v2 map[uint]uint
  13824. v2, changed = fastpathTV.DecMapUintUintV(*v, true, d)
  13825. if changed {
  13826. *v = v2
  13827. }
  13828. case map[uint]uint8:
  13829. fastpathTV.DecMapUintUint8V(v, false, d)
  13830. case *map[uint]uint8:
  13831. var v2 map[uint]uint8
  13832. v2, changed = fastpathTV.DecMapUintUint8V(*v, true, d)
  13833. if changed {
  13834. *v = v2
  13835. }
  13836. case map[uint]uint16:
  13837. fastpathTV.DecMapUintUint16V(v, false, d)
  13838. case *map[uint]uint16:
  13839. var v2 map[uint]uint16
  13840. v2, changed = fastpathTV.DecMapUintUint16V(*v, true, d)
  13841. if changed {
  13842. *v = v2
  13843. }
  13844. case map[uint]uint32:
  13845. fastpathTV.DecMapUintUint32V(v, false, d)
  13846. case *map[uint]uint32:
  13847. var v2 map[uint]uint32
  13848. v2, changed = fastpathTV.DecMapUintUint32V(*v, true, d)
  13849. if changed {
  13850. *v = v2
  13851. }
  13852. case map[uint]uint64:
  13853. fastpathTV.DecMapUintUint64V(v, false, d)
  13854. case *map[uint]uint64:
  13855. var v2 map[uint]uint64
  13856. v2, changed = fastpathTV.DecMapUintUint64V(*v, true, d)
  13857. if changed {
  13858. *v = v2
  13859. }
  13860. case map[uint]uintptr:
  13861. fastpathTV.DecMapUintUintptrV(v, false, d)
  13862. case *map[uint]uintptr:
  13863. var v2 map[uint]uintptr
  13864. v2, changed = fastpathTV.DecMapUintUintptrV(*v, true, d)
  13865. if changed {
  13866. *v = v2
  13867. }
  13868. case map[uint]int:
  13869. fastpathTV.DecMapUintIntV(v, false, d)
  13870. case *map[uint]int:
  13871. var v2 map[uint]int
  13872. v2, changed = fastpathTV.DecMapUintIntV(*v, true, d)
  13873. if changed {
  13874. *v = v2
  13875. }
  13876. case map[uint]int8:
  13877. fastpathTV.DecMapUintInt8V(v, false, d)
  13878. case *map[uint]int8:
  13879. var v2 map[uint]int8
  13880. v2, changed = fastpathTV.DecMapUintInt8V(*v, true, d)
  13881. if changed {
  13882. *v = v2
  13883. }
  13884. case map[uint]int16:
  13885. fastpathTV.DecMapUintInt16V(v, false, d)
  13886. case *map[uint]int16:
  13887. var v2 map[uint]int16
  13888. v2, changed = fastpathTV.DecMapUintInt16V(*v, true, d)
  13889. if changed {
  13890. *v = v2
  13891. }
  13892. case map[uint]int32:
  13893. fastpathTV.DecMapUintInt32V(v, false, d)
  13894. case *map[uint]int32:
  13895. var v2 map[uint]int32
  13896. v2, changed = fastpathTV.DecMapUintInt32V(*v, true, d)
  13897. if changed {
  13898. *v = v2
  13899. }
  13900. case map[uint]int64:
  13901. fastpathTV.DecMapUintInt64V(v, false, d)
  13902. case *map[uint]int64:
  13903. var v2 map[uint]int64
  13904. v2, changed = fastpathTV.DecMapUintInt64V(*v, true, d)
  13905. if changed {
  13906. *v = v2
  13907. }
  13908. case map[uint]float32:
  13909. fastpathTV.DecMapUintFloat32V(v, false, d)
  13910. case *map[uint]float32:
  13911. var v2 map[uint]float32
  13912. v2, changed = fastpathTV.DecMapUintFloat32V(*v, true, d)
  13913. if changed {
  13914. *v = v2
  13915. }
  13916. case map[uint]float64:
  13917. fastpathTV.DecMapUintFloat64V(v, false, d)
  13918. case *map[uint]float64:
  13919. var v2 map[uint]float64
  13920. v2, changed = fastpathTV.DecMapUintFloat64V(*v, true, d)
  13921. if changed {
  13922. *v = v2
  13923. }
  13924. case map[uint]bool:
  13925. fastpathTV.DecMapUintBoolV(v, false, d)
  13926. case *map[uint]bool:
  13927. var v2 map[uint]bool
  13928. v2, changed = fastpathTV.DecMapUintBoolV(*v, true, d)
  13929. if changed {
  13930. *v = v2
  13931. }
  13932. case map[uint8]interface{}:
  13933. fastpathTV.DecMapUint8IntfV(v, false, d)
  13934. case *map[uint8]interface{}:
  13935. var v2 map[uint8]interface{}
  13936. v2, changed = fastpathTV.DecMapUint8IntfV(*v, true, d)
  13937. if changed {
  13938. *v = v2
  13939. }
  13940. case map[uint8]string:
  13941. fastpathTV.DecMapUint8StringV(v, false, d)
  13942. case *map[uint8]string:
  13943. var v2 map[uint8]string
  13944. v2, changed = fastpathTV.DecMapUint8StringV(*v, true, d)
  13945. if changed {
  13946. *v = v2
  13947. }
  13948. case map[uint8]uint:
  13949. fastpathTV.DecMapUint8UintV(v, false, d)
  13950. case *map[uint8]uint:
  13951. var v2 map[uint8]uint
  13952. v2, changed = fastpathTV.DecMapUint8UintV(*v, true, d)
  13953. if changed {
  13954. *v = v2
  13955. }
  13956. case map[uint8]uint8:
  13957. fastpathTV.DecMapUint8Uint8V(v, false, d)
  13958. case *map[uint8]uint8:
  13959. var v2 map[uint8]uint8
  13960. v2, changed = fastpathTV.DecMapUint8Uint8V(*v, true, d)
  13961. if changed {
  13962. *v = v2
  13963. }
  13964. case map[uint8]uint16:
  13965. fastpathTV.DecMapUint8Uint16V(v, false, d)
  13966. case *map[uint8]uint16:
  13967. var v2 map[uint8]uint16
  13968. v2, changed = fastpathTV.DecMapUint8Uint16V(*v, true, d)
  13969. if changed {
  13970. *v = v2
  13971. }
  13972. case map[uint8]uint32:
  13973. fastpathTV.DecMapUint8Uint32V(v, false, d)
  13974. case *map[uint8]uint32:
  13975. var v2 map[uint8]uint32
  13976. v2, changed = fastpathTV.DecMapUint8Uint32V(*v, true, d)
  13977. if changed {
  13978. *v = v2
  13979. }
  13980. case map[uint8]uint64:
  13981. fastpathTV.DecMapUint8Uint64V(v, false, d)
  13982. case *map[uint8]uint64:
  13983. var v2 map[uint8]uint64
  13984. v2, changed = fastpathTV.DecMapUint8Uint64V(*v, true, d)
  13985. if changed {
  13986. *v = v2
  13987. }
  13988. case map[uint8]uintptr:
  13989. fastpathTV.DecMapUint8UintptrV(v, false, d)
  13990. case *map[uint8]uintptr:
  13991. var v2 map[uint8]uintptr
  13992. v2, changed = fastpathTV.DecMapUint8UintptrV(*v, true, d)
  13993. if changed {
  13994. *v = v2
  13995. }
  13996. case map[uint8]int:
  13997. fastpathTV.DecMapUint8IntV(v, false, d)
  13998. case *map[uint8]int:
  13999. var v2 map[uint8]int
  14000. v2, changed = fastpathTV.DecMapUint8IntV(*v, true, d)
  14001. if changed {
  14002. *v = v2
  14003. }
  14004. case map[uint8]int8:
  14005. fastpathTV.DecMapUint8Int8V(v, false, d)
  14006. case *map[uint8]int8:
  14007. var v2 map[uint8]int8
  14008. v2, changed = fastpathTV.DecMapUint8Int8V(*v, true, d)
  14009. if changed {
  14010. *v = v2
  14011. }
  14012. case map[uint8]int16:
  14013. fastpathTV.DecMapUint8Int16V(v, false, d)
  14014. case *map[uint8]int16:
  14015. var v2 map[uint8]int16
  14016. v2, changed = fastpathTV.DecMapUint8Int16V(*v, true, d)
  14017. if changed {
  14018. *v = v2
  14019. }
  14020. case map[uint8]int32:
  14021. fastpathTV.DecMapUint8Int32V(v, false, d)
  14022. case *map[uint8]int32:
  14023. var v2 map[uint8]int32
  14024. v2, changed = fastpathTV.DecMapUint8Int32V(*v, true, d)
  14025. if changed {
  14026. *v = v2
  14027. }
  14028. case map[uint8]int64:
  14029. fastpathTV.DecMapUint8Int64V(v, false, d)
  14030. case *map[uint8]int64:
  14031. var v2 map[uint8]int64
  14032. v2, changed = fastpathTV.DecMapUint8Int64V(*v, true, d)
  14033. if changed {
  14034. *v = v2
  14035. }
  14036. case map[uint8]float32:
  14037. fastpathTV.DecMapUint8Float32V(v, false, d)
  14038. case *map[uint8]float32:
  14039. var v2 map[uint8]float32
  14040. v2, changed = fastpathTV.DecMapUint8Float32V(*v, true, d)
  14041. if changed {
  14042. *v = v2
  14043. }
  14044. case map[uint8]float64:
  14045. fastpathTV.DecMapUint8Float64V(v, false, d)
  14046. case *map[uint8]float64:
  14047. var v2 map[uint8]float64
  14048. v2, changed = fastpathTV.DecMapUint8Float64V(*v, true, d)
  14049. if changed {
  14050. *v = v2
  14051. }
  14052. case map[uint8]bool:
  14053. fastpathTV.DecMapUint8BoolV(v, false, d)
  14054. case *map[uint8]bool:
  14055. var v2 map[uint8]bool
  14056. v2, changed = fastpathTV.DecMapUint8BoolV(*v, true, d)
  14057. if changed {
  14058. *v = v2
  14059. }
  14060. case map[uint16]interface{}:
  14061. fastpathTV.DecMapUint16IntfV(v, false, d)
  14062. case *map[uint16]interface{}:
  14063. var v2 map[uint16]interface{}
  14064. v2, changed = fastpathTV.DecMapUint16IntfV(*v, true, d)
  14065. if changed {
  14066. *v = v2
  14067. }
  14068. case map[uint16]string:
  14069. fastpathTV.DecMapUint16StringV(v, false, d)
  14070. case *map[uint16]string:
  14071. var v2 map[uint16]string
  14072. v2, changed = fastpathTV.DecMapUint16StringV(*v, true, d)
  14073. if changed {
  14074. *v = v2
  14075. }
  14076. case map[uint16]uint:
  14077. fastpathTV.DecMapUint16UintV(v, false, d)
  14078. case *map[uint16]uint:
  14079. var v2 map[uint16]uint
  14080. v2, changed = fastpathTV.DecMapUint16UintV(*v, true, d)
  14081. if changed {
  14082. *v = v2
  14083. }
  14084. case map[uint16]uint8:
  14085. fastpathTV.DecMapUint16Uint8V(v, false, d)
  14086. case *map[uint16]uint8:
  14087. var v2 map[uint16]uint8
  14088. v2, changed = fastpathTV.DecMapUint16Uint8V(*v, true, d)
  14089. if changed {
  14090. *v = v2
  14091. }
  14092. case map[uint16]uint16:
  14093. fastpathTV.DecMapUint16Uint16V(v, false, d)
  14094. case *map[uint16]uint16:
  14095. var v2 map[uint16]uint16
  14096. v2, changed = fastpathTV.DecMapUint16Uint16V(*v, true, d)
  14097. if changed {
  14098. *v = v2
  14099. }
  14100. case map[uint16]uint32:
  14101. fastpathTV.DecMapUint16Uint32V(v, false, d)
  14102. case *map[uint16]uint32:
  14103. var v2 map[uint16]uint32
  14104. v2, changed = fastpathTV.DecMapUint16Uint32V(*v, true, d)
  14105. if changed {
  14106. *v = v2
  14107. }
  14108. case map[uint16]uint64:
  14109. fastpathTV.DecMapUint16Uint64V(v, false, d)
  14110. case *map[uint16]uint64:
  14111. var v2 map[uint16]uint64
  14112. v2, changed = fastpathTV.DecMapUint16Uint64V(*v, true, d)
  14113. if changed {
  14114. *v = v2
  14115. }
  14116. case map[uint16]uintptr:
  14117. fastpathTV.DecMapUint16UintptrV(v, false, d)
  14118. case *map[uint16]uintptr:
  14119. var v2 map[uint16]uintptr
  14120. v2, changed = fastpathTV.DecMapUint16UintptrV(*v, true, d)
  14121. if changed {
  14122. *v = v2
  14123. }
  14124. case map[uint16]int:
  14125. fastpathTV.DecMapUint16IntV(v, false, d)
  14126. case *map[uint16]int:
  14127. var v2 map[uint16]int
  14128. v2, changed = fastpathTV.DecMapUint16IntV(*v, true, d)
  14129. if changed {
  14130. *v = v2
  14131. }
  14132. case map[uint16]int8:
  14133. fastpathTV.DecMapUint16Int8V(v, false, d)
  14134. case *map[uint16]int8:
  14135. var v2 map[uint16]int8
  14136. v2, changed = fastpathTV.DecMapUint16Int8V(*v, true, d)
  14137. if changed {
  14138. *v = v2
  14139. }
  14140. case map[uint16]int16:
  14141. fastpathTV.DecMapUint16Int16V(v, false, d)
  14142. case *map[uint16]int16:
  14143. var v2 map[uint16]int16
  14144. v2, changed = fastpathTV.DecMapUint16Int16V(*v, true, d)
  14145. if changed {
  14146. *v = v2
  14147. }
  14148. case map[uint16]int32:
  14149. fastpathTV.DecMapUint16Int32V(v, false, d)
  14150. case *map[uint16]int32:
  14151. var v2 map[uint16]int32
  14152. v2, changed = fastpathTV.DecMapUint16Int32V(*v, true, d)
  14153. if changed {
  14154. *v = v2
  14155. }
  14156. case map[uint16]int64:
  14157. fastpathTV.DecMapUint16Int64V(v, false, d)
  14158. case *map[uint16]int64:
  14159. var v2 map[uint16]int64
  14160. v2, changed = fastpathTV.DecMapUint16Int64V(*v, true, d)
  14161. if changed {
  14162. *v = v2
  14163. }
  14164. case map[uint16]float32:
  14165. fastpathTV.DecMapUint16Float32V(v, false, d)
  14166. case *map[uint16]float32:
  14167. var v2 map[uint16]float32
  14168. v2, changed = fastpathTV.DecMapUint16Float32V(*v, true, d)
  14169. if changed {
  14170. *v = v2
  14171. }
  14172. case map[uint16]float64:
  14173. fastpathTV.DecMapUint16Float64V(v, false, d)
  14174. case *map[uint16]float64:
  14175. var v2 map[uint16]float64
  14176. v2, changed = fastpathTV.DecMapUint16Float64V(*v, true, d)
  14177. if changed {
  14178. *v = v2
  14179. }
  14180. case map[uint16]bool:
  14181. fastpathTV.DecMapUint16BoolV(v, false, d)
  14182. case *map[uint16]bool:
  14183. var v2 map[uint16]bool
  14184. v2, changed = fastpathTV.DecMapUint16BoolV(*v, true, d)
  14185. if changed {
  14186. *v = v2
  14187. }
  14188. case map[uint32]interface{}:
  14189. fastpathTV.DecMapUint32IntfV(v, false, d)
  14190. case *map[uint32]interface{}:
  14191. var v2 map[uint32]interface{}
  14192. v2, changed = fastpathTV.DecMapUint32IntfV(*v, true, d)
  14193. if changed {
  14194. *v = v2
  14195. }
  14196. case map[uint32]string:
  14197. fastpathTV.DecMapUint32StringV(v, false, d)
  14198. case *map[uint32]string:
  14199. var v2 map[uint32]string
  14200. v2, changed = fastpathTV.DecMapUint32StringV(*v, true, d)
  14201. if changed {
  14202. *v = v2
  14203. }
  14204. case map[uint32]uint:
  14205. fastpathTV.DecMapUint32UintV(v, false, d)
  14206. case *map[uint32]uint:
  14207. var v2 map[uint32]uint
  14208. v2, changed = fastpathTV.DecMapUint32UintV(*v, true, d)
  14209. if changed {
  14210. *v = v2
  14211. }
  14212. case map[uint32]uint8:
  14213. fastpathTV.DecMapUint32Uint8V(v, false, d)
  14214. case *map[uint32]uint8:
  14215. var v2 map[uint32]uint8
  14216. v2, changed = fastpathTV.DecMapUint32Uint8V(*v, true, d)
  14217. if changed {
  14218. *v = v2
  14219. }
  14220. case map[uint32]uint16:
  14221. fastpathTV.DecMapUint32Uint16V(v, false, d)
  14222. case *map[uint32]uint16:
  14223. var v2 map[uint32]uint16
  14224. v2, changed = fastpathTV.DecMapUint32Uint16V(*v, true, d)
  14225. if changed {
  14226. *v = v2
  14227. }
  14228. case map[uint32]uint32:
  14229. fastpathTV.DecMapUint32Uint32V(v, false, d)
  14230. case *map[uint32]uint32:
  14231. var v2 map[uint32]uint32
  14232. v2, changed = fastpathTV.DecMapUint32Uint32V(*v, true, d)
  14233. if changed {
  14234. *v = v2
  14235. }
  14236. case map[uint32]uint64:
  14237. fastpathTV.DecMapUint32Uint64V(v, false, d)
  14238. case *map[uint32]uint64:
  14239. var v2 map[uint32]uint64
  14240. v2, changed = fastpathTV.DecMapUint32Uint64V(*v, true, d)
  14241. if changed {
  14242. *v = v2
  14243. }
  14244. case map[uint32]uintptr:
  14245. fastpathTV.DecMapUint32UintptrV(v, false, d)
  14246. case *map[uint32]uintptr:
  14247. var v2 map[uint32]uintptr
  14248. v2, changed = fastpathTV.DecMapUint32UintptrV(*v, true, d)
  14249. if changed {
  14250. *v = v2
  14251. }
  14252. case map[uint32]int:
  14253. fastpathTV.DecMapUint32IntV(v, false, d)
  14254. case *map[uint32]int:
  14255. var v2 map[uint32]int
  14256. v2, changed = fastpathTV.DecMapUint32IntV(*v, true, d)
  14257. if changed {
  14258. *v = v2
  14259. }
  14260. case map[uint32]int8:
  14261. fastpathTV.DecMapUint32Int8V(v, false, d)
  14262. case *map[uint32]int8:
  14263. var v2 map[uint32]int8
  14264. v2, changed = fastpathTV.DecMapUint32Int8V(*v, true, d)
  14265. if changed {
  14266. *v = v2
  14267. }
  14268. case map[uint32]int16:
  14269. fastpathTV.DecMapUint32Int16V(v, false, d)
  14270. case *map[uint32]int16:
  14271. var v2 map[uint32]int16
  14272. v2, changed = fastpathTV.DecMapUint32Int16V(*v, true, d)
  14273. if changed {
  14274. *v = v2
  14275. }
  14276. case map[uint32]int32:
  14277. fastpathTV.DecMapUint32Int32V(v, false, d)
  14278. case *map[uint32]int32:
  14279. var v2 map[uint32]int32
  14280. v2, changed = fastpathTV.DecMapUint32Int32V(*v, true, d)
  14281. if changed {
  14282. *v = v2
  14283. }
  14284. case map[uint32]int64:
  14285. fastpathTV.DecMapUint32Int64V(v, false, d)
  14286. case *map[uint32]int64:
  14287. var v2 map[uint32]int64
  14288. v2, changed = fastpathTV.DecMapUint32Int64V(*v, true, d)
  14289. if changed {
  14290. *v = v2
  14291. }
  14292. case map[uint32]float32:
  14293. fastpathTV.DecMapUint32Float32V(v, false, d)
  14294. case *map[uint32]float32:
  14295. var v2 map[uint32]float32
  14296. v2, changed = fastpathTV.DecMapUint32Float32V(*v, true, d)
  14297. if changed {
  14298. *v = v2
  14299. }
  14300. case map[uint32]float64:
  14301. fastpathTV.DecMapUint32Float64V(v, false, d)
  14302. case *map[uint32]float64:
  14303. var v2 map[uint32]float64
  14304. v2, changed = fastpathTV.DecMapUint32Float64V(*v, true, d)
  14305. if changed {
  14306. *v = v2
  14307. }
  14308. case map[uint32]bool:
  14309. fastpathTV.DecMapUint32BoolV(v, false, d)
  14310. case *map[uint32]bool:
  14311. var v2 map[uint32]bool
  14312. v2, changed = fastpathTV.DecMapUint32BoolV(*v, true, d)
  14313. if changed {
  14314. *v = v2
  14315. }
  14316. case map[uint64]interface{}:
  14317. fastpathTV.DecMapUint64IntfV(v, false, d)
  14318. case *map[uint64]interface{}:
  14319. var v2 map[uint64]interface{}
  14320. v2, changed = fastpathTV.DecMapUint64IntfV(*v, true, d)
  14321. if changed {
  14322. *v = v2
  14323. }
  14324. case map[uint64]string:
  14325. fastpathTV.DecMapUint64StringV(v, false, d)
  14326. case *map[uint64]string:
  14327. var v2 map[uint64]string
  14328. v2, changed = fastpathTV.DecMapUint64StringV(*v, true, d)
  14329. if changed {
  14330. *v = v2
  14331. }
  14332. case map[uint64]uint:
  14333. fastpathTV.DecMapUint64UintV(v, false, d)
  14334. case *map[uint64]uint:
  14335. var v2 map[uint64]uint
  14336. v2, changed = fastpathTV.DecMapUint64UintV(*v, true, d)
  14337. if changed {
  14338. *v = v2
  14339. }
  14340. case map[uint64]uint8:
  14341. fastpathTV.DecMapUint64Uint8V(v, false, d)
  14342. case *map[uint64]uint8:
  14343. var v2 map[uint64]uint8
  14344. v2, changed = fastpathTV.DecMapUint64Uint8V(*v, true, d)
  14345. if changed {
  14346. *v = v2
  14347. }
  14348. case map[uint64]uint16:
  14349. fastpathTV.DecMapUint64Uint16V(v, false, d)
  14350. case *map[uint64]uint16:
  14351. var v2 map[uint64]uint16
  14352. v2, changed = fastpathTV.DecMapUint64Uint16V(*v, true, d)
  14353. if changed {
  14354. *v = v2
  14355. }
  14356. case map[uint64]uint32:
  14357. fastpathTV.DecMapUint64Uint32V(v, false, d)
  14358. case *map[uint64]uint32:
  14359. var v2 map[uint64]uint32
  14360. v2, changed = fastpathTV.DecMapUint64Uint32V(*v, true, d)
  14361. if changed {
  14362. *v = v2
  14363. }
  14364. case map[uint64]uint64:
  14365. fastpathTV.DecMapUint64Uint64V(v, false, d)
  14366. case *map[uint64]uint64:
  14367. var v2 map[uint64]uint64
  14368. v2, changed = fastpathTV.DecMapUint64Uint64V(*v, true, d)
  14369. if changed {
  14370. *v = v2
  14371. }
  14372. case map[uint64]uintptr:
  14373. fastpathTV.DecMapUint64UintptrV(v, false, d)
  14374. case *map[uint64]uintptr:
  14375. var v2 map[uint64]uintptr
  14376. v2, changed = fastpathTV.DecMapUint64UintptrV(*v, true, d)
  14377. if changed {
  14378. *v = v2
  14379. }
  14380. case map[uint64]int:
  14381. fastpathTV.DecMapUint64IntV(v, false, d)
  14382. case *map[uint64]int:
  14383. var v2 map[uint64]int
  14384. v2, changed = fastpathTV.DecMapUint64IntV(*v, true, d)
  14385. if changed {
  14386. *v = v2
  14387. }
  14388. case map[uint64]int8:
  14389. fastpathTV.DecMapUint64Int8V(v, false, d)
  14390. case *map[uint64]int8:
  14391. var v2 map[uint64]int8
  14392. v2, changed = fastpathTV.DecMapUint64Int8V(*v, true, d)
  14393. if changed {
  14394. *v = v2
  14395. }
  14396. case map[uint64]int16:
  14397. fastpathTV.DecMapUint64Int16V(v, false, d)
  14398. case *map[uint64]int16:
  14399. var v2 map[uint64]int16
  14400. v2, changed = fastpathTV.DecMapUint64Int16V(*v, true, d)
  14401. if changed {
  14402. *v = v2
  14403. }
  14404. case map[uint64]int32:
  14405. fastpathTV.DecMapUint64Int32V(v, false, d)
  14406. case *map[uint64]int32:
  14407. var v2 map[uint64]int32
  14408. v2, changed = fastpathTV.DecMapUint64Int32V(*v, true, d)
  14409. if changed {
  14410. *v = v2
  14411. }
  14412. case map[uint64]int64:
  14413. fastpathTV.DecMapUint64Int64V(v, false, d)
  14414. case *map[uint64]int64:
  14415. var v2 map[uint64]int64
  14416. v2, changed = fastpathTV.DecMapUint64Int64V(*v, true, d)
  14417. if changed {
  14418. *v = v2
  14419. }
  14420. case map[uint64]float32:
  14421. fastpathTV.DecMapUint64Float32V(v, false, d)
  14422. case *map[uint64]float32:
  14423. var v2 map[uint64]float32
  14424. v2, changed = fastpathTV.DecMapUint64Float32V(*v, true, d)
  14425. if changed {
  14426. *v = v2
  14427. }
  14428. case map[uint64]float64:
  14429. fastpathTV.DecMapUint64Float64V(v, false, d)
  14430. case *map[uint64]float64:
  14431. var v2 map[uint64]float64
  14432. v2, changed = fastpathTV.DecMapUint64Float64V(*v, true, d)
  14433. if changed {
  14434. *v = v2
  14435. }
  14436. case map[uint64]bool:
  14437. fastpathTV.DecMapUint64BoolV(v, false, d)
  14438. case *map[uint64]bool:
  14439. var v2 map[uint64]bool
  14440. v2, changed = fastpathTV.DecMapUint64BoolV(*v, true, d)
  14441. if changed {
  14442. *v = v2
  14443. }
  14444. case map[uintptr]interface{}:
  14445. fastpathTV.DecMapUintptrIntfV(v, false, d)
  14446. case *map[uintptr]interface{}:
  14447. var v2 map[uintptr]interface{}
  14448. v2, changed = fastpathTV.DecMapUintptrIntfV(*v, true, d)
  14449. if changed {
  14450. *v = v2
  14451. }
  14452. case map[uintptr]string:
  14453. fastpathTV.DecMapUintptrStringV(v, false, d)
  14454. case *map[uintptr]string:
  14455. var v2 map[uintptr]string
  14456. v2, changed = fastpathTV.DecMapUintptrStringV(*v, true, d)
  14457. if changed {
  14458. *v = v2
  14459. }
  14460. case map[uintptr]uint:
  14461. fastpathTV.DecMapUintptrUintV(v, false, d)
  14462. case *map[uintptr]uint:
  14463. var v2 map[uintptr]uint
  14464. v2, changed = fastpathTV.DecMapUintptrUintV(*v, true, d)
  14465. if changed {
  14466. *v = v2
  14467. }
  14468. case map[uintptr]uint8:
  14469. fastpathTV.DecMapUintptrUint8V(v, false, d)
  14470. case *map[uintptr]uint8:
  14471. var v2 map[uintptr]uint8
  14472. v2, changed = fastpathTV.DecMapUintptrUint8V(*v, true, d)
  14473. if changed {
  14474. *v = v2
  14475. }
  14476. case map[uintptr]uint16:
  14477. fastpathTV.DecMapUintptrUint16V(v, false, d)
  14478. case *map[uintptr]uint16:
  14479. var v2 map[uintptr]uint16
  14480. v2, changed = fastpathTV.DecMapUintptrUint16V(*v, true, d)
  14481. if changed {
  14482. *v = v2
  14483. }
  14484. case map[uintptr]uint32:
  14485. fastpathTV.DecMapUintptrUint32V(v, false, d)
  14486. case *map[uintptr]uint32:
  14487. var v2 map[uintptr]uint32
  14488. v2, changed = fastpathTV.DecMapUintptrUint32V(*v, true, d)
  14489. if changed {
  14490. *v = v2
  14491. }
  14492. case map[uintptr]uint64:
  14493. fastpathTV.DecMapUintptrUint64V(v, false, d)
  14494. case *map[uintptr]uint64:
  14495. var v2 map[uintptr]uint64
  14496. v2, changed = fastpathTV.DecMapUintptrUint64V(*v, true, d)
  14497. if changed {
  14498. *v = v2
  14499. }
  14500. case map[uintptr]uintptr:
  14501. fastpathTV.DecMapUintptrUintptrV(v, false, d)
  14502. case *map[uintptr]uintptr:
  14503. var v2 map[uintptr]uintptr
  14504. v2, changed = fastpathTV.DecMapUintptrUintptrV(*v, true, d)
  14505. if changed {
  14506. *v = v2
  14507. }
  14508. case map[uintptr]int:
  14509. fastpathTV.DecMapUintptrIntV(v, false, d)
  14510. case *map[uintptr]int:
  14511. var v2 map[uintptr]int
  14512. v2, changed = fastpathTV.DecMapUintptrIntV(*v, true, d)
  14513. if changed {
  14514. *v = v2
  14515. }
  14516. case map[uintptr]int8:
  14517. fastpathTV.DecMapUintptrInt8V(v, false, d)
  14518. case *map[uintptr]int8:
  14519. var v2 map[uintptr]int8
  14520. v2, changed = fastpathTV.DecMapUintptrInt8V(*v, true, d)
  14521. if changed {
  14522. *v = v2
  14523. }
  14524. case map[uintptr]int16:
  14525. fastpathTV.DecMapUintptrInt16V(v, false, d)
  14526. case *map[uintptr]int16:
  14527. var v2 map[uintptr]int16
  14528. v2, changed = fastpathTV.DecMapUintptrInt16V(*v, true, d)
  14529. if changed {
  14530. *v = v2
  14531. }
  14532. case map[uintptr]int32:
  14533. fastpathTV.DecMapUintptrInt32V(v, false, d)
  14534. case *map[uintptr]int32:
  14535. var v2 map[uintptr]int32
  14536. v2, changed = fastpathTV.DecMapUintptrInt32V(*v, true, d)
  14537. if changed {
  14538. *v = v2
  14539. }
  14540. case map[uintptr]int64:
  14541. fastpathTV.DecMapUintptrInt64V(v, false, d)
  14542. case *map[uintptr]int64:
  14543. var v2 map[uintptr]int64
  14544. v2, changed = fastpathTV.DecMapUintptrInt64V(*v, true, d)
  14545. if changed {
  14546. *v = v2
  14547. }
  14548. case map[uintptr]float32:
  14549. fastpathTV.DecMapUintptrFloat32V(v, false, d)
  14550. case *map[uintptr]float32:
  14551. var v2 map[uintptr]float32
  14552. v2, changed = fastpathTV.DecMapUintptrFloat32V(*v, true, d)
  14553. if changed {
  14554. *v = v2
  14555. }
  14556. case map[uintptr]float64:
  14557. fastpathTV.DecMapUintptrFloat64V(v, false, d)
  14558. case *map[uintptr]float64:
  14559. var v2 map[uintptr]float64
  14560. v2, changed = fastpathTV.DecMapUintptrFloat64V(*v, true, d)
  14561. if changed {
  14562. *v = v2
  14563. }
  14564. case map[uintptr]bool:
  14565. fastpathTV.DecMapUintptrBoolV(v, false, d)
  14566. case *map[uintptr]bool:
  14567. var v2 map[uintptr]bool
  14568. v2, changed = fastpathTV.DecMapUintptrBoolV(*v, true, d)
  14569. if changed {
  14570. *v = v2
  14571. }
  14572. case map[int]interface{}:
  14573. fastpathTV.DecMapIntIntfV(v, false, d)
  14574. case *map[int]interface{}:
  14575. var v2 map[int]interface{}
  14576. v2, changed = fastpathTV.DecMapIntIntfV(*v, true, d)
  14577. if changed {
  14578. *v = v2
  14579. }
  14580. case map[int]string:
  14581. fastpathTV.DecMapIntStringV(v, false, d)
  14582. case *map[int]string:
  14583. var v2 map[int]string
  14584. v2, changed = fastpathTV.DecMapIntStringV(*v, true, d)
  14585. if changed {
  14586. *v = v2
  14587. }
  14588. case map[int]uint:
  14589. fastpathTV.DecMapIntUintV(v, false, d)
  14590. case *map[int]uint:
  14591. var v2 map[int]uint
  14592. v2, changed = fastpathTV.DecMapIntUintV(*v, true, d)
  14593. if changed {
  14594. *v = v2
  14595. }
  14596. case map[int]uint8:
  14597. fastpathTV.DecMapIntUint8V(v, false, d)
  14598. case *map[int]uint8:
  14599. var v2 map[int]uint8
  14600. v2, changed = fastpathTV.DecMapIntUint8V(*v, true, d)
  14601. if changed {
  14602. *v = v2
  14603. }
  14604. case map[int]uint16:
  14605. fastpathTV.DecMapIntUint16V(v, false, d)
  14606. case *map[int]uint16:
  14607. var v2 map[int]uint16
  14608. v2, changed = fastpathTV.DecMapIntUint16V(*v, true, d)
  14609. if changed {
  14610. *v = v2
  14611. }
  14612. case map[int]uint32:
  14613. fastpathTV.DecMapIntUint32V(v, false, d)
  14614. case *map[int]uint32:
  14615. var v2 map[int]uint32
  14616. v2, changed = fastpathTV.DecMapIntUint32V(*v, true, d)
  14617. if changed {
  14618. *v = v2
  14619. }
  14620. case map[int]uint64:
  14621. fastpathTV.DecMapIntUint64V(v, false, d)
  14622. case *map[int]uint64:
  14623. var v2 map[int]uint64
  14624. v2, changed = fastpathTV.DecMapIntUint64V(*v, true, d)
  14625. if changed {
  14626. *v = v2
  14627. }
  14628. case map[int]uintptr:
  14629. fastpathTV.DecMapIntUintptrV(v, false, d)
  14630. case *map[int]uintptr:
  14631. var v2 map[int]uintptr
  14632. v2, changed = fastpathTV.DecMapIntUintptrV(*v, true, d)
  14633. if changed {
  14634. *v = v2
  14635. }
  14636. case map[int]int:
  14637. fastpathTV.DecMapIntIntV(v, false, d)
  14638. case *map[int]int:
  14639. var v2 map[int]int
  14640. v2, changed = fastpathTV.DecMapIntIntV(*v, true, d)
  14641. if changed {
  14642. *v = v2
  14643. }
  14644. case map[int]int8:
  14645. fastpathTV.DecMapIntInt8V(v, false, d)
  14646. case *map[int]int8:
  14647. var v2 map[int]int8
  14648. v2, changed = fastpathTV.DecMapIntInt8V(*v, true, d)
  14649. if changed {
  14650. *v = v2
  14651. }
  14652. case map[int]int16:
  14653. fastpathTV.DecMapIntInt16V(v, false, d)
  14654. case *map[int]int16:
  14655. var v2 map[int]int16
  14656. v2, changed = fastpathTV.DecMapIntInt16V(*v, true, d)
  14657. if changed {
  14658. *v = v2
  14659. }
  14660. case map[int]int32:
  14661. fastpathTV.DecMapIntInt32V(v, false, d)
  14662. case *map[int]int32:
  14663. var v2 map[int]int32
  14664. v2, changed = fastpathTV.DecMapIntInt32V(*v, true, d)
  14665. if changed {
  14666. *v = v2
  14667. }
  14668. case map[int]int64:
  14669. fastpathTV.DecMapIntInt64V(v, false, d)
  14670. case *map[int]int64:
  14671. var v2 map[int]int64
  14672. v2, changed = fastpathTV.DecMapIntInt64V(*v, true, d)
  14673. if changed {
  14674. *v = v2
  14675. }
  14676. case map[int]float32:
  14677. fastpathTV.DecMapIntFloat32V(v, false, d)
  14678. case *map[int]float32:
  14679. var v2 map[int]float32
  14680. v2, changed = fastpathTV.DecMapIntFloat32V(*v, true, d)
  14681. if changed {
  14682. *v = v2
  14683. }
  14684. case map[int]float64:
  14685. fastpathTV.DecMapIntFloat64V(v, false, d)
  14686. case *map[int]float64:
  14687. var v2 map[int]float64
  14688. v2, changed = fastpathTV.DecMapIntFloat64V(*v, true, d)
  14689. if changed {
  14690. *v = v2
  14691. }
  14692. case map[int]bool:
  14693. fastpathTV.DecMapIntBoolV(v, false, d)
  14694. case *map[int]bool:
  14695. var v2 map[int]bool
  14696. v2, changed = fastpathTV.DecMapIntBoolV(*v, true, d)
  14697. if changed {
  14698. *v = v2
  14699. }
  14700. case map[int8]interface{}:
  14701. fastpathTV.DecMapInt8IntfV(v, false, d)
  14702. case *map[int8]interface{}:
  14703. var v2 map[int8]interface{}
  14704. v2, changed = fastpathTV.DecMapInt8IntfV(*v, true, d)
  14705. if changed {
  14706. *v = v2
  14707. }
  14708. case map[int8]string:
  14709. fastpathTV.DecMapInt8StringV(v, false, d)
  14710. case *map[int8]string:
  14711. var v2 map[int8]string
  14712. v2, changed = fastpathTV.DecMapInt8StringV(*v, true, d)
  14713. if changed {
  14714. *v = v2
  14715. }
  14716. case map[int8]uint:
  14717. fastpathTV.DecMapInt8UintV(v, false, d)
  14718. case *map[int8]uint:
  14719. var v2 map[int8]uint
  14720. v2, changed = fastpathTV.DecMapInt8UintV(*v, true, d)
  14721. if changed {
  14722. *v = v2
  14723. }
  14724. case map[int8]uint8:
  14725. fastpathTV.DecMapInt8Uint8V(v, false, d)
  14726. case *map[int8]uint8:
  14727. var v2 map[int8]uint8
  14728. v2, changed = fastpathTV.DecMapInt8Uint8V(*v, true, d)
  14729. if changed {
  14730. *v = v2
  14731. }
  14732. case map[int8]uint16:
  14733. fastpathTV.DecMapInt8Uint16V(v, false, d)
  14734. case *map[int8]uint16:
  14735. var v2 map[int8]uint16
  14736. v2, changed = fastpathTV.DecMapInt8Uint16V(*v, true, d)
  14737. if changed {
  14738. *v = v2
  14739. }
  14740. case map[int8]uint32:
  14741. fastpathTV.DecMapInt8Uint32V(v, false, d)
  14742. case *map[int8]uint32:
  14743. var v2 map[int8]uint32
  14744. v2, changed = fastpathTV.DecMapInt8Uint32V(*v, true, d)
  14745. if changed {
  14746. *v = v2
  14747. }
  14748. case map[int8]uint64:
  14749. fastpathTV.DecMapInt8Uint64V(v, false, d)
  14750. case *map[int8]uint64:
  14751. var v2 map[int8]uint64
  14752. v2, changed = fastpathTV.DecMapInt8Uint64V(*v, true, d)
  14753. if changed {
  14754. *v = v2
  14755. }
  14756. case map[int8]uintptr:
  14757. fastpathTV.DecMapInt8UintptrV(v, false, d)
  14758. case *map[int8]uintptr:
  14759. var v2 map[int8]uintptr
  14760. v2, changed = fastpathTV.DecMapInt8UintptrV(*v, true, d)
  14761. if changed {
  14762. *v = v2
  14763. }
  14764. case map[int8]int:
  14765. fastpathTV.DecMapInt8IntV(v, false, d)
  14766. case *map[int8]int:
  14767. var v2 map[int8]int
  14768. v2, changed = fastpathTV.DecMapInt8IntV(*v, true, d)
  14769. if changed {
  14770. *v = v2
  14771. }
  14772. case map[int8]int8:
  14773. fastpathTV.DecMapInt8Int8V(v, false, d)
  14774. case *map[int8]int8:
  14775. var v2 map[int8]int8
  14776. v2, changed = fastpathTV.DecMapInt8Int8V(*v, true, d)
  14777. if changed {
  14778. *v = v2
  14779. }
  14780. case map[int8]int16:
  14781. fastpathTV.DecMapInt8Int16V(v, false, d)
  14782. case *map[int8]int16:
  14783. var v2 map[int8]int16
  14784. v2, changed = fastpathTV.DecMapInt8Int16V(*v, true, d)
  14785. if changed {
  14786. *v = v2
  14787. }
  14788. case map[int8]int32:
  14789. fastpathTV.DecMapInt8Int32V(v, false, d)
  14790. case *map[int8]int32:
  14791. var v2 map[int8]int32
  14792. v2, changed = fastpathTV.DecMapInt8Int32V(*v, true, d)
  14793. if changed {
  14794. *v = v2
  14795. }
  14796. case map[int8]int64:
  14797. fastpathTV.DecMapInt8Int64V(v, false, d)
  14798. case *map[int8]int64:
  14799. var v2 map[int8]int64
  14800. v2, changed = fastpathTV.DecMapInt8Int64V(*v, true, d)
  14801. if changed {
  14802. *v = v2
  14803. }
  14804. case map[int8]float32:
  14805. fastpathTV.DecMapInt8Float32V(v, false, d)
  14806. case *map[int8]float32:
  14807. var v2 map[int8]float32
  14808. v2, changed = fastpathTV.DecMapInt8Float32V(*v, true, d)
  14809. if changed {
  14810. *v = v2
  14811. }
  14812. case map[int8]float64:
  14813. fastpathTV.DecMapInt8Float64V(v, false, d)
  14814. case *map[int8]float64:
  14815. var v2 map[int8]float64
  14816. v2, changed = fastpathTV.DecMapInt8Float64V(*v, true, d)
  14817. if changed {
  14818. *v = v2
  14819. }
  14820. case map[int8]bool:
  14821. fastpathTV.DecMapInt8BoolV(v, false, d)
  14822. case *map[int8]bool:
  14823. var v2 map[int8]bool
  14824. v2, changed = fastpathTV.DecMapInt8BoolV(*v, true, d)
  14825. if changed {
  14826. *v = v2
  14827. }
  14828. case map[int16]interface{}:
  14829. fastpathTV.DecMapInt16IntfV(v, false, d)
  14830. case *map[int16]interface{}:
  14831. var v2 map[int16]interface{}
  14832. v2, changed = fastpathTV.DecMapInt16IntfV(*v, true, d)
  14833. if changed {
  14834. *v = v2
  14835. }
  14836. case map[int16]string:
  14837. fastpathTV.DecMapInt16StringV(v, false, d)
  14838. case *map[int16]string:
  14839. var v2 map[int16]string
  14840. v2, changed = fastpathTV.DecMapInt16StringV(*v, true, d)
  14841. if changed {
  14842. *v = v2
  14843. }
  14844. case map[int16]uint:
  14845. fastpathTV.DecMapInt16UintV(v, false, d)
  14846. case *map[int16]uint:
  14847. var v2 map[int16]uint
  14848. v2, changed = fastpathTV.DecMapInt16UintV(*v, true, d)
  14849. if changed {
  14850. *v = v2
  14851. }
  14852. case map[int16]uint8:
  14853. fastpathTV.DecMapInt16Uint8V(v, false, d)
  14854. case *map[int16]uint8:
  14855. var v2 map[int16]uint8
  14856. v2, changed = fastpathTV.DecMapInt16Uint8V(*v, true, d)
  14857. if changed {
  14858. *v = v2
  14859. }
  14860. case map[int16]uint16:
  14861. fastpathTV.DecMapInt16Uint16V(v, false, d)
  14862. case *map[int16]uint16:
  14863. var v2 map[int16]uint16
  14864. v2, changed = fastpathTV.DecMapInt16Uint16V(*v, true, d)
  14865. if changed {
  14866. *v = v2
  14867. }
  14868. case map[int16]uint32:
  14869. fastpathTV.DecMapInt16Uint32V(v, false, d)
  14870. case *map[int16]uint32:
  14871. var v2 map[int16]uint32
  14872. v2, changed = fastpathTV.DecMapInt16Uint32V(*v, true, d)
  14873. if changed {
  14874. *v = v2
  14875. }
  14876. case map[int16]uint64:
  14877. fastpathTV.DecMapInt16Uint64V(v, false, d)
  14878. case *map[int16]uint64:
  14879. var v2 map[int16]uint64
  14880. v2, changed = fastpathTV.DecMapInt16Uint64V(*v, true, d)
  14881. if changed {
  14882. *v = v2
  14883. }
  14884. case map[int16]uintptr:
  14885. fastpathTV.DecMapInt16UintptrV(v, false, d)
  14886. case *map[int16]uintptr:
  14887. var v2 map[int16]uintptr
  14888. v2, changed = fastpathTV.DecMapInt16UintptrV(*v, true, d)
  14889. if changed {
  14890. *v = v2
  14891. }
  14892. case map[int16]int:
  14893. fastpathTV.DecMapInt16IntV(v, false, d)
  14894. case *map[int16]int:
  14895. var v2 map[int16]int
  14896. v2, changed = fastpathTV.DecMapInt16IntV(*v, true, d)
  14897. if changed {
  14898. *v = v2
  14899. }
  14900. case map[int16]int8:
  14901. fastpathTV.DecMapInt16Int8V(v, false, d)
  14902. case *map[int16]int8:
  14903. var v2 map[int16]int8
  14904. v2, changed = fastpathTV.DecMapInt16Int8V(*v, true, d)
  14905. if changed {
  14906. *v = v2
  14907. }
  14908. case map[int16]int16:
  14909. fastpathTV.DecMapInt16Int16V(v, false, d)
  14910. case *map[int16]int16:
  14911. var v2 map[int16]int16
  14912. v2, changed = fastpathTV.DecMapInt16Int16V(*v, true, d)
  14913. if changed {
  14914. *v = v2
  14915. }
  14916. case map[int16]int32:
  14917. fastpathTV.DecMapInt16Int32V(v, false, d)
  14918. case *map[int16]int32:
  14919. var v2 map[int16]int32
  14920. v2, changed = fastpathTV.DecMapInt16Int32V(*v, true, d)
  14921. if changed {
  14922. *v = v2
  14923. }
  14924. case map[int16]int64:
  14925. fastpathTV.DecMapInt16Int64V(v, false, d)
  14926. case *map[int16]int64:
  14927. var v2 map[int16]int64
  14928. v2, changed = fastpathTV.DecMapInt16Int64V(*v, true, d)
  14929. if changed {
  14930. *v = v2
  14931. }
  14932. case map[int16]float32:
  14933. fastpathTV.DecMapInt16Float32V(v, false, d)
  14934. case *map[int16]float32:
  14935. var v2 map[int16]float32
  14936. v2, changed = fastpathTV.DecMapInt16Float32V(*v, true, d)
  14937. if changed {
  14938. *v = v2
  14939. }
  14940. case map[int16]float64:
  14941. fastpathTV.DecMapInt16Float64V(v, false, d)
  14942. case *map[int16]float64:
  14943. var v2 map[int16]float64
  14944. v2, changed = fastpathTV.DecMapInt16Float64V(*v, true, d)
  14945. if changed {
  14946. *v = v2
  14947. }
  14948. case map[int16]bool:
  14949. fastpathTV.DecMapInt16BoolV(v, false, d)
  14950. case *map[int16]bool:
  14951. var v2 map[int16]bool
  14952. v2, changed = fastpathTV.DecMapInt16BoolV(*v, true, d)
  14953. if changed {
  14954. *v = v2
  14955. }
  14956. case map[int32]interface{}:
  14957. fastpathTV.DecMapInt32IntfV(v, false, d)
  14958. case *map[int32]interface{}:
  14959. var v2 map[int32]interface{}
  14960. v2, changed = fastpathTV.DecMapInt32IntfV(*v, true, d)
  14961. if changed {
  14962. *v = v2
  14963. }
  14964. case map[int32]string:
  14965. fastpathTV.DecMapInt32StringV(v, false, d)
  14966. case *map[int32]string:
  14967. var v2 map[int32]string
  14968. v2, changed = fastpathTV.DecMapInt32StringV(*v, true, d)
  14969. if changed {
  14970. *v = v2
  14971. }
  14972. case map[int32]uint:
  14973. fastpathTV.DecMapInt32UintV(v, false, d)
  14974. case *map[int32]uint:
  14975. var v2 map[int32]uint
  14976. v2, changed = fastpathTV.DecMapInt32UintV(*v, true, d)
  14977. if changed {
  14978. *v = v2
  14979. }
  14980. case map[int32]uint8:
  14981. fastpathTV.DecMapInt32Uint8V(v, false, d)
  14982. case *map[int32]uint8:
  14983. var v2 map[int32]uint8
  14984. v2, changed = fastpathTV.DecMapInt32Uint8V(*v, true, d)
  14985. if changed {
  14986. *v = v2
  14987. }
  14988. case map[int32]uint16:
  14989. fastpathTV.DecMapInt32Uint16V(v, false, d)
  14990. case *map[int32]uint16:
  14991. var v2 map[int32]uint16
  14992. v2, changed = fastpathTV.DecMapInt32Uint16V(*v, true, d)
  14993. if changed {
  14994. *v = v2
  14995. }
  14996. case map[int32]uint32:
  14997. fastpathTV.DecMapInt32Uint32V(v, false, d)
  14998. case *map[int32]uint32:
  14999. var v2 map[int32]uint32
  15000. v2, changed = fastpathTV.DecMapInt32Uint32V(*v, true, d)
  15001. if changed {
  15002. *v = v2
  15003. }
  15004. case map[int32]uint64:
  15005. fastpathTV.DecMapInt32Uint64V(v, false, d)
  15006. case *map[int32]uint64:
  15007. var v2 map[int32]uint64
  15008. v2, changed = fastpathTV.DecMapInt32Uint64V(*v, true, d)
  15009. if changed {
  15010. *v = v2
  15011. }
  15012. case map[int32]uintptr:
  15013. fastpathTV.DecMapInt32UintptrV(v, false, d)
  15014. case *map[int32]uintptr:
  15015. var v2 map[int32]uintptr
  15016. v2, changed = fastpathTV.DecMapInt32UintptrV(*v, true, d)
  15017. if changed {
  15018. *v = v2
  15019. }
  15020. case map[int32]int:
  15021. fastpathTV.DecMapInt32IntV(v, false, d)
  15022. case *map[int32]int:
  15023. var v2 map[int32]int
  15024. v2, changed = fastpathTV.DecMapInt32IntV(*v, true, d)
  15025. if changed {
  15026. *v = v2
  15027. }
  15028. case map[int32]int8:
  15029. fastpathTV.DecMapInt32Int8V(v, false, d)
  15030. case *map[int32]int8:
  15031. var v2 map[int32]int8
  15032. v2, changed = fastpathTV.DecMapInt32Int8V(*v, true, d)
  15033. if changed {
  15034. *v = v2
  15035. }
  15036. case map[int32]int16:
  15037. fastpathTV.DecMapInt32Int16V(v, false, d)
  15038. case *map[int32]int16:
  15039. var v2 map[int32]int16
  15040. v2, changed = fastpathTV.DecMapInt32Int16V(*v, true, d)
  15041. if changed {
  15042. *v = v2
  15043. }
  15044. case map[int32]int32:
  15045. fastpathTV.DecMapInt32Int32V(v, false, d)
  15046. case *map[int32]int32:
  15047. var v2 map[int32]int32
  15048. v2, changed = fastpathTV.DecMapInt32Int32V(*v, true, d)
  15049. if changed {
  15050. *v = v2
  15051. }
  15052. case map[int32]int64:
  15053. fastpathTV.DecMapInt32Int64V(v, false, d)
  15054. case *map[int32]int64:
  15055. var v2 map[int32]int64
  15056. v2, changed = fastpathTV.DecMapInt32Int64V(*v, true, d)
  15057. if changed {
  15058. *v = v2
  15059. }
  15060. case map[int32]float32:
  15061. fastpathTV.DecMapInt32Float32V(v, false, d)
  15062. case *map[int32]float32:
  15063. var v2 map[int32]float32
  15064. v2, changed = fastpathTV.DecMapInt32Float32V(*v, true, d)
  15065. if changed {
  15066. *v = v2
  15067. }
  15068. case map[int32]float64:
  15069. fastpathTV.DecMapInt32Float64V(v, false, d)
  15070. case *map[int32]float64:
  15071. var v2 map[int32]float64
  15072. v2, changed = fastpathTV.DecMapInt32Float64V(*v, true, d)
  15073. if changed {
  15074. *v = v2
  15075. }
  15076. case map[int32]bool:
  15077. fastpathTV.DecMapInt32BoolV(v, false, d)
  15078. case *map[int32]bool:
  15079. var v2 map[int32]bool
  15080. v2, changed = fastpathTV.DecMapInt32BoolV(*v, true, d)
  15081. if changed {
  15082. *v = v2
  15083. }
  15084. case map[int64]interface{}:
  15085. fastpathTV.DecMapInt64IntfV(v, false, d)
  15086. case *map[int64]interface{}:
  15087. var v2 map[int64]interface{}
  15088. v2, changed = fastpathTV.DecMapInt64IntfV(*v, true, d)
  15089. if changed {
  15090. *v = v2
  15091. }
  15092. case map[int64]string:
  15093. fastpathTV.DecMapInt64StringV(v, false, d)
  15094. case *map[int64]string:
  15095. var v2 map[int64]string
  15096. v2, changed = fastpathTV.DecMapInt64StringV(*v, true, d)
  15097. if changed {
  15098. *v = v2
  15099. }
  15100. case map[int64]uint:
  15101. fastpathTV.DecMapInt64UintV(v, false, d)
  15102. case *map[int64]uint:
  15103. var v2 map[int64]uint
  15104. v2, changed = fastpathTV.DecMapInt64UintV(*v, true, d)
  15105. if changed {
  15106. *v = v2
  15107. }
  15108. case map[int64]uint8:
  15109. fastpathTV.DecMapInt64Uint8V(v, false, d)
  15110. case *map[int64]uint8:
  15111. var v2 map[int64]uint8
  15112. v2, changed = fastpathTV.DecMapInt64Uint8V(*v, true, d)
  15113. if changed {
  15114. *v = v2
  15115. }
  15116. case map[int64]uint16:
  15117. fastpathTV.DecMapInt64Uint16V(v, false, d)
  15118. case *map[int64]uint16:
  15119. var v2 map[int64]uint16
  15120. v2, changed = fastpathTV.DecMapInt64Uint16V(*v, true, d)
  15121. if changed {
  15122. *v = v2
  15123. }
  15124. case map[int64]uint32:
  15125. fastpathTV.DecMapInt64Uint32V(v, false, d)
  15126. case *map[int64]uint32:
  15127. var v2 map[int64]uint32
  15128. v2, changed = fastpathTV.DecMapInt64Uint32V(*v, true, d)
  15129. if changed {
  15130. *v = v2
  15131. }
  15132. case map[int64]uint64:
  15133. fastpathTV.DecMapInt64Uint64V(v, false, d)
  15134. case *map[int64]uint64:
  15135. var v2 map[int64]uint64
  15136. v2, changed = fastpathTV.DecMapInt64Uint64V(*v, true, d)
  15137. if changed {
  15138. *v = v2
  15139. }
  15140. case map[int64]uintptr:
  15141. fastpathTV.DecMapInt64UintptrV(v, false, d)
  15142. case *map[int64]uintptr:
  15143. var v2 map[int64]uintptr
  15144. v2, changed = fastpathTV.DecMapInt64UintptrV(*v, true, d)
  15145. if changed {
  15146. *v = v2
  15147. }
  15148. case map[int64]int:
  15149. fastpathTV.DecMapInt64IntV(v, false, d)
  15150. case *map[int64]int:
  15151. var v2 map[int64]int
  15152. v2, changed = fastpathTV.DecMapInt64IntV(*v, true, d)
  15153. if changed {
  15154. *v = v2
  15155. }
  15156. case map[int64]int8:
  15157. fastpathTV.DecMapInt64Int8V(v, false, d)
  15158. case *map[int64]int8:
  15159. var v2 map[int64]int8
  15160. v2, changed = fastpathTV.DecMapInt64Int8V(*v, true, d)
  15161. if changed {
  15162. *v = v2
  15163. }
  15164. case map[int64]int16:
  15165. fastpathTV.DecMapInt64Int16V(v, false, d)
  15166. case *map[int64]int16:
  15167. var v2 map[int64]int16
  15168. v2, changed = fastpathTV.DecMapInt64Int16V(*v, true, d)
  15169. if changed {
  15170. *v = v2
  15171. }
  15172. case map[int64]int32:
  15173. fastpathTV.DecMapInt64Int32V(v, false, d)
  15174. case *map[int64]int32:
  15175. var v2 map[int64]int32
  15176. v2, changed = fastpathTV.DecMapInt64Int32V(*v, true, d)
  15177. if changed {
  15178. *v = v2
  15179. }
  15180. case map[int64]int64:
  15181. fastpathTV.DecMapInt64Int64V(v, false, d)
  15182. case *map[int64]int64:
  15183. var v2 map[int64]int64
  15184. v2, changed = fastpathTV.DecMapInt64Int64V(*v, true, d)
  15185. if changed {
  15186. *v = v2
  15187. }
  15188. case map[int64]float32:
  15189. fastpathTV.DecMapInt64Float32V(v, false, d)
  15190. case *map[int64]float32:
  15191. var v2 map[int64]float32
  15192. v2, changed = fastpathTV.DecMapInt64Float32V(*v, true, d)
  15193. if changed {
  15194. *v = v2
  15195. }
  15196. case map[int64]float64:
  15197. fastpathTV.DecMapInt64Float64V(v, false, d)
  15198. case *map[int64]float64:
  15199. var v2 map[int64]float64
  15200. v2, changed = fastpathTV.DecMapInt64Float64V(*v, true, d)
  15201. if changed {
  15202. *v = v2
  15203. }
  15204. case map[int64]bool:
  15205. fastpathTV.DecMapInt64BoolV(v, false, d)
  15206. case *map[int64]bool:
  15207. var v2 map[int64]bool
  15208. v2, changed = fastpathTV.DecMapInt64BoolV(*v, true, d)
  15209. if changed {
  15210. *v = v2
  15211. }
  15212. case map[bool]interface{}:
  15213. fastpathTV.DecMapBoolIntfV(v, false, d)
  15214. case *map[bool]interface{}:
  15215. var v2 map[bool]interface{}
  15216. v2, changed = fastpathTV.DecMapBoolIntfV(*v, true, d)
  15217. if changed {
  15218. *v = v2
  15219. }
  15220. case map[bool]string:
  15221. fastpathTV.DecMapBoolStringV(v, false, d)
  15222. case *map[bool]string:
  15223. var v2 map[bool]string
  15224. v2, changed = fastpathTV.DecMapBoolStringV(*v, true, d)
  15225. if changed {
  15226. *v = v2
  15227. }
  15228. case map[bool]uint:
  15229. fastpathTV.DecMapBoolUintV(v, false, d)
  15230. case *map[bool]uint:
  15231. var v2 map[bool]uint
  15232. v2, changed = fastpathTV.DecMapBoolUintV(*v, true, d)
  15233. if changed {
  15234. *v = v2
  15235. }
  15236. case map[bool]uint8:
  15237. fastpathTV.DecMapBoolUint8V(v, false, d)
  15238. case *map[bool]uint8:
  15239. var v2 map[bool]uint8
  15240. v2, changed = fastpathTV.DecMapBoolUint8V(*v, true, d)
  15241. if changed {
  15242. *v = v2
  15243. }
  15244. case map[bool]uint16:
  15245. fastpathTV.DecMapBoolUint16V(v, false, d)
  15246. case *map[bool]uint16:
  15247. var v2 map[bool]uint16
  15248. v2, changed = fastpathTV.DecMapBoolUint16V(*v, true, d)
  15249. if changed {
  15250. *v = v2
  15251. }
  15252. case map[bool]uint32:
  15253. fastpathTV.DecMapBoolUint32V(v, false, d)
  15254. case *map[bool]uint32:
  15255. var v2 map[bool]uint32
  15256. v2, changed = fastpathTV.DecMapBoolUint32V(*v, true, d)
  15257. if changed {
  15258. *v = v2
  15259. }
  15260. case map[bool]uint64:
  15261. fastpathTV.DecMapBoolUint64V(v, false, d)
  15262. case *map[bool]uint64:
  15263. var v2 map[bool]uint64
  15264. v2, changed = fastpathTV.DecMapBoolUint64V(*v, true, d)
  15265. if changed {
  15266. *v = v2
  15267. }
  15268. case map[bool]uintptr:
  15269. fastpathTV.DecMapBoolUintptrV(v, false, d)
  15270. case *map[bool]uintptr:
  15271. var v2 map[bool]uintptr
  15272. v2, changed = fastpathTV.DecMapBoolUintptrV(*v, true, d)
  15273. if changed {
  15274. *v = v2
  15275. }
  15276. case map[bool]int:
  15277. fastpathTV.DecMapBoolIntV(v, false, d)
  15278. case *map[bool]int:
  15279. var v2 map[bool]int
  15280. v2, changed = fastpathTV.DecMapBoolIntV(*v, true, d)
  15281. if changed {
  15282. *v = v2
  15283. }
  15284. case map[bool]int8:
  15285. fastpathTV.DecMapBoolInt8V(v, false, d)
  15286. case *map[bool]int8:
  15287. var v2 map[bool]int8
  15288. v2, changed = fastpathTV.DecMapBoolInt8V(*v, true, d)
  15289. if changed {
  15290. *v = v2
  15291. }
  15292. case map[bool]int16:
  15293. fastpathTV.DecMapBoolInt16V(v, false, d)
  15294. case *map[bool]int16:
  15295. var v2 map[bool]int16
  15296. v2, changed = fastpathTV.DecMapBoolInt16V(*v, true, d)
  15297. if changed {
  15298. *v = v2
  15299. }
  15300. case map[bool]int32:
  15301. fastpathTV.DecMapBoolInt32V(v, false, d)
  15302. case *map[bool]int32:
  15303. var v2 map[bool]int32
  15304. v2, changed = fastpathTV.DecMapBoolInt32V(*v, true, d)
  15305. if changed {
  15306. *v = v2
  15307. }
  15308. case map[bool]int64:
  15309. fastpathTV.DecMapBoolInt64V(v, false, d)
  15310. case *map[bool]int64:
  15311. var v2 map[bool]int64
  15312. v2, changed = fastpathTV.DecMapBoolInt64V(*v, true, d)
  15313. if changed {
  15314. *v = v2
  15315. }
  15316. case map[bool]float32:
  15317. fastpathTV.DecMapBoolFloat32V(v, false, d)
  15318. case *map[bool]float32:
  15319. var v2 map[bool]float32
  15320. v2, changed = fastpathTV.DecMapBoolFloat32V(*v, true, d)
  15321. if changed {
  15322. *v = v2
  15323. }
  15324. case map[bool]float64:
  15325. fastpathTV.DecMapBoolFloat64V(v, false, d)
  15326. case *map[bool]float64:
  15327. var v2 map[bool]float64
  15328. v2, changed = fastpathTV.DecMapBoolFloat64V(*v, true, d)
  15329. if changed {
  15330. *v = v2
  15331. }
  15332. case map[bool]bool:
  15333. fastpathTV.DecMapBoolBoolV(v, false, d)
  15334. case *map[bool]bool:
  15335. var v2 map[bool]bool
  15336. v2, changed = fastpathTV.DecMapBoolBoolV(*v, true, d)
  15337. if changed {
  15338. *v = v2
  15339. }
  15340. default:
  15341. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  15342. return false
  15343. }
  15344. return true
  15345. }
  15346. func fastpathDecodeSetZeroTypeSwitch(iv interface{}) bool {
  15347. switch v := iv.(type) {
  15348. case *[]interface{}:
  15349. *v = nil
  15350. case *[]string:
  15351. *v = nil
  15352. case *[]float32:
  15353. *v = nil
  15354. case *[]float64:
  15355. *v = nil
  15356. case *[]uint:
  15357. *v = nil
  15358. case *[]uint8:
  15359. *v = nil
  15360. case *[]uint16:
  15361. *v = nil
  15362. case *[]uint32:
  15363. *v = nil
  15364. case *[]uint64:
  15365. *v = nil
  15366. case *[]uintptr:
  15367. *v = nil
  15368. case *[]int:
  15369. *v = nil
  15370. case *[]int8:
  15371. *v = nil
  15372. case *[]int16:
  15373. *v = nil
  15374. case *[]int32:
  15375. *v = nil
  15376. case *[]int64:
  15377. *v = nil
  15378. case *[]bool:
  15379. *v = nil
  15380. case *map[interface{}]interface{}:
  15381. *v = nil
  15382. case *map[interface{}]string:
  15383. *v = nil
  15384. case *map[interface{}]uint:
  15385. *v = nil
  15386. case *map[interface{}]uint8:
  15387. *v = nil
  15388. case *map[interface{}]uint16:
  15389. *v = nil
  15390. case *map[interface{}]uint32:
  15391. *v = nil
  15392. case *map[interface{}]uint64:
  15393. *v = nil
  15394. case *map[interface{}]uintptr:
  15395. *v = nil
  15396. case *map[interface{}]int:
  15397. *v = nil
  15398. case *map[interface{}]int8:
  15399. *v = nil
  15400. case *map[interface{}]int16:
  15401. *v = nil
  15402. case *map[interface{}]int32:
  15403. *v = nil
  15404. case *map[interface{}]int64:
  15405. *v = nil
  15406. case *map[interface{}]float32:
  15407. *v = nil
  15408. case *map[interface{}]float64:
  15409. *v = nil
  15410. case *map[interface{}]bool:
  15411. *v = nil
  15412. case *map[string]interface{}:
  15413. *v = nil
  15414. case *map[string]string:
  15415. *v = nil
  15416. case *map[string]uint:
  15417. *v = nil
  15418. case *map[string]uint8:
  15419. *v = nil
  15420. case *map[string]uint16:
  15421. *v = nil
  15422. case *map[string]uint32:
  15423. *v = nil
  15424. case *map[string]uint64:
  15425. *v = nil
  15426. case *map[string]uintptr:
  15427. *v = nil
  15428. case *map[string]int:
  15429. *v = nil
  15430. case *map[string]int8:
  15431. *v = nil
  15432. case *map[string]int16:
  15433. *v = nil
  15434. case *map[string]int32:
  15435. *v = nil
  15436. case *map[string]int64:
  15437. *v = nil
  15438. case *map[string]float32:
  15439. *v = nil
  15440. case *map[string]float64:
  15441. *v = nil
  15442. case *map[string]bool:
  15443. *v = nil
  15444. case *map[float32]interface{}:
  15445. *v = nil
  15446. case *map[float32]string:
  15447. *v = nil
  15448. case *map[float32]uint:
  15449. *v = nil
  15450. case *map[float32]uint8:
  15451. *v = nil
  15452. case *map[float32]uint16:
  15453. *v = nil
  15454. case *map[float32]uint32:
  15455. *v = nil
  15456. case *map[float32]uint64:
  15457. *v = nil
  15458. case *map[float32]uintptr:
  15459. *v = nil
  15460. case *map[float32]int:
  15461. *v = nil
  15462. case *map[float32]int8:
  15463. *v = nil
  15464. case *map[float32]int16:
  15465. *v = nil
  15466. case *map[float32]int32:
  15467. *v = nil
  15468. case *map[float32]int64:
  15469. *v = nil
  15470. case *map[float32]float32:
  15471. *v = nil
  15472. case *map[float32]float64:
  15473. *v = nil
  15474. case *map[float32]bool:
  15475. *v = nil
  15476. case *map[float64]interface{}:
  15477. *v = nil
  15478. case *map[float64]string:
  15479. *v = nil
  15480. case *map[float64]uint:
  15481. *v = nil
  15482. case *map[float64]uint8:
  15483. *v = nil
  15484. case *map[float64]uint16:
  15485. *v = nil
  15486. case *map[float64]uint32:
  15487. *v = nil
  15488. case *map[float64]uint64:
  15489. *v = nil
  15490. case *map[float64]uintptr:
  15491. *v = nil
  15492. case *map[float64]int:
  15493. *v = nil
  15494. case *map[float64]int8:
  15495. *v = nil
  15496. case *map[float64]int16:
  15497. *v = nil
  15498. case *map[float64]int32:
  15499. *v = nil
  15500. case *map[float64]int64:
  15501. *v = nil
  15502. case *map[float64]float32:
  15503. *v = nil
  15504. case *map[float64]float64:
  15505. *v = nil
  15506. case *map[float64]bool:
  15507. *v = nil
  15508. case *map[uint]interface{}:
  15509. *v = nil
  15510. case *map[uint]string:
  15511. *v = nil
  15512. case *map[uint]uint:
  15513. *v = nil
  15514. case *map[uint]uint8:
  15515. *v = nil
  15516. case *map[uint]uint16:
  15517. *v = nil
  15518. case *map[uint]uint32:
  15519. *v = nil
  15520. case *map[uint]uint64:
  15521. *v = nil
  15522. case *map[uint]uintptr:
  15523. *v = nil
  15524. case *map[uint]int:
  15525. *v = nil
  15526. case *map[uint]int8:
  15527. *v = nil
  15528. case *map[uint]int16:
  15529. *v = nil
  15530. case *map[uint]int32:
  15531. *v = nil
  15532. case *map[uint]int64:
  15533. *v = nil
  15534. case *map[uint]float32:
  15535. *v = nil
  15536. case *map[uint]float64:
  15537. *v = nil
  15538. case *map[uint]bool:
  15539. *v = nil
  15540. case *map[uint8]interface{}:
  15541. *v = nil
  15542. case *map[uint8]string:
  15543. *v = nil
  15544. case *map[uint8]uint:
  15545. *v = nil
  15546. case *map[uint8]uint8:
  15547. *v = nil
  15548. case *map[uint8]uint16:
  15549. *v = nil
  15550. case *map[uint8]uint32:
  15551. *v = nil
  15552. case *map[uint8]uint64:
  15553. *v = nil
  15554. case *map[uint8]uintptr:
  15555. *v = nil
  15556. case *map[uint8]int:
  15557. *v = nil
  15558. case *map[uint8]int8:
  15559. *v = nil
  15560. case *map[uint8]int16:
  15561. *v = nil
  15562. case *map[uint8]int32:
  15563. *v = nil
  15564. case *map[uint8]int64:
  15565. *v = nil
  15566. case *map[uint8]float32:
  15567. *v = nil
  15568. case *map[uint8]float64:
  15569. *v = nil
  15570. case *map[uint8]bool:
  15571. *v = nil
  15572. case *map[uint16]interface{}:
  15573. *v = nil
  15574. case *map[uint16]string:
  15575. *v = nil
  15576. case *map[uint16]uint:
  15577. *v = nil
  15578. case *map[uint16]uint8:
  15579. *v = nil
  15580. case *map[uint16]uint16:
  15581. *v = nil
  15582. case *map[uint16]uint32:
  15583. *v = nil
  15584. case *map[uint16]uint64:
  15585. *v = nil
  15586. case *map[uint16]uintptr:
  15587. *v = nil
  15588. case *map[uint16]int:
  15589. *v = nil
  15590. case *map[uint16]int8:
  15591. *v = nil
  15592. case *map[uint16]int16:
  15593. *v = nil
  15594. case *map[uint16]int32:
  15595. *v = nil
  15596. case *map[uint16]int64:
  15597. *v = nil
  15598. case *map[uint16]float32:
  15599. *v = nil
  15600. case *map[uint16]float64:
  15601. *v = nil
  15602. case *map[uint16]bool:
  15603. *v = nil
  15604. case *map[uint32]interface{}:
  15605. *v = nil
  15606. case *map[uint32]string:
  15607. *v = nil
  15608. case *map[uint32]uint:
  15609. *v = nil
  15610. case *map[uint32]uint8:
  15611. *v = nil
  15612. case *map[uint32]uint16:
  15613. *v = nil
  15614. case *map[uint32]uint32:
  15615. *v = nil
  15616. case *map[uint32]uint64:
  15617. *v = nil
  15618. case *map[uint32]uintptr:
  15619. *v = nil
  15620. case *map[uint32]int:
  15621. *v = nil
  15622. case *map[uint32]int8:
  15623. *v = nil
  15624. case *map[uint32]int16:
  15625. *v = nil
  15626. case *map[uint32]int32:
  15627. *v = nil
  15628. case *map[uint32]int64:
  15629. *v = nil
  15630. case *map[uint32]float32:
  15631. *v = nil
  15632. case *map[uint32]float64:
  15633. *v = nil
  15634. case *map[uint32]bool:
  15635. *v = nil
  15636. case *map[uint64]interface{}:
  15637. *v = nil
  15638. case *map[uint64]string:
  15639. *v = nil
  15640. case *map[uint64]uint:
  15641. *v = nil
  15642. case *map[uint64]uint8:
  15643. *v = nil
  15644. case *map[uint64]uint16:
  15645. *v = nil
  15646. case *map[uint64]uint32:
  15647. *v = nil
  15648. case *map[uint64]uint64:
  15649. *v = nil
  15650. case *map[uint64]uintptr:
  15651. *v = nil
  15652. case *map[uint64]int:
  15653. *v = nil
  15654. case *map[uint64]int8:
  15655. *v = nil
  15656. case *map[uint64]int16:
  15657. *v = nil
  15658. case *map[uint64]int32:
  15659. *v = nil
  15660. case *map[uint64]int64:
  15661. *v = nil
  15662. case *map[uint64]float32:
  15663. *v = nil
  15664. case *map[uint64]float64:
  15665. *v = nil
  15666. case *map[uint64]bool:
  15667. *v = nil
  15668. case *map[uintptr]interface{}:
  15669. *v = nil
  15670. case *map[uintptr]string:
  15671. *v = nil
  15672. case *map[uintptr]uint:
  15673. *v = nil
  15674. case *map[uintptr]uint8:
  15675. *v = nil
  15676. case *map[uintptr]uint16:
  15677. *v = nil
  15678. case *map[uintptr]uint32:
  15679. *v = nil
  15680. case *map[uintptr]uint64:
  15681. *v = nil
  15682. case *map[uintptr]uintptr:
  15683. *v = nil
  15684. case *map[uintptr]int:
  15685. *v = nil
  15686. case *map[uintptr]int8:
  15687. *v = nil
  15688. case *map[uintptr]int16:
  15689. *v = nil
  15690. case *map[uintptr]int32:
  15691. *v = nil
  15692. case *map[uintptr]int64:
  15693. *v = nil
  15694. case *map[uintptr]float32:
  15695. *v = nil
  15696. case *map[uintptr]float64:
  15697. *v = nil
  15698. case *map[uintptr]bool:
  15699. *v = nil
  15700. case *map[int]interface{}:
  15701. *v = nil
  15702. case *map[int]string:
  15703. *v = nil
  15704. case *map[int]uint:
  15705. *v = nil
  15706. case *map[int]uint8:
  15707. *v = nil
  15708. case *map[int]uint16:
  15709. *v = nil
  15710. case *map[int]uint32:
  15711. *v = nil
  15712. case *map[int]uint64:
  15713. *v = nil
  15714. case *map[int]uintptr:
  15715. *v = nil
  15716. case *map[int]int:
  15717. *v = nil
  15718. case *map[int]int8:
  15719. *v = nil
  15720. case *map[int]int16:
  15721. *v = nil
  15722. case *map[int]int32:
  15723. *v = nil
  15724. case *map[int]int64:
  15725. *v = nil
  15726. case *map[int]float32:
  15727. *v = nil
  15728. case *map[int]float64:
  15729. *v = nil
  15730. case *map[int]bool:
  15731. *v = nil
  15732. case *map[int8]interface{}:
  15733. *v = nil
  15734. case *map[int8]string:
  15735. *v = nil
  15736. case *map[int8]uint:
  15737. *v = nil
  15738. case *map[int8]uint8:
  15739. *v = nil
  15740. case *map[int8]uint16:
  15741. *v = nil
  15742. case *map[int8]uint32:
  15743. *v = nil
  15744. case *map[int8]uint64:
  15745. *v = nil
  15746. case *map[int8]uintptr:
  15747. *v = nil
  15748. case *map[int8]int:
  15749. *v = nil
  15750. case *map[int8]int8:
  15751. *v = nil
  15752. case *map[int8]int16:
  15753. *v = nil
  15754. case *map[int8]int32:
  15755. *v = nil
  15756. case *map[int8]int64:
  15757. *v = nil
  15758. case *map[int8]float32:
  15759. *v = nil
  15760. case *map[int8]float64:
  15761. *v = nil
  15762. case *map[int8]bool:
  15763. *v = nil
  15764. case *map[int16]interface{}:
  15765. *v = nil
  15766. case *map[int16]string:
  15767. *v = nil
  15768. case *map[int16]uint:
  15769. *v = nil
  15770. case *map[int16]uint8:
  15771. *v = nil
  15772. case *map[int16]uint16:
  15773. *v = nil
  15774. case *map[int16]uint32:
  15775. *v = nil
  15776. case *map[int16]uint64:
  15777. *v = nil
  15778. case *map[int16]uintptr:
  15779. *v = nil
  15780. case *map[int16]int:
  15781. *v = nil
  15782. case *map[int16]int8:
  15783. *v = nil
  15784. case *map[int16]int16:
  15785. *v = nil
  15786. case *map[int16]int32:
  15787. *v = nil
  15788. case *map[int16]int64:
  15789. *v = nil
  15790. case *map[int16]float32:
  15791. *v = nil
  15792. case *map[int16]float64:
  15793. *v = nil
  15794. case *map[int16]bool:
  15795. *v = nil
  15796. case *map[int32]interface{}:
  15797. *v = nil
  15798. case *map[int32]string:
  15799. *v = nil
  15800. case *map[int32]uint:
  15801. *v = nil
  15802. case *map[int32]uint8:
  15803. *v = nil
  15804. case *map[int32]uint16:
  15805. *v = nil
  15806. case *map[int32]uint32:
  15807. *v = nil
  15808. case *map[int32]uint64:
  15809. *v = nil
  15810. case *map[int32]uintptr:
  15811. *v = nil
  15812. case *map[int32]int:
  15813. *v = nil
  15814. case *map[int32]int8:
  15815. *v = nil
  15816. case *map[int32]int16:
  15817. *v = nil
  15818. case *map[int32]int32:
  15819. *v = nil
  15820. case *map[int32]int64:
  15821. *v = nil
  15822. case *map[int32]float32:
  15823. *v = nil
  15824. case *map[int32]float64:
  15825. *v = nil
  15826. case *map[int32]bool:
  15827. *v = nil
  15828. case *map[int64]interface{}:
  15829. *v = nil
  15830. case *map[int64]string:
  15831. *v = nil
  15832. case *map[int64]uint:
  15833. *v = nil
  15834. case *map[int64]uint8:
  15835. *v = nil
  15836. case *map[int64]uint16:
  15837. *v = nil
  15838. case *map[int64]uint32:
  15839. *v = nil
  15840. case *map[int64]uint64:
  15841. *v = nil
  15842. case *map[int64]uintptr:
  15843. *v = nil
  15844. case *map[int64]int:
  15845. *v = nil
  15846. case *map[int64]int8:
  15847. *v = nil
  15848. case *map[int64]int16:
  15849. *v = nil
  15850. case *map[int64]int32:
  15851. *v = nil
  15852. case *map[int64]int64:
  15853. *v = nil
  15854. case *map[int64]float32:
  15855. *v = nil
  15856. case *map[int64]float64:
  15857. *v = nil
  15858. case *map[int64]bool:
  15859. *v = nil
  15860. case *map[bool]interface{}:
  15861. *v = nil
  15862. case *map[bool]string:
  15863. *v = nil
  15864. case *map[bool]uint:
  15865. *v = nil
  15866. case *map[bool]uint8:
  15867. *v = nil
  15868. case *map[bool]uint16:
  15869. *v = nil
  15870. case *map[bool]uint32:
  15871. *v = nil
  15872. case *map[bool]uint64:
  15873. *v = nil
  15874. case *map[bool]uintptr:
  15875. *v = nil
  15876. case *map[bool]int:
  15877. *v = nil
  15878. case *map[bool]int8:
  15879. *v = nil
  15880. case *map[bool]int16:
  15881. *v = nil
  15882. case *map[bool]int32:
  15883. *v = nil
  15884. case *map[bool]int64:
  15885. *v = nil
  15886. case *map[bool]float32:
  15887. *v = nil
  15888. case *map[bool]float64:
  15889. *v = nil
  15890. case *map[bool]bool:
  15891. *v = nil
  15892. default:
  15893. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  15894. return false
  15895. }
  15896. return true
  15897. }
  15898. // -- -- fast path functions
  15899. func (d *Decoder) fastpathDecSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  15900. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15901. vp := rv2i(rv).(*[]interface{})
  15902. v, changed := fastpathTV.DecSliceIntfV(*vp, !array, d)
  15903. if changed {
  15904. *vp = v
  15905. }
  15906. } else {
  15907. v := rv2i(rv).([]interface{})
  15908. v2, changed := fastpathTV.DecSliceIntfV(v, !array, d)
  15909. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  15910. copy(v, v2)
  15911. }
  15912. }
  15913. }
  15914. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, d *Decoder) {
  15915. v, changed := f.DecSliceIntfV(*vp, true, d)
  15916. if changed {
  15917. *vp = v
  15918. }
  15919. }
  15920. func (_ fastpathT) DecSliceIntfV(v []interface{}, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  15921. dd := d.d
  15922. slh, containerLenS := d.decSliceHelperStart()
  15923. if containerLenS == 0 {
  15924. if canChange {
  15925. if v == nil {
  15926. v = []interface{}{}
  15927. } else if len(v) != 0 {
  15928. v = v[:0]
  15929. }
  15930. changed = true
  15931. }
  15932. slh.End()
  15933. return v, changed
  15934. }
  15935. hasLen := containerLenS > 0
  15936. var xlen int
  15937. if hasLen && canChange {
  15938. if containerLenS > cap(v) {
  15939. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  15940. if xlen <= cap(v) {
  15941. v = v[:xlen]
  15942. } else {
  15943. v = make([]interface{}, xlen)
  15944. }
  15945. changed = true
  15946. } else if containerLenS != len(v) {
  15947. v = v[:containerLenS]
  15948. changed = true
  15949. }
  15950. }
  15951. j := 0
  15952. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15953. if j == 0 && len(v) == 0 && canChange {
  15954. if hasLen {
  15955. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  15956. } else {
  15957. xlen = 8
  15958. }
  15959. v = make([]interface{}, xlen)
  15960. changed = true
  15961. }
  15962. // if indefinite, etc, then expand the slice if necessary
  15963. var decodeIntoBlank bool
  15964. if j >= len(v) {
  15965. if canChange {
  15966. v = append(v, nil)
  15967. changed = true
  15968. } else {
  15969. d.arrayCannotExpand(len(v), j+1)
  15970. decodeIntoBlank = true
  15971. }
  15972. }
  15973. slh.ElemContainerState(j)
  15974. if decodeIntoBlank {
  15975. d.swallow()
  15976. } else if dd.TryDecodeAsNil() {
  15977. v[j] = nil
  15978. } else {
  15979. d.decode(&v[j])
  15980. }
  15981. }
  15982. if canChange {
  15983. if j < len(v) {
  15984. v = v[:j]
  15985. changed = true
  15986. } else if j == 0 && v == nil {
  15987. v = make([]interface{}, 0)
  15988. changed = true
  15989. }
  15990. }
  15991. slh.End()
  15992. return v, changed
  15993. }
  15994. func (d *Decoder) fastpathDecSliceStringR(f *codecFnInfo, rv reflect.Value) {
  15995. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15996. vp := rv2i(rv).(*[]string)
  15997. v, changed := fastpathTV.DecSliceStringV(*vp, !array, d)
  15998. if changed {
  15999. *vp = v
  16000. }
  16001. } else {
  16002. v := rv2i(rv).([]string)
  16003. v2, changed := fastpathTV.DecSliceStringV(v, !array, d)
  16004. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16005. copy(v, v2)
  16006. }
  16007. }
  16008. }
  16009. func (f fastpathT) DecSliceStringX(vp *[]string, d *Decoder) {
  16010. v, changed := f.DecSliceStringV(*vp, true, d)
  16011. if changed {
  16012. *vp = v
  16013. }
  16014. }
  16015. func (_ fastpathT) DecSliceStringV(v []string, canChange bool, d *Decoder) (_ []string, changed bool) {
  16016. dd := d.d
  16017. slh, containerLenS := d.decSliceHelperStart()
  16018. if containerLenS == 0 {
  16019. if canChange {
  16020. if v == nil {
  16021. v = []string{}
  16022. } else if len(v) != 0 {
  16023. v = v[:0]
  16024. }
  16025. changed = true
  16026. }
  16027. slh.End()
  16028. return v, changed
  16029. }
  16030. hasLen := containerLenS > 0
  16031. var xlen int
  16032. if hasLen && canChange {
  16033. if containerLenS > cap(v) {
  16034. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  16035. if xlen <= cap(v) {
  16036. v = v[:xlen]
  16037. } else {
  16038. v = make([]string, xlen)
  16039. }
  16040. changed = true
  16041. } else if containerLenS != len(v) {
  16042. v = v[:containerLenS]
  16043. changed = true
  16044. }
  16045. }
  16046. j := 0
  16047. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16048. if j == 0 && len(v) == 0 && canChange {
  16049. if hasLen {
  16050. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  16051. } else {
  16052. xlen = 8
  16053. }
  16054. v = make([]string, xlen)
  16055. changed = true
  16056. }
  16057. // if indefinite, etc, then expand the slice if necessary
  16058. var decodeIntoBlank bool
  16059. if j >= len(v) {
  16060. if canChange {
  16061. v = append(v, "")
  16062. changed = true
  16063. } else {
  16064. d.arrayCannotExpand(len(v), j+1)
  16065. decodeIntoBlank = true
  16066. }
  16067. }
  16068. slh.ElemContainerState(j)
  16069. if decodeIntoBlank {
  16070. d.swallow()
  16071. } else if dd.TryDecodeAsNil() {
  16072. v[j] = ""
  16073. } else {
  16074. v[j] = dd.DecodeString()
  16075. }
  16076. }
  16077. if canChange {
  16078. if j < len(v) {
  16079. v = v[:j]
  16080. changed = true
  16081. } else if j == 0 && v == nil {
  16082. v = make([]string, 0)
  16083. changed = true
  16084. }
  16085. }
  16086. slh.End()
  16087. return v, changed
  16088. }
  16089. func (d *Decoder) fastpathDecSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  16090. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16091. vp := rv2i(rv).(*[]float32)
  16092. v, changed := fastpathTV.DecSliceFloat32V(*vp, !array, d)
  16093. if changed {
  16094. *vp = v
  16095. }
  16096. } else {
  16097. v := rv2i(rv).([]float32)
  16098. v2, changed := fastpathTV.DecSliceFloat32V(v, !array, d)
  16099. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16100. copy(v, v2)
  16101. }
  16102. }
  16103. }
  16104. func (f fastpathT) DecSliceFloat32X(vp *[]float32, d *Decoder) {
  16105. v, changed := f.DecSliceFloat32V(*vp, true, d)
  16106. if changed {
  16107. *vp = v
  16108. }
  16109. }
  16110. func (_ fastpathT) DecSliceFloat32V(v []float32, canChange bool, d *Decoder) (_ []float32, changed bool) {
  16111. dd := d.d
  16112. slh, containerLenS := d.decSliceHelperStart()
  16113. if containerLenS == 0 {
  16114. if canChange {
  16115. if v == nil {
  16116. v = []float32{}
  16117. } else if len(v) != 0 {
  16118. v = v[:0]
  16119. }
  16120. changed = true
  16121. }
  16122. slh.End()
  16123. return v, changed
  16124. }
  16125. hasLen := containerLenS > 0
  16126. var xlen int
  16127. if hasLen && canChange {
  16128. if containerLenS > cap(v) {
  16129. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16130. if xlen <= cap(v) {
  16131. v = v[:xlen]
  16132. } else {
  16133. v = make([]float32, xlen)
  16134. }
  16135. changed = true
  16136. } else if containerLenS != len(v) {
  16137. v = v[:containerLenS]
  16138. changed = true
  16139. }
  16140. }
  16141. j := 0
  16142. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16143. if j == 0 && len(v) == 0 && canChange {
  16144. if hasLen {
  16145. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16146. } else {
  16147. xlen = 8
  16148. }
  16149. v = make([]float32, xlen)
  16150. changed = true
  16151. }
  16152. // if indefinite, etc, then expand the slice if necessary
  16153. var decodeIntoBlank bool
  16154. if j >= len(v) {
  16155. if canChange {
  16156. v = append(v, 0)
  16157. changed = true
  16158. } else {
  16159. d.arrayCannotExpand(len(v), j+1)
  16160. decodeIntoBlank = true
  16161. }
  16162. }
  16163. slh.ElemContainerState(j)
  16164. if decodeIntoBlank {
  16165. d.swallow()
  16166. } else if dd.TryDecodeAsNil() {
  16167. v[j] = 0
  16168. } else {
  16169. v[j] = float32(chkFloat32(dd.DecodeFloat64()))
  16170. }
  16171. }
  16172. if canChange {
  16173. if j < len(v) {
  16174. v = v[:j]
  16175. changed = true
  16176. } else if j == 0 && v == nil {
  16177. v = make([]float32, 0)
  16178. changed = true
  16179. }
  16180. }
  16181. slh.End()
  16182. return v, changed
  16183. }
  16184. func (d *Decoder) fastpathDecSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  16185. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16186. vp := rv2i(rv).(*[]float64)
  16187. v, changed := fastpathTV.DecSliceFloat64V(*vp, !array, d)
  16188. if changed {
  16189. *vp = v
  16190. }
  16191. } else {
  16192. v := rv2i(rv).([]float64)
  16193. v2, changed := fastpathTV.DecSliceFloat64V(v, !array, d)
  16194. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16195. copy(v, v2)
  16196. }
  16197. }
  16198. }
  16199. func (f fastpathT) DecSliceFloat64X(vp *[]float64, d *Decoder) {
  16200. v, changed := f.DecSliceFloat64V(*vp, true, d)
  16201. if changed {
  16202. *vp = v
  16203. }
  16204. }
  16205. func (_ fastpathT) DecSliceFloat64V(v []float64, canChange bool, d *Decoder) (_ []float64, changed bool) {
  16206. dd := d.d
  16207. slh, containerLenS := d.decSliceHelperStart()
  16208. if containerLenS == 0 {
  16209. if canChange {
  16210. if v == nil {
  16211. v = []float64{}
  16212. } else if len(v) != 0 {
  16213. v = v[:0]
  16214. }
  16215. changed = true
  16216. }
  16217. slh.End()
  16218. return v, changed
  16219. }
  16220. hasLen := containerLenS > 0
  16221. var xlen int
  16222. if hasLen && canChange {
  16223. if containerLenS > cap(v) {
  16224. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16225. if xlen <= cap(v) {
  16226. v = v[:xlen]
  16227. } else {
  16228. v = make([]float64, xlen)
  16229. }
  16230. changed = true
  16231. } else if containerLenS != len(v) {
  16232. v = v[:containerLenS]
  16233. changed = true
  16234. }
  16235. }
  16236. j := 0
  16237. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16238. if j == 0 && len(v) == 0 && canChange {
  16239. if hasLen {
  16240. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16241. } else {
  16242. xlen = 8
  16243. }
  16244. v = make([]float64, xlen)
  16245. changed = true
  16246. }
  16247. // if indefinite, etc, then expand the slice if necessary
  16248. var decodeIntoBlank bool
  16249. if j >= len(v) {
  16250. if canChange {
  16251. v = append(v, 0)
  16252. changed = true
  16253. } else {
  16254. d.arrayCannotExpand(len(v), j+1)
  16255. decodeIntoBlank = true
  16256. }
  16257. }
  16258. slh.ElemContainerState(j)
  16259. if decodeIntoBlank {
  16260. d.swallow()
  16261. } else if dd.TryDecodeAsNil() {
  16262. v[j] = 0
  16263. } else {
  16264. v[j] = dd.DecodeFloat64()
  16265. }
  16266. }
  16267. if canChange {
  16268. if j < len(v) {
  16269. v = v[:j]
  16270. changed = true
  16271. } else if j == 0 && v == nil {
  16272. v = make([]float64, 0)
  16273. changed = true
  16274. }
  16275. }
  16276. slh.End()
  16277. return v, changed
  16278. }
  16279. func (d *Decoder) fastpathDecSliceUintR(f *codecFnInfo, rv reflect.Value) {
  16280. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16281. vp := rv2i(rv).(*[]uint)
  16282. v, changed := fastpathTV.DecSliceUintV(*vp, !array, d)
  16283. if changed {
  16284. *vp = v
  16285. }
  16286. } else {
  16287. v := rv2i(rv).([]uint)
  16288. v2, changed := fastpathTV.DecSliceUintV(v, !array, d)
  16289. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16290. copy(v, v2)
  16291. }
  16292. }
  16293. }
  16294. func (f fastpathT) DecSliceUintX(vp *[]uint, d *Decoder) {
  16295. v, changed := f.DecSliceUintV(*vp, true, d)
  16296. if changed {
  16297. *vp = v
  16298. }
  16299. }
  16300. func (_ fastpathT) DecSliceUintV(v []uint, canChange bool, d *Decoder) (_ []uint, changed bool) {
  16301. dd := d.d
  16302. slh, containerLenS := d.decSliceHelperStart()
  16303. if containerLenS == 0 {
  16304. if canChange {
  16305. if v == nil {
  16306. v = []uint{}
  16307. } else if len(v) != 0 {
  16308. v = v[:0]
  16309. }
  16310. changed = true
  16311. }
  16312. slh.End()
  16313. return v, changed
  16314. }
  16315. hasLen := containerLenS > 0
  16316. var xlen int
  16317. if hasLen && canChange {
  16318. if containerLenS > cap(v) {
  16319. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16320. if xlen <= cap(v) {
  16321. v = v[:xlen]
  16322. } else {
  16323. v = make([]uint, xlen)
  16324. }
  16325. changed = true
  16326. } else if containerLenS != len(v) {
  16327. v = v[:containerLenS]
  16328. changed = true
  16329. }
  16330. }
  16331. j := 0
  16332. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16333. if j == 0 && len(v) == 0 && canChange {
  16334. if hasLen {
  16335. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16336. } else {
  16337. xlen = 8
  16338. }
  16339. v = make([]uint, xlen)
  16340. changed = true
  16341. }
  16342. // if indefinite, etc, then expand the slice if necessary
  16343. var decodeIntoBlank bool
  16344. if j >= len(v) {
  16345. if canChange {
  16346. v = append(v, 0)
  16347. changed = true
  16348. } else {
  16349. d.arrayCannotExpand(len(v), j+1)
  16350. decodeIntoBlank = true
  16351. }
  16352. }
  16353. slh.ElemContainerState(j)
  16354. if decodeIntoBlank {
  16355. d.swallow()
  16356. } else if dd.TryDecodeAsNil() {
  16357. v[j] = 0
  16358. } else {
  16359. v[j] = uint(dd.DecodeUint(uintBitsize))
  16360. }
  16361. }
  16362. if canChange {
  16363. if j < len(v) {
  16364. v = v[:j]
  16365. changed = true
  16366. } else if j == 0 && v == nil {
  16367. v = make([]uint, 0)
  16368. changed = true
  16369. }
  16370. }
  16371. slh.End()
  16372. return v, changed
  16373. }
  16374. func (d *Decoder) fastpathDecSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  16375. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16376. vp := rv2i(rv).(*[]uint8)
  16377. v, changed := fastpathTV.DecSliceUint8V(*vp, !array, d)
  16378. if changed {
  16379. *vp = v
  16380. }
  16381. } else {
  16382. v := rv2i(rv).([]uint8)
  16383. v2, changed := fastpathTV.DecSliceUint8V(v, !array, d)
  16384. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16385. copy(v, v2)
  16386. }
  16387. }
  16388. }
  16389. func (f fastpathT) DecSliceUint8X(vp *[]uint8, d *Decoder) {
  16390. v, changed := f.DecSliceUint8V(*vp, true, d)
  16391. if changed {
  16392. *vp = v
  16393. }
  16394. }
  16395. func (_ fastpathT) DecSliceUint8V(v []uint8, canChange bool, d *Decoder) (_ []uint8, changed bool) {
  16396. dd := d.d
  16397. slh, containerLenS := d.decSliceHelperStart()
  16398. if containerLenS == 0 {
  16399. if canChange {
  16400. if v == nil {
  16401. v = []uint8{}
  16402. } else if len(v) != 0 {
  16403. v = v[:0]
  16404. }
  16405. changed = true
  16406. }
  16407. slh.End()
  16408. return v, changed
  16409. }
  16410. hasLen := containerLenS > 0
  16411. var xlen int
  16412. if hasLen && canChange {
  16413. if containerLenS > cap(v) {
  16414. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16415. if xlen <= cap(v) {
  16416. v = v[:xlen]
  16417. } else {
  16418. v = make([]uint8, xlen)
  16419. }
  16420. changed = true
  16421. } else if containerLenS != len(v) {
  16422. v = v[:containerLenS]
  16423. changed = true
  16424. }
  16425. }
  16426. j := 0
  16427. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16428. if j == 0 && len(v) == 0 && canChange {
  16429. if hasLen {
  16430. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16431. } else {
  16432. xlen = 8
  16433. }
  16434. v = make([]uint8, xlen)
  16435. changed = true
  16436. }
  16437. // if indefinite, etc, then expand the slice if necessary
  16438. var decodeIntoBlank bool
  16439. if j >= len(v) {
  16440. if canChange {
  16441. v = append(v, 0)
  16442. changed = true
  16443. } else {
  16444. d.arrayCannotExpand(len(v), j+1)
  16445. decodeIntoBlank = true
  16446. }
  16447. }
  16448. slh.ElemContainerState(j)
  16449. if decodeIntoBlank {
  16450. d.swallow()
  16451. } else if dd.TryDecodeAsNil() {
  16452. v[j] = 0
  16453. } else {
  16454. v[j] = uint8(dd.DecodeUint(8))
  16455. }
  16456. }
  16457. if canChange {
  16458. if j < len(v) {
  16459. v = v[:j]
  16460. changed = true
  16461. } else if j == 0 && v == nil {
  16462. v = make([]uint8, 0)
  16463. changed = true
  16464. }
  16465. }
  16466. slh.End()
  16467. return v, changed
  16468. }
  16469. func (d *Decoder) fastpathDecSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  16470. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16471. vp := rv2i(rv).(*[]uint16)
  16472. v, changed := fastpathTV.DecSliceUint16V(*vp, !array, d)
  16473. if changed {
  16474. *vp = v
  16475. }
  16476. } else {
  16477. v := rv2i(rv).([]uint16)
  16478. v2, changed := fastpathTV.DecSliceUint16V(v, !array, d)
  16479. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16480. copy(v, v2)
  16481. }
  16482. }
  16483. }
  16484. func (f fastpathT) DecSliceUint16X(vp *[]uint16, d *Decoder) {
  16485. v, changed := f.DecSliceUint16V(*vp, true, d)
  16486. if changed {
  16487. *vp = v
  16488. }
  16489. }
  16490. func (_ fastpathT) DecSliceUint16V(v []uint16, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  16491. dd := d.d
  16492. slh, containerLenS := d.decSliceHelperStart()
  16493. if containerLenS == 0 {
  16494. if canChange {
  16495. if v == nil {
  16496. v = []uint16{}
  16497. } else if len(v) != 0 {
  16498. v = v[:0]
  16499. }
  16500. changed = true
  16501. }
  16502. slh.End()
  16503. return v, changed
  16504. }
  16505. hasLen := containerLenS > 0
  16506. var xlen int
  16507. if hasLen && canChange {
  16508. if containerLenS > cap(v) {
  16509. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  16510. if xlen <= cap(v) {
  16511. v = v[:xlen]
  16512. } else {
  16513. v = make([]uint16, xlen)
  16514. }
  16515. changed = true
  16516. } else if containerLenS != len(v) {
  16517. v = v[:containerLenS]
  16518. changed = true
  16519. }
  16520. }
  16521. j := 0
  16522. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16523. if j == 0 && len(v) == 0 && canChange {
  16524. if hasLen {
  16525. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  16526. } else {
  16527. xlen = 8
  16528. }
  16529. v = make([]uint16, xlen)
  16530. changed = true
  16531. }
  16532. // if indefinite, etc, then expand the slice if necessary
  16533. var decodeIntoBlank bool
  16534. if j >= len(v) {
  16535. if canChange {
  16536. v = append(v, 0)
  16537. changed = true
  16538. } else {
  16539. d.arrayCannotExpand(len(v), j+1)
  16540. decodeIntoBlank = true
  16541. }
  16542. }
  16543. slh.ElemContainerState(j)
  16544. if decodeIntoBlank {
  16545. d.swallow()
  16546. } else if dd.TryDecodeAsNil() {
  16547. v[j] = 0
  16548. } else {
  16549. v[j] = uint16(dd.DecodeUint(16))
  16550. }
  16551. }
  16552. if canChange {
  16553. if j < len(v) {
  16554. v = v[:j]
  16555. changed = true
  16556. } else if j == 0 && v == nil {
  16557. v = make([]uint16, 0)
  16558. changed = true
  16559. }
  16560. }
  16561. slh.End()
  16562. return v, changed
  16563. }
  16564. func (d *Decoder) fastpathDecSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  16565. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16566. vp := rv2i(rv).(*[]uint32)
  16567. v, changed := fastpathTV.DecSliceUint32V(*vp, !array, d)
  16568. if changed {
  16569. *vp = v
  16570. }
  16571. } else {
  16572. v := rv2i(rv).([]uint32)
  16573. v2, changed := fastpathTV.DecSliceUint32V(v, !array, d)
  16574. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16575. copy(v, v2)
  16576. }
  16577. }
  16578. }
  16579. func (f fastpathT) DecSliceUint32X(vp *[]uint32, d *Decoder) {
  16580. v, changed := f.DecSliceUint32V(*vp, true, d)
  16581. if changed {
  16582. *vp = v
  16583. }
  16584. }
  16585. func (_ fastpathT) DecSliceUint32V(v []uint32, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  16586. dd := d.d
  16587. slh, containerLenS := d.decSliceHelperStart()
  16588. if containerLenS == 0 {
  16589. if canChange {
  16590. if v == nil {
  16591. v = []uint32{}
  16592. } else if len(v) != 0 {
  16593. v = v[:0]
  16594. }
  16595. changed = true
  16596. }
  16597. slh.End()
  16598. return v, changed
  16599. }
  16600. hasLen := containerLenS > 0
  16601. var xlen int
  16602. if hasLen && canChange {
  16603. if containerLenS > cap(v) {
  16604. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16605. if xlen <= cap(v) {
  16606. v = v[:xlen]
  16607. } else {
  16608. v = make([]uint32, xlen)
  16609. }
  16610. changed = true
  16611. } else if containerLenS != len(v) {
  16612. v = v[:containerLenS]
  16613. changed = true
  16614. }
  16615. }
  16616. j := 0
  16617. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16618. if j == 0 && len(v) == 0 && canChange {
  16619. if hasLen {
  16620. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16621. } else {
  16622. xlen = 8
  16623. }
  16624. v = make([]uint32, xlen)
  16625. changed = true
  16626. }
  16627. // if indefinite, etc, then expand the slice if necessary
  16628. var decodeIntoBlank bool
  16629. if j >= len(v) {
  16630. if canChange {
  16631. v = append(v, 0)
  16632. changed = true
  16633. } else {
  16634. d.arrayCannotExpand(len(v), j+1)
  16635. decodeIntoBlank = true
  16636. }
  16637. }
  16638. slh.ElemContainerState(j)
  16639. if decodeIntoBlank {
  16640. d.swallow()
  16641. } else if dd.TryDecodeAsNil() {
  16642. v[j] = 0
  16643. } else {
  16644. v[j] = uint32(dd.DecodeUint(32))
  16645. }
  16646. }
  16647. if canChange {
  16648. if j < len(v) {
  16649. v = v[:j]
  16650. changed = true
  16651. } else if j == 0 && v == nil {
  16652. v = make([]uint32, 0)
  16653. changed = true
  16654. }
  16655. }
  16656. slh.End()
  16657. return v, changed
  16658. }
  16659. func (d *Decoder) fastpathDecSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  16660. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16661. vp := rv2i(rv).(*[]uint64)
  16662. v, changed := fastpathTV.DecSliceUint64V(*vp, !array, d)
  16663. if changed {
  16664. *vp = v
  16665. }
  16666. } else {
  16667. v := rv2i(rv).([]uint64)
  16668. v2, changed := fastpathTV.DecSliceUint64V(v, !array, d)
  16669. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16670. copy(v, v2)
  16671. }
  16672. }
  16673. }
  16674. func (f fastpathT) DecSliceUint64X(vp *[]uint64, d *Decoder) {
  16675. v, changed := f.DecSliceUint64V(*vp, true, d)
  16676. if changed {
  16677. *vp = v
  16678. }
  16679. }
  16680. func (_ fastpathT) DecSliceUint64V(v []uint64, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  16681. dd := d.d
  16682. slh, containerLenS := d.decSliceHelperStart()
  16683. if containerLenS == 0 {
  16684. if canChange {
  16685. if v == nil {
  16686. v = []uint64{}
  16687. } else if len(v) != 0 {
  16688. v = v[:0]
  16689. }
  16690. changed = true
  16691. }
  16692. slh.End()
  16693. return v, changed
  16694. }
  16695. hasLen := containerLenS > 0
  16696. var xlen int
  16697. if hasLen && canChange {
  16698. if containerLenS > cap(v) {
  16699. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16700. if xlen <= cap(v) {
  16701. v = v[:xlen]
  16702. } else {
  16703. v = make([]uint64, xlen)
  16704. }
  16705. changed = true
  16706. } else if containerLenS != len(v) {
  16707. v = v[:containerLenS]
  16708. changed = true
  16709. }
  16710. }
  16711. j := 0
  16712. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16713. if j == 0 && len(v) == 0 && canChange {
  16714. if hasLen {
  16715. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16716. } else {
  16717. xlen = 8
  16718. }
  16719. v = make([]uint64, xlen)
  16720. changed = true
  16721. }
  16722. // if indefinite, etc, then expand the slice if necessary
  16723. var decodeIntoBlank bool
  16724. if j >= len(v) {
  16725. if canChange {
  16726. v = append(v, 0)
  16727. changed = true
  16728. } else {
  16729. d.arrayCannotExpand(len(v), j+1)
  16730. decodeIntoBlank = true
  16731. }
  16732. }
  16733. slh.ElemContainerState(j)
  16734. if decodeIntoBlank {
  16735. d.swallow()
  16736. } else if dd.TryDecodeAsNil() {
  16737. v[j] = 0
  16738. } else {
  16739. v[j] = dd.DecodeUint(64)
  16740. }
  16741. }
  16742. if canChange {
  16743. if j < len(v) {
  16744. v = v[:j]
  16745. changed = true
  16746. } else if j == 0 && v == nil {
  16747. v = make([]uint64, 0)
  16748. changed = true
  16749. }
  16750. }
  16751. slh.End()
  16752. return v, changed
  16753. }
  16754. func (d *Decoder) fastpathDecSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  16755. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16756. vp := rv2i(rv).(*[]uintptr)
  16757. v, changed := fastpathTV.DecSliceUintptrV(*vp, !array, d)
  16758. if changed {
  16759. *vp = v
  16760. }
  16761. } else {
  16762. v := rv2i(rv).([]uintptr)
  16763. v2, changed := fastpathTV.DecSliceUintptrV(v, !array, d)
  16764. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16765. copy(v, v2)
  16766. }
  16767. }
  16768. }
  16769. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, d *Decoder) {
  16770. v, changed := f.DecSliceUintptrV(*vp, true, d)
  16771. if changed {
  16772. *vp = v
  16773. }
  16774. }
  16775. func (_ fastpathT) DecSliceUintptrV(v []uintptr, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  16776. dd := d.d
  16777. slh, containerLenS := d.decSliceHelperStart()
  16778. if containerLenS == 0 {
  16779. if canChange {
  16780. if v == nil {
  16781. v = []uintptr{}
  16782. } else if len(v) != 0 {
  16783. v = v[:0]
  16784. }
  16785. changed = true
  16786. }
  16787. slh.End()
  16788. return v, changed
  16789. }
  16790. hasLen := containerLenS > 0
  16791. var xlen int
  16792. if hasLen && canChange {
  16793. if containerLenS > cap(v) {
  16794. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16795. if xlen <= cap(v) {
  16796. v = v[:xlen]
  16797. } else {
  16798. v = make([]uintptr, xlen)
  16799. }
  16800. changed = true
  16801. } else if containerLenS != len(v) {
  16802. v = v[:containerLenS]
  16803. changed = true
  16804. }
  16805. }
  16806. j := 0
  16807. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16808. if j == 0 && len(v) == 0 && canChange {
  16809. if hasLen {
  16810. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16811. } else {
  16812. xlen = 8
  16813. }
  16814. v = make([]uintptr, xlen)
  16815. changed = true
  16816. }
  16817. // if indefinite, etc, then expand the slice if necessary
  16818. var decodeIntoBlank bool
  16819. if j >= len(v) {
  16820. if canChange {
  16821. v = append(v, 0)
  16822. changed = true
  16823. } else {
  16824. d.arrayCannotExpand(len(v), j+1)
  16825. decodeIntoBlank = true
  16826. }
  16827. }
  16828. slh.ElemContainerState(j)
  16829. if decodeIntoBlank {
  16830. d.swallow()
  16831. } else if dd.TryDecodeAsNil() {
  16832. v[j] = 0
  16833. } else {
  16834. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  16835. }
  16836. }
  16837. if canChange {
  16838. if j < len(v) {
  16839. v = v[:j]
  16840. changed = true
  16841. } else if j == 0 && v == nil {
  16842. v = make([]uintptr, 0)
  16843. changed = true
  16844. }
  16845. }
  16846. slh.End()
  16847. return v, changed
  16848. }
  16849. func (d *Decoder) fastpathDecSliceIntR(f *codecFnInfo, rv reflect.Value) {
  16850. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16851. vp := rv2i(rv).(*[]int)
  16852. v, changed := fastpathTV.DecSliceIntV(*vp, !array, d)
  16853. if changed {
  16854. *vp = v
  16855. }
  16856. } else {
  16857. v := rv2i(rv).([]int)
  16858. v2, changed := fastpathTV.DecSliceIntV(v, !array, d)
  16859. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16860. copy(v, v2)
  16861. }
  16862. }
  16863. }
  16864. func (f fastpathT) DecSliceIntX(vp *[]int, d *Decoder) {
  16865. v, changed := f.DecSliceIntV(*vp, true, d)
  16866. if changed {
  16867. *vp = v
  16868. }
  16869. }
  16870. func (_ fastpathT) DecSliceIntV(v []int, canChange bool, d *Decoder) (_ []int, changed bool) {
  16871. dd := d.d
  16872. slh, containerLenS := d.decSliceHelperStart()
  16873. if containerLenS == 0 {
  16874. if canChange {
  16875. if v == nil {
  16876. v = []int{}
  16877. } else if len(v) != 0 {
  16878. v = v[:0]
  16879. }
  16880. changed = true
  16881. }
  16882. slh.End()
  16883. return v, changed
  16884. }
  16885. hasLen := containerLenS > 0
  16886. var xlen int
  16887. if hasLen && canChange {
  16888. if containerLenS > cap(v) {
  16889. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16890. if xlen <= cap(v) {
  16891. v = v[:xlen]
  16892. } else {
  16893. v = make([]int, xlen)
  16894. }
  16895. changed = true
  16896. } else if containerLenS != len(v) {
  16897. v = v[:containerLenS]
  16898. changed = true
  16899. }
  16900. }
  16901. j := 0
  16902. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16903. if j == 0 && len(v) == 0 && canChange {
  16904. if hasLen {
  16905. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16906. } else {
  16907. xlen = 8
  16908. }
  16909. v = make([]int, xlen)
  16910. changed = true
  16911. }
  16912. // if indefinite, etc, then expand the slice if necessary
  16913. var decodeIntoBlank bool
  16914. if j >= len(v) {
  16915. if canChange {
  16916. v = append(v, 0)
  16917. changed = true
  16918. } else {
  16919. d.arrayCannotExpand(len(v), j+1)
  16920. decodeIntoBlank = true
  16921. }
  16922. }
  16923. slh.ElemContainerState(j)
  16924. if decodeIntoBlank {
  16925. d.swallow()
  16926. } else if dd.TryDecodeAsNil() {
  16927. v[j] = 0
  16928. } else {
  16929. v[j] = int(dd.DecodeInt(intBitsize))
  16930. }
  16931. }
  16932. if canChange {
  16933. if j < len(v) {
  16934. v = v[:j]
  16935. changed = true
  16936. } else if j == 0 && v == nil {
  16937. v = make([]int, 0)
  16938. changed = true
  16939. }
  16940. }
  16941. slh.End()
  16942. return v, changed
  16943. }
  16944. func (d *Decoder) fastpathDecSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  16945. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16946. vp := rv2i(rv).(*[]int8)
  16947. v, changed := fastpathTV.DecSliceInt8V(*vp, !array, d)
  16948. if changed {
  16949. *vp = v
  16950. }
  16951. } else {
  16952. v := rv2i(rv).([]int8)
  16953. v2, changed := fastpathTV.DecSliceInt8V(v, !array, d)
  16954. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  16955. copy(v, v2)
  16956. }
  16957. }
  16958. }
  16959. func (f fastpathT) DecSliceInt8X(vp *[]int8, d *Decoder) {
  16960. v, changed := f.DecSliceInt8V(*vp, true, d)
  16961. if changed {
  16962. *vp = v
  16963. }
  16964. }
  16965. func (_ fastpathT) DecSliceInt8V(v []int8, canChange bool, d *Decoder) (_ []int8, changed bool) {
  16966. dd := d.d
  16967. slh, containerLenS := d.decSliceHelperStart()
  16968. if containerLenS == 0 {
  16969. if canChange {
  16970. if v == nil {
  16971. v = []int8{}
  16972. } else if len(v) != 0 {
  16973. v = v[:0]
  16974. }
  16975. changed = true
  16976. }
  16977. slh.End()
  16978. return v, changed
  16979. }
  16980. hasLen := containerLenS > 0
  16981. var xlen int
  16982. if hasLen && canChange {
  16983. if containerLenS > cap(v) {
  16984. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16985. if xlen <= cap(v) {
  16986. v = v[:xlen]
  16987. } else {
  16988. v = make([]int8, xlen)
  16989. }
  16990. changed = true
  16991. } else if containerLenS != len(v) {
  16992. v = v[:containerLenS]
  16993. changed = true
  16994. }
  16995. }
  16996. j := 0
  16997. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16998. if j == 0 && len(v) == 0 && canChange {
  16999. if hasLen {
  17000. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17001. } else {
  17002. xlen = 8
  17003. }
  17004. v = make([]int8, xlen)
  17005. changed = true
  17006. }
  17007. // if indefinite, etc, then expand the slice if necessary
  17008. var decodeIntoBlank bool
  17009. if j >= len(v) {
  17010. if canChange {
  17011. v = append(v, 0)
  17012. changed = true
  17013. } else {
  17014. d.arrayCannotExpand(len(v), j+1)
  17015. decodeIntoBlank = true
  17016. }
  17017. }
  17018. slh.ElemContainerState(j)
  17019. if decodeIntoBlank {
  17020. d.swallow()
  17021. } else if dd.TryDecodeAsNil() {
  17022. v[j] = 0
  17023. } else {
  17024. v[j] = int8(dd.DecodeInt(8))
  17025. }
  17026. }
  17027. if canChange {
  17028. if j < len(v) {
  17029. v = v[:j]
  17030. changed = true
  17031. } else if j == 0 && v == nil {
  17032. v = make([]int8, 0)
  17033. changed = true
  17034. }
  17035. }
  17036. slh.End()
  17037. return v, changed
  17038. }
  17039. func (d *Decoder) fastpathDecSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  17040. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17041. vp := rv2i(rv).(*[]int16)
  17042. v, changed := fastpathTV.DecSliceInt16V(*vp, !array, d)
  17043. if changed {
  17044. *vp = v
  17045. }
  17046. } else {
  17047. v := rv2i(rv).([]int16)
  17048. v2, changed := fastpathTV.DecSliceInt16V(v, !array, d)
  17049. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17050. copy(v, v2)
  17051. }
  17052. }
  17053. }
  17054. func (f fastpathT) DecSliceInt16X(vp *[]int16, d *Decoder) {
  17055. v, changed := f.DecSliceInt16V(*vp, true, d)
  17056. if changed {
  17057. *vp = v
  17058. }
  17059. }
  17060. func (_ fastpathT) DecSliceInt16V(v []int16, canChange bool, d *Decoder) (_ []int16, changed bool) {
  17061. dd := d.d
  17062. slh, containerLenS := d.decSliceHelperStart()
  17063. if containerLenS == 0 {
  17064. if canChange {
  17065. if v == nil {
  17066. v = []int16{}
  17067. } else if len(v) != 0 {
  17068. v = v[:0]
  17069. }
  17070. changed = true
  17071. }
  17072. slh.End()
  17073. return v, changed
  17074. }
  17075. hasLen := containerLenS > 0
  17076. var xlen int
  17077. if hasLen && canChange {
  17078. if containerLenS > cap(v) {
  17079. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  17080. if xlen <= cap(v) {
  17081. v = v[:xlen]
  17082. } else {
  17083. v = make([]int16, xlen)
  17084. }
  17085. changed = true
  17086. } else if containerLenS != len(v) {
  17087. v = v[:containerLenS]
  17088. changed = true
  17089. }
  17090. }
  17091. j := 0
  17092. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17093. if j == 0 && len(v) == 0 && canChange {
  17094. if hasLen {
  17095. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  17096. } else {
  17097. xlen = 8
  17098. }
  17099. v = make([]int16, xlen)
  17100. changed = true
  17101. }
  17102. // if indefinite, etc, then expand the slice if necessary
  17103. var decodeIntoBlank bool
  17104. if j >= len(v) {
  17105. if canChange {
  17106. v = append(v, 0)
  17107. changed = true
  17108. } else {
  17109. d.arrayCannotExpand(len(v), j+1)
  17110. decodeIntoBlank = true
  17111. }
  17112. }
  17113. slh.ElemContainerState(j)
  17114. if decodeIntoBlank {
  17115. d.swallow()
  17116. } else if dd.TryDecodeAsNil() {
  17117. v[j] = 0
  17118. } else {
  17119. v[j] = int16(dd.DecodeInt(16))
  17120. }
  17121. }
  17122. if canChange {
  17123. if j < len(v) {
  17124. v = v[:j]
  17125. changed = true
  17126. } else if j == 0 && v == nil {
  17127. v = make([]int16, 0)
  17128. changed = true
  17129. }
  17130. }
  17131. slh.End()
  17132. return v, changed
  17133. }
  17134. func (d *Decoder) fastpathDecSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  17135. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17136. vp := rv2i(rv).(*[]int32)
  17137. v, changed := fastpathTV.DecSliceInt32V(*vp, !array, d)
  17138. if changed {
  17139. *vp = v
  17140. }
  17141. } else {
  17142. v := rv2i(rv).([]int32)
  17143. v2, changed := fastpathTV.DecSliceInt32V(v, !array, d)
  17144. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17145. copy(v, v2)
  17146. }
  17147. }
  17148. }
  17149. func (f fastpathT) DecSliceInt32X(vp *[]int32, d *Decoder) {
  17150. v, changed := f.DecSliceInt32V(*vp, true, d)
  17151. if changed {
  17152. *vp = v
  17153. }
  17154. }
  17155. func (_ fastpathT) DecSliceInt32V(v []int32, canChange bool, d *Decoder) (_ []int32, changed bool) {
  17156. dd := d.d
  17157. slh, containerLenS := d.decSliceHelperStart()
  17158. if containerLenS == 0 {
  17159. if canChange {
  17160. if v == nil {
  17161. v = []int32{}
  17162. } else if len(v) != 0 {
  17163. v = v[:0]
  17164. }
  17165. changed = true
  17166. }
  17167. slh.End()
  17168. return v, changed
  17169. }
  17170. hasLen := containerLenS > 0
  17171. var xlen int
  17172. if hasLen && canChange {
  17173. if containerLenS > cap(v) {
  17174. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17175. if xlen <= cap(v) {
  17176. v = v[:xlen]
  17177. } else {
  17178. v = make([]int32, xlen)
  17179. }
  17180. changed = true
  17181. } else if containerLenS != len(v) {
  17182. v = v[:containerLenS]
  17183. changed = true
  17184. }
  17185. }
  17186. j := 0
  17187. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17188. if j == 0 && len(v) == 0 && canChange {
  17189. if hasLen {
  17190. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17191. } else {
  17192. xlen = 8
  17193. }
  17194. v = make([]int32, xlen)
  17195. changed = true
  17196. }
  17197. // if indefinite, etc, then expand the slice if necessary
  17198. var decodeIntoBlank bool
  17199. if j >= len(v) {
  17200. if canChange {
  17201. v = append(v, 0)
  17202. changed = true
  17203. } else {
  17204. d.arrayCannotExpand(len(v), j+1)
  17205. decodeIntoBlank = true
  17206. }
  17207. }
  17208. slh.ElemContainerState(j)
  17209. if decodeIntoBlank {
  17210. d.swallow()
  17211. } else if dd.TryDecodeAsNil() {
  17212. v[j] = 0
  17213. } else {
  17214. v[j] = int32(dd.DecodeInt(32))
  17215. }
  17216. }
  17217. if canChange {
  17218. if j < len(v) {
  17219. v = v[:j]
  17220. changed = true
  17221. } else if j == 0 && v == nil {
  17222. v = make([]int32, 0)
  17223. changed = true
  17224. }
  17225. }
  17226. slh.End()
  17227. return v, changed
  17228. }
  17229. func (d *Decoder) fastpathDecSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  17230. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17231. vp := rv2i(rv).(*[]int64)
  17232. v, changed := fastpathTV.DecSliceInt64V(*vp, !array, d)
  17233. if changed {
  17234. *vp = v
  17235. }
  17236. } else {
  17237. v := rv2i(rv).([]int64)
  17238. v2, changed := fastpathTV.DecSliceInt64V(v, !array, d)
  17239. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17240. copy(v, v2)
  17241. }
  17242. }
  17243. }
  17244. func (f fastpathT) DecSliceInt64X(vp *[]int64, d *Decoder) {
  17245. v, changed := f.DecSliceInt64V(*vp, true, d)
  17246. if changed {
  17247. *vp = v
  17248. }
  17249. }
  17250. func (_ fastpathT) DecSliceInt64V(v []int64, canChange bool, d *Decoder) (_ []int64, changed bool) {
  17251. dd := d.d
  17252. slh, containerLenS := d.decSliceHelperStart()
  17253. if containerLenS == 0 {
  17254. if canChange {
  17255. if v == nil {
  17256. v = []int64{}
  17257. } else if len(v) != 0 {
  17258. v = v[:0]
  17259. }
  17260. changed = true
  17261. }
  17262. slh.End()
  17263. return v, changed
  17264. }
  17265. hasLen := containerLenS > 0
  17266. var xlen int
  17267. if hasLen && canChange {
  17268. if containerLenS > cap(v) {
  17269. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17270. if xlen <= cap(v) {
  17271. v = v[:xlen]
  17272. } else {
  17273. v = make([]int64, xlen)
  17274. }
  17275. changed = true
  17276. } else if containerLenS != len(v) {
  17277. v = v[:containerLenS]
  17278. changed = true
  17279. }
  17280. }
  17281. j := 0
  17282. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17283. if j == 0 && len(v) == 0 && canChange {
  17284. if hasLen {
  17285. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17286. } else {
  17287. xlen = 8
  17288. }
  17289. v = make([]int64, xlen)
  17290. changed = true
  17291. }
  17292. // if indefinite, etc, then expand the slice if necessary
  17293. var decodeIntoBlank bool
  17294. if j >= len(v) {
  17295. if canChange {
  17296. v = append(v, 0)
  17297. changed = true
  17298. } else {
  17299. d.arrayCannotExpand(len(v), j+1)
  17300. decodeIntoBlank = true
  17301. }
  17302. }
  17303. slh.ElemContainerState(j)
  17304. if decodeIntoBlank {
  17305. d.swallow()
  17306. } else if dd.TryDecodeAsNil() {
  17307. v[j] = 0
  17308. } else {
  17309. v[j] = dd.DecodeInt(64)
  17310. }
  17311. }
  17312. if canChange {
  17313. if j < len(v) {
  17314. v = v[:j]
  17315. changed = true
  17316. } else if j == 0 && v == nil {
  17317. v = make([]int64, 0)
  17318. changed = true
  17319. }
  17320. }
  17321. slh.End()
  17322. return v, changed
  17323. }
  17324. func (d *Decoder) fastpathDecSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  17325. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17326. vp := rv2i(rv).(*[]bool)
  17327. v, changed := fastpathTV.DecSliceBoolV(*vp, !array, d)
  17328. if changed {
  17329. *vp = v
  17330. }
  17331. } else {
  17332. v := rv2i(rv).([]bool)
  17333. v2, changed := fastpathTV.DecSliceBoolV(v, !array, d)
  17334. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17335. copy(v, v2)
  17336. }
  17337. }
  17338. }
  17339. func (f fastpathT) DecSliceBoolX(vp *[]bool, d *Decoder) {
  17340. v, changed := f.DecSliceBoolV(*vp, true, d)
  17341. if changed {
  17342. *vp = v
  17343. }
  17344. }
  17345. func (_ fastpathT) DecSliceBoolV(v []bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  17346. dd := d.d
  17347. slh, containerLenS := d.decSliceHelperStart()
  17348. if containerLenS == 0 {
  17349. if canChange {
  17350. if v == nil {
  17351. v = []bool{}
  17352. } else if len(v) != 0 {
  17353. v = v[:0]
  17354. }
  17355. changed = true
  17356. }
  17357. slh.End()
  17358. return v, changed
  17359. }
  17360. hasLen := containerLenS > 0
  17361. var xlen int
  17362. if hasLen && canChange {
  17363. if containerLenS > cap(v) {
  17364. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17365. if xlen <= cap(v) {
  17366. v = v[:xlen]
  17367. } else {
  17368. v = make([]bool, xlen)
  17369. }
  17370. changed = true
  17371. } else if containerLenS != len(v) {
  17372. v = v[:containerLenS]
  17373. changed = true
  17374. }
  17375. }
  17376. j := 0
  17377. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17378. if j == 0 && len(v) == 0 && canChange {
  17379. if hasLen {
  17380. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17381. } else {
  17382. xlen = 8
  17383. }
  17384. v = make([]bool, xlen)
  17385. changed = true
  17386. }
  17387. // if indefinite, etc, then expand the slice if necessary
  17388. var decodeIntoBlank bool
  17389. if j >= len(v) {
  17390. if canChange {
  17391. v = append(v, false)
  17392. changed = true
  17393. } else {
  17394. d.arrayCannotExpand(len(v), j+1)
  17395. decodeIntoBlank = true
  17396. }
  17397. }
  17398. slh.ElemContainerState(j)
  17399. if decodeIntoBlank {
  17400. d.swallow()
  17401. } else if dd.TryDecodeAsNil() {
  17402. v[j] = false
  17403. } else {
  17404. v[j] = dd.DecodeBool()
  17405. }
  17406. }
  17407. if canChange {
  17408. if j < len(v) {
  17409. v = v[:j]
  17410. changed = true
  17411. } else if j == 0 && v == nil {
  17412. v = make([]bool, 0)
  17413. changed = true
  17414. }
  17415. }
  17416. slh.End()
  17417. return v, changed
  17418. }
  17419. func (d *Decoder) fastpathDecMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  17420. if rv.Kind() == reflect.Ptr {
  17421. vp := rv2i(rv).(*map[interface{}]interface{})
  17422. v, changed := fastpathTV.DecMapIntfIntfV(*vp, true, d)
  17423. if changed {
  17424. *vp = v
  17425. }
  17426. } else {
  17427. fastpathTV.DecMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), false, d)
  17428. }
  17429. }
  17430. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, d *Decoder) {
  17431. v, changed := f.DecMapIntfIntfV(*vp, true, d)
  17432. if changed {
  17433. *vp = v
  17434. }
  17435. }
  17436. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, canChange bool,
  17437. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  17438. dd, esep := d.d, d.hh.hasElemSeparators()
  17439. containerLen := dd.ReadMapStart()
  17440. if canChange && v == nil {
  17441. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  17442. v = make(map[interface{}]interface{}, xlen)
  17443. changed = true
  17444. }
  17445. if containerLen == 0 {
  17446. dd.ReadMapEnd()
  17447. return v, changed
  17448. }
  17449. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  17450. var mk interface{}
  17451. var mv interface{}
  17452. hasLen := containerLen > 0
  17453. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17454. if esep {
  17455. dd.ReadMapElemKey()
  17456. }
  17457. mk = nil
  17458. d.decode(&mk)
  17459. if bv, bok := mk.([]byte); bok {
  17460. mk = d.string(bv)
  17461. }
  17462. if esep {
  17463. dd.ReadMapElemValue()
  17464. }
  17465. if dd.TryDecodeAsNil() {
  17466. if v == nil {
  17467. } else if d.h.DeleteOnNilMapValue {
  17468. delete(v, mk)
  17469. } else {
  17470. v[mk] = nil
  17471. }
  17472. continue
  17473. }
  17474. if mapGet {
  17475. mv = v[mk]
  17476. } else {
  17477. mv = nil
  17478. }
  17479. d.decode(&mv)
  17480. if v != nil {
  17481. v[mk] = mv
  17482. }
  17483. }
  17484. dd.ReadMapEnd()
  17485. return v, changed
  17486. }
  17487. func (d *Decoder) fastpathDecMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  17488. if rv.Kind() == reflect.Ptr {
  17489. vp := rv2i(rv).(*map[interface{}]string)
  17490. v, changed := fastpathTV.DecMapIntfStringV(*vp, true, d)
  17491. if changed {
  17492. *vp = v
  17493. }
  17494. } else {
  17495. fastpathTV.DecMapIntfStringV(rv2i(rv).(map[interface{}]string), false, d)
  17496. }
  17497. }
  17498. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, d *Decoder) {
  17499. v, changed := f.DecMapIntfStringV(*vp, true, d)
  17500. if changed {
  17501. *vp = v
  17502. }
  17503. }
  17504. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, canChange bool,
  17505. d *Decoder) (_ map[interface{}]string, changed bool) {
  17506. dd, esep := d.d, d.hh.hasElemSeparators()
  17507. containerLen := dd.ReadMapStart()
  17508. if canChange && v == nil {
  17509. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  17510. v = make(map[interface{}]string, xlen)
  17511. changed = true
  17512. }
  17513. if containerLen == 0 {
  17514. dd.ReadMapEnd()
  17515. return v, changed
  17516. }
  17517. var mk interface{}
  17518. var mv string
  17519. hasLen := containerLen > 0
  17520. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17521. if esep {
  17522. dd.ReadMapElemKey()
  17523. }
  17524. mk = nil
  17525. d.decode(&mk)
  17526. if bv, bok := mk.([]byte); bok {
  17527. mk = d.string(bv)
  17528. }
  17529. if esep {
  17530. dd.ReadMapElemValue()
  17531. }
  17532. if dd.TryDecodeAsNil() {
  17533. if v == nil {
  17534. } else if d.h.DeleteOnNilMapValue {
  17535. delete(v, mk)
  17536. } else {
  17537. v[mk] = ""
  17538. }
  17539. continue
  17540. }
  17541. mv = dd.DecodeString()
  17542. if v != nil {
  17543. v[mk] = mv
  17544. }
  17545. }
  17546. dd.ReadMapEnd()
  17547. return v, changed
  17548. }
  17549. func (d *Decoder) fastpathDecMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  17550. if rv.Kind() == reflect.Ptr {
  17551. vp := rv2i(rv).(*map[interface{}]uint)
  17552. v, changed := fastpathTV.DecMapIntfUintV(*vp, true, d)
  17553. if changed {
  17554. *vp = v
  17555. }
  17556. } else {
  17557. fastpathTV.DecMapIntfUintV(rv2i(rv).(map[interface{}]uint), false, d)
  17558. }
  17559. }
  17560. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, d *Decoder) {
  17561. v, changed := f.DecMapIntfUintV(*vp, true, d)
  17562. if changed {
  17563. *vp = v
  17564. }
  17565. }
  17566. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, canChange bool,
  17567. d *Decoder) (_ map[interface{}]uint, changed bool) {
  17568. dd, esep := d.d, d.hh.hasElemSeparators()
  17569. containerLen := dd.ReadMapStart()
  17570. if canChange && v == nil {
  17571. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17572. v = make(map[interface{}]uint, xlen)
  17573. changed = true
  17574. }
  17575. if containerLen == 0 {
  17576. dd.ReadMapEnd()
  17577. return v, changed
  17578. }
  17579. var mk interface{}
  17580. var mv uint
  17581. hasLen := containerLen > 0
  17582. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17583. if esep {
  17584. dd.ReadMapElemKey()
  17585. }
  17586. mk = nil
  17587. d.decode(&mk)
  17588. if bv, bok := mk.([]byte); bok {
  17589. mk = d.string(bv)
  17590. }
  17591. if esep {
  17592. dd.ReadMapElemValue()
  17593. }
  17594. if dd.TryDecodeAsNil() {
  17595. if v == nil {
  17596. } else if d.h.DeleteOnNilMapValue {
  17597. delete(v, mk)
  17598. } else {
  17599. v[mk] = 0
  17600. }
  17601. continue
  17602. }
  17603. mv = uint(dd.DecodeUint(uintBitsize))
  17604. if v != nil {
  17605. v[mk] = mv
  17606. }
  17607. }
  17608. dd.ReadMapEnd()
  17609. return v, changed
  17610. }
  17611. func (d *Decoder) fastpathDecMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  17612. if rv.Kind() == reflect.Ptr {
  17613. vp := rv2i(rv).(*map[interface{}]uint8)
  17614. v, changed := fastpathTV.DecMapIntfUint8V(*vp, true, d)
  17615. if changed {
  17616. *vp = v
  17617. }
  17618. } else {
  17619. fastpathTV.DecMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), false, d)
  17620. }
  17621. }
  17622. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, d *Decoder) {
  17623. v, changed := f.DecMapIntfUint8V(*vp, true, d)
  17624. if changed {
  17625. *vp = v
  17626. }
  17627. }
  17628. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, canChange bool,
  17629. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  17630. dd, esep := d.d, d.hh.hasElemSeparators()
  17631. containerLen := dd.ReadMapStart()
  17632. if canChange && v == nil {
  17633. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  17634. v = make(map[interface{}]uint8, xlen)
  17635. changed = true
  17636. }
  17637. if containerLen == 0 {
  17638. dd.ReadMapEnd()
  17639. return v, changed
  17640. }
  17641. var mk interface{}
  17642. var mv uint8
  17643. hasLen := containerLen > 0
  17644. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17645. if esep {
  17646. dd.ReadMapElemKey()
  17647. }
  17648. mk = nil
  17649. d.decode(&mk)
  17650. if bv, bok := mk.([]byte); bok {
  17651. mk = d.string(bv)
  17652. }
  17653. if esep {
  17654. dd.ReadMapElemValue()
  17655. }
  17656. if dd.TryDecodeAsNil() {
  17657. if v == nil {
  17658. } else if d.h.DeleteOnNilMapValue {
  17659. delete(v, mk)
  17660. } else {
  17661. v[mk] = 0
  17662. }
  17663. continue
  17664. }
  17665. mv = uint8(dd.DecodeUint(8))
  17666. if v != nil {
  17667. v[mk] = mv
  17668. }
  17669. }
  17670. dd.ReadMapEnd()
  17671. return v, changed
  17672. }
  17673. func (d *Decoder) fastpathDecMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  17674. if rv.Kind() == reflect.Ptr {
  17675. vp := rv2i(rv).(*map[interface{}]uint16)
  17676. v, changed := fastpathTV.DecMapIntfUint16V(*vp, true, d)
  17677. if changed {
  17678. *vp = v
  17679. }
  17680. } else {
  17681. fastpathTV.DecMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), false, d)
  17682. }
  17683. }
  17684. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, d *Decoder) {
  17685. v, changed := f.DecMapIntfUint16V(*vp, true, d)
  17686. if changed {
  17687. *vp = v
  17688. }
  17689. }
  17690. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, canChange bool,
  17691. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  17692. dd, esep := d.d, d.hh.hasElemSeparators()
  17693. containerLen := dd.ReadMapStart()
  17694. if canChange && v == nil {
  17695. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  17696. v = make(map[interface{}]uint16, xlen)
  17697. changed = true
  17698. }
  17699. if containerLen == 0 {
  17700. dd.ReadMapEnd()
  17701. return v, changed
  17702. }
  17703. var mk interface{}
  17704. var mv uint16
  17705. hasLen := containerLen > 0
  17706. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17707. if esep {
  17708. dd.ReadMapElemKey()
  17709. }
  17710. mk = nil
  17711. d.decode(&mk)
  17712. if bv, bok := mk.([]byte); bok {
  17713. mk = d.string(bv)
  17714. }
  17715. if esep {
  17716. dd.ReadMapElemValue()
  17717. }
  17718. if dd.TryDecodeAsNil() {
  17719. if v == nil {
  17720. } else if d.h.DeleteOnNilMapValue {
  17721. delete(v, mk)
  17722. } else {
  17723. v[mk] = 0
  17724. }
  17725. continue
  17726. }
  17727. mv = uint16(dd.DecodeUint(16))
  17728. if v != nil {
  17729. v[mk] = mv
  17730. }
  17731. }
  17732. dd.ReadMapEnd()
  17733. return v, changed
  17734. }
  17735. func (d *Decoder) fastpathDecMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  17736. if rv.Kind() == reflect.Ptr {
  17737. vp := rv2i(rv).(*map[interface{}]uint32)
  17738. v, changed := fastpathTV.DecMapIntfUint32V(*vp, true, d)
  17739. if changed {
  17740. *vp = v
  17741. }
  17742. } else {
  17743. fastpathTV.DecMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), false, d)
  17744. }
  17745. }
  17746. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, d *Decoder) {
  17747. v, changed := f.DecMapIntfUint32V(*vp, true, d)
  17748. if changed {
  17749. *vp = v
  17750. }
  17751. }
  17752. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, canChange bool,
  17753. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  17754. dd, esep := d.d, d.hh.hasElemSeparators()
  17755. containerLen := dd.ReadMapStart()
  17756. if canChange && v == nil {
  17757. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17758. v = make(map[interface{}]uint32, xlen)
  17759. changed = true
  17760. }
  17761. if containerLen == 0 {
  17762. dd.ReadMapEnd()
  17763. return v, changed
  17764. }
  17765. var mk interface{}
  17766. var mv uint32
  17767. hasLen := containerLen > 0
  17768. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17769. if esep {
  17770. dd.ReadMapElemKey()
  17771. }
  17772. mk = nil
  17773. d.decode(&mk)
  17774. if bv, bok := mk.([]byte); bok {
  17775. mk = d.string(bv)
  17776. }
  17777. if esep {
  17778. dd.ReadMapElemValue()
  17779. }
  17780. if dd.TryDecodeAsNil() {
  17781. if v == nil {
  17782. } else if d.h.DeleteOnNilMapValue {
  17783. delete(v, mk)
  17784. } else {
  17785. v[mk] = 0
  17786. }
  17787. continue
  17788. }
  17789. mv = uint32(dd.DecodeUint(32))
  17790. if v != nil {
  17791. v[mk] = mv
  17792. }
  17793. }
  17794. dd.ReadMapEnd()
  17795. return v, changed
  17796. }
  17797. func (d *Decoder) fastpathDecMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  17798. if rv.Kind() == reflect.Ptr {
  17799. vp := rv2i(rv).(*map[interface{}]uint64)
  17800. v, changed := fastpathTV.DecMapIntfUint64V(*vp, true, d)
  17801. if changed {
  17802. *vp = v
  17803. }
  17804. } else {
  17805. fastpathTV.DecMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), false, d)
  17806. }
  17807. }
  17808. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, d *Decoder) {
  17809. v, changed := f.DecMapIntfUint64V(*vp, true, d)
  17810. if changed {
  17811. *vp = v
  17812. }
  17813. }
  17814. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, canChange bool,
  17815. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  17816. dd, esep := d.d, d.hh.hasElemSeparators()
  17817. containerLen := dd.ReadMapStart()
  17818. if canChange && v == nil {
  17819. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17820. v = make(map[interface{}]uint64, xlen)
  17821. changed = true
  17822. }
  17823. if containerLen == 0 {
  17824. dd.ReadMapEnd()
  17825. return v, changed
  17826. }
  17827. var mk interface{}
  17828. var mv uint64
  17829. hasLen := containerLen > 0
  17830. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17831. if esep {
  17832. dd.ReadMapElemKey()
  17833. }
  17834. mk = nil
  17835. d.decode(&mk)
  17836. if bv, bok := mk.([]byte); bok {
  17837. mk = d.string(bv)
  17838. }
  17839. if esep {
  17840. dd.ReadMapElemValue()
  17841. }
  17842. if dd.TryDecodeAsNil() {
  17843. if v == nil {
  17844. } else if d.h.DeleteOnNilMapValue {
  17845. delete(v, mk)
  17846. } else {
  17847. v[mk] = 0
  17848. }
  17849. continue
  17850. }
  17851. mv = dd.DecodeUint(64)
  17852. if v != nil {
  17853. v[mk] = mv
  17854. }
  17855. }
  17856. dd.ReadMapEnd()
  17857. return v, changed
  17858. }
  17859. func (d *Decoder) fastpathDecMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  17860. if rv.Kind() == reflect.Ptr {
  17861. vp := rv2i(rv).(*map[interface{}]uintptr)
  17862. v, changed := fastpathTV.DecMapIntfUintptrV(*vp, true, d)
  17863. if changed {
  17864. *vp = v
  17865. }
  17866. } else {
  17867. fastpathTV.DecMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), false, d)
  17868. }
  17869. }
  17870. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, d *Decoder) {
  17871. v, changed := f.DecMapIntfUintptrV(*vp, true, d)
  17872. if changed {
  17873. *vp = v
  17874. }
  17875. }
  17876. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, canChange bool,
  17877. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  17878. dd, esep := d.d, d.hh.hasElemSeparators()
  17879. containerLen := dd.ReadMapStart()
  17880. if canChange && v == nil {
  17881. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17882. v = make(map[interface{}]uintptr, xlen)
  17883. changed = true
  17884. }
  17885. if containerLen == 0 {
  17886. dd.ReadMapEnd()
  17887. return v, changed
  17888. }
  17889. var mk interface{}
  17890. var mv uintptr
  17891. hasLen := containerLen > 0
  17892. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17893. if esep {
  17894. dd.ReadMapElemKey()
  17895. }
  17896. mk = nil
  17897. d.decode(&mk)
  17898. if bv, bok := mk.([]byte); bok {
  17899. mk = d.string(bv)
  17900. }
  17901. if esep {
  17902. dd.ReadMapElemValue()
  17903. }
  17904. if dd.TryDecodeAsNil() {
  17905. if v == nil {
  17906. } else if d.h.DeleteOnNilMapValue {
  17907. delete(v, mk)
  17908. } else {
  17909. v[mk] = 0
  17910. }
  17911. continue
  17912. }
  17913. mv = uintptr(dd.DecodeUint(uintBitsize))
  17914. if v != nil {
  17915. v[mk] = mv
  17916. }
  17917. }
  17918. dd.ReadMapEnd()
  17919. return v, changed
  17920. }
  17921. func (d *Decoder) fastpathDecMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  17922. if rv.Kind() == reflect.Ptr {
  17923. vp := rv2i(rv).(*map[interface{}]int)
  17924. v, changed := fastpathTV.DecMapIntfIntV(*vp, true, d)
  17925. if changed {
  17926. *vp = v
  17927. }
  17928. } else {
  17929. fastpathTV.DecMapIntfIntV(rv2i(rv).(map[interface{}]int), false, d)
  17930. }
  17931. }
  17932. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, d *Decoder) {
  17933. v, changed := f.DecMapIntfIntV(*vp, true, d)
  17934. if changed {
  17935. *vp = v
  17936. }
  17937. }
  17938. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, canChange bool,
  17939. d *Decoder) (_ map[interface{}]int, changed bool) {
  17940. dd, esep := d.d, d.hh.hasElemSeparators()
  17941. containerLen := dd.ReadMapStart()
  17942. if canChange && v == nil {
  17943. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17944. v = make(map[interface{}]int, xlen)
  17945. changed = true
  17946. }
  17947. if containerLen == 0 {
  17948. dd.ReadMapEnd()
  17949. return v, changed
  17950. }
  17951. var mk interface{}
  17952. var mv int
  17953. hasLen := containerLen > 0
  17954. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17955. if esep {
  17956. dd.ReadMapElemKey()
  17957. }
  17958. mk = nil
  17959. d.decode(&mk)
  17960. if bv, bok := mk.([]byte); bok {
  17961. mk = d.string(bv)
  17962. }
  17963. if esep {
  17964. dd.ReadMapElemValue()
  17965. }
  17966. if dd.TryDecodeAsNil() {
  17967. if v == nil {
  17968. } else if d.h.DeleteOnNilMapValue {
  17969. delete(v, mk)
  17970. } else {
  17971. v[mk] = 0
  17972. }
  17973. continue
  17974. }
  17975. mv = int(dd.DecodeInt(intBitsize))
  17976. if v != nil {
  17977. v[mk] = mv
  17978. }
  17979. }
  17980. dd.ReadMapEnd()
  17981. return v, changed
  17982. }
  17983. func (d *Decoder) fastpathDecMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  17984. if rv.Kind() == reflect.Ptr {
  17985. vp := rv2i(rv).(*map[interface{}]int8)
  17986. v, changed := fastpathTV.DecMapIntfInt8V(*vp, true, d)
  17987. if changed {
  17988. *vp = v
  17989. }
  17990. } else {
  17991. fastpathTV.DecMapIntfInt8V(rv2i(rv).(map[interface{}]int8), false, d)
  17992. }
  17993. }
  17994. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, d *Decoder) {
  17995. v, changed := f.DecMapIntfInt8V(*vp, true, d)
  17996. if changed {
  17997. *vp = v
  17998. }
  17999. }
  18000. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, canChange bool,
  18001. d *Decoder) (_ map[interface{}]int8, changed bool) {
  18002. dd, esep := d.d, d.hh.hasElemSeparators()
  18003. containerLen := dd.ReadMapStart()
  18004. if canChange && v == nil {
  18005. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18006. v = make(map[interface{}]int8, xlen)
  18007. changed = true
  18008. }
  18009. if containerLen == 0 {
  18010. dd.ReadMapEnd()
  18011. return v, changed
  18012. }
  18013. var mk interface{}
  18014. var mv int8
  18015. hasLen := containerLen > 0
  18016. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18017. if esep {
  18018. dd.ReadMapElemKey()
  18019. }
  18020. mk = nil
  18021. d.decode(&mk)
  18022. if bv, bok := mk.([]byte); bok {
  18023. mk = d.string(bv)
  18024. }
  18025. if esep {
  18026. dd.ReadMapElemValue()
  18027. }
  18028. if dd.TryDecodeAsNil() {
  18029. if v == nil {
  18030. } else if d.h.DeleteOnNilMapValue {
  18031. delete(v, mk)
  18032. } else {
  18033. v[mk] = 0
  18034. }
  18035. continue
  18036. }
  18037. mv = int8(dd.DecodeInt(8))
  18038. if v != nil {
  18039. v[mk] = mv
  18040. }
  18041. }
  18042. dd.ReadMapEnd()
  18043. return v, changed
  18044. }
  18045. func (d *Decoder) fastpathDecMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  18046. if rv.Kind() == reflect.Ptr {
  18047. vp := rv2i(rv).(*map[interface{}]int16)
  18048. v, changed := fastpathTV.DecMapIntfInt16V(*vp, true, d)
  18049. if changed {
  18050. *vp = v
  18051. }
  18052. } else {
  18053. fastpathTV.DecMapIntfInt16V(rv2i(rv).(map[interface{}]int16), false, d)
  18054. }
  18055. }
  18056. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, d *Decoder) {
  18057. v, changed := f.DecMapIntfInt16V(*vp, true, d)
  18058. if changed {
  18059. *vp = v
  18060. }
  18061. }
  18062. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, canChange bool,
  18063. d *Decoder) (_ map[interface{}]int16, changed bool) {
  18064. dd, esep := d.d, d.hh.hasElemSeparators()
  18065. containerLen := dd.ReadMapStart()
  18066. if canChange && v == nil {
  18067. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  18068. v = make(map[interface{}]int16, xlen)
  18069. changed = true
  18070. }
  18071. if containerLen == 0 {
  18072. dd.ReadMapEnd()
  18073. return v, changed
  18074. }
  18075. var mk interface{}
  18076. var mv int16
  18077. hasLen := containerLen > 0
  18078. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18079. if esep {
  18080. dd.ReadMapElemKey()
  18081. }
  18082. mk = nil
  18083. d.decode(&mk)
  18084. if bv, bok := mk.([]byte); bok {
  18085. mk = d.string(bv)
  18086. }
  18087. if esep {
  18088. dd.ReadMapElemValue()
  18089. }
  18090. if dd.TryDecodeAsNil() {
  18091. if v == nil {
  18092. } else if d.h.DeleteOnNilMapValue {
  18093. delete(v, mk)
  18094. } else {
  18095. v[mk] = 0
  18096. }
  18097. continue
  18098. }
  18099. mv = int16(dd.DecodeInt(16))
  18100. if v != nil {
  18101. v[mk] = mv
  18102. }
  18103. }
  18104. dd.ReadMapEnd()
  18105. return v, changed
  18106. }
  18107. func (d *Decoder) fastpathDecMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  18108. if rv.Kind() == reflect.Ptr {
  18109. vp := rv2i(rv).(*map[interface{}]int32)
  18110. v, changed := fastpathTV.DecMapIntfInt32V(*vp, true, d)
  18111. if changed {
  18112. *vp = v
  18113. }
  18114. } else {
  18115. fastpathTV.DecMapIntfInt32V(rv2i(rv).(map[interface{}]int32), false, d)
  18116. }
  18117. }
  18118. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, d *Decoder) {
  18119. v, changed := f.DecMapIntfInt32V(*vp, true, d)
  18120. if changed {
  18121. *vp = v
  18122. }
  18123. }
  18124. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, canChange bool,
  18125. d *Decoder) (_ map[interface{}]int32, changed bool) {
  18126. dd, esep := d.d, d.hh.hasElemSeparators()
  18127. containerLen := dd.ReadMapStart()
  18128. if canChange && v == nil {
  18129. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18130. v = make(map[interface{}]int32, xlen)
  18131. changed = true
  18132. }
  18133. if containerLen == 0 {
  18134. dd.ReadMapEnd()
  18135. return v, changed
  18136. }
  18137. var mk interface{}
  18138. var mv int32
  18139. hasLen := containerLen > 0
  18140. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18141. if esep {
  18142. dd.ReadMapElemKey()
  18143. }
  18144. mk = nil
  18145. d.decode(&mk)
  18146. if bv, bok := mk.([]byte); bok {
  18147. mk = d.string(bv)
  18148. }
  18149. if esep {
  18150. dd.ReadMapElemValue()
  18151. }
  18152. if dd.TryDecodeAsNil() {
  18153. if v == nil {
  18154. } else if d.h.DeleteOnNilMapValue {
  18155. delete(v, mk)
  18156. } else {
  18157. v[mk] = 0
  18158. }
  18159. continue
  18160. }
  18161. mv = int32(dd.DecodeInt(32))
  18162. if v != nil {
  18163. v[mk] = mv
  18164. }
  18165. }
  18166. dd.ReadMapEnd()
  18167. return v, changed
  18168. }
  18169. func (d *Decoder) fastpathDecMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  18170. if rv.Kind() == reflect.Ptr {
  18171. vp := rv2i(rv).(*map[interface{}]int64)
  18172. v, changed := fastpathTV.DecMapIntfInt64V(*vp, true, d)
  18173. if changed {
  18174. *vp = v
  18175. }
  18176. } else {
  18177. fastpathTV.DecMapIntfInt64V(rv2i(rv).(map[interface{}]int64), false, d)
  18178. }
  18179. }
  18180. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, d *Decoder) {
  18181. v, changed := f.DecMapIntfInt64V(*vp, true, d)
  18182. if changed {
  18183. *vp = v
  18184. }
  18185. }
  18186. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, canChange bool,
  18187. d *Decoder) (_ map[interface{}]int64, changed bool) {
  18188. dd, esep := d.d, d.hh.hasElemSeparators()
  18189. containerLen := dd.ReadMapStart()
  18190. if canChange && v == nil {
  18191. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18192. v = make(map[interface{}]int64, xlen)
  18193. changed = true
  18194. }
  18195. if containerLen == 0 {
  18196. dd.ReadMapEnd()
  18197. return v, changed
  18198. }
  18199. var mk interface{}
  18200. var mv int64
  18201. hasLen := containerLen > 0
  18202. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18203. if esep {
  18204. dd.ReadMapElemKey()
  18205. }
  18206. mk = nil
  18207. d.decode(&mk)
  18208. if bv, bok := mk.([]byte); bok {
  18209. mk = d.string(bv)
  18210. }
  18211. if esep {
  18212. dd.ReadMapElemValue()
  18213. }
  18214. if dd.TryDecodeAsNil() {
  18215. if v == nil {
  18216. } else if d.h.DeleteOnNilMapValue {
  18217. delete(v, mk)
  18218. } else {
  18219. v[mk] = 0
  18220. }
  18221. continue
  18222. }
  18223. mv = dd.DecodeInt(64)
  18224. if v != nil {
  18225. v[mk] = mv
  18226. }
  18227. }
  18228. dd.ReadMapEnd()
  18229. return v, changed
  18230. }
  18231. func (d *Decoder) fastpathDecMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  18232. if rv.Kind() == reflect.Ptr {
  18233. vp := rv2i(rv).(*map[interface{}]float32)
  18234. v, changed := fastpathTV.DecMapIntfFloat32V(*vp, true, d)
  18235. if changed {
  18236. *vp = v
  18237. }
  18238. } else {
  18239. fastpathTV.DecMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), false, d)
  18240. }
  18241. }
  18242. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, d *Decoder) {
  18243. v, changed := f.DecMapIntfFloat32V(*vp, true, d)
  18244. if changed {
  18245. *vp = v
  18246. }
  18247. }
  18248. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, canChange bool,
  18249. d *Decoder) (_ map[interface{}]float32, changed bool) {
  18250. dd, esep := d.d, d.hh.hasElemSeparators()
  18251. containerLen := dd.ReadMapStart()
  18252. if canChange && v == nil {
  18253. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18254. v = make(map[interface{}]float32, xlen)
  18255. changed = true
  18256. }
  18257. if containerLen == 0 {
  18258. dd.ReadMapEnd()
  18259. return v, changed
  18260. }
  18261. var mk interface{}
  18262. var mv float32
  18263. hasLen := containerLen > 0
  18264. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18265. if esep {
  18266. dd.ReadMapElemKey()
  18267. }
  18268. mk = nil
  18269. d.decode(&mk)
  18270. if bv, bok := mk.([]byte); bok {
  18271. mk = d.string(bv)
  18272. }
  18273. if esep {
  18274. dd.ReadMapElemValue()
  18275. }
  18276. if dd.TryDecodeAsNil() {
  18277. if v == nil {
  18278. } else if d.h.DeleteOnNilMapValue {
  18279. delete(v, mk)
  18280. } else {
  18281. v[mk] = 0
  18282. }
  18283. continue
  18284. }
  18285. mv = float32(chkFloat32(dd.DecodeFloat64()))
  18286. if v != nil {
  18287. v[mk] = mv
  18288. }
  18289. }
  18290. dd.ReadMapEnd()
  18291. return v, changed
  18292. }
  18293. func (d *Decoder) fastpathDecMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  18294. if rv.Kind() == reflect.Ptr {
  18295. vp := rv2i(rv).(*map[interface{}]float64)
  18296. v, changed := fastpathTV.DecMapIntfFloat64V(*vp, true, d)
  18297. if changed {
  18298. *vp = v
  18299. }
  18300. } else {
  18301. fastpathTV.DecMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), false, d)
  18302. }
  18303. }
  18304. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, d *Decoder) {
  18305. v, changed := f.DecMapIntfFloat64V(*vp, true, d)
  18306. if changed {
  18307. *vp = v
  18308. }
  18309. }
  18310. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, canChange bool,
  18311. d *Decoder) (_ map[interface{}]float64, changed bool) {
  18312. dd, esep := d.d, d.hh.hasElemSeparators()
  18313. containerLen := dd.ReadMapStart()
  18314. if canChange && v == nil {
  18315. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18316. v = make(map[interface{}]float64, xlen)
  18317. changed = true
  18318. }
  18319. if containerLen == 0 {
  18320. dd.ReadMapEnd()
  18321. return v, changed
  18322. }
  18323. var mk interface{}
  18324. var mv float64
  18325. hasLen := containerLen > 0
  18326. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18327. if esep {
  18328. dd.ReadMapElemKey()
  18329. }
  18330. mk = nil
  18331. d.decode(&mk)
  18332. if bv, bok := mk.([]byte); bok {
  18333. mk = d.string(bv)
  18334. }
  18335. if esep {
  18336. dd.ReadMapElemValue()
  18337. }
  18338. if dd.TryDecodeAsNil() {
  18339. if v == nil {
  18340. } else if d.h.DeleteOnNilMapValue {
  18341. delete(v, mk)
  18342. } else {
  18343. v[mk] = 0
  18344. }
  18345. continue
  18346. }
  18347. mv = dd.DecodeFloat64()
  18348. if v != nil {
  18349. v[mk] = mv
  18350. }
  18351. }
  18352. dd.ReadMapEnd()
  18353. return v, changed
  18354. }
  18355. func (d *Decoder) fastpathDecMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  18356. if rv.Kind() == reflect.Ptr {
  18357. vp := rv2i(rv).(*map[interface{}]bool)
  18358. v, changed := fastpathTV.DecMapIntfBoolV(*vp, true, d)
  18359. if changed {
  18360. *vp = v
  18361. }
  18362. } else {
  18363. fastpathTV.DecMapIntfBoolV(rv2i(rv).(map[interface{}]bool), false, d)
  18364. }
  18365. }
  18366. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, d *Decoder) {
  18367. v, changed := f.DecMapIntfBoolV(*vp, true, d)
  18368. if changed {
  18369. *vp = v
  18370. }
  18371. }
  18372. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, canChange bool,
  18373. d *Decoder) (_ map[interface{}]bool, changed bool) {
  18374. dd, esep := d.d, d.hh.hasElemSeparators()
  18375. containerLen := dd.ReadMapStart()
  18376. if canChange && v == nil {
  18377. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18378. v = make(map[interface{}]bool, xlen)
  18379. changed = true
  18380. }
  18381. if containerLen == 0 {
  18382. dd.ReadMapEnd()
  18383. return v, changed
  18384. }
  18385. var mk interface{}
  18386. var mv bool
  18387. hasLen := containerLen > 0
  18388. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18389. if esep {
  18390. dd.ReadMapElemKey()
  18391. }
  18392. mk = nil
  18393. d.decode(&mk)
  18394. if bv, bok := mk.([]byte); bok {
  18395. mk = d.string(bv)
  18396. }
  18397. if esep {
  18398. dd.ReadMapElemValue()
  18399. }
  18400. if dd.TryDecodeAsNil() {
  18401. if v == nil {
  18402. } else if d.h.DeleteOnNilMapValue {
  18403. delete(v, mk)
  18404. } else {
  18405. v[mk] = false
  18406. }
  18407. continue
  18408. }
  18409. mv = dd.DecodeBool()
  18410. if v != nil {
  18411. v[mk] = mv
  18412. }
  18413. }
  18414. dd.ReadMapEnd()
  18415. return v, changed
  18416. }
  18417. func (d *Decoder) fastpathDecMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  18418. if rv.Kind() == reflect.Ptr {
  18419. vp := rv2i(rv).(*map[string]interface{})
  18420. v, changed := fastpathTV.DecMapStringIntfV(*vp, true, d)
  18421. if changed {
  18422. *vp = v
  18423. }
  18424. } else {
  18425. fastpathTV.DecMapStringIntfV(rv2i(rv).(map[string]interface{}), false, d)
  18426. }
  18427. }
  18428. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, d *Decoder) {
  18429. v, changed := f.DecMapStringIntfV(*vp, true, d)
  18430. if changed {
  18431. *vp = v
  18432. }
  18433. }
  18434. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, canChange bool,
  18435. d *Decoder) (_ map[string]interface{}, changed bool) {
  18436. dd, esep := d.d, d.hh.hasElemSeparators()
  18437. containerLen := dd.ReadMapStart()
  18438. if canChange && v == nil {
  18439. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18440. v = make(map[string]interface{}, xlen)
  18441. changed = true
  18442. }
  18443. if containerLen == 0 {
  18444. dd.ReadMapEnd()
  18445. return v, changed
  18446. }
  18447. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  18448. var mk string
  18449. var mv interface{}
  18450. hasLen := containerLen > 0
  18451. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18452. if esep {
  18453. dd.ReadMapElemKey()
  18454. }
  18455. mk = dd.DecodeString()
  18456. if esep {
  18457. dd.ReadMapElemValue()
  18458. }
  18459. if dd.TryDecodeAsNil() {
  18460. if v == nil {
  18461. } else if d.h.DeleteOnNilMapValue {
  18462. delete(v, mk)
  18463. } else {
  18464. v[mk] = nil
  18465. }
  18466. continue
  18467. }
  18468. if mapGet {
  18469. mv = v[mk]
  18470. } else {
  18471. mv = nil
  18472. }
  18473. d.decode(&mv)
  18474. if v != nil {
  18475. v[mk] = mv
  18476. }
  18477. }
  18478. dd.ReadMapEnd()
  18479. return v, changed
  18480. }
  18481. func (d *Decoder) fastpathDecMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  18482. if rv.Kind() == reflect.Ptr {
  18483. vp := rv2i(rv).(*map[string]string)
  18484. v, changed := fastpathTV.DecMapStringStringV(*vp, true, d)
  18485. if changed {
  18486. *vp = v
  18487. }
  18488. } else {
  18489. fastpathTV.DecMapStringStringV(rv2i(rv).(map[string]string), false, d)
  18490. }
  18491. }
  18492. func (f fastpathT) DecMapStringStringX(vp *map[string]string, d *Decoder) {
  18493. v, changed := f.DecMapStringStringV(*vp, true, d)
  18494. if changed {
  18495. *vp = v
  18496. }
  18497. }
  18498. func (_ fastpathT) DecMapStringStringV(v map[string]string, canChange bool,
  18499. d *Decoder) (_ map[string]string, changed bool) {
  18500. dd, esep := d.d, d.hh.hasElemSeparators()
  18501. containerLen := dd.ReadMapStart()
  18502. if canChange && v == nil {
  18503. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18504. v = make(map[string]string, xlen)
  18505. changed = true
  18506. }
  18507. if containerLen == 0 {
  18508. dd.ReadMapEnd()
  18509. return v, changed
  18510. }
  18511. var mk string
  18512. var mv string
  18513. hasLen := containerLen > 0
  18514. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18515. if esep {
  18516. dd.ReadMapElemKey()
  18517. }
  18518. mk = dd.DecodeString()
  18519. if esep {
  18520. dd.ReadMapElemValue()
  18521. }
  18522. if dd.TryDecodeAsNil() {
  18523. if v == nil {
  18524. } else if d.h.DeleteOnNilMapValue {
  18525. delete(v, mk)
  18526. } else {
  18527. v[mk] = ""
  18528. }
  18529. continue
  18530. }
  18531. mv = dd.DecodeString()
  18532. if v != nil {
  18533. v[mk] = mv
  18534. }
  18535. }
  18536. dd.ReadMapEnd()
  18537. return v, changed
  18538. }
  18539. func (d *Decoder) fastpathDecMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  18540. if rv.Kind() == reflect.Ptr {
  18541. vp := rv2i(rv).(*map[string]uint)
  18542. v, changed := fastpathTV.DecMapStringUintV(*vp, true, d)
  18543. if changed {
  18544. *vp = v
  18545. }
  18546. } else {
  18547. fastpathTV.DecMapStringUintV(rv2i(rv).(map[string]uint), false, d)
  18548. }
  18549. }
  18550. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, d *Decoder) {
  18551. v, changed := f.DecMapStringUintV(*vp, true, d)
  18552. if changed {
  18553. *vp = v
  18554. }
  18555. }
  18556. func (_ fastpathT) DecMapStringUintV(v map[string]uint, canChange bool,
  18557. d *Decoder) (_ map[string]uint, changed bool) {
  18558. dd, esep := d.d, d.hh.hasElemSeparators()
  18559. containerLen := dd.ReadMapStart()
  18560. if canChange && v == nil {
  18561. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18562. v = make(map[string]uint, xlen)
  18563. changed = true
  18564. }
  18565. if containerLen == 0 {
  18566. dd.ReadMapEnd()
  18567. return v, changed
  18568. }
  18569. var mk string
  18570. var mv uint
  18571. hasLen := containerLen > 0
  18572. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18573. if esep {
  18574. dd.ReadMapElemKey()
  18575. }
  18576. mk = dd.DecodeString()
  18577. if esep {
  18578. dd.ReadMapElemValue()
  18579. }
  18580. if dd.TryDecodeAsNil() {
  18581. if v == nil {
  18582. } else if d.h.DeleteOnNilMapValue {
  18583. delete(v, mk)
  18584. } else {
  18585. v[mk] = 0
  18586. }
  18587. continue
  18588. }
  18589. mv = uint(dd.DecodeUint(uintBitsize))
  18590. if v != nil {
  18591. v[mk] = mv
  18592. }
  18593. }
  18594. dd.ReadMapEnd()
  18595. return v, changed
  18596. }
  18597. func (d *Decoder) fastpathDecMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  18598. if rv.Kind() == reflect.Ptr {
  18599. vp := rv2i(rv).(*map[string]uint8)
  18600. v, changed := fastpathTV.DecMapStringUint8V(*vp, true, d)
  18601. if changed {
  18602. *vp = v
  18603. }
  18604. } else {
  18605. fastpathTV.DecMapStringUint8V(rv2i(rv).(map[string]uint8), false, d)
  18606. }
  18607. }
  18608. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, d *Decoder) {
  18609. v, changed := f.DecMapStringUint8V(*vp, true, d)
  18610. if changed {
  18611. *vp = v
  18612. }
  18613. }
  18614. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, canChange bool,
  18615. d *Decoder) (_ map[string]uint8, changed bool) {
  18616. dd, esep := d.d, d.hh.hasElemSeparators()
  18617. containerLen := dd.ReadMapStart()
  18618. if canChange && v == nil {
  18619. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18620. v = make(map[string]uint8, xlen)
  18621. changed = true
  18622. }
  18623. if containerLen == 0 {
  18624. dd.ReadMapEnd()
  18625. return v, changed
  18626. }
  18627. var mk string
  18628. var mv uint8
  18629. hasLen := containerLen > 0
  18630. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18631. if esep {
  18632. dd.ReadMapElemKey()
  18633. }
  18634. mk = dd.DecodeString()
  18635. if esep {
  18636. dd.ReadMapElemValue()
  18637. }
  18638. if dd.TryDecodeAsNil() {
  18639. if v == nil {
  18640. } else if d.h.DeleteOnNilMapValue {
  18641. delete(v, mk)
  18642. } else {
  18643. v[mk] = 0
  18644. }
  18645. continue
  18646. }
  18647. mv = uint8(dd.DecodeUint(8))
  18648. if v != nil {
  18649. v[mk] = mv
  18650. }
  18651. }
  18652. dd.ReadMapEnd()
  18653. return v, changed
  18654. }
  18655. func (d *Decoder) fastpathDecMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  18656. if rv.Kind() == reflect.Ptr {
  18657. vp := rv2i(rv).(*map[string]uint16)
  18658. v, changed := fastpathTV.DecMapStringUint16V(*vp, true, d)
  18659. if changed {
  18660. *vp = v
  18661. }
  18662. } else {
  18663. fastpathTV.DecMapStringUint16V(rv2i(rv).(map[string]uint16), false, d)
  18664. }
  18665. }
  18666. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, d *Decoder) {
  18667. v, changed := f.DecMapStringUint16V(*vp, true, d)
  18668. if changed {
  18669. *vp = v
  18670. }
  18671. }
  18672. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, canChange bool,
  18673. d *Decoder) (_ map[string]uint16, changed bool) {
  18674. dd, esep := d.d, d.hh.hasElemSeparators()
  18675. containerLen := dd.ReadMapStart()
  18676. if canChange && v == nil {
  18677. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  18678. v = make(map[string]uint16, xlen)
  18679. changed = true
  18680. }
  18681. if containerLen == 0 {
  18682. dd.ReadMapEnd()
  18683. return v, changed
  18684. }
  18685. var mk string
  18686. var mv uint16
  18687. hasLen := containerLen > 0
  18688. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18689. if esep {
  18690. dd.ReadMapElemKey()
  18691. }
  18692. mk = dd.DecodeString()
  18693. if esep {
  18694. dd.ReadMapElemValue()
  18695. }
  18696. if dd.TryDecodeAsNil() {
  18697. if v == nil {
  18698. } else if d.h.DeleteOnNilMapValue {
  18699. delete(v, mk)
  18700. } else {
  18701. v[mk] = 0
  18702. }
  18703. continue
  18704. }
  18705. mv = uint16(dd.DecodeUint(16))
  18706. if v != nil {
  18707. v[mk] = mv
  18708. }
  18709. }
  18710. dd.ReadMapEnd()
  18711. return v, changed
  18712. }
  18713. func (d *Decoder) fastpathDecMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  18714. if rv.Kind() == reflect.Ptr {
  18715. vp := rv2i(rv).(*map[string]uint32)
  18716. v, changed := fastpathTV.DecMapStringUint32V(*vp, true, d)
  18717. if changed {
  18718. *vp = v
  18719. }
  18720. } else {
  18721. fastpathTV.DecMapStringUint32V(rv2i(rv).(map[string]uint32), false, d)
  18722. }
  18723. }
  18724. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, d *Decoder) {
  18725. v, changed := f.DecMapStringUint32V(*vp, true, d)
  18726. if changed {
  18727. *vp = v
  18728. }
  18729. }
  18730. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, canChange bool,
  18731. d *Decoder) (_ map[string]uint32, changed bool) {
  18732. dd, esep := d.d, d.hh.hasElemSeparators()
  18733. containerLen := dd.ReadMapStart()
  18734. if canChange && v == nil {
  18735. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18736. v = make(map[string]uint32, xlen)
  18737. changed = true
  18738. }
  18739. if containerLen == 0 {
  18740. dd.ReadMapEnd()
  18741. return v, changed
  18742. }
  18743. var mk string
  18744. var mv uint32
  18745. hasLen := containerLen > 0
  18746. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18747. if esep {
  18748. dd.ReadMapElemKey()
  18749. }
  18750. mk = dd.DecodeString()
  18751. if esep {
  18752. dd.ReadMapElemValue()
  18753. }
  18754. if dd.TryDecodeAsNil() {
  18755. if v == nil {
  18756. } else if d.h.DeleteOnNilMapValue {
  18757. delete(v, mk)
  18758. } else {
  18759. v[mk] = 0
  18760. }
  18761. continue
  18762. }
  18763. mv = uint32(dd.DecodeUint(32))
  18764. if v != nil {
  18765. v[mk] = mv
  18766. }
  18767. }
  18768. dd.ReadMapEnd()
  18769. return v, changed
  18770. }
  18771. func (d *Decoder) fastpathDecMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  18772. if rv.Kind() == reflect.Ptr {
  18773. vp := rv2i(rv).(*map[string]uint64)
  18774. v, changed := fastpathTV.DecMapStringUint64V(*vp, true, d)
  18775. if changed {
  18776. *vp = v
  18777. }
  18778. } else {
  18779. fastpathTV.DecMapStringUint64V(rv2i(rv).(map[string]uint64), false, d)
  18780. }
  18781. }
  18782. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, d *Decoder) {
  18783. v, changed := f.DecMapStringUint64V(*vp, true, d)
  18784. if changed {
  18785. *vp = v
  18786. }
  18787. }
  18788. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, canChange bool,
  18789. d *Decoder) (_ map[string]uint64, changed bool) {
  18790. dd, esep := d.d, d.hh.hasElemSeparators()
  18791. containerLen := dd.ReadMapStart()
  18792. if canChange && v == nil {
  18793. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18794. v = make(map[string]uint64, xlen)
  18795. changed = true
  18796. }
  18797. if containerLen == 0 {
  18798. dd.ReadMapEnd()
  18799. return v, changed
  18800. }
  18801. var mk string
  18802. var mv uint64
  18803. hasLen := containerLen > 0
  18804. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18805. if esep {
  18806. dd.ReadMapElemKey()
  18807. }
  18808. mk = dd.DecodeString()
  18809. if esep {
  18810. dd.ReadMapElemValue()
  18811. }
  18812. if dd.TryDecodeAsNil() {
  18813. if v == nil {
  18814. } else if d.h.DeleteOnNilMapValue {
  18815. delete(v, mk)
  18816. } else {
  18817. v[mk] = 0
  18818. }
  18819. continue
  18820. }
  18821. mv = dd.DecodeUint(64)
  18822. if v != nil {
  18823. v[mk] = mv
  18824. }
  18825. }
  18826. dd.ReadMapEnd()
  18827. return v, changed
  18828. }
  18829. func (d *Decoder) fastpathDecMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  18830. if rv.Kind() == reflect.Ptr {
  18831. vp := rv2i(rv).(*map[string]uintptr)
  18832. v, changed := fastpathTV.DecMapStringUintptrV(*vp, true, d)
  18833. if changed {
  18834. *vp = v
  18835. }
  18836. } else {
  18837. fastpathTV.DecMapStringUintptrV(rv2i(rv).(map[string]uintptr), false, d)
  18838. }
  18839. }
  18840. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, d *Decoder) {
  18841. v, changed := f.DecMapStringUintptrV(*vp, true, d)
  18842. if changed {
  18843. *vp = v
  18844. }
  18845. }
  18846. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, canChange bool,
  18847. d *Decoder) (_ map[string]uintptr, changed bool) {
  18848. dd, esep := d.d, d.hh.hasElemSeparators()
  18849. containerLen := dd.ReadMapStart()
  18850. if canChange && v == nil {
  18851. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18852. v = make(map[string]uintptr, xlen)
  18853. changed = true
  18854. }
  18855. if containerLen == 0 {
  18856. dd.ReadMapEnd()
  18857. return v, changed
  18858. }
  18859. var mk string
  18860. var mv uintptr
  18861. hasLen := containerLen > 0
  18862. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18863. if esep {
  18864. dd.ReadMapElemKey()
  18865. }
  18866. mk = dd.DecodeString()
  18867. if esep {
  18868. dd.ReadMapElemValue()
  18869. }
  18870. if dd.TryDecodeAsNil() {
  18871. if v == nil {
  18872. } else if d.h.DeleteOnNilMapValue {
  18873. delete(v, mk)
  18874. } else {
  18875. v[mk] = 0
  18876. }
  18877. continue
  18878. }
  18879. mv = uintptr(dd.DecodeUint(uintBitsize))
  18880. if v != nil {
  18881. v[mk] = mv
  18882. }
  18883. }
  18884. dd.ReadMapEnd()
  18885. return v, changed
  18886. }
  18887. func (d *Decoder) fastpathDecMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  18888. if rv.Kind() == reflect.Ptr {
  18889. vp := rv2i(rv).(*map[string]int)
  18890. v, changed := fastpathTV.DecMapStringIntV(*vp, true, d)
  18891. if changed {
  18892. *vp = v
  18893. }
  18894. } else {
  18895. fastpathTV.DecMapStringIntV(rv2i(rv).(map[string]int), false, d)
  18896. }
  18897. }
  18898. func (f fastpathT) DecMapStringIntX(vp *map[string]int, d *Decoder) {
  18899. v, changed := f.DecMapStringIntV(*vp, true, d)
  18900. if changed {
  18901. *vp = v
  18902. }
  18903. }
  18904. func (_ fastpathT) DecMapStringIntV(v map[string]int, canChange bool,
  18905. d *Decoder) (_ map[string]int, changed bool) {
  18906. dd, esep := d.d, d.hh.hasElemSeparators()
  18907. containerLen := dd.ReadMapStart()
  18908. if canChange && v == nil {
  18909. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18910. v = make(map[string]int, xlen)
  18911. changed = true
  18912. }
  18913. if containerLen == 0 {
  18914. dd.ReadMapEnd()
  18915. return v, changed
  18916. }
  18917. var mk string
  18918. var mv int
  18919. hasLen := containerLen > 0
  18920. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18921. if esep {
  18922. dd.ReadMapElemKey()
  18923. }
  18924. mk = dd.DecodeString()
  18925. if esep {
  18926. dd.ReadMapElemValue()
  18927. }
  18928. if dd.TryDecodeAsNil() {
  18929. if v == nil {
  18930. } else if d.h.DeleteOnNilMapValue {
  18931. delete(v, mk)
  18932. } else {
  18933. v[mk] = 0
  18934. }
  18935. continue
  18936. }
  18937. mv = int(dd.DecodeInt(intBitsize))
  18938. if v != nil {
  18939. v[mk] = mv
  18940. }
  18941. }
  18942. dd.ReadMapEnd()
  18943. return v, changed
  18944. }
  18945. func (d *Decoder) fastpathDecMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  18946. if rv.Kind() == reflect.Ptr {
  18947. vp := rv2i(rv).(*map[string]int8)
  18948. v, changed := fastpathTV.DecMapStringInt8V(*vp, true, d)
  18949. if changed {
  18950. *vp = v
  18951. }
  18952. } else {
  18953. fastpathTV.DecMapStringInt8V(rv2i(rv).(map[string]int8), false, d)
  18954. }
  18955. }
  18956. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, d *Decoder) {
  18957. v, changed := f.DecMapStringInt8V(*vp, true, d)
  18958. if changed {
  18959. *vp = v
  18960. }
  18961. }
  18962. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, canChange bool,
  18963. d *Decoder) (_ map[string]int8, changed bool) {
  18964. dd, esep := d.d, d.hh.hasElemSeparators()
  18965. containerLen := dd.ReadMapStart()
  18966. if canChange && v == nil {
  18967. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18968. v = make(map[string]int8, xlen)
  18969. changed = true
  18970. }
  18971. if containerLen == 0 {
  18972. dd.ReadMapEnd()
  18973. return v, changed
  18974. }
  18975. var mk string
  18976. var mv int8
  18977. hasLen := containerLen > 0
  18978. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18979. if esep {
  18980. dd.ReadMapElemKey()
  18981. }
  18982. mk = dd.DecodeString()
  18983. if esep {
  18984. dd.ReadMapElemValue()
  18985. }
  18986. if dd.TryDecodeAsNil() {
  18987. if v == nil {
  18988. } else if d.h.DeleteOnNilMapValue {
  18989. delete(v, mk)
  18990. } else {
  18991. v[mk] = 0
  18992. }
  18993. continue
  18994. }
  18995. mv = int8(dd.DecodeInt(8))
  18996. if v != nil {
  18997. v[mk] = mv
  18998. }
  18999. }
  19000. dd.ReadMapEnd()
  19001. return v, changed
  19002. }
  19003. func (d *Decoder) fastpathDecMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  19004. if rv.Kind() == reflect.Ptr {
  19005. vp := rv2i(rv).(*map[string]int16)
  19006. v, changed := fastpathTV.DecMapStringInt16V(*vp, true, d)
  19007. if changed {
  19008. *vp = v
  19009. }
  19010. } else {
  19011. fastpathTV.DecMapStringInt16V(rv2i(rv).(map[string]int16), false, d)
  19012. }
  19013. }
  19014. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, d *Decoder) {
  19015. v, changed := f.DecMapStringInt16V(*vp, true, d)
  19016. if changed {
  19017. *vp = v
  19018. }
  19019. }
  19020. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, canChange bool,
  19021. d *Decoder) (_ map[string]int16, changed bool) {
  19022. dd, esep := d.d, d.hh.hasElemSeparators()
  19023. containerLen := dd.ReadMapStart()
  19024. if canChange && v == nil {
  19025. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19026. v = make(map[string]int16, xlen)
  19027. changed = true
  19028. }
  19029. if containerLen == 0 {
  19030. dd.ReadMapEnd()
  19031. return v, changed
  19032. }
  19033. var mk string
  19034. var mv int16
  19035. hasLen := containerLen > 0
  19036. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19037. if esep {
  19038. dd.ReadMapElemKey()
  19039. }
  19040. mk = dd.DecodeString()
  19041. if esep {
  19042. dd.ReadMapElemValue()
  19043. }
  19044. if dd.TryDecodeAsNil() {
  19045. if v == nil {
  19046. } else if d.h.DeleteOnNilMapValue {
  19047. delete(v, mk)
  19048. } else {
  19049. v[mk] = 0
  19050. }
  19051. continue
  19052. }
  19053. mv = int16(dd.DecodeInt(16))
  19054. if v != nil {
  19055. v[mk] = mv
  19056. }
  19057. }
  19058. dd.ReadMapEnd()
  19059. return v, changed
  19060. }
  19061. func (d *Decoder) fastpathDecMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  19062. if rv.Kind() == reflect.Ptr {
  19063. vp := rv2i(rv).(*map[string]int32)
  19064. v, changed := fastpathTV.DecMapStringInt32V(*vp, true, d)
  19065. if changed {
  19066. *vp = v
  19067. }
  19068. } else {
  19069. fastpathTV.DecMapStringInt32V(rv2i(rv).(map[string]int32), false, d)
  19070. }
  19071. }
  19072. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, d *Decoder) {
  19073. v, changed := f.DecMapStringInt32V(*vp, true, d)
  19074. if changed {
  19075. *vp = v
  19076. }
  19077. }
  19078. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, canChange bool,
  19079. d *Decoder) (_ map[string]int32, changed bool) {
  19080. dd, esep := d.d, d.hh.hasElemSeparators()
  19081. containerLen := dd.ReadMapStart()
  19082. if canChange && v == nil {
  19083. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19084. v = make(map[string]int32, xlen)
  19085. changed = true
  19086. }
  19087. if containerLen == 0 {
  19088. dd.ReadMapEnd()
  19089. return v, changed
  19090. }
  19091. var mk string
  19092. var mv int32
  19093. hasLen := containerLen > 0
  19094. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19095. if esep {
  19096. dd.ReadMapElemKey()
  19097. }
  19098. mk = dd.DecodeString()
  19099. if esep {
  19100. dd.ReadMapElemValue()
  19101. }
  19102. if dd.TryDecodeAsNil() {
  19103. if v == nil {
  19104. } else if d.h.DeleteOnNilMapValue {
  19105. delete(v, mk)
  19106. } else {
  19107. v[mk] = 0
  19108. }
  19109. continue
  19110. }
  19111. mv = int32(dd.DecodeInt(32))
  19112. if v != nil {
  19113. v[mk] = mv
  19114. }
  19115. }
  19116. dd.ReadMapEnd()
  19117. return v, changed
  19118. }
  19119. func (d *Decoder) fastpathDecMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  19120. if rv.Kind() == reflect.Ptr {
  19121. vp := rv2i(rv).(*map[string]int64)
  19122. v, changed := fastpathTV.DecMapStringInt64V(*vp, true, d)
  19123. if changed {
  19124. *vp = v
  19125. }
  19126. } else {
  19127. fastpathTV.DecMapStringInt64V(rv2i(rv).(map[string]int64), false, d)
  19128. }
  19129. }
  19130. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, d *Decoder) {
  19131. v, changed := f.DecMapStringInt64V(*vp, true, d)
  19132. if changed {
  19133. *vp = v
  19134. }
  19135. }
  19136. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, canChange bool,
  19137. d *Decoder) (_ map[string]int64, changed bool) {
  19138. dd, esep := d.d, d.hh.hasElemSeparators()
  19139. containerLen := dd.ReadMapStart()
  19140. if canChange && v == nil {
  19141. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19142. v = make(map[string]int64, xlen)
  19143. changed = true
  19144. }
  19145. if containerLen == 0 {
  19146. dd.ReadMapEnd()
  19147. return v, changed
  19148. }
  19149. var mk string
  19150. var mv int64
  19151. hasLen := containerLen > 0
  19152. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19153. if esep {
  19154. dd.ReadMapElemKey()
  19155. }
  19156. mk = dd.DecodeString()
  19157. if esep {
  19158. dd.ReadMapElemValue()
  19159. }
  19160. if dd.TryDecodeAsNil() {
  19161. if v == nil {
  19162. } else if d.h.DeleteOnNilMapValue {
  19163. delete(v, mk)
  19164. } else {
  19165. v[mk] = 0
  19166. }
  19167. continue
  19168. }
  19169. mv = dd.DecodeInt(64)
  19170. if v != nil {
  19171. v[mk] = mv
  19172. }
  19173. }
  19174. dd.ReadMapEnd()
  19175. return v, changed
  19176. }
  19177. func (d *Decoder) fastpathDecMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  19178. if rv.Kind() == reflect.Ptr {
  19179. vp := rv2i(rv).(*map[string]float32)
  19180. v, changed := fastpathTV.DecMapStringFloat32V(*vp, true, d)
  19181. if changed {
  19182. *vp = v
  19183. }
  19184. } else {
  19185. fastpathTV.DecMapStringFloat32V(rv2i(rv).(map[string]float32), false, d)
  19186. }
  19187. }
  19188. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, d *Decoder) {
  19189. v, changed := f.DecMapStringFloat32V(*vp, true, d)
  19190. if changed {
  19191. *vp = v
  19192. }
  19193. }
  19194. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, canChange bool,
  19195. d *Decoder) (_ map[string]float32, changed bool) {
  19196. dd, esep := d.d, d.hh.hasElemSeparators()
  19197. containerLen := dd.ReadMapStart()
  19198. if canChange && v == nil {
  19199. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19200. v = make(map[string]float32, xlen)
  19201. changed = true
  19202. }
  19203. if containerLen == 0 {
  19204. dd.ReadMapEnd()
  19205. return v, changed
  19206. }
  19207. var mk string
  19208. var mv float32
  19209. hasLen := containerLen > 0
  19210. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19211. if esep {
  19212. dd.ReadMapElemKey()
  19213. }
  19214. mk = dd.DecodeString()
  19215. if esep {
  19216. dd.ReadMapElemValue()
  19217. }
  19218. if dd.TryDecodeAsNil() {
  19219. if v == nil {
  19220. } else if d.h.DeleteOnNilMapValue {
  19221. delete(v, mk)
  19222. } else {
  19223. v[mk] = 0
  19224. }
  19225. continue
  19226. }
  19227. mv = float32(chkFloat32(dd.DecodeFloat64()))
  19228. if v != nil {
  19229. v[mk] = mv
  19230. }
  19231. }
  19232. dd.ReadMapEnd()
  19233. return v, changed
  19234. }
  19235. func (d *Decoder) fastpathDecMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  19236. if rv.Kind() == reflect.Ptr {
  19237. vp := rv2i(rv).(*map[string]float64)
  19238. v, changed := fastpathTV.DecMapStringFloat64V(*vp, true, d)
  19239. if changed {
  19240. *vp = v
  19241. }
  19242. } else {
  19243. fastpathTV.DecMapStringFloat64V(rv2i(rv).(map[string]float64), false, d)
  19244. }
  19245. }
  19246. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, d *Decoder) {
  19247. v, changed := f.DecMapStringFloat64V(*vp, true, d)
  19248. if changed {
  19249. *vp = v
  19250. }
  19251. }
  19252. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, canChange bool,
  19253. d *Decoder) (_ map[string]float64, changed bool) {
  19254. dd, esep := d.d, d.hh.hasElemSeparators()
  19255. containerLen := dd.ReadMapStart()
  19256. if canChange && v == nil {
  19257. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19258. v = make(map[string]float64, xlen)
  19259. changed = true
  19260. }
  19261. if containerLen == 0 {
  19262. dd.ReadMapEnd()
  19263. return v, changed
  19264. }
  19265. var mk string
  19266. var mv float64
  19267. hasLen := containerLen > 0
  19268. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19269. if esep {
  19270. dd.ReadMapElemKey()
  19271. }
  19272. mk = dd.DecodeString()
  19273. if esep {
  19274. dd.ReadMapElemValue()
  19275. }
  19276. if dd.TryDecodeAsNil() {
  19277. if v == nil {
  19278. } else if d.h.DeleteOnNilMapValue {
  19279. delete(v, mk)
  19280. } else {
  19281. v[mk] = 0
  19282. }
  19283. continue
  19284. }
  19285. mv = dd.DecodeFloat64()
  19286. if v != nil {
  19287. v[mk] = mv
  19288. }
  19289. }
  19290. dd.ReadMapEnd()
  19291. return v, changed
  19292. }
  19293. func (d *Decoder) fastpathDecMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  19294. if rv.Kind() == reflect.Ptr {
  19295. vp := rv2i(rv).(*map[string]bool)
  19296. v, changed := fastpathTV.DecMapStringBoolV(*vp, true, d)
  19297. if changed {
  19298. *vp = v
  19299. }
  19300. } else {
  19301. fastpathTV.DecMapStringBoolV(rv2i(rv).(map[string]bool), false, d)
  19302. }
  19303. }
  19304. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, d *Decoder) {
  19305. v, changed := f.DecMapStringBoolV(*vp, true, d)
  19306. if changed {
  19307. *vp = v
  19308. }
  19309. }
  19310. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, canChange bool,
  19311. d *Decoder) (_ map[string]bool, changed bool) {
  19312. dd, esep := d.d, d.hh.hasElemSeparators()
  19313. containerLen := dd.ReadMapStart()
  19314. if canChange && v == nil {
  19315. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19316. v = make(map[string]bool, xlen)
  19317. changed = true
  19318. }
  19319. if containerLen == 0 {
  19320. dd.ReadMapEnd()
  19321. return v, changed
  19322. }
  19323. var mk string
  19324. var mv bool
  19325. hasLen := containerLen > 0
  19326. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19327. if esep {
  19328. dd.ReadMapElemKey()
  19329. }
  19330. mk = dd.DecodeString()
  19331. if esep {
  19332. dd.ReadMapElemValue()
  19333. }
  19334. if dd.TryDecodeAsNil() {
  19335. if v == nil {
  19336. } else if d.h.DeleteOnNilMapValue {
  19337. delete(v, mk)
  19338. } else {
  19339. v[mk] = false
  19340. }
  19341. continue
  19342. }
  19343. mv = dd.DecodeBool()
  19344. if v != nil {
  19345. v[mk] = mv
  19346. }
  19347. }
  19348. dd.ReadMapEnd()
  19349. return v, changed
  19350. }
  19351. func (d *Decoder) fastpathDecMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  19352. if rv.Kind() == reflect.Ptr {
  19353. vp := rv2i(rv).(*map[float32]interface{})
  19354. v, changed := fastpathTV.DecMapFloat32IntfV(*vp, true, d)
  19355. if changed {
  19356. *vp = v
  19357. }
  19358. } else {
  19359. fastpathTV.DecMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), false, d)
  19360. }
  19361. }
  19362. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, d *Decoder) {
  19363. v, changed := f.DecMapFloat32IntfV(*vp, true, d)
  19364. if changed {
  19365. *vp = v
  19366. }
  19367. }
  19368. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, canChange bool,
  19369. d *Decoder) (_ map[float32]interface{}, changed bool) {
  19370. dd, esep := d.d, d.hh.hasElemSeparators()
  19371. containerLen := dd.ReadMapStart()
  19372. if canChange && v == nil {
  19373. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19374. v = make(map[float32]interface{}, xlen)
  19375. changed = true
  19376. }
  19377. if containerLen == 0 {
  19378. dd.ReadMapEnd()
  19379. return v, changed
  19380. }
  19381. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  19382. var mk float32
  19383. var mv interface{}
  19384. hasLen := containerLen > 0
  19385. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19386. if esep {
  19387. dd.ReadMapElemKey()
  19388. }
  19389. mk = float32(chkFloat32(dd.DecodeFloat64()))
  19390. if esep {
  19391. dd.ReadMapElemValue()
  19392. }
  19393. if dd.TryDecodeAsNil() {
  19394. if v == nil {
  19395. } else if d.h.DeleteOnNilMapValue {
  19396. delete(v, mk)
  19397. } else {
  19398. v[mk] = nil
  19399. }
  19400. continue
  19401. }
  19402. if mapGet {
  19403. mv = v[mk]
  19404. } else {
  19405. mv = nil
  19406. }
  19407. d.decode(&mv)
  19408. if v != nil {
  19409. v[mk] = mv
  19410. }
  19411. }
  19412. dd.ReadMapEnd()
  19413. return v, changed
  19414. }
  19415. func (d *Decoder) fastpathDecMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  19416. if rv.Kind() == reflect.Ptr {
  19417. vp := rv2i(rv).(*map[float32]string)
  19418. v, changed := fastpathTV.DecMapFloat32StringV(*vp, true, d)
  19419. if changed {
  19420. *vp = v
  19421. }
  19422. } else {
  19423. fastpathTV.DecMapFloat32StringV(rv2i(rv).(map[float32]string), false, d)
  19424. }
  19425. }
  19426. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, d *Decoder) {
  19427. v, changed := f.DecMapFloat32StringV(*vp, true, d)
  19428. if changed {
  19429. *vp = v
  19430. }
  19431. }
  19432. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, canChange bool,
  19433. d *Decoder) (_ map[float32]string, changed bool) {
  19434. dd, esep := d.d, d.hh.hasElemSeparators()
  19435. containerLen := dd.ReadMapStart()
  19436. if canChange && v == nil {
  19437. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19438. v = make(map[float32]string, xlen)
  19439. changed = true
  19440. }
  19441. if containerLen == 0 {
  19442. dd.ReadMapEnd()
  19443. return v, changed
  19444. }
  19445. var mk float32
  19446. var mv string
  19447. hasLen := containerLen > 0
  19448. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19449. if esep {
  19450. dd.ReadMapElemKey()
  19451. }
  19452. mk = float32(chkFloat32(dd.DecodeFloat64()))
  19453. if esep {
  19454. dd.ReadMapElemValue()
  19455. }
  19456. if dd.TryDecodeAsNil() {
  19457. if v == nil {
  19458. } else if d.h.DeleteOnNilMapValue {
  19459. delete(v, mk)
  19460. } else {
  19461. v[mk] = ""
  19462. }
  19463. continue
  19464. }
  19465. mv = dd.DecodeString()
  19466. if v != nil {
  19467. v[mk] = mv
  19468. }
  19469. }
  19470. dd.ReadMapEnd()
  19471. return v, changed
  19472. }
  19473. func (d *Decoder) fastpathDecMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  19474. if rv.Kind() == reflect.Ptr {
  19475. vp := rv2i(rv).(*map[float32]uint)
  19476. v, changed := fastpathTV.DecMapFloat32UintV(*vp, true, d)
  19477. if changed {
  19478. *vp = v
  19479. }
  19480. } else {
  19481. fastpathTV.DecMapFloat32UintV(rv2i(rv).(map[float32]uint), false, d)
  19482. }
  19483. }
  19484. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, d *Decoder) {
  19485. v, changed := f.DecMapFloat32UintV(*vp, true, d)
  19486. if changed {
  19487. *vp = v
  19488. }
  19489. }
  19490. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, canChange bool,
  19491. d *Decoder) (_ map[float32]uint, changed bool) {
  19492. dd, esep := d.d, d.hh.hasElemSeparators()
  19493. containerLen := dd.ReadMapStart()
  19494. if canChange && v == nil {
  19495. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19496. v = make(map[float32]uint, xlen)
  19497. changed = true
  19498. }
  19499. if containerLen == 0 {
  19500. dd.ReadMapEnd()
  19501. return v, changed
  19502. }
  19503. var mk float32
  19504. var mv uint
  19505. hasLen := containerLen > 0
  19506. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19507. if esep {
  19508. dd.ReadMapElemKey()
  19509. }
  19510. mk = float32(chkFloat32(dd.DecodeFloat64()))
  19511. if esep {
  19512. dd.ReadMapElemValue()
  19513. }
  19514. if dd.TryDecodeAsNil() {
  19515. if v == nil {
  19516. } else if d.h.DeleteOnNilMapValue {
  19517. delete(v, mk)
  19518. } else {
  19519. v[mk] = 0
  19520. }
  19521. continue
  19522. }
  19523. mv = uint(dd.DecodeUint(uintBitsize))
  19524. if v != nil {
  19525. v[mk] = mv
  19526. }
  19527. }
  19528. dd.ReadMapEnd()
  19529. return v, changed
  19530. }
  19531. func (d *Decoder) fastpathDecMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  19532. if rv.Kind() == reflect.Ptr {
  19533. vp := rv2i(rv).(*map[float32]uint8)
  19534. v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, true, d)
  19535. if changed {
  19536. *vp = v
  19537. }
  19538. } else {
  19539. fastpathTV.DecMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), false, d)
  19540. }
  19541. }
  19542. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, d *Decoder) {
  19543. v, changed := f.DecMapFloat32Uint8V(*vp, true, d)
  19544. if changed {
  19545. *vp = v
  19546. }
  19547. }
  19548. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, canChange bool,
  19549. d *Decoder) (_ map[float32]uint8, changed bool) {
  19550. dd, esep := d.d, d.hh.hasElemSeparators()
  19551. containerLen := dd.ReadMapStart()
  19552. if canChange && v == nil {
  19553. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  19554. v = make(map[float32]uint8, xlen)
  19555. changed = true
  19556. }
  19557. if containerLen == 0 {
  19558. dd.ReadMapEnd()
  19559. return v, changed
  19560. }
  19561. var mk float32
  19562. var mv uint8
  19563. hasLen := containerLen > 0
  19564. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19565. if esep {
  19566. dd.ReadMapElemKey()
  19567. }
  19568. mk = float32(chkFloat32(dd.DecodeFloat64()))
  19569. if esep {
  19570. dd.ReadMapElemValue()
  19571. }
  19572. if dd.TryDecodeAsNil() {
  19573. if v == nil {
  19574. } else if d.h.DeleteOnNilMapValue {
  19575. delete(v, mk)
  19576. } else {
  19577. v[mk] = 0
  19578. }
  19579. continue
  19580. }
  19581. mv = uint8(dd.DecodeUint(8))
  19582. if v != nil {
  19583. v[mk] = mv
  19584. }
  19585. }
  19586. dd.ReadMapEnd()
  19587. return v, changed
  19588. }
  19589. func (d *Decoder) fastpathDecMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  19590. if rv.Kind() == reflect.Ptr {
  19591. vp := rv2i(rv).(*map[float32]uint16)
  19592. v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, true, d)
  19593. if changed {
  19594. *vp = v
  19595. }
  19596. } else {
  19597. fastpathTV.DecMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), false, d)
  19598. }
  19599. }
  19600. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, d *Decoder) {
  19601. v, changed := f.DecMapFloat32Uint16V(*vp, true, d)
  19602. if changed {
  19603. *vp = v
  19604. }
  19605. }
  19606. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, canChange bool,
  19607. d *Decoder) (_ map[float32]uint16, changed bool) {
  19608. dd, esep := d.d, d.hh.hasElemSeparators()
  19609. containerLen := dd.ReadMapStart()
  19610. if canChange && v == nil {
  19611. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  19612. v = make(map[float32]uint16, xlen)
  19613. changed = true
  19614. }
  19615. if containerLen == 0 {
  19616. dd.ReadMapEnd()
  19617. return v, changed
  19618. }
  19619. var mk float32
  19620. var mv uint16
  19621. hasLen := containerLen > 0
  19622. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19623. if esep {
  19624. dd.ReadMapElemKey()
  19625. }
  19626. mk = float32(chkFloat32(dd.DecodeFloat64()))
  19627. if esep {
  19628. dd.ReadMapElemValue()
  19629. }
  19630. if dd.TryDecodeAsNil() {
  19631. if v == nil {
  19632. } else if d.h.DeleteOnNilMapValue {
  19633. delete(v, mk)
  19634. } else {
  19635. v[mk] = 0
  19636. }
  19637. continue
  19638. }
  19639. mv = uint16(dd.DecodeUint(16))
  19640. if v != nil {
  19641. v[mk] = mv
  19642. }
  19643. }
  19644. dd.ReadMapEnd()
  19645. return v, changed
  19646. }
  19647. func (d *Decoder) fastpathDecMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  19648. if rv.Kind() == reflect.Ptr {
  19649. vp := rv2i(rv).(*map[float32]uint32)
  19650. v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, true, d)
  19651. if changed {
  19652. *vp = v
  19653. }
  19654. } else {
  19655. fastpathTV.DecMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), false, d)
  19656. }
  19657. }
  19658. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, d *Decoder) {
  19659. v, changed := f.DecMapFloat32Uint32V(*vp, true, d)
  19660. if changed {
  19661. *vp = v
  19662. }
  19663. }
  19664. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, canChange bool,
  19665. d *Decoder) (_ map[float32]uint32, changed bool) {
  19666. dd, esep := d.d, d.hh.hasElemSeparators()
  19667. containerLen := dd.ReadMapStart()
  19668. if canChange && v == nil {
  19669. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  19670. v = make(map[float32]uint32, xlen)
  19671. changed = true
  19672. }
  19673. if containerLen == 0 {
  19674. dd.ReadMapEnd()
  19675. return v, changed
  19676. }
  19677. var mk float32
  19678. var mv uint32
  19679. hasLen := containerLen > 0
  19680. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19681. if esep {
  19682. dd.ReadMapElemKey()
  19683. }
  19684. mk = float32(chkFloat32(dd.DecodeFloat64()))
  19685. if esep {
  19686. dd.ReadMapElemValue()
  19687. }
  19688. if dd.TryDecodeAsNil() {
  19689. if v == nil {
  19690. } else if d.h.DeleteOnNilMapValue {
  19691. delete(v, mk)
  19692. } else {
  19693. v[mk] = 0
  19694. }
  19695. continue
  19696. }
  19697. mv = uint32(dd.DecodeUint(32))
  19698. if v != nil {
  19699. v[mk] = mv
  19700. }
  19701. }
  19702. dd.ReadMapEnd()
  19703. return v, changed
  19704. }
  19705. func (d *Decoder) fastpathDecMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  19706. if rv.Kind() == reflect.Ptr {
  19707. vp := rv2i(rv).(*map[float32]uint64)
  19708. v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, true, d)
  19709. if changed {
  19710. *vp = v
  19711. }
  19712. } else {
  19713. fastpathTV.DecMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), false, d)
  19714. }
  19715. }
  19716. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, d *Decoder) {
  19717. v, changed := f.DecMapFloat32Uint64V(*vp, true, d)
  19718. if changed {
  19719. *vp = v
  19720. }
  19721. }
  19722. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, canChange bool,
  19723. d *Decoder) (_ map[float32]uint64, changed bool) {
  19724. dd, esep := d.d, d.hh.hasElemSeparators()
  19725. containerLen := dd.ReadMapStart()
  19726. if canChange && v == nil {
  19727. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19728. v = make(map[float32]uint64, xlen)
  19729. changed = true
  19730. }
  19731. if containerLen == 0 {
  19732. dd.ReadMapEnd()
  19733. return v, changed
  19734. }
  19735. var mk float32
  19736. var mv uint64
  19737. hasLen := containerLen > 0
  19738. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19739. if esep {
  19740. dd.ReadMapElemKey()
  19741. }
  19742. mk = float32(chkFloat32(dd.DecodeFloat64()))
  19743. if esep {
  19744. dd.ReadMapElemValue()
  19745. }
  19746. if dd.TryDecodeAsNil() {
  19747. if v == nil {
  19748. } else if d.h.DeleteOnNilMapValue {
  19749. delete(v, mk)
  19750. } else {
  19751. v[mk] = 0
  19752. }
  19753. continue
  19754. }
  19755. mv = dd.DecodeUint(64)
  19756. if v != nil {
  19757. v[mk] = mv
  19758. }
  19759. }
  19760. dd.ReadMapEnd()
  19761. return v, changed
  19762. }
  19763. func (d *Decoder) fastpathDecMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  19764. if rv.Kind() == reflect.Ptr {
  19765. vp := rv2i(rv).(*map[float32]uintptr)
  19766. v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, true, d)
  19767. if changed {
  19768. *vp = v
  19769. }
  19770. } else {
  19771. fastpathTV.DecMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), false, d)
  19772. }
  19773. }
  19774. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, d *Decoder) {
  19775. v, changed := f.DecMapFloat32UintptrV(*vp, true, d)
  19776. if changed {
  19777. *vp = v
  19778. }
  19779. }
  19780. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, canChange bool,
  19781. d *Decoder) (_ map[float32]uintptr, changed bool) {
  19782. dd, esep := d.d, d.hh.hasElemSeparators()
  19783. containerLen := dd.ReadMapStart()
  19784. if canChange && v == nil {
  19785. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19786. v = make(map[float32]uintptr, xlen)
  19787. changed = true
  19788. }
  19789. if containerLen == 0 {
  19790. dd.ReadMapEnd()
  19791. return v, changed
  19792. }
  19793. var mk float32
  19794. var mv uintptr
  19795. hasLen := containerLen > 0
  19796. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19797. if esep {
  19798. dd.ReadMapElemKey()
  19799. }
  19800. mk = float32(chkFloat32(dd.DecodeFloat64()))
  19801. if esep {
  19802. dd.ReadMapElemValue()
  19803. }
  19804. if dd.TryDecodeAsNil() {
  19805. if v == nil {
  19806. } else if d.h.DeleteOnNilMapValue {
  19807. delete(v, mk)
  19808. } else {
  19809. v[mk] = 0
  19810. }
  19811. continue
  19812. }
  19813. mv = uintptr(dd.DecodeUint(uintBitsize))
  19814. if v != nil {
  19815. v[mk] = mv
  19816. }
  19817. }
  19818. dd.ReadMapEnd()
  19819. return v, changed
  19820. }
  19821. func (d *Decoder) fastpathDecMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  19822. if rv.Kind() == reflect.Ptr {
  19823. vp := rv2i(rv).(*map[float32]int)
  19824. v, changed := fastpathTV.DecMapFloat32IntV(*vp, true, d)
  19825. if changed {
  19826. *vp = v
  19827. }
  19828. } else {
  19829. fastpathTV.DecMapFloat32IntV(rv2i(rv).(map[float32]int), false, d)
  19830. }
  19831. }
  19832. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, d *Decoder) {
  19833. v, changed := f.DecMapFloat32IntV(*vp, true, d)
  19834. if changed {
  19835. *vp = v
  19836. }
  19837. }
  19838. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, canChange bool,
  19839. d *Decoder) (_ map[float32]int, changed bool) {
  19840. dd, esep := d.d, d.hh.hasElemSeparators()
  19841. containerLen := dd.ReadMapStart()
  19842. if canChange && v == nil {
  19843. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19844. v = make(map[float32]int, xlen)
  19845. changed = true
  19846. }
  19847. if containerLen == 0 {
  19848. dd.ReadMapEnd()
  19849. return v, changed
  19850. }
  19851. var mk float32
  19852. var mv int
  19853. hasLen := containerLen > 0
  19854. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19855. if esep {
  19856. dd.ReadMapElemKey()
  19857. }
  19858. mk = float32(chkFloat32(dd.DecodeFloat64()))
  19859. if esep {
  19860. dd.ReadMapElemValue()
  19861. }
  19862. if dd.TryDecodeAsNil() {
  19863. if v == nil {
  19864. } else if d.h.DeleteOnNilMapValue {
  19865. delete(v, mk)
  19866. } else {
  19867. v[mk] = 0
  19868. }
  19869. continue
  19870. }
  19871. mv = int(dd.DecodeInt(intBitsize))
  19872. if v != nil {
  19873. v[mk] = mv
  19874. }
  19875. }
  19876. dd.ReadMapEnd()
  19877. return v, changed
  19878. }
  19879. func (d *Decoder) fastpathDecMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  19880. if rv.Kind() == reflect.Ptr {
  19881. vp := rv2i(rv).(*map[float32]int8)
  19882. v, changed := fastpathTV.DecMapFloat32Int8V(*vp, true, d)
  19883. if changed {
  19884. *vp = v
  19885. }
  19886. } else {
  19887. fastpathTV.DecMapFloat32Int8V(rv2i(rv).(map[float32]int8), false, d)
  19888. }
  19889. }
  19890. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, d *Decoder) {
  19891. v, changed := f.DecMapFloat32Int8V(*vp, true, d)
  19892. if changed {
  19893. *vp = v
  19894. }
  19895. }
  19896. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, canChange bool,
  19897. d *Decoder) (_ map[float32]int8, changed bool) {
  19898. dd, esep := d.d, d.hh.hasElemSeparators()
  19899. containerLen := dd.ReadMapStart()
  19900. if canChange && v == nil {
  19901. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  19902. v = make(map[float32]int8, xlen)
  19903. changed = true
  19904. }
  19905. if containerLen == 0 {
  19906. dd.ReadMapEnd()
  19907. return v, changed
  19908. }
  19909. var mk float32
  19910. var mv int8
  19911. hasLen := containerLen > 0
  19912. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19913. if esep {
  19914. dd.ReadMapElemKey()
  19915. }
  19916. mk = float32(chkFloat32(dd.DecodeFloat64()))
  19917. if esep {
  19918. dd.ReadMapElemValue()
  19919. }
  19920. if dd.TryDecodeAsNil() {
  19921. if v == nil {
  19922. } else if d.h.DeleteOnNilMapValue {
  19923. delete(v, mk)
  19924. } else {
  19925. v[mk] = 0
  19926. }
  19927. continue
  19928. }
  19929. mv = int8(dd.DecodeInt(8))
  19930. if v != nil {
  19931. v[mk] = mv
  19932. }
  19933. }
  19934. dd.ReadMapEnd()
  19935. return v, changed
  19936. }
  19937. func (d *Decoder) fastpathDecMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  19938. if rv.Kind() == reflect.Ptr {
  19939. vp := rv2i(rv).(*map[float32]int16)
  19940. v, changed := fastpathTV.DecMapFloat32Int16V(*vp, true, d)
  19941. if changed {
  19942. *vp = v
  19943. }
  19944. } else {
  19945. fastpathTV.DecMapFloat32Int16V(rv2i(rv).(map[float32]int16), false, d)
  19946. }
  19947. }
  19948. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, d *Decoder) {
  19949. v, changed := f.DecMapFloat32Int16V(*vp, true, d)
  19950. if changed {
  19951. *vp = v
  19952. }
  19953. }
  19954. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, canChange bool,
  19955. d *Decoder) (_ map[float32]int16, changed bool) {
  19956. dd, esep := d.d, d.hh.hasElemSeparators()
  19957. containerLen := dd.ReadMapStart()
  19958. if canChange && v == nil {
  19959. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  19960. v = make(map[float32]int16, xlen)
  19961. changed = true
  19962. }
  19963. if containerLen == 0 {
  19964. dd.ReadMapEnd()
  19965. return v, changed
  19966. }
  19967. var mk float32
  19968. var mv int16
  19969. hasLen := containerLen > 0
  19970. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19971. if esep {
  19972. dd.ReadMapElemKey()
  19973. }
  19974. mk = float32(chkFloat32(dd.DecodeFloat64()))
  19975. if esep {
  19976. dd.ReadMapElemValue()
  19977. }
  19978. if dd.TryDecodeAsNil() {
  19979. if v == nil {
  19980. } else if d.h.DeleteOnNilMapValue {
  19981. delete(v, mk)
  19982. } else {
  19983. v[mk] = 0
  19984. }
  19985. continue
  19986. }
  19987. mv = int16(dd.DecodeInt(16))
  19988. if v != nil {
  19989. v[mk] = mv
  19990. }
  19991. }
  19992. dd.ReadMapEnd()
  19993. return v, changed
  19994. }
  19995. func (d *Decoder) fastpathDecMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  19996. if rv.Kind() == reflect.Ptr {
  19997. vp := rv2i(rv).(*map[float32]int32)
  19998. v, changed := fastpathTV.DecMapFloat32Int32V(*vp, true, d)
  19999. if changed {
  20000. *vp = v
  20001. }
  20002. } else {
  20003. fastpathTV.DecMapFloat32Int32V(rv2i(rv).(map[float32]int32), false, d)
  20004. }
  20005. }
  20006. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, d *Decoder) {
  20007. v, changed := f.DecMapFloat32Int32V(*vp, true, d)
  20008. if changed {
  20009. *vp = v
  20010. }
  20011. }
  20012. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, canChange bool,
  20013. d *Decoder) (_ map[float32]int32, changed bool) {
  20014. dd, esep := d.d, d.hh.hasElemSeparators()
  20015. containerLen := dd.ReadMapStart()
  20016. if canChange && v == nil {
  20017. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  20018. v = make(map[float32]int32, xlen)
  20019. changed = true
  20020. }
  20021. if containerLen == 0 {
  20022. dd.ReadMapEnd()
  20023. return v, changed
  20024. }
  20025. var mk float32
  20026. var mv int32
  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(chkFloat32(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 = int32(dd.DecodeInt(32))
  20046. if v != nil {
  20047. v[mk] = mv
  20048. }
  20049. }
  20050. dd.ReadMapEnd()
  20051. return v, changed
  20052. }
  20053. func (d *Decoder) fastpathDecMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  20054. if rv.Kind() == reflect.Ptr {
  20055. vp := rv2i(rv).(*map[float32]int64)
  20056. v, changed := fastpathTV.DecMapFloat32Int64V(*vp, true, d)
  20057. if changed {
  20058. *vp = v
  20059. }
  20060. } else {
  20061. fastpathTV.DecMapFloat32Int64V(rv2i(rv).(map[float32]int64), false, d)
  20062. }
  20063. }
  20064. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, d *Decoder) {
  20065. v, changed := f.DecMapFloat32Int64V(*vp, true, d)
  20066. if changed {
  20067. *vp = v
  20068. }
  20069. }
  20070. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, canChange bool,
  20071. d *Decoder) (_ map[float32]int64, changed bool) {
  20072. dd, esep := d.d, d.hh.hasElemSeparators()
  20073. containerLen := dd.ReadMapStart()
  20074. if canChange && v == nil {
  20075. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20076. v = make(map[float32]int64, xlen)
  20077. changed = true
  20078. }
  20079. if containerLen == 0 {
  20080. dd.ReadMapEnd()
  20081. return v, changed
  20082. }
  20083. var mk float32
  20084. var mv int64
  20085. hasLen := containerLen > 0
  20086. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20087. if esep {
  20088. dd.ReadMapElemKey()
  20089. }
  20090. mk = float32(chkFloat32(dd.DecodeFloat64()))
  20091. if esep {
  20092. dd.ReadMapElemValue()
  20093. }
  20094. if dd.TryDecodeAsNil() {
  20095. if v == nil {
  20096. } else if d.h.DeleteOnNilMapValue {
  20097. delete(v, mk)
  20098. } else {
  20099. v[mk] = 0
  20100. }
  20101. continue
  20102. }
  20103. mv = dd.DecodeInt(64)
  20104. if v != nil {
  20105. v[mk] = mv
  20106. }
  20107. }
  20108. dd.ReadMapEnd()
  20109. return v, changed
  20110. }
  20111. func (d *Decoder) fastpathDecMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  20112. if rv.Kind() == reflect.Ptr {
  20113. vp := rv2i(rv).(*map[float32]float32)
  20114. v, changed := fastpathTV.DecMapFloat32Float32V(*vp, true, d)
  20115. if changed {
  20116. *vp = v
  20117. }
  20118. } else {
  20119. fastpathTV.DecMapFloat32Float32V(rv2i(rv).(map[float32]float32), false, d)
  20120. }
  20121. }
  20122. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, d *Decoder) {
  20123. v, changed := f.DecMapFloat32Float32V(*vp, true, d)
  20124. if changed {
  20125. *vp = v
  20126. }
  20127. }
  20128. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, canChange bool,
  20129. d *Decoder) (_ map[float32]float32, changed bool) {
  20130. dd, esep := d.d, d.hh.hasElemSeparators()
  20131. containerLen := dd.ReadMapStart()
  20132. if canChange && v == nil {
  20133. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  20134. v = make(map[float32]float32, xlen)
  20135. changed = true
  20136. }
  20137. if containerLen == 0 {
  20138. dd.ReadMapEnd()
  20139. return v, changed
  20140. }
  20141. var mk float32
  20142. var mv float32
  20143. hasLen := containerLen > 0
  20144. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20145. if esep {
  20146. dd.ReadMapElemKey()
  20147. }
  20148. mk = float32(chkFloat32(dd.DecodeFloat64()))
  20149. if esep {
  20150. dd.ReadMapElemValue()
  20151. }
  20152. if dd.TryDecodeAsNil() {
  20153. if v == nil {
  20154. } else if d.h.DeleteOnNilMapValue {
  20155. delete(v, mk)
  20156. } else {
  20157. v[mk] = 0
  20158. }
  20159. continue
  20160. }
  20161. mv = float32(chkFloat32(dd.DecodeFloat64()))
  20162. if v != nil {
  20163. v[mk] = mv
  20164. }
  20165. }
  20166. dd.ReadMapEnd()
  20167. return v, changed
  20168. }
  20169. func (d *Decoder) fastpathDecMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  20170. if rv.Kind() == reflect.Ptr {
  20171. vp := rv2i(rv).(*map[float32]float64)
  20172. v, changed := fastpathTV.DecMapFloat32Float64V(*vp, true, d)
  20173. if changed {
  20174. *vp = v
  20175. }
  20176. } else {
  20177. fastpathTV.DecMapFloat32Float64V(rv2i(rv).(map[float32]float64), false, d)
  20178. }
  20179. }
  20180. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, d *Decoder) {
  20181. v, changed := f.DecMapFloat32Float64V(*vp, true, d)
  20182. if changed {
  20183. *vp = v
  20184. }
  20185. }
  20186. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, canChange bool,
  20187. d *Decoder) (_ map[float32]float64, changed bool) {
  20188. dd, esep := d.d, d.hh.hasElemSeparators()
  20189. containerLen := dd.ReadMapStart()
  20190. if canChange && v == nil {
  20191. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20192. v = make(map[float32]float64, xlen)
  20193. changed = true
  20194. }
  20195. if containerLen == 0 {
  20196. dd.ReadMapEnd()
  20197. return v, changed
  20198. }
  20199. var mk float32
  20200. var mv float64
  20201. hasLen := containerLen > 0
  20202. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20203. if esep {
  20204. dd.ReadMapElemKey()
  20205. }
  20206. mk = float32(chkFloat32(dd.DecodeFloat64()))
  20207. if esep {
  20208. dd.ReadMapElemValue()
  20209. }
  20210. if dd.TryDecodeAsNil() {
  20211. if v == nil {
  20212. } else if d.h.DeleteOnNilMapValue {
  20213. delete(v, mk)
  20214. } else {
  20215. v[mk] = 0
  20216. }
  20217. continue
  20218. }
  20219. mv = dd.DecodeFloat64()
  20220. if v != nil {
  20221. v[mk] = mv
  20222. }
  20223. }
  20224. dd.ReadMapEnd()
  20225. return v, changed
  20226. }
  20227. func (d *Decoder) fastpathDecMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  20228. if rv.Kind() == reflect.Ptr {
  20229. vp := rv2i(rv).(*map[float32]bool)
  20230. v, changed := fastpathTV.DecMapFloat32BoolV(*vp, true, d)
  20231. if changed {
  20232. *vp = v
  20233. }
  20234. } else {
  20235. fastpathTV.DecMapFloat32BoolV(rv2i(rv).(map[float32]bool), false, d)
  20236. }
  20237. }
  20238. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, d *Decoder) {
  20239. v, changed := f.DecMapFloat32BoolV(*vp, true, d)
  20240. if changed {
  20241. *vp = v
  20242. }
  20243. }
  20244. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, canChange bool,
  20245. d *Decoder) (_ map[float32]bool, changed bool) {
  20246. dd, esep := d.d, d.hh.hasElemSeparators()
  20247. containerLen := dd.ReadMapStart()
  20248. if canChange && v == nil {
  20249. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  20250. v = make(map[float32]bool, xlen)
  20251. changed = true
  20252. }
  20253. if containerLen == 0 {
  20254. dd.ReadMapEnd()
  20255. return v, changed
  20256. }
  20257. var mk float32
  20258. var mv bool
  20259. hasLen := containerLen > 0
  20260. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20261. if esep {
  20262. dd.ReadMapElemKey()
  20263. }
  20264. mk = float32(chkFloat32(dd.DecodeFloat64()))
  20265. if esep {
  20266. dd.ReadMapElemValue()
  20267. }
  20268. if dd.TryDecodeAsNil() {
  20269. if v == nil {
  20270. } else if d.h.DeleteOnNilMapValue {
  20271. delete(v, mk)
  20272. } else {
  20273. v[mk] = false
  20274. }
  20275. continue
  20276. }
  20277. mv = dd.DecodeBool()
  20278. if v != nil {
  20279. v[mk] = mv
  20280. }
  20281. }
  20282. dd.ReadMapEnd()
  20283. return v, changed
  20284. }
  20285. func (d *Decoder) fastpathDecMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  20286. if rv.Kind() == reflect.Ptr {
  20287. vp := rv2i(rv).(*map[float64]interface{})
  20288. v, changed := fastpathTV.DecMapFloat64IntfV(*vp, true, d)
  20289. if changed {
  20290. *vp = v
  20291. }
  20292. } else {
  20293. fastpathTV.DecMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), false, d)
  20294. }
  20295. }
  20296. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, d *Decoder) {
  20297. v, changed := f.DecMapFloat64IntfV(*vp, true, d)
  20298. if changed {
  20299. *vp = v
  20300. }
  20301. }
  20302. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, canChange bool,
  20303. d *Decoder) (_ map[float64]interface{}, changed bool) {
  20304. dd, esep := d.d, d.hh.hasElemSeparators()
  20305. containerLen := dd.ReadMapStart()
  20306. if canChange && v == nil {
  20307. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20308. v = make(map[float64]interface{}, xlen)
  20309. changed = true
  20310. }
  20311. if containerLen == 0 {
  20312. dd.ReadMapEnd()
  20313. return v, changed
  20314. }
  20315. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  20316. var mk float64
  20317. var mv interface{}
  20318. hasLen := containerLen > 0
  20319. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20320. if esep {
  20321. dd.ReadMapElemKey()
  20322. }
  20323. mk = dd.DecodeFloat64()
  20324. if esep {
  20325. dd.ReadMapElemValue()
  20326. }
  20327. if dd.TryDecodeAsNil() {
  20328. if v == nil {
  20329. } else if d.h.DeleteOnNilMapValue {
  20330. delete(v, mk)
  20331. } else {
  20332. v[mk] = nil
  20333. }
  20334. continue
  20335. }
  20336. if mapGet {
  20337. mv = v[mk]
  20338. } else {
  20339. mv = nil
  20340. }
  20341. d.decode(&mv)
  20342. if v != nil {
  20343. v[mk] = mv
  20344. }
  20345. }
  20346. dd.ReadMapEnd()
  20347. return v, changed
  20348. }
  20349. func (d *Decoder) fastpathDecMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  20350. if rv.Kind() == reflect.Ptr {
  20351. vp := rv2i(rv).(*map[float64]string)
  20352. v, changed := fastpathTV.DecMapFloat64StringV(*vp, true, d)
  20353. if changed {
  20354. *vp = v
  20355. }
  20356. } else {
  20357. fastpathTV.DecMapFloat64StringV(rv2i(rv).(map[float64]string), false, d)
  20358. }
  20359. }
  20360. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, d *Decoder) {
  20361. v, changed := f.DecMapFloat64StringV(*vp, true, d)
  20362. if changed {
  20363. *vp = v
  20364. }
  20365. }
  20366. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, canChange bool,
  20367. d *Decoder) (_ map[float64]string, changed bool) {
  20368. dd, esep := d.d, d.hh.hasElemSeparators()
  20369. containerLen := dd.ReadMapStart()
  20370. if canChange && v == nil {
  20371. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20372. v = make(map[float64]string, xlen)
  20373. changed = true
  20374. }
  20375. if containerLen == 0 {
  20376. dd.ReadMapEnd()
  20377. return v, changed
  20378. }
  20379. var mk float64
  20380. var mv string
  20381. hasLen := containerLen > 0
  20382. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20383. if esep {
  20384. dd.ReadMapElemKey()
  20385. }
  20386. mk = dd.DecodeFloat64()
  20387. if esep {
  20388. dd.ReadMapElemValue()
  20389. }
  20390. if dd.TryDecodeAsNil() {
  20391. if v == nil {
  20392. } else if d.h.DeleteOnNilMapValue {
  20393. delete(v, mk)
  20394. } else {
  20395. v[mk] = ""
  20396. }
  20397. continue
  20398. }
  20399. mv = dd.DecodeString()
  20400. if v != nil {
  20401. v[mk] = mv
  20402. }
  20403. }
  20404. dd.ReadMapEnd()
  20405. return v, changed
  20406. }
  20407. func (d *Decoder) fastpathDecMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  20408. if rv.Kind() == reflect.Ptr {
  20409. vp := rv2i(rv).(*map[float64]uint)
  20410. v, changed := fastpathTV.DecMapFloat64UintV(*vp, true, d)
  20411. if changed {
  20412. *vp = v
  20413. }
  20414. } else {
  20415. fastpathTV.DecMapFloat64UintV(rv2i(rv).(map[float64]uint), false, d)
  20416. }
  20417. }
  20418. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, d *Decoder) {
  20419. v, changed := f.DecMapFloat64UintV(*vp, true, d)
  20420. if changed {
  20421. *vp = v
  20422. }
  20423. }
  20424. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, canChange bool,
  20425. d *Decoder) (_ map[float64]uint, changed bool) {
  20426. dd, esep := d.d, d.hh.hasElemSeparators()
  20427. containerLen := dd.ReadMapStart()
  20428. if canChange && v == nil {
  20429. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20430. v = make(map[float64]uint, xlen)
  20431. changed = true
  20432. }
  20433. if containerLen == 0 {
  20434. dd.ReadMapEnd()
  20435. return v, changed
  20436. }
  20437. var mk float64
  20438. var mv uint
  20439. hasLen := containerLen > 0
  20440. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20441. if esep {
  20442. dd.ReadMapElemKey()
  20443. }
  20444. mk = dd.DecodeFloat64()
  20445. if esep {
  20446. dd.ReadMapElemValue()
  20447. }
  20448. if dd.TryDecodeAsNil() {
  20449. if v == nil {
  20450. } else if d.h.DeleteOnNilMapValue {
  20451. delete(v, mk)
  20452. } else {
  20453. v[mk] = 0
  20454. }
  20455. continue
  20456. }
  20457. mv = uint(dd.DecodeUint(uintBitsize))
  20458. if v != nil {
  20459. v[mk] = mv
  20460. }
  20461. }
  20462. dd.ReadMapEnd()
  20463. return v, changed
  20464. }
  20465. func (d *Decoder) fastpathDecMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  20466. if rv.Kind() == reflect.Ptr {
  20467. vp := rv2i(rv).(*map[float64]uint8)
  20468. v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, true, d)
  20469. if changed {
  20470. *vp = v
  20471. }
  20472. } else {
  20473. fastpathTV.DecMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), false, d)
  20474. }
  20475. }
  20476. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, d *Decoder) {
  20477. v, changed := f.DecMapFloat64Uint8V(*vp, true, d)
  20478. if changed {
  20479. *vp = v
  20480. }
  20481. }
  20482. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, canChange bool,
  20483. d *Decoder) (_ map[float64]uint8, changed bool) {
  20484. dd, esep := d.d, d.hh.hasElemSeparators()
  20485. containerLen := dd.ReadMapStart()
  20486. if canChange && v == nil {
  20487. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20488. v = make(map[float64]uint8, xlen)
  20489. changed = true
  20490. }
  20491. if containerLen == 0 {
  20492. dd.ReadMapEnd()
  20493. return v, changed
  20494. }
  20495. var mk float64
  20496. var mv uint8
  20497. hasLen := containerLen > 0
  20498. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20499. if esep {
  20500. dd.ReadMapElemKey()
  20501. }
  20502. mk = dd.DecodeFloat64()
  20503. if esep {
  20504. dd.ReadMapElemValue()
  20505. }
  20506. if dd.TryDecodeAsNil() {
  20507. if v == nil {
  20508. } else if d.h.DeleteOnNilMapValue {
  20509. delete(v, mk)
  20510. } else {
  20511. v[mk] = 0
  20512. }
  20513. continue
  20514. }
  20515. mv = uint8(dd.DecodeUint(8))
  20516. if v != nil {
  20517. v[mk] = mv
  20518. }
  20519. }
  20520. dd.ReadMapEnd()
  20521. return v, changed
  20522. }
  20523. func (d *Decoder) fastpathDecMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  20524. if rv.Kind() == reflect.Ptr {
  20525. vp := rv2i(rv).(*map[float64]uint16)
  20526. v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, true, d)
  20527. if changed {
  20528. *vp = v
  20529. }
  20530. } else {
  20531. fastpathTV.DecMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), false, d)
  20532. }
  20533. }
  20534. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, d *Decoder) {
  20535. v, changed := f.DecMapFloat64Uint16V(*vp, true, d)
  20536. if changed {
  20537. *vp = v
  20538. }
  20539. }
  20540. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, canChange bool,
  20541. d *Decoder) (_ map[float64]uint16, changed bool) {
  20542. dd, esep := d.d, d.hh.hasElemSeparators()
  20543. containerLen := dd.ReadMapStart()
  20544. if canChange && v == nil {
  20545. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  20546. v = make(map[float64]uint16, xlen)
  20547. changed = true
  20548. }
  20549. if containerLen == 0 {
  20550. dd.ReadMapEnd()
  20551. return v, changed
  20552. }
  20553. var mk float64
  20554. var mv uint16
  20555. hasLen := containerLen > 0
  20556. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20557. if esep {
  20558. dd.ReadMapElemKey()
  20559. }
  20560. mk = dd.DecodeFloat64()
  20561. if esep {
  20562. dd.ReadMapElemValue()
  20563. }
  20564. if dd.TryDecodeAsNil() {
  20565. if v == nil {
  20566. } else if d.h.DeleteOnNilMapValue {
  20567. delete(v, mk)
  20568. } else {
  20569. v[mk] = 0
  20570. }
  20571. continue
  20572. }
  20573. mv = uint16(dd.DecodeUint(16))
  20574. if v != nil {
  20575. v[mk] = mv
  20576. }
  20577. }
  20578. dd.ReadMapEnd()
  20579. return v, changed
  20580. }
  20581. func (d *Decoder) fastpathDecMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  20582. if rv.Kind() == reflect.Ptr {
  20583. vp := rv2i(rv).(*map[float64]uint32)
  20584. v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, true, d)
  20585. if changed {
  20586. *vp = v
  20587. }
  20588. } else {
  20589. fastpathTV.DecMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), false, d)
  20590. }
  20591. }
  20592. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, d *Decoder) {
  20593. v, changed := f.DecMapFloat64Uint32V(*vp, true, d)
  20594. if changed {
  20595. *vp = v
  20596. }
  20597. }
  20598. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, canChange bool,
  20599. d *Decoder) (_ map[float64]uint32, changed bool) {
  20600. dd, esep := d.d, d.hh.hasElemSeparators()
  20601. containerLen := dd.ReadMapStart()
  20602. if canChange && v == nil {
  20603. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20604. v = make(map[float64]uint32, xlen)
  20605. changed = true
  20606. }
  20607. if containerLen == 0 {
  20608. dd.ReadMapEnd()
  20609. return v, changed
  20610. }
  20611. var mk float64
  20612. var mv uint32
  20613. hasLen := containerLen > 0
  20614. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20615. if esep {
  20616. dd.ReadMapElemKey()
  20617. }
  20618. mk = dd.DecodeFloat64()
  20619. if esep {
  20620. dd.ReadMapElemValue()
  20621. }
  20622. if dd.TryDecodeAsNil() {
  20623. if v == nil {
  20624. } else if d.h.DeleteOnNilMapValue {
  20625. delete(v, mk)
  20626. } else {
  20627. v[mk] = 0
  20628. }
  20629. continue
  20630. }
  20631. mv = uint32(dd.DecodeUint(32))
  20632. if v != nil {
  20633. v[mk] = mv
  20634. }
  20635. }
  20636. dd.ReadMapEnd()
  20637. return v, changed
  20638. }
  20639. func (d *Decoder) fastpathDecMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  20640. if rv.Kind() == reflect.Ptr {
  20641. vp := rv2i(rv).(*map[float64]uint64)
  20642. v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, true, d)
  20643. if changed {
  20644. *vp = v
  20645. }
  20646. } else {
  20647. fastpathTV.DecMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), false, d)
  20648. }
  20649. }
  20650. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, d *Decoder) {
  20651. v, changed := f.DecMapFloat64Uint64V(*vp, true, d)
  20652. if changed {
  20653. *vp = v
  20654. }
  20655. }
  20656. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, canChange bool,
  20657. d *Decoder) (_ map[float64]uint64, changed bool) {
  20658. dd, esep := d.d, d.hh.hasElemSeparators()
  20659. containerLen := dd.ReadMapStart()
  20660. if canChange && v == nil {
  20661. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20662. v = make(map[float64]uint64, xlen)
  20663. changed = true
  20664. }
  20665. if containerLen == 0 {
  20666. dd.ReadMapEnd()
  20667. return v, changed
  20668. }
  20669. var mk float64
  20670. var mv uint64
  20671. hasLen := containerLen > 0
  20672. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20673. if esep {
  20674. dd.ReadMapElemKey()
  20675. }
  20676. mk = dd.DecodeFloat64()
  20677. if esep {
  20678. dd.ReadMapElemValue()
  20679. }
  20680. if dd.TryDecodeAsNil() {
  20681. if v == nil {
  20682. } else if d.h.DeleteOnNilMapValue {
  20683. delete(v, mk)
  20684. } else {
  20685. v[mk] = 0
  20686. }
  20687. continue
  20688. }
  20689. mv = dd.DecodeUint(64)
  20690. if v != nil {
  20691. v[mk] = mv
  20692. }
  20693. }
  20694. dd.ReadMapEnd()
  20695. return v, changed
  20696. }
  20697. func (d *Decoder) fastpathDecMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  20698. if rv.Kind() == reflect.Ptr {
  20699. vp := rv2i(rv).(*map[float64]uintptr)
  20700. v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, true, d)
  20701. if changed {
  20702. *vp = v
  20703. }
  20704. } else {
  20705. fastpathTV.DecMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), false, d)
  20706. }
  20707. }
  20708. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, d *Decoder) {
  20709. v, changed := f.DecMapFloat64UintptrV(*vp, true, d)
  20710. if changed {
  20711. *vp = v
  20712. }
  20713. }
  20714. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, canChange bool,
  20715. d *Decoder) (_ map[float64]uintptr, changed bool) {
  20716. dd, esep := d.d, d.hh.hasElemSeparators()
  20717. containerLen := dd.ReadMapStart()
  20718. if canChange && v == nil {
  20719. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20720. v = make(map[float64]uintptr, xlen)
  20721. changed = true
  20722. }
  20723. if containerLen == 0 {
  20724. dd.ReadMapEnd()
  20725. return v, changed
  20726. }
  20727. var mk float64
  20728. var mv uintptr
  20729. hasLen := containerLen > 0
  20730. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20731. if esep {
  20732. dd.ReadMapElemKey()
  20733. }
  20734. mk = dd.DecodeFloat64()
  20735. if esep {
  20736. dd.ReadMapElemValue()
  20737. }
  20738. if dd.TryDecodeAsNil() {
  20739. if v == nil {
  20740. } else if d.h.DeleteOnNilMapValue {
  20741. delete(v, mk)
  20742. } else {
  20743. v[mk] = 0
  20744. }
  20745. continue
  20746. }
  20747. mv = uintptr(dd.DecodeUint(uintBitsize))
  20748. if v != nil {
  20749. v[mk] = mv
  20750. }
  20751. }
  20752. dd.ReadMapEnd()
  20753. return v, changed
  20754. }
  20755. func (d *Decoder) fastpathDecMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  20756. if rv.Kind() == reflect.Ptr {
  20757. vp := rv2i(rv).(*map[float64]int)
  20758. v, changed := fastpathTV.DecMapFloat64IntV(*vp, true, d)
  20759. if changed {
  20760. *vp = v
  20761. }
  20762. } else {
  20763. fastpathTV.DecMapFloat64IntV(rv2i(rv).(map[float64]int), false, d)
  20764. }
  20765. }
  20766. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, d *Decoder) {
  20767. v, changed := f.DecMapFloat64IntV(*vp, true, d)
  20768. if changed {
  20769. *vp = v
  20770. }
  20771. }
  20772. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, canChange bool,
  20773. d *Decoder) (_ map[float64]int, changed bool) {
  20774. dd, esep := d.d, d.hh.hasElemSeparators()
  20775. containerLen := dd.ReadMapStart()
  20776. if canChange && v == nil {
  20777. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20778. v = make(map[float64]int, xlen)
  20779. changed = true
  20780. }
  20781. if containerLen == 0 {
  20782. dd.ReadMapEnd()
  20783. return v, changed
  20784. }
  20785. var mk float64
  20786. var mv int
  20787. hasLen := containerLen > 0
  20788. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20789. if esep {
  20790. dd.ReadMapElemKey()
  20791. }
  20792. mk = dd.DecodeFloat64()
  20793. if esep {
  20794. dd.ReadMapElemValue()
  20795. }
  20796. if dd.TryDecodeAsNil() {
  20797. if v == nil {
  20798. } else if d.h.DeleteOnNilMapValue {
  20799. delete(v, mk)
  20800. } else {
  20801. v[mk] = 0
  20802. }
  20803. continue
  20804. }
  20805. mv = int(dd.DecodeInt(intBitsize))
  20806. if v != nil {
  20807. v[mk] = mv
  20808. }
  20809. }
  20810. dd.ReadMapEnd()
  20811. return v, changed
  20812. }
  20813. func (d *Decoder) fastpathDecMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  20814. if rv.Kind() == reflect.Ptr {
  20815. vp := rv2i(rv).(*map[float64]int8)
  20816. v, changed := fastpathTV.DecMapFloat64Int8V(*vp, true, d)
  20817. if changed {
  20818. *vp = v
  20819. }
  20820. } else {
  20821. fastpathTV.DecMapFloat64Int8V(rv2i(rv).(map[float64]int8), false, d)
  20822. }
  20823. }
  20824. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, d *Decoder) {
  20825. v, changed := f.DecMapFloat64Int8V(*vp, true, d)
  20826. if changed {
  20827. *vp = v
  20828. }
  20829. }
  20830. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, canChange bool,
  20831. d *Decoder) (_ map[float64]int8, changed bool) {
  20832. dd, esep := d.d, d.hh.hasElemSeparators()
  20833. containerLen := dd.ReadMapStart()
  20834. if canChange && v == nil {
  20835. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20836. v = make(map[float64]int8, xlen)
  20837. changed = true
  20838. }
  20839. if containerLen == 0 {
  20840. dd.ReadMapEnd()
  20841. return v, changed
  20842. }
  20843. var mk float64
  20844. var mv int8
  20845. hasLen := containerLen > 0
  20846. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20847. if esep {
  20848. dd.ReadMapElemKey()
  20849. }
  20850. mk = dd.DecodeFloat64()
  20851. if esep {
  20852. dd.ReadMapElemValue()
  20853. }
  20854. if dd.TryDecodeAsNil() {
  20855. if v == nil {
  20856. } else if d.h.DeleteOnNilMapValue {
  20857. delete(v, mk)
  20858. } else {
  20859. v[mk] = 0
  20860. }
  20861. continue
  20862. }
  20863. mv = int8(dd.DecodeInt(8))
  20864. if v != nil {
  20865. v[mk] = mv
  20866. }
  20867. }
  20868. dd.ReadMapEnd()
  20869. return v, changed
  20870. }
  20871. func (d *Decoder) fastpathDecMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  20872. if rv.Kind() == reflect.Ptr {
  20873. vp := rv2i(rv).(*map[float64]int16)
  20874. v, changed := fastpathTV.DecMapFloat64Int16V(*vp, true, d)
  20875. if changed {
  20876. *vp = v
  20877. }
  20878. } else {
  20879. fastpathTV.DecMapFloat64Int16V(rv2i(rv).(map[float64]int16), false, d)
  20880. }
  20881. }
  20882. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, d *Decoder) {
  20883. v, changed := f.DecMapFloat64Int16V(*vp, true, d)
  20884. if changed {
  20885. *vp = v
  20886. }
  20887. }
  20888. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, canChange bool,
  20889. d *Decoder) (_ map[float64]int16, changed bool) {
  20890. dd, esep := d.d, d.hh.hasElemSeparators()
  20891. containerLen := dd.ReadMapStart()
  20892. if canChange && v == nil {
  20893. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  20894. v = make(map[float64]int16, xlen)
  20895. changed = true
  20896. }
  20897. if containerLen == 0 {
  20898. dd.ReadMapEnd()
  20899. return v, changed
  20900. }
  20901. var mk float64
  20902. var mv int16
  20903. hasLen := containerLen > 0
  20904. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20905. if esep {
  20906. dd.ReadMapElemKey()
  20907. }
  20908. mk = dd.DecodeFloat64()
  20909. if esep {
  20910. dd.ReadMapElemValue()
  20911. }
  20912. if dd.TryDecodeAsNil() {
  20913. if v == nil {
  20914. } else if d.h.DeleteOnNilMapValue {
  20915. delete(v, mk)
  20916. } else {
  20917. v[mk] = 0
  20918. }
  20919. continue
  20920. }
  20921. mv = int16(dd.DecodeInt(16))
  20922. if v != nil {
  20923. v[mk] = mv
  20924. }
  20925. }
  20926. dd.ReadMapEnd()
  20927. return v, changed
  20928. }
  20929. func (d *Decoder) fastpathDecMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  20930. if rv.Kind() == reflect.Ptr {
  20931. vp := rv2i(rv).(*map[float64]int32)
  20932. v, changed := fastpathTV.DecMapFloat64Int32V(*vp, true, d)
  20933. if changed {
  20934. *vp = v
  20935. }
  20936. } else {
  20937. fastpathTV.DecMapFloat64Int32V(rv2i(rv).(map[float64]int32), false, d)
  20938. }
  20939. }
  20940. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, d *Decoder) {
  20941. v, changed := f.DecMapFloat64Int32V(*vp, true, d)
  20942. if changed {
  20943. *vp = v
  20944. }
  20945. }
  20946. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, canChange bool,
  20947. d *Decoder) (_ map[float64]int32, changed bool) {
  20948. dd, esep := d.d, d.hh.hasElemSeparators()
  20949. containerLen := dd.ReadMapStart()
  20950. if canChange && v == nil {
  20951. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20952. v = make(map[float64]int32, xlen)
  20953. changed = true
  20954. }
  20955. if containerLen == 0 {
  20956. dd.ReadMapEnd()
  20957. return v, changed
  20958. }
  20959. var mk float64
  20960. var mv int32
  20961. hasLen := containerLen > 0
  20962. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20963. if esep {
  20964. dd.ReadMapElemKey()
  20965. }
  20966. mk = dd.DecodeFloat64()
  20967. if esep {
  20968. dd.ReadMapElemValue()
  20969. }
  20970. if dd.TryDecodeAsNil() {
  20971. if v == nil {
  20972. } else if d.h.DeleteOnNilMapValue {
  20973. delete(v, mk)
  20974. } else {
  20975. v[mk] = 0
  20976. }
  20977. continue
  20978. }
  20979. mv = int32(dd.DecodeInt(32))
  20980. if v != nil {
  20981. v[mk] = mv
  20982. }
  20983. }
  20984. dd.ReadMapEnd()
  20985. return v, changed
  20986. }
  20987. func (d *Decoder) fastpathDecMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  20988. if rv.Kind() == reflect.Ptr {
  20989. vp := rv2i(rv).(*map[float64]int64)
  20990. v, changed := fastpathTV.DecMapFloat64Int64V(*vp, true, d)
  20991. if changed {
  20992. *vp = v
  20993. }
  20994. } else {
  20995. fastpathTV.DecMapFloat64Int64V(rv2i(rv).(map[float64]int64), false, d)
  20996. }
  20997. }
  20998. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, d *Decoder) {
  20999. v, changed := f.DecMapFloat64Int64V(*vp, true, d)
  21000. if changed {
  21001. *vp = v
  21002. }
  21003. }
  21004. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, canChange bool,
  21005. d *Decoder) (_ map[float64]int64, changed bool) {
  21006. dd, esep := d.d, d.hh.hasElemSeparators()
  21007. containerLen := dd.ReadMapStart()
  21008. if canChange && v == nil {
  21009. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21010. v = make(map[float64]int64, xlen)
  21011. changed = true
  21012. }
  21013. if containerLen == 0 {
  21014. dd.ReadMapEnd()
  21015. return v, changed
  21016. }
  21017. var mk float64
  21018. var mv int64
  21019. hasLen := containerLen > 0
  21020. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21021. if esep {
  21022. dd.ReadMapElemKey()
  21023. }
  21024. mk = dd.DecodeFloat64()
  21025. if esep {
  21026. dd.ReadMapElemValue()
  21027. }
  21028. if dd.TryDecodeAsNil() {
  21029. if v == nil {
  21030. } else if d.h.DeleteOnNilMapValue {
  21031. delete(v, mk)
  21032. } else {
  21033. v[mk] = 0
  21034. }
  21035. continue
  21036. }
  21037. mv = dd.DecodeInt(64)
  21038. if v != nil {
  21039. v[mk] = mv
  21040. }
  21041. }
  21042. dd.ReadMapEnd()
  21043. return v, changed
  21044. }
  21045. func (d *Decoder) fastpathDecMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  21046. if rv.Kind() == reflect.Ptr {
  21047. vp := rv2i(rv).(*map[float64]float32)
  21048. v, changed := fastpathTV.DecMapFloat64Float32V(*vp, true, d)
  21049. if changed {
  21050. *vp = v
  21051. }
  21052. } else {
  21053. fastpathTV.DecMapFloat64Float32V(rv2i(rv).(map[float64]float32), false, d)
  21054. }
  21055. }
  21056. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, d *Decoder) {
  21057. v, changed := f.DecMapFloat64Float32V(*vp, true, d)
  21058. if changed {
  21059. *vp = v
  21060. }
  21061. }
  21062. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, canChange bool,
  21063. d *Decoder) (_ map[float64]float32, changed bool) {
  21064. dd, esep := d.d, d.hh.hasElemSeparators()
  21065. containerLen := dd.ReadMapStart()
  21066. if canChange && v == nil {
  21067. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21068. v = make(map[float64]float32, xlen)
  21069. changed = true
  21070. }
  21071. if containerLen == 0 {
  21072. dd.ReadMapEnd()
  21073. return v, changed
  21074. }
  21075. var mk float64
  21076. var mv float32
  21077. hasLen := containerLen > 0
  21078. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21079. if esep {
  21080. dd.ReadMapElemKey()
  21081. }
  21082. mk = dd.DecodeFloat64()
  21083. if esep {
  21084. dd.ReadMapElemValue()
  21085. }
  21086. if dd.TryDecodeAsNil() {
  21087. if v == nil {
  21088. } else if d.h.DeleteOnNilMapValue {
  21089. delete(v, mk)
  21090. } else {
  21091. v[mk] = 0
  21092. }
  21093. continue
  21094. }
  21095. mv = float32(chkFloat32(dd.DecodeFloat64()))
  21096. if v != nil {
  21097. v[mk] = mv
  21098. }
  21099. }
  21100. dd.ReadMapEnd()
  21101. return v, changed
  21102. }
  21103. func (d *Decoder) fastpathDecMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  21104. if rv.Kind() == reflect.Ptr {
  21105. vp := rv2i(rv).(*map[float64]float64)
  21106. v, changed := fastpathTV.DecMapFloat64Float64V(*vp, true, d)
  21107. if changed {
  21108. *vp = v
  21109. }
  21110. } else {
  21111. fastpathTV.DecMapFloat64Float64V(rv2i(rv).(map[float64]float64), false, d)
  21112. }
  21113. }
  21114. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, d *Decoder) {
  21115. v, changed := f.DecMapFloat64Float64V(*vp, true, d)
  21116. if changed {
  21117. *vp = v
  21118. }
  21119. }
  21120. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, canChange bool,
  21121. d *Decoder) (_ map[float64]float64, changed bool) {
  21122. dd, esep := d.d, d.hh.hasElemSeparators()
  21123. containerLen := dd.ReadMapStart()
  21124. if canChange && v == nil {
  21125. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21126. v = make(map[float64]float64, xlen)
  21127. changed = true
  21128. }
  21129. if containerLen == 0 {
  21130. dd.ReadMapEnd()
  21131. return v, changed
  21132. }
  21133. var mk float64
  21134. var mv float64
  21135. hasLen := containerLen > 0
  21136. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21137. if esep {
  21138. dd.ReadMapElemKey()
  21139. }
  21140. mk = dd.DecodeFloat64()
  21141. if esep {
  21142. dd.ReadMapElemValue()
  21143. }
  21144. if dd.TryDecodeAsNil() {
  21145. if v == nil {
  21146. } else if d.h.DeleteOnNilMapValue {
  21147. delete(v, mk)
  21148. } else {
  21149. v[mk] = 0
  21150. }
  21151. continue
  21152. }
  21153. mv = dd.DecodeFloat64()
  21154. if v != nil {
  21155. v[mk] = mv
  21156. }
  21157. }
  21158. dd.ReadMapEnd()
  21159. return v, changed
  21160. }
  21161. func (d *Decoder) fastpathDecMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  21162. if rv.Kind() == reflect.Ptr {
  21163. vp := rv2i(rv).(*map[float64]bool)
  21164. v, changed := fastpathTV.DecMapFloat64BoolV(*vp, true, d)
  21165. if changed {
  21166. *vp = v
  21167. }
  21168. } else {
  21169. fastpathTV.DecMapFloat64BoolV(rv2i(rv).(map[float64]bool), false, d)
  21170. }
  21171. }
  21172. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, d *Decoder) {
  21173. v, changed := f.DecMapFloat64BoolV(*vp, true, d)
  21174. if changed {
  21175. *vp = v
  21176. }
  21177. }
  21178. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, canChange bool,
  21179. d *Decoder) (_ map[float64]bool, changed bool) {
  21180. dd, esep := d.d, d.hh.hasElemSeparators()
  21181. containerLen := dd.ReadMapStart()
  21182. if canChange && v == nil {
  21183. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21184. v = make(map[float64]bool, xlen)
  21185. changed = true
  21186. }
  21187. if containerLen == 0 {
  21188. dd.ReadMapEnd()
  21189. return v, changed
  21190. }
  21191. var mk float64
  21192. var mv bool
  21193. hasLen := containerLen > 0
  21194. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21195. if esep {
  21196. dd.ReadMapElemKey()
  21197. }
  21198. mk = dd.DecodeFloat64()
  21199. if esep {
  21200. dd.ReadMapElemValue()
  21201. }
  21202. if dd.TryDecodeAsNil() {
  21203. if v == nil {
  21204. } else if d.h.DeleteOnNilMapValue {
  21205. delete(v, mk)
  21206. } else {
  21207. v[mk] = false
  21208. }
  21209. continue
  21210. }
  21211. mv = dd.DecodeBool()
  21212. if v != nil {
  21213. v[mk] = mv
  21214. }
  21215. }
  21216. dd.ReadMapEnd()
  21217. return v, changed
  21218. }
  21219. func (d *Decoder) fastpathDecMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  21220. if rv.Kind() == reflect.Ptr {
  21221. vp := rv2i(rv).(*map[uint]interface{})
  21222. v, changed := fastpathTV.DecMapUintIntfV(*vp, true, d)
  21223. if changed {
  21224. *vp = v
  21225. }
  21226. } else {
  21227. fastpathTV.DecMapUintIntfV(rv2i(rv).(map[uint]interface{}), false, d)
  21228. }
  21229. }
  21230. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, d *Decoder) {
  21231. v, changed := f.DecMapUintIntfV(*vp, true, d)
  21232. if changed {
  21233. *vp = v
  21234. }
  21235. }
  21236. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, canChange bool,
  21237. d *Decoder) (_ map[uint]interface{}, changed bool) {
  21238. dd, esep := d.d, d.hh.hasElemSeparators()
  21239. containerLen := dd.ReadMapStart()
  21240. if canChange && v == nil {
  21241. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21242. v = make(map[uint]interface{}, xlen)
  21243. changed = true
  21244. }
  21245. if containerLen == 0 {
  21246. dd.ReadMapEnd()
  21247. return v, changed
  21248. }
  21249. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  21250. var mk uint
  21251. var mv interface{}
  21252. hasLen := containerLen > 0
  21253. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21254. if esep {
  21255. dd.ReadMapElemKey()
  21256. }
  21257. mk = uint(dd.DecodeUint(uintBitsize))
  21258. if esep {
  21259. dd.ReadMapElemValue()
  21260. }
  21261. if dd.TryDecodeAsNil() {
  21262. if v == nil {
  21263. } else if d.h.DeleteOnNilMapValue {
  21264. delete(v, mk)
  21265. } else {
  21266. v[mk] = nil
  21267. }
  21268. continue
  21269. }
  21270. if mapGet {
  21271. mv = v[mk]
  21272. } else {
  21273. mv = nil
  21274. }
  21275. d.decode(&mv)
  21276. if v != nil {
  21277. v[mk] = mv
  21278. }
  21279. }
  21280. dd.ReadMapEnd()
  21281. return v, changed
  21282. }
  21283. func (d *Decoder) fastpathDecMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  21284. if rv.Kind() == reflect.Ptr {
  21285. vp := rv2i(rv).(*map[uint]string)
  21286. v, changed := fastpathTV.DecMapUintStringV(*vp, true, d)
  21287. if changed {
  21288. *vp = v
  21289. }
  21290. } else {
  21291. fastpathTV.DecMapUintStringV(rv2i(rv).(map[uint]string), false, d)
  21292. }
  21293. }
  21294. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, d *Decoder) {
  21295. v, changed := f.DecMapUintStringV(*vp, true, d)
  21296. if changed {
  21297. *vp = v
  21298. }
  21299. }
  21300. func (_ fastpathT) DecMapUintStringV(v map[uint]string, canChange bool,
  21301. d *Decoder) (_ map[uint]string, changed bool) {
  21302. dd, esep := d.d, d.hh.hasElemSeparators()
  21303. containerLen := dd.ReadMapStart()
  21304. if canChange && v == nil {
  21305. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21306. v = make(map[uint]string, xlen)
  21307. changed = true
  21308. }
  21309. if containerLen == 0 {
  21310. dd.ReadMapEnd()
  21311. return v, changed
  21312. }
  21313. var mk uint
  21314. var mv string
  21315. hasLen := containerLen > 0
  21316. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21317. if esep {
  21318. dd.ReadMapElemKey()
  21319. }
  21320. mk = uint(dd.DecodeUint(uintBitsize))
  21321. if esep {
  21322. dd.ReadMapElemValue()
  21323. }
  21324. if dd.TryDecodeAsNil() {
  21325. if v == nil {
  21326. } else if d.h.DeleteOnNilMapValue {
  21327. delete(v, mk)
  21328. } else {
  21329. v[mk] = ""
  21330. }
  21331. continue
  21332. }
  21333. mv = dd.DecodeString()
  21334. if v != nil {
  21335. v[mk] = mv
  21336. }
  21337. }
  21338. dd.ReadMapEnd()
  21339. return v, changed
  21340. }
  21341. func (d *Decoder) fastpathDecMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  21342. if rv.Kind() == reflect.Ptr {
  21343. vp := rv2i(rv).(*map[uint]uint)
  21344. v, changed := fastpathTV.DecMapUintUintV(*vp, true, d)
  21345. if changed {
  21346. *vp = v
  21347. }
  21348. } else {
  21349. fastpathTV.DecMapUintUintV(rv2i(rv).(map[uint]uint), false, d)
  21350. }
  21351. }
  21352. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, d *Decoder) {
  21353. v, changed := f.DecMapUintUintV(*vp, true, d)
  21354. if changed {
  21355. *vp = v
  21356. }
  21357. }
  21358. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, canChange bool,
  21359. d *Decoder) (_ map[uint]uint, changed bool) {
  21360. dd, esep := d.d, d.hh.hasElemSeparators()
  21361. containerLen := dd.ReadMapStart()
  21362. if canChange && v == nil {
  21363. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21364. v = make(map[uint]uint, xlen)
  21365. changed = true
  21366. }
  21367. if containerLen == 0 {
  21368. dd.ReadMapEnd()
  21369. return v, changed
  21370. }
  21371. var mk uint
  21372. var mv uint
  21373. hasLen := containerLen > 0
  21374. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21375. if esep {
  21376. dd.ReadMapElemKey()
  21377. }
  21378. mk = uint(dd.DecodeUint(uintBitsize))
  21379. if esep {
  21380. dd.ReadMapElemValue()
  21381. }
  21382. if dd.TryDecodeAsNil() {
  21383. if v == nil {
  21384. } else if d.h.DeleteOnNilMapValue {
  21385. delete(v, mk)
  21386. } else {
  21387. v[mk] = 0
  21388. }
  21389. continue
  21390. }
  21391. mv = uint(dd.DecodeUint(uintBitsize))
  21392. if v != nil {
  21393. v[mk] = mv
  21394. }
  21395. }
  21396. dd.ReadMapEnd()
  21397. return v, changed
  21398. }
  21399. func (d *Decoder) fastpathDecMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  21400. if rv.Kind() == reflect.Ptr {
  21401. vp := rv2i(rv).(*map[uint]uint8)
  21402. v, changed := fastpathTV.DecMapUintUint8V(*vp, true, d)
  21403. if changed {
  21404. *vp = v
  21405. }
  21406. } else {
  21407. fastpathTV.DecMapUintUint8V(rv2i(rv).(map[uint]uint8), false, d)
  21408. }
  21409. }
  21410. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, d *Decoder) {
  21411. v, changed := f.DecMapUintUint8V(*vp, true, d)
  21412. if changed {
  21413. *vp = v
  21414. }
  21415. }
  21416. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, canChange bool,
  21417. d *Decoder) (_ map[uint]uint8, changed bool) {
  21418. dd, esep := d.d, d.hh.hasElemSeparators()
  21419. containerLen := dd.ReadMapStart()
  21420. if canChange && v == nil {
  21421. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21422. v = make(map[uint]uint8, xlen)
  21423. changed = true
  21424. }
  21425. if containerLen == 0 {
  21426. dd.ReadMapEnd()
  21427. return v, changed
  21428. }
  21429. var mk uint
  21430. var mv uint8
  21431. hasLen := containerLen > 0
  21432. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21433. if esep {
  21434. dd.ReadMapElemKey()
  21435. }
  21436. mk = uint(dd.DecodeUint(uintBitsize))
  21437. if esep {
  21438. dd.ReadMapElemValue()
  21439. }
  21440. if dd.TryDecodeAsNil() {
  21441. if v == nil {
  21442. } else if d.h.DeleteOnNilMapValue {
  21443. delete(v, mk)
  21444. } else {
  21445. v[mk] = 0
  21446. }
  21447. continue
  21448. }
  21449. mv = uint8(dd.DecodeUint(8))
  21450. if v != nil {
  21451. v[mk] = mv
  21452. }
  21453. }
  21454. dd.ReadMapEnd()
  21455. return v, changed
  21456. }
  21457. func (d *Decoder) fastpathDecMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  21458. if rv.Kind() == reflect.Ptr {
  21459. vp := rv2i(rv).(*map[uint]uint16)
  21460. v, changed := fastpathTV.DecMapUintUint16V(*vp, true, d)
  21461. if changed {
  21462. *vp = v
  21463. }
  21464. } else {
  21465. fastpathTV.DecMapUintUint16V(rv2i(rv).(map[uint]uint16), false, d)
  21466. }
  21467. }
  21468. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, d *Decoder) {
  21469. v, changed := f.DecMapUintUint16V(*vp, true, d)
  21470. if changed {
  21471. *vp = v
  21472. }
  21473. }
  21474. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, canChange bool,
  21475. d *Decoder) (_ map[uint]uint16, changed bool) {
  21476. dd, esep := d.d, d.hh.hasElemSeparators()
  21477. containerLen := dd.ReadMapStart()
  21478. if canChange && v == nil {
  21479. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  21480. v = make(map[uint]uint16, xlen)
  21481. changed = true
  21482. }
  21483. if containerLen == 0 {
  21484. dd.ReadMapEnd()
  21485. return v, changed
  21486. }
  21487. var mk uint
  21488. var mv uint16
  21489. hasLen := containerLen > 0
  21490. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21491. if esep {
  21492. dd.ReadMapElemKey()
  21493. }
  21494. mk = uint(dd.DecodeUint(uintBitsize))
  21495. if esep {
  21496. dd.ReadMapElemValue()
  21497. }
  21498. if dd.TryDecodeAsNil() {
  21499. if v == nil {
  21500. } else if d.h.DeleteOnNilMapValue {
  21501. delete(v, mk)
  21502. } else {
  21503. v[mk] = 0
  21504. }
  21505. continue
  21506. }
  21507. mv = uint16(dd.DecodeUint(16))
  21508. if v != nil {
  21509. v[mk] = mv
  21510. }
  21511. }
  21512. dd.ReadMapEnd()
  21513. return v, changed
  21514. }
  21515. func (d *Decoder) fastpathDecMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  21516. if rv.Kind() == reflect.Ptr {
  21517. vp := rv2i(rv).(*map[uint]uint32)
  21518. v, changed := fastpathTV.DecMapUintUint32V(*vp, true, d)
  21519. if changed {
  21520. *vp = v
  21521. }
  21522. } else {
  21523. fastpathTV.DecMapUintUint32V(rv2i(rv).(map[uint]uint32), false, d)
  21524. }
  21525. }
  21526. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, d *Decoder) {
  21527. v, changed := f.DecMapUintUint32V(*vp, true, d)
  21528. if changed {
  21529. *vp = v
  21530. }
  21531. }
  21532. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, canChange bool,
  21533. d *Decoder) (_ map[uint]uint32, changed bool) {
  21534. dd, esep := d.d, d.hh.hasElemSeparators()
  21535. containerLen := dd.ReadMapStart()
  21536. if canChange && v == nil {
  21537. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21538. v = make(map[uint]uint32, xlen)
  21539. changed = true
  21540. }
  21541. if containerLen == 0 {
  21542. dd.ReadMapEnd()
  21543. return v, changed
  21544. }
  21545. var mk uint
  21546. var mv uint32
  21547. hasLen := containerLen > 0
  21548. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21549. if esep {
  21550. dd.ReadMapElemKey()
  21551. }
  21552. mk = uint(dd.DecodeUint(uintBitsize))
  21553. if esep {
  21554. dd.ReadMapElemValue()
  21555. }
  21556. if dd.TryDecodeAsNil() {
  21557. if v == nil {
  21558. } else if d.h.DeleteOnNilMapValue {
  21559. delete(v, mk)
  21560. } else {
  21561. v[mk] = 0
  21562. }
  21563. continue
  21564. }
  21565. mv = uint32(dd.DecodeUint(32))
  21566. if v != nil {
  21567. v[mk] = mv
  21568. }
  21569. }
  21570. dd.ReadMapEnd()
  21571. return v, changed
  21572. }
  21573. func (d *Decoder) fastpathDecMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  21574. if rv.Kind() == reflect.Ptr {
  21575. vp := rv2i(rv).(*map[uint]uint64)
  21576. v, changed := fastpathTV.DecMapUintUint64V(*vp, true, d)
  21577. if changed {
  21578. *vp = v
  21579. }
  21580. } else {
  21581. fastpathTV.DecMapUintUint64V(rv2i(rv).(map[uint]uint64), false, d)
  21582. }
  21583. }
  21584. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, d *Decoder) {
  21585. v, changed := f.DecMapUintUint64V(*vp, true, d)
  21586. if changed {
  21587. *vp = v
  21588. }
  21589. }
  21590. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, canChange bool,
  21591. d *Decoder) (_ map[uint]uint64, changed bool) {
  21592. dd, esep := d.d, d.hh.hasElemSeparators()
  21593. containerLen := dd.ReadMapStart()
  21594. if canChange && v == nil {
  21595. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21596. v = make(map[uint]uint64, xlen)
  21597. changed = true
  21598. }
  21599. if containerLen == 0 {
  21600. dd.ReadMapEnd()
  21601. return v, changed
  21602. }
  21603. var mk uint
  21604. var mv uint64
  21605. hasLen := containerLen > 0
  21606. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21607. if esep {
  21608. dd.ReadMapElemKey()
  21609. }
  21610. mk = uint(dd.DecodeUint(uintBitsize))
  21611. if esep {
  21612. dd.ReadMapElemValue()
  21613. }
  21614. if dd.TryDecodeAsNil() {
  21615. if v == nil {
  21616. } else if d.h.DeleteOnNilMapValue {
  21617. delete(v, mk)
  21618. } else {
  21619. v[mk] = 0
  21620. }
  21621. continue
  21622. }
  21623. mv = dd.DecodeUint(64)
  21624. if v != nil {
  21625. v[mk] = mv
  21626. }
  21627. }
  21628. dd.ReadMapEnd()
  21629. return v, changed
  21630. }
  21631. func (d *Decoder) fastpathDecMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  21632. if rv.Kind() == reflect.Ptr {
  21633. vp := rv2i(rv).(*map[uint]uintptr)
  21634. v, changed := fastpathTV.DecMapUintUintptrV(*vp, true, d)
  21635. if changed {
  21636. *vp = v
  21637. }
  21638. } else {
  21639. fastpathTV.DecMapUintUintptrV(rv2i(rv).(map[uint]uintptr), false, d)
  21640. }
  21641. }
  21642. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, d *Decoder) {
  21643. v, changed := f.DecMapUintUintptrV(*vp, true, d)
  21644. if changed {
  21645. *vp = v
  21646. }
  21647. }
  21648. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, canChange bool,
  21649. d *Decoder) (_ map[uint]uintptr, changed bool) {
  21650. dd, esep := d.d, d.hh.hasElemSeparators()
  21651. containerLen := dd.ReadMapStart()
  21652. if canChange && v == nil {
  21653. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21654. v = make(map[uint]uintptr, xlen)
  21655. changed = true
  21656. }
  21657. if containerLen == 0 {
  21658. dd.ReadMapEnd()
  21659. return v, changed
  21660. }
  21661. var mk uint
  21662. var mv uintptr
  21663. hasLen := containerLen > 0
  21664. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21665. if esep {
  21666. dd.ReadMapElemKey()
  21667. }
  21668. mk = uint(dd.DecodeUint(uintBitsize))
  21669. if esep {
  21670. dd.ReadMapElemValue()
  21671. }
  21672. if dd.TryDecodeAsNil() {
  21673. if v == nil {
  21674. } else if d.h.DeleteOnNilMapValue {
  21675. delete(v, mk)
  21676. } else {
  21677. v[mk] = 0
  21678. }
  21679. continue
  21680. }
  21681. mv = uintptr(dd.DecodeUint(uintBitsize))
  21682. if v != nil {
  21683. v[mk] = mv
  21684. }
  21685. }
  21686. dd.ReadMapEnd()
  21687. return v, changed
  21688. }
  21689. func (d *Decoder) fastpathDecMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  21690. if rv.Kind() == reflect.Ptr {
  21691. vp := rv2i(rv).(*map[uint]int)
  21692. v, changed := fastpathTV.DecMapUintIntV(*vp, true, d)
  21693. if changed {
  21694. *vp = v
  21695. }
  21696. } else {
  21697. fastpathTV.DecMapUintIntV(rv2i(rv).(map[uint]int), false, d)
  21698. }
  21699. }
  21700. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, d *Decoder) {
  21701. v, changed := f.DecMapUintIntV(*vp, true, d)
  21702. if changed {
  21703. *vp = v
  21704. }
  21705. }
  21706. func (_ fastpathT) DecMapUintIntV(v map[uint]int, canChange bool,
  21707. d *Decoder) (_ map[uint]int, changed bool) {
  21708. dd, esep := d.d, d.hh.hasElemSeparators()
  21709. containerLen := dd.ReadMapStart()
  21710. if canChange && v == nil {
  21711. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21712. v = make(map[uint]int, xlen)
  21713. changed = true
  21714. }
  21715. if containerLen == 0 {
  21716. dd.ReadMapEnd()
  21717. return v, changed
  21718. }
  21719. var mk uint
  21720. var mv int
  21721. hasLen := containerLen > 0
  21722. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21723. if esep {
  21724. dd.ReadMapElemKey()
  21725. }
  21726. mk = uint(dd.DecodeUint(uintBitsize))
  21727. if esep {
  21728. dd.ReadMapElemValue()
  21729. }
  21730. if dd.TryDecodeAsNil() {
  21731. if v == nil {
  21732. } else if d.h.DeleteOnNilMapValue {
  21733. delete(v, mk)
  21734. } else {
  21735. v[mk] = 0
  21736. }
  21737. continue
  21738. }
  21739. mv = int(dd.DecodeInt(intBitsize))
  21740. if v != nil {
  21741. v[mk] = mv
  21742. }
  21743. }
  21744. dd.ReadMapEnd()
  21745. return v, changed
  21746. }
  21747. func (d *Decoder) fastpathDecMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  21748. if rv.Kind() == reflect.Ptr {
  21749. vp := rv2i(rv).(*map[uint]int8)
  21750. v, changed := fastpathTV.DecMapUintInt8V(*vp, true, d)
  21751. if changed {
  21752. *vp = v
  21753. }
  21754. } else {
  21755. fastpathTV.DecMapUintInt8V(rv2i(rv).(map[uint]int8), false, d)
  21756. }
  21757. }
  21758. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, d *Decoder) {
  21759. v, changed := f.DecMapUintInt8V(*vp, true, d)
  21760. if changed {
  21761. *vp = v
  21762. }
  21763. }
  21764. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, canChange bool,
  21765. d *Decoder) (_ map[uint]int8, changed bool) {
  21766. dd, esep := d.d, d.hh.hasElemSeparators()
  21767. containerLen := dd.ReadMapStart()
  21768. if canChange && v == nil {
  21769. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21770. v = make(map[uint]int8, xlen)
  21771. changed = true
  21772. }
  21773. if containerLen == 0 {
  21774. dd.ReadMapEnd()
  21775. return v, changed
  21776. }
  21777. var mk uint
  21778. var mv int8
  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(dd.DecodeUint(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 = int8(dd.DecodeInt(8))
  21798. if v != nil {
  21799. v[mk] = mv
  21800. }
  21801. }
  21802. dd.ReadMapEnd()
  21803. return v, changed
  21804. }
  21805. func (d *Decoder) fastpathDecMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  21806. if rv.Kind() == reflect.Ptr {
  21807. vp := rv2i(rv).(*map[uint]int16)
  21808. v, changed := fastpathTV.DecMapUintInt16V(*vp, true, d)
  21809. if changed {
  21810. *vp = v
  21811. }
  21812. } else {
  21813. fastpathTV.DecMapUintInt16V(rv2i(rv).(map[uint]int16), false, d)
  21814. }
  21815. }
  21816. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, d *Decoder) {
  21817. v, changed := f.DecMapUintInt16V(*vp, true, d)
  21818. if changed {
  21819. *vp = v
  21820. }
  21821. }
  21822. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, canChange bool,
  21823. d *Decoder) (_ map[uint]int16, changed bool) {
  21824. dd, esep := d.d, d.hh.hasElemSeparators()
  21825. containerLen := dd.ReadMapStart()
  21826. if canChange && v == nil {
  21827. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  21828. v = make(map[uint]int16, xlen)
  21829. changed = true
  21830. }
  21831. if containerLen == 0 {
  21832. dd.ReadMapEnd()
  21833. return v, changed
  21834. }
  21835. var mk uint
  21836. var mv int16
  21837. hasLen := containerLen > 0
  21838. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21839. if esep {
  21840. dd.ReadMapElemKey()
  21841. }
  21842. mk = uint(dd.DecodeUint(uintBitsize))
  21843. if esep {
  21844. dd.ReadMapElemValue()
  21845. }
  21846. if dd.TryDecodeAsNil() {
  21847. if v == nil {
  21848. } else if d.h.DeleteOnNilMapValue {
  21849. delete(v, mk)
  21850. } else {
  21851. v[mk] = 0
  21852. }
  21853. continue
  21854. }
  21855. mv = int16(dd.DecodeInt(16))
  21856. if v != nil {
  21857. v[mk] = mv
  21858. }
  21859. }
  21860. dd.ReadMapEnd()
  21861. return v, changed
  21862. }
  21863. func (d *Decoder) fastpathDecMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  21864. if rv.Kind() == reflect.Ptr {
  21865. vp := rv2i(rv).(*map[uint]int32)
  21866. v, changed := fastpathTV.DecMapUintInt32V(*vp, true, d)
  21867. if changed {
  21868. *vp = v
  21869. }
  21870. } else {
  21871. fastpathTV.DecMapUintInt32V(rv2i(rv).(map[uint]int32), false, d)
  21872. }
  21873. }
  21874. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, d *Decoder) {
  21875. v, changed := f.DecMapUintInt32V(*vp, true, d)
  21876. if changed {
  21877. *vp = v
  21878. }
  21879. }
  21880. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, canChange bool,
  21881. d *Decoder) (_ map[uint]int32, changed bool) {
  21882. dd, esep := d.d, d.hh.hasElemSeparators()
  21883. containerLen := dd.ReadMapStart()
  21884. if canChange && v == nil {
  21885. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21886. v = make(map[uint]int32, xlen)
  21887. changed = true
  21888. }
  21889. if containerLen == 0 {
  21890. dd.ReadMapEnd()
  21891. return v, changed
  21892. }
  21893. var mk uint
  21894. var mv int32
  21895. hasLen := containerLen > 0
  21896. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21897. if esep {
  21898. dd.ReadMapElemKey()
  21899. }
  21900. mk = uint(dd.DecodeUint(uintBitsize))
  21901. if esep {
  21902. dd.ReadMapElemValue()
  21903. }
  21904. if dd.TryDecodeAsNil() {
  21905. if v == nil {
  21906. } else if d.h.DeleteOnNilMapValue {
  21907. delete(v, mk)
  21908. } else {
  21909. v[mk] = 0
  21910. }
  21911. continue
  21912. }
  21913. mv = int32(dd.DecodeInt(32))
  21914. if v != nil {
  21915. v[mk] = mv
  21916. }
  21917. }
  21918. dd.ReadMapEnd()
  21919. return v, changed
  21920. }
  21921. func (d *Decoder) fastpathDecMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  21922. if rv.Kind() == reflect.Ptr {
  21923. vp := rv2i(rv).(*map[uint]int64)
  21924. v, changed := fastpathTV.DecMapUintInt64V(*vp, true, d)
  21925. if changed {
  21926. *vp = v
  21927. }
  21928. } else {
  21929. fastpathTV.DecMapUintInt64V(rv2i(rv).(map[uint]int64), false, d)
  21930. }
  21931. }
  21932. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, d *Decoder) {
  21933. v, changed := f.DecMapUintInt64V(*vp, true, d)
  21934. if changed {
  21935. *vp = v
  21936. }
  21937. }
  21938. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, canChange bool,
  21939. d *Decoder) (_ map[uint]int64, changed bool) {
  21940. dd, esep := d.d, d.hh.hasElemSeparators()
  21941. containerLen := dd.ReadMapStart()
  21942. if canChange && v == nil {
  21943. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21944. v = make(map[uint]int64, xlen)
  21945. changed = true
  21946. }
  21947. if containerLen == 0 {
  21948. dd.ReadMapEnd()
  21949. return v, changed
  21950. }
  21951. var mk uint
  21952. var mv int64
  21953. hasLen := containerLen > 0
  21954. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21955. if esep {
  21956. dd.ReadMapElemKey()
  21957. }
  21958. mk = uint(dd.DecodeUint(uintBitsize))
  21959. if esep {
  21960. dd.ReadMapElemValue()
  21961. }
  21962. if dd.TryDecodeAsNil() {
  21963. if v == nil {
  21964. } else if d.h.DeleteOnNilMapValue {
  21965. delete(v, mk)
  21966. } else {
  21967. v[mk] = 0
  21968. }
  21969. continue
  21970. }
  21971. mv = dd.DecodeInt(64)
  21972. if v != nil {
  21973. v[mk] = mv
  21974. }
  21975. }
  21976. dd.ReadMapEnd()
  21977. return v, changed
  21978. }
  21979. func (d *Decoder) fastpathDecMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  21980. if rv.Kind() == reflect.Ptr {
  21981. vp := rv2i(rv).(*map[uint]float32)
  21982. v, changed := fastpathTV.DecMapUintFloat32V(*vp, true, d)
  21983. if changed {
  21984. *vp = v
  21985. }
  21986. } else {
  21987. fastpathTV.DecMapUintFloat32V(rv2i(rv).(map[uint]float32), false, d)
  21988. }
  21989. }
  21990. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, d *Decoder) {
  21991. v, changed := f.DecMapUintFloat32V(*vp, true, d)
  21992. if changed {
  21993. *vp = v
  21994. }
  21995. }
  21996. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, canChange bool,
  21997. d *Decoder) (_ map[uint]float32, changed bool) {
  21998. dd, esep := d.d, d.hh.hasElemSeparators()
  21999. containerLen := dd.ReadMapStart()
  22000. if canChange && v == nil {
  22001. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22002. v = make(map[uint]float32, xlen)
  22003. changed = true
  22004. }
  22005. if containerLen == 0 {
  22006. dd.ReadMapEnd()
  22007. return v, changed
  22008. }
  22009. var mk uint
  22010. var mv float32
  22011. hasLen := containerLen > 0
  22012. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22013. if esep {
  22014. dd.ReadMapElemKey()
  22015. }
  22016. mk = uint(dd.DecodeUint(uintBitsize))
  22017. if esep {
  22018. dd.ReadMapElemValue()
  22019. }
  22020. if dd.TryDecodeAsNil() {
  22021. if v == nil {
  22022. } else if d.h.DeleteOnNilMapValue {
  22023. delete(v, mk)
  22024. } else {
  22025. v[mk] = 0
  22026. }
  22027. continue
  22028. }
  22029. mv = float32(chkFloat32(dd.DecodeFloat64()))
  22030. if v != nil {
  22031. v[mk] = mv
  22032. }
  22033. }
  22034. dd.ReadMapEnd()
  22035. return v, changed
  22036. }
  22037. func (d *Decoder) fastpathDecMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  22038. if rv.Kind() == reflect.Ptr {
  22039. vp := rv2i(rv).(*map[uint]float64)
  22040. v, changed := fastpathTV.DecMapUintFloat64V(*vp, true, d)
  22041. if changed {
  22042. *vp = v
  22043. }
  22044. } else {
  22045. fastpathTV.DecMapUintFloat64V(rv2i(rv).(map[uint]float64), false, d)
  22046. }
  22047. }
  22048. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, d *Decoder) {
  22049. v, changed := f.DecMapUintFloat64V(*vp, true, d)
  22050. if changed {
  22051. *vp = v
  22052. }
  22053. }
  22054. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, canChange bool,
  22055. d *Decoder) (_ map[uint]float64, changed bool) {
  22056. dd, esep := d.d, d.hh.hasElemSeparators()
  22057. containerLen := dd.ReadMapStart()
  22058. if canChange && v == nil {
  22059. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22060. v = make(map[uint]float64, xlen)
  22061. changed = true
  22062. }
  22063. if containerLen == 0 {
  22064. dd.ReadMapEnd()
  22065. return v, changed
  22066. }
  22067. var mk uint
  22068. var mv float64
  22069. hasLen := containerLen > 0
  22070. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22071. if esep {
  22072. dd.ReadMapElemKey()
  22073. }
  22074. mk = uint(dd.DecodeUint(uintBitsize))
  22075. if esep {
  22076. dd.ReadMapElemValue()
  22077. }
  22078. if dd.TryDecodeAsNil() {
  22079. if v == nil {
  22080. } else if d.h.DeleteOnNilMapValue {
  22081. delete(v, mk)
  22082. } else {
  22083. v[mk] = 0
  22084. }
  22085. continue
  22086. }
  22087. mv = dd.DecodeFloat64()
  22088. if v != nil {
  22089. v[mk] = mv
  22090. }
  22091. }
  22092. dd.ReadMapEnd()
  22093. return v, changed
  22094. }
  22095. func (d *Decoder) fastpathDecMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  22096. if rv.Kind() == reflect.Ptr {
  22097. vp := rv2i(rv).(*map[uint]bool)
  22098. v, changed := fastpathTV.DecMapUintBoolV(*vp, true, d)
  22099. if changed {
  22100. *vp = v
  22101. }
  22102. } else {
  22103. fastpathTV.DecMapUintBoolV(rv2i(rv).(map[uint]bool), false, d)
  22104. }
  22105. }
  22106. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, d *Decoder) {
  22107. v, changed := f.DecMapUintBoolV(*vp, true, d)
  22108. if changed {
  22109. *vp = v
  22110. }
  22111. }
  22112. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, canChange bool,
  22113. d *Decoder) (_ map[uint]bool, changed bool) {
  22114. dd, esep := d.d, d.hh.hasElemSeparators()
  22115. containerLen := dd.ReadMapStart()
  22116. if canChange && v == nil {
  22117. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22118. v = make(map[uint]bool, xlen)
  22119. changed = true
  22120. }
  22121. if containerLen == 0 {
  22122. dd.ReadMapEnd()
  22123. return v, changed
  22124. }
  22125. var mk uint
  22126. var mv bool
  22127. hasLen := containerLen > 0
  22128. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22129. if esep {
  22130. dd.ReadMapElemKey()
  22131. }
  22132. mk = uint(dd.DecodeUint(uintBitsize))
  22133. if esep {
  22134. dd.ReadMapElemValue()
  22135. }
  22136. if dd.TryDecodeAsNil() {
  22137. if v == nil {
  22138. } else if d.h.DeleteOnNilMapValue {
  22139. delete(v, mk)
  22140. } else {
  22141. v[mk] = false
  22142. }
  22143. continue
  22144. }
  22145. mv = dd.DecodeBool()
  22146. if v != nil {
  22147. v[mk] = mv
  22148. }
  22149. }
  22150. dd.ReadMapEnd()
  22151. return v, changed
  22152. }
  22153. func (d *Decoder) fastpathDecMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  22154. if rv.Kind() == reflect.Ptr {
  22155. vp := rv2i(rv).(*map[uint8]interface{})
  22156. v, changed := fastpathTV.DecMapUint8IntfV(*vp, true, d)
  22157. if changed {
  22158. *vp = v
  22159. }
  22160. } else {
  22161. fastpathTV.DecMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), false, d)
  22162. }
  22163. }
  22164. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, d *Decoder) {
  22165. v, changed := f.DecMapUint8IntfV(*vp, true, d)
  22166. if changed {
  22167. *vp = v
  22168. }
  22169. }
  22170. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, canChange bool,
  22171. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  22172. dd, esep := d.d, d.hh.hasElemSeparators()
  22173. containerLen := dd.ReadMapStart()
  22174. if canChange && v == nil {
  22175. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  22176. v = make(map[uint8]interface{}, xlen)
  22177. changed = true
  22178. }
  22179. if containerLen == 0 {
  22180. dd.ReadMapEnd()
  22181. return v, changed
  22182. }
  22183. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  22184. var mk uint8
  22185. var mv interface{}
  22186. hasLen := containerLen > 0
  22187. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22188. if esep {
  22189. dd.ReadMapElemKey()
  22190. }
  22191. mk = uint8(dd.DecodeUint(8))
  22192. if esep {
  22193. dd.ReadMapElemValue()
  22194. }
  22195. if dd.TryDecodeAsNil() {
  22196. if v == nil {
  22197. } else if d.h.DeleteOnNilMapValue {
  22198. delete(v, mk)
  22199. } else {
  22200. v[mk] = nil
  22201. }
  22202. continue
  22203. }
  22204. if mapGet {
  22205. mv = v[mk]
  22206. } else {
  22207. mv = nil
  22208. }
  22209. d.decode(&mv)
  22210. if v != nil {
  22211. v[mk] = mv
  22212. }
  22213. }
  22214. dd.ReadMapEnd()
  22215. return v, changed
  22216. }
  22217. func (d *Decoder) fastpathDecMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  22218. if rv.Kind() == reflect.Ptr {
  22219. vp := rv2i(rv).(*map[uint8]string)
  22220. v, changed := fastpathTV.DecMapUint8StringV(*vp, true, d)
  22221. if changed {
  22222. *vp = v
  22223. }
  22224. } else {
  22225. fastpathTV.DecMapUint8StringV(rv2i(rv).(map[uint8]string), false, d)
  22226. }
  22227. }
  22228. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, d *Decoder) {
  22229. v, changed := f.DecMapUint8StringV(*vp, true, d)
  22230. if changed {
  22231. *vp = v
  22232. }
  22233. }
  22234. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, canChange bool,
  22235. d *Decoder) (_ map[uint8]string, changed bool) {
  22236. dd, esep := d.d, d.hh.hasElemSeparators()
  22237. containerLen := dd.ReadMapStart()
  22238. if canChange && v == nil {
  22239. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  22240. v = make(map[uint8]string, xlen)
  22241. changed = true
  22242. }
  22243. if containerLen == 0 {
  22244. dd.ReadMapEnd()
  22245. return v, changed
  22246. }
  22247. var mk uint8
  22248. var mv string
  22249. hasLen := containerLen > 0
  22250. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22251. if esep {
  22252. dd.ReadMapElemKey()
  22253. }
  22254. mk = uint8(dd.DecodeUint(8))
  22255. if esep {
  22256. dd.ReadMapElemValue()
  22257. }
  22258. if dd.TryDecodeAsNil() {
  22259. if v == nil {
  22260. } else if d.h.DeleteOnNilMapValue {
  22261. delete(v, mk)
  22262. } else {
  22263. v[mk] = ""
  22264. }
  22265. continue
  22266. }
  22267. mv = dd.DecodeString()
  22268. if v != nil {
  22269. v[mk] = mv
  22270. }
  22271. }
  22272. dd.ReadMapEnd()
  22273. return v, changed
  22274. }
  22275. func (d *Decoder) fastpathDecMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  22276. if rv.Kind() == reflect.Ptr {
  22277. vp := rv2i(rv).(*map[uint8]uint)
  22278. v, changed := fastpathTV.DecMapUint8UintV(*vp, true, d)
  22279. if changed {
  22280. *vp = v
  22281. }
  22282. } else {
  22283. fastpathTV.DecMapUint8UintV(rv2i(rv).(map[uint8]uint), false, d)
  22284. }
  22285. }
  22286. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, d *Decoder) {
  22287. v, changed := f.DecMapUint8UintV(*vp, true, d)
  22288. if changed {
  22289. *vp = v
  22290. }
  22291. }
  22292. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, canChange bool,
  22293. d *Decoder) (_ map[uint8]uint, changed bool) {
  22294. dd, esep := d.d, d.hh.hasElemSeparators()
  22295. containerLen := dd.ReadMapStart()
  22296. if canChange && v == nil {
  22297. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22298. v = make(map[uint8]uint, xlen)
  22299. changed = true
  22300. }
  22301. if containerLen == 0 {
  22302. dd.ReadMapEnd()
  22303. return v, changed
  22304. }
  22305. var mk uint8
  22306. var mv uint
  22307. hasLen := containerLen > 0
  22308. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22309. if esep {
  22310. dd.ReadMapElemKey()
  22311. }
  22312. mk = uint8(dd.DecodeUint(8))
  22313. if esep {
  22314. dd.ReadMapElemValue()
  22315. }
  22316. if dd.TryDecodeAsNil() {
  22317. if v == nil {
  22318. } else if d.h.DeleteOnNilMapValue {
  22319. delete(v, mk)
  22320. } else {
  22321. v[mk] = 0
  22322. }
  22323. continue
  22324. }
  22325. mv = uint(dd.DecodeUint(uintBitsize))
  22326. if v != nil {
  22327. v[mk] = mv
  22328. }
  22329. }
  22330. dd.ReadMapEnd()
  22331. return v, changed
  22332. }
  22333. func (d *Decoder) fastpathDecMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  22334. if rv.Kind() == reflect.Ptr {
  22335. vp := rv2i(rv).(*map[uint8]uint8)
  22336. v, changed := fastpathTV.DecMapUint8Uint8V(*vp, true, d)
  22337. if changed {
  22338. *vp = v
  22339. }
  22340. } else {
  22341. fastpathTV.DecMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), false, d)
  22342. }
  22343. }
  22344. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, d *Decoder) {
  22345. v, changed := f.DecMapUint8Uint8V(*vp, true, d)
  22346. if changed {
  22347. *vp = v
  22348. }
  22349. }
  22350. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, canChange bool,
  22351. d *Decoder) (_ map[uint8]uint8, changed bool) {
  22352. dd, esep := d.d, d.hh.hasElemSeparators()
  22353. containerLen := dd.ReadMapStart()
  22354. if canChange && v == nil {
  22355. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  22356. v = make(map[uint8]uint8, xlen)
  22357. changed = true
  22358. }
  22359. if containerLen == 0 {
  22360. dd.ReadMapEnd()
  22361. return v, changed
  22362. }
  22363. var mk uint8
  22364. var mv uint8
  22365. hasLen := containerLen > 0
  22366. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22367. if esep {
  22368. dd.ReadMapElemKey()
  22369. }
  22370. mk = uint8(dd.DecodeUint(8))
  22371. if esep {
  22372. dd.ReadMapElemValue()
  22373. }
  22374. if dd.TryDecodeAsNil() {
  22375. if v == nil {
  22376. } else if d.h.DeleteOnNilMapValue {
  22377. delete(v, mk)
  22378. } else {
  22379. v[mk] = 0
  22380. }
  22381. continue
  22382. }
  22383. mv = uint8(dd.DecodeUint(8))
  22384. if v != nil {
  22385. v[mk] = mv
  22386. }
  22387. }
  22388. dd.ReadMapEnd()
  22389. return v, changed
  22390. }
  22391. func (d *Decoder) fastpathDecMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  22392. if rv.Kind() == reflect.Ptr {
  22393. vp := rv2i(rv).(*map[uint8]uint16)
  22394. v, changed := fastpathTV.DecMapUint8Uint16V(*vp, true, d)
  22395. if changed {
  22396. *vp = v
  22397. }
  22398. } else {
  22399. fastpathTV.DecMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), false, d)
  22400. }
  22401. }
  22402. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, d *Decoder) {
  22403. v, changed := f.DecMapUint8Uint16V(*vp, true, d)
  22404. if changed {
  22405. *vp = v
  22406. }
  22407. }
  22408. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, canChange bool,
  22409. d *Decoder) (_ map[uint8]uint16, changed bool) {
  22410. dd, esep := d.d, d.hh.hasElemSeparators()
  22411. containerLen := dd.ReadMapStart()
  22412. if canChange && v == nil {
  22413. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  22414. v = make(map[uint8]uint16, xlen)
  22415. changed = true
  22416. }
  22417. if containerLen == 0 {
  22418. dd.ReadMapEnd()
  22419. return v, changed
  22420. }
  22421. var mk uint8
  22422. var mv uint16
  22423. hasLen := containerLen > 0
  22424. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22425. if esep {
  22426. dd.ReadMapElemKey()
  22427. }
  22428. mk = uint8(dd.DecodeUint(8))
  22429. if esep {
  22430. dd.ReadMapElemValue()
  22431. }
  22432. if dd.TryDecodeAsNil() {
  22433. if v == nil {
  22434. } else if d.h.DeleteOnNilMapValue {
  22435. delete(v, mk)
  22436. } else {
  22437. v[mk] = 0
  22438. }
  22439. continue
  22440. }
  22441. mv = uint16(dd.DecodeUint(16))
  22442. if v != nil {
  22443. v[mk] = mv
  22444. }
  22445. }
  22446. dd.ReadMapEnd()
  22447. return v, changed
  22448. }
  22449. func (d *Decoder) fastpathDecMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  22450. if rv.Kind() == reflect.Ptr {
  22451. vp := rv2i(rv).(*map[uint8]uint32)
  22452. v, changed := fastpathTV.DecMapUint8Uint32V(*vp, true, d)
  22453. if changed {
  22454. *vp = v
  22455. }
  22456. } else {
  22457. fastpathTV.DecMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), false, d)
  22458. }
  22459. }
  22460. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, d *Decoder) {
  22461. v, changed := f.DecMapUint8Uint32V(*vp, true, d)
  22462. if changed {
  22463. *vp = v
  22464. }
  22465. }
  22466. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, canChange bool,
  22467. d *Decoder) (_ map[uint8]uint32, changed bool) {
  22468. dd, esep := d.d, d.hh.hasElemSeparators()
  22469. containerLen := dd.ReadMapStart()
  22470. if canChange && v == nil {
  22471. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  22472. v = make(map[uint8]uint32, xlen)
  22473. changed = true
  22474. }
  22475. if containerLen == 0 {
  22476. dd.ReadMapEnd()
  22477. return v, changed
  22478. }
  22479. var mk uint8
  22480. var mv uint32
  22481. hasLen := containerLen > 0
  22482. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22483. if esep {
  22484. dd.ReadMapElemKey()
  22485. }
  22486. mk = uint8(dd.DecodeUint(8))
  22487. if esep {
  22488. dd.ReadMapElemValue()
  22489. }
  22490. if dd.TryDecodeAsNil() {
  22491. if v == nil {
  22492. } else if d.h.DeleteOnNilMapValue {
  22493. delete(v, mk)
  22494. } else {
  22495. v[mk] = 0
  22496. }
  22497. continue
  22498. }
  22499. mv = uint32(dd.DecodeUint(32))
  22500. if v != nil {
  22501. v[mk] = mv
  22502. }
  22503. }
  22504. dd.ReadMapEnd()
  22505. return v, changed
  22506. }
  22507. func (d *Decoder) fastpathDecMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  22508. if rv.Kind() == reflect.Ptr {
  22509. vp := rv2i(rv).(*map[uint8]uint64)
  22510. v, changed := fastpathTV.DecMapUint8Uint64V(*vp, true, d)
  22511. if changed {
  22512. *vp = v
  22513. }
  22514. } else {
  22515. fastpathTV.DecMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), false, d)
  22516. }
  22517. }
  22518. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, d *Decoder) {
  22519. v, changed := f.DecMapUint8Uint64V(*vp, true, d)
  22520. if changed {
  22521. *vp = v
  22522. }
  22523. }
  22524. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, canChange bool,
  22525. d *Decoder) (_ map[uint8]uint64, changed bool) {
  22526. dd, esep := d.d, d.hh.hasElemSeparators()
  22527. containerLen := dd.ReadMapStart()
  22528. if canChange && v == nil {
  22529. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22530. v = make(map[uint8]uint64, xlen)
  22531. changed = true
  22532. }
  22533. if containerLen == 0 {
  22534. dd.ReadMapEnd()
  22535. return v, changed
  22536. }
  22537. var mk uint8
  22538. var mv uint64
  22539. hasLen := containerLen > 0
  22540. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22541. if esep {
  22542. dd.ReadMapElemKey()
  22543. }
  22544. mk = uint8(dd.DecodeUint(8))
  22545. if esep {
  22546. dd.ReadMapElemValue()
  22547. }
  22548. if dd.TryDecodeAsNil() {
  22549. if v == nil {
  22550. } else if d.h.DeleteOnNilMapValue {
  22551. delete(v, mk)
  22552. } else {
  22553. v[mk] = 0
  22554. }
  22555. continue
  22556. }
  22557. mv = dd.DecodeUint(64)
  22558. if v != nil {
  22559. v[mk] = mv
  22560. }
  22561. }
  22562. dd.ReadMapEnd()
  22563. return v, changed
  22564. }
  22565. func (d *Decoder) fastpathDecMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  22566. if rv.Kind() == reflect.Ptr {
  22567. vp := rv2i(rv).(*map[uint8]uintptr)
  22568. v, changed := fastpathTV.DecMapUint8UintptrV(*vp, true, d)
  22569. if changed {
  22570. *vp = v
  22571. }
  22572. } else {
  22573. fastpathTV.DecMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), false, d)
  22574. }
  22575. }
  22576. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, d *Decoder) {
  22577. v, changed := f.DecMapUint8UintptrV(*vp, true, d)
  22578. if changed {
  22579. *vp = v
  22580. }
  22581. }
  22582. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, canChange bool,
  22583. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  22584. dd, esep := d.d, d.hh.hasElemSeparators()
  22585. containerLen := dd.ReadMapStart()
  22586. if canChange && v == nil {
  22587. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22588. v = make(map[uint8]uintptr, xlen)
  22589. changed = true
  22590. }
  22591. if containerLen == 0 {
  22592. dd.ReadMapEnd()
  22593. return v, changed
  22594. }
  22595. var mk uint8
  22596. var mv uintptr
  22597. hasLen := containerLen > 0
  22598. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22599. if esep {
  22600. dd.ReadMapElemKey()
  22601. }
  22602. mk = uint8(dd.DecodeUint(8))
  22603. if esep {
  22604. dd.ReadMapElemValue()
  22605. }
  22606. if dd.TryDecodeAsNil() {
  22607. if v == nil {
  22608. } else if d.h.DeleteOnNilMapValue {
  22609. delete(v, mk)
  22610. } else {
  22611. v[mk] = 0
  22612. }
  22613. continue
  22614. }
  22615. mv = uintptr(dd.DecodeUint(uintBitsize))
  22616. if v != nil {
  22617. v[mk] = mv
  22618. }
  22619. }
  22620. dd.ReadMapEnd()
  22621. return v, changed
  22622. }
  22623. func (d *Decoder) fastpathDecMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  22624. if rv.Kind() == reflect.Ptr {
  22625. vp := rv2i(rv).(*map[uint8]int)
  22626. v, changed := fastpathTV.DecMapUint8IntV(*vp, true, d)
  22627. if changed {
  22628. *vp = v
  22629. }
  22630. } else {
  22631. fastpathTV.DecMapUint8IntV(rv2i(rv).(map[uint8]int), false, d)
  22632. }
  22633. }
  22634. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, d *Decoder) {
  22635. v, changed := f.DecMapUint8IntV(*vp, true, d)
  22636. if changed {
  22637. *vp = v
  22638. }
  22639. }
  22640. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, canChange bool,
  22641. d *Decoder) (_ map[uint8]int, changed bool) {
  22642. dd, esep := d.d, d.hh.hasElemSeparators()
  22643. containerLen := dd.ReadMapStart()
  22644. if canChange && v == nil {
  22645. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22646. v = make(map[uint8]int, xlen)
  22647. changed = true
  22648. }
  22649. if containerLen == 0 {
  22650. dd.ReadMapEnd()
  22651. return v, changed
  22652. }
  22653. var mk uint8
  22654. var mv int
  22655. hasLen := containerLen > 0
  22656. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22657. if esep {
  22658. dd.ReadMapElemKey()
  22659. }
  22660. mk = uint8(dd.DecodeUint(8))
  22661. if esep {
  22662. dd.ReadMapElemValue()
  22663. }
  22664. if dd.TryDecodeAsNil() {
  22665. if v == nil {
  22666. } else if d.h.DeleteOnNilMapValue {
  22667. delete(v, mk)
  22668. } else {
  22669. v[mk] = 0
  22670. }
  22671. continue
  22672. }
  22673. mv = int(dd.DecodeInt(intBitsize))
  22674. if v != nil {
  22675. v[mk] = mv
  22676. }
  22677. }
  22678. dd.ReadMapEnd()
  22679. return v, changed
  22680. }
  22681. func (d *Decoder) fastpathDecMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  22682. if rv.Kind() == reflect.Ptr {
  22683. vp := rv2i(rv).(*map[uint8]int8)
  22684. v, changed := fastpathTV.DecMapUint8Int8V(*vp, true, d)
  22685. if changed {
  22686. *vp = v
  22687. }
  22688. } else {
  22689. fastpathTV.DecMapUint8Int8V(rv2i(rv).(map[uint8]int8), false, d)
  22690. }
  22691. }
  22692. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, d *Decoder) {
  22693. v, changed := f.DecMapUint8Int8V(*vp, true, d)
  22694. if changed {
  22695. *vp = v
  22696. }
  22697. }
  22698. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, canChange bool,
  22699. d *Decoder) (_ map[uint8]int8, changed bool) {
  22700. dd, esep := d.d, d.hh.hasElemSeparators()
  22701. containerLen := dd.ReadMapStart()
  22702. if canChange && v == nil {
  22703. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  22704. v = make(map[uint8]int8, xlen)
  22705. changed = true
  22706. }
  22707. if containerLen == 0 {
  22708. dd.ReadMapEnd()
  22709. return v, changed
  22710. }
  22711. var mk uint8
  22712. var mv int8
  22713. hasLen := containerLen > 0
  22714. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22715. if esep {
  22716. dd.ReadMapElemKey()
  22717. }
  22718. mk = uint8(dd.DecodeUint(8))
  22719. if esep {
  22720. dd.ReadMapElemValue()
  22721. }
  22722. if dd.TryDecodeAsNil() {
  22723. if v == nil {
  22724. } else if d.h.DeleteOnNilMapValue {
  22725. delete(v, mk)
  22726. } else {
  22727. v[mk] = 0
  22728. }
  22729. continue
  22730. }
  22731. mv = int8(dd.DecodeInt(8))
  22732. if v != nil {
  22733. v[mk] = mv
  22734. }
  22735. }
  22736. dd.ReadMapEnd()
  22737. return v, changed
  22738. }
  22739. func (d *Decoder) fastpathDecMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  22740. if rv.Kind() == reflect.Ptr {
  22741. vp := rv2i(rv).(*map[uint8]int16)
  22742. v, changed := fastpathTV.DecMapUint8Int16V(*vp, true, d)
  22743. if changed {
  22744. *vp = v
  22745. }
  22746. } else {
  22747. fastpathTV.DecMapUint8Int16V(rv2i(rv).(map[uint8]int16), false, d)
  22748. }
  22749. }
  22750. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, d *Decoder) {
  22751. v, changed := f.DecMapUint8Int16V(*vp, true, d)
  22752. if changed {
  22753. *vp = v
  22754. }
  22755. }
  22756. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, canChange bool,
  22757. d *Decoder) (_ map[uint8]int16, changed bool) {
  22758. dd, esep := d.d, d.hh.hasElemSeparators()
  22759. containerLen := dd.ReadMapStart()
  22760. if canChange && v == nil {
  22761. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  22762. v = make(map[uint8]int16, xlen)
  22763. changed = true
  22764. }
  22765. if containerLen == 0 {
  22766. dd.ReadMapEnd()
  22767. return v, changed
  22768. }
  22769. var mk uint8
  22770. var mv int16
  22771. hasLen := containerLen > 0
  22772. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22773. if esep {
  22774. dd.ReadMapElemKey()
  22775. }
  22776. mk = uint8(dd.DecodeUint(8))
  22777. if esep {
  22778. dd.ReadMapElemValue()
  22779. }
  22780. if dd.TryDecodeAsNil() {
  22781. if v == nil {
  22782. } else if d.h.DeleteOnNilMapValue {
  22783. delete(v, mk)
  22784. } else {
  22785. v[mk] = 0
  22786. }
  22787. continue
  22788. }
  22789. mv = int16(dd.DecodeInt(16))
  22790. if v != nil {
  22791. v[mk] = mv
  22792. }
  22793. }
  22794. dd.ReadMapEnd()
  22795. return v, changed
  22796. }
  22797. func (d *Decoder) fastpathDecMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  22798. if rv.Kind() == reflect.Ptr {
  22799. vp := rv2i(rv).(*map[uint8]int32)
  22800. v, changed := fastpathTV.DecMapUint8Int32V(*vp, true, d)
  22801. if changed {
  22802. *vp = v
  22803. }
  22804. } else {
  22805. fastpathTV.DecMapUint8Int32V(rv2i(rv).(map[uint8]int32), false, d)
  22806. }
  22807. }
  22808. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, d *Decoder) {
  22809. v, changed := f.DecMapUint8Int32V(*vp, true, d)
  22810. if changed {
  22811. *vp = v
  22812. }
  22813. }
  22814. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, canChange bool,
  22815. d *Decoder) (_ map[uint8]int32, changed bool) {
  22816. dd, esep := d.d, d.hh.hasElemSeparators()
  22817. containerLen := dd.ReadMapStart()
  22818. if canChange && v == nil {
  22819. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  22820. v = make(map[uint8]int32, xlen)
  22821. changed = true
  22822. }
  22823. if containerLen == 0 {
  22824. dd.ReadMapEnd()
  22825. return v, changed
  22826. }
  22827. var mk uint8
  22828. var mv int32
  22829. hasLen := containerLen > 0
  22830. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22831. if esep {
  22832. dd.ReadMapElemKey()
  22833. }
  22834. mk = uint8(dd.DecodeUint(8))
  22835. if esep {
  22836. dd.ReadMapElemValue()
  22837. }
  22838. if dd.TryDecodeAsNil() {
  22839. if v == nil {
  22840. } else if d.h.DeleteOnNilMapValue {
  22841. delete(v, mk)
  22842. } else {
  22843. v[mk] = 0
  22844. }
  22845. continue
  22846. }
  22847. mv = int32(dd.DecodeInt(32))
  22848. if v != nil {
  22849. v[mk] = mv
  22850. }
  22851. }
  22852. dd.ReadMapEnd()
  22853. return v, changed
  22854. }
  22855. func (d *Decoder) fastpathDecMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  22856. if rv.Kind() == reflect.Ptr {
  22857. vp := rv2i(rv).(*map[uint8]int64)
  22858. v, changed := fastpathTV.DecMapUint8Int64V(*vp, true, d)
  22859. if changed {
  22860. *vp = v
  22861. }
  22862. } else {
  22863. fastpathTV.DecMapUint8Int64V(rv2i(rv).(map[uint8]int64), false, d)
  22864. }
  22865. }
  22866. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, d *Decoder) {
  22867. v, changed := f.DecMapUint8Int64V(*vp, true, d)
  22868. if changed {
  22869. *vp = v
  22870. }
  22871. }
  22872. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, canChange bool,
  22873. d *Decoder) (_ map[uint8]int64, changed bool) {
  22874. dd, esep := d.d, d.hh.hasElemSeparators()
  22875. containerLen := dd.ReadMapStart()
  22876. if canChange && v == nil {
  22877. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22878. v = make(map[uint8]int64, xlen)
  22879. changed = true
  22880. }
  22881. if containerLen == 0 {
  22882. dd.ReadMapEnd()
  22883. return v, changed
  22884. }
  22885. var mk uint8
  22886. var mv int64
  22887. hasLen := containerLen > 0
  22888. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22889. if esep {
  22890. dd.ReadMapElemKey()
  22891. }
  22892. mk = uint8(dd.DecodeUint(8))
  22893. if esep {
  22894. dd.ReadMapElemValue()
  22895. }
  22896. if dd.TryDecodeAsNil() {
  22897. if v == nil {
  22898. } else if d.h.DeleteOnNilMapValue {
  22899. delete(v, mk)
  22900. } else {
  22901. v[mk] = 0
  22902. }
  22903. continue
  22904. }
  22905. mv = dd.DecodeInt(64)
  22906. if v != nil {
  22907. v[mk] = mv
  22908. }
  22909. }
  22910. dd.ReadMapEnd()
  22911. return v, changed
  22912. }
  22913. func (d *Decoder) fastpathDecMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  22914. if rv.Kind() == reflect.Ptr {
  22915. vp := rv2i(rv).(*map[uint8]float32)
  22916. v, changed := fastpathTV.DecMapUint8Float32V(*vp, true, d)
  22917. if changed {
  22918. *vp = v
  22919. }
  22920. } else {
  22921. fastpathTV.DecMapUint8Float32V(rv2i(rv).(map[uint8]float32), false, d)
  22922. }
  22923. }
  22924. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, d *Decoder) {
  22925. v, changed := f.DecMapUint8Float32V(*vp, true, d)
  22926. if changed {
  22927. *vp = v
  22928. }
  22929. }
  22930. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, canChange bool,
  22931. d *Decoder) (_ map[uint8]float32, changed bool) {
  22932. dd, esep := d.d, d.hh.hasElemSeparators()
  22933. containerLen := dd.ReadMapStart()
  22934. if canChange && v == nil {
  22935. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  22936. v = make(map[uint8]float32, xlen)
  22937. changed = true
  22938. }
  22939. if containerLen == 0 {
  22940. dd.ReadMapEnd()
  22941. return v, changed
  22942. }
  22943. var mk uint8
  22944. var mv float32
  22945. hasLen := containerLen > 0
  22946. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22947. if esep {
  22948. dd.ReadMapElemKey()
  22949. }
  22950. mk = uint8(dd.DecodeUint(8))
  22951. if esep {
  22952. dd.ReadMapElemValue()
  22953. }
  22954. if dd.TryDecodeAsNil() {
  22955. if v == nil {
  22956. } else if d.h.DeleteOnNilMapValue {
  22957. delete(v, mk)
  22958. } else {
  22959. v[mk] = 0
  22960. }
  22961. continue
  22962. }
  22963. mv = float32(chkFloat32(dd.DecodeFloat64()))
  22964. if v != nil {
  22965. v[mk] = mv
  22966. }
  22967. }
  22968. dd.ReadMapEnd()
  22969. return v, changed
  22970. }
  22971. func (d *Decoder) fastpathDecMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  22972. if rv.Kind() == reflect.Ptr {
  22973. vp := rv2i(rv).(*map[uint8]float64)
  22974. v, changed := fastpathTV.DecMapUint8Float64V(*vp, true, d)
  22975. if changed {
  22976. *vp = v
  22977. }
  22978. } else {
  22979. fastpathTV.DecMapUint8Float64V(rv2i(rv).(map[uint8]float64), false, d)
  22980. }
  22981. }
  22982. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, d *Decoder) {
  22983. v, changed := f.DecMapUint8Float64V(*vp, true, d)
  22984. if changed {
  22985. *vp = v
  22986. }
  22987. }
  22988. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, canChange bool,
  22989. d *Decoder) (_ map[uint8]float64, changed bool) {
  22990. dd, esep := d.d, d.hh.hasElemSeparators()
  22991. containerLen := dd.ReadMapStart()
  22992. if canChange && v == nil {
  22993. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22994. v = make(map[uint8]float64, xlen)
  22995. changed = true
  22996. }
  22997. if containerLen == 0 {
  22998. dd.ReadMapEnd()
  22999. return v, changed
  23000. }
  23001. var mk uint8
  23002. var mv float64
  23003. hasLen := containerLen > 0
  23004. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23005. if esep {
  23006. dd.ReadMapElemKey()
  23007. }
  23008. mk = uint8(dd.DecodeUint(8))
  23009. if esep {
  23010. dd.ReadMapElemValue()
  23011. }
  23012. if dd.TryDecodeAsNil() {
  23013. if v == nil {
  23014. } else if d.h.DeleteOnNilMapValue {
  23015. delete(v, mk)
  23016. } else {
  23017. v[mk] = 0
  23018. }
  23019. continue
  23020. }
  23021. mv = dd.DecodeFloat64()
  23022. if v != nil {
  23023. v[mk] = mv
  23024. }
  23025. }
  23026. dd.ReadMapEnd()
  23027. return v, changed
  23028. }
  23029. func (d *Decoder) fastpathDecMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  23030. if rv.Kind() == reflect.Ptr {
  23031. vp := rv2i(rv).(*map[uint8]bool)
  23032. v, changed := fastpathTV.DecMapUint8BoolV(*vp, true, d)
  23033. if changed {
  23034. *vp = v
  23035. }
  23036. } else {
  23037. fastpathTV.DecMapUint8BoolV(rv2i(rv).(map[uint8]bool), false, d)
  23038. }
  23039. }
  23040. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, d *Decoder) {
  23041. v, changed := f.DecMapUint8BoolV(*vp, true, d)
  23042. if changed {
  23043. *vp = v
  23044. }
  23045. }
  23046. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, canChange bool,
  23047. d *Decoder) (_ map[uint8]bool, changed bool) {
  23048. dd, esep := d.d, d.hh.hasElemSeparators()
  23049. containerLen := dd.ReadMapStart()
  23050. if canChange && v == nil {
  23051. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  23052. v = make(map[uint8]bool, xlen)
  23053. changed = true
  23054. }
  23055. if containerLen == 0 {
  23056. dd.ReadMapEnd()
  23057. return v, changed
  23058. }
  23059. var mk uint8
  23060. var mv bool
  23061. hasLen := containerLen > 0
  23062. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23063. if esep {
  23064. dd.ReadMapElemKey()
  23065. }
  23066. mk = uint8(dd.DecodeUint(8))
  23067. if esep {
  23068. dd.ReadMapElemValue()
  23069. }
  23070. if dd.TryDecodeAsNil() {
  23071. if v == nil {
  23072. } else if d.h.DeleteOnNilMapValue {
  23073. delete(v, mk)
  23074. } else {
  23075. v[mk] = false
  23076. }
  23077. continue
  23078. }
  23079. mv = dd.DecodeBool()
  23080. if v != nil {
  23081. v[mk] = mv
  23082. }
  23083. }
  23084. dd.ReadMapEnd()
  23085. return v, changed
  23086. }
  23087. func (d *Decoder) fastpathDecMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  23088. if rv.Kind() == reflect.Ptr {
  23089. vp := rv2i(rv).(*map[uint16]interface{})
  23090. v, changed := fastpathTV.DecMapUint16IntfV(*vp, true, d)
  23091. if changed {
  23092. *vp = v
  23093. }
  23094. } else {
  23095. fastpathTV.DecMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), false, d)
  23096. }
  23097. }
  23098. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, d *Decoder) {
  23099. v, changed := f.DecMapUint16IntfV(*vp, true, d)
  23100. if changed {
  23101. *vp = v
  23102. }
  23103. }
  23104. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, canChange bool,
  23105. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  23106. dd, esep := d.d, d.hh.hasElemSeparators()
  23107. containerLen := dd.ReadMapStart()
  23108. if canChange && v == nil {
  23109. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  23110. v = make(map[uint16]interface{}, xlen)
  23111. changed = true
  23112. }
  23113. if containerLen == 0 {
  23114. dd.ReadMapEnd()
  23115. return v, changed
  23116. }
  23117. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  23118. var mk uint16
  23119. var mv interface{}
  23120. hasLen := containerLen > 0
  23121. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23122. if esep {
  23123. dd.ReadMapElemKey()
  23124. }
  23125. mk = uint16(dd.DecodeUint(16))
  23126. if esep {
  23127. dd.ReadMapElemValue()
  23128. }
  23129. if dd.TryDecodeAsNil() {
  23130. if v == nil {
  23131. } else if d.h.DeleteOnNilMapValue {
  23132. delete(v, mk)
  23133. } else {
  23134. v[mk] = nil
  23135. }
  23136. continue
  23137. }
  23138. if mapGet {
  23139. mv = v[mk]
  23140. } else {
  23141. mv = nil
  23142. }
  23143. d.decode(&mv)
  23144. if v != nil {
  23145. v[mk] = mv
  23146. }
  23147. }
  23148. dd.ReadMapEnd()
  23149. return v, changed
  23150. }
  23151. func (d *Decoder) fastpathDecMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  23152. if rv.Kind() == reflect.Ptr {
  23153. vp := rv2i(rv).(*map[uint16]string)
  23154. v, changed := fastpathTV.DecMapUint16StringV(*vp, true, d)
  23155. if changed {
  23156. *vp = v
  23157. }
  23158. } else {
  23159. fastpathTV.DecMapUint16StringV(rv2i(rv).(map[uint16]string), false, d)
  23160. }
  23161. }
  23162. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, d *Decoder) {
  23163. v, changed := f.DecMapUint16StringV(*vp, true, d)
  23164. if changed {
  23165. *vp = v
  23166. }
  23167. }
  23168. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, canChange bool,
  23169. d *Decoder) (_ map[uint16]string, changed bool) {
  23170. dd, esep := d.d, d.hh.hasElemSeparators()
  23171. containerLen := dd.ReadMapStart()
  23172. if canChange && v == nil {
  23173. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  23174. v = make(map[uint16]string, xlen)
  23175. changed = true
  23176. }
  23177. if containerLen == 0 {
  23178. dd.ReadMapEnd()
  23179. return v, changed
  23180. }
  23181. var mk uint16
  23182. var mv string
  23183. hasLen := containerLen > 0
  23184. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23185. if esep {
  23186. dd.ReadMapElemKey()
  23187. }
  23188. mk = uint16(dd.DecodeUint(16))
  23189. if esep {
  23190. dd.ReadMapElemValue()
  23191. }
  23192. if dd.TryDecodeAsNil() {
  23193. if v == nil {
  23194. } else if d.h.DeleteOnNilMapValue {
  23195. delete(v, mk)
  23196. } else {
  23197. v[mk] = ""
  23198. }
  23199. continue
  23200. }
  23201. mv = dd.DecodeString()
  23202. if v != nil {
  23203. v[mk] = mv
  23204. }
  23205. }
  23206. dd.ReadMapEnd()
  23207. return v, changed
  23208. }
  23209. func (d *Decoder) fastpathDecMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  23210. if rv.Kind() == reflect.Ptr {
  23211. vp := rv2i(rv).(*map[uint16]uint)
  23212. v, changed := fastpathTV.DecMapUint16UintV(*vp, true, d)
  23213. if changed {
  23214. *vp = v
  23215. }
  23216. } else {
  23217. fastpathTV.DecMapUint16UintV(rv2i(rv).(map[uint16]uint), false, d)
  23218. }
  23219. }
  23220. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, d *Decoder) {
  23221. v, changed := f.DecMapUint16UintV(*vp, true, d)
  23222. if changed {
  23223. *vp = v
  23224. }
  23225. }
  23226. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, canChange bool,
  23227. d *Decoder) (_ map[uint16]uint, changed bool) {
  23228. dd, esep := d.d, d.hh.hasElemSeparators()
  23229. containerLen := dd.ReadMapStart()
  23230. if canChange && v == nil {
  23231. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23232. v = make(map[uint16]uint, xlen)
  23233. changed = true
  23234. }
  23235. if containerLen == 0 {
  23236. dd.ReadMapEnd()
  23237. return v, changed
  23238. }
  23239. var mk uint16
  23240. var mv uint
  23241. hasLen := containerLen > 0
  23242. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23243. if esep {
  23244. dd.ReadMapElemKey()
  23245. }
  23246. mk = uint16(dd.DecodeUint(16))
  23247. if esep {
  23248. dd.ReadMapElemValue()
  23249. }
  23250. if dd.TryDecodeAsNil() {
  23251. if v == nil {
  23252. } else if d.h.DeleteOnNilMapValue {
  23253. delete(v, mk)
  23254. } else {
  23255. v[mk] = 0
  23256. }
  23257. continue
  23258. }
  23259. mv = uint(dd.DecodeUint(uintBitsize))
  23260. if v != nil {
  23261. v[mk] = mv
  23262. }
  23263. }
  23264. dd.ReadMapEnd()
  23265. return v, changed
  23266. }
  23267. func (d *Decoder) fastpathDecMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  23268. if rv.Kind() == reflect.Ptr {
  23269. vp := rv2i(rv).(*map[uint16]uint8)
  23270. v, changed := fastpathTV.DecMapUint16Uint8V(*vp, true, d)
  23271. if changed {
  23272. *vp = v
  23273. }
  23274. } else {
  23275. fastpathTV.DecMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), false, d)
  23276. }
  23277. }
  23278. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, d *Decoder) {
  23279. v, changed := f.DecMapUint16Uint8V(*vp, true, d)
  23280. if changed {
  23281. *vp = v
  23282. }
  23283. }
  23284. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, canChange bool,
  23285. d *Decoder) (_ map[uint16]uint8, changed bool) {
  23286. dd, esep := d.d, d.hh.hasElemSeparators()
  23287. containerLen := dd.ReadMapStart()
  23288. if canChange && v == nil {
  23289. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  23290. v = make(map[uint16]uint8, xlen)
  23291. changed = true
  23292. }
  23293. if containerLen == 0 {
  23294. dd.ReadMapEnd()
  23295. return v, changed
  23296. }
  23297. var mk uint16
  23298. var mv uint8
  23299. hasLen := containerLen > 0
  23300. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23301. if esep {
  23302. dd.ReadMapElemKey()
  23303. }
  23304. mk = uint16(dd.DecodeUint(16))
  23305. if esep {
  23306. dd.ReadMapElemValue()
  23307. }
  23308. if dd.TryDecodeAsNil() {
  23309. if v == nil {
  23310. } else if d.h.DeleteOnNilMapValue {
  23311. delete(v, mk)
  23312. } else {
  23313. v[mk] = 0
  23314. }
  23315. continue
  23316. }
  23317. mv = uint8(dd.DecodeUint(8))
  23318. if v != nil {
  23319. v[mk] = mv
  23320. }
  23321. }
  23322. dd.ReadMapEnd()
  23323. return v, changed
  23324. }
  23325. func (d *Decoder) fastpathDecMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  23326. if rv.Kind() == reflect.Ptr {
  23327. vp := rv2i(rv).(*map[uint16]uint16)
  23328. v, changed := fastpathTV.DecMapUint16Uint16V(*vp, true, d)
  23329. if changed {
  23330. *vp = v
  23331. }
  23332. } else {
  23333. fastpathTV.DecMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), false, d)
  23334. }
  23335. }
  23336. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, d *Decoder) {
  23337. v, changed := f.DecMapUint16Uint16V(*vp, true, d)
  23338. if changed {
  23339. *vp = v
  23340. }
  23341. }
  23342. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, canChange bool,
  23343. d *Decoder) (_ map[uint16]uint16, changed bool) {
  23344. dd, esep := d.d, d.hh.hasElemSeparators()
  23345. containerLen := dd.ReadMapStart()
  23346. if canChange && v == nil {
  23347. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  23348. v = make(map[uint16]uint16, xlen)
  23349. changed = true
  23350. }
  23351. if containerLen == 0 {
  23352. dd.ReadMapEnd()
  23353. return v, changed
  23354. }
  23355. var mk uint16
  23356. var mv uint16
  23357. hasLen := containerLen > 0
  23358. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23359. if esep {
  23360. dd.ReadMapElemKey()
  23361. }
  23362. mk = uint16(dd.DecodeUint(16))
  23363. if esep {
  23364. dd.ReadMapElemValue()
  23365. }
  23366. if dd.TryDecodeAsNil() {
  23367. if v == nil {
  23368. } else if d.h.DeleteOnNilMapValue {
  23369. delete(v, mk)
  23370. } else {
  23371. v[mk] = 0
  23372. }
  23373. continue
  23374. }
  23375. mv = uint16(dd.DecodeUint(16))
  23376. if v != nil {
  23377. v[mk] = mv
  23378. }
  23379. }
  23380. dd.ReadMapEnd()
  23381. return v, changed
  23382. }
  23383. func (d *Decoder) fastpathDecMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  23384. if rv.Kind() == reflect.Ptr {
  23385. vp := rv2i(rv).(*map[uint16]uint32)
  23386. v, changed := fastpathTV.DecMapUint16Uint32V(*vp, true, d)
  23387. if changed {
  23388. *vp = v
  23389. }
  23390. } else {
  23391. fastpathTV.DecMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), false, d)
  23392. }
  23393. }
  23394. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, d *Decoder) {
  23395. v, changed := f.DecMapUint16Uint32V(*vp, true, d)
  23396. if changed {
  23397. *vp = v
  23398. }
  23399. }
  23400. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, canChange bool,
  23401. d *Decoder) (_ map[uint16]uint32, changed bool) {
  23402. dd, esep := d.d, d.hh.hasElemSeparators()
  23403. containerLen := dd.ReadMapStart()
  23404. if canChange && v == nil {
  23405. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  23406. v = make(map[uint16]uint32, xlen)
  23407. changed = true
  23408. }
  23409. if containerLen == 0 {
  23410. dd.ReadMapEnd()
  23411. return v, changed
  23412. }
  23413. var mk uint16
  23414. var mv uint32
  23415. hasLen := containerLen > 0
  23416. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23417. if esep {
  23418. dd.ReadMapElemKey()
  23419. }
  23420. mk = uint16(dd.DecodeUint(16))
  23421. if esep {
  23422. dd.ReadMapElemValue()
  23423. }
  23424. if dd.TryDecodeAsNil() {
  23425. if v == nil {
  23426. } else if d.h.DeleteOnNilMapValue {
  23427. delete(v, mk)
  23428. } else {
  23429. v[mk] = 0
  23430. }
  23431. continue
  23432. }
  23433. mv = uint32(dd.DecodeUint(32))
  23434. if v != nil {
  23435. v[mk] = mv
  23436. }
  23437. }
  23438. dd.ReadMapEnd()
  23439. return v, changed
  23440. }
  23441. func (d *Decoder) fastpathDecMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  23442. if rv.Kind() == reflect.Ptr {
  23443. vp := rv2i(rv).(*map[uint16]uint64)
  23444. v, changed := fastpathTV.DecMapUint16Uint64V(*vp, true, d)
  23445. if changed {
  23446. *vp = v
  23447. }
  23448. } else {
  23449. fastpathTV.DecMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), false, d)
  23450. }
  23451. }
  23452. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, d *Decoder) {
  23453. v, changed := f.DecMapUint16Uint64V(*vp, true, d)
  23454. if changed {
  23455. *vp = v
  23456. }
  23457. }
  23458. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, canChange bool,
  23459. d *Decoder) (_ map[uint16]uint64, changed bool) {
  23460. dd, esep := d.d, d.hh.hasElemSeparators()
  23461. containerLen := dd.ReadMapStart()
  23462. if canChange && v == nil {
  23463. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23464. v = make(map[uint16]uint64, xlen)
  23465. changed = true
  23466. }
  23467. if containerLen == 0 {
  23468. dd.ReadMapEnd()
  23469. return v, changed
  23470. }
  23471. var mk uint16
  23472. var mv uint64
  23473. hasLen := containerLen > 0
  23474. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23475. if esep {
  23476. dd.ReadMapElemKey()
  23477. }
  23478. mk = uint16(dd.DecodeUint(16))
  23479. if esep {
  23480. dd.ReadMapElemValue()
  23481. }
  23482. if dd.TryDecodeAsNil() {
  23483. if v == nil {
  23484. } else if d.h.DeleteOnNilMapValue {
  23485. delete(v, mk)
  23486. } else {
  23487. v[mk] = 0
  23488. }
  23489. continue
  23490. }
  23491. mv = dd.DecodeUint(64)
  23492. if v != nil {
  23493. v[mk] = mv
  23494. }
  23495. }
  23496. dd.ReadMapEnd()
  23497. return v, changed
  23498. }
  23499. func (d *Decoder) fastpathDecMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  23500. if rv.Kind() == reflect.Ptr {
  23501. vp := rv2i(rv).(*map[uint16]uintptr)
  23502. v, changed := fastpathTV.DecMapUint16UintptrV(*vp, true, d)
  23503. if changed {
  23504. *vp = v
  23505. }
  23506. } else {
  23507. fastpathTV.DecMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), false, d)
  23508. }
  23509. }
  23510. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, d *Decoder) {
  23511. v, changed := f.DecMapUint16UintptrV(*vp, true, d)
  23512. if changed {
  23513. *vp = v
  23514. }
  23515. }
  23516. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, canChange bool,
  23517. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  23518. dd, esep := d.d, d.hh.hasElemSeparators()
  23519. containerLen := dd.ReadMapStart()
  23520. if canChange && v == nil {
  23521. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23522. v = make(map[uint16]uintptr, xlen)
  23523. changed = true
  23524. }
  23525. if containerLen == 0 {
  23526. dd.ReadMapEnd()
  23527. return v, changed
  23528. }
  23529. var mk uint16
  23530. var mv uintptr
  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(dd.DecodeUint(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] = 0
  23546. }
  23547. continue
  23548. }
  23549. mv = uintptr(dd.DecodeUint(uintBitsize))
  23550. if v != nil {
  23551. v[mk] = mv
  23552. }
  23553. }
  23554. dd.ReadMapEnd()
  23555. return v, changed
  23556. }
  23557. func (d *Decoder) fastpathDecMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  23558. if rv.Kind() == reflect.Ptr {
  23559. vp := rv2i(rv).(*map[uint16]int)
  23560. v, changed := fastpathTV.DecMapUint16IntV(*vp, true, d)
  23561. if changed {
  23562. *vp = v
  23563. }
  23564. } else {
  23565. fastpathTV.DecMapUint16IntV(rv2i(rv).(map[uint16]int), false, d)
  23566. }
  23567. }
  23568. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, d *Decoder) {
  23569. v, changed := f.DecMapUint16IntV(*vp, true, d)
  23570. if changed {
  23571. *vp = v
  23572. }
  23573. }
  23574. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, canChange bool,
  23575. d *Decoder) (_ map[uint16]int, changed bool) {
  23576. dd, esep := d.d, d.hh.hasElemSeparators()
  23577. containerLen := dd.ReadMapStart()
  23578. if canChange && v == nil {
  23579. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23580. v = make(map[uint16]int, xlen)
  23581. changed = true
  23582. }
  23583. if containerLen == 0 {
  23584. dd.ReadMapEnd()
  23585. return v, changed
  23586. }
  23587. var mk uint16
  23588. var mv int
  23589. hasLen := containerLen > 0
  23590. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23591. if esep {
  23592. dd.ReadMapElemKey()
  23593. }
  23594. mk = uint16(dd.DecodeUint(16))
  23595. if esep {
  23596. dd.ReadMapElemValue()
  23597. }
  23598. if dd.TryDecodeAsNil() {
  23599. if v == nil {
  23600. } else if d.h.DeleteOnNilMapValue {
  23601. delete(v, mk)
  23602. } else {
  23603. v[mk] = 0
  23604. }
  23605. continue
  23606. }
  23607. mv = int(dd.DecodeInt(intBitsize))
  23608. if v != nil {
  23609. v[mk] = mv
  23610. }
  23611. }
  23612. dd.ReadMapEnd()
  23613. return v, changed
  23614. }
  23615. func (d *Decoder) fastpathDecMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  23616. if rv.Kind() == reflect.Ptr {
  23617. vp := rv2i(rv).(*map[uint16]int8)
  23618. v, changed := fastpathTV.DecMapUint16Int8V(*vp, true, d)
  23619. if changed {
  23620. *vp = v
  23621. }
  23622. } else {
  23623. fastpathTV.DecMapUint16Int8V(rv2i(rv).(map[uint16]int8), false, d)
  23624. }
  23625. }
  23626. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, d *Decoder) {
  23627. v, changed := f.DecMapUint16Int8V(*vp, true, d)
  23628. if changed {
  23629. *vp = v
  23630. }
  23631. }
  23632. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, canChange bool,
  23633. d *Decoder) (_ map[uint16]int8, changed bool) {
  23634. dd, esep := d.d, d.hh.hasElemSeparators()
  23635. containerLen := dd.ReadMapStart()
  23636. if canChange && v == nil {
  23637. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  23638. v = make(map[uint16]int8, xlen)
  23639. changed = true
  23640. }
  23641. if containerLen == 0 {
  23642. dd.ReadMapEnd()
  23643. return v, changed
  23644. }
  23645. var mk uint16
  23646. var mv int8
  23647. hasLen := containerLen > 0
  23648. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23649. if esep {
  23650. dd.ReadMapElemKey()
  23651. }
  23652. mk = uint16(dd.DecodeUint(16))
  23653. if esep {
  23654. dd.ReadMapElemValue()
  23655. }
  23656. if dd.TryDecodeAsNil() {
  23657. if v == nil {
  23658. } else if d.h.DeleteOnNilMapValue {
  23659. delete(v, mk)
  23660. } else {
  23661. v[mk] = 0
  23662. }
  23663. continue
  23664. }
  23665. mv = int8(dd.DecodeInt(8))
  23666. if v != nil {
  23667. v[mk] = mv
  23668. }
  23669. }
  23670. dd.ReadMapEnd()
  23671. return v, changed
  23672. }
  23673. func (d *Decoder) fastpathDecMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  23674. if rv.Kind() == reflect.Ptr {
  23675. vp := rv2i(rv).(*map[uint16]int16)
  23676. v, changed := fastpathTV.DecMapUint16Int16V(*vp, true, d)
  23677. if changed {
  23678. *vp = v
  23679. }
  23680. } else {
  23681. fastpathTV.DecMapUint16Int16V(rv2i(rv).(map[uint16]int16), false, d)
  23682. }
  23683. }
  23684. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, d *Decoder) {
  23685. v, changed := f.DecMapUint16Int16V(*vp, true, d)
  23686. if changed {
  23687. *vp = v
  23688. }
  23689. }
  23690. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, canChange bool,
  23691. d *Decoder) (_ map[uint16]int16, changed bool) {
  23692. dd, esep := d.d, d.hh.hasElemSeparators()
  23693. containerLen := dd.ReadMapStart()
  23694. if canChange && v == nil {
  23695. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  23696. v = make(map[uint16]int16, xlen)
  23697. changed = true
  23698. }
  23699. if containerLen == 0 {
  23700. dd.ReadMapEnd()
  23701. return v, changed
  23702. }
  23703. var mk uint16
  23704. var mv int16
  23705. hasLen := containerLen > 0
  23706. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23707. if esep {
  23708. dd.ReadMapElemKey()
  23709. }
  23710. mk = uint16(dd.DecodeUint(16))
  23711. if esep {
  23712. dd.ReadMapElemValue()
  23713. }
  23714. if dd.TryDecodeAsNil() {
  23715. if v == nil {
  23716. } else if d.h.DeleteOnNilMapValue {
  23717. delete(v, mk)
  23718. } else {
  23719. v[mk] = 0
  23720. }
  23721. continue
  23722. }
  23723. mv = int16(dd.DecodeInt(16))
  23724. if v != nil {
  23725. v[mk] = mv
  23726. }
  23727. }
  23728. dd.ReadMapEnd()
  23729. return v, changed
  23730. }
  23731. func (d *Decoder) fastpathDecMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  23732. if rv.Kind() == reflect.Ptr {
  23733. vp := rv2i(rv).(*map[uint16]int32)
  23734. v, changed := fastpathTV.DecMapUint16Int32V(*vp, true, d)
  23735. if changed {
  23736. *vp = v
  23737. }
  23738. } else {
  23739. fastpathTV.DecMapUint16Int32V(rv2i(rv).(map[uint16]int32), false, d)
  23740. }
  23741. }
  23742. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, d *Decoder) {
  23743. v, changed := f.DecMapUint16Int32V(*vp, true, d)
  23744. if changed {
  23745. *vp = v
  23746. }
  23747. }
  23748. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, canChange bool,
  23749. d *Decoder) (_ map[uint16]int32, changed bool) {
  23750. dd, esep := d.d, d.hh.hasElemSeparators()
  23751. containerLen := dd.ReadMapStart()
  23752. if canChange && v == nil {
  23753. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  23754. v = make(map[uint16]int32, xlen)
  23755. changed = true
  23756. }
  23757. if containerLen == 0 {
  23758. dd.ReadMapEnd()
  23759. return v, changed
  23760. }
  23761. var mk uint16
  23762. var mv int32
  23763. hasLen := containerLen > 0
  23764. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23765. if esep {
  23766. dd.ReadMapElemKey()
  23767. }
  23768. mk = uint16(dd.DecodeUint(16))
  23769. if esep {
  23770. dd.ReadMapElemValue()
  23771. }
  23772. if dd.TryDecodeAsNil() {
  23773. if v == nil {
  23774. } else if d.h.DeleteOnNilMapValue {
  23775. delete(v, mk)
  23776. } else {
  23777. v[mk] = 0
  23778. }
  23779. continue
  23780. }
  23781. mv = int32(dd.DecodeInt(32))
  23782. if v != nil {
  23783. v[mk] = mv
  23784. }
  23785. }
  23786. dd.ReadMapEnd()
  23787. return v, changed
  23788. }
  23789. func (d *Decoder) fastpathDecMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  23790. if rv.Kind() == reflect.Ptr {
  23791. vp := rv2i(rv).(*map[uint16]int64)
  23792. v, changed := fastpathTV.DecMapUint16Int64V(*vp, true, d)
  23793. if changed {
  23794. *vp = v
  23795. }
  23796. } else {
  23797. fastpathTV.DecMapUint16Int64V(rv2i(rv).(map[uint16]int64), false, d)
  23798. }
  23799. }
  23800. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, d *Decoder) {
  23801. v, changed := f.DecMapUint16Int64V(*vp, true, d)
  23802. if changed {
  23803. *vp = v
  23804. }
  23805. }
  23806. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, canChange bool,
  23807. d *Decoder) (_ map[uint16]int64, changed bool) {
  23808. dd, esep := d.d, d.hh.hasElemSeparators()
  23809. containerLen := dd.ReadMapStart()
  23810. if canChange && v == nil {
  23811. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23812. v = make(map[uint16]int64, xlen)
  23813. changed = true
  23814. }
  23815. if containerLen == 0 {
  23816. dd.ReadMapEnd()
  23817. return v, changed
  23818. }
  23819. var mk uint16
  23820. var mv int64
  23821. hasLen := containerLen > 0
  23822. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23823. if esep {
  23824. dd.ReadMapElemKey()
  23825. }
  23826. mk = uint16(dd.DecodeUint(16))
  23827. if esep {
  23828. dd.ReadMapElemValue()
  23829. }
  23830. if dd.TryDecodeAsNil() {
  23831. if v == nil {
  23832. } else if d.h.DeleteOnNilMapValue {
  23833. delete(v, mk)
  23834. } else {
  23835. v[mk] = 0
  23836. }
  23837. continue
  23838. }
  23839. mv = dd.DecodeInt(64)
  23840. if v != nil {
  23841. v[mk] = mv
  23842. }
  23843. }
  23844. dd.ReadMapEnd()
  23845. return v, changed
  23846. }
  23847. func (d *Decoder) fastpathDecMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  23848. if rv.Kind() == reflect.Ptr {
  23849. vp := rv2i(rv).(*map[uint16]float32)
  23850. v, changed := fastpathTV.DecMapUint16Float32V(*vp, true, d)
  23851. if changed {
  23852. *vp = v
  23853. }
  23854. } else {
  23855. fastpathTV.DecMapUint16Float32V(rv2i(rv).(map[uint16]float32), false, d)
  23856. }
  23857. }
  23858. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, d *Decoder) {
  23859. v, changed := f.DecMapUint16Float32V(*vp, true, d)
  23860. if changed {
  23861. *vp = v
  23862. }
  23863. }
  23864. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, canChange bool,
  23865. d *Decoder) (_ map[uint16]float32, changed bool) {
  23866. dd, esep := d.d, d.hh.hasElemSeparators()
  23867. containerLen := dd.ReadMapStart()
  23868. if canChange && v == nil {
  23869. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  23870. v = make(map[uint16]float32, xlen)
  23871. changed = true
  23872. }
  23873. if containerLen == 0 {
  23874. dd.ReadMapEnd()
  23875. return v, changed
  23876. }
  23877. var mk uint16
  23878. var mv float32
  23879. hasLen := containerLen > 0
  23880. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23881. if esep {
  23882. dd.ReadMapElemKey()
  23883. }
  23884. mk = uint16(dd.DecodeUint(16))
  23885. if esep {
  23886. dd.ReadMapElemValue()
  23887. }
  23888. if dd.TryDecodeAsNil() {
  23889. if v == nil {
  23890. } else if d.h.DeleteOnNilMapValue {
  23891. delete(v, mk)
  23892. } else {
  23893. v[mk] = 0
  23894. }
  23895. continue
  23896. }
  23897. mv = float32(chkFloat32(dd.DecodeFloat64()))
  23898. if v != nil {
  23899. v[mk] = mv
  23900. }
  23901. }
  23902. dd.ReadMapEnd()
  23903. return v, changed
  23904. }
  23905. func (d *Decoder) fastpathDecMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  23906. if rv.Kind() == reflect.Ptr {
  23907. vp := rv2i(rv).(*map[uint16]float64)
  23908. v, changed := fastpathTV.DecMapUint16Float64V(*vp, true, d)
  23909. if changed {
  23910. *vp = v
  23911. }
  23912. } else {
  23913. fastpathTV.DecMapUint16Float64V(rv2i(rv).(map[uint16]float64), false, d)
  23914. }
  23915. }
  23916. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, d *Decoder) {
  23917. v, changed := f.DecMapUint16Float64V(*vp, true, d)
  23918. if changed {
  23919. *vp = v
  23920. }
  23921. }
  23922. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, canChange bool,
  23923. d *Decoder) (_ map[uint16]float64, changed bool) {
  23924. dd, esep := d.d, d.hh.hasElemSeparators()
  23925. containerLen := dd.ReadMapStart()
  23926. if canChange && v == nil {
  23927. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23928. v = make(map[uint16]float64, xlen)
  23929. changed = true
  23930. }
  23931. if containerLen == 0 {
  23932. dd.ReadMapEnd()
  23933. return v, changed
  23934. }
  23935. var mk uint16
  23936. var mv float64
  23937. hasLen := containerLen > 0
  23938. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23939. if esep {
  23940. dd.ReadMapElemKey()
  23941. }
  23942. mk = uint16(dd.DecodeUint(16))
  23943. if esep {
  23944. dd.ReadMapElemValue()
  23945. }
  23946. if dd.TryDecodeAsNil() {
  23947. if v == nil {
  23948. } else if d.h.DeleteOnNilMapValue {
  23949. delete(v, mk)
  23950. } else {
  23951. v[mk] = 0
  23952. }
  23953. continue
  23954. }
  23955. mv = dd.DecodeFloat64()
  23956. if v != nil {
  23957. v[mk] = mv
  23958. }
  23959. }
  23960. dd.ReadMapEnd()
  23961. return v, changed
  23962. }
  23963. func (d *Decoder) fastpathDecMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  23964. if rv.Kind() == reflect.Ptr {
  23965. vp := rv2i(rv).(*map[uint16]bool)
  23966. v, changed := fastpathTV.DecMapUint16BoolV(*vp, true, d)
  23967. if changed {
  23968. *vp = v
  23969. }
  23970. } else {
  23971. fastpathTV.DecMapUint16BoolV(rv2i(rv).(map[uint16]bool), false, d)
  23972. }
  23973. }
  23974. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, d *Decoder) {
  23975. v, changed := f.DecMapUint16BoolV(*vp, true, d)
  23976. if changed {
  23977. *vp = v
  23978. }
  23979. }
  23980. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, canChange bool,
  23981. d *Decoder) (_ map[uint16]bool, changed bool) {
  23982. dd, esep := d.d, d.hh.hasElemSeparators()
  23983. containerLen := dd.ReadMapStart()
  23984. if canChange && v == nil {
  23985. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  23986. v = make(map[uint16]bool, xlen)
  23987. changed = true
  23988. }
  23989. if containerLen == 0 {
  23990. dd.ReadMapEnd()
  23991. return v, changed
  23992. }
  23993. var mk uint16
  23994. var mv bool
  23995. hasLen := containerLen > 0
  23996. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23997. if esep {
  23998. dd.ReadMapElemKey()
  23999. }
  24000. mk = uint16(dd.DecodeUint(16))
  24001. if esep {
  24002. dd.ReadMapElemValue()
  24003. }
  24004. if dd.TryDecodeAsNil() {
  24005. if v == nil {
  24006. } else if d.h.DeleteOnNilMapValue {
  24007. delete(v, mk)
  24008. } else {
  24009. v[mk] = false
  24010. }
  24011. continue
  24012. }
  24013. mv = dd.DecodeBool()
  24014. if v != nil {
  24015. v[mk] = mv
  24016. }
  24017. }
  24018. dd.ReadMapEnd()
  24019. return v, changed
  24020. }
  24021. func (d *Decoder) fastpathDecMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  24022. if rv.Kind() == reflect.Ptr {
  24023. vp := rv2i(rv).(*map[uint32]interface{})
  24024. v, changed := fastpathTV.DecMapUint32IntfV(*vp, true, d)
  24025. if changed {
  24026. *vp = v
  24027. }
  24028. } else {
  24029. fastpathTV.DecMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), false, d)
  24030. }
  24031. }
  24032. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, d *Decoder) {
  24033. v, changed := f.DecMapUint32IntfV(*vp, true, d)
  24034. if changed {
  24035. *vp = v
  24036. }
  24037. }
  24038. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, canChange bool,
  24039. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  24040. dd, esep := d.d, d.hh.hasElemSeparators()
  24041. containerLen := dd.ReadMapStart()
  24042. if canChange && v == nil {
  24043. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  24044. v = make(map[uint32]interface{}, xlen)
  24045. changed = true
  24046. }
  24047. if containerLen == 0 {
  24048. dd.ReadMapEnd()
  24049. return v, changed
  24050. }
  24051. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  24052. var mk uint32
  24053. var mv interface{}
  24054. hasLen := containerLen > 0
  24055. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24056. if esep {
  24057. dd.ReadMapElemKey()
  24058. }
  24059. mk = uint32(dd.DecodeUint(32))
  24060. if esep {
  24061. dd.ReadMapElemValue()
  24062. }
  24063. if dd.TryDecodeAsNil() {
  24064. if v == nil {
  24065. } else if d.h.DeleteOnNilMapValue {
  24066. delete(v, mk)
  24067. } else {
  24068. v[mk] = nil
  24069. }
  24070. continue
  24071. }
  24072. if mapGet {
  24073. mv = v[mk]
  24074. } else {
  24075. mv = nil
  24076. }
  24077. d.decode(&mv)
  24078. if v != nil {
  24079. v[mk] = mv
  24080. }
  24081. }
  24082. dd.ReadMapEnd()
  24083. return v, changed
  24084. }
  24085. func (d *Decoder) fastpathDecMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  24086. if rv.Kind() == reflect.Ptr {
  24087. vp := rv2i(rv).(*map[uint32]string)
  24088. v, changed := fastpathTV.DecMapUint32StringV(*vp, true, d)
  24089. if changed {
  24090. *vp = v
  24091. }
  24092. } else {
  24093. fastpathTV.DecMapUint32StringV(rv2i(rv).(map[uint32]string), false, d)
  24094. }
  24095. }
  24096. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, d *Decoder) {
  24097. v, changed := f.DecMapUint32StringV(*vp, true, d)
  24098. if changed {
  24099. *vp = v
  24100. }
  24101. }
  24102. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, canChange bool,
  24103. d *Decoder) (_ map[uint32]string, changed bool) {
  24104. dd, esep := d.d, d.hh.hasElemSeparators()
  24105. containerLen := dd.ReadMapStart()
  24106. if canChange && v == nil {
  24107. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  24108. v = make(map[uint32]string, xlen)
  24109. changed = true
  24110. }
  24111. if containerLen == 0 {
  24112. dd.ReadMapEnd()
  24113. return v, changed
  24114. }
  24115. var mk uint32
  24116. var mv string
  24117. hasLen := containerLen > 0
  24118. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24119. if esep {
  24120. dd.ReadMapElemKey()
  24121. }
  24122. mk = uint32(dd.DecodeUint(32))
  24123. if esep {
  24124. dd.ReadMapElemValue()
  24125. }
  24126. if dd.TryDecodeAsNil() {
  24127. if v == nil {
  24128. } else if d.h.DeleteOnNilMapValue {
  24129. delete(v, mk)
  24130. } else {
  24131. v[mk] = ""
  24132. }
  24133. continue
  24134. }
  24135. mv = dd.DecodeString()
  24136. if v != nil {
  24137. v[mk] = mv
  24138. }
  24139. }
  24140. dd.ReadMapEnd()
  24141. return v, changed
  24142. }
  24143. func (d *Decoder) fastpathDecMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  24144. if rv.Kind() == reflect.Ptr {
  24145. vp := rv2i(rv).(*map[uint32]uint)
  24146. v, changed := fastpathTV.DecMapUint32UintV(*vp, true, d)
  24147. if changed {
  24148. *vp = v
  24149. }
  24150. } else {
  24151. fastpathTV.DecMapUint32UintV(rv2i(rv).(map[uint32]uint), false, d)
  24152. }
  24153. }
  24154. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, d *Decoder) {
  24155. v, changed := f.DecMapUint32UintV(*vp, true, d)
  24156. if changed {
  24157. *vp = v
  24158. }
  24159. }
  24160. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, canChange bool,
  24161. d *Decoder) (_ map[uint32]uint, changed bool) {
  24162. dd, esep := d.d, d.hh.hasElemSeparators()
  24163. containerLen := dd.ReadMapStart()
  24164. if canChange && v == nil {
  24165. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24166. v = make(map[uint32]uint, xlen)
  24167. changed = true
  24168. }
  24169. if containerLen == 0 {
  24170. dd.ReadMapEnd()
  24171. return v, changed
  24172. }
  24173. var mk uint32
  24174. var mv uint
  24175. hasLen := containerLen > 0
  24176. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24177. if esep {
  24178. dd.ReadMapElemKey()
  24179. }
  24180. mk = uint32(dd.DecodeUint(32))
  24181. if esep {
  24182. dd.ReadMapElemValue()
  24183. }
  24184. if dd.TryDecodeAsNil() {
  24185. if v == nil {
  24186. } else if d.h.DeleteOnNilMapValue {
  24187. delete(v, mk)
  24188. } else {
  24189. v[mk] = 0
  24190. }
  24191. continue
  24192. }
  24193. mv = uint(dd.DecodeUint(uintBitsize))
  24194. if v != nil {
  24195. v[mk] = mv
  24196. }
  24197. }
  24198. dd.ReadMapEnd()
  24199. return v, changed
  24200. }
  24201. func (d *Decoder) fastpathDecMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  24202. if rv.Kind() == reflect.Ptr {
  24203. vp := rv2i(rv).(*map[uint32]uint8)
  24204. v, changed := fastpathTV.DecMapUint32Uint8V(*vp, true, d)
  24205. if changed {
  24206. *vp = v
  24207. }
  24208. } else {
  24209. fastpathTV.DecMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), false, d)
  24210. }
  24211. }
  24212. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, d *Decoder) {
  24213. v, changed := f.DecMapUint32Uint8V(*vp, true, d)
  24214. if changed {
  24215. *vp = v
  24216. }
  24217. }
  24218. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, canChange bool,
  24219. d *Decoder) (_ map[uint32]uint8, changed bool) {
  24220. dd, esep := d.d, d.hh.hasElemSeparators()
  24221. containerLen := dd.ReadMapStart()
  24222. if canChange && v == nil {
  24223. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24224. v = make(map[uint32]uint8, xlen)
  24225. changed = true
  24226. }
  24227. if containerLen == 0 {
  24228. dd.ReadMapEnd()
  24229. return v, changed
  24230. }
  24231. var mk uint32
  24232. var mv uint8
  24233. hasLen := containerLen > 0
  24234. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24235. if esep {
  24236. dd.ReadMapElemKey()
  24237. }
  24238. mk = uint32(dd.DecodeUint(32))
  24239. if esep {
  24240. dd.ReadMapElemValue()
  24241. }
  24242. if dd.TryDecodeAsNil() {
  24243. if v == nil {
  24244. } else if d.h.DeleteOnNilMapValue {
  24245. delete(v, mk)
  24246. } else {
  24247. v[mk] = 0
  24248. }
  24249. continue
  24250. }
  24251. mv = uint8(dd.DecodeUint(8))
  24252. if v != nil {
  24253. v[mk] = mv
  24254. }
  24255. }
  24256. dd.ReadMapEnd()
  24257. return v, changed
  24258. }
  24259. func (d *Decoder) fastpathDecMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  24260. if rv.Kind() == reflect.Ptr {
  24261. vp := rv2i(rv).(*map[uint32]uint16)
  24262. v, changed := fastpathTV.DecMapUint32Uint16V(*vp, true, d)
  24263. if changed {
  24264. *vp = v
  24265. }
  24266. } else {
  24267. fastpathTV.DecMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), false, d)
  24268. }
  24269. }
  24270. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, d *Decoder) {
  24271. v, changed := f.DecMapUint32Uint16V(*vp, true, d)
  24272. if changed {
  24273. *vp = v
  24274. }
  24275. }
  24276. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, canChange bool,
  24277. d *Decoder) (_ map[uint32]uint16, changed bool) {
  24278. dd, esep := d.d, d.hh.hasElemSeparators()
  24279. containerLen := dd.ReadMapStart()
  24280. if canChange && v == nil {
  24281. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  24282. v = make(map[uint32]uint16, xlen)
  24283. changed = true
  24284. }
  24285. if containerLen == 0 {
  24286. dd.ReadMapEnd()
  24287. return v, changed
  24288. }
  24289. var mk uint32
  24290. var mv uint16
  24291. hasLen := containerLen > 0
  24292. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24293. if esep {
  24294. dd.ReadMapElemKey()
  24295. }
  24296. mk = uint32(dd.DecodeUint(32))
  24297. if esep {
  24298. dd.ReadMapElemValue()
  24299. }
  24300. if dd.TryDecodeAsNil() {
  24301. if v == nil {
  24302. } else if d.h.DeleteOnNilMapValue {
  24303. delete(v, mk)
  24304. } else {
  24305. v[mk] = 0
  24306. }
  24307. continue
  24308. }
  24309. mv = uint16(dd.DecodeUint(16))
  24310. if v != nil {
  24311. v[mk] = mv
  24312. }
  24313. }
  24314. dd.ReadMapEnd()
  24315. return v, changed
  24316. }
  24317. func (d *Decoder) fastpathDecMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  24318. if rv.Kind() == reflect.Ptr {
  24319. vp := rv2i(rv).(*map[uint32]uint32)
  24320. v, changed := fastpathTV.DecMapUint32Uint32V(*vp, true, d)
  24321. if changed {
  24322. *vp = v
  24323. }
  24324. } else {
  24325. fastpathTV.DecMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), false, d)
  24326. }
  24327. }
  24328. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, d *Decoder) {
  24329. v, changed := f.DecMapUint32Uint32V(*vp, true, d)
  24330. if changed {
  24331. *vp = v
  24332. }
  24333. }
  24334. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, canChange bool,
  24335. d *Decoder) (_ map[uint32]uint32, changed bool) {
  24336. dd, esep := d.d, d.hh.hasElemSeparators()
  24337. containerLen := dd.ReadMapStart()
  24338. if canChange && v == nil {
  24339. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  24340. v = make(map[uint32]uint32, xlen)
  24341. changed = true
  24342. }
  24343. if containerLen == 0 {
  24344. dd.ReadMapEnd()
  24345. return v, changed
  24346. }
  24347. var mk uint32
  24348. var mv uint32
  24349. hasLen := containerLen > 0
  24350. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24351. if esep {
  24352. dd.ReadMapElemKey()
  24353. }
  24354. mk = uint32(dd.DecodeUint(32))
  24355. if esep {
  24356. dd.ReadMapElemValue()
  24357. }
  24358. if dd.TryDecodeAsNil() {
  24359. if v == nil {
  24360. } else if d.h.DeleteOnNilMapValue {
  24361. delete(v, mk)
  24362. } else {
  24363. v[mk] = 0
  24364. }
  24365. continue
  24366. }
  24367. mv = uint32(dd.DecodeUint(32))
  24368. if v != nil {
  24369. v[mk] = mv
  24370. }
  24371. }
  24372. dd.ReadMapEnd()
  24373. return v, changed
  24374. }
  24375. func (d *Decoder) fastpathDecMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  24376. if rv.Kind() == reflect.Ptr {
  24377. vp := rv2i(rv).(*map[uint32]uint64)
  24378. v, changed := fastpathTV.DecMapUint32Uint64V(*vp, true, d)
  24379. if changed {
  24380. *vp = v
  24381. }
  24382. } else {
  24383. fastpathTV.DecMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), false, d)
  24384. }
  24385. }
  24386. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, d *Decoder) {
  24387. v, changed := f.DecMapUint32Uint64V(*vp, true, d)
  24388. if changed {
  24389. *vp = v
  24390. }
  24391. }
  24392. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, canChange bool,
  24393. d *Decoder) (_ map[uint32]uint64, changed bool) {
  24394. dd, esep := d.d, d.hh.hasElemSeparators()
  24395. containerLen := dd.ReadMapStart()
  24396. if canChange && v == nil {
  24397. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24398. v = make(map[uint32]uint64, xlen)
  24399. changed = true
  24400. }
  24401. if containerLen == 0 {
  24402. dd.ReadMapEnd()
  24403. return v, changed
  24404. }
  24405. var mk uint32
  24406. var mv uint64
  24407. hasLen := containerLen > 0
  24408. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24409. if esep {
  24410. dd.ReadMapElemKey()
  24411. }
  24412. mk = uint32(dd.DecodeUint(32))
  24413. if esep {
  24414. dd.ReadMapElemValue()
  24415. }
  24416. if dd.TryDecodeAsNil() {
  24417. if v == nil {
  24418. } else if d.h.DeleteOnNilMapValue {
  24419. delete(v, mk)
  24420. } else {
  24421. v[mk] = 0
  24422. }
  24423. continue
  24424. }
  24425. mv = dd.DecodeUint(64)
  24426. if v != nil {
  24427. v[mk] = mv
  24428. }
  24429. }
  24430. dd.ReadMapEnd()
  24431. return v, changed
  24432. }
  24433. func (d *Decoder) fastpathDecMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  24434. if rv.Kind() == reflect.Ptr {
  24435. vp := rv2i(rv).(*map[uint32]uintptr)
  24436. v, changed := fastpathTV.DecMapUint32UintptrV(*vp, true, d)
  24437. if changed {
  24438. *vp = v
  24439. }
  24440. } else {
  24441. fastpathTV.DecMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), false, d)
  24442. }
  24443. }
  24444. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, d *Decoder) {
  24445. v, changed := f.DecMapUint32UintptrV(*vp, true, d)
  24446. if changed {
  24447. *vp = v
  24448. }
  24449. }
  24450. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, canChange bool,
  24451. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  24452. dd, esep := d.d, d.hh.hasElemSeparators()
  24453. containerLen := dd.ReadMapStart()
  24454. if canChange && v == nil {
  24455. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24456. v = make(map[uint32]uintptr, xlen)
  24457. changed = true
  24458. }
  24459. if containerLen == 0 {
  24460. dd.ReadMapEnd()
  24461. return v, changed
  24462. }
  24463. var mk uint32
  24464. var mv uintptr
  24465. hasLen := containerLen > 0
  24466. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24467. if esep {
  24468. dd.ReadMapElemKey()
  24469. }
  24470. mk = uint32(dd.DecodeUint(32))
  24471. if esep {
  24472. dd.ReadMapElemValue()
  24473. }
  24474. if dd.TryDecodeAsNil() {
  24475. if v == nil {
  24476. } else if d.h.DeleteOnNilMapValue {
  24477. delete(v, mk)
  24478. } else {
  24479. v[mk] = 0
  24480. }
  24481. continue
  24482. }
  24483. mv = uintptr(dd.DecodeUint(uintBitsize))
  24484. if v != nil {
  24485. v[mk] = mv
  24486. }
  24487. }
  24488. dd.ReadMapEnd()
  24489. return v, changed
  24490. }
  24491. func (d *Decoder) fastpathDecMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  24492. if rv.Kind() == reflect.Ptr {
  24493. vp := rv2i(rv).(*map[uint32]int)
  24494. v, changed := fastpathTV.DecMapUint32IntV(*vp, true, d)
  24495. if changed {
  24496. *vp = v
  24497. }
  24498. } else {
  24499. fastpathTV.DecMapUint32IntV(rv2i(rv).(map[uint32]int), false, d)
  24500. }
  24501. }
  24502. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, d *Decoder) {
  24503. v, changed := f.DecMapUint32IntV(*vp, true, d)
  24504. if changed {
  24505. *vp = v
  24506. }
  24507. }
  24508. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, canChange bool,
  24509. d *Decoder) (_ map[uint32]int, changed bool) {
  24510. dd, esep := d.d, d.hh.hasElemSeparators()
  24511. containerLen := dd.ReadMapStart()
  24512. if canChange && v == nil {
  24513. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24514. v = make(map[uint32]int, xlen)
  24515. changed = true
  24516. }
  24517. if containerLen == 0 {
  24518. dd.ReadMapEnd()
  24519. return v, changed
  24520. }
  24521. var mk uint32
  24522. var mv int
  24523. hasLen := containerLen > 0
  24524. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24525. if esep {
  24526. dd.ReadMapElemKey()
  24527. }
  24528. mk = uint32(dd.DecodeUint(32))
  24529. if esep {
  24530. dd.ReadMapElemValue()
  24531. }
  24532. if dd.TryDecodeAsNil() {
  24533. if v == nil {
  24534. } else if d.h.DeleteOnNilMapValue {
  24535. delete(v, mk)
  24536. } else {
  24537. v[mk] = 0
  24538. }
  24539. continue
  24540. }
  24541. mv = int(dd.DecodeInt(intBitsize))
  24542. if v != nil {
  24543. v[mk] = mv
  24544. }
  24545. }
  24546. dd.ReadMapEnd()
  24547. return v, changed
  24548. }
  24549. func (d *Decoder) fastpathDecMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  24550. if rv.Kind() == reflect.Ptr {
  24551. vp := rv2i(rv).(*map[uint32]int8)
  24552. v, changed := fastpathTV.DecMapUint32Int8V(*vp, true, d)
  24553. if changed {
  24554. *vp = v
  24555. }
  24556. } else {
  24557. fastpathTV.DecMapUint32Int8V(rv2i(rv).(map[uint32]int8), false, d)
  24558. }
  24559. }
  24560. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, d *Decoder) {
  24561. v, changed := f.DecMapUint32Int8V(*vp, true, d)
  24562. if changed {
  24563. *vp = v
  24564. }
  24565. }
  24566. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, canChange bool,
  24567. d *Decoder) (_ map[uint32]int8, changed bool) {
  24568. dd, esep := d.d, d.hh.hasElemSeparators()
  24569. containerLen := dd.ReadMapStart()
  24570. if canChange && v == nil {
  24571. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24572. v = make(map[uint32]int8, xlen)
  24573. changed = true
  24574. }
  24575. if containerLen == 0 {
  24576. dd.ReadMapEnd()
  24577. return v, changed
  24578. }
  24579. var mk uint32
  24580. var mv int8
  24581. hasLen := containerLen > 0
  24582. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24583. if esep {
  24584. dd.ReadMapElemKey()
  24585. }
  24586. mk = uint32(dd.DecodeUint(32))
  24587. if esep {
  24588. dd.ReadMapElemValue()
  24589. }
  24590. if dd.TryDecodeAsNil() {
  24591. if v == nil {
  24592. } else if d.h.DeleteOnNilMapValue {
  24593. delete(v, mk)
  24594. } else {
  24595. v[mk] = 0
  24596. }
  24597. continue
  24598. }
  24599. mv = int8(dd.DecodeInt(8))
  24600. if v != nil {
  24601. v[mk] = mv
  24602. }
  24603. }
  24604. dd.ReadMapEnd()
  24605. return v, changed
  24606. }
  24607. func (d *Decoder) fastpathDecMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  24608. if rv.Kind() == reflect.Ptr {
  24609. vp := rv2i(rv).(*map[uint32]int16)
  24610. v, changed := fastpathTV.DecMapUint32Int16V(*vp, true, d)
  24611. if changed {
  24612. *vp = v
  24613. }
  24614. } else {
  24615. fastpathTV.DecMapUint32Int16V(rv2i(rv).(map[uint32]int16), false, d)
  24616. }
  24617. }
  24618. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, d *Decoder) {
  24619. v, changed := f.DecMapUint32Int16V(*vp, true, d)
  24620. if changed {
  24621. *vp = v
  24622. }
  24623. }
  24624. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, canChange bool,
  24625. d *Decoder) (_ map[uint32]int16, changed bool) {
  24626. dd, esep := d.d, d.hh.hasElemSeparators()
  24627. containerLen := dd.ReadMapStart()
  24628. if canChange && v == nil {
  24629. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  24630. v = make(map[uint32]int16, xlen)
  24631. changed = true
  24632. }
  24633. if containerLen == 0 {
  24634. dd.ReadMapEnd()
  24635. return v, changed
  24636. }
  24637. var mk uint32
  24638. var mv int16
  24639. hasLen := containerLen > 0
  24640. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24641. if esep {
  24642. dd.ReadMapElemKey()
  24643. }
  24644. mk = uint32(dd.DecodeUint(32))
  24645. if esep {
  24646. dd.ReadMapElemValue()
  24647. }
  24648. if dd.TryDecodeAsNil() {
  24649. if v == nil {
  24650. } else if d.h.DeleteOnNilMapValue {
  24651. delete(v, mk)
  24652. } else {
  24653. v[mk] = 0
  24654. }
  24655. continue
  24656. }
  24657. mv = int16(dd.DecodeInt(16))
  24658. if v != nil {
  24659. v[mk] = mv
  24660. }
  24661. }
  24662. dd.ReadMapEnd()
  24663. return v, changed
  24664. }
  24665. func (d *Decoder) fastpathDecMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  24666. if rv.Kind() == reflect.Ptr {
  24667. vp := rv2i(rv).(*map[uint32]int32)
  24668. v, changed := fastpathTV.DecMapUint32Int32V(*vp, true, d)
  24669. if changed {
  24670. *vp = v
  24671. }
  24672. } else {
  24673. fastpathTV.DecMapUint32Int32V(rv2i(rv).(map[uint32]int32), false, d)
  24674. }
  24675. }
  24676. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, d *Decoder) {
  24677. v, changed := f.DecMapUint32Int32V(*vp, true, d)
  24678. if changed {
  24679. *vp = v
  24680. }
  24681. }
  24682. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, canChange bool,
  24683. d *Decoder) (_ map[uint32]int32, changed bool) {
  24684. dd, esep := d.d, d.hh.hasElemSeparators()
  24685. containerLen := dd.ReadMapStart()
  24686. if canChange && v == nil {
  24687. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  24688. v = make(map[uint32]int32, xlen)
  24689. changed = true
  24690. }
  24691. if containerLen == 0 {
  24692. dd.ReadMapEnd()
  24693. return v, changed
  24694. }
  24695. var mk uint32
  24696. var mv int32
  24697. hasLen := containerLen > 0
  24698. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24699. if esep {
  24700. dd.ReadMapElemKey()
  24701. }
  24702. mk = uint32(dd.DecodeUint(32))
  24703. if esep {
  24704. dd.ReadMapElemValue()
  24705. }
  24706. if dd.TryDecodeAsNil() {
  24707. if v == nil {
  24708. } else if d.h.DeleteOnNilMapValue {
  24709. delete(v, mk)
  24710. } else {
  24711. v[mk] = 0
  24712. }
  24713. continue
  24714. }
  24715. mv = int32(dd.DecodeInt(32))
  24716. if v != nil {
  24717. v[mk] = mv
  24718. }
  24719. }
  24720. dd.ReadMapEnd()
  24721. return v, changed
  24722. }
  24723. func (d *Decoder) fastpathDecMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  24724. if rv.Kind() == reflect.Ptr {
  24725. vp := rv2i(rv).(*map[uint32]int64)
  24726. v, changed := fastpathTV.DecMapUint32Int64V(*vp, true, d)
  24727. if changed {
  24728. *vp = v
  24729. }
  24730. } else {
  24731. fastpathTV.DecMapUint32Int64V(rv2i(rv).(map[uint32]int64), false, d)
  24732. }
  24733. }
  24734. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, d *Decoder) {
  24735. v, changed := f.DecMapUint32Int64V(*vp, true, d)
  24736. if changed {
  24737. *vp = v
  24738. }
  24739. }
  24740. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, canChange bool,
  24741. d *Decoder) (_ map[uint32]int64, changed bool) {
  24742. dd, esep := d.d, d.hh.hasElemSeparators()
  24743. containerLen := dd.ReadMapStart()
  24744. if canChange && v == nil {
  24745. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24746. v = make(map[uint32]int64, xlen)
  24747. changed = true
  24748. }
  24749. if containerLen == 0 {
  24750. dd.ReadMapEnd()
  24751. return v, changed
  24752. }
  24753. var mk uint32
  24754. var mv int64
  24755. hasLen := containerLen > 0
  24756. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24757. if esep {
  24758. dd.ReadMapElemKey()
  24759. }
  24760. mk = uint32(dd.DecodeUint(32))
  24761. if esep {
  24762. dd.ReadMapElemValue()
  24763. }
  24764. if dd.TryDecodeAsNil() {
  24765. if v == nil {
  24766. } else if d.h.DeleteOnNilMapValue {
  24767. delete(v, mk)
  24768. } else {
  24769. v[mk] = 0
  24770. }
  24771. continue
  24772. }
  24773. mv = dd.DecodeInt(64)
  24774. if v != nil {
  24775. v[mk] = mv
  24776. }
  24777. }
  24778. dd.ReadMapEnd()
  24779. return v, changed
  24780. }
  24781. func (d *Decoder) fastpathDecMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  24782. if rv.Kind() == reflect.Ptr {
  24783. vp := rv2i(rv).(*map[uint32]float32)
  24784. v, changed := fastpathTV.DecMapUint32Float32V(*vp, true, d)
  24785. if changed {
  24786. *vp = v
  24787. }
  24788. } else {
  24789. fastpathTV.DecMapUint32Float32V(rv2i(rv).(map[uint32]float32), false, d)
  24790. }
  24791. }
  24792. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, d *Decoder) {
  24793. v, changed := f.DecMapUint32Float32V(*vp, true, d)
  24794. if changed {
  24795. *vp = v
  24796. }
  24797. }
  24798. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, canChange bool,
  24799. d *Decoder) (_ map[uint32]float32, changed bool) {
  24800. dd, esep := d.d, d.hh.hasElemSeparators()
  24801. containerLen := dd.ReadMapStart()
  24802. if canChange && v == nil {
  24803. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  24804. v = make(map[uint32]float32, xlen)
  24805. changed = true
  24806. }
  24807. if containerLen == 0 {
  24808. dd.ReadMapEnd()
  24809. return v, changed
  24810. }
  24811. var mk uint32
  24812. var mv float32
  24813. hasLen := containerLen > 0
  24814. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24815. if esep {
  24816. dd.ReadMapElemKey()
  24817. }
  24818. mk = uint32(dd.DecodeUint(32))
  24819. if esep {
  24820. dd.ReadMapElemValue()
  24821. }
  24822. if dd.TryDecodeAsNil() {
  24823. if v == nil {
  24824. } else if d.h.DeleteOnNilMapValue {
  24825. delete(v, mk)
  24826. } else {
  24827. v[mk] = 0
  24828. }
  24829. continue
  24830. }
  24831. mv = float32(chkFloat32(dd.DecodeFloat64()))
  24832. if v != nil {
  24833. v[mk] = mv
  24834. }
  24835. }
  24836. dd.ReadMapEnd()
  24837. return v, changed
  24838. }
  24839. func (d *Decoder) fastpathDecMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  24840. if rv.Kind() == reflect.Ptr {
  24841. vp := rv2i(rv).(*map[uint32]float64)
  24842. v, changed := fastpathTV.DecMapUint32Float64V(*vp, true, d)
  24843. if changed {
  24844. *vp = v
  24845. }
  24846. } else {
  24847. fastpathTV.DecMapUint32Float64V(rv2i(rv).(map[uint32]float64), false, d)
  24848. }
  24849. }
  24850. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, d *Decoder) {
  24851. v, changed := f.DecMapUint32Float64V(*vp, true, d)
  24852. if changed {
  24853. *vp = v
  24854. }
  24855. }
  24856. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, canChange bool,
  24857. d *Decoder) (_ map[uint32]float64, changed bool) {
  24858. dd, esep := d.d, d.hh.hasElemSeparators()
  24859. containerLen := dd.ReadMapStart()
  24860. if canChange && v == nil {
  24861. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24862. v = make(map[uint32]float64, xlen)
  24863. changed = true
  24864. }
  24865. if containerLen == 0 {
  24866. dd.ReadMapEnd()
  24867. return v, changed
  24868. }
  24869. var mk uint32
  24870. var mv float64
  24871. hasLen := containerLen > 0
  24872. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24873. if esep {
  24874. dd.ReadMapElemKey()
  24875. }
  24876. mk = uint32(dd.DecodeUint(32))
  24877. if esep {
  24878. dd.ReadMapElemValue()
  24879. }
  24880. if dd.TryDecodeAsNil() {
  24881. if v == nil {
  24882. } else if d.h.DeleteOnNilMapValue {
  24883. delete(v, mk)
  24884. } else {
  24885. v[mk] = 0
  24886. }
  24887. continue
  24888. }
  24889. mv = dd.DecodeFloat64()
  24890. if v != nil {
  24891. v[mk] = mv
  24892. }
  24893. }
  24894. dd.ReadMapEnd()
  24895. return v, changed
  24896. }
  24897. func (d *Decoder) fastpathDecMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  24898. if rv.Kind() == reflect.Ptr {
  24899. vp := rv2i(rv).(*map[uint32]bool)
  24900. v, changed := fastpathTV.DecMapUint32BoolV(*vp, true, d)
  24901. if changed {
  24902. *vp = v
  24903. }
  24904. } else {
  24905. fastpathTV.DecMapUint32BoolV(rv2i(rv).(map[uint32]bool), false, d)
  24906. }
  24907. }
  24908. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, d *Decoder) {
  24909. v, changed := f.DecMapUint32BoolV(*vp, true, d)
  24910. if changed {
  24911. *vp = v
  24912. }
  24913. }
  24914. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, canChange bool,
  24915. d *Decoder) (_ map[uint32]bool, changed bool) {
  24916. dd, esep := d.d, d.hh.hasElemSeparators()
  24917. containerLen := dd.ReadMapStart()
  24918. if canChange && v == nil {
  24919. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24920. v = make(map[uint32]bool, xlen)
  24921. changed = true
  24922. }
  24923. if containerLen == 0 {
  24924. dd.ReadMapEnd()
  24925. return v, changed
  24926. }
  24927. var mk uint32
  24928. var mv bool
  24929. hasLen := containerLen > 0
  24930. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24931. if esep {
  24932. dd.ReadMapElemKey()
  24933. }
  24934. mk = uint32(dd.DecodeUint(32))
  24935. if esep {
  24936. dd.ReadMapElemValue()
  24937. }
  24938. if dd.TryDecodeAsNil() {
  24939. if v == nil {
  24940. } else if d.h.DeleteOnNilMapValue {
  24941. delete(v, mk)
  24942. } else {
  24943. v[mk] = false
  24944. }
  24945. continue
  24946. }
  24947. mv = dd.DecodeBool()
  24948. if v != nil {
  24949. v[mk] = mv
  24950. }
  24951. }
  24952. dd.ReadMapEnd()
  24953. return v, changed
  24954. }
  24955. func (d *Decoder) fastpathDecMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  24956. if rv.Kind() == reflect.Ptr {
  24957. vp := rv2i(rv).(*map[uint64]interface{})
  24958. v, changed := fastpathTV.DecMapUint64IntfV(*vp, true, d)
  24959. if changed {
  24960. *vp = v
  24961. }
  24962. } else {
  24963. fastpathTV.DecMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), false, d)
  24964. }
  24965. }
  24966. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, d *Decoder) {
  24967. v, changed := f.DecMapUint64IntfV(*vp, true, d)
  24968. if changed {
  24969. *vp = v
  24970. }
  24971. }
  24972. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, canChange bool,
  24973. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  24974. dd, esep := d.d, d.hh.hasElemSeparators()
  24975. containerLen := dd.ReadMapStart()
  24976. if canChange && v == nil {
  24977. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  24978. v = make(map[uint64]interface{}, xlen)
  24979. changed = true
  24980. }
  24981. if containerLen == 0 {
  24982. dd.ReadMapEnd()
  24983. return v, changed
  24984. }
  24985. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  24986. var mk uint64
  24987. var mv interface{}
  24988. hasLen := containerLen > 0
  24989. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24990. if esep {
  24991. dd.ReadMapElemKey()
  24992. }
  24993. mk = dd.DecodeUint(64)
  24994. if esep {
  24995. dd.ReadMapElemValue()
  24996. }
  24997. if dd.TryDecodeAsNil() {
  24998. if v == nil {
  24999. } else if d.h.DeleteOnNilMapValue {
  25000. delete(v, mk)
  25001. } else {
  25002. v[mk] = nil
  25003. }
  25004. continue
  25005. }
  25006. if mapGet {
  25007. mv = v[mk]
  25008. } else {
  25009. mv = nil
  25010. }
  25011. d.decode(&mv)
  25012. if v != nil {
  25013. v[mk] = mv
  25014. }
  25015. }
  25016. dd.ReadMapEnd()
  25017. return v, changed
  25018. }
  25019. func (d *Decoder) fastpathDecMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  25020. if rv.Kind() == reflect.Ptr {
  25021. vp := rv2i(rv).(*map[uint64]string)
  25022. v, changed := fastpathTV.DecMapUint64StringV(*vp, true, d)
  25023. if changed {
  25024. *vp = v
  25025. }
  25026. } else {
  25027. fastpathTV.DecMapUint64StringV(rv2i(rv).(map[uint64]string), false, d)
  25028. }
  25029. }
  25030. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, d *Decoder) {
  25031. v, changed := f.DecMapUint64StringV(*vp, true, d)
  25032. if changed {
  25033. *vp = v
  25034. }
  25035. }
  25036. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, canChange bool,
  25037. d *Decoder) (_ map[uint64]string, changed bool) {
  25038. dd, esep := d.d, d.hh.hasElemSeparators()
  25039. containerLen := dd.ReadMapStart()
  25040. if canChange && v == nil {
  25041. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  25042. v = make(map[uint64]string, xlen)
  25043. changed = true
  25044. }
  25045. if containerLen == 0 {
  25046. dd.ReadMapEnd()
  25047. return v, changed
  25048. }
  25049. var mk uint64
  25050. var mv string
  25051. hasLen := containerLen > 0
  25052. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25053. if esep {
  25054. dd.ReadMapElemKey()
  25055. }
  25056. mk = dd.DecodeUint(64)
  25057. if esep {
  25058. dd.ReadMapElemValue()
  25059. }
  25060. if dd.TryDecodeAsNil() {
  25061. if v == nil {
  25062. } else if d.h.DeleteOnNilMapValue {
  25063. delete(v, mk)
  25064. } else {
  25065. v[mk] = ""
  25066. }
  25067. continue
  25068. }
  25069. mv = dd.DecodeString()
  25070. if v != nil {
  25071. v[mk] = mv
  25072. }
  25073. }
  25074. dd.ReadMapEnd()
  25075. return v, changed
  25076. }
  25077. func (d *Decoder) fastpathDecMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  25078. if rv.Kind() == reflect.Ptr {
  25079. vp := rv2i(rv).(*map[uint64]uint)
  25080. v, changed := fastpathTV.DecMapUint64UintV(*vp, true, d)
  25081. if changed {
  25082. *vp = v
  25083. }
  25084. } else {
  25085. fastpathTV.DecMapUint64UintV(rv2i(rv).(map[uint64]uint), false, d)
  25086. }
  25087. }
  25088. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, d *Decoder) {
  25089. v, changed := f.DecMapUint64UintV(*vp, true, d)
  25090. if changed {
  25091. *vp = v
  25092. }
  25093. }
  25094. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, canChange bool,
  25095. d *Decoder) (_ map[uint64]uint, changed bool) {
  25096. dd, esep := d.d, d.hh.hasElemSeparators()
  25097. containerLen := dd.ReadMapStart()
  25098. if canChange && v == nil {
  25099. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25100. v = make(map[uint64]uint, xlen)
  25101. changed = true
  25102. }
  25103. if containerLen == 0 {
  25104. dd.ReadMapEnd()
  25105. return v, changed
  25106. }
  25107. var mk uint64
  25108. var mv uint
  25109. hasLen := containerLen > 0
  25110. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25111. if esep {
  25112. dd.ReadMapElemKey()
  25113. }
  25114. mk = dd.DecodeUint(64)
  25115. if esep {
  25116. dd.ReadMapElemValue()
  25117. }
  25118. if dd.TryDecodeAsNil() {
  25119. if v == nil {
  25120. } else if d.h.DeleteOnNilMapValue {
  25121. delete(v, mk)
  25122. } else {
  25123. v[mk] = 0
  25124. }
  25125. continue
  25126. }
  25127. mv = uint(dd.DecodeUint(uintBitsize))
  25128. if v != nil {
  25129. v[mk] = mv
  25130. }
  25131. }
  25132. dd.ReadMapEnd()
  25133. return v, changed
  25134. }
  25135. func (d *Decoder) fastpathDecMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  25136. if rv.Kind() == reflect.Ptr {
  25137. vp := rv2i(rv).(*map[uint64]uint8)
  25138. v, changed := fastpathTV.DecMapUint64Uint8V(*vp, true, d)
  25139. if changed {
  25140. *vp = v
  25141. }
  25142. } else {
  25143. fastpathTV.DecMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), false, d)
  25144. }
  25145. }
  25146. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, d *Decoder) {
  25147. v, changed := f.DecMapUint64Uint8V(*vp, true, d)
  25148. if changed {
  25149. *vp = v
  25150. }
  25151. }
  25152. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, canChange bool,
  25153. d *Decoder) (_ map[uint64]uint8, changed bool) {
  25154. dd, esep := d.d, d.hh.hasElemSeparators()
  25155. containerLen := dd.ReadMapStart()
  25156. if canChange && v == nil {
  25157. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25158. v = make(map[uint64]uint8, xlen)
  25159. changed = true
  25160. }
  25161. if containerLen == 0 {
  25162. dd.ReadMapEnd()
  25163. return v, changed
  25164. }
  25165. var mk uint64
  25166. var mv uint8
  25167. hasLen := containerLen > 0
  25168. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25169. if esep {
  25170. dd.ReadMapElemKey()
  25171. }
  25172. mk = dd.DecodeUint(64)
  25173. if esep {
  25174. dd.ReadMapElemValue()
  25175. }
  25176. if dd.TryDecodeAsNil() {
  25177. if v == nil {
  25178. } else if d.h.DeleteOnNilMapValue {
  25179. delete(v, mk)
  25180. } else {
  25181. v[mk] = 0
  25182. }
  25183. continue
  25184. }
  25185. mv = uint8(dd.DecodeUint(8))
  25186. if v != nil {
  25187. v[mk] = mv
  25188. }
  25189. }
  25190. dd.ReadMapEnd()
  25191. return v, changed
  25192. }
  25193. func (d *Decoder) fastpathDecMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  25194. if rv.Kind() == reflect.Ptr {
  25195. vp := rv2i(rv).(*map[uint64]uint16)
  25196. v, changed := fastpathTV.DecMapUint64Uint16V(*vp, true, d)
  25197. if changed {
  25198. *vp = v
  25199. }
  25200. } else {
  25201. fastpathTV.DecMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), false, d)
  25202. }
  25203. }
  25204. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, d *Decoder) {
  25205. v, changed := f.DecMapUint64Uint16V(*vp, true, d)
  25206. if changed {
  25207. *vp = v
  25208. }
  25209. }
  25210. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, canChange bool,
  25211. d *Decoder) (_ map[uint64]uint16, changed bool) {
  25212. dd, esep := d.d, d.hh.hasElemSeparators()
  25213. containerLen := dd.ReadMapStart()
  25214. if canChange && v == nil {
  25215. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25216. v = make(map[uint64]uint16, xlen)
  25217. changed = true
  25218. }
  25219. if containerLen == 0 {
  25220. dd.ReadMapEnd()
  25221. return v, changed
  25222. }
  25223. var mk uint64
  25224. var mv uint16
  25225. hasLen := containerLen > 0
  25226. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25227. if esep {
  25228. dd.ReadMapElemKey()
  25229. }
  25230. mk = dd.DecodeUint(64)
  25231. if esep {
  25232. dd.ReadMapElemValue()
  25233. }
  25234. if dd.TryDecodeAsNil() {
  25235. if v == nil {
  25236. } else if d.h.DeleteOnNilMapValue {
  25237. delete(v, mk)
  25238. } else {
  25239. v[mk] = 0
  25240. }
  25241. continue
  25242. }
  25243. mv = uint16(dd.DecodeUint(16))
  25244. if v != nil {
  25245. v[mk] = mv
  25246. }
  25247. }
  25248. dd.ReadMapEnd()
  25249. return v, changed
  25250. }
  25251. func (d *Decoder) fastpathDecMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  25252. if rv.Kind() == reflect.Ptr {
  25253. vp := rv2i(rv).(*map[uint64]uint32)
  25254. v, changed := fastpathTV.DecMapUint64Uint32V(*vp, true, d)
  25255. if changed {
  25256. *vp = v
  25257. }
  25258. } else {
  25259. fastpathTV.DecMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), false, d)
  25260. }
  25261. }
  25262. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, d *Decoder) {
  25263. v, changed := f.DecMapUint64Uint32V(*vp, true, d)
  25264. if changed {
  25265. *vp = v
  25266. }
  25267. }
  25268. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, canChange bool,
  25269. d *Decoder) (_ map[uint64]uint32, changed bool) {
  25270. dd, esep := d.d, d.hh.hasElemSeparators()
  25271. containerLen := dd.ReadMapStart()
  25272. if canChange && v == nil {
  25273. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25274. v = make(map[uint64]uint32, xlen)
  25275. changed = true
  25276. }
  25277. if containerLen == 0 {
  25278. dd.ReadMapEnd()
  25279. return v, changed
  25280. }
  25281. var mk uint64
  25282. var mv uint32
  25283. hasLen := containerLen > 0
  25284. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25285. if esep {
  25286. dd.ReadMapElemKey()
  25287. }
  25288. mk = dd.DecodeUint(64)
  25289. if esep {
  25290. dd.ReadMapElemValue()
  25291. }
  25292. if dd.TryDecodeAsNil() {
  25293. if v == nil {
  25294. } else if d.h.DeleteOnNilMapValue {
  25295. delete(v, mk)
  25296. } else {
  25297. v[mk] = 0
  25298. }
  25299. continue
  25300. }
  25301. mv = uint32(dd.DecodeUint(32))
  25302. if v != nil {
  25303. v[mk] = mv
  25304. }
  25305. }
  25306. dd.ReadMapEnd()
  25307. return v, changed
  25308. }
  25309. func (d *Decoder) fastpathDecMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  25310. if rv.Kind() == reflect.Ptr {
  25311. vp := rv2i(rv).(*map[uint64]uint64)
  25312. v, changed := fastpathTV.DecMapUint64Uint64V(*vp, true, d)
  25313. if changed {
  25314. *vp = v
  25315. }
  25316. } else {
  25317. fastpathTV.DecMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), false, d)
  25318. }
  25319. }
  25320. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, d *Decoder) {
  25321. v, changed := f.DecMapUint64Uint64V(*vp, true, d)
  25322. if changed {
  25323. *vp = v
  25324. }
  25325. }
  25326. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, canChange bool,
  25327. d *Decoder) (_ map[uint64]uint64, changed bool) {
  25328. dd, esep := d.d, d.hh.hasElemSeparators()
  25329. containerLen := dd.ReadMapStart()
  25330. if canChange && v == nil {
  25331. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25332. v = make(map[uint64]uint64, xlen)
  25333. changed = true
  25334. }
  25335. if containerLen == 0 {
  25336. dd.ReadMapEnd()
  25337. return v, changed
  25338. }
  25339. var mk uint64
  25340. var mv uint64
  25341. hasLen := containerLen > 0
  25342. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25343. if esep {
  25344. dd.ReadMapElemKey()
  25345. }
  25346. mk = dd.DecodeUint(64)
  25347. if esep {
  25348. dd.ReadMapElemValue()
  25349. }
  25350. if dd.TryDecodeAsNil() {
  25351. if v == nil {
  25352. } else if d.h.DeleteOnNilMapValue {
  25353. delete(v, mk)
  25354. } else {
  25355. v[mk] = 0
  25356. }
  25357. continue
  25358. }
  25359. mv = dd.DecodeUint(64)
  25360. if v != nil {
  25361. v[mk] = mv
  25362. }
  25363. }
  25364. dd.ReadMapEnd()
  25365. return v, changed
  25366. }
  25367. func (d *Decoder) fastpathDecMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  25368. if rv.Kind() == reflect.Ptr {
  25369. vp := rv2i(rv).(*map[uint64]uintptr)
  25370. v, changed := fastpathTV.DecMapUint64UintptrV(*vp, true, d)
  25371. if changed {
  25372. *vp = v
  25373. }
  25374. } else {
  25375. fastpathTV.DecMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), false, d)
  25376. }
  25377. }
  25378. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, d *Decoder) {
  25379. v, changed := f.DecMapUint64UintptrV(*vp, true, d)
  25380. if changed {
  25381. *vp = v
  25382. }
  25383. }
  25384. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, canChange bool,
  25385. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  25386. dd, esep := d.d, d.hh.hasElemSeparators()
  25387. containerLen := dd.ReadMapStart()
  25388. if canChange && v == nil {
  25389. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25390. v = make(map[uint64]uintptr, xlen)
  25391. changed = true
  25392. }
  25393. if containerLen == 0 {
  25394. dd.ReadMapEnd()
  25395. return v, changed
  25396. }
  25397. var mk uint64
  25398. var mv uintptr
  25399. hasLen := containerLen > 0
  25400. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25401. if esep {
  25402. dd.ReadMapElemKey()
  25403. }
  25404. mk = dd.DecodeUint(64)
  25405. if esep {
  25406. dd.ReadMapElemValue()
  25407. }
  25408. if dd.TryDecodeAsNil() {
  25409. if v == nil {
  25410. } else if d.h.DeleteOnNilMapValue {
  25411. delete(v, mk)
  25412. } else {
  25413. v[mk] = 0
  25414. }
  25415. continue
  25416. }
  25417. mv = uintptr(dd.DecodeUint(uintBitsize))
  25418. if v != nil {
  25419. v[mk] = mv
  25420. }
  25421. }
  25422. dd.ReadMapEnd()
  25423. return v, changed
  25424. }
  25425. func (d *Decoder) fastpathDecMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  25426. if rv.Kind() == reflect.Ptr {
  25427. vp := rv2i(rv).(*map[uint64]int)
  25428. v, changed := fastpathTV.DecMapUint64IntV(*vp, true, d)
  25429. if changed {
  25430. *vp = v
  25431. }
  25432. } else {
  25433. fastpathTV.DecMapUint64IntV(rv2i(rv).(map[uint64]int), false, d)
  25434. }
  25435. }
  25436. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, d *Decoder) {
  25437. v, changed := f.DecMapUint64IntV(*vp, true, d)
  25438. if changed {
  25439. *vp = v
  25440. }
  25441. }
  25442. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, canChange bool,
  25443. d *Decoder) (_ map[uint64]int, changed bool) {
  25444. dd, esep := d.d, d.hh.hasElemSeparators()
  25445. containerLen := dd.ReadMapStart()
  25446. if canChange && v == nil {
  25447. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25448. v = make(map[uint64]int, xlen)
  25449. changed = true
  25450. }
  25451. if containerLen == 0 {
  25452. dd.ReadMapEnd()
  25453. return v, changed
  25454. }
  25455. var mk uint64
  25456. var mv int
  25457. hasLen := containerLen > 0
  25458. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25459. if esep {
  25460. dd.ReadMapElemKey()
  25461. }
  25462. mk = dd.DecodeUint(64)
  25463. if esep {
  25464. dd.ReadMapElemValue()
  25465. }
  25466. if dd.TryDecodeAsNil() {
  25467. if v == nil {
  25468. } else if d.h.DeleteOnNilMapValue {
  25469. delete(v, mk)
  25470. } else {
  25471. v[mk] = 0
  25472. }
  25473. continue
  25474. }
  25475. mv = int(dd.DecodeInt(intBitsize))
  25476. if v != nil {
  25477. v[mk] = mv
  25478. }
  25479. }
  25480. dd.ReadMapEnd()
  25481. return v, changed
  25482. }
  25483. func (d *Decoder) fastpathDecMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  25484. if rv.Kind() == reflect.Ptr {
  25485. vp := rv2i(rv).(*map[uint64]int8)
  25486. v, changed := fastpathTV.DecMapUint64Int8V(*vp, true, d)
  25487. if changed {
  25488. *vp = v
  25489. }
  25490. } else {
  25491. fastpathTV.DecMapUint64Int8V(rv2i(rv).(map[uint64]int8), false, d)
  25492. }
  25493. }
  25494. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, d *Decoder) {
  25495. v, changed := f.DecMapUint64Int8V(*vp, true, d)
  25496. if changed {
  25497. *vp = v
  25498. }
  25499. }
  25500. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, canChange bool,
  25501. d *Decoder) (_ map[uint64]int8, changed bool) {
  25502. dd, esep := d.d, d.hh.hasElemSeparators()
  25503. containerLen := dd.ReadMapStart()
  25504. if canChange && v == nil {
  25505. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25506. v = make(map[uint64]int8, xlen)
  25507. changed = true
  25508. }
  25509. if containerLen == 0 {
  25510. dd.ReadMapEnd()
  25511. return v, changed
  25512. }
  25513. var mk uint64
  25514. var mv int8
  25515. hasLen := containerLen > 0
  25516. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25517. if esep {
  25518. dd.ReadMapElemKey()
  25519. }
  25520. mk = dd.DecodeUint(64)
  25521. if esep {
  25522. dd.ReadMapElemValue()
  25523. }
  25524. if dd.TryDecodeAsNil() {
  25525. if v == nil {
  25526. } else if d.h.DeleteOnNilMapValue {
  25527. delete(v, mk)
  25528. } else {
  25529. v[mk] = 0
  25530. }
  25531. continue
  25532. }
  25533. mv = int8(dd.DecodeInt(8))
  25534. if v != nil {
  25535. v[mk] = mv
  25536. }
  25537. }
  25538. dd.ReadMapEnd()
  25539. return v, changed
  25540. }
  25541. func (d *Decoder) fastpathDecMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  25542. if rv.Kind() == reflect.Ptr {
  25543. vp := rv2i(rv).(*map[uint64]int16)
  25544. v, changed := fastpathTV.DecMapUint64Int16V(*vp, true, d)
  25545. if changed {
  25546. *vp = v
  25547. }
  25548. } else {
  25549. fastpathTV.DecMapUint64Int16V(rv2i(rv).(map[uint64]int16), false, d)
  25550. }
  25551. }
  25552. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, d *Decoder) {
  25553. v, changed := f.DecMapUint64Int16V(*vp, true, d)
  25554. if changed {
  25555. *vp = v
  25556. }
  25557. }
  25558. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, canChange bool,
  25559. d *Decoder) (_ map[uint64]int16, changed bool) {
  25560. dd, esep := d.d, d.hh.hasElemSeparators()
  25561. containerLen := dd.ReadMapStart()
  25562. if canChange && v == nil {
  25563. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25564. v = make(map[uint64]int16, xlen)
  25565. changed = true
  25566. }
  25567. if containerLen == 0 {
  25568. dd.ReadMapEnd()
  25569. return v, changed
  25570. }
  25571. var mk uint64
  25572. var mv int16
  25573. hasLen := containerLen > 0
  25574. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25575. if esep {
  25576. dd.ReadMapElemKey()
  25577. }
  25578. mk = dd.DecodeUint(64)
  25579. if esep {
  25580. dd.ReadMapElemValue()
  25581. }
  25582. if dd.TryDecodeAsNil() {
  25583. if v == nil {
  25584. } else if d.h.DeleteOnNilMapValue {
  25585. delete(v, mk)
  25586. } else {
  25587. v[mk] = 0
  25588. }
  25589. continue
  25590. }
  25591. mv = int16(dd.DecodeInt(16))
  25592. if v != nil {
  25593. v[mk] = mv
  25594. }
  25595. }
  25596. dd.ReadMapEnd()
  25597. return v, changed
  25598. }
  25599. func (d *Decoder) fastpathDecMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  25600. if rv.Kind() == reflect.Ptr {
  25601. vp := rv2i(rv).(*map[uint64]int32)
  25602. v, changed := fastpathTV.DecMapUint64Int32V(*vp, true, d)
  25603. if changed {
  25604. *vp = v
  25605. }
  25606. } else {
  25607. fastpathTV.DecMapUint64Int32V(rv2i(rv).(map[uint64]int32), false, d)
  25608. }
  25609. }
  25610. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, d *Decoder) {
  25611. v, changed := f.DecMapUint64Int32V(*vp, true, d)
  25612. if changed {
  25613. *vp = v
  25614. }
  25615. }
  25616. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, canChange bool,
  25617. d *Decoder) (_ map[uint64]int32, changed bool) {
  25618. dd, esep := d.d, d.hh.hasElemSeparators()
  25619. containerLen := dd.ReadMapStart()
  25620. if canChange && v == nil {
  25621. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25622. v = make(map[uint64]int32, xlen)
  25623. changed = true
  25624. }
  25625. if containerLen == 0 {
  25626. dd.ReadMapEnd()
  25627. return v, changed
  25628. }
  25629. var mk uint64
  25630. var mv int32
  25631. hasLen := containerLen > 0
  25632. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25633. if esep {
  25634. dd.ReadMapElemKey()
  25635. }
  25636. mk = dd.DecodeUint(64)
  25637. if esep {
  25638. dd.ReadMapElemValue()
  25639. }
  25640. if dd.TryDecodeAsNil() {
  25641. if v == nil {
  25642. } else if d.h.DeleteOnNilMapValue {
  25643. delete(v, mk)
  25644. } else {
  25645. v[mk] = 0
  25646. }
  25647. continue
  25648. }
  25649. mv = int32(dd.DecodeInt(32))
  25650. if v != nil {
  25651. v[mk] = mv
  25652. }
  25653. }
  25654. dd.ReadMapEnd()
  25655. return v, changed
  25656. }
  25657. func (d *Decoder) fastpathDecMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  25658. if rv.Kind() == reflect.Ptr {
  25659. vp := rv2i(rv).(*map[uint64]int64)
  25660. v, changed := fastpathTV.DecMapUint64Int64V(*vp, true, d)
  25661. if changed {
  25662. *vp = v
  25663. }
  25664. } else {
  25665. fastpathTV.DecMapUint64Int64V(rv2i(rv).(map[uint64]int64), false, d)
  25666. }
  25667. }
  25668. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, d *Decoder) {
  25669. v, changed := f.DecMapUint64Int64V(*vp, true, d)
  25670. if changed {
  25671. *vp = v
  25672. }
  25673. }
  25674. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, canChange bool,
  25675. d *Decoder) (_ map[uint64]int64, changed bool) {
  25676. dd, esep := d.d, d.hh.hasElemSeparators()
  25677. containerLen := dd.ReadMapStart()
  25678. if canChange && v == nil {
  25679. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25680. v = make(map[uint64]int64, xlen)
  25681. changed = true
  25682. }
  25683. if containerLen == 0 {
  25684. dd.ReadMapEnd()
  25685. return v, changed
  25686. }
  25687. var mk uint64
  25688. var mv int64
  25689. hasLen := containerLen > 0
  25690. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25691. if esep {
  25692. dd.ReadMapElemKey()
  25693. }
  25694. mk = dd.DecodeUint(64)
  25695. if esep {
  25696. dd.ReadMapElemValue()
  25697. }
  25698. if dd.TryDecodeAsNil() {
  25699. if v == nil {
  25700. } else if d.h.DeleteOnNilMapValue {
  25701. delete(v, mk)
  25702. } else {
  25703. v[mk] = 0
  25704. }
  25705. continue
  25706. }
  25707. mv = dd.DecodeInt(64)
  25708. if v != nil {
  25709. v[mk] = mv
  25710. }
  25711. }
  25712. dd.ReadMapEnd()
  25713. return v, changed
  25714. }
  25715. func (d *Decoder) fastpathDecMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  25716. if rv.Kind() == reflect.Ptr {
  25717. vp := rv2i(rv).(*map[uint64]float32)
  25718. v, changed := fastpathTV.DecMapUint64Float32V(*vp, true, d)
  25719. if changed {
  25720. *vp = v
  25721. }
  25722. } else {
  25723. fastpathTV.DecMapUint64Float32V(rv2i(rv).(map[uint64]float32), false, d)
  25724. }
  25725. }
  25726. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, d *Decoder) {
  25727. v, changed := f.DecMapUint64Float32V(*vp, true, d)
  25728. if changed {
  25729. *vp = v
  25730. }
  25731. }
  25732. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, canChange bool,
  25733. d *Decoder) (_ map[uint64]float32, changed bool) {
  25734. dd, esep := d.d, d.hh.hasElemSeparators()
  25735. containerLen := dd.ReadMapStart()
  25736. if canChange && v == nil {
  25737. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25738. v = make(map[uint64]float32, xlen)
  25739. changed = true
  25740. }
  25741. if containerLen == 0 {
  25742. dd.ReadMapEnd()
  25743. return v, changed
  25744. }
  25745. var mk uint64
  25746. var mv float32
  25747. hasLen := containerLen > 0
  25748. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25749. if esep {
  25750. dd.ReadMapElemKey()
  25751. }
  25752. mk = dd.DecodeUint(64)
  25753. if esep {
  25754. dd.ReadMapElemValue()
  25755. }
  25756. if dd.TryDecodeAsNil() {
  25757. if v == nil {
  25758. } else if d.h.DeleteOnNilMapValue {
  25759. delete(v, mk)
  25760. } else {
  25761. v[mk] = 0
  25762. }
  25763. continue
  25764. }
  25765. mv = float32(chkFloat32(dd.DecodeFloat64()))
  25766. if v != nil {
  25767. v[mk] = mv
  25768. }
  25769. }
  25770. dd.ReadMapEnd()
  25771. return v, changed
  25772. }
  25773. func (d *Decoder) fastpathDecMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  25774. if rv.Kind() == reflect.Ptr {
  25775. vp := rv2i(rv).(*map[uint64]float64)
  25776. v, changed := fastpathTV.DecMapUint64Float64V(*vp, true, d)
  25777. if changed {
  25778. *vp = v
  25779. }
  25780. } else {
  25781. fastpathTV.DecMapUint64Float64V(rv2i(rv).(map[uint64]float64), false, d)
  25782. }
  25783. }
  25784. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, d *Decoder) {
  25785. v, changed := f.DecMapUint64Float64V(*vp, true, d)
  25786. if changed {
  25787. *vp = v
  25788. }
  25789. }
  25790. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, canChange bool,
  25791. d *Decoder) (_ map[uint64]float64, changed bool) {
  25792. dd, esep := d.d, d.hh.hasElemSeparators()
  25793. containerLen := dd.ReadMapStart()
  25794. if canChange && v == nil {
  25795. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25796. v = make(map[uint64]float64, xlen)
  25797. changed = true
  25798. }
  25799. if containerLen == 0 {
  25800. dd.ReadMapEnd()
  25801. return v, changed
  25802. }
  25803. var mk uint64
  25804. var mv float64
  25805. hasLen := containerLen > 0
  25806. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25807. if esep {
  25808. dd.ReadMapElemKey()
  25809. }
  25810. mk = dd.DecodeUint(64)
  25811. if esep {
  25812. dd.ReadMapElemValue()
  25813. }
  25814. if dd.TryDecodeAsNil() {
  25815. if v == nil {
  25816. } else if d.h.DeleteOnNilMapValue {
  25817. delete(v, mk)
  25818. } else {
  25819. v[mk] = 0
  25820. }
  25821. continue
  25822. }
  25823. mv = dd.DecodeFloat64()
  25824. if v != nil {
  25825. v[mk] = mv
  25826. }
  25827. }
  25828. dd.ReadMapEnd()
  25829. return v, changed
  25830. }
  25831. func (d *Decoder) fastpathDecMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  25832. if rv.Kind() == reflect.Ptr {
  25833. vp := rv2i(rv).(*map[uint64]bool)
  25834. v, changed := fastpathTV.DecMapUint64BoolV(*vp, true, d)
  25835. if changed {
  25836. *vp = v
  25837. }
  25838. } else {
  25839. fastpathTV.DecMapUint64BoolV(rv2i(rv).(map[uint64]bool), false, d)
  25840. }
  25841. }
  25842. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, d *Decoder) {
  25843. v, changed := f.DecMapUint64BoolV(*vp, true, d)
  25844. if changed {
  25845. *vp = v
  25846. }
  25847. }
  25848. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, canChange bool,
  25849. d *Decoder) (_ map[uint64]bool, changed bool) {
  25850. dd, esep := d.d, d.hh.hasElemSeparators()
  25851. containerLen := dd.ReadMapStart()
  25852. if canChange && v == nil {
  25853. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25854. v = make(map[uint64]bool, xlen)
  25855. changed = true
  25856. }
  25857. if containerLen == 0 {
  25858. dd.ReadMapEnd()
  25859. return v, changed
  25860. }
  25861. var mk uint64
  25862. var mv bool
  25863. hasLen := containerLen > 0
  25864. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25865. if esep {
  25866. dd.ReadMapElemKey()
  25867. }
  25868. mk = dd.DecodeUint(64)
  25869. if esep {
  25870. dd.ReadMapElemValue()
  25871. }
  25872. if dd.TryDecodeAsNil() {
  25873. if v == nil {
  25874. } else if d.h.DeleteOnNilMapValue {
  25875. delete(v, mk)
  25876. } else {
  25877. v[mk] = false
  25878. }
  25879. continue
  25880. }
  25881. mv = dd.DecodeBool()
  25882. if v != nil {
  25883. v[mk] = mv
  25884. }
  25885. }
  25886. dd.ReadMapEnd()
  25887. return v, changed
  25888. }
  25889. func (d *Decoder) fastpathDecMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  25890. if rv.Kind() == reflect.Ptr {
  25891. vp := rv2i(rv).(*map[uintptr]interface{})
  25892. v, changed := fastpathTV.DecMapUintptrIntfV(*vp, true, d)
  25893. if changed {
  25894. *vp = v
  25895. }
  25896. } else {
  25897. fastpathTV.DecMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), false, d)
  25898. }
  25899. }
  25900. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, d *Decoder) {
  25901. v, changed := f.DecMapUintptrIntfV(*vp, true, d)
  25902. if changed {
  25903. *vp = v
  25904. }
  25905. }
  25906. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, canChange bool,
  25907. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  25908. dd, esep := d.d, d.hh.hasElemSeparators()
  25909. containerLen := dd.ReadMapStart()
  25910. if canChange && v == nil {
  25911. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  25912. v = make(map[uintptr]interface{}, xlen)
  25913. changed = true
  25914. }
  25915. if containerLen == 0 {
  25916. dd.ReadMapEnd()
  25917. return v, changed
  25918. }
  25919. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  25920. var mk uintptr
  25921. var mv interface{}
  25922. hasLen := containerLen > 0
  25923. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25924. if esep {
  25925. dd.ReadMapElemKey()
  25926. }
  25927. mk = uintptr(dd.DecodeUint(uintBitsize))
  25928. if esep {
  25929. dd.ReadMapElemValue()
  25930. }
  25931. if dd.TryDecodeAsNil() {
  25932. if v == nil {
  25933. } else if d.h.DeleteOnNilMapValue {
  25934. delete(v, mk)
  25935. } else {
  25936. v[mk] = nil
  25937. }
  25938. continue
  25939. }
  25940. if mapGet {
  25941. mv = v[mk]
  25942. } else {
  25943. mv = nil
  25944. }
  25945. d.decode(&mv)
  25946. if v != nil {
  25947. v[mk] = mv
  25948. }
  25949. }
  25950. dd.ReadMapEnd()
  25951. return v, changed
  25952. }
  25953. func (d *Decoder) fastpathDecMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  25954. if rv.Kind() == reflect.Ptr {
  25955. vp := rv2i(rv).(*map[uintptr]string)
  25956. v, changed := fastpathTV.DecMapUintptrStringV(*vp, true, d)
  25957. if changed {
  25958. *vp = v
  25959. }
  25960. } else {
  25961. fastpathTV.DecMapUintptrStringV(rv2i(rv).(map[uintptr]string), false, d)
  25962. }
  25963. }
  25964. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, d *Decoder) {
  25965. v, changed := f.DecMapUintptrStringV(*vp, true, d)
  25966. if changed {
  25967. *vp = v
  25968. }
  25969. }
  25970. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, canChange bool,
  25971. d *Decoder) (_ map[uintptr]string, changed bool) {
  25972. dd, esep := d.d, d.hh.hasElemSeparators()
  25973. containerLen := dd.ReadMapStart()
  25974. if canChange && v == nil {
  25975. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  25976. v = make(map[uintptr]string, xlen)
  25977. changed = true
  25978. }
  25979. if containerLen == 0 {
  25980. dd.ReadMapEnd()
  25981. return v, changed
  25982. }
  25983. var mk uintptr
  25984. var mv string
  25985. hasLen := containerLen > 0
  25986. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25987. if esep {
  25988. dd.ReadMapElemKey()
  25989. }
  25990. mk = uintptr(dd.DecodeUint(uintBitsize))
  25991. if esep {
  25992. dd.ReadMapElemValue()
  25993. }
  25994. if dd.TryDecodeAsNil() {
  25995. if v == nil {
  25996. } else if d.h.DeleteOnNilMapValue {
  25997. delete(v, mk)
  25998. } else {
  25999. v[mk] = ""
  26000. }
  26001. continue
  26002. }
  26003. mv = dd.DecodeString()
  26004. if v != nil {
  26005. v[mk] = mv
  26006. }
  26007. }
  26008. dd.ReadMapEnd()
  26009. return v, changed
  26010. }
  26011. func (d *Decoder) fastpathDecMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  26012. if rv.Kind() == reflect.Ptr {
  26013. vp := rv2i(rv).(*map[uintptr]uint)
  26014. v, changed := fastpathTV.DecMapUintptrUintV(*vp, true, d)
  26015. if changed {
  26016. *vp = v
  26017. }
  26018. } else {
  26019. fastpathTV.DecMapUintptrUintV(rv2i(rv).(map[uintptr]uint), false, d)
  26020. }
  26021. }
  26022. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, d *Decoder) {
  26023. v, changed := f.DecMapUintptrUintV(*vp, true, d)
  26024. if changed {
  26025. *vp = v
  26026. }
  26027. }
  26028. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, canChange bool,
  26029. d *Decoder) (_ map[uintptr]uint, changed bool) {
  26030. dd, esep := d.d, d.hh.hasElemSeparators()
  26031. containerLen := dd.ReadMapStart()
  26032. if canChange && v == nil {
  26033. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26034. v = make(map[uintptr]uint, xlen)
  26035. changed = true
  26036. }
  26037. if containerLen == 0 {
  26038. dd.ReadMapEnd()
  26039. return v, changed
  26040. }
  26041. var mk uintptr
  26042. var mv uint
  26043. hasLen := containerLen > 0
  26044. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26045. if esep {
  26046. dd.ReadMapElemKey()
  26047. }
  26048. mk = uintptr(dd.DecodeUint(uintBitsize))
  26049. if esep {
  26050. dd.ReadMapElemValue()
  26051. }
  26052. if dd.TryDecodeAsNil() {
  26053. if v == nil {
  26054. } else if d.h.DeleteOnNilMapValue {
  26055. delete(v, mk)
  26056. } else {
  26057. v[mk] = 0
  26058. }
  26059. continue
  26060. }
  26061. mv = uint(dd.DecodeUint(uintBitsize))
  26062. if v != nil {
  26063. v[mk] = mv
  26064. }
  26065. }
  26066. dd.ReadMapEnd()
  26067. return v, changed
  26068. }
  26069. func (d *Decoder) fastpathDecMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  26070. if rv.Kind() == reflect.Ptr {
  26071. vp := rv2i(rv).(*map[uintptr]uint8)
  26072. v, changed := fastpathTV.DecMapUintptrUint8V(*vp, true, d)
  26073. if changed {
  26074. *vp = v
  26075. }
  26076. } else {
  26077. fastpathTV.DecMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), false, d)
  26078. }
  26079. }
  26080. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, d *Decoder) {
  26081. v, changed := f.DecMapUintptrUint8V(*vp, true, d)
  26082. if changed {
  26083. *vp = v
  26084. }
  26085. }
  26086. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, canChange bool,
  26087. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  26088. dd, esep := d.d, d.hh.hasElemSeparators()
  26089. containerLen := dd.ReadMapStart()
  26090. if canChange && v == nil {
  26091. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26092. v = make(map[uintptr]uint8, xlen)
  26093. changed = true
  26094. }
  26095. if containerLen == 0 {
  26096. dd.ReadMapEnd()
  26097. return v, changed
  26098. }
  26099. var mk uintptr
  26100. var mv uint8
  26101. hasLen := containerLen > 0
  26102. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26103. if esep {
  26104. dd.ReadMapElemKey()
  26105. }
  26106. mk = uintptr(dd.DecodeUint(uintBitsize))
  26107. if esep {
  26108. dd.ReadMapElemValue()
  26109. }
  26110. if dd.TryDecodeAsNil() {
  26111. if v == nil {
  26112. } else if d.h.DeleteOnNilMapValue {
  26113. delete(v, mk)
  26114. } else {
  26115. v[mk] = 0
  26116. }
  26117. continue
  26118. }
  26119. mv = uint8(dd.DecodeUint(8))
  26120. if v != nil {
  26121. v[mk] = mv
  26122. }
  26123. }
  26124. dd.ReadMapEnd()
  26125. return v, changed
  26126. }
  26127. func (d *Decoder) fastpathDecMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  26128. if rv.Kind() == reflect.Ptr {
  26129. vp := rv2i(rv).(*map[uintptr]uint16)
  26130. v, changed := fastpathTV.DecMapUintptrUint16V(*vp, true, d)
  26131. if changed {
  26132. *vp = v
  26133. }
  26134. } else {
  26135. fastpathTV.DecMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), false, d)
  26136. }
  26137. }
  26138. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, d *Decoder) {
  26139. v, changed := f.DecMapUintptrUint16V(*vp, true, d)
  26140. if changed {
  26141. *vp = v
  26142. }
  26143. }
  26144. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, canChange bool,
  26145. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  26146. dd, esep := d.d, d.hh.hasElemSeparators()
  26147. containerLen := dd.ReadMapStart()
  26148. if canChange && v == nil {
  26149. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26150. v = make(map[uintptr]uint16, xlen)
  26151. changed = true
  26152. }
  26153. if containerLen == 0 {
  26154. dd.ReadMapEnd()
  26155. return v, changed
  26156. }
  26157. var mk uintptr
  26158. var mv uint16
  26159. hasLen := containerLen > 0
  26160. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26161. if esep {
  26162. dd.ReadMapElemKey()
  26163. }
  26164. mk = uintptr(dd.DecodeUint(uintBitsize))
  26165. if esep {
  26166. dd.ReadMapElemValue()
  26167. }
  26168. if dd.TryDecodeAsNil() {
  26169. if v == nil {
  26170. } else if d.h.DeleteOnNilMapValue {
  26171. delete(v, mk)
  26172. } else {
  26173. v[mk] = 0
  26174. }
  26175. continue
  26176. }
  26177. mv = uint16(dd.DecodeUint(16))
  26178. if v != nil {
  26179. v[mk] = mv
  26180. }
  26181. }
  26182. dd.ReadMapEnd()
  26183. return v, changed
  26184. }
  26185. func (d *Decoder) fastpathDecMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  26186. if rv.Kind() == reflect.Ptr {
  26187. vp := rv2i(rv).(*map[uintptr]uint32)
  26188. v, changed := fastpathTV.DecMapUintptrUint32V(*vp, true, d)
  26189. if changed {
  26190. *vp = v
  26191. }
  26192. } else {
  26193. fastpathTV.DecMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), false, d)
  26194. }
  26195. }
  26196. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, d *Decoder) {
  26197. v, changed := f.DecMapUintptrUint32V(*vp, true, d)
  26198. if changed {
  26199. *vp = v
  26200. }
  26201. }
  26202. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, canChange bool,
  26203. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  26204. dd, esep := d.d, d.hh.hasElemSeparators()
  26205. containerLen := dd.ReadMapStart()
  26206. if canChange && v == nil {
  26207. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26208. v = make(map[uintptr]uint32, xlen)
  26209. changed = true
  26210. }
  26211. if containerLen == 0 {
  26212. dd.ReadMapEnd()
  26213. return v, changed
  26214. }
  26215. var mk uintptr
  26216. var mv uint32
  26217. hasLen := containerLen > 0
  26218. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26219. if esep {
  26220. dd.ReadMapElemKey()
  26221. }
  26222. mk = uintptr(dd.DecodeUint(uintBitsize))
  26223. if esep {
  26224. dd.ReadMapElemValue()
  26225. }
  26226. if dd.TryDecodeAsNil() {
  26227. if v == nil {
  26228. } else if d.h.DeleteOnNilMapValue {
  26229. delete(v, mk)
  26230. } else {
  26231. v[mk] = 0
  26232. }
  26233. continue
  26234. }
  26235. mv = uint32(dd.DecodeUint(32))
  26236. if v != nil {
  26237. v[mk] = mv
  26238. }
  26239. }
  26240. dd.ReadMapEnd()
  26241. return v, changed
  26242. }
  26243. func (d *Decoder) fastpathDecMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  26244. if rv.Kind() == reflect.Ptr {
  26245. vp := rv2i(rv).(*map[uintptr]uint64)
  26246. v, changed := fastpathTV.DecMapUintptrUint64V(*vp, true, d)
  26247. if changed {
  26248. *vp = v
  26249. }
  26250. } else {
  26251. fastpathTV.DecMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), false, d)
  26252. }
  26253. }
  26254. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, d *Decoder) {
  26255. v, changed := f.DecMapUintptrUint64V(*vp, true, d)
  26256. if changed {
  26257. *vp = v
  26258. }
  26259. }
  26260. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, canChange bool,
  26261. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  26262. dd, esep := d.d, d.hh.hasElemSeparators()
  26263. containerLen := dd.ReadMapStart()
  26264. if canChange && v == nil {
  26265. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26266. v = make(map[uintptr]uint64, xlen)
  26267. changed = true
  26268. }
  26269. if containerLen == 0 {
  26270. dd.ReadMapEnd()
  26271. return v, changed
  26272. }
  26273. var mk uintptr
  26274. var mv uint64
  26275. hasLen := containerLen > 0
  26276. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26277. if esep {
  26278. dd.ReadMapElemKey()
  26279. }
  26280. mk = uintptr(dd.DecodeUint(uintBitsize))
  26281. if esep {
  26282. dd.ReadMapElemValue()
  26283. }
  26284. if dd.TryDecodeAsNil() {
  26285. if v == nil {
  26286. } else if d.h.DeleteOnNilMapValue {
  26287. delete(v, mk)
  26288. } else {
  26289. v[mk] = 0
  26290. }
  26291. continue
  26292. }
  26293. mv = dd.DecodeUint(64)
  26294. if v != nil {
  26295. v[mk] = mv
  26296. }
  26297. }
  26298. dd.ReadMapEnd()
  26299. return v, changed
  26300. }
  26301. func (d *Decoder) fastpathDecMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  26302. if rv.Kind() == reflect.Ptr {
  26303. vp := rv2i(rv).(*map[uintptr]uintptr)
  26304. v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, true, d)
  26305. if changed {
  26306. *vp = v
  26307. }
  26308. } else {
  26309. fastpathTV.DecMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), false, d)
  26310. }
  26311. }
  26312. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, d *Decoder) {
  26313. v, changed := f.DecMapUintptrUintptrV(*vp, true, d)
  26314. if changed {
  26315. *vp = v
  26316. }
  26317. }
  26318. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, canChange bool,
  26319. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  26320. dd, esep := d.d, d.hh.hasElemSeparators()
  26321. containerLen := dd.ReadMapStart()
  26322. if canChange && v == nil {
  26323. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26324. v = make(map[uintptr]uintptr, xlen)
  26325. changed = true
  26326. }
  26327. if containerLen == 0 {
  26328. dd.ReadMapEnd()
  26329. return v, changed
  26330. }
  26331. var mk uintptr
  26332. var mv uintptr
  26333. hasLen := containerLen > 0
  26334. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26335. if esep {
  26336. dd.ReadMapElemKey()
  26337. }
  26338. mk = uintptr(dd.DecodeUint(uintBitsize))
  26339. if esep {
  26340. dd.ReadMapElemValue()
  26341. }
  26342. if dd.TryDecodeAsNil() {
  26343. if v == nil {
  26344. } else if d.h.DeleteOnNilMapValue {
  26345. delete(v, mk)
  26346. } else {
  26347. v[mk] = 0
  26348. }
  26349. continue
  26350. }
  26351. mv = uintptr(dd.DecodeUint(uintBitsize))
  26352. if v != nil {
  26353. v[mk] = mv
  26354. }
  26355. }
  26356. dd.ReadMapEnd()
  26357. return v, changed
  26358. }
  26359. func (d *Decoder) fastpathDecMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  26360. if rv.Kind() == reflect.Ptr {
  26361. vp := rv2i(rv).(*map[uintptr]int)
  26362. v, changed := fastpathTV.DecMapUintptrIntV(*vp, true, d)
  26363. if changed {
  26364. *vp = v
  26365. }
  26366. } else {
  26367. fastpathTV.DecMapUintptrIntV(rv2i(rv).(map[uintptr]int), false, d)
  26368. }
  26369. }
  26370. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, d *Decoder) {
  26371. v, changed := f.DecMapUintptrIntV(*vp, true, d)
  26372. if changed {
  26373. *vp = v
  26374. }
  26375. }
  26376. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, canChange bool,
  26377. d *Decoder) (_ map[uintptr]int, changed bool) {
  26378. dd, esep := d.d, d.hh.hasElemSeparators()
  26379. containerLen := dd.ReadMapStart()
  26380. if canChange && v == nil {
  26381. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26382. v = make(map[uintptr]int, xlen)
  26383. changed = true
  26384. }
  26385. if containerLen == 0 {
  26386. dd.ReadMapEnd()
  26387. return v, changed
  26388. }
  26389. var mk uintptr
  26390. var mv int
  26391. hasLen := containerLen > 0
  26392. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26393. if esep {
  26394. dd.ReadMapElemKey()
  26395. }
  26396. mk = uintptr(dd.DecodeUint(uintBitsize))
  26397. if esep {
  26398. dd.ReadMapElemValue()
  26399. }
  26400. if dd.TryDecodeAsNil() {
  26401. if v == nil {
  26402. } else if d.h.DeleteOnNilMapValue {
  26403. delete(v, mk)
  26404. } else {
  26405. v[mk] = 0
  26406. }
  26407. continue
  26408. }
  26409. mv = int(dd.DecodeInt(intBitsize))
  26410. if v != nil {
  26411. v[mk] = mv
  26412. }
  26413. }
  26414. dd.ReadMapEnd()
  26415. return v, changed
  26416. }
  26417. func (d *Decoder) fastpathDecMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  26418. if rv.Kind() == reflect.Ptr {
  26419. vp := rv2i(rv).(*map[uintptr]int8)
  26420. v, changed := fastpathTV.DecMapUintptrInt8V(*vp, true, d)
  26421. if changed {
  26422. *vp = v
  26423. }
  26424. } else {
  26425. fastpathTV.DecMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), false, d)
  26426. }
  26427. }
  26428. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, d *Decoder) {
  26429. v, changed := f.DecMapUintptrInt8V(*vp, true, d)
  26430. if changed {
  26431. *vp = v
  26432. }
  26433. }
  26434. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, canChange bool,
  26435. d *Decoder) (_ map[uintptr]int8, changed bool) {
  26436. dd, esep := d.d, d.hh.hasElemSeparators()
  26437. containerLen := dd.ReadMapStart()
  26438. if canChange && v == nil {
  26439. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26440. v = make(map[uintptr]int8, xlen)
  26441. changed = true
  26442. }
  26443. if containerLen == 0 {
  26444. dd.ReadMapEnd()
  26445. return v, changed
  26446. }
  26447. var mk uintptr
  26448. var mv int8
  26449. hasLen := containerLen > 0
  26450. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26451. if esep {
  26452. dd.ReadMapElemKey()
  26453. }
  26454. mk = uintptr(dd.DecodeUint(uintBitsize))
  26455. if esep {
  26456. dd.ReadMapElemValue()
  26457. }
  26458. if dd.TryDecodeAsNil() {
  26459. if v == nil {
  26460. } else if d.h.DeleteOnNilMapValue {
  26461. delete(v, mk)
  26462. } else {
  26463. v[mk] = 0
  26464. }
  26465. continue
  26466. }
  26467. mv = int8(dd.DecodeInt(8))
  26468. if v != nil {
  26469. v[mk] = mv
  26470. }
  26471. }
  26472. dd.ReadMapEnd()
  26473. return v, changed
  26474. }
  26475. func (d *Decoder) fastpathDecMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  26476. if rv.Kind() == reflect.Ptr {
  26477. vp := rv2i(rv).(*map[uintptr]int16)
  26478. v, changed := fastpathTV.DecMapUintptrInt16V(*vp, true, d)
  26479. if changed {
  26480. *vp = v
  26481. }
  26482. } else {
  26483. fastpathTV.DecMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), false, d)
  26484. }
  26485. }
  26486. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, d *Decoder) {
  26487. v, changed := f.DecMapUintptrInt16V(*vp, true, d)
  26488. if changed {
  26489. *vp = v
  26490. }
  26491. }
  26492. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, canChange bool,
  26493. d *Decoder) (_ map[uintptr]int16, changed bool) {
  26494. dd, esep := d.d, d.hh.hasElemSeparators()
  26495. containerLen := dd.ReadMapStart()
  26496. if canChange && v == nil {
  26497. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26498. v = make(map[uintptr]int16, xlen)
  26499. changed = true
  26500. }
  26501. if containerLen == 0 {
  26502. dd.ReadMapEnd()
  26503. return v, changed
  26504. }
  26505. var mk uintptr
  26506. var mv int16
  26507. hasLen := containerLen > 0
  26508. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26509. if esep {
  26510. dd.ReadMapElemKey()
  26511. }
  26512. mk = uintptr(dd.DecodeUint(uintBitsize))
  26513. if esep {
  26514. dd.ReadMapElemValue()
  26515. }
  26516. if dd.TryDecodeAsNil() {
  26517. if v == nil {
  26518. } else if d.h.DeleteOnNilMapValue {
  26519. delete(v, mk)
  26520. } else {
  26521. v[mk] = 0
  26522. }
  26523. continue
  26524. }
  26525. mv = int16(dd.DecodeInt(16))
  26526. if v != nil {
  26527. v[mk] = mv
  26528. }
  26529. }
  26530. dd.ReadMapEnd()
  26531. return v, changed
  26532. }
  26533. func (d *Decoder) fastpathDecMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  26534. if rv.Kind() == reflect.Ptr {
  26535. vp := rv2i(rv).(*map[uintptr]int32)
  26536. v, changed := fastpathTV.DecMapUintptrInt32V(*vp, true, d)
  26537. if changed {
  26538. *vp = v
  26539. }
  26540. } else {
  26541. fastpathTV.DecMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), false, d)
  26542. }
  26543. }
  26544. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, d *Decoder) {
  26545. v, changed := f.DecMapUintptrInt32V(*vp, true, d)
  26546. if changed {
  26547. *vp = v
  26548. }
  26549. }
  26550. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, canChange bool,
  26551. d *Decoder) (_ map[uintptr]int32, changed bool) {
  26552. dd, esep := d.d, d.hh.hasElemSeparators()
  26553. containerLen := dd.ReadMapStart()
  26554. if canChange && v == nil {
  26555. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26556. v = make(map[uintptr]int32, xlen)
  26557. changed = true
  26558. }
  26559. if containerLen == 0 {
  26560. dd.ReadMapEnd()
  26561. return v, changed
  26562. }
  26563. var mk uintptr
  26564. var mv int32
  26565. hasLen := containerLen > 0
  26566. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26567. if esep {
  26568. dd.ReadMapElemKey()
  26569. }
  26570. mk = uintptr(dd.DecodeUint(uintBitsize))
  26571. if esep {
  26572. dd.ReadMapElemValue()
  26573. }
  26574. if dd.TryDecodeAsNil() {
  26575. if v == nil {
  26576. } else if d.h.DeleteOnNilMapValue {
  26577. delete(v, mk)
  26578. } else {
  26579. v[mk] = 0
  26580. }
  26581. continue
  26582. }
  26583. mv = int32(dd.DecodeInt(32))
  26584. if v != nil {
  26585. v[mk] = mv
  26586. }
  26587. }
  26588. dd.ReadMapEnd()
  26589. return v, changed
  26590. }
  26591. func (d *Decoder) fastpathDecMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  26592. if rv.Kind() == reflect.Ptr {
  26593. vp := rv2i(rv).(*map[uintptr]int64)
  26594. v, changed := fastpathTV.DecMapUintptrInt64V(*vp, true, d)
  26595. if changed {
  26596. *vp = v
  26597. }
  26598. } else {
  26599. fastpathTV.DecMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), false, d)
  26600. }
  26601. }
  26602. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, d *Decoder) {
  26603. v, changed := f.DecMapUintptrInt64V(*vp, true, d)
  26604. if changed {
  26605. *vp = v
  26606. }
  26607. }
  26608. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, canChange bool,
  26609. d *Decoder) (_ map[uintptr]int64, changed bool) {
  26610. dd, esep := d.d, d.hh.hasElemSeparators()
  26611. containerLen := dd.ReadMapStart()
  26612. if canChange && v == nil {
  26613. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26614. v = make(map[uintptr]int64, xlen)
  26615. changed = true
  26616. }
  26617. if containerLen == 0 {
  26618. dd.ReadMapEnd()
  26619. return v, changed
  26620. }
  26621. var mk uintptr
  26622. var mv int64
  26623. hasLen := containerLen > 0
  26624. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26625. if esep {
  26626. dd.ReadMapElemKey()
  26627. }
  26628. mk = uintptr(dd.DecodeUint(uintBitsize))
  26629. if esep {
  26630. dd.ReadMapElemValue()
  26631. }
  26632. if dd.TryDecodeAsNil() {
  26633. if v == nil {
  26634. } else if d.h.DeleteOnNilMapValue {
  26635. delete(v, mk)
  26636. } else {
  26637. v[mk] = 0
  26638. }
  26639. continue
  26640. }
  26641. mv = dd.DecodeInt(64)
  26642. if v != nil {
  26643. v[mk] = mv
  26644. }
  26645. }
  26646. dd.ReadMapEnd()
  26647. return v, changed
  26648. }
  26649. func (d *Decoder) fastpathDecMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  26650. if rv.Kind() == reflect.Ptr {
  26651. vp := rv2i(rv).(*map[uintptr]float32)
  26652. v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, true, d)
  26653. if changed {
  26654. *vp = v
  26655. }
  26656. } else {
  26657. fastpathTV.DecMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), false, d)
  26658. }
  26659. }
  26660. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, d *Decoder) {
  26661. v, changed := f.DecMapUintptrFloat32V(*vp, true, d)
  26662. if changed {
  26663. *vp = v
  26664. }
  26665. }
  26666. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, canChange bool,
  26667. d *Decoder) (_ map[uintptr]float32, changed bool) {
  26668. dd, esep := d.d, d.hh.hasElemSeparators()
  26669. containerLen := dd.ReadMapStart()
  26670. if canChange && v == nil {
  26671. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26672. v = make(map[uintptr]float32, xlen)
  26673. changed = true
  26674. }
  26675. if containerLen == 0 {
  26676. dd.ReadMapEnd()
  26677. return v, changed
  26678. }
  26679. var mk uintptr
  26680. var mv float32
  26681. hasLen := containerLen > 0
  26682. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26683. if esep {
  26684. dd.ReadMapElemKey()
  26685. }
  26686. mk = uintptr(dd.DecodeUint(uintBitsize))
  26687. if esep {
  26688. dd.ReadMapElemValue()
  26689. }
  26690. if dd.TryDecodeAsNil() {
  26691. if v == nil {
  26692. } else if d.h.DeleteOnNilMapValue {
  26693. delete(v, mk)
  26694. } else {
  26695. v[mk] = 0
  26696. }
  26697. continue
  26698. }
  26699. mv = float32(chkFloat32(dd.DecodeFloat64()))
  26700. if v != nil {
  26701. v[mk] = mv
  26702. }
  26703. }
  26704. dd.ReadMapEnd()
  26705. return v, changed
  26706. }
  26707. func (d *Decoder) fastpathDecMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  26708. if rv.Kind() == reflect.Ptr {
  26709. vp := rv2i(rv).(*map[uintptr]float64)
  26710. v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, true, d)
  26711. if changed {
  26712. *vp = v
  26713. }
  26714. } else {
  26715. fastpathTV.DecMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), false, d)
  26716. }
  26717. }
  26718. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, d *Decoder) {
  26719. v, changed := f.DecMapUintptrFloat64V(*vp, true, d)
  26720. if changed {
  26721. *vp = v
  26722. }
  26723. }
  26724. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, canChange bool,
  26725. d *Decoder) (_ map[uintptr]float64, changed bool) {
  26726. dd, esep := d.d, d.hh.hasElemSeparators()
  26727. containerLen := dd.ReadMapStart()
  26728. if canChange && v == nil {
  26729. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26730. v = make(map[uintptr]float64, xlen)
  26731. changed = true
  26732. }
  26733. if containerLen == 0 {
  26734. dd.ReadMapEnd()
  26735. return v, changed
  26736. }
  26737. var mk uintptr
  26738. var mv float64
  26739. hasLen := containerLen > 0
  26740. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26741. if esep {
  26742. dd.ReadMapElemKey()
  26743. }
  26744. mk = uintptr(dd.DecodeUint(uintBitsize))
  26745. if esep {
  26746. dd.ReadMapElemValue()
  26747. }
  26748. if dd.TryDecodeAsNil() {
  26749. if v == nil {
  26750. } else if d.h.DeleteOnNilMapValue {
  26751. delete(v, mk)
  26752. } else {
  26753. v[mk] = 0
  26754. }
  26755. continue
  26756. }
  26757. mv = dd.DecodeFloat64()
  26758. if v != nil {
  26759. v[mk] = mv
  26760. }
  26761. }
  26762. dd.ReadMapEnd()
  26763. return v, changed
  26764. }
  26765. func (d *Decoder) fastpathDecMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  26766. if rv.Kind() == reflect.Ptr {
  26767. vp := rv2i(rv).(*map[uintptr]bool)
  26768. v, changed := fastpathTV.DecMapUintptrBoolV(*vp, true, d)
  26769. if changed {
  26770. *vp = v
  26771. }
  26772. } else {
  26773. fastpathTV.DecMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), false, d)
  26774. }
  26775. }
  26776. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, d *Decoder) {
  26777. v, changed := f.DecMapUintptrBoolV(*vp, true, d)
  26778. if changed {
  26779. *vp = v
  26780. }
  26781. }
  26782. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, canChange bool,
  26783. d *Decoder) (_ map[uintptr]bool, changed bool) {
  26784. dd, esep := d.d, d.hh.hasElemSeparators()
  26785. containerLen := dd.ReadMapStart()
  26786. if canChange && v == nil {
  26787. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26788. v = make(map[uintptr]bool, xlen)
  26789. changed = true
  26790. }
  26791. if containerLen == 0 {
  26792. dd.ReadMapEnd()
  26793. return v, changed
  26794. }
  26795. var mk uintptr
  26796. var mv bool
  26797. hasLen := containerLen > 0
  26798. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26799. if esep {
  26800. dd.ReadMapElemKey()
  26801. }
  26802. mk = uintptr(dd.DecodeUint(uintBitsize))
  26803. if esep {
  26804. dd.ReadMapElemValue()
  26805. }
  26806. if dd.TryDecodeAsNil() {
  26807. if v == nil {
  26808. } else if d.h.DeleteOnNilMapValue {
  26809. delete(v, mk)
  26810. } else {
  26811. v[mk] = false
  26812. }
  26813. continue
  26814. }
  26815. mv = dd.DecodeBool()
  26816. if v != nil {
  26817. v[mk] = mv
  26818. }
  26819. }
  26820. dd.ReadMapEnd()
  26821. return v, changed
  26822. }
  26823. func (d *Decoder) fastpathDecMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  26824. if rv.Kind() == reflect.Ptr {
  26825. vp := rv2i(rv).(*map[int]interface{})
  26826. v, changed := fastpathTV.DecMapIntIntfV(*vp, true, d)
  26827. if changed {
  26828. *vp = v
  26829. }
  26830. } else {
  26831. fastpathTV.DecMapIntIntfV(rv2i(rv).(map[int]interface{}), false, d)
  26832. }
  26833. }
  26834. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, d *Decoder) {
  26835. v, changed := f.DecMapIntIntfV(*vp, true, d)
  26836. if changed {
  26837. *vp = v
  26838. }
  26839. }
  26840. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, canChange bool,
  26841. d *Decoder) (_ map[int]interface{}, changed bool) {
  26842. dd, esep := d.d, d.hh.hasElemSeparators()
  26843. containerLen := dd.ReadMapStart()
  26844. if canChange && v == nil {
  26845. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26846. v = make(map[int]interface{}, xlen)
  26847. changed = true
  26848. }
  26849. if containerLen == 0 {
  26850. dd.ReadMapEnd()
  26851. return v, changed
  26852. }
  26853. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  26854. var mk int
  26855. var mv interface{}
  26856. hasLen := containerLen > 0
  26857. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26858. if esep {
  26859. dd.ReadMapElemKey()
  26860. }
  26861. mk = int(dd.DecodeInt(intBitsize))
  26862. if esep {
  26863. dd.ReadMapElemValue()
  26864. }
  26865. if dd.TryDecodeAsNil() {
  26866. if v == nil {
  26867. } else if d.h.DeleteOnNilMapValue {
  26868. delete(v, mk)
  26869. } else {
  26870. v[mk] = nil
  26871. }
  26872. continue
  26873. }
  26874. if mapGet {
  26875. mv = v[mk]
  26876. } else {
  26877. mv = nil
  26878. }
  26879. d.decode(&mv)
  26880. if v != nil {
  26881. v[mk] = mv
  26882. }
  26883. }
  26884. dd.ReadMapEnd()
  26885. return v, changed
  26886. }
  26887. func (d *Decoder) fastpathDecMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  26888. if rv.Kind() == reflect.Ptr {
  26889. vp := rv2i(rv).(*map[int]string)
  26890. v, changed := fastpathTV.DecMapIntStringV(*vp, true, d)
  26891. if changed {
  26892. *vp = v
  26893. }
  26894. } else {
  26895. fastpathTV.DecMapIntStringV(rv2i(rv).(map[int]string), false, d)
  26896. }
  26897. }
  26898. func (f fastpathT) DecMapIntStringX(vp *map[int]string, d *Decoder) {
  26899. v, changed := f.DecMapIntStringV(*vp, true, d)
  26900. if changed {
  26901. *vp = v
  26902. }
  26903. }
  26904. func (_ fastpathT) DecMapIntStringV(v map[int]string, canChange bool,
  26905. d *Decoder) (_ map[int]string, changed bool) {
  26906. dd, esep := d.d, d.hh.hasElemSeparators()
  26907. containerLen := dd.ReadMapStart()
  26908. if canChange && v == nil {
  26909. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26910. v = make(map[int]string, xlen)
  26911. changed = true
  26912. }
  26913. if containerLen == 0 {
  26914. dd.ReadMapEnd()
  26915. return v, changed
  26916. }
  26917. var mk int
  26918. var mv string
  26919. hasLen := containerLen > 0
  26920. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26921. if esep {
  26922. dd.ReadMapElemKey()
  26923. }
  26924. mk = int(dd.DecodeInt(intBitsize))
  26925. if esep {
  26926. dd.ReadMapElemValue()
  26927. }
  26928. if dd.TryDecodeAsNil() {
  26929. if v == nil {
  26930. } else if d.h.DeleteOnNilMapValue {
  26931. delete(v, mk)
  26932. } else {
  26933. v[mk] = ""
  26934. }
  26935. continue
  26936. }
  26937. mv = dd.DecodeString()
  26938. if v != nil {
  26939. v[mk] = mv
  26940. }
  26941. }
  26942. dd.ReadMapEnd()
  26943. return v, changed
  26944. }
  26945. func (d *Decoder) fastpathDecMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  26946. if rv.Kind() == reflect.Ptr {
  26947. vp := rv2i(rv).(*map[int]uint)
  26948. v, changed := fastpathTV.DecMapIntUintV(*vp, true, d)
  26949. if changed {
  26950. *vp = v
  26951. }
  26952. } else {
  26953. fastpathTV.DecMapIntUintV(rv2i(rv).(map[int]uint), false, d)
  26954. }
  26955. }
  26956. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, d *Decoder) {
  26957. v, changed := f.DecMapIntUintV(*vp, true, d)
  26958. if changed {
  26959. *vp = v
  26960. }
  26961. }
  26962. func (_ fastpathT) DecMapIntUintV(v map[int]uint, canChange bool,
  26963. d *Decoder) (_ map[int]uint, changed bool) {
  26964. dd, esep := d.d, d.hh.hasElemSeparators()
  26965. containerLen := dd.ReadMapStart()
  26966. if canChange && v == nil {
  26967. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26968. v = make(map[int]uint, xlen)
  26969. changed = true
  26970. }
  26971. if containerLen == 0 {
  26972. dd.ReadMapEnd()
  26973. return v, changed
  26974. }
  26975. var mk int
  26976. var mv uint
  26977. hasLen := containerLen > 0
  26978. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26979. if esep {
  26980. dd.ReadMapElemKey()
  26981. }
  26982. mk = int(dd.DecodeInt(intBitsize))
  26983. if esep {
  26984. dd.ReadMapElemValue()
  26985. }
  26986. if dd.TryDecodeAsNil() {
  26987. if v == nil {
  26988. } else if d.h.DeleteOnNilMapValue {
  26989. delete(v, mk)
  26990. } else {
  26991. v[mk] = 0
  26992. }
  26993. continue
  26994. }
  26995. mv = uint(dd.DecodeUint(uintBitsize))
  26996. if v != nil {
  26997. v[mk] = mv
  26998. }
  26999. }
  27000. dd.ReadMapEnd()
  27001. return v, changed
  27002. }
  27003. func (d *Decoder) fastpathDecMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  27004. if rv.Kind() == reflect.Ptr {
  27005. vp := rv2i(rv).(*map[int]uint8)
  27006. v, changed := fastpathTV.DecMapIntUint8V(*vp, true, d)
  27007. if changed {
  27008. *vp = v
  27009. }
  27010. } else {
  27011. fastpathTV.DecMapIntUint8V(rv2i(rv).(map[int]uint8), false, d)
  27012. }
  27013. }
  27014. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, d *Decoder) {
  27015. v, changed := f.DecMapIntUint8V(*vp, true, d)
  27016. if changed {
  27017. *vp = v
  27018. }
  27019. }
  27020. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, canChange bool,
  27021. d *Decoder) (_ map[int]uint8, changed bool) {
  27022. dd, esep := d.d, d.hh.hasElemSeparators()
  27023. containerLen := dd.ReadMapStart()
  27024. if canChange && v == nil {
  27025. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27026. v = make(map[int]uint8, xlen)
  27027. changed = true
  27028. }
  27029. if containerLen == 0 {
  27030. dd.ReadMapEnd()
  27031. return v, changed
  27032. }
  27033. var mk int
  27034. var mv uint8
  27035. hasLen := containerLen > 0
  27036. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27037. if esep {
  27038. dd.ReadMapElemKey()
  27039. }
  27040. mk = int(dd.DecodeInt(intBitsize))
  27041. if esep {
  27042. dd.ReadMapElemValue()
  27043. }
  27044. if dd.TryDecodeAsNil() {
  27045. if v == nil {
  27046. } else if d.h.DeleteOnNilMapValue {
  27047. delete(v, mk)
  27048. } else {
  27049. v[mk] = 0
  27050. }
  27051. continue
  27052. }
  27053. mv = uint8(dd.DecodeUint(8))
  27054. if v != nil {
  27055. v[mk] = mv
  27056. }
  27057. }
  27058. dd.ReadMapEnd()
  27059. return v, changed
  27060. }
  27061. func (d *Decoder) fastpathDecMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  27062. if rv.Kind() == reflect.Ptr {
  27063. vp := rv2i(rv).(*map[int]uint16)
  27064. v, changed := fastpathTV.DecMapIntUint16V(*vp, true, d)
  27065. if changed {
  27066. *vp = v
  27067. }
  27068. } else {
  27069. fastpathTV.DecMapIntUint16V(rv2i(rv).(map[int]uint16), false, d)
  27070. }
  27071. }
  27072. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, d *Decoder) {
  27073. v, changed := f.DecMapIntUint16V(*vp, true, d)
  27074. if changed {
  27075. *vp = v
  27076. }
  27077. }
  27078. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, canChange bool,
  27079. d *Decoder) (_ map[int]uint16, changed bool) {
  27080. dd, esep := d.d, d.hh.hasElemSeparators()
  27081. containerLen := dd.ReadMapStart()
  27082. if canChange && v == nil {
  27083. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27084. v = make(map[int]uint16, xlen)
  27085. changed = true
  27086. }
  27087. if containerLen == 0 {
  27088. dd.ReadMapEnd()
  27089. return v, changed
  27090. }
  27091. var mk int
  27092. var mv uint16
  27093. hasLen := containerLen > 0
  27094. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27095. if esep {
  27096. dd.ReadMapElemKey()
  27097. }
  27098. mk = int(dd.DecodeInt(intBitsize))
  27099. if esep {
  27100. dd.ReadMapElemValue()
  27101. }
  27102. if dd.TryDecodeAsNil() {
  27103. if v == nil {
  27104. } else if d.h.DeleteOnNilMapValue {
  27105. delete(v, mk)
  27106. } else {
  27107. v[mk] = 0
  27108. }
  27109. continue
  27110. }
  27111. mv = uint16(dd.DecodeUint(16))
  27112. if v != nil {
  27113. v[mk] = mv
  27114. }
  27115. }
  27116. dd.ReadMapEnd()
  27117. return v, changed
  27118. }
  27119. func (d *Decoder) fastpathDecMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  27120. if rv.Kind() == reflect.Ptr {
  27121. vp := rv2i(rv).(*map[int]uint32)
  27122. v, changed := fastpathTV.DecMapIntUint32V(*vp, true, d)
  27123. if changed {
  27124. *vp = v
  27125. }
  27126. } else {
  27127. fastpathTV.DecMapIntUint32V(rv2i(rv).(map[int]uint32), false, d)
  27128. }
  27129. }
  27130. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, d *Decoder) {
  27131. v, changed := f.DecMapIntUint32V(*vp, true, d)
  27132. if changed {
  27133. *vp = v
  27134. }
  27135. }
  27136. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, canChange bool,
  27137. d *Decoder) (_ map[int]uint32, changed bool) {
  27138. dd, esep := d.d, d.hh.hasElemSeparators()
  27139. containerLen := dd.ReadMapStart()
  27140. if canChange && v == nil {
  27141. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27142. v = make(map[int]uint32, xlen)
  27143. changed = true
  27144. }
  27145. if containerLen == 0 {
  27146. dd.ReadMapEnd()
  27147. return v, changed
  27148. }
  27149. var mk int
  27150. var mv uint32
  27151. hasLen := containerLen > 0
  27152. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27153. if esep {
  27154. dd.ReadMapElemKey()
  27155. }
  27156. mk = int(dd.DecodeInt(intBitsize))
  27157. if esep {
  27158. dd.ReadMapElemValue()
  27159. }
  27160. if dd.TryDecodeAsNil() {
  27161. if v == nil {
  27162. } else if d.h.DeleteOnNilMapValue {
  27163. delete(v, mk)
  27164. } else {
  27165. v[mk] = 0
  27166. }
  27167. continue
  27168. }
  27169. mv = uint32(dd.DecodeUint(32))
  27170. if v != nil {
  27171. v[mk] = mv
  27172. }
  27173. }
  27174. dd.ReadMapEnd()
  27175. return v, changed
  27176. }
  27177. func (d *Decoder) fastpathDecMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  27178. if rv.Kind() == reflect.Ptr {
  27179. vp := rv2i(rv).(*map[int]uint64)
  27180. v, changed := fastpathTV.DecMapIntUint64V(*vp, true, d)
  27181. if changed {
  27182. *vp = v
  27183. }
  27184. } else {
  27185. fastpathTV.DecMapIntUint64V(rv2i(rv).(map[int]uint64), false, d)
  27186. }
  27187. }
  27188. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, d *Decoder) {
  27189. v, changed := f.DecMapIntUint64V(*vp, true, d)
  27190. if changed {
  27191. *vp = v
  27192. }
  27193. }
  27194. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, canChange bool,
  27195. d *Decoder) (_ map[int]uint64, changed bool) {
  27196. dd, esep := d.d, d.hh.hasElemSeparators()
  27197. containerLen := dd.ReadMapStart()
  27198. if canChange && v == nil {
  27199. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27200. v = make(map[int]uint64, xlen)
  27201. changed = true
  27202. }
  27203. if containerLen == 0 {
  27204. dd.ReadMapEnd()
  27205. return v, changed
  27206. }
  27207. var mk int
  27208. var mv uint64
  27209. hasLen := containerLen > 0
  27210. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27211. if esep {
  27212. dd.ReadMapElemKey()
  27213. }
  27214. mk = int(dd.DecodeInt(intBitsize))
  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.DecodeUint(64)
  27228. if v != nil {
  27229. v[mk] = mv
  27230. }
  27231. }
  27232. dd.ReadMapEnd()
  27233. return v, changed
  27234. }
  27235. func (d *Decoder) fastpathDecMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  27236. if rv.Kind() == reflect.Ptr {
  27237. vp := rv2i(rv).(*map[int]uintptr)
  27238. v, changed := fastpathTV.DecMapIntUintptrV(*vp, true, d)
  27239. if changed {
  27240. *vp = v
  27241. }
  27242. } else {
  27243. fastpathTV.DecMapIntUintptrV(rv2i(rv).(map[int]uintptr), false, d)
  27244. }
  27245. }
  27246. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, d *Decoder) {
  27247. v, changed := f.DecMapIntUintptrV(*vp, true, d)
  27248. if changed {
  27249. *vp = v
  27250. }
  27251. }
  27252. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, canChange bool,
  27253. d *Decoder) (_ map[int]uintptr, changed bool) {
  27254. dd, esep := d.d, d.hh.hasElemSeparators()
  27255. containerLen := dd.ReadMapStart()
  27256. if canChange && v == nil {
  27257. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27258. v = make(map[int]uintptr, xlen)
  27259. changed = true
  27260. }
  27261. if containerLen == 0 {
  27262. dd.ReadMapEnd()
  27263. return v, changed
  27264. }
  27265. var mk int
  27266. var mv uintptr
  27267. hasLen := containerLen > 0
  27268. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27269. if esep {
  27270. dd.ReadMapElemKey()
  27271. }
  27272. mk = int(dd.DecodeInt(intBitsize))
  27273. if esep {
  27274. dd.ReadMapElemValue()
  27275. }
  27276. if dd.TryDecodeAsNil() {
  27277. if v == nil {
  27278. } else if d.h.DeleteOnNilMapValue {
  27279. delete(v, mk)
  27280. } else {
  27281. v[mk] = 0
  27282. }
  27283. continue
  27284. }
  27285. mv = uintptr(dd.DecodeUint(uintBitsize))
  27286. if v != nil {
  27287. v[mk] = mv
  27288. }
  27289. }
  27290. dd.ReadMapEnd()
  27291. return v, changed
  27292. }
  27293. func (d *Decoder) fastpathDecMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  27294. if rv.Kind() == reflect.Ptr {
  27295. vp := rv2i(rv).(*map[int]int)
  27296. v, changed := fastpathTV.DecMapIntIntV(*vp, true, d)
  27297. if changed {
  27298. *vp = v
  27299. }
  27300. } else {
  27301. fastpathTV.DecMapIntIntV(rv2i(rv).(map[int]int), false, d)
  27302. }
  27303. }
  27304. func (f fastpathT) DecMapIntIntX(vp *map[int]int, d *Decoder) {
  27305. v, changed := f.DecMapIntIntV(*vp, true, d)
  27306. if changed {
  27307. *vp = v
  27308. }
  27309. }
  27310. func (_ fastpathT) DecMapIntIntV(v map[int]int, canChange bool,
  27311. d *Decoder) (_ map[int]int, changed bool) {
  27312. dd, esep := d.d, d.hh.hasElemSeparators()
  27313. containerLen := dd.ReadMapStart()
  27314. if canChange && v == nil {
  27315. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27316. v = make(map[int]int, xlen)
  27317. changed = true
  27318. }
  27319. if containerLen == 0 {
  27320. dd.ReadMapEnd()
  27321. return v, changed
  27322. }
  27323. var mk int
  27324. var mv int
  27325. hasLen := containerLen > 0
  27326. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27327. if esep {
  27328. dd.ReadMapElemKey()
  27329. }
  27330. mk = int(dd.DecodeInt(intBitsize))
  27331. if esep {
  27332. dd.ReadMapElemValue()
  27333. }
  27334. if dd.TryDecodeAsNil() {
  27335. if v == nil {
  27336. } else if d.h.DeleteOnNilMapValue {
  27337. delete(v, mk)
  27338. } else {
  27339. v[mk] = 0
  27340. }
  27341. continue
  27342. }
  27343. mv = int(dd.DecodeInt(intBitsize))
  27344. if v != nil {
  27345. v[mk] = mv
  27346. }
  27347. }
  27348. dd.ReadMapEnd()
  27349. return v, changed
  27350. }
  27351. func (d *Decoder) fastpathDecMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  27352. if rv.Kind() == reflect.Ptr {
  27353. vp := rv2i(rv).(*map[int]int8)
  27354. v, changed := fastpathTV.DecMapIntInt8V(*vp, true, d)
  27355. if changed {
  27356. *vp = v
  27357. }
  27358. } else {
  27359. fastpathTV.DecMapIntInt8V(rv2i(rv).(map[int]int8), false, d)
  27360. }
  27361. }
  27362. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, d *Decoder) {
  27363. v, changed := f.DecMapIntInt8V(*vp, true, d)
  27364. if changed {
  27365. *vp = v
  27366. }
  27367. }
  27368. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, canChange bool,
  27369. d *Decoder) (_ map[int]int8, changed bool) {
  27370. dd, esep := d.d, d.hh.hasElemSeparators()
  27371. containerLen := dd.ReadMapStart()
  27372. if canChange && v == nil {
  27373. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27374. v = make(map[int]int8, xlen)
  27375. changed = true
  27376. }
  27377. if containerLen == 0 {
  27378. dd.ReadMapEnd()
  27379. return v, changed
  27380. }
  27381. var mk int
  27382. var mv int8
  27383. hasLen := containerLen > 0
  27384. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27385. if esep {
  27386. dd.ReadMapElemKey()
  27387. }
  27388. mk = int(dd.DecodeInt(intBitsize))
  27389. if esep {
  27390. dd.ReadMapElemValue()
  27391. }
  27392. if dd.TryDecodeAsNil() {
  27393. if v == nil {
  27394. } else if d.h.DeleteOnNilMapValue {
  27395. delete(v, mk)
  27396. } else {
  27397. v[mk] = 0
  27398. }
  27399. continue
  27400. }
  27401. mv = int8(dd.DecodeInt(8))
  27402. if v != nil {
  27403. v[mk] = mv
  27404. }
  27405. }
  27406. dd.ReadMapEnd()
  27407. return v, changed
  27408. }
  27409. func (d *Decoder) fastpathDecMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  27410. if rv.Kind() == reflect.Ptr {
  27411. vp := rv2i(rv).(*map[int]int16)
  27412. v, changed := fastpathTV.DecMapIntInt16V(*vp, true, d)
  27413. if changed {
  27414. *vp = v
  27415. }
  27416. } else {
  27417. fastpathTV.DecMapIntInt16V(rv2i(rv).(map[int]int16), false, d)
  27418. }
  27419. }
  27420. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, d *Decoder) {
  27421. v, changed := f.DecMapIntInt16V(*vp, true, d)
  27422. if changed {
  27423. *vp = v
  27424. }
  27425. }
  27426. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, canChange bool,
  27427. d *Decoder) (_ map[int]int16, changed bool) {
  27428. dd, esep := d.d, d.hh.hasElemSeparators()
  27429. containerLen := dd.ReadMapStart()
  27430. if canChange && v == nil {
  27431. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27432. v = make(map[int]int16, xlen)
  27433. changed = true
  27434. }
  27435. if containerLen == 0 {
  27436. dd.ReadMapEnd()
  27437. return v, changed
  27438. }
  27439. var mk int
  27440. var mv int16
  27441. hasLen := containerLen > 0
  27442. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27443. if esep {
  27444. dd.ReadMapElemKey()
  27445. }
  27446. mk = int(dd.DecodeInt(intBitsize))
  27447. if esep {
  27448. dd.ReadMapElemValue()
  27449. }
  27450. if dd.TryDecodeAsNil() {
  27451. if v == nil {
  27452. } else if d.h.DeleteOnNilMapValue {
  27453. delete(v, mk)
  27454. } else {
  27455. v[mk] = 0
  27456. }
  27457. continue
  27458. }
  27459. mv = int16(dd.DecodeInt(16))
  27460. if v != nil {
  27461. v[mk] = mv
  27462. }
  27463. }
  27464. dd.ReadMapEnd()
  27465. return v, changed
  27466. }
  27467. func (d *Decoder) fastpathDecMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  27468. if rv.Kind() == reflect.Ptr {
  27469. vp := rv2i(rv).(*map[int]int32)
  27470. v, changed := fastpathTV.DecMapIntInt32V(*vp, true, d)
  27471. if changed {
  27472. *vp = v
  27473. }
  27474. } else {
  27475. fastpathTV.DecMapIntInt32V(rv2i(rv).(map[int]int32), false, d)
  27476. }
  27477. }
  27478. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, d *Decoder) {
  27479. v, changed := f.DecMapIntInt32V(*vp, true, d)
  27480. if changed {
  27481. *vp = v
  27482. }
  27483. }
  27484. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, canChange bool,
  27485. d *Decoder) (_ map[int]int32, changed bool) {
  27486. dd, esep := d.d, d.hh.hasElemSeparators()
  27487. containerLen := dd.ReadMapStart()
  27488. if canChange && v == nil {
  27489. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27490. v = make(map[int]int32, xlen)
  27491. changed = true
  27492. }
  27493. if containerLen == 0 {
  27494. dd.ReadMapEnd()
  27495. return v, changed
  27496. }
  27497. var mk int
  27498. var mv int32
  27499. hasLen := containerLen > 0
  27500. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27501. if esep {
  27502. dd.ReadMapElemKey()
  27503. }
  27504. mk = int(dd.DecodeInt(intBitsize))
  27505. if esep {
  27506. dd.ReadMapElemValue()
  27507. }
  27508. if dd.TryDecodeAsNil() {
  27509. if v == nil {
  27510. } else if d.h.DeleteOnNilMapValue {
  27511. delete(v, mk)
  27512. } else {
  27513. v[mk] = 0
  27514. }
  27515. continue
  27516. }
  27517. mv = int32(dd.DecodeInt(32))
  27518. if v != nil {
  27519. v[mk] = mv
  27520. }
  27521. }
  27522. dd.ReadMapEnd()
  27523. return v, changed
  27524. }
  27525. func (d *Decoder) fastpathDecMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  27526. if rv.Kind() == reflect.Ptr {
  27527. vp := rv2i(rv).(*map[int]int64)
  27528. v, changed := fastpathTV.DecMapIntInt64V(*vp, true, d)
  27529. if changed {
  27530. *vp = v
  27531. }
  27532. } else {
  27533. fastpathTV.DecMapIntInt64V(rv2i(rv).(map[int]int64), false, d)
  27534. }
  27535. }
  27536. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, d *Decoder) {
  27537. v, changed := f.DecMapIntInt64V(*vp, true, d)
  27538. if changed {
  27539. *vp = v
  27540. }
  27541. }
  27542. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, canChange bool,
  27543. d *Decoder) (_ map[int]int64, changed bool) {
  27544. dd, esep := d.d, d.hh.hasElemSeparators()
  27545. containerLen := dd.ReadMapStart()
  27546. if canChange && v == nil {
  27547. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27548. v = make(map[int]int64, xlen)
  27549. changed = true
  27550. }
  27551. if containerLen == 0 {
  27552. dd.ReadMapEnd()
  27553. return v, changed
  27554. }
  27555. var mk int
  27556. var mv int64
  27557. hasLen := containerLen > 0
  27558. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27559. if esep {
  27560. dd.ReadMapElemKey()
  27561. }
  27562. mk = int(dd.DecodeInt(intBitsize))
  27563. if esep {
  27564. dd.ReadMapElemValue()
  27565. }
  27566. if dd.TryDecodeAsNil() {
  27567. if v == nil {
  27568. } else if d.h.DeleteOnNilMapValue {
  27569. delete(v, mk)
  27570. } else {
  27571. v[mk] = 0
  27572. }
  27573. continue
  27574. }
  27575. mv = dd.DecodeInt(64)
  27576. if v != nil {
  27577. v[mk] = mv
  27578. }
  27579. }
  27580. dd.ReadMapEnd()
  27581. return v, changed
  27582. }
  27583. func (d *Decoder) fastpathDecMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  27584. if rv.Kind() == reflect.Ptr {
  27585. vp := rv2i(rv).(*map[int]float32)
  27586. v, changed := fastpathTV.DecMapIntFloat32V(*vp, true, d)
  27587. if changed {
  27588. *vp = v
  27589. }
  27590. } else {
  27591. fastpathTV.DecMapIntFloat32V(rv2i(rv).(map[int]float32), false, d)
  27592. }
  27593. }
  27594. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, d *Decoder) {
  27595. v, changed := f.DecMapIntFloat32V(*vp, true, d)
  27596. if changed {
  27597. *vp = v
  27598. }
  27599. }
  27600. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, canChange bool,
  27601. d *Decoder) (_ map[int]float32, changed bool) {
  27602. dd, esep := d.d, d.hh.hasElemSeparators()
  27603. containerLen := dd.ReadMapStart()
  27604. if canChange && v == nil {
  27605. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27606. v = make(map[int]float32, xlen)
  27607. changed = true
  27608. }
  27609. if containerLen == 0 {
  27610. dd.ReadMapEnd()
  27611. return v, changed
  27612. }
  27613. var mk int
  27614. var mv float32
  27615. hasLen := containerLen > 0
  27616. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27617. if esep {
  27618. dd.ReadMapElemKey()
  27619. }
  27620. mk = int(dd.DecodeInt(intBitsize))
  27621. if esep {
  27622. dd.ReadMapElemValue()
  27623. }
  27624. if dd.TryDecodeAsNil() {
  27625. if v == nil {
  27626. } else if d.h.DeleteOnNilMapValue {
  27627. delete(v, mk)
  27628. } else {
  27629. v[mk] = 0
  27630. }
  27631. continue
  27632. }
  27633. mv = float32(chkFloat32(dd.DecodeFloat64()))
  27634. if v != nil {
  27635. v[mk] = mv
  27636. }
  27637. }
  27638. dd.ReadMapEnd()
  27639. return v, changed
  27640. }
  27641. func (d *Decoder) fastpathDecMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  27642. if rv.Kind() == reflect.Ptr {
  27643. vp := rv2i(rv).(*map[int]float64)
  27644. v, changed := fastpathTV.DecMapIntFloat64V(*vp, true, d)
  27645. if changed {
  27646. *vp = v
  27647. }
  27648. } else {
  27649. fastpathTV.DecMapIntFloat64V(rv2i(rv).(map[int]float64), false, d)
  27650. }
  27651. }
  27652. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, d *Decoder) {
  27653. v, changed := f.DecMapIntFloat64V(*vp, true, d)
  27654. if changed {
  27655. *vp = v
  27656. }
  27657. }
  27658. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, canChange bool,
  27659. d *Decoder) (_ map[int]float64, changed bool) {
  27660. dd, esep := d.d, d.hh.hasElemSeparators()
  27661. containerLen := dd.ReadMapStart()
  27662. if canChange && v == nil {
  27663. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27664. v = make(map[int]float64, xlen)
  27665. changed = true
  27666. }
  27667. if containerLen == 0 {
  27668. dd.ReadMapEnd()
  27669. return v, changed
  27670. }
  27671. var mk int
  27672. var mv float64
  27673. hasLen := containerLen > 0
  27674. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27675. if esep {
  27676. dd.ReadMapElemKey()
  27677. }
  27678. mk = int(dd.DecodeInt(intBitsize))
  27679. if esep {
  27680. dd.ReadMapElemValue()
  27681. }
  27682. if dd.TryDecodeAsNil() {
  27683. if v == nil {
  27684. } else if d.h.DeleteOnNilMapValue {
  27685. delete(v, mk)
  27686. } else {
  27687. v[mk] = 0
  27688. }
  27689. continue
  27690. }
  27691. mv = dd.DecodeFloat64()
  27692. if v != nil {
  27693. v[mk] = mv
  27694. }
  27695. }
  27696. dd.ReadMapEnd()
  27697. return v, changed
  27698. }
  27699. func (d *Decoder) fastpathDecMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  27700. if rv.Kind() == reflect.Ptr {
  27701. vp := rv2i(rv).(*map[int]bool)
  27702. v, changed := fastpathTV.DecMapIntBoolV(*vp, true, d)
  27703. if changed {
  27704. *vp = v
  27705. }
  27706. } else {
  27707. fastpathTV.DecMapIntBoolV(rv2i(rv).(map[int]bool), false, d)
  27708. }
  27709. }
  27710. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, d *Decoder) {
  27711. v, changed := f.DecMapIntBoolV(*vp, true, d)
  27712. if changed {
  27713. *vp = v
  27714. }
  27715. }
  27716. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, canChange bool,
  27717. d *Decoder) (_ map[int]bool, changed bool) {
  27718. dd, esep := d.d, d.hh.hasElemSeparators()
  27719. containerLen := dd.ReadMapStart()
  27720. if canChange && v == nil {
  27721. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27722. v = make(map[int]bool, xlen)
  27723. changed = true
  27724. }
  27725. if containerLen == 0 {
  27726. dd.ReadMapEnd()
  27727. return v, changed
  27728. }
  27729. var mk int
  27730. var mv bool
  27731. hasLen := containerLen > 0
  27732. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27733. if esep {
  27734. dd.ReadMapElemKey()
  27735. }
  27736. mk = int(dd.DecodeInt(intBitsize))
  27737. if esep {
  27738. dd.ReadMapElemValue()
  27739. }
  27740. if dd.TryDecodeAsNil() {
  27741. if v == nil {
  27742. } else if d.h.DeleteOnNilMapValue {
  27743. delete(v, mk)
  27744. } else {
  27745. v[mk] = false
  27746. }
  27747. continue
  27748. }
  27749. mv = dd.DecodeBool()
  27750. if v != nil {
  27751. v[mk] = mv
  27752. }
  27753. }
  27754. dd.ReadMapEnd()
  27755. return v, changed
  27756. }
  27757. func (d *Decoder) fastpathDecMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  27758. if rv.Kind() == reflect.Ptr {
  27759. vp := rv2i(rv).(*map[int8]interface{})
  27760. v, changed := fastpathTV.DecMapInt8IntfV(*vp, true, d)
  27761. if changed {
  27762. *vp = v
  27763. }
  27764. } else {
  27765. fastpathTV.DecMapInt8IntfV(rv2i(rv).(map[int8]interface{}), false, d)
  27766. }
  27767. }
  27768. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, d *Decoder) {
  27769. v, changed := f.DecMapInt8IntfV(*vp, true, d)
  27770. if changed {
  27771. *vp = v
  27772. }
  27773. }
  27774. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, canChange bool,
  27775. d *Decoder) (_ map[int8]interface{}, changed bool) {
  27776. dd, esep := d.d, d.hh.hasElemSeparators()
  27777. containerLen := dd.ReadMapStart()
  27778. if canChange && v == nil {
  27779. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  27780. v = make(map[int8]interface{}, xlen)
  27781. changed = true
  27782. }
  27783. if containerLen == 0 {
  27784. dd.ReadMapEnd()
  27785. return v, changed
  27786. }
  27787. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  27788. var mk int8
  27789. var mv interface{}
  27790. hasLen := containerLen > 0
  27791. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27792. if esep {
  27793. dd.ReadMapElemKey()
  27794. }
  27795. mk = int8(dd.DecodeInt(8))
  27796. if esep {
  27797. dd.ReadMapElemValue()
  27798. }
  27799. if dd.TryDecodeAsNil() {
  27800. if v == nil {
  27801. } else if d.h.DeleteOnNilMapValue {
  27802. delete(v, mk)
  27803. } else {
  27804. v[mk] = nil
  27805. }
  27806. continue
  27807. }
  27808. if mapGet {
  27809. mv = v[mk]
  27810. } else {
  27811. mv = nil
  27812. }
  27813. d.decode(&mv)
  27814. if v != nil {
  27815. v[mk] = mv
  27816. }
  27817. }
  27818. dd.ReadMapEnd()
  27819. return v, changed
  27820. }
  27821. func (d *Decoder) fastpathDecMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  27822. if rv.Kind() == reflect.Ptr {
  27823. vp := rv2i(rv).(*map[int8]string)
  27824. v, changed := fastpathTV.DecMapInt8StringV(*vp, true, d)
  27825. if changed {
  27826. *vp = v
  27827. }
  27828. } else {
  27829. fastpathTV.DecMapInt8StringV(rv2i(rv).(map[int8]string), false, d)
  27830. }
  27831. }
  27832. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, d *Decoder) {
  27833. v, changed := f.DecMapInt8StringV(*vp, true, d)
  27834. if changed {
  27835. *vp = v
  27836. }
  27837. }
  27838. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, canChange bool,
  27839. d *Decoder) (_ map[int8]string, changed bool) {
  27840. dd, esep := d.d, d.hh.hasElemSeparators()
  27841. containerLen := dd.ReadMapStart()
  27842. if canChange && v == nil {
  27843. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  27844. v = make(map[int8]string, xlen)
  27845. changed = true
  27846. }
  27847. if containerLen == 0 {
  27848. dd.ReadMapEnd()
  27849. return v, changed
  27850. }
  27851. var mk int8
  27852. var mv string
  27853. hasLen := containerLen > 0
  27854. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27855. if esep {
  27856. dd.ReadMapElemKey()
  27857. }
  27858. mk = int8(dd.DecodeInt(8))
  27859. if esep {
  27860. dd.ReadMapElemValue()
  27861. }
  27862. if dd.TryDecodeAsNil() {
  27863. if v == nil {
  27864. } else if d.h.DeleteOnNilMapValue {
  27865. delete(v, mk)
  27866. } else {
  27867. v[mk] = ""
  27868. }
  27869. continue
  27870. }
  27871. mv = dd.DecodeString()
  27872. if v != nil {
  27873. v[mk] = mv
  27874. }
  27875. }
  27876. dd.ReadMapEnd()
  27877. return v, changed
  27878. }
  27879. func (d *Decoder) fastpathDecMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  27880. if rv.Kind() == reflect.Ptr {
  27881. vp := rv2i(rv).(*map[int8]uint)
  27882. v, changed := fastpathTV.DecMapInt8UintV(*vp, true, d)
  27883. if changed {
  27884. *vp = v
  27885. }
  27886. } else {
  27887. fastpathTV.DecMapInt8UintV(rv2i(rv).(map[int8]uint), false, d)
  27888. }
  27889. }
  27890. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, d *Decoder) {
  27891. v, changed := f.DecMapInt8UintV(*vp, true, d)
  27892. if changed {
  27893. *vp = v
  27894. }
  27895. }
  27896. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, canChange bool,
  27897. d *Decoder) (_ map[int8]uint, changed bool) {
  27898. dd, esep := d.d, d.hh.hasElemSeparators()
  27899. containerLen := dd.ReadMapStart()
  27900. if canChange && v == nil {
  27901. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27902. v = make(map[int8]uint, xlen)
  27903. changed = true
  27904. }
  27905. if containerLen == 0 {
  27906. dd.ReadMapEnd()
  27907. return v, changed
  27908. }
  27909. var mk int8
  27910. var mv uint
  27911. hasLen := containerLen > 0
  27912. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27913. if esep {
  27914. dd.ReadMapElemKey()
  27915. }
  27916. mk = int8(dd.DecodeInt(8))
  27917. if esep {
  27918. dd.ReadMapElemValue()
  27919. }
  27920. if dd.TryDecodeAsNil() {
  27921. if v == nil {
  27922. } else if d.h.DeleteOnNilMapValue {
  27923. delete(v, mk)
  27924. } else {
  27925. v[mk] = 0
  27926. }
  27927. continue
  27928. }
  27929. mv = uint(dd.DecodeUint(uintBitsize))
  27930. if v != nil {
  27931. v[mk] = mv
  27932. }
  27933. }
  27934. dd.ReadMapEnd()
  27935. return v, changed
  27936. }
  27937. func (d *Decoder) fastpathDecMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  27938. if rv.Kind() == reflect.Ptr {
  27939. vp := rv2i(rv).(*map[int8]uint8)
  27940. v, changed := fastpathTV.DecMapInt8Uint8V(*vp, true, d)
  27941. if changed {
  27942. *vp = v
  27943. }
  27944. } else {
  27945. fastpathTV.DecMapInt8Uint8V(rv2i(rv).(map[int8]uint8), false, d)
  27946. }
  27947. }
  27948. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, d *Decoder) {
  27949. v, changed := f.DecMapInt8Uint8V(*vp, true, d)
  27950. if changed {
  27951. *vp = v
  27952. }
  27953. }
  27954. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, canChange bool,
  27955. d *Decoder) (_ map[int8]uint8, changed bool) {
  27956. dd, esep := d.d, d.hh.hasElemSeparators()
  27957. containerLen := dd.ReadMapStart()
  27958. if canChange && v == nil {
  27959. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  27960. v = make(map[int8]uint8, xlen)
  27961. changed = true
  27962. }
  27963. if containerLen == 0 {
  27964. dd.ReadMapEnd()
  27965. return v, changed
  27966. }
  27967. var mk int8
  27968. var mv uint8
  27969. hasLen := containerLen > 0
  27970. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27971. if esep {
  27972. dd.ReadMapElemKey()
  27973. }
  27974. mk = int8(dd.DecodeInt(8))
  27975. if esep {
  27976. dd.ReadMapElemValue()
  27977. }
  27978. if dd.TryDecodeAsNil() {
  27979. if v == nil {
  27980. } else if d.h.DeleteOnNilMapValue {
  27981. delete(v, mk)
  27982. } else {
  27983. v[mk] = 0
  27984. }
  27985. continue
  27986. }
  27987. mv = uint8(dd.DecodeUint(8))
  27988. if v != nil {
  27989. v[mk] = mv
  27990. }
  27991. }
  27992. dd.ReadMapEnd()
  27993. return v, changed
  27994. }
  27995. func (d *Decoder) fastpathDecMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  27996. if rv.Kind() == reflect.Ptr {
  27997. vp := rv2i(rv).(*map[int8]uint16)
  27998. v, changed := fastpathTV.DecMapInt8Uint16V(*vp, true, d)
  27999. if changed {
  28000. *vp = v
  28001. }
  28002. } else {
  28003. fastpathTV.DecMapInt8Uint16V(rv2i(rv).(map[int8]uint16), false, d)
  28004. }
  28005. }
  28006. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, d *Decoder) {
  28007. v, changed := f.DecMapInt8Uint16V(*vp, true, d)
  28008. if changed {
  28009. *vp = v
  28010. }
  28011. }
  28012. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, canChange bool,
  28013. d *Decoder) (_ map[int8]uint16, changed bool) {
  28014. dd, esep := d.d, d.hh.hasElemSeparators()
  28015. containerLen := dd.ReadMapStart()
  28016. if canChange && v == nil {
  28017. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  28018. v = make(map[int8]uint16, xlen)
  28019. changed = true
  28020. }
  28021. if containerLen == 0 {
  28022. dd.ReadMapEnd()
  28023. return v, changed
  28024. }
  28025. var mk int8
  28026. var mv uint16
  28027. hasLen := containerLen > 0
  28028. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28029. if esep {
  28030. dd.ReadMapElemKey()
  28031. }
  28032. mk = int8(dd.DecodeInt(8))
  28033. if esep {
  28034. dd.ReadMapElemValue()
  28035. }
  28036. if dd.TryDecodeAsNil() {
  28037. if v == nil {
  28038. } else if d.h.DeleteOnNilMapValue {
  28039. delete(v, mk)
  28040. } else {
  28041. v[mk] = 0
  28042. }
  28043. continue
  28044. }
  28045. mv = uint16(dd.DecodeUint(16))
  28046. if v != nil {
  28047. v[mk] = mv
  28048. }
  28049. }
  28050. dd.ReadMapEnd()
  28051. return v, changed
  28052. }
  28053. func (d *Decoder) fastpathDecMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  28054. if rv.Kind() == reflect.Ptr {
  28055. vp := rv2i(rv).(*map[int8]uint32)
  28056. v, changed := fastpathTV.DecMapInt8Uint32V(*vp, true, d)
  28057. if changed {
  28058. *vp = v
  28059. }
  28060. } else {
  28061. fastpathTV.DecMapInt8Uint32V(rv2i(rv).(map[int8]uint32), false, d)
  28062. }
  28063. }
  28064. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, d *Decoder) {
  28065. v, changed := f.DecMapInt8Uint32V(*vp, true, d)
  28066. if changed {
  28067. *vp = v
  28068. }
  28069. }
  28070. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, canChange bool,
  28071. d *Decoder) (_ map[int8]uint32, changed bool) {
  28072. dd, esep := d.d, d.hh.hasElemSeparators()
  28073. containerLen := dd.ReadMapStart()
  28074. if canChange && v == nil {
  28075. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28076. v = make(map[int8]uint32, xlen)
  28077. changed = true
  28078. }
  28079. if containerLen == 0 {
  28080. dd.ReadMapEnd()
  28081. return v, changed
  28082. }
  28083. var mk int8
  28084. var mv uint32
  28085. hasLen := containerLen > 0
  28086. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28087. if esep {
  28088. dd.ReadMapElemKey()
  28089. }
  28090. mk = int8(dd.DecodeInt(8))
  28091. if esep {
  28092. dd.ReadMapElemValue()
  28093. }
  28094. if dd.TryDecodeAsNil() {
  28095. if v == nil {
  28096. } else if d.h.DeleteOnNilMapValue {
  28097. delete(v, mk)
  28098. } else {
  28099. v[mk] = 0
  28100. }
  28101. continue
  28102. }
  28103. mv = uint32(dd.DecodeUint(32))
  28104. if v != nil {
  28105. v[mk] = mv
  28106. }
  28107. }
  28108. dd.ReadMapEnd()
  28109. return v, changed
  28110. }
  28111. func (d *Decoder) fastpathDecMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  28112. if rv.Kind() == reflect.Ptr {
  28113. vp := rv2i(rv).(*map[int8]uint64)
  28114. v, changed := fastpathTV.DecMapInt8Uint64V(*vp, true, d)
  28115. if changed {
  28116. *vp = v
  28117. }
  28118. } else {
  28119. fastpathTV.DecMapInt8Uint64V(rv2i(rv).(map[int8]uint64), false, d)
  28120. }
  28121. }
  28122. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, d *Decoder) {
  28123. v, changed := f.DecMapInt8Uint64V(*vp, true, d)
  28124. if changed {
  28125. *vp = v
  28126. }
  28127. }
  28128. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, canChange bool,
  28129. d *Decoder) (_ map[int8]uint64, changed bool) {
  28130. dd, esep := d.d, d.hh.hasElemSeparators()
  28131. containerLen := dd.ReadMapStart()
  28132. if canChange && v == nil {
  28133. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28134. v = make(map[int8]uint64, xlen)
  28135. changed = true
  28136. }
  28137. if containerLen == 0 {
  28138. dd.ReadMapEnd()
  28139. return v, changed
  28140. }
  28141. var mk int8
  28142. var mv uint64
  28143. hasLen := containerLen > 0
  28144. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28145. if esep {
  28146. dd.ReadMapElemKey()
  28147. }
  28148. mk = int8(dd.DecodeInt(8))
  28149. if esep {
  28150. dd.ReadMapElemValue()
  28151. }
  28152. if dd.TryDecodeAsNil() {
  28153. if v == nil {
  28154. } else if d.h.DeleteOnNilMapValue {
  28155. delete(v, mk)
  28156. } else {
  28157. v[mk] = 0
  28158. }
  28159. continue
  28160. }
  28161. mv = dd.DecodeUint(64)
  28162. if v != nil {
  28163. v[mk] = mv
  28164. }
  28165. }
  28166. dd.ReadMapEnd()
  28167. return v, changed
  28168. }
  28169. func (d *Decoder) fastpathDecMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  28170. if rv.Kind() == reflect.Ptr {
  28171. vp := rv2i(rv).(*map[int8]uintptr)
  28172. v, changed := fastpathTV.DecMapInt8UintptrV(*vp, true, d)
  28173. if changed {
  28174. *vp = v
  28175. }
  28176. } else {
  28177. fastpathTV.DecMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), false, d)
  28178. }
  28179. }
  28180. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, d *Decoder) {
  28181. v, changed := f.DecMapInt8UintptrV(*vp, true, d)
  28182. if changed {
  28183. *vp = v
  28184. }
  28185. }
  28186. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, canChange bool,
  28187. d *Decoder) (_ map[int8]uintptr, changed bool) {
  28188. dd, esep := d.d, d.hh.hasElemSeparators()
  28189. containerLen := dd.ReadMapStart()
  28190. if canChange && v == nil {
  28191. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28192. v = make(map[int8]uintptr, xlen)
  28193. changed = true
  28194. }
  28195. if containerLen == 0 {
  28196. dd.ReadMapEnd()
  28197. return v, changed
  28198. }
  28199. var mk int8
  28200. var mv uintptr
  28201. hasLen := containerLen > 0
  28202. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28203. if esep {
  28204. dd.ReadMapElemKey()
  28205. }
  28206. mk = int8(dd.DecodeInt(8))
  28207. if esep {
  28208. dd.ReadMapElemValue()
  28209. }
  28210. if dd.TryDecodeAsNil() {
  28211. if v == nil {
  28212. } else if d.h.DeleteOnNilMapValue {
  28213. delete(v, mk)
  28214. } else {
  28215. v[mk] = 0
  28216. }
  28217. continue
  28218. }
  28219. mv = uintptr(dd.DecodeUint(uintBitsize))
  28220. if v != nil {
  28221. v[mk] = mv
  28222. }
  28223. }
  28224. dd.ReadMapEnd()
  28225. return v, changed
  28226. }
  28227. func (d *Decoder) fastpathDecMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  28228. if rv.Kind() == reflect.Ptr {
  28229. vp := rv2i(rv).(*map[int8]int)
  28230. v, changed := fastpathTV.DecMapInt8IntV(*vp, true, d)
  28231. if changed {
  28232. *vp = v
  28233. }
  28234. } else {
  28235. fastpathTV.DecMapInt8IntV(rv2i(rv).(map[int8]int), false, d)
  28236. }
  28237. }
  28238. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, d *Decoder) {
  28239. v, changed := f.DecMapInt8IntV(*vp, true, d)
  28240. if changed {
  28241. *vp = v
  28242. }
  28243. }
  28244. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, canChange bool,
  28245. d *Decoder) (_ map[int8]int, changed bool) {
  28246. dd, esep := d.d, d.hh.hasElemSeparators()
  28247. containerLen := dd.ReadMapStart()
  28248. if canChange && v == nil {
  28249. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28250. v = make(map[int8]int, xlen)
  28251. changed = true
  28252. }
  28253. if containerLen == 0 {
  28254. dd.ReadMapEnd()
  28255. return v, changed
  28256. }
  28257. var mk int8
  28258. var mv int
  28259. hasLen := containerLen > 0
  28260. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28261. if esep {
  28262. dd.ReadMapElemKey()
  28263. }
  28264. mk = int8(dd.DecodeInt(8))
  28265. if esep {
  28266. dd.ReadMapElemValue()
  28267. }
  28268. if dd.TryDecodeAsNil() {
  28269. if v == nil {
  28270. } else if d.h.DeleteOnNilMapValue {
  28271. delete(v, mk)
  28272. } else {
  28273. v[mk] = 0
  28274. }
  28275. continue
  28276. }
  28277. mv = int(dd.DecodeInt(intBitsize))
  28278. if v != nil {
  28279. v[mk] = mv
  28280. }
  28281. }
  28282. dd.ReadMapEnd()
  28283. return v, changed
  28284. }
  28285. func (d *Decoder) fastpathDecMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  28286. if rv.Kind() == reflect.Ptr {
  28287. vp := rv2i(rv).(*map[int8]int8)
  28288. v, changed := fastpathTV.DecMapInt8Int8V(*vp, true, d)
  28289. if changed {
  28290. *vp = v
  28291. }
  28292. } else {
  28293. fastpathTV.DecMapInt8Int8V(rv2i(rv).(map[int8]int8), false, d)
  28294. }
  28295. }
  28296. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, d *Decoder) {
  28297. v, changed := f.DecMapInt8Int8V(*vp, true, d)
  28298. if changed {
  28299. *vp = v
  28300. }
  28301. }
  28302. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, canChange bool,
  28303. d *Decoder) (_ map[int8]int8, changed bool) {
  28304. dd, esep := d.d, d.hh.hasElemSeparators()
  28305. containerLen := dd.ReadMapStart()
  28306. if canChange && v == nil {
  28307. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  28308. v = make(map[int8]int8, xlen)
  28309. changed = true
  28310. }
  28311. if containerLen == 0 {
  28312. dd.ReadMapEnd()
  28313. return v, changed
  28314. }
  28315. var mk int8
  28316. var mv int8
  28317. hasLen := containerLen > 0
  28318. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28319. if esep {
  28320. dd.ReadMapElemKey()
  28321. }
  28322. mk = int8(dd.DecodeInt(8))
  28323. if esep {
  28324. dd.ReadMapElemValue()
  28325. }
  28326. if dd.TryDecodeAsNil() {
  28327. if v == nil {
  28328. } else if d.h.DeleteOnNilMapValue {
  28329. delete(v, mk)
  28330. } else {
  28331. v[mk] = 0
  28332. }
  28333. continue
  28334. }
  28335. mv = int8(dd.DecodeInt(8))
  28336. if v != nil {
  28337. v[mk] = mv
  28338. }
  28339. }
  28340. dd.ReadMapEnd()
  28341. return v, changed
  28342. }
  28343. func (d *Decoder) fastpathDecMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  28344. if rv.Kind() == reflect.Ptr {
  28345. vp := rv2i(rv).(*map[int8]int16)
  28346. v, changed := fastpathTV.DecMapInt8Int16V(*vp, true, d)
  28347. if changed {
  28348. *vp = v
  28349. }
  28350. } else {
  28351. fastpathTV.DecMapInt8Int16V(rv2i(rv).(map[int8]int16), false, d)
  28352. }
  28353. }
  28354. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, d *Decoder) {
  28355. v, changed := f.DecMapInt8Int16V(*vp, true, d)
  28356. if changed {
  28357. *vp = v
  28358. }
  28359. }
  28360. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, canChange bool,
  28361. d *Decoder) (_ map[int8]int16, changed bool) {
  28362. dd, esep := d.d, d.hh.hasElemSeparators()
  28363. containerLen := dd.ReadMapStart()
  28364. if canChange && v == nil {
  28365. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  28366. v = make(map[int8]int16, xlen)
  28367. changed = true
  28368. }
  28369. if containerLen == 0 {
  28370. dd.ReadMapEnd()
  28371. return v, changed
  28372. }
  28373. var mk int8
  28374. var mv int16
  28375. hasLen := containerLen > 0
  28376. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28377. if esep {
  28378. dd.ReadMapElemKey()
  28379. }
  28380. mk = int8(dd.DecodeInt(8))
  28381. if esep {
  28382. dd.ReadMapElemValue()
  28383. }
  28384. if dd.TryDecodeAsNil() {
  28385. if v == nil {
  28386. } else if d.h.DeleteOnNilMapValue {
  28387. delete(v, mk)
  28388. } else {
  28389. v[mk] = 0
  28390. }
  28391. continue
  28392. }
  28393. mv = int16(dd.DecodeInt(16))
  28394. if v != nil {
  28395. v[mk] = mv
  28396. }
  28397. }
  28398. dd.ReadMapEnd()
  28399. return v, changed
  28400. }
  28401. func (d *Decoder) fastpathDecMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  28402. if rv.Kind() == reflect.Ptr {
  28403. vp := rv2i(rv).(*map[int8]int32)
  28404. v, changed := fastpathTV.DecMapInt8Int32V(*vp, true, d)
  28405. if changed {
  28406. *vp = v
  28407. }
  28408. } else {
  28409. fastpathTV.DecMapInt8Int32V(rv2i(rv).(map[int8]int32), false, d)
  28410. }
  28411. }
  28412. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, d *Decoder) {
  28413. v, changed := f.DecMapInt8Int32V(*vp, true, d)
  28414. if changed {
  28415. *vp = v
  28416. }
  28417. }
  28418. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, canChange bool,
  28419. d *Decoder) (_ map[int8]int32, changed bool) {
  28420. dd, esep := d.d, d.hh.hasElemSeparators()
  28421. containerLen := dd.ReadMapStart()
  28422. if canChange && v == nil {
  28423. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28424. v = make(map[int8]int32, xlen)
  28425. changed = true
  28426. }
  28427. if containerLen == 0 {
  28428. dd.ReadMapEnd()
  28429. return v, changed
  28430. }
  28431. var mk int8
  28432. var mv int32
  28433. hasLen := containerLen > 0
  28434. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28435. if esep {
  28436. dd.ReadMapElemKey()
  28437. }
  28438. mk = int8(dd.DecodeInt(8))
  28439. if esep {
  28440. dd.ReadMapElemValue()
  28441. }
  28442. if dd.TryDecodeAsNil() {
  28443. if v == nil {
  28444. } else if d.h.DeleteOnNilMapValue {
  28445. delete(v, mk)
  28446. } else {
  28447. v[mk] = 0
  28448. }
  28449. continue
  28450. }
  28451. mv = int32(dd.DecodeInt(32))
  28452. if v != nil {
  28453. v[mk] = mv
  28454. }
  28455. }
  28456. dd.ReadMapEnd()
  28457. return v, changed
  28458. }
  28459. func (d *Decoder) fastpathDecMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  28460. if rv.Kind() == reflect.Ptr {
  28461. vp := rv2i(rv).(*map[int8]int64)
  28462. v, changed := fastpathTV.DecMapInt8Int64V(*vp, true, d)
  28463. if changed {
  28464. *vp = v
  28465. }
  28466. } else {
  28467. fastpathTV.DecMapInt8Int64V(rv2i(rv).(map[int8]int64), false, d)
  28468. }
  28469. }
  28470. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, d *Decoder) {
  28471. v, changed := f.DecMapInt8Int64V(*vp, true, d)
  28472. if changed {
  28473. *vp = v
  28474. }
  28475. }
  28476. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, canChange bool,
  28477. d *Decoder) (_ map[int8]int64, changed bool) {
  28478. dd, esep := d.d, d.hh.hasElemSeparators()
  28479. containerLen := dd.ReadMapStart()
  28480. if canChange && v == nil {
  28481. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28482. v = make(map[int8]int64, xlen)
  28483. changed = true
  28484. }
  28485. if containerLen == 0 {
  28486. dd.ReadMapEnd()
  28487. return v, changed
  28488. }
  28489. var mk int8
  28490. var mv int64
  28491. hasLen := containerLen > 0
  28492. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28493. if esep {
  28494. dd.ReadMapElemKey()
  28495. }
  28496. mk = int8(dd.DecodeInt(8))
  28497. if esep {
  28498. dd.ReadMapElemValue()
  28499. }
  28500. if dd.TryDecodeAsNil() {
  28501. if v == nil {
  28502. } else if d.h.DeleteOnNilMapValue {
  28503. delete(v, mk)
  28504. } else {
  28505. v[mk] = 0
  28506. }
  28507. continue
  28508. }
  28509. mv = dd.DecodeInt(64)
  28510. if v != nil {
  28511. v[mk] = mv
  28512. }
  28513. }
  28514. dd.ReadMapEnd()
  28515. return v, changed
  28516. }
  28517. func (d *Decoder) fastpathDecMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  28518. if rv.Kind() == reflect.Ptr {
  28519. vp := rv2i(rv).(*map[int8]float32)
  28520. v, changed := fastpathTV.DecMapInt8Float32V(*vp, true, d)
  28521. if changed {
  28522. *vp = v
  28523. }
  28524. } else {
  28525. fastpathTV.DecMapInt8Float32V(rv2i(rv).(map[int8]float32), false, d)
  28526. }
  28527. }
  28528. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, d *Decoder) {
  28529. v, changed := f.DecMapInt8Float32V(*vp, true, d)
  28530. if changed {
  28531. *vp = v
  28532. }
  28533. }
  28534. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, canChange bool,
  28535. d *Decoder) (_ map[int8]float32, changed bool) {
  28536. dd, esep := d.d, d.hh.hasElemSeparators()
  28537. containerLen := dd.ReadMapStart()
  28538. if canChange && v == nil {
  28539. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28540. v = make(map[int8]float32, xlen)
  28541. changed = true
  28542. }
  28543. if containerLen == 0 {
  28544. dd.ReadMapEnd()
  28545. return v, changed
  28546. }
  28547. var mk int8
  28548. var mv float32
  28549. hasLen := containerLen > 0
  28550. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28551. if esep {
  28552. dd.ReadMapElemKey()
  28553. }
  28554. mk = int8(dd.DecodeInt(8))
  28555. if esep {
  28556. dd.ReadMapElemValue()
  28557. }
  28558. if dd.TryDecodeAsNil() {
  28559. if v == nil {
  28560. } else if d.h.DeleteOnNilMapValue {
  28561. delete(v, mk)
  28562. } else {
  28563. v[mk] = 0
  28564. }
  28565. continue
  28566. }
  28567. mv = float32(chkFloat32(dd.DecodeFloat64()))
  28568. if v != nil {
  28569. v[mk] = mv
  28570. }
  28571. }
  28572. dd.ReadMapEnd()
  28573. return v, changed
  28574. }
  28575. func (d *Decoder) fastpathDecMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  28576. if rv.Kind() == reflect.Ptr {
  28577. vp := rv2i(rv).(*map[int8]float64)
  28578. v, changed := fastpathTV.DecMapInt8Float64V(*vp, true, d)
  28579. if changed {
  28580. *vp = v
  28581. }
  28582. } else {
  28583. fastpathTV.DecMapInt8Float64V(rv2i(rv).(map[int8]float64), false, d)
  28584. }
  28585. }
  28586. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, d *Decoder) {
  28587. v, changed := f.DecMapInt8Float64V(*vp, true, d)
  28588. if changed {
  28589. *vp = v
  28590. }
  28591. }
  28592. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, canChange bool,
  28593. d *Decoder) (_ map[int8]float64, changed bool) {
  28594. dd, esep := d.d, d.hh.hasElemSeparators()
  28595. containerLen := dd.ReadMapStart()
  28596. if canChange && v == nil {
  28597. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28598. v = make(map[int8]float64, xlen)
  28599. changed = true
  28600. }
  28601. if containerLen == 0 {
  28602. dd.ReadMapEnd()
  28603. return v, changed
  28604. }
  28605. var mk int8
  28606. var mv float64
  28607. hasLen := containerLen > 0
  28608. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28609. if esep {
  28610. dd.ReadMapElemKey()
  28611. }
  28612. mk = int8(dd.DecodeInt(8))
  28613. if esep {
  28614. dd.ReadMapElemValue()
  28615. }
  28616. if dd.TryDecodeAsNil() {
  28617. if v == nil {
  28618. } else if d.h.DeleteOnNilMapValue {
  28619. delete(v, mk)
  28620. } else {
  28621. v[mk] = 0
  28622. }
  28623. continue
  28624. }
  28625. mv = dd.DecodeFloat64()
  28626. if v != nil {
  28627. v[mk] = mv
  28628. }
  28629. }
  28630. dd.ReadMapEnd()
  28631. return v, changed
  28632. }
  28633. func (d *Decoder) fastpathDecMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  28634. if rv.Kind() == reflect.Ptr {
  28635. vp := rv2i(rv).(*map[int8]bool)
  28636. v, changed := fastpathTV.DecMapInt8BoolV(*vp, true, d)
  28637. if changed {
  28638. *vp = v
  28639. }
  28640. } else {
  28641. fastpathTV.DecMapInt8BoolV(rv2i(rv).(map[int8]bool), false, d)
  28642. }
  28643. }
  28644. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, d *Decoder) {
  28645. v, changed := f.DecMapInt8BoolV(*vp, true, d)
  28646. if changed {
  28647. *vp = v
  28648. }
  28649. }
  28650. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, canChange bool,
  28651. d *Decoder) (_ map[int8]bool, changed bool) {
  28652. dd, esep := d.d, d.hh.hasElemSeparators()
  28653. containerLen := dd.ReadMapStart()
  28654. if canChange && v == nil {
  28655. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  28656. v = make(map[int8]bool, xlen)
  28657. changed = true
  28658. }
  28659. if containerLen == 0 {
  28660. dd.ReadMapEnd()
  28661. return v, changed
  28662. }
  28663. var mk int8
  28664. var mv bool
  28665. hasLen := containerLen > 0
  28666. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28667. if esep {
  28668. dd.ReadMapElemKey()
  28669. }
  28670. mk = int8(dd.DecodeInt(8))
  28671. if esep {
  28672. dd.ReadMapElemValue()
  28673. }
  28674. if dd.TryDecodeAsNil() {
  28675. if v == nil {
  28676. } else if d.h.DeleteOnNilMapValue {
  28677. delete(v, mk)
  28678. } else {
  28679. v[mk] = false
  28680. }
  28681. continue
  28682. }
  28683. mv = dd.DecodeBool()
  28684. if v != nil {
  28685. v[mk] = mv
  28686. }
  28687. }
  28688. dd.ReadMapEnd()
  28689. return v, changed
  28690. }
  28691. func (d *Decoder) fastpathDecMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  28692. if rv.Kind() == reflect.Ptr {
  28693. vp := rv2i(rv).(*map[int16]interface{})
  28694. v, changed := fastpathTV.DecMapInt16IntfV(*vp, true, d)
  28695. if changed {
  28696. *vp = v
  28697. }
  28698. } else {
  28699. fastpathTV.DecMapInt16IntfV(rv2i(rv).(map[int16]interface{}), false, d)
  28700. }
  28701. }
  28702. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, d *Decoder) {
  28703. v, changed := f.DecMapInt16IntfV(*vp, true, d)
  28704. if changed {
  28705. *vp = v
  28706. }
  28707. }
  28708. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, canChange bool,
  28709. d *Decoder) (_ map[int16]interface{}, changed bool) {
  28710. dd, esep := d.d, d.hh.hasElemSeparators()
  28711. containerLen := dd.ReadMapStart()
  28712. if canChange && v == nil {
  28713. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  28714. v = make(map[int16]interface{}, xlen)
  28715. changed = true
  28716. }
  28717. if containerLen == 0 {
  28718. dd.ReadMapEnd()
  28719. return v, changed
  28720. }
  28721. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  28722. var mk int16
  28723. var mv interface{}
  28724. hasLen := containerLen > 0
  28725. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28726. if esep {
  28727. dd.ReadMapElemKey()
  28728. }
  28729. mk = int16(dd.DecodeInt(16))
  28730. if esep {
  28731. dd.ReadMapElemValue()
  28732. }
  28733. if dd.TryDecodeAsNil() {
  28734. if v == nil {
  28735. } else if d.h.DeleteOnNilMapValue {
  28736. delete(v, mk)
  28737. } else {
  28738. v[mk] = nil
  28739. }
  28740. continue
  28741. }
  28742. if mapGet {
  28743. mv = v[mk]
  28744. } else {
  28745. mv = nil
  28746. }
  28747. d.decode(&mv)
  28748. if v != nil {
  28749. v[mk] = mv
  28750. }
  28751. }
  28752. dd.ReadMapEnd()
  28753. return v, changed
  28754. }
  28755. func (d *Decoder) fastpathDecMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  28756. if rv.Kind() == reflect.Ptr {
  28757. vp := rv2i(rv).(*map[int16]string)
  28758. v, changed := fastpathTV.DecMapInt16StringV(*vp, true, d)
  28759. if changed {
  28760. *vp = v
  28761. }
  28762. } else {
  28763. fastpathTV.DecMapInt16StringV(rv2i(rv).(map[int16]string), false, d)
  28764. }
  28765. }
  28766. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, d *Decoder) {
  28767. v, changed := f.DecMapInt16StringV(*vp, true, d)
  28768. if changed {
  28769. *vp = v
  28770. }
  28771. }
  28772. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, canChange bool,
  28773. d *Decoder) (_ map[int16]string, changed bool) {
  28774. dd, esep := d.d, d.hh.hasElemSeparators()
  28775. containerLen := dd.ReadMapStart()
  28776. if canChange && v == nil {
  28777. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  28778. v = make(map[int16]string, xlen)
  28779. changed = true
  28780. }
  28781. if containerLen == 0 {
  28782. dd.ReadMapEnd()
  28783. return v, changed
  28784. }
  28785. var mk int16
  28786. var mv string
  28787. hasLen := containerLen > 0
  28788. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28789. if esep {
  28790. dd.ReadMapElemKey()
  28791. }
  28792. mk = int16(dd.DecodeInt(16))
  28793. if esep {
  28794. dd.ReadMapElemValue()
  28795. }
  28796. if dd.TryDecodeAsNil() {
  28797. if v == nil {
  28798. } else if d.h.DeleteOnNilMapValue {
  28799. delete(v, mk)
  28800. } else {
  28801. v[mk] = ""
  28802. }
  28803. continue
  28804. }
  28805. mv = dd.DecodeString()
  28806. if v != nil {
  28807. v[mk] = mv
  28808. }
  28809. }
  28810. dd.ReadMapEnd()
  28811. return v, changed
  28812. }
  28813. func (d *Decoder) fastpathDecMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  28814. if rv.Kind() == reflect.Ptr {
  28815. vp := rv2i(rv).(*map[int16]uint)
  28816. v, changed := fastpathTV.DecMapInt16UintV(*vp, true, d)
  28817. if changed {
  28818. *vp = v
  28819. }
  28820. } else {
  28821. fastpathTV.DecMapInt16UintV(rv2i(rv).(map[int16]uint), false, d)
  28822. }
  28823. }
  28824. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, d *Decoder) {
  28825. v, changed := f.DecMapInt16UintV(*vp, true, d)
  28826. if changed {
  28827. *vp = v
  28828. }
  28829. }
  28830. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, canChange bool,
  28831. d *Decoder) (_ map[int16]uint, changed bool) {
  28832. dd, esep := d.d, d.hh.hasElemSeparators()
  28833. containerLen := dd.ReadMapStart()
  28834. if canChange && v == nil {
  28835. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28836. v = make(map[int16]uint, xlen)
  28837. changed = true
  28838. }
  28839. if containerLen == 0 {
  28840. dd.ReadMapEnd()
  28841. return v, changed
  28842. }
  28843. var mk int16
  28844. var mv uint
  28845. hasLen := containerLen > 0
  28846. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28847. if esep {
  28848. dd.ReadMapElemKey()
  28849. }
  28850. mk = int16(dd.DecodeInt(16))
  28851. if esep {
  28852. dd.ReadMapElemValue()
  28853. }
  28854. if dd.TryDecodeAsNil() {
  28855. if v == nil {
  28856. } else if d.h.DeleteOnNilMapValue {
  28857. delete(v, mk)
  28858. } else {
  28859. v[mk] = 0
  28860. }
  28861. continue
  28862. }
  28863. mv = uint(dd.DecodeUint(uintBitsize))
  28864. if v != nil {
  28865. v[mk] = mv
  28866. }
  28867. }
  28868. dd.ReadMapEnd()
  28869. return v, changed
  28870. }
  28871. func (d *Decoder) fastpathDecMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  28872. if rv.Kind() == reflect.Ptr {
  28873. vp := rv2i(rv).(*map[int16]uint8)
  28874. v, changed := fastpathTV.DecMapInt16Uint8V(*vp, true, d)
  28875. if changed {
  28876. *vp = v
  28877. }
  28878. } else {
  28879. fastpathTV.DecMapInt16Uint8V(rv2i(rv).(map[int16]uint8), false, d)
  28880. }
  28881. }
  28882. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, d *Decoder) {
  28883. v, changed := f.DecMapInt16Uint8V(*vp, true, d)
  28884. if changed {
  28885. *vp = v
  28886. }
  28887. }
  28888. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, canChange bool,
  28889. d *Decoder) (_ map[int16]uint8, changed bool) {
  28890. dd, esep := d.d, d.hh.hasElemSeparators()
  28891. containerLen := dd.ReadMapStart()
  28892. if canChange && v == nil {
  28893. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  28894. v = make(map[int16]uint8, xlen)
  28895. changed = true
  28896. }
  28897. if containerLen == 0 {
  28898. dd.ReadMapEnd()
  28899. return v, changed
  28900. }
  28901. var mk int16
  28902. var mv uint8
  28903. hasLen := containerLen > 0
  28904. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28905. if esep {
  28906. dd.ReadMapElemKey()
  28907. }
  28908. mk = int16(dd.DecodeInt(16))
  28909. if esep {
  28910. dd.ReadMapElemValue()
  28911. }
  28912. if dd.TryDecodeAsNil() {
  28913. if v == nil {
  28914. } else if d.h.DeleteOnNilMapValue {
  28915. delete(v, mk)
  28916. } else {
  28917. v[mk] = 0
  28918. }
  28919. continue
  28920. }
  28921. mv = uint8(dd.DecodeUint(8))
  28922. if v != nil {
  28923. v[mk] = mv
  28924. }
  28925. }
  28926. dd.ReadMapEnd()
  28927. return v, changed
  28928. }
  28929. func (d *Decoder) fastpathDecMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  28930. if rv.Kind() == reflect.Ptr {
  28931. vp := rv2i(rv).(*map[int16]uint16)
  28932. v, changed := fastpathTV.DecMapInt16Uint16V(*vp, true, d)
  28933. if changed {
  28934. *vp = v
  28935. }
  28936. } else {
  28937. fastpathTV.DecMapInt16Uint16V(rv2i(rv).(map[int16]uint16), false, d)
  28938. }
  28939. }
  28940. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, d *Decoder) {
  28941. v, changed := f.DecMapInt16Uint16V(*vp, true, d)
  28942. if changed {
  28943. *vp = v
  28944. }
  28945. }
  28946. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, canChange bool,
  28947. d *Decoder) (_ map[int16]uint16, changed bool) {
  28948. dd, esep := d.d, d.hh.hasElemSeparators()
  28949. containerLen := dd.ReadMapStart()
  28950. if canChange && v == nil {
  28951. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  28952. v = make(map[int16]uint16, xlen)
  28953. changed = true
  28954. }
  28955. if containerLen == 0 {
  28956. dd.ReadMapEnd()
  28957. return v, changed
  28958. }
  28959. var mk int16
  28960. var mv uint16
  28961. hasLen := containerLen > 0
  28962. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28963. if esep {
  28964. dd.ReadMapElemKey()
  28965. }
  28966. mk = int16(dd.DecodeInt(16))
  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 = uint16(dd.DecodeUint(16))
  28980. if v != nil {
  28981. v[mk] = mv
  28982. }
  28983. }
  28984. dd.ReadMapEnd()
  28985. return v, changed
  28986. }
  28987. func (d *Decoder) fastpathDecMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  28988. if rv.Kind() == reflect.Ptr {
  28989. vp := rv2i(rv).(*map[int16]uint32)
  28990. v, changed := fastpathTV.DecMapInt16Uint32V(*vp, true, d)
  28991. if changed {
  28992. *vp = v
  28993. }
  28994. } else {
  28995. fastpathTV.DecMapInt16Uint32V(rv2i(rv).(map[int16]uint32), false, d)
  28996. }
  28997. }
  28998. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, d *Decoder) {
  28999. v, changed := f.DecMapInt16Uint32V(*vp, true, d)
  29000. if changed {
  29001. *vp = v
  29002. }
  29003. }
  29004. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, canChange bool,
  29005. d *Decoder) (_ map[int16]uint32, changed bool) {
  29006. dd, esep := d.d, d.hh.hasElemSeparators()
  29007. containerLen := dd.ReadMapStart()
  29008. if canChange && v == nil {
  29009. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  29010. v = make(map[int16]uint32, xlen)
  29011. changed = true
  29012. }
  29013. if containerLen == 0 {
  29014. dd.ReadMapEnd()
  29015. return v, changed
  29016. }
  29017. var mk int16
  29018. var mv uint32
  29019. hasLen := containerLen > 0
  29020. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29021. if esep {
  29022. dd.ReadMapElemKey()
  29023. }
  29024. mk = int16(dd.DecodeInt(16))
  29025. if esep {
  29026. dd.ReadMapElemValue()
  29027. }
  29028. if dd.TryDecodeAsNil() {
  29029. if v == nil {
  29030. } else if d.h.DeleteOnNilMapValue {
  29031. delete(v, mk)
  29032. } else {
  29033. v[mk] = 0
  29034. }
  29035. continue
  29036. }
  29037. mv = uint32(dd.DecodeUint(32))
  29038. if v != nil {
  29039. v[mk] = mv
  29040. }
  29041. }
  29042. dd.ReadMapEnd()
  29043. return v, changed
  29044. }
  29045. func (d *Decoder) fastpathDecMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  29046. if rv.Kind() == reflect.Ptr {
  29047. vp := rv2i(rv).(*map[int16]uint64)
  29048. v, changed := fastpathTV.DecMapInt16Uint64V(*vp, true, d)
  29049. if changed {
  29050. *vp = v
  29051. }
  29052. } else {
  29053. fastpathTV.DecMapInt16Uint64V(rv2i(rv).(map[int16]uint64), false, d)
  29054. }
  29055. }
  29056. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, d *Decoder) {
  29057. v, changed := f.DecMapInt16Uint64V(*vp, true, d)
  29058. if changed {
  29059. *vp = v
  29060. }
  29061. }
  29062. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, canChange bool,
  29063. d *Decoder) (_ map[int16]uint64, changed bool) {
  29064. dd, esep := d.d, d.hh.hasElemSeparators()
  29065. containerLen := dd.ReadMapStart()
  29066. if canChange && v == nil {
  29067. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29068. v = make(map[int16]uint64, xlen)
  29069. changed = true
  29070. }
  29071. if containerLen == 0 {
  29072. dd.ReadMapEnd()
  29073. return v, changed
  29074. }
  29075. var mk int16
  29076. var mv uint64
  29077. hasLen := containerLen > 0
  29078. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29079. if esep {
  29080. dd.ReadMapElemKey()
  29081. }
  29082. mk = int16(dd.DecodeInt(16))
  29083. if esep {
  29084. dd.ReadMapElemValue()
  29085. }
  29086. if dd.TryDecodeAsNil() {
  29087. if v == nil {
  29088. } else if d.h.DeleteOnNilMapValue {
  29089. delete(v, mk)
  29090. } else {
  29091. v[mk] = 0
  29092. }
  29093. continue
  29094. }
  29095. mv = dd.DecodeUint(64)
  29096. if v != nil {
  29097. v[mk] = mv
  29098. }
  29099. }
  29100. dd.ReadMapEnd()
  29101. return v, changed
  29102. }
  29103. func (d *Decoder) fastpathDecMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  29104. if rv.Kind() == reflect.Ptr {
  29105. vp := rv2i(rv).(*map[int16]uintptr)
  29106. v, changed := fastpathTV.DecMapInt16UintptrV(*vp, true, d)
  29107. if changed {
  29108. *vp = v
  29109. }
  29110. } else {
  29111. fastpathTV.DecMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), false, d)
  29112. }
  29113. }
  29114. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, d *Decoder) {
  29115. v, changed := f.DecMapInt16UintptrV(*vp, true, d)
  29116. if changed {
  29117. *vp = v
  29118. }
  29119. }
  29120. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, canChange bool,
  29121. d *Decoder) (_ map[int16]uintptr, changed bool) {
  29122. dd, esep := d.d, d.hh.hasElemSeparators()
  29123. containerLen := dd.ReadMapStart()
  29124. if canChange && v == nil {
  29125. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29126. v = make(map[int16]uintptr, xlen)
  29127. changed = true
  29128. }
  29129. if containerLen == 0 {
  29130. dd.ReadMapEnd()
  29131. return v, changed
  29132. }
  29133. var mk int16
  29134. var mv uintptr
  29135. hasLen := containerLen > 0
  29136. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29137. if esep {
  29138. dd.ReadMapElemKey()
  29139. }
  29140. mk = int16(dd.DecodeInt(16))
  29141. if esep {
  29142. dd.ReadMapElemValue()
  29143. }
  29144. if dd.TryDecodeAsNil() {
  29145. if v == nil {
  29146. } else if d.h.DeleteOnNilMapValue {
  29147. delete(v, mk)
  29148. } else {
  29149. v[mk] = 0
  29150. }
  29151. continue
  29152. }
  29153. mv = uintptr(dd.DecodeUint(uintBitsize))
  29154. if v != nil {
  29155. v[mk] = mv
  29156. }
  29157. }
  29158. dd.ReadMapEnd()
  29159. return v, changed
  29160. }
  29161. func (d *Decoder) fastpathDecMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  29162. if rv.Kind() == reflect.Ptr {
  29163. vp := rv2i(rv).(*map[int16]int)
  29164. v, changed := fastpathTV.DecMapInt16IntV(*vp, true, d)
  29165. if changed {
  29166. *vp = v
  29167. }
  29168. } else {
  29169. fastpathTV.DecMapInt16IntV(rv2i(rv).(map[int16]int), false, d)
  29170. }
  29171. }
  29172. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, d *Decoder) {
  29173. v, changed := f.DecMapInt16IntV(*vp, true, d)
  29174. if changed {
  29175. *vp = v
  29176. }
  29177. }
  29178. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, canChange bool,
  29179. d *Decoder) (_ map[int16]int, changed bool) {
  29180. dd, esep := d.d, d.hh.hasElemSeparators()
  29181. containerLen := dd.ReadMapStart()
  29182. if canChange && v == nil {
  29183. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29184. v = make(map[int16]int, xlen)
  29185. changed = true
  29186. }
  29187. if containerLen == 0 {
  29188. dd.ReadMapEnd()
  29189. return v, changed
  29190. }
  29191. var mk int16
  29192. var mv int
  29193. hasLen := containerLen > 0
  29194. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29195. if esep {
  29196. dd.ReadMapElemKey()
  29197. }
  29198. mk = int16(dd.DecodeInt(16))
  29199. if esep {
  29200. dd.ReadMapElemValue()
  29201. }
  29202. if dd.TryDecodeAsNil() {
  29203. if v == nil {
  29204. } else if d.h.DeleteOnNilMapValue {
  29205. delete(v, mk)
  29206. } else {
  29207. v[mk] = 0
  29208. }
  29209. continue
  29210. }
  29211. mv = int(dd.DecodeInt(intBitsize))
  29212. if v != nil {
  29213. v[mk] = mv
  29214. }
  29215. }
  29216. dd.ReadMapEnd()
  29217. return v, changed
  29218. }
  29219. func (d *Decoder) fastpathDecMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  29220. if rv.Kind() == reflect.Ptr {
  29221. vp := rv2i(rv).(*map[int16]int8)
  29222. v, changed := fastpathTV.DecMapInt16Int8V(*vp, true, d)
  29223. if changed {
  29224. *vp = v
  29225. }
  29226. } else {
  29227. fastpathTV.DecMapInt16Int8V(rv2i(rv).(map[int16]int8), false, d)
  29228. }
  29229. }
  29230. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, d *Decoder) {
  29231. v, changed := f.DecMapInt16Int8V(*vp, true, d)
  29232. if changed {
  29233. *vp = v
  29234. }
  29235. }
  29236. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, canChange bool,
  29237. d *Decoder) (_ map[int16]int8, changed bool) {
  29238. dd, esep := d.d, d.hh.hasElemSeparators()
  29239. containerLen := dd.ReadMapStart()
  29240. if canChange && v == nil {
  29241. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29242. v = make(map[int16]int8, xlen)
  29243. changed = true
  29244. }
  29245. if containerLen == 0 {
  29246. dd.ReadMapEnd()
  29247. return v, changed
  29248. }
  29249. var mk int16
  29250. var mv int8
  29251. hasLen := containerLen > 0
  29252. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29253. if esep {
  29254. dd.ReadMapElemKey()
  29255. }
  29256. mk = int16(dd.DecodeInt(16))
  29257. if esep {
  29258. dd.ReadMapElemValue()
  29259. }
  29260. if dd.TryDecodeAsNil() {
  29261. if v == nil {
  29262. } else if d.h.DeleteOnNilMapValue {
  29263. delete(v, mk)
  29264. } else {
  29265. v[mk] = 0
  29266. }
  29267. continue
  29268. }
  29269. mv = int8(dd.DecodeInt(8))
  29270. if v != nil {
  29271. v[mk] = mv
  29272. }
  29273. }
  29274. dd.ReadMapEnd()
  29275. return v, changed
  29276. }
  29277. func (d *Decoder) fastpathDecMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  29278. if rv.Kind() == reflect.Ptr {
  29279. vp := rv2i(rv).(*map[int16]int16)
  29280. v, changed := fastpathTV.DecMapInt16Int16V(*vp, true, d)
  29281. if changed {
  29282. *vp = v
  29283. }
  29284. } else {
  29285. fastpathTV.DecMapInt16Int16V(rv2i(rv).(map[int16]int16), false, d)
  29286. }
  29287. }
  29288. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, d *Decoder) {
  29289. v, changed := f.DecMapInt16Int16V(*vp, true, d)
  29290. if changed {
  29291. *vp = v
  29292. }
  29293. }
  29294. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, canChange bool,
  29295. d *Decoder) (_ map[int16]int16, changed bool) {
  29296. dd, esep := d.d, d.hh.hasElemSeparators()
  29297. containerLen := dd.ReadMapStart()
  29298. if canChange && v == nil {
  29299. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  29300. v = make(map[int16]int16, xlen)
  29301. changed = true
  29302. }
  29303. if containerLen == 0 {
  29304. dd.ReadMapEnd()
  29305. return v, changed
  29306. }
  29307. var mk int16
  29308. var mv int16
  29309. hasLen := containerLen > 0
  29310. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29311. if esep {
  29312. dd.ReadMapElemKey()
  29313. }
  29314. mk = int16(dd.DecodeInt(16))
  29315. if esep {
  29316. dd.ReadMapElemValue()
  29317. }
  29318. if dd.TryDecodeAsNil() {
  29319. if v == nil {
  29320. } else if d.h.DeleteOnNilMapValue {
  29321. delete(v, mk)
  29322. } else {
  29323. v[mk] = 0
  29324. }
  29325. continue
  29326. }
  29327. mv = int16(dd.DecodeInt(16))
  29328. if v != nil {
  29329. v[mk] = mv
  29330. }
  29331. }
  29332. dd.ReadMapEnd()
  29333. return v, changed
  29334. }
  29335. func (d *Decoder) fastpathDecMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  29336. if rv.Kind() == reflect.Ptr {
  29337. vp := rv2i(rv).(*map[int16]int32)
  29338. v, changed := fastpathTV.DecMapInt16Int32V(*vp, true, d)
  29339. if changed {
  29340. *vp = v
  29341. }
  29342. } else {
  29343. fastpathTV.DecMapInt16Int32V(rv2i(rv).(map[int16]int32), false, d)
  29344. }
  29345. }
  29346. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, d *Decoder) {
  29347. v, changed := f.DecMapInt16Int32V(*vp, true, d)
  29348. if changed {
  29349. *vp = v
  29350. }
  29351. }
  29352. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, canChange bool,
  29353. d *Decoder) (_ map[int16]int32, changed bool) {
  29354. dd, esep := d.d, d.hh.hasElemSeparators()
  29355. containerLen := dd.ReadMapStart()
  29356. if canChange && v == nil {
  29357. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  29358. v = make(map[int16]int32, xlen)
  29359. changed = true
  29360. }
  29361. if containerLen == 0 {
  29362. dd.ReadMapEnd()
  29363. return v, changed
  29364. }
  29365. var mk int16
  29366. var mv int32
  29367. hasLen := containerLen > 0
  29368. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29369. if esep {
  29370. dd.ReadMapElemKey()
  29371. }
  29372. mk = int16(dd.DecodeInt(16))
  29373. if esep {
  29374. dd.ReadMapElemValue()
  29375. }
  29376. if dd.TryDecodeAsNil() {
  29377. if v == nil {
  29378. } else if d.h.DeleteOnNilMapValue {
  29379. delete(v, mk)
  29380. } else {
  29381. v[mk] = 0
  29382. }
  29383. continue
  29384. }
  29385. mv = int32(dd.DecodeInt(32))
  29386. if v != nil {
  29387. v[mk] = mv
  29388. }
  29389. }
  29390. dd.ReadMapEnd()
  29391. return v, changed
  29392. }
  29393. func (d *Decoder) fastpathDecMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  29394. if rv.Kind() == reflect.Ptr {
  29395. vp := rv2i(rv).(*map[int16]int64)
  29396. v, changed := fastpathTV.DecMapInt16Int64V(*vp, true, d)
  29397. if changed {
  29398. *vp = v
  29399. }
  29400. } else {
  29401. fastpathTV.DecMapInt16Int64V(rv2i(rv).(map[int16]int64), false, d)
  29402. }
  29403. }
  29404. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, d *Decoder) {
  29405. v, changed := f.DecMapInt16Int64V(*vp, true, d)
  29406. if changed {
  29407. *vp = v
  29408. }
  29409. }
  29410. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, canChange bool,
  29411. d *Decoder) (_ map[int16]int64, changed bool) {
  29412. dd, esep := d.d, d.hh.hasElemSeparators()
  29413. containerLen := dd.ReadMapStart()
  29414. if canChange && v == nil {
  29415. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29416. v = make(map[int16]int64, xlen)
  29417. changed = true
  29418. }
  29419. if containerLen == 0 {
  29420. dd.ReadMapEnd()
  29421. return v, changed
  29422. }
  29423. var mk int16
  29424. var mv int64
  29425. hasLen := containerLen > 0
  29426. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29427. if esep {
  29428. dd.ReadMapElemKey()
  29429. }
  29430. mk = int16(dd.DecodeInt(16))
  29431. if esep {
  29432. dd.ReadMapElemValue()
  29433. }
  29434. if dd.TryDecodeAsNil() {
  29435. if v == nil {
  29436. } else if d.h.DeleteOnNilMapValue {
  29437. delete(v, mk)
  29438. } else {
  29439. v[mk] = 0
  29440. }
  29441. continue
  29442. }
  29443. mv = dd.DecodeInt(64)
  29444. if v != nil {
  29445. v[mk] = mv
  29446. }
  29447. }
  29448. dd.ReadMapEnd()
  29449. return v, changed
  29450. }
  29451. func (d *Decoder) fastpathDecMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  29452. if rv.Kind() == reflect.Ptr {
  29453. vp := rv2i(rv).(*map[int16]float32)
  29454. v, changed := fastpathTV.DecMapInt16Float32V(*vp, true, d)
  29455. if changed {
  29456. *vp = v
  29457. }
  29458. } else {
  29459. fastpathTV.DecMapInt16Float32V(rv2i(rv).(map[int16]float32), false, d)
  29460. }
  29461. }
  29462. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, d *Decoder) {
  29463. v, changed := f.DecMapInt16Float32V(*vp, true, d)
  29464. if changed {
  29465. *vp = v
  29466. }
  29467. }
  29468. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, canChange bool,
  29469. d *Decoder) (_ map[int16]float32, changed bool) {
  29470. dd, esep := d.d, d.hh.hasElemSeparators()
  29471. containerLen := dd.ReadMapStart()
  29472. if canChange && v == nil {
  29473. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  29474. v = make(map[int16]float32, xlen)
  29475. changed = true
  29476. }
  29477. if containerLen == 0 {
  29478. dd.ReadMapEnd()
  29479. return v, changed
  29480. }
  29481. var mk int16
  29482. var mv float32
  29483. hasLen := containerLen > 0
  29484. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29485. if esep {
  29486. dd.ReadMapElemKey()
  29487. }
  29488. mk = int16(dd.DecodeInt(16))
  29489. if esep {
  29490. dd.ReadMapElemValue()
  29491. }
  29492. if dd.TryDecodeAsNil() {
  29493. if v == nil {
  29494. } else if d.h.DeleteOnNilMapValue {
  29495. delete(v, mk)
  29496. } else {
  29497. v[mk] = 0
  29498. }
  29499. continue
  29500. }
  29501. mv = float32(chkFloat32(dd.DecodeFloat64()))
  29502. if v != nil {
  29503. v[mk] = mv
  29504. }
  29505. }
  29506. dd.ReadMapEnd()
  29507. return v, changed
  29508. }
  29509. func (d *Decoder) fastpathDecMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  29510. if rv.Kind() == reflect.Ptr {
  29511. vp := rv2i(rv).(*map[int16]float64)
  29512. v, changed := fastpathTV.DecMapInt16Float64V(*vp, true, d)
  29513. if changed {
  29514. *vp = v
  29515. }
  29516. } else {
  29517. fastpathTV.DecMapInt16Float64V(rv2i(rv).(map[int16]float64), false, d)
  29518. }
  29519. }
  29520. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, d *Decoder) {
  29521. v, changed := f.DecMapInt16Float64V(*vp, true, d)
  29522. if changed {
  29523. *vp = v
  29524. }
  29525. }
  29526. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, canChange bool,
  29527. d *Decoder) (_ map[int16]float64, changed bool) {
  29528. dd, esep := d.d, d.hh.hasElemSeparators()
  29529. containerLen := dd.ReadMapStart()
  29530. if canChange && v == nil {
  29531. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29532. v = make(map[int16]float64, xlen)
  29533. changed = true
  29534. }
  29535. if containerLen == 0 {
  29536. dd.ReadMapEnd()
  29537. return v, changed
  29538. }
  29539. var mk int16
  29540. var mv float64
  29541. hasLen := containerLen > 0
  29542. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29543. if esep {
  29544. dd.ReadMapElemKey()
  29545. }
  29546. mk = int16(dd.DecodeInt(16))
  29547. if esep {
  29548. dd.ReadMapElemValue()
  29549. }
  29550. if dd.TryDecodeAsNil() {
  29551. if v == nil {
  29552. } else if d.h.DeleteOnNilMapValue {
  29553. delete(v, mk)
  29554. } else {
  29555. v[mk] = 0
  29556. }
  29557. continue
  29558. }
  29559. mv = dd.DecodeFloat64()
  29560. if v != nil {
  29561. v[mk] = mv
  29562. }
  29563. }
  29564. dd.ReadMapEnd()
  29565. return v, changed
  29566. }
  29567. func (d *Decoder) fastpathDecMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  29568. if rv.Kind() == reflect.Ptr {
  29569. vp := rv2i(rv).(*map[int16]bool)
  29570. v, changed := fastpathTV.DecMapInt16BoolV(*vp, true, d)
  29571. if changed {
  29572. *vp = v
  29573. }
  29574. } else {
  29575. fastpathTV.DecMapInt16BoolV(rv2i(rv).(map[int16]bool), false, d)
  29576. }
  29577. }
  29578. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, d *Decoder) {
  29579. v, changed := f.DecMapInt16BoolV(*vp, true, d)
  29580. if changed {
  29581. *vp = v
  29582. }
  29583. }
  29584. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, canChange bool,
  29585. d *Decoder) (_ map[int16]bool, changed bool) {
  29586. dd, esep := d.d, d.hh.hasElemSeparators()
  29587. containerLen := dd.ReadMapStart()
  29588. if canChange && v == nil {
  29589. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29590. v = make(map[int16]bool, xlen)
  29591. changed = true
  29592. }
  29593. if containerLen == 0 {
  29594. dd.ReadMapEnd()
  29595. return v, changed
  29596. }
  29597. var mk int16
  29598. var mv bool
  29599. hasLen := containerLen > 0
  29600. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29601. if esep {
  29602. dd.ReadMapElemKey()
  29603. }
  29604. mk = int16(dd.DecodeInt(16))
  29605. if esep {
  29606. dd.ReadMapElemValue()
  29607. }
  29608. if dd.TryDecodeAsNil() {
  29609. if v == nil {
  29610. } else if d.h.DeleteOnNilMapValue {
  29611. delete(v, mk)
  29612. } else {
  29613. v[mk] = false
  29614. }
  29615. continue
  29616. }
  29617. mv = dd.DecodeBool()
  29618. if v != nil {
  29619. v[mk] = mv
  29620. }
  29621. }
  29622. dd.ReadMapEnd()
  29623. return v, changed
  29624. }
  29625. func (d *Decoder) fastpathDecMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  29626. if rv.Kind() == reflect.Ptr {
  29627. vp := rv2i(rv).(*map[int32]interface{})
  29628. v, changed := fastpathTV.DecMapInt32IntfV(*vp, true, d)
  29629. if changed {
  29630. *vp = v
  29631. }
  29632. } else {
  29633. fastpathTV.DecMapInt32IntfV(rv2i(rv).(map[int32]interface{}), false, d)
  29634. }
  29635. }
  29636. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, d *Decoder) {
  29637. v, changed := f.DecMapInt32IntfV(*vp, true, d)
  29638. if changed {
  29639. *vp = v
  29640. }
  29641. }
  29642. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, canChange bool,
  29643. d *Decoder) (_ map[int32]interface{}, changed bool) {
  29644. dd, esep := d.d, d.hh.hasElemSeparators()
  29645. containerLen := dd.ReadMapStart()
  29646. if canChange && v == nil {
  29647. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  29648. v = make(map[int32]interface{}, xlen)
  29649. changed = true
  29650. }
  29651. if containerLen == 0 {
  29652. dd.ReadMapEnd()
  29653. return v, changed
  29654. }
  29655. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  29656. var mk int32
  29657. var mv interface{}
  29658. hasLen := containerLen > 0
  29659. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29660. if esep {
  29661. dd.ReadMapElemKey()
  29662. }
  29663. mk = int32(dd.DecodeInt(32))
  29664. if esep {
  29665. dd.ReadMapElemValue()
  29666. }
  29667. if dd.TryDecodeAsNil() {
  29668. if v == nil {
  29669. } else if d.h.DeleteOnNilMapValue {
  29670. delete(v, mk)
  29671. } else {
  29672. v[mk] = nil
  29673. }
  29674. continue
  29675. }
  29676. if mapGet {
  29677. mv = v[mk]
  29678. } else {
  29679. mv = nil
  29680. }
  29681. d.decode(&mv)
  29682. if v != nil {
  29683. v[mk] = mv
  29684. }
  29685. }
  29686. dd.ReadMapEnd()
  29687. return v, changed
  29688. }
  29689. func (d *Decoder) fastpathDecMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  29690. if rv.Kind() == reflect.Ptr {
  29691. vp := rv2i(rv).(*map[int32]string)
  29692. v, changed := fastpathTV.DecMapInt32StringV(*vp, true, d)
  29693. if changed {
  29694. *vp = v
  29695. }
  29696. } else {
  29697. fastpathTV.DecMapInt32StringV(rv2i(rv).(map[int32]string), false, d)
  29698. }
  29699. }
  29700. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, d *Decoder) {
  29701. v, changed := f.DecMapInt32StringV(*vp, true, d)
  29702. if changed {
  29703. *vp = v
  29704. }
  29705. }
  29706. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, canChange bool,
  29707. d *Decoder) (_ map[int32]string, changed bool) {
  29708. dd, esep := d.d, d.hh.hasElemSeparators()
  29709. containerLen := dd.ReadMapStart()
  29710. if canChange && v == nil {
  29711. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  29712. v = make(map[int32]string, xlen)
  29713. changed = true
  29714. }
  29715. if containerLen == 0 {
  29716. dd.ReadMapEnd()
  29717. return v, changed
  29718. }
  29719. var mk int32
  29720. var mv string
  29721. hasLen := containerLen > 0
  29722. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29723. if esep {
  29724. dd.ReadMapElemKey()
  29725. }
  29726. mk = int32(dd.DecodeInt(32))
  29727. if esep {
  29728. dd.ReadMapElemValue()
  29729. }
  29730. if dd.TryDecodeAsNil() {
  29731. if v == nil {
  29732. } else if d.h.DeleteOnNilMapValue {
  29733. delete(v, mk)
  29734. } else {
  29735. v[mk] = ""
  29736. }
  29737. continue
  29738. }
  29739. mv = dd.DecodeString()
  29740. if v != nil {
  29741. v[mk] = mv
  29742. }
  29743. }
  29744. dd.ReadMapEnd()
  29745. return v, changed
  29746. }
  29747. func (d *Decoder) fastpathDecMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  29748. if rv.Kind() == reflect.Ptr {
  29749. vp := rv2i(rv).(*map[int32]uint)
  29750. v, changed := fastpathTV.DecMapInt32UintV(*vp, true, d)
  29751. if changed {
  29752. *vp = v
  29753. }
  29754. } else {
  29755. fastpathTV.DecMapInt32UintV(rv2i(rv).(map[int32]uint), false, d)
  29756. }
  29757. }
  29758. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, d *Decoder) {
  29759. v, changed := f.DecMapInt32UintV(*vp, true, d)
  29760. if changed {
  29761. *vp = v
  29762. }
  29763. }
  29764. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, canChange bool,
  29765. d *Decoder) (_ map[int32]uint, changed bool) {
  29766. dd, esep := d.d, d.hh.hasElemSeparators()
  29767. containerLen := dd.ReadMapStart()
  29768. if canChange && v == nil {
  29769. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29770. v = make(map[int32]uint, xlen)
  29771. changed = true
  29772. }
  29773. if containerLen == 0 {
  29774. dd.ReadMapEnd()
  29775. return v, changed
  29776. }
  29777. var mk int32
  29778. var mv uint
  29779. hasLen := containerLen > 0
  29780. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29781. if esep {
  29782. dd.ReadMapElemKey()
  29783. }
  29784. mk = int32(dd.DecodeInt(32))
  29785. if esep {
  29786. dd.ReadMapElemValue()
  29787. }
  29788. if dd.TryDecodeAsNil() {
  29789. if v == nil {
  29790. } else if d.h.DeleteOnNilMapValue {
  29791. delete(v, mk)
  29792. } else {
  29793. v[mk] = 0
  29794. }
  29795. continue
  29796. }
  29797. mv = uint(dd.DecodeUint(uintBitsize))
  29798. if v != nil {
  29799. v[mk] = mv
  29800. }
  29801. }
  29802. dd.ReadMapEnd()
  29803. return v, changed
  29804. }
  29805. func (d *Decoder) fastpathDecMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  29806. if rv.Kind() == reflect.Ptr {
  29807. vp := rv2i(rv).(*map[int32]uint8)
  29808. v, changed := fastpathTV.DecMapInt32Uint8V(*vp, true, d)
  29809. if changed {
  29810. *vp = v
  29811. }
  29812. } else {
  29813. fastpathTV.DecMapInt32Uint8V(rv2i(rv).(map[int32]uint8), false, d)
  29814. }
  29815. }
  29816. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, d *Decoder) {
  29817. v, changed := f.DecMapInt32Uint8V(*vp, true, d)
  29818. if changed {
  29819. *vp = v
  29820. }
  29821. }
  29822. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, canChange bool,
  29823. d *Decoder) (_ map[int32]uint8, changed bool) {
  29824. dd, esep := d.d, d.hh.hasElemSeparators()
  29825. containerLen := dd.ReadMapStart()
  29826. if canChange && v == nil {
  29827. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  29828. v = make(map[int32]uint8, xlen)
  29829. changed = true
  29830. }
  29831. if containerLen == 0 {
  29832. dd.ReadMapEnd()
  29833. return v, changed
  29834. }
  29835. var mk int32
  29836. var mv uint8
  29837. hasLen := containerLen > 0
  29838. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29839. if esep {
  29840. dd.ReadMapElemKey()
  29841. }
  29842. mk = int32(dd.DecodeInt(32))
  29843. if esep {
  29844. dd.ReadMapElemValue()
  29845. }
  29846. if dd.TryDecodeAsNil() {
  29847. if v == nil {
  29848. } else if d.h.DeleteOnNilMapValue {
  29849. delete(v, mk)
  29850. } else {
  29851. v[mk] = 0
  29852. }
  29853. continue
  29854. }
  29855. mv = uint8(dd.DecodeUint(8))
  29856. if v != nil {
  29857. v[mk] = mv
  29858. }
  29859. }
  29860. dd.ReadMapEnd()
  29861. return v, changed
  29862. }
  29863. func (d *Decoder) fastpathDecMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  29864. if rv.Kind() == reflect.Ptr {
  29865. vp := rv2i(rv).(*map[int32]uint16)
  29866. v, changed := fastpathTV.DecMapInt32Uint16V(*vp, true, d)
  29867. if changed {
  29868. *vp = v
  29869. }
  29870. } else {
  29871. fastpathTV.DecMapInt32Uint16V(rv2i(rv).(map[int32]uint16), false, d)
  29872. }
  29873. }
  29874. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, d *Decoder) {
  29875. v, changed := f.DecMapInt32Uint16V(*vp, true, d)
  29876. if changed {
  29877. *vp = v
  29878. }
  29879. }
  29880. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, canChange bool,
  29881. d *Decoder) (_ map[int32]uint16, changed bool) {
  29882. dd, esep := d.d, d.hh.hasElemSeparators()
  29883. containerLen := dd.ReadMapStart()
  29884. if canChange && v == nil {
  29885. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  29886. v = make(map[int32]uint16, xlen)
  29887. changed = true
  29888. }
  29889. if containerLen == 0 {
  29890. dd.ReadMapEnd()
  29891. return v, changed
  29892. }
  29893. var mk int32
  29894. var mv uint16
  29895. hasLen := containerLen > 0
  29896. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29897. if esep {
  29898. dd.ReadMapElemKey()
  29899. }
  29900. mk = int32(dd.DecodeInt(32))
  29901. if esep {
  29902. dd.ReadMapElemValue()
  29903. }
  29904. if dd.TryDecodeAsNil() {
  29905. if v == nil {
  29906. } else if d.h.DeleteOnNilMapValue {
  29907. delete(v, mk)
  29908. } else {
  29909. v[mk] = 0
  29910. }
  29911. continue
  29912. }
  29913. mv = uint16(dd.DecodeUint(16))
  29914. if v != nil {
  29915. v[mk] = mv
  29916. }
  29917. }
  29918. dd.ReadMapEnd()
  29919. return v, changed
  29920. }
  29921. func (d *Decoder) fastpathDecMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  29922. if rv.Kind() == reflect.Ptr {
  29923. vp := rv2i(rv).(*map[int32]uint32)
  29924. v, changed := fastpathTV.DecMapInt32Uint32V(*vp, true, d)
  29925. if changed {
  29926. *vp = v
  29927. }
  29928. } else {
  29929. fastpathTV.DecMapInt32Uint32V(rv2i(rv).(map[int32]uint32), false, d)
  29930. }
  29931. }
  29932. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, d *Decoder) {
  29933. v, changed := f.DecMapInt32Uint32V(*vp, true, d)
  29934. if changed {
  29935. *vp = v
  29936. }
  29937. }
  29938. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, canChange bool,
  29939. d *Decoder) (_ map[int32]uint32, changed bool) {
  29940. dd, esep := d.d, d.hh.hasElemSeparators()
  29941. containerLen := dd.ReadMapStart()
  29942. if canChange && v == nil {
  29943. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  29944. v = make(map[int32]uint32, xlen)
  29945. changed = true
  29946. }
  29947. if containerLen == 0 {
  29948. dd.ReadMapEnd()
  29949. return v, changed
  29950. }
  29951. var mk int32
  29952. var mv uint32
  29953. hasLen := containerLen > 0
  29954. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29955. if esep {
  29956. dd.ReadMapElemKey()
  29957. }
  29958. mk = int32(dd.DecodeInt(32))
  29959. if esep {
  29960. dd.ReadMapElemValue()
  29961. }
  29962. if dd.TryDecodeAsNil() {
  29963. if v == nil {
  29964. } else if d.h.DeleteOnNilMapValue {
  29965. delete(v, mk)
  29966. } else {
  29967. v[mk] = 0
  29968. }
  29969. continue
  29970. }
  29971. mv = uint32(dd.DecodeUint(32))
  29972. if v != nil {
  29973. v[mk] = mv
  29974. }
  29975. }
  29976. dd.ReadMapEnd()
  29977. return v, changed
  29978. }
  29979. func (d *Decoder) fastpathDecMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  29980. if rv.Kind() == reflect.Ptr {
  29981. vp := rv2i(rv).(*map[int32]uint64)
  29982. v, changed := fastpathTV.DecMapInt32Uint64V(*vp, true, d)
  29983. if changed {
  29984. *vp = v
  29985. }
  29986. } else {
  29987. fastpathTV.DecMapInt32Uint64V(rv2i(rv).(map[int32]uint64), false, d)
  29988. }
  29989. }
  29990. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, d *Decoder) {
  29991. v, changed := f.DecMapInt32Uint64V(*vp, true, d)
  29992. if changed {
  29993. *vp = v
  29994. }
  29995. }
  29996. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, canChange bool,
  29997. d *Decoder) (_ map[int32]uint64, changed bool) {
  29998. dd, esep := d.d, d.hh.hasElemSeparators()
  29999. containerLen := dd.ReadMapStart()
  30000. if canChange && v == nil {
  30001. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30002. v = make(map[int32]uint64, xlen)
  30003. changed = true
  30004. }
  30005. if containerLen == 0 {
  30006. dd.ReadMapEnd()
  30007. return v, changed
  30008. }
  30009. var mk int32
  30010. var mv uint64
  30011. hasLen := containerLen > 0
  30012. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30013. if esep {
  30014. dd.ReadMapElemKey()
  30015. }
  30016. mk = int32(dd.DecodeInt(32))
  30017. if esep {
  30018. dd.ReadMapElemValue()
  30019. }
  30020. if dd.TryDecodeAsNil() {
  30021. if v == nil {
  30022. } else if d.h.DeleteOnNilMapValue {
  30023. delete(v, mk)
  30024. } else {
  30025. v[mk] = 0
  30026. }
  30027. continue
  30028. }
  30029. mv = dd.DecodeUint(64)
  30030. if v != nil {
  30031. v[mk] = mv
  30032. }
  30033. }
  30034. dd.ReadMapEnd()
  30035. return v, changed
  30036. }
  30037. func (d *Decoder) fastpathDecMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  30038. if rv.Kind() == reflect.Ptr {
  30039. vp := rv2i(rv).(*map[int32]uintptr)
  30040. v, changed := fastpathTV.DecMapInt32UintptrV(*vp, true, d)
  30041. if changed {
  30042. *vp = v
  30043. }
  30044. } else {
  30045. fastpathTV.DecMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), false, d)
  30046. }
  30047. }
  30048. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, d *Decoder) {
  30049. v, changed := f.DecMapInt32UintptrV(*vp, true, d)
  30050. if changed {
  30051. *vp = v
  30052. }
  30053. }
  30054. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, canChange bool,
  30055. d *Decoder) (_ map[int32]uintptr, changed bool) {
  30056. dd, esep := d.d, d.hh.hasElemSeparators()
  30057. containerLen := dd.ReadMapStart()
  30058. if canChange && v == nil {
  30059. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30060. v = make(map[int32]uintptr, xlen)
  30061. changed = true
  30062. }
  30063. if containerLen == 0 {
  30064. dd.ReadMapEnd()
  30065. return v, changed
  30066. }
  30067. var mk int32
  30068. var mv uintptr
  30069. hasLen := containerLen > 0
  30070. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30071. if esep {
  30072. dd.ReadMapElemKey()
  30073. }
  30074. mk = int32(dd.DecodeInt(32))
  30075. if esep {
  30076. dd.ReadMapElemValue()
  30077. }
  30078. if dd.TryDecodeAsNil() {
  30079. if v == nil {
  30080. } else if d.h.DeleteOnNilMapValue {
  30081. delete(v, mk)
  30082. } else {
  30083. v[mk] = 0
  30084. }
  30085. continue
  30086. }
  30087. mv = uintptr(dd.DecodeUint(uintBitsize))
  30088. if v != nil {
  30089. v[mk] = mv
  30090. }
  30091. }
  30092. dd.ReadMapEnd()
  30093. return v, changed
  30094. }
  30095. func (d *Decoder) fastpathDecMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  30096. if rv.Kind() == reflect.Ptr {
  30097. vp := rv2i(rv).(*map[int32]int)
  30098. v, changed := fastpathTV.DecMapInt32IntV(*vp, true, d)
  30099. if changed {
  30100. *vp = v
  30101. }
  30102. } else {
  30103. fastpathTV.DecMapInt32IntV(rv2i(rv).(map[int32]int), false, d)
  30104. }
  30105. }
  30106. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, d *Decoder) {
  30107. v, changed := f.DecMapInt32IntV(*vp, true, d)
  30108. if changed {
  30109. *vp = v
  30110. }
  30111. }
  30112. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, canChange bool,
  30113. d *Decoder) (_ map[int32]int, changed bool) {
  30114. dd, esep := d.d, d.hh.hasElemSeparators()
  30115. containerLen := dd.ReadMapStart()
  30116. if canChange && v == nil {
  30117. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30118. v = make(map[int32]int, xlen)
  30119. changed = true
  30120. }
  30121. if containerLen == 0 {
  30122. dd.ReadMapEnd()
  30123. return v, changed
  30124. }
  30125. var mk int32
  30126. var mv int
  30127. hasLen := containerLen > 0
  30128. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30129. if esep {
  30130. dd.ReadMapElemKey()
  30131. }
  30132. mk = int32(dd.DecodeInt(32))
  30133. if esep {
  30134. dd.ReadMapElemValue()
  30135. }
  30136. if dd.TryDecodeAsNil() {
  30137. if v == nil {
  30138. } else if d.h.DeleteOnNilMapValue {
  30139. delete(v, mk)
  30140. } else {
  30141. v[mk] = 0
  30142. }
  30143. continue
  30144. }
  30145. mv = int(dd.DecodeInt(intBitsize))
  30146. if v != nil {
  30147. v[mk] = mv
  30148. }
  30149. }
  30150. dd.ReadMapEnd()
  30151. return v, changed
  30152. }
  30153. func (d *Decoder) fastpathDecMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  30154. if rv.Kind() == reflect.Ptr {
  30155. vp := rv2i(rv).(*map[int32]int8)
  30156. v, changed := fastpathTV.DecMapInt32Int8V(*vp, true, d)
  30157. if changed {
  30158. *vp = v
  30159. }
  30160. } else {
  30161. fastpathTV.DecMapInt32Int8V(rv2i(rv).(map[int32]int8), false, d)
  30162. }
  30163. }
  30164. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, d *Decoder) {
  30165. v, changed := f.DecMapInt32Int8V(*vp, true, d)
  30166. if changed {
  30167. *vp = v
  30168. }
  30169. }
  30170. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, canChange bool,
  30171. d *Decoder) (_ map[int32]int8, changed bool) {
  30172. dd, esep := d.d, d.hh.hasElemSeparators()
  30173. containerLen := dd.ReadMapStart()
  30174. if canChange && v == nil {
  30175. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30176. v = make(map[int32]int8, xlen)
  30177. changed = true
  30178. }
  30179. if containerLen == 0 {
  30180. dd.ReadMapEnd()
  30181. return v, changed
  30182. }
  30183. var mk int32
  30184. var mv int8
  30185. hasLen := containerLen > 0
  30186. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30187. if esep {
  30188. dd.ReadMapElemKey()
  30189. }
  30190. mk = int32(dd.DecodeInt(32))
  30191. if esep {
  30192. dd.ReadMapElemValue()
  30193. }
  30194. if dd.TryDecodeAsNil() {
  30195. if v == nil {
  30196. } else if d.h.DeleteOnNilMapValue {
  30197. delete(v, mk)
  30198. } else {
  30199. v[mk] = 0
  30200. }
  30201. continue
  30202. }
  30203. mv = int8(dd.DecodeInt(8))
  30204. if v != nil {
  30205. v[mk] = mv
  30206. }
  30207. }
  30208. dd.ReadMapEnd()
  30209. return v, changed
  30210. }
  30211. func (d *Decoder) fastpathDecMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  30212. if rv.Kind() == reflect.Ptr {
  30213. vp := rv2i(rv).(*map[int32]int16)
  30214. v, changed := fastpathTV.DecMapInt32Int16V(*vp, true, d)
  30215. if changed {
  30216. *vp = v
  30217. }
  30218. } else {
  30219. fastpathTV.DecMapInt32Int16V(rv2i(rv).(map[int32]int16), false, d)
  30220. }
  30221. }
  30222. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, d *Decoder) {
  30223. v, changed := f.DecMapInt32Int16V(*vp, true, d)
  30224. if changed {
  30225. *vp = v
  30226. }
  30227. }
  30228. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, canChange bool,
  30229. d *Decoder) (_ map[int32]int16, changed bool) {
  30230. dd, esep := d.d, d.hh.hasElemSeparators()
  30231. containerLen := dd.ReadMapStart()
  30232. if canChange && v == nil {
  30233. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  30234. v = make(map[int32]int16, xlen)
  30235. changed = true
  30236. }
  30237. if containerLen == 0 {
  30238. dd.ReadMapEnd()
  30239. return v, changed
  30240. }
  30241. var mk int32
  30242. var mv int16
  30243. hasLen := containerLen > 0
  30244. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30245. if esep {
  30246. dd.ReadMapElemKey()
  30247. }
  30248. mk = int32(dd.DecodeInt(32))
  30249. if esep {
  30250. dd.ReadMapElemValue()
  30251. }
  30252. if dd.TryDecodeAsNil() {
  30253. if v == nil {
  30254. } else if d.h.DeleteOnNilMapValue {
  30255. delete(v, mk)
  30256. } else {
  30257. v[mk] = 0
  30258. }
  30259. continue
  30260. }
  30261. mv = int16(dd.DecodeInt(16))
  30262. if v != nil {
  30263. v[mk] = mv
  30264. }
  30265. }
  30266. dd.ReadMapEnd()
  30267. return v, changed
  30268. }
  30269. func (d *Decoder) fastpathDecMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  30270. if rv.Kind() == reflect.Ptr {
  30271. vp := rv2i(rv).(*map[int32]int32)
  30272. v, changed := fastpathTV.DecMapInt32Int32V(*vp, true, d)
  30273. if changed {
  30274. *vp = v
  30275. }
  30276. } else {
  30277. fastpathTV.DecMapInt32Int32V(rv2i(rv).(map[int32]int32), false, d)
  30278. }
  30279. }
  30280. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, d *Decoder) {
  30281. v, changed := f.DecMapInt32Int32V(*vp, true, d)
  30282. if changed {
  30283. *vp = v
  30284. }
  30285. }
  30286. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, canChange bool,
  30287. d *Decoder) (_ map[int32]int32, changed bool) {
  30288. dd, esep := d.d, d.hh.hasElemSeparators()
  30289. containerLen := dd.ReadMapStart()
  30290. if canChange && v == nil {
  30291. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  30292. v = make(map[int32]int32, xlen)
  30293. changed = true
  30294. }
  30295. if containerLen == 0 {
  30296. dd.ReadMapEnd()
  30297. return v, changed
  30298. }
  30299. var mk int32
  30300. var mv int32
  30301. hasLen := containerLen > 0
  30302. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30303. if esep {
  30304. dd.ReadMapElemKey()
  30305. }
  30306. mk = int32(dd.DecodeInt(32))
  30307. if esep {
  30308. dd.ReadMapElemValue()
  30309. }
  30310. if dd.TryDecodeAsNil() {
  30311. if v == nil {
  30312. } else if d.h.DeleteOnNilMapValue {
  30313. delete(v, mk)
  30314. } else {
  30315. v[mk] = 0
  30316. }
  30317. continue
  30318. }
  30319. mv = int32(dd.DecodeInt(32))
  30320. if v != nil {
  30321. v[mk] = mv
  30322. }
  30323. }
  30324. dd.ReadMapEnd()
  30325. return v, changed
  30326. }
  30327. func (d *Decoder) fastpathDecMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  30328. if rv.Kind() == reflect.Ptr {
  30329. vp := rv2i(rv).(*map[int32]int64)
  30330. v, changed := fastpathTV.DecMapInt32Int64V(*vp, true, d)
  30331. if changed {
  30332. *vp = v
  30333. }
  30334. } else {
  30335. fastpathTV.DecMapInt32Int64V(rv2i(rv).(map[int32]int64), false, d)
  30336. }
  30337. }
  30338. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, d *Decoder) {
  30339. v, changed := f.DecMapInt32Int64V(*vp, true, d)
  30340. if changed {
  30341. *vp = v
  30342. }
  30343. }
  30344. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, canChange bool,
  30345. d *Decoder) (_ map[int32]int64, changed bool) {
  30346. dd, esep := d.d, d.hh.hasElemSeparators()
  30347. containerLen := dd.ReadMapStart()
  30348. if canChange && v == nil {
  30349. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30350. v = make(map[int32]int64, xlen)
  30351. changed = true
  30352. }
  30353. if containerLen == 0 {
  30354. dd.ReadMapEnd()
  30355. return v, changed
  30356. }
  30357. var mk int32
  30358. var mv int64
  30359. hasLen := containerLen > 0
  30360. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30361. if esep {
  30362. dd.ReadMapElemKey()
  30363. }
  30364. mk = int32(dd.DecodeInt(32))
  30365. if esep {
  30366. dd.ReadMapElemValue()
  30367. }
  30368. if dd.TryDecodeAsNil() {
  30369. if v == nil {
  30370. } else if d.h.DeleteOnNilMapValue {
  30371. delete(v, mk)
  30372. } else {
  30373. v[mk] = 0
  30374. }
  30375. continue
  30376. }
  30377. mv = dd.DecodeInt(64)
  30378. if v != nil {
  30379. v[mk] = mv
  30380. }
  30381. }
  30382. dd.ReadMapEnd()
  30383. return v, changed
  30384. }
  30385. func (d *Decoder) fastpathDecMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  30386. if rv.Kind() == reflect.Ptr {
  30387. vp := rv2i(rv).(*map[int32]float32)
  30388. v, changed := fastpathTV.DecMapInt32Float32V(*vp, true, d)
  30389. if changed {
  30390. *vp = v
  30391. }
  30392. } else {
  30393. fastpathTV.DecMapInt32Float32V(rv2i(rv).(map[int32]float32), false, d)
  30394. }
  30395. }
  30396. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, d *Decoder) {
  30397. v, changed := f.DecMapInt32Float32V(*vp, true, d)
  30398. if changed {
  30399. *vp = v
  30400. }
  30401. }
  30402. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, canChange bool,
  30403. d *Decoder) (_ map[int32]float32, changed bool) {
  30404. dd, esep := d.d, d.hh.hasElemSeparators()
  30405. containerLen := dd.ReadMapStart()
  30406. if canChange && v == nil {
  30407. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  30408. v = make(map[int32]float32, xlen)
  30409. changed = true
  30410. }
  30411. if containerLen == 0 {
  30412. dd.ReadMapEnd()
  30413. return v, changed
  30414. }
  30415. var mk int32
  30416. var mv float32
  30417. hasLen := containerLen > 0
  30418. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30419. if esep {
  30420. dd.ReadMapElemKey()
  30421. }
  30422. mk = int32(dd.DecodeInt(32))
  30423. if esep {
  30424. dd.ReadMapElemValue()
  30425. }
  30426. if dd.TryDecodeAsNil() {
  30427. if v == nil {
  30428. } else if d.h.DeleteOnNilMapValue {
  30429. delete(v, mk)
  30430. } else {
  30431. v[mk] = 0
  30432. }
  30433. continue
  30434. }
  30435. mv = float32(chkFloat32(dd.DecodeFloat64()))
  30436. if v != nil {
  30437. v[mk] = mv
  30438. }
  30439. }
  30440. dd.ReadMapEnd()
  30441. return v, changed
  30442. }
  30443. func (d *Decoder) fastpathDecMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  30444. if rv.Kind() == reflect.Ptr {
  30445. vp := rv2i(rv).(*map[int32]float64)
  30446. v, changed := fastpathTV.DecMapInt32Float64V(*vp, true, d)
  30447. if changed {
  30448. *vp = v
  30449. }
  30450. } else {
  30451. fastpathTV.DecMapInt32Float64V(rv2i(rv).(map[int32]float64), false, d)
  30452. }
  30453. }
  30454. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, d *Decoder) {
  30455. v, changed := f.DecMapInt32Float64V(*vp, true, d)
  30456. if changed {
  30457. *vp = v
  30458. }
  30459. }
  30460. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, canChange bool,
  30461. d *Decoder) (_ map[int32]float64, changed bool) {
  30462. dd, esep := d.d, d.hh.hasElemSeparators()
  30463. containerLen := dd.ReadMapStart()
  30464. if canChange && v == nil {
  30465. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30466. v = make(map[int32]float64, xlen)
  30467. changed = true
  30468. }
  30469. if containerLen == 0 {
  30470. dd.ReadMapEnd()
  30471. return v, changed
  30472. }
  30473. var mk int32
  30474. var mv float64
  30475. hasLen := containerLen > 0
  30476. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30477. if esep {
  30478. dd.ReadMapElemKey()
  30479. }
  30480. mk = int32(dd.DecodeInt(32))
  30481. if esep {
  30482. dd.ReadMapElemValue()
  30483. }
  30484. if dd.TryDecodeAsNil() {
  30485. if v == nil {
  30486. } else if d.h.DeleteOnNilMapValue {
  30487. delete(v, mk)
  30488. } else {
  30489. v[mk] = 0
  30490. }
  30491. continue
  30492. }
  30493. mv = dd.DecodeFloat64()
  30494. if v != nil {
  30495. v[mk] = mv
  30496. }
  30497. }
  30498. dd.ReadMapEnd()
  30499. return v, changed
  30500. }
  30501. func (d *Decoder) fastpathDecMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  30502. if rv.Kind() == reflect.Ptr {
  30503. vp := rv2i(rv).(*map[int32]bool)
  30504. v, changed := fastpathTV.DecMapInt32BoolV(*vp, true, d)
  30505. if changed {
  30506. *vp = v
  30507. }
  30508. } else {
  30509. fastpathTV.DecMapInt32BoolV(rv2i(rv).(map[int32]bool), false, d)
  30510. }
  30511. }
  30512. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, d *Decoder) {
  30513. v, changed := f.DecMapInt32BoolV(*vp, true, d)
  30514. if changed {
  30515. *vp = v
  30516. }
  30517. }
  30518. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, canChange bool,
  30519. d *Decoder) (_ map[int32]bool, changed bool) {
  30520. dd, esep := d.d, d.hh.hasElemSeparators()
  30521. containerLen := dd.ReadMapStart()
  30522. if canChange && v == nil {
  30523. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30524. v = make(map[int32]bool, xlen)
  30525. changed = true
  30526. }
  30527. if containerLen == 0 {
  30528. dd.ReadMapEnd()
  30529. return v, changed
  30530. }
  30531. var mk int32
  30532. var mv bool
  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(dd.DecodeInt(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] = false
  30548. }
  30549. continue
  30550. }
  30551. mv = dd.DecodeBool()
  30552. if v != nil {
  30553. v[mk] = mv
  30554. }
  30555. }
  30556. dd.ReadMapEnd()
  30557. return v, changed
  30558. }
  30559. func (d *Decoder) fastpathDecMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  30560. if rv.Kind() == reflect.Ptr {
  30561. vp := rv2i(rv).(*map[int64]interface{})
  30562. v, changed := fastpathTV.DecMapInt64IntfV(*vp, true, d)
  30563. if changed {
  30564. *vp = v
  30565. }
  30566. } else {
  30567. fastpathTV.DecMapInt64IntfV(rv2i(rv).(map[int64]interface{}), false, d)
  30568. }
  30569. }
  30570. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, d *Decoder) {
  30571. v, changed := f.DecMapInt64IntfV(*vp, true, d)
  30572. if changed {
  30573. *vp = v
  30574. }
  30575. }
  30576. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, canChange bool,
  30577. d *Decoder) (_ map[int64]interface{}, changed bool) {
  30578. dd, esep := d.d, d.hh.hasElemSeparators()
  30579. containerLen := dd.ReadMapStart()
  30580. if canChange && v == nil {
  30581. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  30582. v = make(map[int64]interface{}, xlen)
  30583. changed = true
  30584. }
  30585. if containerLen == 0 {
  30586. dd.ReadMapEnd()
  30587. return v, changed
  30588. }
  30589. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  30590. var mk int64
  30591. var mv interface{}
  30592. hasLen := containerLen > 0
  30593. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30594. if esep {
  30595. dd.ReadMapElemKey()
  30596. }
  30597. mk = dd.DecodeInt(64)
  30598. if esep {
  30599. dd.ReadMapElemValue()
  30600. }
  30601. if dd.TryDecodeAsNil() {
  30602. if v == nil {
  30603. } else if d.h.DeleteOnNilMapValue {
  30604. delete(v, mk)
  30605. } else {
  30606. v[mk] = nil
  30607. }
  30608. continue
  30609. }
  30610. if mapGet {
  30611. mv = v[mk]
  30612. } else {
  30613. mv = nil
  30614. }
  30615. d.decode(&mv)
  30616. if v != nil {
  30617. v[mk] = mv
  30618. }
  30619. }
  30620. dd.ReadMapEnd()
  30621. return v, changed
  30622. }
  30623. func (d *Decoder) fastpathDecMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  30624. if rv.Kind() == reflect.Ptr {
  30625. vp := rv2i(rv).(*map[int64]string)
  30626. v, changed := fastpathTV.DecMapInt64StringV(*vp, true, d)
  30627. if changed {
  30628. *vp = v
  30629. }
  30630. } else {
  30631. fastpathTV.DecMapInt64StringV(rv2i(rv).(map[int64]string), false, d)
  30632. }
  30633. }
  30634. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, d *Decoder) {
  30635. v, changed := f.DecMapInt64StringV(*vp, true, d)
  30636. if changed {
  30637. *vp = v
  30638. }
  30639. }
  30640. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, canChange bool,
  30641. d *Decoder) (_ map[int64]string, changed bool) {
  30642. dd, esep := d.d, d.hh.hasElemSeparators()
  30643. containerLen := dd.ReadMapStart()
  30644. if canChange && v == nil {
  30645. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  30646. v = make(map[int64]string, xlen)
  30647. changed = true
  30648. }
  30649. if containerLen == 0 {
  30650. dd.ReadMapEnd()
  30651. return v, changed
  30652. }
  30653. var mk int64
  30654. var mv string
  30655. hasLen := containerLen > 0
  30656. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30657. if esep {
  30658. dd.ReadMapElemKey()
  30659. }
  30660. mk = dd.DecodeInt(64)
  30661. if esep {
  30662. dd.ReadMapElemValue()
  30663. }
  30664. if dd.TryDecodeAsNil() {
  30665. if v == nil {
  30666. } else if d.h.DeleteOnNilMapValue {
  30667. delete(v, mk)
  30668. } else {
  30669. v[mk] = ""
  30670. }
  30671. continue
  30672. }
  30673. mv = dd.DecodeString()
  30674. if v != nil {
  30675. v[mk] = mv
  30676. }
  30677. }
  30678. dd.ReadMapEnd()
  30679. return v, changed
  30680. }
  30681. func (d *Decoder) fastpathDecMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  30682. if rv.Kind() == reflect.Ptr {
  30683. vp := rv2i(rv).(*map[int64]uint)
  30684. v, changed := fastpathTV.DecMapInt64UintV(*vp, true, d)
  30685. if changed {
  30686. *vp = v
  30687. }
  30688. } else {
  30689. fastpathTV.DecMapInt64UintV(rv2i(rv).(map[int64]uint), false, d)
  30690. }
  30691. }
  30692. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, d *Decoder) {
  30693. v, changed := f.DecMapInt64UintV(*vp, true, d)
  30694. if changed {
  30695. *vp = v
  30696. }
  30697. }
  30698. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, canChange bool,
  30699. d *Decoder) (_ map[int64]uint, changed bool) {
  30700. dd, esep := d.d, d.hh.hasElemSeparators()
  30701. containerLen := dd.ReadMapStart()
  30702. if canChange && v == nil {
  30703. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30704. v = make(map[int64]uint, xlen)
  30705. changed = true
  30706. }
  30707. if containerLen == 0 {
  30708. dd.ReadMapEnd()
  30709. return v, changed
  30710. }
  30711. var mk int64
  30712. var mv uint
  30713. hasLen := containerLen > 0
  30714. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30715. if esep {
  30716. dd.ReadMapElemKey()
  30717. }
  30718. mk = dd.DecodeInt(64)
  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 = uint(dd.DecodeUint(uintBitsize))
  30732. if v != nil {
  30733. v[mk] = mv
  30734. }
  30735. }
  30736. dd.ReadMapEnd()
  30737. return v, changed
  30738. }
  30739. func (d *Decoder) fastpathDecMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  30740. if rv.Kind() == reflect.Ptr {
  30741. vp := rv2i(rv).(*map[int64]uint8)
  30742. v, changed := fastpathTV.DecMapInt64Uint8V(*vp, true, d)
  30743. if changed {
  30744. *vp = v
  30745. }
  30746. } else {
  30747. fastpathTV.DecMapInt64Uint8V(rv2i(rv).(map[int64]uint8), false, d)
  30748. }
  30749. }
  30750. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, d *Decoder) {
  30751. v, changed := f.DecMapInt64Uint8V(*vp, true, d)
  30752. if changed {
  30753. *vp = v
  30754. }
  30755. }
  30756. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, canChange bool,
  30757. d *Decoder) (_ map[int64]uint8, changed bool) {
  30758. dd, esep := d.d, d.hh.hasElemSeparators()
  30759. containerLen := dd.ReadMapStart()
  30760. if canChange && v == nil {
  30761. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30762. v = make(map[int64]uint8, xlen)
  30763. changed = true
  30764. }
  30765. if containerLen == 0 {
  30766. dd.ReadMapEnd()
  30767. return v, changed
  30768. }
  30769. var mk int64
  30770. var mv uint8
  30771. hasLen := containerLen > 0
  30772. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30773. if esep {
  30774. dd.ReadMapElemKey()
  30775. }
  30776. mk = dd.DecodeInt(64)
  30777. if esep {
  30778. dd.ReadMapElemValue()
  30779. }
  30780. if dd.TryDecodeAsNil() {
  30781. if v == nil {
  30782. } else if d.h.DeleteOnNilMapValue {
  30783. delete(v, mk)
  30784. } else {
  30785. v[mk] = 0
  30786. }
  30787. continue
  30788. }
  30789. mv = uint8(dd.DecodeUint(8))
  30790. if v != nil {
  30791. v[mk] = mv
  30792. }
  30793. }
  30794. dd.ReadMapEnd()
  30795. return v, changed
  30796. }
  30797. func (d *Decoder) fastpathDecMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  30798. if rv.Kind() == reflect.Ptr {
  30799. vp := rv2i(rv).(*map[int64]uint16)
  30800. v, changed := fastpathTV.DecMapInt64Uint16V(*vp, true, d)
  30801. if changed {
  30802. *vp = v
  30803. }
  30804. } else {
  30805. fastpathTV.DecMapInt64Uint16V(rv2i(rv).(map[int64]uint16), false, d)
  30806. }
  30807. }
  30808. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, d *Decoder) {
  30809. v, changed := f.DecMapInt64Uint16V(*vp, true, d)
  30810. if changed {
  30811. *vp = v
  30812. }
  30813. }
  30814. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, canChange bool,
  30815. d *Decoder) (_ map[int64]uint16, changed bool) {
  30816. dd, esep := d.d, d.hh.hasElemSeparators()
  30817. containerLen := dd.ReadMapStart()
  30818. if canChange && v == nil {
  30819. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30820. v = make(map[int64]uint16, xlen)
  30821. changed = true
  30822. }
  30823. if containerLen == 0 {
  30824. dd.ReadMapEnd()
  30825. return v, changed
  30826. }
  30827. var mk int64
  30828. var mv uint16
  30829. hasLen := containerLen > 0
  30830. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30831. if esep {
  30832. dd.ReadMapElemKey()
  30833. }
  30834. mk = dd.DecodeInt(64)
  30835. if esep {
  30836. dd.ReadMapElemValue()
  30837. }
  30838. if dd.TryDecodeAsNil() {
  30839. if v == nil {
  30840. } else if d.h.DeleteOnNilMapValue {
  30841. delete(v, mk)
  30842. } else {
  30843. v[mk] = 0
  30844. }
  30845. continue
  30846. }
  30847. mv = uint16(dd.DecodeUint(16))
  30848. if v != nil {
  30849. v[mk] = mv
  30850. }
  30851. }
  30852. dd.ReadMapEnd()
  30853. return v, changed
  30854. }
  30855. func (d *Decoder) fastpathDecMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  30856. if rv.Kind() == reflect.Ptr {
  30857. vp := rv2i(rv).(*map[int64]uint32)
  30858. v, changed := fastpathTV.DecMapInt64Uint32V(*vp, true, d)
  30859. if changed {
  30860. *vp = v
  30861. }
  30862. } else {
  30863. fastpathTV.DecMapInt64Uint32V(rv2i(rv).(map[int64]uint32), false, d)
  30864. }
  30865. }
  30866. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, d *Decoder) {
  30867. v, changed := f.DecMapInt64Uint32V(*vp, true, d)
  30868. if changed {
  30869. *vp = v
  30870. }
  30871. }
  30872. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, canChange bool,
  30873. d *Decoder) (_ map[int64]uint32, changed bool) {
  30874. dd, esep := d.d, d.hh.hasElemSeparators()
  30875. containerLen := dd.ReadMapStart()
  30876. if canChange && v == nil {
  30877. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30878. v = make(map[int64]uint32, xlen)
  30879. changed = true
  30880. }
  30881. if containerLen == 0 {
  30882. dd.ReadMapEnd()
  30883. return v, changed
  30884. }
  30885. var mk int64
  30886. var mv uint32
  30887. hasLen := containerLen > 0
  30888. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30889. if esep {
  30890. dd.ReadMapElemKey()
  30891. }
  30892. mk = dd.DecodeInt(64)
  30893. if esep {
  30894. dd.ReadMapElemValue()
  30895. }
  30896. if dd.TryDecodeAsNil() {
  30897. if v == nil {
  30898. } else if d.h.DeleteOnNilMapValue {
  30899. delete(v, mk)
  30900. } else {
  30901. v[mk] = 0
  30902. }
  30903. continue
  30904. }
  30905. mv = uint32(dd.DecodeUint(32))
  30906. if v != nil {
  30907. v[mk] = mv
  30908. }
  30909. }
  30910. dd.ReadMapEnd()
  30911. return v, changed
  30912. }
  30913. func (d *Decoder) fastpathDecMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  30914. if rv.Kind() == reflect.Ptr {
  30915. vp := rv2i(rv).(*map[int64]uint64)
  30916. v, changed := fastpathTV.DecMapInt64Uint64V(*vp, true, d)
  30917. if changed {
  30918. *vp = v
  30919. }
  30920. } else {
  30921. fastpathTV.DecMapInt64Uint64V(rv2i(rv).(map[int64]uint64), false, d)
  30922. }
  30923. }
  30924. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, d *Decoder) {
  30925. v, changed := f.DecMapInt64Uint64V(*vp, true, d)
  30926. if changed {
  30927. *vp = v
  30928. }
  30929. }
  30930. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, canChange bool,
  30931. d *Decoder) (_ map[int64]uint64, changed bool) {
  30932. dd, esep := d.d, d.hh.hasElemSeparators()
  30933. containerLen := dd.ReadMapStart()
  30934. if canChange && v == nil {
  30935. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30936. v = make(map[int64]uint64, xlen)
  30937. changed = true
  30938. }
  30939. if containerLen == 0 {
  30940. dd.ReadMapEnd()
  30941. return v, changed
  30942. }
  30943. var mk int64
  30944. var mv uint64
  30945. hasLen := containerLen > 0
  30946. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30947. if esep {
  30948. dd.ReadMapElemKey()
  30949. }
  30950. mk = dd.DecodeInt(64)
  30951. if esep {
  30952. dd.ReadMapElemValue()
  30953. }
  30954. if dd.TryDecodeAsNil() {
  30955. if v == nil {
  30956. } else if d.h.DeleteOnNilMapValue {
  30957. delete(v, mk)
  30958. } else {
  30959. v[mk] = 0
  30960. }
  30961. continue
  30962. }
  30963. mv = dd.DecodeUint(64)
  30964. if v != nil {
  30965. v[mk] = mv
  30966. }
  30967. }
  30968. dd.ReadMapEnd()
  30969. return v, changed
  30970. }
  30971. func (d *Decoder) fastpathDecMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  30972. if rv.Kind() == reflect.Ptr {
  30973. vp := rv2i(rv).(*map[int64]uintptr)
  30974. v, changed := fastpathTV.DecMapInt64UintptrV(*vp, true, d)
  30975. if changed {
  30976. *vp = v
  30977. }
  30978. } else {
  30979. fastpathTV.DecMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), false, d)
  30980. }
  30981. }
  30982. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, d *Decoder) {
  30983. v, changed := f.DecMapInt64UintptrV(*vp, true, d)
  30984. if changed {
  30985. *vp = v
  30986. }
  30987. }
  30988. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, canChange bool,
  30989. d *Decoder) (_ map[int64]uintptr, changed bool) {
  30990. dd, esep := d.d, d.hh.hasElemSeparators()
  30991. containerLen := dd.ReadMapStart()
  30992. if canChange && v == nil {
  30993. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30994. v = make(map[int64]uintptr, xlen)
  30995. changed = true
  30996. }
  30997. if containerLen == 0 {
  30998. dd.ReadMapEnd()
  30999. return v, changed
  31000. }
  31001. var mk int64
  31002. var mv uintptr
  31003. hasLen := containerLen > 0
  31004. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31005. if esep {
  31006. dd.ReadMapElemKey()
  31007. }
  31008. mk = dd.DecodeInt(64)
  31009. if esep {
  31010. dd.ReadMapElemValue()
  31011. }
  31012. if dd.TryDecodeAsNil() {
  31013. if v == nil {
  31014. } else if d.h.DeleteOnNilMapValue {
  31015. delete(v, mk)
  31016. } else {
  31017. v[mk] = 0
  31018. }
  31019. continue
  31020. }
  31021. mv = uintptr(dd.DecodeUint(uintBitsize))
  31022. if v != nil {
  31023. v[mk] = mv
  31024. }
  31025. }
  31026. dd.ReadMapEnd()
  31027. return v, changed
  31028. }
  31029. func (d *Decoder) fastpathDecMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  31030. if rv.Kind() == reflect.Ptr {
  31031. vp := rv2i(rv).(*map[int64]int)
  31032. v, changed := fastpathTV.DecMapInt64IntV(*vp, true, d)
  31033. if changed {
  31034. *vp = v
  31035. }
  31036. } else {
  31037. fastpathTV.DecMapInt64IntV(rv2i(rv).(map[int64]int), false, d)
  31038. }
  31039. }
  31040. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, d *Decoder) {
  31041. v, changed := f.DecMapInt64IntV(*vp, true, d)
  31042. if changed {
  31043. *vp = v
  31044. }
  31045. }
  31046. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, canChange bool,
  31047. d *Decoder) (_ map[int64]int, changed bool) {
  31048. dd, esep := d.d, d.hh.hasElemSeparators()
  31049. containerLen := dd.ReadMapStart()
  31050. if canChange && v == nil {
  31051. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31052. v = make(map[int64]int, xlen)
  31053. changed = true
  31054. }
  31055. if containerLen == 0 {
  31056. dd.ReadMapEnd()
  31057. return v, changed
  31058. }
  31059. var mk int64
  31060. var mv int
  31061. hasLen := containerLen > 0
  31062. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31063. if esep {
  31064. dd.ReadMapElemKey()
  31065. }
  31066. mk = dd.DecodeInt(64)
  31067. if esep {
  31068. dd.ReadMapElemValue()
  31069. }
  31070. if dd.TryDecodeAsNil() {
  31071. if v == nil {
  31072. } else if d.h.DeleteOnNilMapValue {
  31073. delete(v, mk)
  31074. } else {
  31075. v[mk] = 0
  31076. }
  31077. continue
  31078. }
  31079. mv = int(dd.DecodeInt(intBitsize))
  31080. if v != nil {
  31081. v[mk] = mv
  31082. }
  31083. }
  31084. dd.ReadMapEnd()
  31085. return v, changed
  31086. }
  31087. func (d *Decoder) fastpathDecMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  31088. if rv.Kind() == reflect.Ptr {
  31089. vp := rv2i(rv).(*map[int64]int8)
  31090. v, changed := fastpathTV.DecMapInt64Int8V(*vp, true, d)
  31091. if changed {
  31092. *vp = v
  31093. }
  31094. } else {
  31095. fastpathTV.DecMapInt64Int8V(rv2i(rv).(map[int64]int8), false, d)
  31096. }
  31097. }
  31098. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, d *Decoder) {
  31099. v, changed := f.DecMapInt64Int8V(*vp, true, d)
  31100. if changed {
  31101. *vp = v
  31102. }
  31103. }
  31104. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, canChange bool,
  31105. d *Decoder) (_ map[int64]int8, changed bool) {
  31106. dd, esep := d.d, d.hh.hasElemSeparators()
  31107. containerLen := dd.ReadMapStart()
  31108. if canChange && v == nil {
  31109. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31110. v = make(map[int64]int8, xlen)
  31111. changed = true
  31112. }
  31113. if containerLen == 0 {
  31114. dd.ReadMapEnd()
  31115. return v, changed
  31116. }
  31117. var mk int64
  31118. var mv int8
  31119. hasLen := containerLen > 0
  31120. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31121. if esep {
  31122. dd.ReadMapElemKey()
  31123. }
  31124. mk = dd.DecodeInt(64)
  31125. if esep {
  31126. dd.ReadMapElemValue()
  31127. }
  31128. if dd.TryDecodeAsNil() {
  31129. if v == nil {
  31130. } else if d.h.DeleteOnNilMapValue {
  31131. delete(v, mk)
  31132. } else {
  31133. v[mk] = 0
  31134. }
  31135. continue
  31136. }
  31137. mv = int8(dd.DecodeInt(8))
  31138. if v != nil {
  31139. v[mk] = mv
  31140. }
  31141. }
  31142. dd.ReadMapEnd()
  31143. return v, changed
  31144. }
  31145. func (d *Decoder) fastpathDecMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  31146. if rv.Kind() == reflect.Ptr {
  31147. vp := rv2i(rv).(*map[int64]int16)
  31148. v, changed := fastpathTV.DecMapInt64Int16V(*vp, true, d)
  31149. if changed {
  31150. *vp = v
  31151. }
  31152. } else {
  31153. fastpathTV.DecMapInt64Int16V(rv2i(rv).(map[int64]int16), false, d)
  31154. }
  31155. }
  31156. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, d *Decoder) {
  31157. v, changed := f.DecMapInt64Int16V(*vp, true, d)
  31158. if changed {
  31159. *vp = v
  31160. }
  31161. }
  31162. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, canChange bool,
  31163. d *Decoder) (_ map[int64]int16, changed bool) {
  31164. dd, esep := d.d, d.hh.hasElemSeparators()
  31165. containerLen := dd.ReadMapStart()
  31166. if canChange && v == nil {
  31167. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31168. v = make(map[int64]int16, xlen)
  31169. changed = true
  31170. }
  31171. if containerLen == 0 {
  31172. dd.ReadMapEnd()
  31173. return v, changed
  31174. }
  31175. var mk int64
  31176. var mv int16
  31177. hasLen := containerLen > 0
  31178. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31179. if esep {
  31180. dd.ReadMapElemKey()
  31181. }
  31182. mk = dd.DecodeInt(64)
  31183. if esep {
  31184. dd.ReadMapElemValue()
  31185. }
  31186. if dd.TryDecodeAsNil() {
  31187. if v == nil {
  31188. } else if d.h.DeleteOnNilMapValue {
  31189. delete(v, mk)
  31190. } else {
  31191. v[mk] = 0
  31192. }
  31193. continue
  31194. }
  31195. mv = int16(dd.DecodeInt(16))
  31196. if v != nil {
  31197. v[mk] = mv
  31198. }
  31199. }
  31200. dd.ReadMapEnd()
  31201. return v, changed
  31202. }
  31203. func (d *Decoder) fastpathDecMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  31204. if rv.Kind() == reflect.Ptr {
  31205. vp := rv2i(rv).(*map[int64]int32)
  31206. v, changed := fastpathTV.DecMapInt64Int32V(*vp, true, d)
  31207. if changed {
  31208. *vp = v
  31209. }
  31210. } else {
  31211. fastpathTV.DecMapInt64Int32V(rv2i(rv).(map[int64]int32), false, d)
  31212. }
  31213. }
  31214. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, d *Decoder) {
  31215. v, changed := f.DecMapInt64Int32V(*vp, true, d)
  31216. if changed {
  31217. *vp = v
  31218. }
  31219. }
  31220. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, canChange bool,
  31221. d *Decoder) (_ map[int64]int32, changed bool) {
  31222. dd, esep := d.d, d.hh.hasElemSeparators()
  31223. containerLen := dd.ReadMapStart()
  31224. if canChange && v == nil {
  31225. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31226. v = make(map[int64]int32, xlen)
  31227. changed = true
  31228. }
  31229. if containerLen == 0 {
  31230. dd.ReadMapEnd()
  31231. return v, changed
  31232. }
  31233. var mk int64
  31234. var mv int32
  31235. hasLen := containerLen > 0
  31236. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31237. if esep {
  31238. dd.ReadMapElemKey()
  31239. }
  31240. mk = dd.DecodeInt(64)
  31241. if esep {
  31242. dd.ReadMapElemValue()
  31243. }
  31244. if dd.TryDecodeAsNil() {
  31245. if v == nil {
  31246. } else if d.h.DeleteOnNilMapValue {
  31247. delete(v, mk)
  31248. } else {
  31249. v[mk] = 0
  31250. }
  31251. continue
  31252. }
  31253. mv = int32(dd.DecodeInt(32))
  31254. if v != nil {
  31255. v[mk] = mv
  31256. }
  31257. }
  31258. dd.ReadMapEnd()
  31259. return v, changed
  31260. }
  31261. func (d *Decoder) fastpathDecMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  31262. if rv.Kind() == reflect.Ptr {
  31263. vp := rv2i(rv).(*map[int64]int64)
  31264. v, changed := fastpathTV.DecMapInt64Int64V(*vp, true, d)
  31265. if changed {
  31266. *vp = v
  31267. }
  31268. } else {
  31269. fastpathTV.DecMapInt64Int64V(rv2i(rv).(map[int64]int64), false, d)
  31270. }
  31271. }
  31272. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, d *Decoder) {
  31273. v, changed := f.DecMapInt64Int64V(*vp, true, d)
  31274. if changed {
  31275. *vp = v
  31276. }
  31277. }
  31278. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, canChange bool,
  31279. d *Decoder) (_ map[int64]int64, changed bool) {
  31280. dd, esep := d.d, d.hh.hasElemSeparators()
  31281. containerLen := dd.ReadMapStart()
  31282. if canChange && v == nil {
  31283. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31284. v = make(map[int64]int64, xlen)
  31285. changed = true
  31286. }
  31287. if containerLen == 0 {
  31288. dd.ReadMapEnd()
  31289. return v, changed
  31290. }
  31291. var mk int64
  31292. var mv int64
  31293. hasLen := containerLen > 0
  31294. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31295. if esep {
  31296. dd.ReadMapElemKey()
  31297. }
  31298. mk = dd.DecodeInt(64)
  31299. if esep {
  31300. dd.ReadMapElemValue()
  31301. }
  31302. if dd.TryDecodeAsNil() {
  31303. if v == nil {
  31304. } else if d.h.DeleteOnNilMapValue {
  31305. delete(v, mk)
  31306. } else {
  31307. v[mk] = 0
  31308. }
  31309. continue
  31310. }
  31311. mv = dd.DecodeInt(64)
  31312. if v != nil {
  31313. v[mk] = mv
  31314. }
  31315. }
  31316. dd.ReadMapEnd()
  31317. return v, changed
  31318. }
  31319. func (d *Decoder) fastpathDecMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  31320. if rv.Kind() == reflect.Ptr {
  31321. vp := rv2i(rv).(*map[int64]float32)
  31322. v, changed := fastpathTV.DecMapInt64Float32V(*vp, true, d)
  31323. if changed {
  31324. *vp = v
  31325. }
  31326. } else {
  31327. fastpathTV.DecMapInt64Float32V(rv2i(rv).(map[int64]float32), false, d)
  31328. }
  31329. }
  31330. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, d *Decoder) {
  31331. v, changed := f.DecMapInt64Float32V(*vp, true, d)
  31332. if changed {
  31333. *vp = v
  31334. }
  31335. }
  31336. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, canChange bool,
  31337. d *Decoder) (_ map[int64]float32, changed bool) {
  31338. dd, esep := d.d, d.hh.hasElemSeparators()
  31339. containerLen := dd.ReadMapStart()
  31340. if canChange && v == nil {
  31341. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31342. v = make(map[int64]float32, xlen)
  31343. changed = true
  31344. }
  31345. if containerLen == 0 {
  31346. dd.ReadMapEnd()
  31347. return v, changed
  31348. }
  31349. var mk int64
  31350. var mv float32
  31351. hasLen := containerLen > 0
  31352. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31353. if esep {
  31354. dd.ReadMapElemKey()
  31355. }
  31356. mk = dd.DecodeInt(64)
  31357. if esep {
  31358. dd.ReadMapElemValue()
  31359. }
  31360. if dd.TryDecodeAsNil() {
  31361. if v == nil {
  31362. } else if d.h.DeleteOnNilMapValue {
  31363. delete(v, mk)
  31364. } else {
  31365. v[mk] = 0
  31366. }
  31367. continue
  31368. }
  31369. mv = float32(chkFloat32(dd.DecodeFloat64()))
  31370. if v != nil {
  31371. v[mk] = mv
  31372. }
  31373. }
  31374. dd.ReadMapEnd()
  31375. return v, changed
  31376. }
  31377. func (d *Decoder) fastpathDecMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  31378. if rv.Kind() == reflect.Ptr {
  31379. vp := rv2i(rv).(*map[int64]float64)
  31380. v, changed := fastpathTV.DecMapInt64Float64V(*vp, true, d)
  31381. if changed {
  31382. *vp = v
  31383. }
  31384. } else {
  31385. fastpathTV.DecMapInt64Float64V(rv2i(rv).(map[int64]float64), false, d)
  31386. }
  31387. }
  31388. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, d *Decoder) {
  31389. v, changed := f.DecMapInt64Float64V(*vp, true, d)
  31390. if changed {
  31391. *vp = v
  31392. }
  31393. }
  31394. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, canChange bool,
  31395. d *Decoder) (_ map[int64]float64, changed bool) {
  31396. dd, esep := d.d, d.hh.hasElemSeparators()
  31397. containerLen := dd.ReadMapStart()
  31398. if canChange && v == nil {
  31399. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31400. v = make(map[int64]float64, xlen)
  31401. changed = true
  31402. }
  31403. if containerLen == 0 {
  31404. dd.ReadMapEnd()
  31405. return v, changed
  31406. }
  31407. var mk int64
  31408. var mv float64
  31409. hasLen := containerLen > 0
  31410. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31411. if esep {
  31412. dd.ReadMapElemKey()
  31413. }
  31414. mk = dd.DecodeInt(64)
  31415. if esep {
  31416. dd.ReadMapElemValue()
  31417. }
  31418. if dd.TryDecodeAsNil() {
  31419. if v == nil {
  31420. } else if d.h.DeleteOnNilMapValue {
  31421. delete(v, mk)
  31422. } else {
  31423. v[mk] = 0
  31424. }
  31425. continue
  31426. }
  31427. mv = dd.DecodeFloat64()
  31428. if v != nil {
  31429. v[mk] = mv
  31430. }
  31431. }
  31432. dd.ReadMapEnd()
  31433. return v, changed
  31434. }
  31435. func (d *Decoder) fastpathDecMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  31436. if rv.Kind() == reflect.Ptr {
  31437. vp := rv2i(rv).(*map[int64]bool)
  31438. v, changed := fastpathTV.DecMapInt64BoolV(*vp, true, d)
  31439. if changed {
  31440. *vp = v
  31441. }
  31442. } else {
  31443. fastpathTV.DecMapInt64BoolV(rv2i(rv).(map[int64]bool), false, d)
  31444. }
  31445. }
  31446. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, d *Decoder) {
  31447. v, changed := f.DecMapInt64BoolV(*vp, true, d)
  31448. if changed {
  31449. *vp = v
  31450. }
  31451. }
  31452. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, canChange bool,
  31453. d *Decoder) (_ map[int64]bool, changed bool) {
  31454. dd, esep := d.d, d.hh.hasElemSeparators()
  31455. containerLen := dd.ReadMapStart()
  31456. if canChange && v == nil {
  31457. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31458. v = make(map[int64]bool, xlen)
  31459. changed = true
  31460. }
  31461. if containerLen == 0 {
  31462. dd.ReadMapEnd()
  31463. return v, changed
  31464. }
  31465. var mk int64
  31466. var mv bool
  31467. hasLen := containerLen > 0
  31468. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31469. if esep {
  31470. dd.ReadMapElemKey()
  31471. }
  31472. mk = dd.DecodeInt(64)
  31473. if esep {
  31474. dd.ReadMapElemValue()
  31475. }
  31476. if dd.TryDecodeAsNil() {
  31477. if v == nil {
  31478. } else if d.h.DeleteOnNilMapValue {
  31479. delete(v, mk)
  31480. } else {
  31481. v[mk] = false
  31482. }
  31483. continue
  31484. }
  31485. mv = dd.DecodeBool()
  31486. if v != nil {
  31487. v[mk] = mv
  31488. }
  31489. }
  31490. dd.ReadMapEnd()
  31491. return v, changed
  31492. }
  31493. func (d *Decoder) fastpathDecMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  31494. if rv.Kind() == reflect.Ptr {
  31495. vp := rv2i(rv).(*map[bool]interface{})
  31496. v, changed := fastpathTV.DecMapBoolIntfV(*vp, true, d)
  31497. if changed {
  31498. *vp = v
  31499. }
  31500. } else {
  31501. fastpathTV.DecMapBoolIntfV(rv2i(rv).(map[bool]interface{}), false, d)
  31502. }
  31503. }
  31504. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, d *Decoder) {
  31505. v, changed := f.DecMapBoolIntfV(*vp, true, d)
  31506. if changed {
  31507. *vp = v
  31508. }
  31509. }
  31510. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, canChange bool,
  31511. d *Decoder) (_ map[bool]interface{}, changed bool) {
  31512. dd, esep := d.d, d.hh.hasElemSeparators()
  31513. containerLen := dd.ReadMapStart()
  31514. if canChange && v == nil {
  31515. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  31516. v = make(map[bool]interface{}, xlen)
  31517. changed = true
  31518. }
  31519. if containerLen == 0 {
  31520. dd.ReadMapEnd()
  31521. return v, changed
  31522. }
  31523. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  31524. var mk bool
  31525. var mv interface{}
  31526. hasLen := containerLen > 0
  31527. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31528. if esep {
  31529. dd.ReadMapElemKey()
  31530. }
  31531. mk = dd.DecodeBool()
  31532. if esep {
  31533. dd.ReadMapElemValue()
  31534. }
  31535. if dd.TryDecodeAsNil() {
  31536. if v == nil {
  31537. } else if d.h.DeleteOnNilMapValue {
  31538. delete(v, mk)
  31539. } else {
  31540. v[mk] = nil
  31541. }
  31542. continue
  31543. }
  31544. if mapGet {
  31545. mv = v[mk]
  31546. } else {
  31547. mv = nil
  31548. }
  31549. d.decode(&mv)
  31550. if v != nil {
  31551. v[mk] = mv
  31552. }
  31553. }
  31554. dd.ReadMapEnd()
  31555. return v, changed
  31556. }
  31557. func (d *Decoder) fastpathDecMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  31558. if rv.Kind() == reflect.Ptr {
  31559. vp := rv2i(rv).(*map[bool]string)
  31560. v, changed := fastpathTV.DecMapBoolStringV(*vp, true, d)
  31561. if changed {
  31562. *vp = v
  31563. }
  31564. } else {
  31565. fastpathTV.DecMapBoolStringV(rv2i(rv).(map[bool]string), false, d)
  31566. }
  31567. }
  31568. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, d *Decoder) {
  31569. v, changed := f.DecMapBoolStringV(*vp, true, d)
  31570. if changed {
  31571. *vp = v
  31572. }
  31573. }
  31574. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, canChange bool,
  31575. d *Decoder) (_ map[bool]string, changed bool) {
  31576. dd, esep := d.d, d.hh.hasElemSeparators()
  31577. containerLen := dd.ReadMapStart()
  31578. if canChange && v == nil {
  31579. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  31580. v = make(map[bool]string, xlen)
  31581. changed = true
  31582. }
  31583. if containerLen == 0 {
  31584. dd.ReadMapEnd()
  31585. return v, changed
  31586. }
  31587. var mk bool
  31588. var mv string
  31589. hasLen := containerLen > 0
  31590. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31591. if esep {
  31592. dd.ReadMapElemKey()
  31593. }
  31594. mk = dd.DecodeBool()
  31595. if esep {
  31596. dd.ReadMapElemValue()
  31597. }
  31598. if dd.TryDecodeAsNil() {
  31599. if v == nil {
  31600. } else if d.h.DeleteOnNilMapValue {
  31601. delete(v, mk)
  31602. } else {
  31603. v[mk] = ""
  31604. }
  31605. continue
  31606. }
  31607. mv = dd.DecodeString()
  31608. if v != nil {
  31609. v[mk] = mv
  31610. }
  31611. }
  31612. dd.ReadMapEnd()
  31613. return v, changed
  31614. }
  31615. func (d *Decoder) fastpathDecMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  31616. if rv.Kind() == reflect.Ptr {
  31617. vp := rv2i(rv).(*map[bool]uint)
  31618. v, changed := fastpathTV.DecMapBoolUintV(*vp, true, d)
  31619. if changed {
  31620. *vp = v
  31621. }
  31622. } else {
  31623. fastpathTV.DecMapBoolUintV(rv2i(rv).(map[bool]uint), false, d)
  31624. }
  31625. }
  31626. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, d *Decoder) {
  31627. v, changed := f.DecMapBoolUintV(*vp, true, d)
  31628. if changed {
  31629. *vp = v
  31630. }
  31631. }
  31632. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, canChange bool,
  31633. d *Decoder) (_ map[bool]uint, changed bool) {
  31634. dd, esep := d.d, d.hh.hasElemSeparators()
  31635. containerLen := dd.ReadMapStart()
  31636. if canChange && v == nil {
  31637. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31638. v = make(map[bool]uint, xlen)
  31639. changed = true
  31640. }
  31641. if containerLen == 0 {
  31642. dd.ReadMapEnd()
  31643. return v, changed
  31644. }
  31645. var mk bool
  31646. var mv uint
  31647. hasLen := containerLen > 0
  31648. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31649. if esep {
  31650. dd.ReadMapElemKey()
  31651. }
  31652. mk = dd.DecodeBool()
  31653. if esep {
  31654. dd.ReadMapElemValue()
  31655. }
  31656. if dd.TryDecodeAsNil() {
  31657. if v == nil {
  31658. } else if d.h.DeleteOnNilMapValue {
  31659. delete(v, mk)
  31660. } else {
  31661. v[mk] = 0
  31662. }
  31663. continue
  31664. }
  31665. mv = uint(dd.DecodeUint(uintBitsize))
  31666. if v != nil {
  31667. v[mk] = mv
  31668. }
  31669. }
  31670. dd.ReadMapEnd()
  31671. return v, changed
  31672. }
  31673. func (d *Decoder) fastpathDecMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  31674. if rv.Kind() == reflect.Ptr {
  31675. vp := rv2i(rv).(*map[bool]uint8)
  31676. v, changed := fastpathTV.DecMapBoolUint8V(*vp, true, d)
  31677. if changed {
  31678. *vp = v
  31679. }
  31680. } else {
  31681. fastpathTV.DecMapBoolUint8V(rv2i(rv).(map[bool]uint8), false, d)
  31682. }
  31683. }
  31684. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, d *Decoder) {
  31685. v, changed := f.DecMapBoolUint8V(*vp, true, d)
  31686. if changed {
  31687. *vp = v
  31688. }
  31689. }
  31690. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, canChange bool,
  31691. d *Decoder) (_ map[bool]uint8, changed bool) {
  31692. dd, esep := d.d, d.hh.hasElemSeparators()
  31693. containerLen := dd.ReadMapStart()
  31694. if canChange && v == nil {
  31695. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  31696. v = make(map[bool]uint8, xlen)
  31697. changed = true
  31698. }
  31699. if containerLen == 0 {
  31700. dd.ReadMapEnd()
  31701. return v, changed
  31702. }
  31703. var mk bool
  31704. var mv uint8
  31705. hasLen := containerLen > 0
  31706. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31707. if esep {
  31708. dd.ReadMapElemKey()
  31709. }
  31710. mk = dd.DecodeBool()
  31711. if esep {
  31712. dd.ReadMapElemValue()
  31713. }
  31714. if dd.TryDecodeAsNil() {
  31715. if v == nil {
  31716. } else if d.h.DeleteOnNilMapValue {
  31717. delete(v, mk)
  31718. } else {
  31719. v[mk] = 0
  31720. }
  31721. continue
  31722. }
  31723. mv = uint8(dd.DecodeUint(8))
  31724. if v != nil {
  31725. v[mk] = mv
  31726. }
  31727. }
  31728. dd.ReadMapEnd()
  31729. return v, changed
  31730. }
  31731. func (d *Decoder) fastpathDecMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  31732. if rv.Kind() == reflect.Ptr {
  31733. vp := rv2i(rv).(*map[bool]uint16)
  31734. v, changed := fastpathTV.DecMapBoolUint16V(*vp, true, d)
  31735. if changed {
  31736. *vp = v
  31737. }
  31738. } else {
  31739. fastpathTV.DecMapBoolUint16V(rv2i(rv).(map[bool]uint16), false, d)
  31740. }
  31741. }
  31742. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, d *Decoder) {
  31743. v, changed := f.DecMapBoolUint16V(*vp, true, d)
  31744. if changed {
  31745. *vp = v
  31746. }
  31747. }
  31748. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, canChange bool,
  31749. d *Decoder) (_ map[bool]uint16, changed bool) {
  31750. dd, esep := d.d, d.hh.hasElemSeparators()
  31751. containerLen := dd.ReadMapStart()
  31752. if canChange && v == nil {
  31753. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31754. v = make(map[bool]uint16, xlen)
  31755. changed = true
  31756. }
  31757. if containerLen == 0 {
  31758. dd.ReadMapEnd()
  31759. return v, changed
  31760. }
  31761. var mk bool
  31762. var mv uint16
  31763. hasLen := containerLen > 0
  31764. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31765. if esep {
  31766. dd.ReadMapElemKey()
  31767. }
  31768. mk = dd.DecodeBool()
  31769. if esep {
  31770. dd.ReadMapElemValue()
  31771. }
  31772. if dd.TryDecodeAsNil() {
  31773. if v == nil {
  31774. } else if d.h.DeleteOnNilMapValue {
  31775. delete(v, mk)
  31776. } else {
  31777. v[mk] = 0
  31778. }
  31779. continue
  31780. }
  31781. mv = uint16(dd.DecodeUint(16))
  31782. if v != nil {
  31783. v[mk] = mv
  31784. }
  31785. }
  31786. dd.ReadMapEnd()
  31787. return v, changed
  31788. }
  31789. func (d *Decoder) fastpathDecMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  31790. if rv.Kind() == reflect.Ptr {
  31791. vp := rv2i(rv).(*map[bool]uint32)
  31792. v, changed := fastpathTV.DecMapBoolUint32V(*vp, true, d)
  31793. if changed {
  31794. *vp = v
  31795. }
  31796. } else {
  31797. fastpathTV.DecMapBoolUint32V(rv2i(rv).(map[bool]uint32), false, d)
  31798. }
  31799. }
  31800. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, d *Decoder) {
  31801. v, changed := f.DecMapBoolUint32V(*vp, true, d)
  31802. if changed {
  31803. *vp = v
  31804. }
  31805. }
  31806. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, canChange bool,
  31807. d *Decoder) (_ map[bool]uint32, changed bool) {
  31808. dd, esep := d.d, d.hh.hasElemSeparators()
  31809. containerLen := dd.ReadMapStart()
  31810. if canChange && v == nil {
  31811. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  31812. v = make(map[bool]uint32, xlen)
  31813. changed = true
  31814. }
  31815. if containerLen == 0 {
  31816. dd.ReadMapEnd()
  31817. return v, changed
  31818. }
  31819. var mk bool
  31820. var mv uint32
  31821. hasLen := containerLen > 0
  31822. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31823. if esep {
  31824. dd.ReadMapElemKey()
  31825. }
  31826. mk = dd.DecodeBool()
  31827. if esep {
  31828. dd.ReadMapElemValue()
  31829. }
  31830. if dd.TryDecodeAsNil() {
  31831. if v == nil {
  31832. } else if d.h.DeleteOnNilMapValue {
  31833. delete(v, mk)
  31834. } else {
  31835. v[mk] = 0
  31836. }
  31837. continue
  31838. }
  31839. mv = uint32(dd.DecodeUint(32))
  31840. if v != nil {
  31841. v[mk] = mv
  31842. }
  31843. }
  31844. dd.ReadMapEnd()
  31845. return v, changed
  31846. }
  31847. func (d *Decoder) fastpathDecMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  31848. if rv.Kind() == reflect.Ptr {
  31849. vp := rv2i(rv).(*map[bool]uint64)
  31850. v, changed := fastpathTV.DecMapBoolUint64V(*vp, true, d)
  31851. if changed {
  31852. *vp = v
  31853. }
  31854. } else {
  31855. fastpathTV.DecMapBoolUint64V(rv2i(rv).(map[bool]uint64), false, d)
  31856. }
  31857. }
  31858. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, d *Decoder) {
  31859. v, changed := f.DecMapBoolUint64V(*vp, true, d)
  31860. if changed {
  31861. *vp = v
  31862. }
  31863. }
  31864. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, canChange bool,
  31865. d *Decoder) (_ map[bool]uint64, changed bool) {
  31866. dd, esep := d.d, d.hh.hasElemSeparators()
  31867. containerLen := dd.ReadMapStart()
  31868. if canChange && v == nil {
  31869. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31870. v = make(map[bool]uint64, xlen)
  31871. changed = true
  31872. }
  31873. if containerLen == 0 {
  31874. dd.ReadMapEnd()
  31875. return v, changed
  31876. }
  31877. var mk bool
  31878. var mv uint64
  31879. hasLen := containerLen > 0
  31880. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31881. if esep {
  31882. dd.ReadMapElemKey()
  31883. }
  31884. mk = dd.DecodeBool()
  31885. if esep {
  31886. dd.ReadMapElemValue()
  31887. }
  31888. if dd.TryDecodeAsNil() {
  31889. if v == nil {
  31890. } else if d.h.DeleteOnNilMapValue {
  31891. delete(v, mk)
  31892. } else {
  31893. v[mk] = 0
  31894. }
  31895. continue
  31896. }
  31897. mv = dd.DecodeUint(64)
  31898. if v != nil {
  31899. v[mk] = mv
  31900. }
  31901. }
  31902. dd.ReadMapEnd()
  31903. return v, changed
  31904. }
  31905. func (d *Decoder) fastpathDecMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  31906. if rv.Kind() == reflect.Ptr {
  31907. vp := rv2i(rv).(*map[bool]uintptr)
  31908. v, changed := fastpathTV.DecMapBoolUintptrV(*vp, true, d)
  31909. if changed {
  31910. *vp = v
  31911. }
  31912. } else {
  31913. fastpathTV.DecMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), false, d)
  31914. }
  31915. }
  31916. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, d *Decoder) {
  31917. v, changed := f.DecMapBoolUintptrV(*vp, true, d)
  31918. if changed {
  31919. *vp = v
  31920. }
  31921. }
  31922. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, canChange bool,
  31923. d *Decoder) (_ map[bool]uintptr, changed bool) {
  31924. dd, esep := d.d, d.hh.hasElemSeparators()
  31925. containerLen := dd.ReadMapStart()
  31926. if canChange && v == nil {
  31927. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31928. v = make(map[bool]uintptr, xlen)
  31929. changed = true
  31930. }
  31931. if containerLen == 0 {
  31932. dd.ReadMapEnd()
  31933. return v, changed
  31934. }
  31935. var mk bool
  31936. var mv uintptr
  31937. hasLen := containerLen > 0
  31938. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31939. if esep {
  31940. dd.ReadMapElemKey()
  31941. }
  31942. mk = dd.DecodeBool()
  31943. if esep {
  31944. dd.ReadMapElemValue()
  31945. }
  31946. if dd.TryDecodeAsNil() {
  31947. if v == nil {
  31948. } else if d.h.DeleteOnNilMapValue {
  31949. delete(v, mk)
  31950. } else {
  31951. v[mk] = 0
  31952. }
  31953. continue
  31954. }
  31955. mv = uintptr(dd.DecodeUint(uintBitsize))
  31956. if v != nil {
  31957. v[mk] = mv
  31958. }
  31959. }
  31960. dd.ReadMapEnd()
  31961. return v, changed
  31962. }
  31963. func (d *Decoder) fastpathDecMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  31964. if rv.Kind() == reflect.Ptr {
  31965. vp := rv2i(rv).(*map[bool]int)
  31966. v, changed := fastpathTV.DecMapBoolIntV(*vp, true, d)
  31967. if changed {
  31968. *vp = v
  31969. }
  31970. } else {
  31971. fastpathTV.DecMapBoolIntV(rv2i(rv).(map[bool]int), false, d)
  31972. }
  31973. }
  31974. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, d *Decoder) {
  31975. v, changed := f.DecMapBoolIntV(*vp, true, d)
  31976. if changed {
  31977. *vp = v
  31978. }
  31979. }
  31980. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, canChange bool,
  31981. d *Decoder) (_ map[bool]int, changed bool) {
  31982. dd, esep := d.d, d.hh.hasElemSeparators()
  31983. containerLen := dd.ReadMapStart()
  31984. if canChange && v == nil {
  31985. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31986. v = make(map[bool]int, xlen)
  31987. changed = true
  31988. }
  31989. if containerLen == 0 {
  31990. dd.ReadMapEnd()
  31991. return v, changed
  31992. }
  31993. var mk bool
  31994. var mv int
  31995. hasLen := containerLen > 0
  31996. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31997. if esep {
  31998. dd.ReadMapElemKey()
  31999. }
  32000. mk = dd.DecodeBool()
  32001. if esep {
  32002. dd.ReadMapElemValue()
  32003. }
  32004. if dd.TryDecodeAsNil() {
  32005. if v == nil {
  32006. } else if d.h.DeleteOnNilMapValue {
  32007. delete(v, mk)
  32008. } else {
  32009. v[mk] = 0
  32010. }
  32011. continue
  32012. }
  32013. mv = int(dd.DecodeInt(intBitsize))
  32014. if v != nil {
  32015. v[mk] = mv
  32016. }
  32017. }
  32018. dd.ReadMapEnd()
  32019. return v, changed
  32020. }
  32021. func (d *Decoder) fastpathDecMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  32022. if rv.Kind() == reflect.Ptr {
  32023. vp := rv2i(rv).(*map[bool]int8)
  32024. v, changed := fastpathTV.DecMapBoolInt8V(*vp, true, d)
  32025. if changed {
  32026. *vp = v
  32027. }
  32028. } else {
  32029. fastpathTV.DecMapBoolInt8V(rv2i(rv).(map[bool]int8), false, d)
  32030. }
  32031. }
  32032. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, d *Decoder) {
  32033. v, changed := f.DecMapBoolInt8V(*vp, true, d)
  32034. if changed {
  32035. *vp = v
  32036. }
  32037. }
  32038. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, canChange bool,
  32039. d *Decoder) (_ map[bool]int8, changed bool) {
  32040. dd, esep := d.d, d.hh.hasElemSeparators()
  32041. containerLen := dd.ReadMapStart()
  32042. if canChange && v == nil {
  32043. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  32044. v = make(map[bool]int8, xlen)
  32045. changed = true
  32046. }
  32047. if containerLen == 0 {
  32048. dd.ReadMapEnd()
  32049. return v, changed
  32050. }
  32051. var mk bool
  32052. var mv int8
  32053. hasLen := containerLen > 0
  32054. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32055. if esep {
  32056. dd.ReadMapElemKey()
  32057. }
  32058. mk = dd.DecodeBool()
  32059. if esep {
  32060. dd.ReadMapElemValue()
  32061. }
  32062. if dd.TryDecodeAsNil() {
  32063. if v == nil {
  32064. } else if d.h.DeleteOnNilMapValue {
  32065. delete(v, mk)
  32066. } else {
  32067. v[mk] = 0
  32068. }
  32069. continue
  32070. }
  32071. mv = int8(dd.DecodeInt(8))
  32072. if v != nil {
  32073. v[mk] = mv
  32074. }
  32075. }
  32076. dd.ReadMapEnd()
  32077. return v, changed
  32078. }
  32079. func (d *Decoder) fastpathDecMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  32080. if rv.Kind() == reflect.Ptr {
  32081. vp := rv2i(rv).(*map[bool]int16)
  32082. v, changed := fastpathTV.DecMapBoolInt16V(*vp, true, d)
  32083. if changed {
  32084. *vp = v
  32085. }
  32086. } else {
  32087. fastpathTV.DecMapBoolInt16V(rv2i(rv).(map[bool]int16), false, d)
  32088. }
  32089. }
  32090. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, d *Decoder) {
  32091. v, changed := f.DecMapBoolInt16V(*vp, true, d)
  32092. if changed {
  32093. *vp = v
  32094. }
  32095. }
  32096. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, canChange bool,
  32097. d *Decoder) (_ map[bool]int16, changed bool) {
  32098. dd, esep := d.d, d.hh.hasElemSeparators()
  32099. containerLen := dd.ReadMapStart()
  32100. if canChange && v == nil {
  32101. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  32102. v = make(map[bool]int16, xlen)
  32103. changed = true
  32104. }
  32105. if containerLen == 0 {
  32106. dd.ReadMapEnd()
  32107. return v, changed
  32108. }
  32109. var mk bool
  32110. var mv int16
  32111. hasLen := containerLen > 0
  32112. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32113. if esep {
  32114. dd.ReadMapElemKey()
  32115. }
  32116. mk = dd.DecodeBool()
  32117. if esep {
  32118. dd.ReadMapElemValue()
  32119. }
  32120. if dd.TryDecodeAsNil() {
  32121. if v == nil {
  32122. } else if d.h.DeleteOnNilMapValue {
  32123. delete(v, mk)
  32124. } else {
  32125. v[mk] = 0
  32126. }
  32127. continue
  32128. }
  32129. mv = int16(dd.DecodeInt(16))
  32130. if v != nil {
  32131. v[mk] = mv
  32132. }
  32133. }
  32134. dd.ReadMapEnd()
  32135. return v, changed
  32136. }
  32137. func (d *Decoder) fastpathDecMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  32138. if rv.Kind() == reflect.Ptr {
  32139. vp := rv2i(rv).(*map[bool]int32)
  32140. v, changed := fastpathTV.DecMapBoolInt32V(*vp, true, d)
  32141. if changed {
  32142. *vp = v
  32143. }
  32144. } else {
  32145. fastpathTV.DecMapBoolInt32V(rv2i(rv).(map[bool]int32), false, d)
  32146. }
  32147. }
  32148. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, d *Decoder) {
  32149. v, changed := f.DecMapBoolInt32V(*vp, true, d)
  32150. if changed {
  32151. *vp = v
  32152. }
  32153. }
  32154. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, canChange bool,
  32155. d *Decoder) (_ map[bool]int32, changed bool) {
  32156. dd, esep := d.d, d.hh.hasElemSeparators()
  32157. containerLen := dd.ReadMapStart()
  32158. if canChange && v == nil {
  32159. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32160. v = make(map[bool]int32, xlen)
  32161. changed = true
  32162. }
  32163. if containerLen == 0 {
  32164. dd.ReadMapEnd()
  32165. return v, changed
  32166. }
  32167. var mk bool
  32168. var mv int32
  32169. hasLen := containerLen > 0
  32170. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32171. if esep {
  32172. dd.ReadMapElemKey()
  32173. }
  32174. mk = dd.DecodeBool()
  32175. if esep {
  32176. dd.ReadMapElemValue()
  32177. }
  32178. if dd.TryDecodeAsNil() {
  32179. if v == nil {
  32180. } else if d.h.DeleteOnNilMapValue {
  32181. delete(v, mk)
  32182. } else {
  32183. v[mk] = 0
  32184. }
  32185. continue
  32186. }
  32187. mv = int32(dd.DecodeInt(32))
  32188. if v != nil {
  32189. v[mk] = mv
  32190. }
  32191. }
  32192. dd.ReadMapEnd()
  32193. return v, changed
  32194. }
  32195. func (d *Decoder) fastpathDecMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  32196. if rv.Kind() == reflect.Ptr {
  32197. vp := rv2i(rv).(*map[bool]int64)
  32198. v, changed := fastpathTV.DecMapBoolInt64V(*vp, true, d)
  32199. if changed {
  32200. *vp = v
  32201. }
  32202. } else {
  32203. fastpathTV.DecMapBoolInt64V(rv2i(rv).(map[bool]int64), false, d)
  32204. }
  32205. }
  32206. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, d *Decoder) {
  32207. v, changed := f.DecMapBoolInt64V(*vp, true, d)
  32208. if changed {
  32209. *vp = v
  32210. }
  32211. }
  32212. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, canChange bool,
  32213. d *Decoder) (_ map[bool]int64, changed bool) {
  32214. dd, esep := d.d, d.hh.hasElemSeparators()
  32215. containerLen := dd.ReadMapStart()
  32216. if canChange && v == nil {
  32217. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32218. v = make(map[bool]int64, xlen)
  32219. changed = true
  32220. }
  32221. if containerLen == 0 {
  32222. dd.ReadMapEnd()
  32223. return v, changed
  32224. }
  32225. var mk bool
  32226. var mv int64
  32227. hasLen := containerLen > 0
  32228. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32229. if esep {
  32230. dd.ReadMapElemKey()
  32231. }
  32232. mk = dd.DecodeBool()
  32233. if esep {
  32234. dd.ReadMapElemValue()
  32235. }
  32236. if dd.TryDecodeAsNil() {
  32237. if v == nil {
  32238. } else if d.h.DeleteOnNilMapValue {
  32239. delete(v, mk)
  32240. } else {
  32241. v[mk] = 0
  32242. }
  32243. continue
  32244. }
  32245. mv = dd.DecodeInt(64)
  32246. if v != nil {
  32247. v[mk] = mv
  32248. }
  32249. }
  32250. dd.ReadMapEnd()
  32251. return v, changed
  32252. }
  32253. func (d *Decoder) fastpathDecMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  32254. if rv.Kind() == reflect.Ptr {
  32255. vp := rv2i(rv).(*map[bool]float32)
  32256. v, changed := fastpathTV.DecMapBoolFloat32V(*vp, true, d)
  32257. if changed {
  32258. *vp = v
  32259. }
  32260. } else {
  32261. fastpathTV.DecMapBoolFloat32V(rv2i(rv).(map[bool]float32), false, d)
  32262. }
  32263. }
  32264. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, d *Decoder) {
  32265. v, changed := f.DecMapBoolFloat32V(*vp, true, d)
  32266. if changed {
  32267. *vp = v
  32268. }
  32269. }
  32270. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, canChange bool,
  32271. d *Decoder) (_ map[bool]float32, changed bool) {
  32272. dd, esep := d.d, d.hh.hasElemSeparators()
  32273. containerLen := dd.ReadMapStart()
  32274. if canChange && v == nil {
  32275. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32276. v = make(map[bool]float32, xlen)
  32277. changed = true
  32278. }
  32279. if containerLen == 0 {
  32280. dd.ReadMapEnd()
  32281. return v, changed
  32282. }
  32283. var mk bool
  32284. var mv float32
  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 = float32(chkFloat32(dd.DecodeFloat64()))
  32304. if v != nil {
  32305. v[mk] = mv
  32306. }
  32307. }
  32308. dd.ReadMapEnd()
  32309. return v, changed
  32310. }
  32311. func (d *Decoder) fastpathDecMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  32312. if rv.Kind() == reflect.Ptr {
  32313. vp := rv2i(rv).(*map[bool]float64)
  32314. v, changed := fastpathTV.DecMapBoolFloat64V(*vp, true, d)
  32315. if changed {
  32316. *vp = v
  32317. }
  32318. } else {
  32319. fastpathTV.DecMapBoolFloat64V(rv2i(rv).(map[bool]float64), false, d)
  32320. }
  32321. }
  32322. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, d *Decoder) {
  32323. v, changed := f.DecMapBoolFloat64V(*vp, true, d)
  32324. if changed {
  32325. *vp = v
  32326. }
  32327. }
  32328. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, canChange bool,
  32329. d *Decoder) (_ map[bool]float64, changed bool) {
  32330. dd, esep := d.d, d.hh.hasElemSeparators()
  32331. containerLen := dd.ReadMapStart()
  32332. if canChange && v == nil {
  32333. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32334. v = make(map[bool]float64, xlen)
  32335. changed = true
  32336. }
  32337. if containerLen == 0 {
  32338. dd.ReadMapEnd()
  32339. return v, changed
  32340. }
  32341. var mk bool
  32342. var mv float64
  32343. hasLen := containerLen > 0
  32344. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32345. if esep {
  32346. dd.ReadMapElemKey()
  32347. }
  32348. mk = dd.DecodeBool()
  32349. if esep {
  32350. dd.ReadMapElemValue()
  32351. }
  32352. if dd.TryDecodeAsNil() {
  32353. if v == nil {
  32354. } else if d.h.DeleteOnNilMapValue {
  32355. delete(v, mk)
  32356. } else {
  32357. v[mk] = 0
  32358. }
  32359. continue
  32360. }
  32361. mv = dd.DecodeFloat64()
  32362. if v != nil {
  32363. v[mk] = mv
  32364. }
  32365. }
  32366. dd.ReadMapEnd()
  32367. return v, changed
  32368. }
  32369. func (d *Decoder) fastpathDecMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  32370. if rv.Kind() == reflect.Ptr {
  32371. vp := rv2i(rv).(*map[bool]bool)
  32372. v, changed := fastpathTV.DecMapBoolBoolV(*vp, true, d)
  32373. if changed {
  32374. *vp = v
  32375. }
  32376. } else {
  32377. fastpathTV.DecMapBoolBoolV(rv2i(rv).(map[bool]bool), false, d)
  32378. }
  32379. }
  32380. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, d *Decoder) {
  32381. v, changed := f.DecMapBoolBoolV(*vp, true, d)
  32382. if changed {
  32383. *vp = v
  32384. }
  32385. }
  32386. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, canChange bool,
  32387. d *Decoder) (_ map[bool]bool, changed bool) {
  32388. dd, esep := d.d, d.hh.hasElemSeparators()
  32389. containerLen := dd.ReadMapStart()
  32390. if canChange && v == nil {
  32391. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  32392. v = make(map[bool]bool, xlen)
  32393. changed = true
  32394. }
  32395. if containerLen == 0 {
  32396. dd.ReadMapEnd()
  32397. return v, changed
  32398. }
  32399. var mk bool
  32400. var mv bool
  32401. hasLen := containerLen > 0
  32402. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32403. if esep {
  32404. dd.ReadMapElemKey()
  32405. }
  32406. mk = dd.DecodeBool()
  32407. if esep {
  32408. dd.ReadMapElemValue()
  32409. }
  32410. if dd.TryDecodeAsNil() {
  32411. if v == nil {
  32412. } else if d.h.DeleteOnNilMapValue {
  32413. delete(v, mk)
  32414. } else {
  32415. v[mk] = false
  32416. }
  32417. continue
  32418. }
  32419. mv = dd.DecodeBool()
  32420. if v != nil {
  32421. v[mk] = mv
  32422. }
  32423. }
  32424. dd.ReadMapEnd()
  32425. return v, changed
  32426. }