fast-path.generated.go 799 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522
  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 // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  1438. return false
  1439. }
  1440. return true
  1441. }
  1442. // -- -- fast path functions
  1443. func (e *Encoder) fastpathEncSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  1444. if f.ti.mbs {
  1445. fastpathTV.EncAsMapSliceIntfV(rv2i(rv).([]interface{}), e)
  1446. } else {
  1447. fastpathTV.EncSliceIntfV(rv2i(rv).([]interface{}), e)
  1448. }
  1449. }
  1450. func (_ fastpathT) EncSliceIntfV(v []interface{}, e *Encoder) {
  1451. if v == nil {
  1452. e.e.EncodeNil()
  1453. return
  1454. }
  1455. ee, esep := e.e, e.hh.hasElemSeparators()
  1456. ee.WriteArrayStart(len(v))
  1457. if esep {
  1458. for _, v2 := range v {
  1459. ee.WriteArrayElem()
  1460. e.encode(v2)
  1461. }
  1462. } else {
  1463. for _, v2 := range v {
  1464. e.encode(v2)
  1465. }
  1466. }
  1467. ee.WriteArrayEnd()
  1468. }
  1469. func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, e *Encoder) {
  1470. ee, esep := e.e, e.hh.hasElemSeparators()
  1471. if len(v)%2 == 1 {
  1472. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1473. return
  1474. }
  1475. ee.WriteMapStart(len(v) / 2)
  1476. if esep {
  1477. for j, v2 := range v {
  1478. if j%2 == 0 {
  1479. ee.WriteMapElemKey()
  1480. } else {
  1481. ee.WriteMapElemValue()
  1482. }
  1483. e.encode(v2)
  1484. }
  1485. } else {
  1486. for _, v2 := range v {
  1487. e.encode(v2)
  1488. }
  1489. }
  1490. ee.WriteMapEnd()
  1491. }
  1492. func (e *Encoder) fastpathEncSliceStringR(f *codecFnInfo, rv reflect.Value) {
  1493. if f.ti.mbs {
  1494. fastpathTV.EncAsMapSliceStringV(rv2i(rv).([]string), e)
  1495. } else {
  1496. fastpathTV.EncSliceStringV(rv2i(rv).([]string), e)
  1497. }
  1498. }
  1499. func (_ fastpathT) EncSliceStringV(v []string, e *Encoder) {
  1500. if v == nil {
  1501. e.e.EncodeNil()
  1502. return
  1503. }
  1504. ee, esep := e.e, e.hh.hasElemSeparators()
  1505. ee.WriteArrayStart(len(v))
  1506. if esep {
  1507. for _, v2 := range v {
  1508. ee.WriteArrayElem()
  1509. ee.EncodeString(cUTF8, v2)
  1510. }
  1511. } else {
  1512. for _, v2 := range v {
  1513. ee.EncodeString(cUTF8, v2)
  1514. }
  1515. }
  1516. ee.WriteArrayEnd()
  1517. }
  1518. func (_ fastpathT) EncAsMapSliceStringV(v []string, e *Encoder) {
  1519. ee, esep := e.e, e.hh.hasElemSeparators()
  1520. if len(v)%2 == 1 {
  1521. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1522. return
  1523. }
  1524. ee.WriteMapStart(len(v) / 2)
  1525. if esep {
  1526. for j, v2 := range v {
  1527. if j%2 == 0 {
  1528. ee.WriteMapElemKey()
  1529. } else {
  1530. ee.WriteMapElemValue()
  1531. }
  1532. ee.EncodeString(cUTF8, v2)
  1533. }
  1534. } else {
  1535. for _, v2 := range v {
  1536. ee.EncodeString(cUTF8, v2)
  1537. }
  1538. }
  1539. ee.WriteMapEnd()
  1540. }
  1541. func (e *Encoder) fastpathEncSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  1542. if f.ti.mbs {
  1543. fastpathTV.EncAsMapSliceFloat32V(rv2i(rv).([]float32), e)
  1544. } else {
  1545. fastpathTV.EncSliceFloat32V(rv2i(rv).([]float32), e)
  1546. }
  1547. }
  1548. func (_ fastpathT) EncSliceFloat32V(v []float32, e *Encoder) {
  1549. if v == nil {
  1550. e.e.EncodeNil()
  1551. return
  1552. }
  1553. ee, esep := e.e, e.hh.hasElemSeparators()
  1554. ee.WriteArrayStart(len(v))
  1555. if esep {
  1556. for _, v2 := range v {
  1557. ee.WriteArrayElem()
  1558. ee.EncodeFloat32(v2)
  1559. }
  1560. } else {
  1561. for _, v2 := range v {
  1562. ee.EncodeFloat32(v2)
  1563. }
  1564. }
  1565. ee.WriteArrayEnd()
  1566. }
  1567. func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, e *Encoder) {
  1568. ee, esep := e.e, e.hh.hasElemSeparators()
  1569. if len(v)%2 == 1 {
  1570. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1571. return
  1572. }
  1573. ee.WriteMapStart(len(v) / 2)
  1574. if esep {
  1575. for j, v2 := range v {
  1576. if j%2 == 0 {
  1577. ee.WriteMapElemKey()
  1578. } else {
  1579. ee.WriteMapElemValue()
  1580. }
  1581. ee.EncodeFloat32(v2)
  1582. }
  1583. } else {
  1584. for _, v2 := range v {
  1585. ee.EncodeFloat32(v2)
  1586. }
  1587. }
  1588. ee.WriteMapEnd()
  1589. }
  1590. func (e *Encoder) fastpathEncSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  1591. if f.ti.mbs {
  1592. fastpathTV.EncAsMapSliceFloat64V(rv2i(rv).([]float64), e)
  1593. } else {
  1594. fastpathTV.EncSliceFloat64V(rv2i(rv).([]float64), e)
  1595. }
  1596. }
  1597. func (_ fastpathT) EncSliceFloat64V(v []float64, e *Encoder) {
  1598. if v == nil {
  1599. e.e.EncodeNil()
  1600. return
  1601. }
  1602. ee, esep := e.e, e.hh.hasElemSeparators()
  1603. ee.WriteArrayStart(len(v))
  1604. if esep {
  1605. for _, v2 := range v {
  1606. ee.WriteArrayElem()
  1607. ee.EncodeFloat64(v2)
  1608. }
  1609. } else {
  1610. for _, v2 := range v {
  1611. ee.EncodeFloat64(v2)
  1612. }
  1613. }
  1614. ee.WriteArrayEnd()
  1615. }
  1616. func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, e *Encoder) {
  1617. ee, esep := e.e, e.hh.hasElemSeparators()
  1618. if len(v)%2 == 1 {
  1619. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1620. return
  1621. }
  1622. ee.WriteMapStart(len(v) / 2)
  1623. if esep {
  1624. for j, v2 := range v {
  1625. if j%2 == 0 {
  1626. ee.WriteMapElemKey()
  1627. } else {
  1628. ee.WriteMapElemValue()
  1629. }
  1630. ee.EncodeFloat64(v2)
  1631. }
  1632. } else {
  1633. for _, v2 := range v {
  1634. ee.EncodeFloat64(v2)
  1635. }
  1636. }
  1637. ee.WriteMapEnd()
  1638. }
  1639. func (e *Encoder) fastpathEncSliceUintR(f *codecFnInfo, rv reflect.Value) {
  1640. if f.ti.mbs {
  1641. fastpathTV.EncAsMapSliceUintV(rv2i(rv).([]uint), e)
  1642. } else {
  1643. fastpathTV.EncSliceUintV(rv2i(rv).([]uint), e)
  1644. }
  1645. }
  1646. func (_ fastpathT) EncSliceUintV(v []uint, e *Encoder) {
  1647. if v == nil {
  1648. e.e.EncodeNil()
  1649. return
  1650. }
  1651. ee, esep := e.e, e.hh.hasElemSeparators()
  1652. ee.WriteArrayStart(len(v))
  1653. if esep {
  1654. for _, v2 := range v {
  1655. ee.WriteArrayElem()
  1656. ee.EncodeUint(uint64(v2))
  1657. }
  1658. } else {
  1659. for _, v2 := range v {
  1660. ee.EncodeUint(uint64(v2))
  1661. }
  1662. }
  1663. ee.WriteArrayEnd()
  1664. }
  1665. func (_ fastpathT) EncAsMapSliceUintV(v []uint, e *Encoder) {
  1666. ee, esep := e.e, e.hh.hasElemSeparators()
  1667. if len(v)%2 == 1 {
  1668. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1669. return
  1670. }
  1671. ee.WriteMapStart(len(v) / 2)
  1672. if esep {
  1673. for j, v2 := range v {
  1674. if j%2 == 0 {
  1675. ee.WriteMapElemKey()
  1676. } else {
  1677. ee.WriteMapElemValue()
  1678. }
  1679. ee.EncodeUint(uint64(v2))
  1680. }
  1681. } else {
  1682. for _, v2 := range v {
  1683. ee.EncodeUint(uint64(v2))
  1684. }
  1685. }
  1686. ee.WriteMapEnd()
  1687. }
  1688. func (e *Encoder) fastpathEncSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  1689. if f.ti.mbs {
  1690. fastpathTV.EncAsMapSliceUint8V(rv2i(rv).([]uint8), e)
  1691. } else {
  1692. fastpathTV.EncSliceUint8V(rv2i(rv).([]uint8), e)
  1693. }
  1694. }
  1695. func (_ fastpathT) EncSliceUint8V(v []uint8, e *Encoder) {
  1696. if v == nil {
  1697. e.e.EncodeNil()
  1698. return
  1699. }
  1700. ee, esep := e.e, e.hh.hasElemSeparators()
  1701. ee.WriteArrayStart(len(v))
  1702. if esep {
  1703. for _, v2 := range v {
  1704. ee.WriteArrayElem()
  1705. ee.EncodeUint(uint64(v2))
  1706. }
  1707. } else {
  1708. for _, v2 := range v {
  1709. ee.EncodeUint(uint64(v2))
  1710. }
  1711. }
  1712. ee.WriteArrayEnd()
  1713. }
  1714. func (_ fastpathT) EncAsMapSliceUint8V(v []uint8, e *Encoder) {
  1715. ee, esep := e.e, e.hh.hasElemSeparators()
  1716. if len(v)%2 == 1 {
  1717. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1718. return
  1719. }
  1720. ee.WriteMapStart(len(v) / 2)
  1721. if esep {
  1722. for j, v2 := range v {
  1723. if j%2 == 0 {
  1724. ee.WriteMapElemKey()
  1725. } else {
  1726. ee.WriteMapElemValue()
  1727. }
  1728. ee.EncodeUint(uint64(v2))
  1729. }
  1730. } else {
  1731. for _, v2 := range v {
  1732. ee.EncodeUint(uint64(v2))
  1733. }
  1734. }
  1735. ee.WriteMapEnd()
  1736. }
  1737. func (e *Encoder) fastpathEncSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  1738. if f.ti.mbs {
  1739. fastpathTV.EncAsMapSliceUint16V(rv2i(rv).([]uint16), e)
  1740. } else {
  1741. fastpathTV.EncSliceUint16V(rv2i(rv).([]uint16), e)
  1742. }
  1743. }
  1744. func (_ fastpathT) EncSliceUint16V(v []uint16, e *Encoder) {
  1745. if v == nil {
  1746. e.e.EncodeNil()
  1747. return
  1748. }
  1749. ee, esep := e.e, e.hh.hasElemSeparators()
  1750. ee.WriteArrayStart(len(v))
  1751. if esep {
  1752. for _, v2 := range v {
  1753. ee.WriteArrayElem()
  1754. ee.EncodeUint(uint64(v2))
  1755. }
  1756. } else {
  1757. for _, v2 := range v {
  1758. ee.EncodeUint(uint64(v2))
  1759. }
  1760. }
  1761. ee.WriteArrayEnd()
  1762. }
  1763. func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, e *Encoder) {
  1764. ee, esep := e.e, e.hh.hasElemSeparators()
  1765. if len(v)%2 == 1 {
  1766. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1767. return
  1768. }
  1769. ee.WriteMapStart(len(v) / 2)
  1770. if esep {
  1771. for j, v2 := range v {
  1772. if j%2 == 0 {
  1773. ee.WriteMapElemKey()
  1774. } else {
  1775. ee.WriteMapElemValue()
  1776. }
  1777. ee.EncodeUint(uint64(v2))
  1778. }
  1779. } else {
  1780. for _, v2 := range v {
  1781. ee.EncodeUint(uint64(v2))
  1782. }
  1783. }
  1784. ee.WriteMapEnd()
  1785. }
  1786. func (e *Encoder) fastpathEncSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  1787. if f.ti.mbs {
  1788. fastpathTV.EncAsMapSliceUint32V(rv2i(rv).([]uint32), e)
  1789. } else {
  1790. fastpathTV.EncSliceUint32V(rv2i(rv).([]uint32), e)
  1791. }
  1792. }
  1793. func (_ fastpathT) EncSliceUint32V(v []uint32, e *Encoder) {
  1794. if v == nil {
  1795. e.e.EncodeNil()
  1796. return
  1797. }
  1798. ee, esep := e.e, e.hh.hasElemSeparators()
  1799. ee.WriteArrayStart(len(v))
  1800. if esep {
  1801. for _, v2 := range v {
  1802. ee.WriteArrayElem()
  1803. ee.EncodeUint(uint64(v2))
  1804. }
  1805. } else {
  1806. for _, v2 := range v {
  1807. ee.EncodeUint(uint64(v2))
  1808. }
  1809. }
  1810. ee.WriteArrayEnd()
  1811. }
  1812. func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, e *Encoder) {
  1813. ee, esep := e.e, e.hh.hasElemSeparators()
  1814. if len(v)%2 == 1 {
  1815. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1816. return
  1817. }
  1818. ee.WriteMapStart(len(v) / 2)
  1819. if esep {
  1820. for j, v2 := range v {
  1821. if j%2 == 0 {
  1822. ee.WriteMapElemKey()
  1823. } else {
  1824. ee.WriteMapElemValue()
  1825. }
  1826. ee.EncodeUint(uint64(v2))
  1827. }
  1828. } else {
  1829. for _, v2 := range v {
  1830. ee.EncodeUint(uint64(v2))
  1831. }
  1832. }
  1833. ee.WriteMapEnd()
  1834. }
  1835. func (e *Encoder) fastpathEncSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  1836. if f.ti.mbs {
  1837. fastpathTV.EncAsMapSliceUint64V(rv2i(rv).([]uint64), e)
  1838. } else {
  1839. fastpathTV.EncSliceUint64V(rv2i(rv).([]uint64), e)
  1840. }
  1841. }
  1842. func (_ fastpathT) EncSliceUint64V(v []uint64, e *Encoder) {
  1843. if v == nil {
  1844. e.e.EncodeNil()
  1845. return
  1846. }
  1847. ee, esep := e.e, e.hh.hasElemSeparators()
  1848. ee.WriteArrayStart(len(v))
  1849. if esep {
  1850. for _, v2 := range v {
  1851. ee.WriteArrayElem()
  1852. ee.EncodeUint(uint64(v2))
  1853. }
  1854. } else {
  1855. for _, v2 := range v {
  1856. ee.EncodeUint(uint64(v2))
  1857. }
  1858. }
  1859. ee.WriteArrayEnd()
  1860. }
  1861. func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, e *Encoder) {
  1862. ee, esep := e.e, e.hh.hasElemSeparators()
  1863. if len(v)%2 == 1 {
  1864. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1865. return
  1866. }
  1867. ee.WriteMapStart(len(v) / 2)
  1868. if esep {
  1869. for j, v2 := range v {
  1870. if j%2 == 0 {
  1871. ee.WriteMapElemKey()
  1872. } else {
  1873. ee.WriteMapElemValue()
  1874. }
  1875. ee.EncodeUint(uint64(v2))
  1876. }
  1877. } else {
  1878. for _, v2 := range v {
  1879. ee.EncodeUint(uint64(v2))
  1880. }
  1881. }
  1882. ee.WriteMapEnd()
  1883. }
  1884. func (e *Encoder) fastpathEncSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  1885. if f.ti.mbs {
  1886. fastpathTV.EncAsMapSliceUintptrV(rv2i(rv).([]uintptr), e)
  1887. } else {
  1888. fastpathTV.EncSliceUintptrV(rv2i(rv).([]uintptr), e)
  1889. }
  1890. }
  1891. func (_ fastpathT) EncSliceUintptrV(v []uintptr, e *Encoder) {
  1892. if v == nil {
  1893. e.e.EncodeNil()
  1894. return
  1895. }
  1896. ee, esep := e.e, e.hh.hasElemSeparators()
  1897. ee.WriteArrayStart(len(v))
  1898. if esep {
  1899. for _, v2 := range v {
  1900. ee.WriteArrayElem()
  1901. e.encode(v2)
  1902. }
  1903. } else {
  1904. for _, v2 := range v {
  1905. e.encode(v2)
  1906. }
  1907. }
  1908. ee.WriteArrayEnd()
  1909. }
  1910. func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, e *Encoder) {
  1911. ee, esep := e.e, e.hh.hasElemSeparators()
  1912. if len(v)%2 == 1 {
  1913. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1914. return
  1915. }
  1916. ee.WriteMapStart(len(v) / 2)
  1917. if esep {
  1918. for j, v2 := range v {
  1919. if j%2 == 0 {
  1920. ee.WriteMapElemKey()
  1921. } else {
  1922. ee.WriteMapElemValue()
  1923. }
  1924. e.encode(v2)
  1925. }
  1926. } else {
  1927. for _, v2 := range v {
  1928. e.encode(v2)
  1929. }
  1930. }
  1931. ee.WriteMapEnd()
  1932. }
  1933. func (e *Encoder) fastpathEncSliceIntR(f *codecFnInfo, rv reflect.Value) {
  1934. if f.ti.mbs {
  1935. fastpathTV.EncAsMapSliceIntV(rv2i(rv).([]int), e)
  1936. } else {
  1937. fastpathTV.EncSliceIntV(rv2i(rv).([]int), e)
  1938. }
  1939. }
  1940. func (_ fastpathT) EncSliceIntV(v []int, e *Encoder) {
  1941. if v == nil {
  1942. e.e.EncodeNil()
  1943. return
  1944. }
  1945. ee, esep := e.e, e.hh.hasElemSeparators()
  1946. ee.WriteArrayStart(len(v))
  1947. if esep {
  1948. for _, v2 := range v {
  1949. ee.WriteArrayElem()
  1950. ee.EncodeInt(int64(v2))
  1951. }
  1952. } else {
  1953. for _, v2 := range v {
  1954. ee.EncodeInt(int64(v2))
  1955. }
  1956. }
  1957. ee.WriteArrayEnd()
  1958. }
  1959. func (_ fastpathT) EncAsMapSliceIntV(v []int, e *Encoder) {
  1960. ee, esep := e.e, e.hh.hasElemSeparators()
  1961. if len(v)%2 == 1 {
  1962. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1963. return
  1964. }
  1965. ee.WriteMapStart(len(v) / 2)
  1966. if esep {
  1967. for j, v2 := range v {
  1968. if j%2 == 0 {
  1969. ee.WriteMapElemKey()
  1970. } else {
  1971. ee.WriteMapElemValue()
  1972. }
  1973. ee.EncodeInt(int64(v2))
  1974. }
  1975. } else {
  1976. for _, v2 := range v {
  1977. ee.EncodeInt(int64(v2))
  1978. }
  1979. }
  1980. ee.WriteMapEnd()
  1981. }
  1982. func (e *Encoder) fastpathEncSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  1983. if f.ti.mbs {
  1984. fastpathTV.EncAsMapSliceInt8V(rv2i(rv).([]int8), e)
  1985. } else {
  1986. fastpathTV.EncSliceInt8V(rv2i(rv).([]int8), e)
  1987. }
  1988. }
  1989. func (_ fastpathT) EncSliceInt8V(v []int8, e *Encoder) {
  1990. if v == nil {
  1991. e.e.EncodeNil()
  1992. return
  1993. }
  1994. ee, esep := e.e, e.hh.hasElemSeparators()
  1995. ee.WriteArrayStart(len(v))
  1996. if esep {
  1997. for _, v2 := range v {
  1998. ee.WriteArrayElem()
  1999. ee.EncodeInt(int64(v2))
  2000. }
  2001. } else {
  2002. for _, v2 := range v {
  2003. ee.EncodeInt(int64(v2))
  2004. }
  2005. }
  2006. ee.WriteArrayEnd()
  2007. }
  2008. func (_ fastpathT) EncAsMapSliceInt8V(v []int8, e *Encoder) {
  2009. ee, esep := e.e, e.hh.hasElemSeparators()
  2010. if len(v)%2 == 1 {
  2011. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2012. return
  2013. }
  2014. ee.WriteMapStart(len(v) / 2)
  2015. if esep {
  2016. for j, v2 := range v {
  2017. if j%2 == 0 {
  2018. ee.WriteMapElemKey()
  2019. } else {
  2020. ee.WriteMapElemValue()
  2021. }
  2022. ee.EncodeInt(int64(v2))
  2023. }
  2024. } else {
  2025. for _, v2 := range v {
  2026. ee.EncodeInt(int64(v2))
  2027. }
  2028. }
  2029. ee.WriteMapEnd()
  2030. }
  2031. func (e *Encoder) fastpathEncSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  2032. if f.ti.mbs {
  2033. fastpathTV.EncAsMapSliceInt16V(rv2i(rv).([]int16), e)
  2034. } else {
  2035. fastpathTV.EncSliceInt16V(rv2i(rv).([]int16), e)
  2036. }
  2037. }
  2038. func (_ fastpathT) EncSliceInt16V(v []int16, e *Encoder) {
  2039. if v == nil {
  2040. e.e.EncodeNil()
  2041. return
  2042. }
  2043. ee, esep := e.e, e.hh.hasElemSeparators()
  2044. ee.WriteArrayStart(len(v))
  2045. if esep {
  2046. for _, v2 := range v {
  2047. ee.WriteArrayElem()
  2048. ee.EncodeInt(int64(v2))
  2049. }
  2050. } else {
  2051. for _, v2 := range v {
  2052. ee.EncodeInt(int64(v2))
  2053. }
  2054. }
  2055. ee.WriteArrayEnd()
  2056. }
  2057. func (_ fastpathT) EncAsMapSliceInt16V(v []int16, e *Encoder) {
  2058. ee, esep := e.e, e.hh.hasElemSeparators()
  2059. if len(v)%2 == 1 {
  2060. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2061. return
  2062. }
  2063. ee.WriteMapStart(len(v) / 2)
  2064. if esep {
  2065. for j, v2 := range v {
  2066. if j%2 == 0 {
  2067. ee.WriteMapElemKey()
  2068. } else {
  2069. ee.WriteMapElemValue()
  2070. }
  2071. ee.EncodeInt(int64(v2))
  2072. }
  2073. } else {
  2074. for _, v2 := range v {
  2075. ee.EncodeInt(int64(v2))
  2076. }
  2077. }
  2078. ee.WriteMapEnd()
  2079. }
  2080. func (e *Encoder) fastpathEncSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  2081. if f.ti.mbs {
  2082. fastpathTV.EncAsMapSliceInt32V(rv2i(rv).([]int32), e)
  2083. } else {
  2084. fastpathTV.EncSliceInt32V(rv2i(rv).([]int32), e)
  2085. }
  2086. }
  2087. func (_ fastpathT) EncSliceInt32V(v []int32, e *Encoder) {
  2088. if v == nil {
  2089. e.e.EncodeNil()
  2090. return
  2091. }
  2092. ee, esep := e.e, e.hh.hasElemSeparators()
  2093. ee.WriteArrayStart(len(v))
  2094. if esep {
  2095. for _, v2 := range v {
  2096. ee.WriteArrayElem()
  2097. ee.EncodeInt(int64(v2))
  2098. }
  2099. } else {
  2100. for _, v2 := range v {
  2101. ee.EncodeInt(int64(v2))
  2102. }
  2103. }
  2104. ee.WriteArrayEnd()
  2105. }
  2106. func (_ fastpathT) EncAsMapSliceInt32V(v []int32, e *Encoder) {
  2107. ee, esep := e.e, e.hh.hasElemSeparators()
  2108. if len(v)%2 == 1 {
  2109. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2110. return
  2111. }
  2112. ee.WriteMapStart(len(v) / 2)
  2113. if esep {
  2114. for j, v2 := range v {
  2115. if j%2 == 0 {
  2116. ee.WriteMapElemKey()
  2117. } else {
  2118. ee.WriteMapElemValue()
  2119. }
  2120. ee.EncodeInt(int64(v2))
  2121. }
  2122. } else {
  2123. for _, v2 := range v {
  2124. ee.EncodeInt(int64(v2))
  2125. }
  2126. }
  2127. ee.WriteMapEnd()
  2128. }
  2129. func (e *Encoder) fastpathEncSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  2130. if f.ti.mbs {
  2131. fastpathTV.EncAsMapSliceInt64V(rv2i(rv).([]int64), e)
  2132. } else {
  2133. fastpathTV.EncSliceInt64V(rv2i(rv).([]int64), e)
  2134. }
  2135. }
  2136. func (_ fastpathT) EncSliceInt64V(v []int64, e *Encoder) {
  2137. if v == nil {
  2138. e.e.EncodeNil()
  2139. return
  2140. }
  2141. ee, esep := e.e, e.hh.hasElemSeparators()
  2142. ee.WriteArrayStart(len(v))
  2143. if esep {
  2144. for _, v2 := range v {
  2145. ee.WriteArrayElem()
  2146. ee.EncodeInt(int64(v2))
  2147. }
  2148. } else {
  2149. for _, v2 := range v {
  2150. ee.EncodeInt(int64(v2))
  2151. }
  2152. }
  2153. ee.WriteArrayEnd()
  2154. }
  2155. func (_ fastpathT) EncAsMapSliceInt64V(v []int64, e *Encoder) {
  2156. ee, esep := e.e, e.hh.hasElemSeparators()
  2157. if len(v)%2 == 1 {
  2158. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2159. return
  2160. }
  2161. ee.WriteMapStart(len(v) / 2)
  2162. if esep {
  2163. for j, v2 := range v {
  2164. if j%2 == 0 {
  2165. ee.WriteMapElemKey()
  2166. } else {
  2167. ee.WriteMapElemValue()
  2168. }
  2169. ee.EncodeInt(int64(v2))
  2170. }
  2171. } else {
  2172. for _, v2 := range v {
  2173. ee.EncodeInt(int64(v2))
  2174. }
  2175. }
  2176. ee.WriteMapEnd()
  2177. }
  2178. func (e *Encoder) fastpathEncSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  2179. if f.ti.mbs {
  2180. fastpathTV.EncAsMapSliceBoolV(rv2i(rv).([]bool), e)
  2181. } else {
  2182. fastpathTV.EncSliceBoolV(rv2i(rv).([]bool), e)
  2183. }
  2184. }
  2185. func (_ fastpathT) EncSliceBoolV(v []bool, e *Encoder) {
  2186. if v == nil {
  2187. e.e.EncodeNil()
  2188. return
  2189. }
  2190. ee, esep := e.e, e.hh.hasElemSeparators()
  2191. ee.WriteArrayStart(len(v))
  2192. if esep {
  2193. for _, v2 := range v {
  2194. ee.WriteArrayElem()
  2195. ee.EncodeBool(v2)
  2196. }
  2197. } else {
  2198. for _, v2 := range v {
  2199. ee.EncodeBool(v2)
  2200. }
  2201. }
  2202. ee.WriteArrayEnd()
  2203. }
  2204. func (_ fastpathT) EncAsMapSliceBoolV(v []bool, e *Encoder) {
  2205. ee, esep := e.e, e.hh.hasElemSeparators()
  2206. if len(v)%2 == 1 {
  2207. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2208. return
  2209. }
  2210. ee.WriteMapStart(len(v) / 2)
  2211. if esep {
  2212. for j, v2 := range v {
  2213. if j%2 == 0 {
  2214. ee.WriteMapElemKey()
  2215. } else {
  2216. ee.WriteMapElemValue()
  2217. }
  2218. ee.EncodeBool(v2)
  2219. }
  2220. } else {
  2221. for _, v2 := range v {
  2222. ee.EncodeBool(v2)
  2223. }
  2224. }
  2225. ee.WriteMapEnd()
  2226. }
  2227. func (e *Encoder) fastpathEncMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  2228. fastpathTV.EncMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), e)
  2229. }
  2230. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, e *Encoder) {
  2231. if v == nil {
  2232. e.e.EncodeNil()
  2233. return
  2234. }
  2235. ee, esep := e.e, e.hh.hasElemSeparators()
  2236. ee.WriteMapStart(len(v))
  2237. if e.h.Canonical {
  2238. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2239. e2 := NewEncoderBytes(&mksv, e.hh)
  2240. v2 := make([]bytesI, len(v))
  2241. var i, l int
  2242. var vp *bytesI
  2243. for k2, _ := range v {
  2244. l = len(mksv)
  2245. e2.MustEncode(k2)
  2246. vp = &v2[i]
  2247. vp.v = mksv[l:]
  2248. vp.i = k2
  2249. i++
  2250. }
  2251. sort.Sort(bytesISlice(v2))
  2252. if esep {
  2253. for j := range v2 {
  2254. ee.WriteMapElemKey()
  2255. e.asis(v2[j].v)
  2256. ee.WriteMapElemValue()
  2257. e.encode(v[v2[j].i])
  2258. }
  2259. } else {
  2260. for j := range v2 {
  2261. e.asis(v2[j].v)
  2262. e.encode(v[v2[j].i])
  2263. }
  2264. }
  2265. } else {
  2266. if esep {
  2267. for k2, v2 := range v {
  2268. ee.WriteMapElemKey()
  2269. e.encode(k2)
  2270. ee.WriteMapElemValue()
  2271. e.encode(v2)
  2272. }
  2273. } else {
  2274. for k2, v2 := range v {
  2275. e.encode(k2)
  2276. e.encode(v2)
  2277. }
  2278. }
  2279. }
  2280. ee.WriteMapEnd()
  2281. }
  2282. func (e *Encoder) fastpathEncMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  2283. fastpathTV.EncMapIntfStringV(rv2i(rv).(map[interface{}]string), e)
  2284. }
  2285. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, e *Encoder) {
  2286. if v == nil {
  2287. e.e.EncodeNil()
  2288. return
  2289. }
  2290. ee, esep := e.e, e.hh.hasElemSeparators()
  2291. ee.WriteMapStart(len(v))
  2292. if e.h.Canonical {
  2293. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2294. e2 := NewEncoderBytes(&mksv, e.hh)
  2295. v2 := make([]bytesI, len(v))
  2296. var i, l int
  2297. var vp *bytesI
  2298. for k2, _ := range v {
  2299. l = len(mksv)
  2300. e2.MustEncode(k2)
  2301. vp = &v2[i]
  2302. vp.v = mksv[l:]
  2303. vp.i = k2
  2304. i++
  2305. }
  2306. sort.Sort(bytesISlice(v2))
  2307. if esep {
  2308. for j := range v2 {
  2309. ee.WriteMapElemKey()
  2310. e.asis(v2[j].v)
  2311. ee.WriteMapElemValue()
  2312. e.encode(v[v2[j].i])
  2313. }
  2314. } else {
  2315. for j := range v2 {
  2316. e.asis(v2[j].v)
  2317. e.encode(v[v2[j].i])
  2318. }
  2319. }
  2320. } else {
  2321. if esep {
  2322. for k2, v2 := range v {
  2323. ee.WriteMapElemKey()
  2324. e.encode(k2)
  2325. ee.WriteMapElemValue()
  2326. ee.EncodeString(cUTF8, v2)
  2327. }
  2328. } else {
  2329. for k2, v2 := range v {
  2330. e.encode(k2)
  2331. ee.EncodeString(cUTF8, v2)
  2332. }
  2333. }
  2334. }
  2335. ee.WriteMapEnd()
  2336. }
  2337. func (e *Encoder) fastpathEncMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  2338. fastpathTV.EncMapIntfUintV(rv2i(rv).(map[interface{}]uint), e)
  2339. }
  2340. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, e *Encoder) {
  2341. if v == nil {
  2342. e.e.EncodeNil()
  2343. return
  2344. }
  2345. ee, esep := e.e, e.hh.hasElemSeparators()
  2346. ee.WriteMapStart(len(v))
  2347. if e.h.Canonical {
  2348. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2349. e2 := NewEncoderBytes(&mksv, e.hh)
  2350. v2 := make([]bytesI, len(v))
  2351. var i, l int
  2352. var vp *bytesI
  2353. for k2, _ := range v {
  2354. l = len(mksv)
  2355. e2.MustEncode(k2)
  2356. vp = &v2[i]
  2357. vp.v = mksv[l:]
  2358. vp.i = k2
  2359. i++
  2360. }
  2361. sort.Sort(bytesISlice(v2))
  2362. if esep {
  2363. for j := range v2 {
  2364. ee.WriteMapElemKey()
  2365. e.asis(v2[j].v)
  2366. ee.WriteMapElemValue()
  2367. e.encode(v[v2[j].i])
  2368. }
  2369. } else {
  2370. for j := range v2 {
  2371. e.asis(v2[j].v)
  2372. e.encode(v[v2[j].i])
  2373. }
  2374. }
  2375. } else {
  2376. if esep {
  2377. for k2, v2 := range v {
  2378. ee.WriteMapElemKey()
  2379. e.encode(k2)
  2380. ee.WriteMapElemValue()
  2381. ee.EncodeUint(uint64(v2))
  2382. }
  2383. } else {
  2384. for k2, v2 := range v {
  2385. e.encode(k2)
  2386. ee.EncodeUint(uint64(v2))
  2387. }
  2388. }
  2389. }
  2390. ee.WriteMapEnd()
  2391. }
  2392. func (e *Encoder) fastpathEncMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  2393. fastpathTV.EncMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), e)
  2394. }
  2395. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, e *Encoder) {
  2396. if v == nil {
  2397. e.e.EncodeNil()
  2398. return
  2399. }
  2400. ee, esep := e.e, e.hh.hasElemSeparators()
  2401. ee.WriteMapStart(len(v))
  2402. if e.h.Canonical {
  2403. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2404. e2 := NewEncoderBytes(&mksv, e.hh)
  2405. v2 := make([]bytesI, len(v))
  2406. var i, l int
  2407. var vp *bytesI
  2408. for k2, _ := range v {
  2409. l = len(mksv)
  2410. e2.MustEncode(k2)
  2411. vp = &v2[i]
  2412. vp.v = mksv[l:]
  2413. vp.i = k2
  2414. i++
  2415. }
  2416. sort.Sort(bytesISlice(v2))
  2417. if esep {
  2418. for j := range v2 {
  2419. ee.WriteMapElemKey()
  2420. e.asis(v2[j].v)
  2421. ee.WriteMapElemValue()
  2422. e.encode(v[v2[j].i])
  2423. }
  2424. } else {
  2425. for j := range v2 {
  2426. e.asis(v2[j].v)
  2427. e.encode(v[v2[j].i])
  2428. }
  2429. }
  2430. } else {
  2431. if esep {
  2432. for k2, v2 := range v {
  2433. ee.WriteMapElemKey()
  2434. e.encode(k2)
  2435. ee.WriteMapElemValue()
  2436. ee.EncodeUint(uint64(v2))
  2437. }
  2438. } else {
  2439. for k2, v2 := range v {
  2440. e.encode(k2)
  2441. ee.EncodeUint(uint64(v2))
  2442. }
  2443. }
  2444. }
  2445. ee.WriteMapEnd()
  2446. }
  2447. func (e *Encoder) fastpathEncMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  2448. fastpathTV.EncMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), e)
  2449. }
  2450. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, e *Encoder) {
  2451. if v == nil {
  2452. e.e.EncodeNil()
  2453. return
  2454. }
  2455. ee, esep := e.e, e.hh.hasElemSeparators()
  2456. ee.WriteMapStart(len(v))
  2457. if e.h.Canonical {
  2458. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2459. e2 := NewEncoderBytes(&mksv, e.hh)
  2460. v2 := make([]bytesI, len(v))
  2461. var i, l int
  2462. var vp *bytesI
  2463. for k2, _ := range v {
  2464. l = len(mksv)
  2465. e2.MustEncode(k2)
  2466. vp = &v2[i]
  2467. vp.v = mksv[l:]
  2468. vp.i = k2
  2469. i++
  2470. }
  2471. sort.Sort(bytesISlice(v2))
  2472. if esep {
  2473. for j := range v2 {
  2474. ee.WriteMapElemKey()
  2475. e.asis(v2[j].v)
  2476. ee.WriteMapElemValue()
  2477. e.encode(v[v2[j].i])
  2478. }
  2479. } else {
  2480. for j := range v2 {
  2481. e.asis(v2[j].v)
  2482. e.encode(v[v2[j].i])
  2483. }
  2484. }
  2485. } else {
  2486. if esep {
  2487. for k2, v2 := range v {
  2488. ee.WriteMapElemKey()
  2489. e.encode(k2)
  2490. ee.WriteMapElemValue()
  2491. ee.EncodeUint(uint64(v2))
  2492. }
  2493. } else {
  2494. for k2, v2 := range v {
  2495. e.encode(k2)
  2496. ee.EncodeUint(uint64(v2))
  2497. }
  2498. }
  2499. }
  2500. ee.WriteMapEnd()
  2501. }
  2502. func (e *Encoder) fastpathEncMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  2503. fastpathTV.EncMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), e)
  2504. }
  2505. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, e *Encoder) {
  2506. if v == nil {
  2507. e.e.EncodeNil()
  2508. return
  2509. }
  2510. ee, esep := e.e, e.hh.hasElemSeparators()
  2511. ee.WriteMapStart(len(v))
  2512. if e.h.Canonical {
  2513. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2514. e2 := NewEncoderBytes(&mksv, e.hh)
  2515. v2 := make([]bytesI, len(v))
  2516. var i, l int
  2517. var vp *bytesI
  2518. for k2, _ := range v {
  2519. l = len(mksv)
  2520. e2.MustEncode(k2)
  2521. vp = &v2[i]
  2522. vp.v = mksv[l:]
  2523. vp.i = k2
  2524. i++
  2525. }
  2526. sort.Sort(bytesISlice(v2))
  2527. if esep {
  2528. for j := range v2 {
  2529. ee.WriteMapElemKey()
  2530. e.asis(v2[j].v)
  2531. ee.WriteMapElemValue()
  2532. e.encode(v[v2[j].i])
  2533. }
  2534. } else {
  2535. for j := range v2 {
  2536. e.asis(v2[j].v)
  2537. e.encode(v[v2[j].i])
  2538. }
  2539. }
  2540. } else {
  2541. if esep {
  2542. for k2, v2 := range v {
  2543. ee.WriteMapElemKey()
  2544. e.encode(k2)
  2545. ee.WriteMapElemValue()
  2546. ee.EncodeUint(uint64(v2))
  2547. }
  2548. } else {
  2549. for k2, v2 := range v {
  2550. e.encode(k2)
  2551. ee.EncodeUint(uint64(v2))
  2552. }
  2553. }
  2554. }
  2555. ee.WriteMapEnd()
  2556. }
  2557. func (e *Encoder) fastpathEncMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  2558. fastpathTV.EncMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), e)
  2559. }
  2560. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, e *Encoder) {
  2561. if v == nil {
  2562. e.e.EncodeNil()
  2563. return
  2564. }
  2565. ee, esep := e.e, e.hh.hasElemSeparators()
  2566. ee.WriteMapStart(len(v))
  2567. if e.h.Canonical {
  2568. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2569. e2 := NewEncoderBytes(&mksv, e.hh)
  2570. v2 := make([]bytesI, len(v))
  2571. var i, l int
  2572. var vp *bytesI
  2573. for k2, _ := range v {
  2574. l = len(mksv)
  2575. e2.MustEncode(k2)
  2576. vp = &v2[i]
  2577. vp.v = mksv[l:]
  2578. vp.i = k2
  2579. i++
  2580. }
  2581. sort.Sort(bytesISlice(v2))
  2582. if esep {
  2583. for j := range v2 {
  2584. ee.WriteMapElemKey()
  2585. e.asis(v2[j].v)
  2586. ee.WriteMapElemValue()
  2587. e.encode(v[v2[j].i])
  2588. }
  2589. } else {
  2590. for j := range v2 {
  2591. e.asis(v2[j].v)
  2592. e.encode(v[v2[j].i])
  2593. }
  2594. }
  2595. } else {
  2596. if esep {
  2597. for k2, v2 := range v {
  2598. ee.WriteMapElemKey()
  2599. e.encode(k2)
  2600. ee.WriteMapElemValue()
  2601. ee.EncodeUint(uint64(v2))
  2602. }
  2603. } else {
  2604. for k2, v2 := range v {
  2605. e.encode(k2)
  2606. ee.EncodeUint(uint64(v2))
  2607. }
  2608. }
  2609. }
  2610. ee.WriteMapEnd()
  2611. }
  2612. func (e *Encoder) fastpathEncMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  2613. fastpathTV.EncMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), e)
  2614. }
  2615. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, e *Encoder) {
  2616. if v == nil {
  2617. e.e.EncodeNil()
  2618. return
  2619. }
  2620. ee, esep := e.e, e.hh.hasElemSeparators()
  2621. ee.WriteMapStart(len(v))
  2622. if e.h.Canonical {
  2623. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2624. e2 := NewEncoderBytes(&mksv, e.hh)
  2625. v2 := make([]bytesI, len(v))
  2626. var i, l int
  2627. var vp *bytesI
  2628. for k2, _ := range v {
  2629. l = len(mksv)
  2630. e2.MustEncode(k2)
  2631. vp = &v2[i]
  2632. vp.v = mksv[l:]
  2633. vp.i = k2
  2634. i++
  2635. }
  2636. sort.Sort(bytesISlice(v2))
  2637. if esep {
  2638. for j := range v2 {
  2639. ee.WriteMapElemKey()
  2640. e.asis(v2[j].v)
  2641. ee.WriteMapElemValue()
  2642. e.encode(v[v2[j].i])
  2643. }
  2644. } else {
  2645. for j := range v2 {
  2646. e.asis(v2[j].v)
  2647. e.encode(v[v2[j].i])
  2648. }
  2649. }
  2650. } else {
  2651. if esep {
  2652. for k2, v2 := range v {
  2653. ee.WriteMapElemKey()
  2654. e.encode(k2)
  2655. ee.WriteMapElemValue()
  2656. e.encode(v2)
  2657. }
  2658. } else {
  2659. for k2, v2 := range v {
  2660. e.encode(k2)
  2661. e.encode(v2)
  2662. }
  2663. }
  2664. }
  2665. ee.WriteMapEnd()
  2666. }
  2667. func (e *Encoder) fastpathEncMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  2668. fastpathTV.EncMapIntfIntV(rv2i(rv).(map[interface{}]int), e)
  2669. }
  2670. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, e *Encoder) {
  2671. if v == nil {
  2672. e.e.EncodeNil()
  2673. return
  2674. }
  2675. ee, esep := e.e, e.hh.hasElemSeparators()
  2676. ee.WriteMapStart(len(v))
  2677. if e.h.Canonical {
  2678. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2679. e2 := NewEncoderBytes(&mksv, e.hh)
  2680. v2 := make([]bytesI, len(v))
  2681. var i, l int
  2682. var vp *bytesI
  2683. for k2, _ := range v {
  2684. l = len(mksv)
  2685. e2.MustEncode(k2)
  2686. vp = &v2[i]
  2687. vp.v = mksv[l:]
  2688. vp.i = k2
  2689. i++
  2690. }
  2691. sort.Sort(bytesISlice(v2))
  2692. if esep {
  2693. for j := range v2 {
  2694. ee.WriteMapElemKey()
  2695. e.asis(v2[j].v)
  2696. ee.WriteMapElemValue()
  2697. e.encode(v[v2[j].i])
  2698. }
  2699. } else {
  2700. for j := range v2 {
  2701. e.asis(v2[j].v)
  2702. e.encode(v[v2[j].i])
  2703. }
  2704. }
  2705. } else {
  2706. if esep {
  2707. for k2, v2 := range v {
  2708. ee.WriteMapElemKey()
  2709. e.encode(k2)
  2710. ee.WriteMapElemValue()
  2711. ee.EncodeInt(int64(v2))
  2712. }
  2713. } else {
  2714. for k2, v2 := range v {
  2715. e.encode(k2)
  2716. ee.EncodeInt(int64(v2))
  2717. }
  2718. }
  2719. }
  2720. ee.WriteMapEnd()
  2721. }
  2722. func (e *Encoder) fastpathEncMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  2723. fastpathTV.EncMapIntfInt8V(rv2i(rv).(map[interface{}]int8), e)
  2724. }
  2725. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, e *Encoder) {
  2726. if v == nil {
  2727. e.e.EncodeNil()
  2728. return
  2729. }
  2730. ee, esep := e.e, e.hh.hasElemSeparators()
  2731. ee.WriteMapStart(len(v))
  2732. if e.h.Canonical {
  2733. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2734. e2 := NewEncoderBytes(&mksv, e.hh)
  2735. v2 := make([]bytesI, len(v))
  2736. var i, l int
  2737. var vp *bytesI
  2738. for k2, _ := range v {
  2739. l = len(mksv)
  2740. e2.MustEncode(k2)
  2741. vp = &v2[i]
  2742. vp.v = mksv[l:]
  2743. vp.i = k2
  2744. i++
  2745. }
  2746. sort.Sort(bytesISlice(v2))
  2747. if esep {
  2748. for j := range v2 {
  2749. ee.WriteMapElemKey()
  2750. e.asis(v2[j].v)
  2751. ee.WriteMapElemValue()
  2752. e.encode(v[v2[j].i])
  2753. }
  2754. } else {
  2755. for j := range v2 {
  2756. e.asis(v2[j].v)
  2757. e.encode(v[v2[j].i])
  2758. }
  2759. }
  2760. } else {
  2761. if esep {
  2762. for k2, v2 := range v {
  2763. ee.WriteMapElemKey()
  2764. e.encode(k2)
  2765. ee.WriteMapElemValue()
  2766. ee.EncodeInt(int64(v2))
  2767. }
  2768. } else {
  2769. for k2, v2 := range v {
  2770. e.encode(k2)
  2771. ee.EncodeInt(int64(v2))
  2772. }
  2773. }
  2774. }
  2775. ee.WriteMapEnd()
  2776. }
  2777. func (e *Encoder) fastpathEncMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  2778. fastpathTV.EncMapIntfInt16V(rv2i(rv).(map[interface{}]int16), e)
  2779. }
  2780. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, e *Encoder) {
  2781. if v == nil {
  2782. e.e.EncodeNil()
  2783. return
  2784. }
  2785. ee, esep := e.e, e.hh.hasElemSeparators()
  2786. ee.WriteMapStart(len(v))
  2787. if e.h.Canonical {
  2788. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2789. e2 := NewEncoderBytes(&mksv, e.hh)
  2790. v2 := make([]bytesI, len(v))
  2791. var i, l int
  2792. var vp *bytesI
  2793. for k2, _ := range v {
  2794. l = len(mksv)
  2795. e2.MustEncode(k2)
  2796. vp = &v2[i]
  2797. vp.v = mksv[l:]
  2798. vp.i = k2
  2799. i++
  2800. }
  2801. sort.Sort(bytesISlice(v2))
  2802. if esep {
  2803. for j := range v2 {
  2804. ee.WriteMapElemKey()
  2805. e.asis(v2[j].v)
  2806. ee.WriteMapElemValue()
  2807. e.encode(v[v2[j].i])
  2808. }
  2809. } else {
  2810. for j := range v2 {
  2811. e.asis(v2[j].v)
  2812. e.encode(v[v2[j].i])
  2813. }
  2814. }
  2815. } else {
  2816. if esep {
  2817. for k2, v2 := range v {
  2818. ee.WriteMapElemKey()
  2819. e.encode(k2)
  2820. ee.WriteMapElemValue()
  2821. ee.EncodeInt(int64(v2))
  2822. }
  2823. } else {
  2824. for k2, v2 := range v {
  2825. e.encode(k2)
  2826. ee.EncodeInt(int64(v2))
  2827. }
  2828. }
  2829. }
  2830. ee.WriteMapEnd()
  2831. }
  2832. func (e *Encoder) fastpathEncMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  2833. fastpathTV.EncMapIntfInt32V(rv2i(rv).(map[interface{}]int32), e)
  2834. }
  2835. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, e *Encoder) {
  2836. if v == nil {
  2837. e.e.EncodeNil()
  2838. return
  2839. }
  2840. ee, esep := e.e, e.hh.hasElemSeparators()
  2841. ee.WriteMapStart(len(v))
  2842. if e.h.Canonical {
  2843. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2844. e2 := NewEncoderBytes(&mksv, e.hh)
  2845. v2 := make([]bytesI, len(v))
  2846. var i, l int
  2847. var vp *bytesI
  2848. for k2, _ := range v {
  2849. l = len(mksv)
  2850. e2.MustEncode(k2)
  2851. vp = &v2[i]
  2852. vp.v = mksv[l:]
  2853. vp.i = k2
  2854. i++
  2855. }
  2856. sort.Sort(bytesISlice(v2))
  2857. if esep {
  2858. for j := range v2 {
  2859. ee.WriteMapElemKey()
  2860. e.asis(v2[j].v)
  2861. ee.WriteMapElemValue()
  2862. e.encode(v[v2[j].i])
  2863. }
  2864. } else {
  2865. for j := range v2 {
  2866. e.asis(v2[j].v)
  2867. e.encode(v[v2[j].i])
  2868. }
  2869. }
  2870. } else {
  2871. if esep {
  2872. for k2, v2 := range v {
  2873. ee.WriteMapElemKey()
  2874. e.encode(k2)
  2875. ee.WriteMapElemValue()
  2876. ee.EncodeInt(int64(v2))
  2877. }
  2878. } else {
  2879. for k2, v2 := range v {
  2880. e.encode(k2)
  2881. ee.EncodeInt(int64(v2))
  2882. }
  2883. }
  2884. }
  2885. ee.WriteMapEnd()
  2886. }
  2887. func (e *Encoder) fastpathEncMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  2888. fastpathTV.EncMapIntfInt64V(rv2i(rv).(map[interface{}]int64), e)
  2889. }
  2890. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, e *Encoder) {
  2891. if v == nil {
  2892. e.e.EncodeNil()
  2893. return
  2894. }
  2895. ee, esep := e.e, e.hh.hasElemSeparators()
  2896. ee.WriteMapStart(len(v))
  2897. if e.h.Canonical {
  2898. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2899. e2 := NewEncoderBytes(&mksv, e.hh)
  2900. v2 := make([]bytesI, len(v))
  2901. var i, l int
  2902. var vp *bytesI
  2903. for k2, _ := range v {
  2904. l = len(mksv)
  2905. e2.MustEncode(k2)
  2906. vp = &v2[i]
  2907. vp.v = mksv[l:]
  2908. vp.i = k2
  2909. i++
  2910. }
  2911. sort.Sort(bytesISlice(v2))
  2912. if esep {
  2913. for j := range v2 {
  2914. ee.WriteMapElemKey()
  2915. e.asis(v2[j].v)
  2916. ee.WriteMapElemValue()
  2917. e.encode(v[v2[j].i])
  2918. }
  2919. } else {
  2920. for j := range v2 {
  2921. e.asis(v2[j].v)
  2922. e.encode(v[v2[j].i])
  2923. }
  2924. }
  2925. } else {
  2926. if esep {
  2927. for k2, v2 := range v {
  2928. ee.WriteMapElemKey()
  2929. e.encode(k2)
  2930. ee.WriteMapElemValue()
  2931. ee.EncodeInt(int64(v2))
  2932. }
  2933. } else {
  2934. for k2, v2 := range v {
  2935. e.encode(k2)
  2936. ee.EncodeInt(int64(v2))
  2937. }
  2938. }
  2939. }
  2940. ee.WriteMapEnd()
  2941. }
  2942. func (e *Encoder) fastpathEncMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  2943. fastpathTV.EncMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), e)
  2944. }
  2945. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, e *Encoder) {
  2946. if v == nil {
  2947. e.e.EncodeNil()
  2948. return
  2949. }
  2950. ee, esep := e.e, e.hh.hasElemSeparators()
  2951. ee.WriteMapStart(len(v))
  2952. if e.h.Canonical {
  2953. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2954. e2 := NewEncoderBytes(&mksv, e.hh)
  2955. v2 := make([]bytesI, len(v))
  2956. var i, l int
  2957. var vp *bytesI
  2958. for k2, _ := range v {
  2959. l = len(mksv)
  2960. e2.MustEncode(k2)
  2961. vp = &v2[i]
  2962. vp.v = mksv[l:]
  2963. vp.i = k2
  2964. i++
  2965. }
  2966. sort.Sort(bytesISlice(v2))
  2967. if esep {
  2968. for j := range v2 {
  2969. ee.WriteMapElemKey()
  2970. e.asis(v2[j].v)
  2971. ee.WriteMapElemValue()
  2972. e.encode(v[v2[j].i])
  2973. }
  2974. } else {
  2975. for j := range v2 {
  2976. e.asis(v2[j].v)
  2977. e.encode(v[v2[j].i])
  2978. }
  2979. }
  2980. } else {
  2981. if esep {
  2982. for k2, v2 := range v {
  2983. ee.WriteMapElemKey()
  2984. e.encode(k2)
  2985. ee.WriteMapElemValue()
  2986. ee.EncodeFloat32(v2)
  2987. }
  2988. } else {
  2989. for k2, v2 := range v {
  2990. e.encode(k2)
  2991. ee.EncodeFloat32(v2)
  2992. }
  2993. }
  2994. }
  2995. ee.WriteMapEnd()
  2996. }
  2997. func (e *Encoder) fastpathEncMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  2998. fastpathTV.EncMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), e)
  2999. }
  3000. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, e *Encoder) {
  3001. if v == nil {
  3002. e.e.EncodeNil()
  3003. return
  3004. }
  3005. ee, esep := e.e, e.hh.hasElemSeparators()
  3006. ee.WriteMapStart(len(v))
  3007. if e.h.Canonical {
  3008. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3009. e2 := NewEncoderBytes(&mksv, e.hh)
  3010. v2 := make([]bytesI, len(v))
  3011. var i, l int
  3012. var vp *bytesI
  3013. for k2, _ := range v {
  3014. l = len(mksv)
  3015. e2.MustEncode(k2)
  3016. vp = &v2[i]
  3017. vp.v = mksv[l:]
  3018. vp.i = k2
  3019. i++
  3020. }
  3021. sort.Sort(bytesISlice(v2))
  3022. if esep {
  3023. for j := range v2 {
  3024. ee.WriteMapElemKey()
  3025. e.asis(v2[j].v)
  3026. ee.WriteMapElemValue()
  3027. e.encode(v[v2[j].i])
  3028. }
  3029. } else {
  3030. for j := range v2 {
  3031. e.asis(v2[j].v)
  3032. e.encode(v[v2[j].i])
  3033. }
  3034. }
  3035. } else {
  3036. if esep {
  3037. for k2, v2 := range v {
  3038. ee.WriteMapElemKey()
  3039. e.encode(k2)
  3040. ee.WriteMapElemValue()
  3041. ee.EncodeFloat64(v2)
  3042. }
  3043. } else {
  3044. for k2, v2 := range v {
  3045. e.encode(k2)
  3046. ee.EncodeFloat64(v2)
  3047. }
  3048. }
  3049. }
  3050. ee.WriteMapEnd()
  3051. }
  3052. func (e *Encoder) fastpathEncMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  3053. fastpathTV.EncMapIntfBoolV(rv2i(rv).(map[interface{}]bool), e)
  3054. }
  3055. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, e *Encoder) {
  3056. if v == nil {
  3057. e.e.EncodeNil()
  3058. return
  3059. }
  3060. ee, esep := e.e, e.hh.hasElemSeparators()
  3061. ee.WriteMapStart(len(v))
  3062. if e.h.Canonical {
  3063. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3064. e2 := NewEncoderBytes(&mksv, e.hh)
  3065. v2 := make([]bytesI, len(v))
  3066. var i, l int
  3067. var vp *bytesI
  3068. for k2, _ := range v {
  3069. l = len(mksv)
  3070. e2.MustEncode(k2)
  3071. vp = &v2[i]
  3072. vp.v = mksv[l:]
  3073. vp.i = k2
  3074. i++
  3075. }
  3076. sort.Sort(bytesISlice(v2))
  3077. if esep {
  3078. for j := range v2 {
  3079. ee.WriteMapElemKey()
  3080. e.asis(v2[j].v)
  3081. ee.WriteMapElemValue()
  3082. e.encode(v[v2[j].i])
  3083. }
  3084. } else {
  3085. for j := range v2 {
  3086. e.asis(v2[j].v)
  3087. e.encode(v[v2[j].i])
  3088. }
  3089. }
  3090. } else {
  3091. if esep {
  3092. for k2, v2 := range v {
  3093. ee.WriteMapElemKey()
  3094. e.encode(k2)
  3095. ee.WriteMapElemValue()
  3096. ee.EncodeBool(v2)
  3097. }
  3098. } else {
  3099. for k2, v2 := range v {
  3100. e.encode(k2)
  3101. ee.EncodeBool(v2)
  3102. }
  3103. }
  3104. }
  3105. ee.WriteMapEnd()
  3106. }
  3107. func (e *Encoder) fastpathEncMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  3108. fastpathTV.EncMapStringIntfV(rv2i(rv).(map[string]interface{}), e)
  3109. }
  3110. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, e *Encoder) {
  3111. if v == nil {
  3112. e.e.EncodeNil()
  3113. return
  3114. }
  3115. ee, esep := e.e, e.hh.hasElemSeparators()
  3116. ee.WriteMapStart(len(v))
  3117. if e.h.Canonical {
  3118. v2 := make([]string, len(v))
  3119. var i int
  3120. for k, _ := range v {
  3121. v2[i] = string(k)
  3122. i++
  3123. }
  3124. sort.Sort(stringSlice(v2))
  3125. if esep {
  3126. for _, k2 := range v2 {
  3127. ee.WriteMapElemKey()
  3128. ee.EncodeString(cUTF8, k2)
  3129. ee.WriteMapElemValue()
  3130. e.encode(v[string(k2)])
  3131. }
  3132. } else {
  3133. for _, k2 := range v2 {
  3134. ee.EncodeString(cUTF8, k2)
  3135. e.encode(v[string(k2)])
  3136. }
  3137. }
  3138. } else {
  3139. if esep {
  3140. for k2, v2 := range v {
  3141. ee.WriteMapElemKey()
  3142. ee.EncodeString(cUTF8, k2)
  3143. ee.WriteMapElemValue()
  3144. e.encode(v2)
  3145. }
  3146. } else {
  3147. for k2, v2 := range v {
  3148. ee.EncodeString(cUTF8, k2)
  3149. e.encode(v2)
  3150. }
  3151. }
  3152. }
  3153. ee.WriteMapEnd()
  3154. }
  3155. func (e *Encoder) fastpathEncMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  3156. fastpathTV.EncMapStringStringV(rv2i(rv).(map[string]string), e)
  3157. }
  3158. func (_ fastpathT) EncMapStringStringV(v map[string]string, e *Encoder) {
  3159. if v == nil {
  3160. e.e.EncodeNil()
  3161. return
  3162. }
  3163. ee, esep := e.e, e.hh.hasElemSeparators()
  3164. ee.WriteMapStart(len(v))
  3165. if e.h.Canonical {
  3166. v2 := make([]string, len(v))
  3167. var i int
  3168. for k, _ := range v {
  3169. v2[i] = string(k)
  3170. i++
  3171. }
  3172. sort.Sort(stringSlice(v2))
  3173. if esep {
  3174. for _, k2 := range v2 {
  3175. ee.WriteMapElemKey()
  3176. ee.EncodeString(cUTF8, k2)
  3177. ee.WriteMapElemValue()
  3178. ee.EncodeString(cUTF8, v[string(k2)])
  3179. }
  3180. } else {
  3181. for _, k2 := range v2 {
  3182. ee.EncodeString(cUTF8, k2)
  3183. ee.EncodeString(cUTF8, v[string(k2)])
  3184. }
  3185. }
  3186. } else {
  3187. if esep {
  3188. for k2, v2 := range v {
  3189. ee.WriteMapElemKey()
  3190. ee.EncodeString(cUTF8, k2)
  3191. ee.WriteMapElemValue()
  3192. ee.EncodeString(cUTF8, v2)
  3193. }
  3194. } else {
  3195. for k2, v2 := range v {
  3196. ee.EncodeString(cUTF8, k2)
  3197. ee.EncodeString(cUTF8, v2)
  3198. }
  3199. }
  3200. }
  3201. ee.WriteMapEnd()
  3202. }
  3203. func (e *Encoder) fastpathEncMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  3204. fastpathTV.EncMapStringUintV(rv2i(rv).(map[string]uint), e)
  3205. }
  3206. func (_ fastpathT) EncMapStringUintV(v map[string]uint, e *Encoder) {
  3207. if v == nil {
  3208. e.e.EncodeNil()
  3209. return
  3210. }
  3211. ee, esep := e.e, e.hh.hasElemSeparators()
  3212. ee.WriteMapStart(len(v))
  3213. if e.h.Canonical {
  3214. v2 := make([]string, len(v))
  3215. var i int
  3216. for k, _ := range v {
  3217. v2[i] = string(k)
  3218. i++
  3219. }
  3220. sort.Sort(stringSlice(v2))
  3221. if esep {
  3222. for _, k2 := range v2 {
  3223. ee.WriteMapElemKey()
  3224. ee.EncodeString(cUTF8, k2)
  3225. ee.WriteMapElemValue()
  3226. ee.EncodeUint(uint64(v[string(k2)]))
  3227. }
  3228. } else {
  3229. for _, k2 := range v2 {
  3230. ee.EncodeString(cUTF8, k2)
  3231. ee.EncodeUint(uint64(v[string(k2)]))
  3232. }
  3233. }
  3234. } else {
  3235. if esep {
  3236. for k2, v2 := range v {
  3237. ee.WriteMapElemKey()
  3238. ee.EncodeString(cUTF8, k2)
  3239. ee.WriteMapElemValue()
  3240. ee.EncodeUint(uint64(v2))
  3241. }
  3242. } else {
  3243. for k2, v2 := range v {
  3244. ee.EncodeString(cUTF8, k2)
  3245. ee.EncodeUint(uint64(v2))
  3246. }
  3247. }
  3248. }
  3249. ee.WriteMapEnd()
  3250. }
  3251. func (e *Encoder) fastpathEncMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  3252. fastpathTV.EncMapStringUint8V(rv2i(rv).(map[string]uint8), e)
  3253. }
  3254. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, e *Encoder) {
  3255. if v == nil {
  3256. e.e.EncodeNil()
  3257. return
  3258. }
  3259. ee, esep := e.e, e.hh.hasElemSeparators()
  3260. ee.WriteMapStart(len(v))
  3261. if e.h.Canonical {
  3262. v2 := make([]string, len(v))
  3263. var i int
  3264. for k, _ := range v {
  3265. v2[i] = string(k)
  3266. i++
  3267. }
  3268. sort.Sort(stringSlice(v2))
  3269. if esep {
  3270. for _, k2 := range v2 {
  3271. ee.WriteMapElemKey()
  3272. ee.EncodeString(cUTF8, k2)
  3273. ee.WriteMapElemValue()
  3274. ee.EncodeUint(uint64(v[string(k2)]))
  3275. }
  3276. } else {
  3277. for _, k2 := range v2 {
  3278. ee.EncodeString(cUTF8, k2)
  3279. ee.EncodeUint(uint64(v[string(k2)]))
  3280. }
  3281. }
  3282. } else {
  3283. if esep {
  3284. for k2, v2 := range v {
  3285. ee.WriteMapElemKey()
  3286. ee.EncodeString(cUTF8, k2)
  3287. ee.WriteMapElemValue()
  3288. ee.EncodeUint(uint64(v2))
  3289. }
  3290. } else {
  3291. for k2, v2 := range v {
  3292. ee.EncodeString(cUTF8, k2)
  3293. ee.EncodeUint(uint64(v2))
  3294. }
  3295. }
  3296. }
  3297. ee.WriteMapEnd()
  3298. }
  3299. func (e *Encoder) fastpathEncMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  3300. fastpathTV.EncMapStringUint16V(rv2i(rv).(map[string]uint16), e)
  3301. }
  3302. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, e *Encoder) {
  3303. if v == nil {
  3304. e.e.EncodeNil()
  3305. return
  3306. }
  3307. ee, esep := e.e, e.hh.hasElemSeparators()
  3308. ee.WriteMapStart(len(v))
  3309. if e.h.Canonical {
  3310. v2 := make([]string, len(v))
  3311. var i int
  3312. for k, _ := range v {
  3313. v2[i] = string(k)
  3314. i++
  3315. }
  3316. sort.Sort(stringSlice(v2))
  3317. if esep {
  3318. for _, k2 := range v2 {
  3319. ee.WriteMapElemKey()
  3320. ee.EncodeString(cUTF8, k2)
  3321. ee.WriteMapElemValue()
  3322. ee.EncodeUint(uint64(v[string(k2)]))
  3323. }
  3324. } else {
  3325. for _, k2 := range v2 {
  3326. ee.EncodeString(cUTF8, k2)
  3327. ee.EncodeUint(uint64(v[string(k2)]))
  3328. }
  3329. }
  3330. } else {
  3331. if esep {
  3332. for k2, v2 := range v {
  3333. ee.WriteMapElemKey()
  3334. ee.EncodeString(cUTF8, k2)
  3335. ee.WriteMapElemValue()
  3336. ee.EncodeUint(uint64(v2))
  3337. }
  3338. } else {
  3339. for k2, v2 := range v {
  3340. ee.EncodeString(cUTF8, k2)
  3341. ee.EncodeUint(uint64(v2))
  3342. }
  3343. }
  3344. }
  3345. ee.WriteMapEnd()
  3346. }
  3347. func (e *Encoder) fastpathEncMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  3348. fastpathTV.EncMapStringUint32V(rv2i(rv).(map[string]uint32), e)
  3349. }
  3350. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, e *Encoder) {
  3351. if v == nil {
  3352. e.e.EncodeNil()
  3353. return
  3354. }
  3355. ee, esep := e.e, e.hh.hasElemSeparators()
  3356. ee.WriteMapStart(len(v))
  3357. if e.h.Canonical {
  3358. v2 := make([]string, len(v))
  3359. var i int
  3360. for k, _ := range v {
  3361. v2[i] = string(k)
  3362. i++
  3363. }
  3364. sort.Sort(stringSlice(v2))
  3365. if esep {
  3366. for _, k2 := range v2 {
  3367. ee.WriteMapElemKey()
  3368. ee.EncodeString(cUTF8, k2)
  3369. ee.WriteMapElemValue()
  3370. ee.EncodeUint(uint64(v[string(k2)]))
  3371. }
  3372. } else {
  3373. for _, k2 := range v2 {
  3374. ee.EncodeString(cUTF8, k2)
  3375. ee.EncodeUint(uint64(v[string(k2)]))
  3376. }
  3377. }
  3378. } else {
  3379. if esep {
  3380. for k2, v2 := range v {
  3381. ee.WriteMapElemKey()
  3382. ee.EncodeString(cUTF8, k2)
  3383. ee.WriteMapElemValue()
  3384. ee.EncodeUint(uint64(v2))
  3385. }
  3386. } else {
  3387. for k2, v2 := range v {
  3388. ee.EncodeString(cUTF8, k2)
  3389. ee.EncodeUint(uint64(v2))
  3390. }
  3391. }
  3392. }
  3393. ee.WriteMapEnd()
  3394. }
  3395. func (e *Encoder) fastpathEncMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  3396. fastpathTV.EncMapStringUint64V(rv2i(rv).(map[string]uint64), e)
  3397. }
  3398. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, e *Encoder) {
  3399. if v == nil {
  3400. e.e.EncodeNil()
  3401. return
  3402. }
  3403. ee, esep := e.e, e.hh.hasElemSeparators()
  3404. ee.WriteMapStart(len(v))
  3405. if e.h.Canonical {
  3406. v2 := make([]string, len(v))
  3407. var i int
  3408. for k, _ := range v {
  3409. v2[i] = string(k)
  3410. i++
  3411. }
  3412. sort.Sort(stringSlice(v2))
  3413. if esep {
  3414. for _, k2 := range v2 {
  3415. ee.WriteMapElemKey()
  3416. ee.EncodeString(cUTF8, k2)
  3417. ee.WriteMapElemValue()
  3418. ee.EncodeUint(uint64(v[string(k2)]))
  3419. }
  3420. } else {
  3421. for _, k2 := range v2 {
  3422. ee.EncodeString(cUTF8, k2)
  3423. ee.EncodeUint(uint64(v[string(k2)]))
  3424. }
  3425. }
  3426. } else {
  3427. if esep {
  3428. for k2, v2 := range v {
  3429. ee.WriteMapElemKey()
  3430. ee.EncodeString(cUTF8, k2)
  3431. ee.WriteMapElemValue()
  3432. ee.EncodeUint(uint64(v2))
  3433. }
  3434. } else {
  3435. for k2, v2 := range v {
  3436. ee.EncodeString(cUTF8, k2)
  3437. ee.EncodeUint(uint64(v2))
  3438. }
  3439. }
  3440. }
  3441. ee.WriteMapEnd()
  3442. }
  3443. func (e *Encoder) fastpathEncMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  3444. fastpathTV.EncMapStringUintptrV(rv2i(rv).(map[string]uintptr), e)
  3445. }
  3446. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, e *Encoder) {
  3447. if v == nil {
  3448. e.e.EncodeNil()
  3449. return
  3450. }
  3451. ee, esep := e.e, e.hh.hasElemSeparators()
  3452. ee.WriteMapStart(len(v))
  3453. if e.h.Canonical {
  3454. v2 := make([]string, len(v))
  3455. var i int
  3456. for k, _ := range v {
  3457. v2[i] = string(k)
  3458. i++
  3459. }
  3460. sort.Sort(stringSlice(v2))
  3461. if esep {
  3462. for _, k2 := range v2 {
  3463. ee.WriteMapElemKey()
  3464. ee.EncodeString(cUTF8, k2)
  3465. ee.WriteMapElemValue()
  3466. e.encode(v[string(k2)])
  3467. }
  3468. } else {
  3469. for _, k2 := range v2 {
  3470. ee.EncodeString(cUTF8, k2)
  3471. e.encode(v[string(k2)])
  3472. }
  3473. }
  3474. } else {
  3475. if esep {
  3476. for k2, v2 := range v {
  3477. ee.WriteMapElemKey()
  3478. ee.EncodeString(cUTF8, k2)
  3479. ee.WriteMapElemValue()
  3480. e.encode(v2)
  3481. }
  3482. } else {
  3483. for k2, v2 := range v {
  3484. ee.EncodeString(cUTF8, k2)
  3485. e.encode(v2)
  3486. }
  3487. }
  3488. }
  3489. ee.WriteMapEnd()
  3490. }
  3491. func (e *Encoder) fastpathEncMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  3492. fastpathTV.EncMapStringIntV(rv2i(rv).(map[string]int), e)
  3493. }
  3494. func (_ fastpathT) EncMapStringIntV(v map[string]int, e *Encoder) {
  3495. if v == nil {
  3496. e.e.EncodeNil()
  3497. return
  3498. }
  3499. ee, esep := e.e, e.hh.hasElemSeparators()
  3500. ee.WriteMapStart(len(v))
  3501. if e.h.Canonical {
  3502. v2 := make([]string, len(v))
  3503. var i int
  3504. for k, _ := range v {
  3505. v2[i] = string(k)
  3506. i++
  3507. }
  3508. sort.Sort(stringSlice(v2))
  3509. if esep {
  3510. for _, k2 := range v2 {
  3511. ee.WriteMapElemKey()
  3512. ee.EncodeString(cUTF8, k2)
  3513. ee.WriteMapElemValue()
  3514. ee.EncodeInt(int64(v[string(k2)]))
  3515. }
  3516. } else {
  3517. for _, k2 := range v2 {
  3518. ee.EncodeString(cUTF8, k2)
  3519. ee.EncodeInt(int64(v[string(k2)]))
  3520. }
  3521. }
  3522. } else {
  3523. if esep {
  3524. for k2, v2 := range v {
  3525. ee.WriteMapElemKey()
  3526. ee.EncodeString(cUTF8, k2)
  3527. ee.WriteMapElemValue()
  3528. ee.EncodeInt(int64(v2))
  3529. }
  3530. } else {
  3531. for k2, v2 := range v {
  3532. ee.EncodeString(cUTF8, k2)
  3533. ee.EncodeInt(int64(v2))
  3534. }
  3535. }
  3536. }
  3537. ee.WriteMapEnd()
  3538. }
  3539. func (e *Encoder) fastpathEncMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  3540. fastpathTV.EncMapStringInt8V(rv2i(rv).(map[string]int8), e)
  3541. }
  3542. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, e *Encoder) {
  3543. if v == nil {
  3544. e.e.EncodeNil()
  3545. return
  3546. }
  3547. ee, esep := e.e, e.hh.hasElemSeparators()
  3548. ee.WriteMapStart(len(v))
  3549. if e.h.Canonical {
  3550. v2 := make([]string, len(v))
  3551. var i int
  3552. for k, _ := range v {
  3553. v2[i] = string(k)
  3554. i++
  3555. }
  3556. sort.Sort(stringSlice(v2))
  3557. if esep {
  3558. for _, k2 := range v2 {
  3559. ee.WriteMapElemKey()
  3560. ee.EncodeString(cUTF8, k2)
  3561. ee.WriteMapElemValue()
  3562. ee.EncodeInt(int64(v[string(k2)]))
  3563. }
  3564. } else {
  3565. for _, k2 := range v2 {
  3566. ee.EncodeString(cUTF8, k2)
  3567. ee.EncodeInt(int64(v[string(k2)]))
  3568. }
  3569. }
  3570. } else {
  3571. if esep {
  3572. for k2, v2 := range v {
  3573. ee.WriteMapElemKey()
  3574. ee.EncodeString(cUTF8, k2)
  3575. ee.WriteMapElemValue()
  3576. ee.EncodeInt(int64(v2))
  3577. }
  3578. } else {
  3579. for k2, v2 := range v {
  3580. ee.EncodeString(cUTF8, k2)
  3581. ee.EncodeInt(int64(v2))
  3582. }
  3583. }
  3584. }
  3585. ee.WriteMapEnd()
  3586. }
  3587. func (e *Encoder) fastpathEncMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  3588. fastpathTV.EncMapStringInt16V(rv2i(rv).(map[string]int16), e)
  3589. }
  3590. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, e *Encoder) {
  3591. if v == nil {
  3592. e.e.EncodeNil()
  3593. return
  3594. }
  3595. ee, esep := e.e, e.hh.hasElemSeparators()
  3596. ee.WriteMapStart(len(v))
  3597. if e.h.Canonical {
  3598. v2 := make([]string, len(v))
  3599. var i int
  3600. for k, _ := range v {
  3601. v2[i] = string(k)
  3602. i++
  3603. }
  3604. sort.Sort(stringSlice(v2))
  3605. if esep {
  3606. for _, k2 := range v2 {
  3607. ee.WriteMapElemKey()
  3608. ee.EncodeString(cUTF8, k2)
  3609. ee.WriteMapElemValue()
  3610. ee.EncodeInt(int64(v[string(k2)]))
  3611. }
  3612. } else {
  3613. for _, k2 := range v2 {
  3614. ee.EncodeString(cUTF8, k2)
  3615. ee.EncodeInt(int64(v[string(k2)]))
  3616. }
  3617. }
  3618. } else {
  3619. if esep {
  3620. for k2, v2 := range v {
  3621. ee.WriteMapElemKey()
  3622. ee.EncodeString(cUTF8, k2)
  3623. ee.WriteMapElemValue()
  3624. ee.EncodeInt(int64(v2))
  3625. }
  3626. } else {
  3627. for k2, v2 := range v {
  3628. ee.EncodeString(cUTF8, k2)
  3629. ee.EncodeInt(int64(v2))
  3630. }
  3631. }
  3632. }
  3633. ee.WriteMapEnd()
  3634. }
  3635. func (e *Encoder) fastpathEncMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  3636. fastpathTV.EncMapStringInt32V(rv2i(rv).(map[string]int32), e)
  3637. }
  3638. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, e *Encoder) {
  3639. if v == nil {
  3640. e.e.EncodeNil()
  3641. return
  3642. }
  3643. ee, esep := e.e, e.hh.hasElemSeparators()
  3644. ee.WriteMapStart(len(v))
  3645. if e.h.Canonical {
  3646. v2 := make([]string, len(v))
  3647. var i int
  3648. for k, _ := range v {
  3649. v2[i] = string(k)
  3650. i++
  3651. }
  3652. sort.Sort(stringSlice(v2))
  3653. if esep {
  3654. for _, k2 := range v2 {
  3655. ee.WriteMapElemKey()
  3656. ee.EncodeString(cUTF8, k2)
  3657. ee.WriteMapElemValue()
  3658. ee.EncodeInt(int64(v[string(k2)]))
  3659. }
  3660. } else {
  3661. for _, k2 := range v2 {
  3662. ee.EncodeString(cUTF8, k2)
  3663. ee.EncodeInt(int64(v[string(k2)]))
  3664. }
  3665. }
  3666. } else {
  3667. if esep {
  3668. for k2, v2 := range v {
  3669. ee.WriteMapElemKey()
  3670. ee.EncodeString(cUTF8, k2)
  3671. ee.WriteMapElemValue()
  3672. ee.EncodeInt(int64(v2))
  3673. }
  3674. } else {
  3675. for k2, v2 := range v {
  3676. ee.EncodeString(cUTF8, k2)
  3677. ee.EncodeInt(int64(v2))
  3678. }
  3679. }
  3680. }
  3681. ee.WriteMapEnd()
  3682. }
  3683. func (e *Encoder) fastpathEncMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  3684. fastpathTV.EncMapStringInt64V(rv2i(rv).(map[string]int64), e)
  3685. }
  3686. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, e *Encoder) {
  3687. if v == nil {
  3688. e.e.EncodeNil()
  3689. return
  3690. }
  3691. ee, esep := e.e, e.hh.hasElemSeparators()
  3692. ee.WriteMapStart(len(v))
  3693. if e.h.Canonical {
  3694. v2 := make([]string, len(v))
  3695. var i int
  3696. for k, _ := range v {
  3697. v2[i] = string(k)
  3698. i++
  3699. }
  3700. sort.Sort(stringSlice(v2))
  3701. if esep {
  3702. for _, k2 := range v2 {
  3703. ee.WriteMapElemKey()
  3704. ee.EncodeString(cUTF8, k2)
  3705. ee.WriteMapElemValue()
  3706. ee.EncodeInt(int64(v[string(k2)]))
  3707. }
  3708. } else {
  3709. for _, k2 := range v2 {
  3710. ee.EncodeString(cUTF8, k2)
  3711. ee.EncodeInt(int64(v[string(k2)]))
  3712. }
  3713. }
  3714. } else {
  3715. if esep {
  3716. for k2, v2 := range v {
  3717. ee.WriteMapElemKey()
  3718. ee.EncodeString(cUTF8, k2)
  3719. ee.WriteMapElemValue()
  3720. ee.EncodeInt(int64(v2))
  3721. }
  3722. } else {
  3723. for k2, v2 := range v {
  3724. ee.EncodeString(cUTF8, k2)
  3725. ee.EncodeInt(int64(v2))
  3726. }
  3727. }
  3728. }
  3729. ee.WriteMapEnd()
  3730. }
  3731. func (e *Encoder) fastpathEncMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  3732. fastpathTV.EncMapStringFloat32V(rv2i(rv).(map[string]float32), e)
  3733. }
  3734. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, e *Encoder) {
  3735. if v == nil {
  3736. e.e.EncodeNil()
  3737. return
  3738. }
  3739. ee, esep := e.e, e.hh.hasElemSeparators()
  3740. ee.WriteMapStart(len(v))
  3741. if e.h.Canonical {
  3742. v2 := make([]string, len(v))
  3743. var i int
  3744. for k, _ := range v {
  3745. v2[i] = string(k)
  3746. i++
  3747. }
  3748. sort.Sort(stringSlice(v2))
  3749. if esep {
  3750. for _, k2 := range v2 {
  3751. ee.WriteMapElemKey()
  3752. ee.EncodeString(cUTF8, k2)
  3753. ee.WriteMapElemValue()
  3754. ee.EncodeFloat32(v[string(k2)])
  3755. }
  3756. } else {
  3757. for _, k2 := range v2 {
  3758. ee.EncodeString(cUTF8, k2)
  3759. ee.EncodeFloat32(v[string(k2)])
  3760. }
  3761. }
  3762. } else {
  3763. if esep {
  3764. for k2, v2 := range v {
  3765. ee.WriteMapElemKey()
  3766. ee.EncodeString(cUTF8, k2)
  3767. ee.WriteMapElemValue()
  3768. ee.EncodeFloat32(v2)
  3769. }
  3770. } else {
  3771. for k2, v2 := range v {
  3772. ee.EncodeString(cUTF8, k2)
  3773. ee.EncodeFloat32(v2)
  3774. }
  3775. }
  3776. }
  3777. ee.WriteMapEnd()
  3778. }
  3779. func (e *Encoder) fastpathEncMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  3780. fastpathTV.EncMapStringFloat64V(rv2i(rv).(map[string]float64), e)
  3781. }
  3782. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, e *Encoder) {
  3783. if v == nil {
  3784. e.e.EncodeNil()
  3785. return
  3786. }
  3787. ee, esep := e.e, e.hh.hasElemSeparators()
  3788. ee.WriteMapStart(len(v))
  3789. if e.h.Canonical {
  3790. v2 := make([]string, len(v))
  3791. var i int
  3792. for k, _ := range v {
  3793. v2[i] = string(k)
  3794. i++
  3795. }
  3796. sort.Sort(stringSlice(v2))
  3797. if esep {
  3798. for _, k2 := range v2 {
  3799. ee.WriteMapElemKey()
  3800. ee.EncodeString(cUTF8, k2)
  3801. ee.WriteMapElemValue()
  3802. ee.EncodeFloat64(v[string(k2)])
  3803. }
  3804. } else {
  3805. for _, k2 := range v2 {
  3806. ee.EncodeString(cUTF8, k2)
  3807. ee.EncodeFloat64(v[string(k2)])
  3808. }
  3809. }
  3810. } else {
  3811. if esep {
  3812. for k2, v2 := range v {
  3813. ee.WriteMapElemKey()
  3814. ee.EncodeString(cUTF8, k2)
  3815. ee.WriteMapElemValue()
  3816. ee.EncodeFloat64(v2)
  3817. }
  3818. } else {
  3819. for k2, v2 := range v {
  3820. ee.EncodeString(cUTF8, k2)
  3821. ee.EncodeFloat64(v2)
  3822. }
  3823. }
  3824. }
  3825. ee.WriteMapEnd()
  3826. }
  3827. func (e *Encoder) fastpathEncMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  3828. fastpathTV.EncMapStringBoolV(rv2i(rv).(map[string]bool), e)
  3829. }
  3830. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, e *Encoder) {
  3831. if v == nil {
  3832. e.e.EncodeNil()
  3833. return
  3834. }
  3835. ee, esep := e.e, e.hh.hasElemSeparators()
  3836. ee.WriteMapStart(len(v))
  3837. if e.h.Canonical {
  3838. v2 := make([]string, len(v))
  3839. var i int
  3840. for k, _ := range v {
  3841. v2[i] = string(k)
  3842. i++
  3843. }
  3844. sort.Sort(stringSlice(v2))
  3845. if esep {
  3846. for _, k2 := range v2 {
  3847. ee.WriteMapElemKey()
  3848. ee.EncodeString(cUTF8, k2)
  3849. ee.WriteMapElemValue()
  3850. ee.EncodeBool(v[string(k2)])
  3851. }
  3852. } else {
  3853. for _, k2 := range v2 {
  3854. ee.EncodeString(cUTF8, k2)
  3855. ee.EncodeBool(v[string(k2)])
  3856. }
  3857. }
  3858. } else {
  3859. if esep {
  3860. for k2, v2 := range v {
  3861. ee.WriteMapElemKey()
  3862. ee.EncodeString(cUTF8, k2)
  3863. ee.WriteMapElemValue()
  3864. ee.EncodeBool(v2)
  3865. }
  3866. } else {
  3867. for k2, v2 := range v {
  3868. ee.EncodeString(cUTF8, k2)
  3869. ee.EncodeBool(v2)
  3870. }
  3871. }
  3872. }
  3873. ee.WriteMapEnd()
  3874. }
  3875. func (e *Encoder) fastpathEncMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  3876. fastpathTV.EncMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), e)
  3877. }
  3878. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, e *Encoder) {
  3879. if v == nil {
  3880. e.e.EncodeNil()
  3881. return
  3882. }
  3883. ee, esep := e.e, e.hh.hasElemSeparators()
  3884. ee.WriteMapStart(len(v))
  3885. if e.h.Canonical {
  3886. v2 := make([]float64, len(v))
  3887. var i int
  3888. for k, _ := range v {
  3889. v2[i] = float64(k)
  3890. i++
  3891. }
  3892. sort.Sort(floatSlice(v2))
  3893. if esep {
  3894. for _, k2 := range v2 {
  3895. ee.WriteMapElemKey()
  3896. ee.EncodeFloat32(float32(k2))
  3897. ee.WriteMapElemValue()
  3898. e.encode(v[float32(k2)])
  3899. }
  3900. } else {
  3901. for _, k2 := range v2 {
  3902. ee.EncodeFloat32(float32(k2))
  3903. e.encode(v[float32(k2)])
  3904. }
  3905. }
  3906. } else {
  3907. if esep {
  3908. for k2, v2 := range v {
  3909. ee.WriteMapElemKey()
  3910. ee.EncodeFloat32(k2)
  3911. ee.WriteMapElemValue()
  3912. e.encode(v2)
  3913. }
  3914. } else {
  3915. for k2, v2 := range v {
  3916. ee.EncodeFloat32(k2)
  3917. e.encode(v2)
  3918. }
  3919. }
  3920. }
  3921. ee.WriteMapEnd()
  3922. }
  3923. func (e *Encoder) fastpathEncMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  3924. fastpathTV.EncMapFloat32StringV(rv2i(rv).(map[float32]string), e)
  3925. }
  3926. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, e *Encoder) {
  3927. if v == nil {
  3928. e.e.EncodeNil()
  3929. return
  3930. }
  3931. ee, esep := e.e, e.hh.hasElemSeparators()
  3932. ee.WriteMapStart(len(v))
  3933. if e.h.Canonical {
  3934. v2 := make([]float64, len(v))
  3935. var i int
  3936. for k, _ := range v {
  3937. v2[i] = float64(k)
  3938. i++
  3939. }
  3940. sort.Sort(floatSlice(v2))
  3941. if esep {
  3942. for _, k2 := range v2 {
  3943. ee.WriteMapElemKey()
  3944. ee.EncodeFloat32(float32(k2))
  3945. ee.WriteMapElemValue()
  3946. ee.EncodeString(cUTF8, v[float32(k2)])
  3947. }
  3948. } else {
  3949. for _, k2 := range v2 {
  3950. ee.EncodeFloat32(float32(k2))
  3951. ee.EncodeString(cUTF8, v[float32(k2)])
  3952. }
  3953. }
  3954. } else {
  3955. if esep {
  3956. for k2, v2 := range v {
  3957. ee.WriteMapElemKey()
  3958. ee.EncodeFloat32(k2)
  3959. ee.WriteMapElemValue()
  3960. ee.EncodeString(cUTF8, v2)
  3961. }
  3962. } else {
  3963. for k2, v2 := range v {
  3964. ee.EncodeFloat32(k2)
  3965. ee.EncodeString(cUTF8, v2)
  3966. }
  3967. }
  3968. }
  3969. ee.WriteMapEnd()
  3970. }
  3971. func (e *Encoder) fastpathEncMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  3972. fastpathTV.EncMapFloat32UintV(rv2i(rv).(map[float32]uint), e)
  3973. }
  3974. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, e *Encoder) {
  3975. if v == nil {
  3976. e.e.EncodeNil()
  3977. return
  3978. }
  3979. ee, esep := e.e, e.hh.hasElemSeparators()
  3980. ee.WriteMapStart(len(v))
  3981. if e.h.Canonical {
  3982. v2 := make([]float64, len(v))
  3983. var i int
  3984. for k, _ := range v {
  3985. v2[i] = float64(k)
  3986. i++
  3987. }
  3988. sort.Sort(floatSlice(v2))
  3989. if esep {
  3990. for _, k2 := range v2 {
  3991. ee.WriteMapElemKey()
  3992. ee.EncodeFloat32(float32(k2))
  3993. ee.WriteMapElemValue()
  3994. ee.EncodeUint(uint64(v[float32(k2)]))
  3995. }
  3996. } else {
  3997. for _, k2 := range v2 {
  3998. ee.EncodeFloat32(float32(k2))
  3999. ee.EncodeUint(uint64(v[float32(k2)]))
  4000. }
  4001. }
  4002. } else {
  4003. if esep {
  4004. for k2, v2 := range v {
  4005. ee.WriteMapElemKey()
  4006. ee.EncodeFloat32(k2)
  4007. ee.WriteMapElemValue()
  4008. ee.EncodeUint(uint64(v2))
  4009. }
  4010. } else {
  4011. for k2, v2 := range v {
  4012. ee.EncodeFloat32(k2)
  4013. ee.EncodeUint(uint64(v2))
  4014. }
  4015. }
  4016. }
  4017. ee.WriteMapEnd()
  4018. }
  4019. func (e *Encoder) fastpathEncMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  4020. fastpathTV.EncMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), e)
  4021. }
  4022. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, e *Encoder) {
  4023. if v == nil {
  4024. e.e.EncodeNil()
  4025. return
  4026. }
  4027. ee, esep := e.e, e.hh.hasElemSeparators()
  4028. ee.WriteMapStart(len(v))
  4029. if e.h.Canonical {
  4030. v2 := make([]float64, len(v))
  4031. var i int
  4032. for k, _ := range v {
  4033. v2[i] = float64(k)
  4034. i++
  4035. }
  4036. sort.Sort(floatSlice(v2))
  4037. if esep {
  4038. for _, k2 := range v2 {
  4039. ee.WriteMapElemKey()
  4040. ee.EncodeFloat32(float32(k2))
  4041. ee.WriteMapElemValue()
  4042. ee.EncodeUint(uint64(v[float32(k2)]))
  4043. }
  4044. } else {
  4045. for _, k2 := range v2 {
  4046. ee.EncodeFloat32(float32(k2))
  4047. ee.EncodeUint(uint64(v[float32(k2)]))
  4048. }
  4049. }
  4050. } else {
  4051. if esep {
  4052. for k2, v2 := range v {
  4053. ee.WriteMapElemKey()
  4054. ee.EncodeFloat32(k2)
  4055. ee.WriteMapElemValue()
  4056. ee.EncodeUint(uint64(v2))
  4057. }
  4058. } else {
  4059. for k2, v2 := range v {
  4060. ee.EncodeFloat32(k2)
  4061. ee.EncodeUint(uint64(v2))
  4062. }
  4063. }
  4064. }
  4065. ee.WriteMapEnd()
  4066. }
  4067. func (e *Encoder) fastpathEncMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  4068. fastpathTV.EncMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), e)
  4069. }
  4070. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, e *Encoder) {
  4071. if v == nil {
  4072. e.e.EncodeNil()
  4073. return
  4074. }
  4075. ee, esep := e.e, e.hh.hasElemSeparators()
  4076. ee.WriteMapStart(len(v))
  4077. if e.h.Canonical {
  4078. v2 := make([]float64, len(v))
  4079. var i int
  4080. for k, _ := range v {
  4081. v2[i] = float64(k)
  4082. i++
  4083. }
  4084. sort.Sort(floatSlice(v2))
  4085. if esep {
  4086. for _, k2 := range v2 {
  4087. ee.WriteMapElemKey()
  4088. ee.EncodeFloat32(float32(k2))
  4089. ee.WriteMapElemValue()
  4090. ee.EncodeUint(uint64(v[float32(k2)]))
  4091. }
  4092. } else {
  4093. for _, k2 := range v2 {
  4094. ee.EncodeFloat32(float32(k2))
  4095. ee.EncodeUint(uint64(v[float32(k2)]))
  4096. }
  4097. }
  4098. } else {
  4099. if esep {
  4100. for k2, v2 := range v {
  4101. ee.WriteMapElemKey()
  4102. ee.EncodeFloat32(k2)
  4103. ee.WriteMapElemValue()
  4104. ee.EncodeUint(uint64(v2))
  4105. }
  4106. } else {
  4107. for k2, v2 := range v {
  4108. ee.EncodeFloat32(k2)
  4109. ee.EncodeUint(uint64(v2))
  4110. }
  4111. }
  4112. }
  4113. ee.WriteMapEnd()
  4114. }
  4115. func (e *Encoder) fastpathEncMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  4116. fastpathTV.EncMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), e)
  4117. }
  4118. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, e *Encoder) {
  4119. if v == nil {
  4120. e.e.EncodeNil()
  4121. return
  4122. }
  4123. ee, esep := e.e, e.hh.hasElemSeparators()
  4124. ee.WriteMapStart(len(v))
  4125. if e.h.Canonical {
  4126. v2 := make([]float64, len(v))
  4127. var i int
  4128. for k, _ := range v {
  4129. v2[i] = float64(k)
  4130. i++
  4131. }
  4132. sort.Sort(floatSlice(v2))
  4133. if esep {
  4134. for _, k2 := range v2 {
  4135. ee.WriteMapElemKey()
  4136. ee.EncodeFloat32(float32(k2))
  4137. ee.WriteMapElemValue()
  4138. ee.EncodeUint(uint64(v[float32(k2)]))
  4139. }
  4140. } else {
  4141. for _, k2 := range v2 {
  4142. ee.EncodeFloat32(float32(k2))
  4143. ee.EncodeUint(uint64(v[float32(k2)]))
  4144. }
  4145. }
  4146. } else {
  4147. if esep {
  4148. for k2, v2 := range v {
  4149. ee.WriteMapElemKey()
  4150. ee.EncodeFloat32(k2)
  4151. ee.WriteMapElemValue()
  4152. ee.EncodeUint(uint64(v2))
  4153. }
  4154. } else {
  4155. for k2, v2 := range v {
  4156. ee.EncodeFloat32(k2)
  4157. ee.EncodeUint(uint64(v2))
  4158. }
  4159. }
  4160. }
  4161. ee.WriteMapEnd()
  4162. }
  4163. func (e *Encoder) fastpathEncMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  4164. fastpathTV.EncMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), e)
  4165. }
  4166. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, e *Encoder) {
  4167. if v == nil {
  4168. e.e.EncodeNil()
  4169. return
  4170. }
  4171. ee, esep := e.e, e.hh.hasElemSeparators()
  4172. ee.WriteMapStart(len(v))
  4173. if e.h.Canonical {
  4174. v2 := make([]float64, len(v))
  4175. var i int
  4176. for k, _ := range v {
  4177. v2[i] = float64(k)
  4178. i++
  4179. }
  4180. sort.Sort(floatSlice(v2))
  4181. if esep {
  4182. for _, k2 := range v2 {
  4183. ee.WriteMapElemKey()
  4184. ee.EncodeFloat32(float32(k2))
  4185. ee.WriteMapElemValue()
  4186. ee.EncodeUint(uint64(v[float32(k2)]))
  4187. }
  4188. } else {
  4189. for _, k2 := range v2 {
  4190. ee.EncodeFloat32(float32(k2))
  4191. ee.EncodeUint(uint64(v[float32(k2)]))
  4192. }
  4193. }
  4194. } else {
  4195. if esep {
  4196. for k2, v2 := range v {
  4197. ee.WriteMapElemKey()
  4198. ee.EncodeFloat32(k2)
  4199. ee.WriteMapElemValue()
  4200. ee.EncodeUint(uint64(v2))
  4201. }
  4202. } else {
  4203. for k2, v2 := range v {
  4204. ee.EncodeFloat32(k2)
  4205. ee.EncodeUint(uint64(v2))
  4206. }
  4207. }
  4208. }
  4209. ee.WriteMapEnd()
  4210. }
  4211. func (e *Encoder) fastpathEncMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  4212. fastpathTV.EncMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), e)
  4213. }
  4214. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, e *Encoder) {
  4215. if v == nil {
  4216. e.e.EncodeNil()
  4217. return
  4218. }
  4219. ee, esep := e.e, e.hh.hasElemSeparators()
  4220. ee.WriteMapStart(len(v))
  4221. if e.h.Canonical {
  4222. v2 := make([]float64, len(v))
  4223. var i int
  4224. for k, _ := range v {
  4225. v2[i] = float64(k)
  4226. i++
  4227. }
  4228. sort.Sort(floatSlice(v2))
  4229. if esep {
  4230. for _, k2 := range v2 {
  4231. ee.WriteMapElemKey()
  4232. ee.EncodeFloat32(float32(k2))
  4233. ee.WriteMapElemValue()
  4234. e.encode(v[float32(k2)])
  4235. }
  4236. } else {
  4237. for _, k2 := range v2 {
  4238. ee.EncodeFloat32(float32(k2))
  4239. e.encode(v[float32(k2)])
  4240. }
  4241. }
  4242. } else {
  4243. if esep {
  4244. for k2, v2 := range v {
  4245. ee.WriteMapElemKey()
  4246. ee.EncodeFloat32(k2)
  4247. ee.WriteMapElemValue()
  4248. e.encode(v2)
  4249. }
  4250. } else {
  4251. for k2, v2 := range v {
  4252. ee.EncodeFloat32(k2)
  4253. e.encode(v2)
  4254. }
  4255. }
  4256. }
  4257. ee.WriteMapEnd()
  4258. }
  4259. func (e *Encoder) fastpathEncMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  4260. fastpathTV.EncMapFloat32IntV(rv2i(rv).(map[float32]int), e)
  4261. }
  4262. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, e *Encoder) {
  4263. if v == nil {
  4264. e.e.EncodeNil()
  4265. return
  4266. }
  4267. ee, esep := e.e, e.hh.hasElemSeparators()
  4268. ee.WriteMapStart(len(v))
  4269. if e.h.Canonical {
  4270. v2 := make([]float64, len(v))
  4271. var i int
  4272. for k, _ := range v {
  4273. v2[i] = float64(k)
  4274. i++
  4275. }
  4276. sort.Sort(floatSlice(v2))
  4277. if esep {
  4278. for _, k2 := range v2 {
  4279. ee.WriteMapElemKey()
  4280. ee.EncodeFloat32(float32(k2))
  4281. ee.WriteMapElemValue()
  4282. ee.EncodeInt(int64(v[float32(k2)]))
  4283. }
  4284. } else {
  4285. for _, k2 := range v2 {
  4286. ee.EncodeFloat32(float32(k2))
  4287. ee.EncodeInt(int64(v[float32(k2)]))
  4288. }
  4289. }
  4290. } else {
  4291. if esep {
  4292. for k2, v2 := range v {
  4293. ee.WriteMapElemKey()
  4294. ee.EncodeFloat32(k2)
  4295. ee.WriteMapElemValue()
  4296. ee.EncodeInt(int64(v2))
  4297. }
  4298. } else {
  4299. for k2, v2 := range v {
  4300. ee.EncodeFloat32(k2)
  4301. ee.EncodeInt(int64(v2))
  4302. }
  4303. }
  4304. }
  4305. ee.WriteMapEnd()
  4306. }
  4307. func (e *Encoder) fastpathEncMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  4308. fastpathTV.EncMapFloat32Int8V(rv2i(rv).(map[float32]int8), e)
  4309. }
  4310. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, e *Encoder) {
  4311. if v == nil {
  4312. e.e.EncodeNil()
  4313. return
  4314. }
  4315. ee, esep := e.e, e.hh.hasElemSeparators()
  4316. ee.WriteMapStart(len(v))
  4317. if e.h.Canonical {
  4318. v2 := make([]float64, len(v))
  4319. var i int
  4320. for k, _ := range v {
  4321. v2[i] = float64(k)
  4322. i++
  4323. }
  4324. sort.Sort(floatSlice(v2))
  4325. if esep {
  4326. for _, k2 := range v2 {
  4327. ee.WriteMapElemKey()
  4328. ee.EncodeFloat32(float32(k2))
  4329. ee.WriteMapElemValue()
  4330. ee.EncodeInt(int64(v[float32(k2)]))
  4331. }
  4332. } else {
  4333. for _, k2 := range v2 {
  4334. ee.EncodeFloat32(float32(k2))
  4335. ee.EncodeInt(int64(v[float32(k2)]))
  4336. }
  4337. }
  4338. } else {
  4339. if esep {
  4340. for k2, v2 := range v {
  4341. ee.WriteMapElemKey()
  4342. ee.EncodeFloat32(k2)
  4343. ee.WriteMapElemValue()
  4344. ee.EncodeInt(int64(v2))
  4345. }
  4346. } else {
  4347. for k2, v2 := range v {
  4348. ee.EncodeFloat32(k2)
  4349. ee.EncodeInt(int64(v2))
  4350. }
  4351. }
  4352. }
  4353. ee.WriteMapEnd()
  4354. }
  4355. func (e *Encoder) fastpathEncMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  4356. fastpathTV.EncMapFloat32Int16V(rv2i(rv).(map[float32]int16), e)
  4357. }
  4358. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, e *Encoder) {
  4359. if v == nil {
  4360. e.e.EncodeNil()
  4361. return
  4362. }
  4363. ee, esep := e.e, e.hh.hasElemSeparators()
  4364. ee.WriteMapStart(len(v))
  4365. if e.h.Canonical {
  4366. v2 := make([]float64, len(v))
  4367. var i int
  4368. for k, _ := range v {
  4369. v2[i] = float64(k)
  4370. i++
  4371. }
  4372. sort.Sort(floatSlice(v2))
  4373. if esep {
  4374. for _, k2 := range v2 {
  4375. ee.WriteMapElemKey()
  4376. ee.EncodeFloat32(float32(k2))
  4377. ee.WriteMapElemValue()
  4378. ee.EncodeInt(int64(v[float32(k2)]))
  4379. }
  4380. } else {
  4381. for _, k2 := range v2 {
  4382. ee.EncodeFloat32(float32(k2))
  4383. ee.EncodeInt(int64(v[float32(k2)]))
  4384. }
  4385. }
  4386. } else {
  4387. if esep {
  4388. for k2, v2 := range v {
  4389. ee.WriteMapElemKey()
  4390. ee.EncodeFloat32(k2)
  4391. ee.WriteMapElemValue()
  4392. ee.EncodeInt(int64(v2))
  4393. }
  4394. } else {
  4395. for k2, v2 := range v {
  4396. ee.EncodeFloat32(k2)
  4397. ee.EncodeInt(int64(v2))
  4398. }
  4399. }
  4400. }
  4401. ee.WriteMapEnd()
  4402. }
  4403. func (e *Encoder) fastpathEncMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  4404. fastpathTV.EncMapFloat32Int32V(rv2i(rv).(map[float32]int32), e)
  4405. }
  4406. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, e *Encoder) {
  4407. if v == nil {
  4408. e.e.EncodeNil()
  4409. return
  4410. }
  4411. ee, esep := e.e, e.hh.hasElemSeparators()
  4412. ee.WriteMapStart(len(v))
  4413. if e.h.Canonical {
  4414. v2 := make([]float64, len(v))
  4415. var i int
  4416. for k, _ := range v {
  4417. v2[i] = float64(k)
  4418. i++
  4419. }
  4420. sort.Sort(floatSlice(v2))
  4421. if esep {
  4422. for _, k2 := range v2 {
  4423. ee.WriteMapElemKey()
  4424. ee.EncodeFloat32(float32(k2))
  4425. ee.WriteMapElemValue()
  4426. ee.EncodeInt(int64(v[float32(k2)]))
  4427. }
  4428. } else {
  4429. for _, k2 := range v2 {
  4430. ee.EncodeFloat32(float32(k2))
  4431. ee.EncodeInt(int64(v[float32(k2)]))
  4432. }
  4433. }
  4434. } else {
  4435. if esep {
  4436. for k2, v2 := range v {
  4437. ee.WriteMapElemKey()
  4438. ee.EncodeFloat32(k2)
  4439. ee.WriteMapElemValue()
  4440. ee.EncodeInt(int64(v2))
  4441. }
  4442. } else {
  4443. for k2, v2 := range v {
  4444. ee.EncodeFloat32(k2)
  4445. ee.EncodeInt(int64(v2))
  4446. }
  4447. }
  4448. }
  4449. ee.WriteMapEnd()
  4450. }
  4451. func (e *Encoder) fastpathEncMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  4452. fastpathTV.EncMapFloat32Int64V(rv2i(rv).(map[float32]int64), e)
  4453. }
  4454. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, e *Encoder) {
  4455. if v == nil {
  4456. e.e.EncodeNil()
  4457. return
  4458. }
  4459. ee, esep := e.e, e.hh.hasElemSeparators()
  4460. ee.WriteMapStart(len(v))
  4461. if e.h.Canonical {
  4462. v2 := make([]float64, len(v))
  4463. var i int
  4464. for k, _ := range v {
  4465. v2[i] = float64(k)
  4466. i++
  4467. }
  4468. sort.Sort(floatSlice(v2))
  4469. if esep {
  4470. for _, k2 := range v2 {
  4471. ee.WriteMapElemKey()
  4472. ee.EncodeFloat32(float32(k2))
  4473. ee.WriteMapElemValue()
  4474. ee.EncodeInt(int64(v[float32(k2)]))
  4475. }
  4476. } else {
  4477. for _, k2 := range v2 {
  4478. ee.EncodeFloat32(float32(k2))
  4479. ee.EncodeInt(int64(v[float32(k2)]))
  4480. }
  4481. }
  4482. } else {
  4483. if esep {
  4484. for k2, v2 := range v {
  4485. ee.WriteMapElemKey()
  4486. ee.EncodeFloat32(k2)
  4487. ee.WriteMapElemValue()
  4488. ee.EncodeInt(int64(v2))
  4489. }
  4490. } else {
  4491. for k2, v2 := range v {
  4492. ee.EncodeFloat32(k2)
  4493. ee.EncodeInt(int64(v2))
  4494. }
  4495. }
  4496. }
  4497. ee.WriteMapEnd()
  4498. }
  4499. func (e *Encoder) fastpathEncMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  4500. fastpathTV.EncMapFloat32Float32V(rv2i(rv).(map[float32]float32), e)
  4501. }
  4502. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, e *Encoder) {
  4503. if v == nil {
  4504. e.e.EncodeNil()
  4505. return
  4506. }
  4507. ee, esep := e.e, e.hh.hasElemSeparators()
  4508. ee.WriteMapStart(len(v))
  4509. if e.h.Canonical {
  4510. v2 := make([]float64, len(v))
  4511. var i int
  4512. for k, _ := range v {
  4513. v2[i] = float64(k)
  4514. i++
  4515. }
  4516. sort.Sort(floatSlice(v2))
  4517. if esep {
  4518. for _, k2 := range v2 {
  4519. ee.WriteMapElemKey()
  4520. ee.EncodeFloat32(float32(k2))
  4521. ee.WriteMapElemValue()
  4522. ee.EncodeFloat32(v[float32(k2)])
  4523. }
  4524. } else {
  4525. for _, k2 := range v2 {
  4526. ee.EncodeFloat32(float32(k2))
  4527. ee.EncodeFloat32(v[float32(k2)])
  4528. }
  4529. }
  4530. } else {
  4531. if esep {
  4532. for k2, v2 := range v {
  4533. ee.WriteMapElemKey()
  4534. ee.EncodeFloat32(k2)
  4535. ee.WriteMapElemValue()
  4536. ee.EncodeFloat32(v2)
  4537. }
  4538. } else {
  4539. for k2, v2 := range v {
  4540. ee.EncodeFloat32(k2)
  4541. ee.EncodeFloat32(v2)
  4542. }
  4543. }
  4544. }
  4545. ee.WriteMapEnd()
  4546. }
  4547. func (e *Encoder) fastpathEncMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  4548. fastpathTV.EncMapFloat32Float64V(rv2i(rv).(map[float32]float64), e)
  4549. }
  4550. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, e *Encoder) {
  4551. if v == nil {
  4552. e.e.EncodeNil()
  4553. return
  4554. }
  4555. ee, esep := e.e, e.hh.hasElemSeparators()
  4556. ee.WriteMapStart(len(v))
  4557. if e.h.Canonical {
  4558. v2 := make([]float64, len(v))
  4559. var i int
  4560. for k, _ := range v {
  4561. v2[i] = float64(k)
  4562. i++
  4563. }
  4564. sort.Sort(floatSlice(v2))
  4565. if esep {
  4566. for _, k2 := range v2 {
  4567. ee.WriteMapElemKey()
  4568. ee.EncodeFloat32(float32(k2))
  4569. ee.WriteMapElemValue()
  4570. ee.EncodeFloat64(v[float32(k2)])
  4571. }
  4572. } else {
  4573. for _, k2 := range v2 {
  4574. ee.EncodeFloat32(float32(k2))
  4575. ee.EncodeFloat64(v[float32(k2)])
  4576. }
  4577. }
  4578. } else {
  4579. if esep {
  4580. for k2, v2 := range v {
  4581. ee.WriteMapElemKey()
  4582. ee.EncodeFloat32(k2)
  4583. ee.WriteMapElemValue()
  4584. ee.EncodeFloat64(v2)
  4585. }
  4586. } else {
  4587. for k2, v2 := range v {
  4588. ee.EncodeFloat32(k2)
  4589. ee.EncodeFloat64(v2)
  4590. }
  4591. }
  4592. }
  4593. ee.WriteMapEnd()
  4594. }
  4595. func (e *Encoder) fastpathEncMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  4596. fastpathTV.EncMapFloat32BoolV(rv2i(rv).(map[float32]bool), e)
  4597. }
  4598. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, e *Encoder) {
  4599. if v == nil {
  4600. e.e.EncodeNil()
  4601. return
  4602. }
  4603. ee, esep := e.e, e.hh.hasElemSeparators()
  4604. ee.WriteMapStart(len(v))
  4605. if e.h.Canonical {
  4606. v2 := make([]float64, len(v))
  4607. var i int
  4608. for k, _ := range v {
  4609. v2[i] = float64(k)
  4610. i++
  4611. }
  4612. sort.Sort(floatSlice(v2))
  4613. if esep {
  4614. for _, k2 := range v2 {
  4615. ee.WriteMapElemKey()
  4616. ee.EncodeFloat32(float32(k2))
  4617. ee.WriteMapElemValue()
  4618. ee.EncodeBool(v[float32(k2)])
  4619. }
  4620. } else {
  4621. for _, k2 := range v2 {
  4622. ee.EncodeFloat32(float32(k2))
  4623. ee.EncodeBool(v[float32(k2)])
  4624. }
  4625. }
  4626. } else {
  4627. if esep {
  4628. for k2, v2 := range v {
  4629. ee.WriteMapElemKey()
  4630. ee.EncodeFloat32(k2)
  4631. ee.WriteMapElemValue()
  4632. ee.EncodeBool(v2)
  4633. }
  4634. } else {
  4635. for k2, v2 := range v {
  4636. ee.EncodeFloat32(k2)
  4637. ee.EncodeBool(v2)
  4638. }
  4639. }
  4640. }
  4641. ee.WriteMapEnd()
  4642. }
  4643. func (e *Encoder) fastpathEncMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  4644. fastpathTV.EncMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), e)
  4645. }
  4646. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, e *Encoder) {
  4647. if v == nil {
  4648. e.e.EncodeNil()
  4649. return
  4650. }
  4651. ee, esep := e.e, e.hh.hasElemSeparators()
  4652. ee.WriteMapStart(len(v))
  4653. if e.h.Canonical {
  4654. v2 := make([]float64, len(v))
  4655. var i int
  4656. for k, _ := range v {
  4657. v2[i] = float64(k)
  4658. i++
  4659. }
  4660. sort.Sort(floatSlice(v2))
  4661. if esep {
  4662. for _, k2 := range v2 {
  4663. ee.WriteMapElemKey()
  4664. ee.EncodeFloat64(float64(k2))
  4665. ee.WriteMapElemValue()
  4666. e.encode(v[float64(k2)])
  4667. }
  4668. } else {
  4669. for _, k2 := range v2 {
  4670. ee.EncodeFloat64(float64(k2))
  4671. e.encode(v[float64(k2)])
  4672. }
  4673. }
  4674. } else {
  4675. if esep {
  4676. for k2, v2 := range v {
  4677. ee.WriteMapElemKey()
  4678. ee.EncodeFloat64(k2)
  4679. ee.WriteMapElemValue()
  4680. e.encode(v2)
  4681. }
  4682. } else {
  4683. for k2, v2 := range v {
  4684. ee.EncodeFloat64(k2)
  4685. e.encode(v2)
  4686. }
  4687. }
  4688. }
  4689. ee.WriteMapEnd()
  4690. }
  4691. func (e *Encoder) fastpathEncMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  4692. fastpathTV.EncMapFloat64StringV(rv2i(rv).(map[float64]string), e)
  4693. }
  4694. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, e *Encoder) {
  4695. if v == nil {
  4696. e.e.EncodeNil()
  4697. return
  4698. }
  4699. ee, esep := e.e, e.hh.hasElemSeparators()
  4700. ee.WriteMapStart(len(v))
  4701. if e.h.Canonical {
  4702. v2 := make([]float64, len(v))
  4703. var i int
  4704. for k, _ := range v {
  4705. v2[i] = float64(k)
  4706. i++
  4707. }
  4708. sort.Sort(floatSlice(v2))
  4709. if esep {
  4710. for _, k2 := range v2 {
  4711. ee.WriteMapElemKey()
  4712. ee.EncodeFloat64(float64(k2))
  4713. ee.WriteMapElemValue()
  4714. ee.EncodeString(cUTF8, v[float64(k2)])
  4715. }
  4716. } else {
  4717. for _, k2 := range v2 {
  4718. ee.EncodeFloat64(float64(k2))
  4719. ee.EncodeString(cUTF8, v[float64(k2)])
  4720. }
  4721. }
  4722. } else {
  4723. if esep {
  4724. for k2, v2 := range v {
  4725. ee.WriteMapElemKey()
  4726. ee.EncodeFloat64(k2)
  4727. ee.WriteMapElemValue()
  4728. ee.EncodeString(cUTF8, v2)
  4729. }
  4730. } else {
  4731. for k2, v2 := range v {
  4732. ee.EncodeFloat64(k2)
  4733. ee.EncodeString(cUTF8, v2)
  4734. }
  4735. }
  4736. }
  4737. ee.WriteMapEnd()
  4738. }
  4739. func (e *Encoder) fastpathEncMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  4740. fastpathTV.EncMapFloat64UintV(rv2i(rv).(map[float64]uint), e)
  4741. }
  4742. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, e *Encoder) {
  4743. if v == nil {
  4744. e.e.EncodeNil()
  4745. return
  4746. }
  4747. ee, esep := e.e, e.hh.hasElemSeparators()
  4748. ee.WriteMapStart(len(v))
  4749. if e.h.Canonical {
  4750. v2 := make([]float64, len(v))
  4751. var i int
  4752. for k, _ := range v {
  4753. v2[i] = float64(k)
  4754. i++
  4755. }
  4756. sort.Sort(floatSlice(v2))
  4757. if esep {
  4758. for _, k2 := range v2 {
  4759. ee.WriteMapElemKey()
  4760. ee.EncodeFloat64(float64(k2))
  4761. ee.WriteMapElemValue()
  4762. ee.EncodeUint(uint64(v[float64(k2)]))
  4763. }
  4764. } else {
  4765. for _, k2 := range v2 {
  4766. ee.EncodeFloat64(float64(k2))
  4767. ee.EncodeUint(uint64(v[float64(k2)]))
  4768. }
  4769. }
  4770. } else {
  4771. if esep {
  4772. for k2, v2 := range v {
  4773. ee.WriteMapElemKey()
  4774. ee.EncodeFloat64(k2)
  4775. ee.WriteMapElemValue()
  4776. ee.EncodeUint(uint64(v2))
  4777. }
  4778. } else {
  4779. for k2, v2 := range v {
  4780. ee.EncodeFloat64(k2)
  4781. ee.EncodeUint(uint64(v2))
  4782. }
  4783. }
  4784. }
  4785. ee.WriteMapEnd()
  4786. }
  4787. func (e *Encoder) fastpathEncMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  4788. fastpathTV.EncMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), e)
  4789. }
  4790. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, e *Encoder) {
  4791. if v == nil {
  4792. e.e.EncodeNil()
  4793. return
  4794. }
  4795. ee, esep := e.e, e.hh.hasElemSeparators()
  4796. ee.WriteMapStart(len(v))
  4797. if e.h.Canonical {
  4798. v2 := make([]float64, len(v))
  4799. var i int
  4800. for k, _ := range v {
  4801. v2[i] = float64(k)
  4802. i++
  4803. }
  4804. sort.Sort(floatSlice(v2))
  4805. if esep {
  4806. for _, k2 := range v2 {
  4807. ee.WriteMapElemKey()
  4808. ee.EncodeFloat64(float64(k2))
  4809. ee.WriteMapElemValue()
  4810. ee.EncodeUint(uint64(v[float64(k2)]))
  4811. }
  4812. } else {
  4813. for _, k2 := range v2 {
  4814. ee.EncodeFloat64(float64(k2))
  4815. ee.EncodeUint(uint64(v[float64(k2)]))
  4816. }
  4817. }
  4818. } else {
  4819. if esep {
  4820. for k2, v2 := range v {
  4821. ee.WriteMapElemKey()
  4822. ee.EncodeFloat64(k2)
  4823. ee.WriteMapElemValue()
  4824. ee.EncodeUint(uint64(v2))
  4825. }
  4826. } else {
  4827. for k2, v2 := range v {
  4828. ee.EncodeFloat64(k2)
  4829. ee.EncodeUint(uint64(v2))
  4830. }
  4831. }
  4832. }
  4833. ee.WriteMapEnd()
  4834. }
  4835. func (e *Encoder) fastpathEncMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  4836. fastpathTV.EncMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), e)
  4837. }
  4838. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, e *Encoder) {
  4839. if v == nil {
  4840. e.e.EncodeNil()
  4841. return
  4842. }
  4843. ee, esep := e.e, e.hh.hasElemSeparators()
  4844. ee.WriteMapStart(len(v))
  4845. if e.h.Canonical {
  4846. v2 := make([]float64, len(v))
  4847. var i int
  4848. for k, _ := range v {
  4849. v2[i] = float64(k)
  4850. i++
  4851. }
  4852. sort.Sort(floatSlice(v2))
  4853. if esep {
  4854. for _, k2 := range v2 {
  4855. ee.WriteMapElemKey()
  4856. ee.EncodeFloat64(float64(k2))
  4857. ee.WriteMapElemValue()
  4858. ee.EncodeUint(uint64(v[float64(k2)]))
  4859. }
  4860. } else {
  4861. for _, k2 := range v2 {
  4862. ee.EncodeFloat64(float64(k2))
  4863. ee.EncodeUint(uint64(v[float64(k2)]))
  4864. }
  4865. }
  4866. } else {
  4867. if esep {
  4868. for k2, v2 := range v {
  4869. ee.WriteMapElemKey()
  4870. ee.EncodeFloat64(k2)
  4871. ee.WriteMapElemValue()
  4872. ee.EncodeUint(uint64(v2))
  4873. }
  4874. } else {
  4875. for k2, v2 := range v {
  4876. ee.EncodeFloat64(k2)
  4877. ee.EncodeUint(uint64(v2))
  4878. }
  4879. }
  4880. }
  4881. ee.WriteMapEnd()
  4882. }
  4883. func (e *Encoder) fastpathEncMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  4884. fastpathTV.EncMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), e)
  4885. }
  4886. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, e *Encoder) {
  4887. if v == nil {
  4888. e.e.EncodeNil()
  4889. return
  4890. }
  4891. ee, esep := e.e, e.hh.hasElemSeparators()
  4892. ee.WriteMapStart(len(v))
  4893. if e.h.Canonical {
  4894. v2 := make([]float64, len(v))
  4895. var i int
  4896. for k, _ := range v {
  4897. v2[i] = float64(k)
  4898. i++
  4899. }
  4900. sort.Sort(floatSlice(v2))
  4901. if esep {
  4902. for _, k2 := range v2 {
  4903. ee.WriteMapElemKey()
  4904. ee.EncodeFloat64(float64(k2))
  4905. ee.WriteMapElemValue()
  4906. ee.EncodeUint(uint64(v[float64(k2)]))
  4907. }
  4908. } else {
  4909. for _, k2 := range v2 {
  4910. ee.EncodeFloat64(float64(k2))
  4911. ee.EncodeUint(uint64(v[float64(k2)]))
  4912. }
  4913. }
  4914. } else {
  4915. if esep {
  4916. for k2, v2 := range v {
  4917. ee.WriteMapElemKey()
  4918. ee.EncodeFloat64(k2)
  4919. ee.WriteMapElemValue()
  4920. ee.EncodeUint(uint64(v2))
  4921. }
  4922. } else {
  4923. for k2, v2 := range v {
  4924. ee.EncodeFloat64(k2)
  4925. ee.EncodeUint(uint64(v2))
  4926. }
  4927. }
  4928. }
  4929. ee.WriteMapEnd()
  4930. }
  4931. func (e *Encoder) fastpathEncMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  4932. fastpathTV.EncMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), e)
  4933. }
  4934. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, e *Encoder) {
  4935. if v == nil {
  4936. e.e.EncodeNil()
  4937. return
  4938. }
  4939. ee, esep := e.e, e.hh.hasElemSeparators()
  4940. ee.WriteMapStart(len(v))
  4941. if e.h.Canonical {
  4942. v2 := make([]float64, len(v))
  4943. var i int
  4944. for k, _ := range v {
  4945. v2[i] = float64(k)
  4946. i++
  4947. }
  4948. sort.Sort(floatSlice(v2))
  4949. if esep {
  4950. for _, k2 := range v2 {
  4951. ee.WriteMapElemKey()
  4952. ee.EncodeFloat64(float64(k2))
  4953. ee.WriteMapElemValue()
  4954. ee.EncodeUint(uint64(v[float64(k2)]))
  4955. }
  4956. } else {
  4957. for _, k2 := range v2 {
  4958. ee.EncodeFloat64(float64(k2))
  4959. ee.EncodeUint(uint64(v[float64(k2)]))
  4960. }
  4961. }
  4962. } else {
  4963. if esep {
  4964. for k2, v2 := range v {
  4965. ee.WriteMapElemKey()
  4966. ee.EncodeFloat64(k2)
  4967. ee.WriteMapElemValue()
  4968. ee.EncodeUint(uint64(v2))
  4969. }
  4970. } else {
  4971. for k2, v2 := range v {
  4972. ee.EncodeFloat64(k2)
  4973. ee.EncodeUint(uint64(v2))
  4974. }
  4975. }
  4976. }
  4977. ee.WriteMapEnd()
  4978. }
  4979. func (e *Encoder) fastpathEncMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  4980. fastpathTV.EncMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), e)
  4981. }
  4982. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, e *Encoder) {
  4983. if v == nil {
  4984. e.e.EncodeNil()
  4985. return
  4986. }
  4987. ee, esep := e.e, e.hh.hasElemSeparators()
  4988. ee.WriteMapStart(len(v))
  4989. if e.h.Canonical {
  4990. v2 := make([]float64, len(v))
  4991. var i int
  4992. for k, _ := range v {
  4993. v2[i] = float64(k)
  4994. i++
  4995. }
  4996. sort.Sort(floatSlice(v2))
  4997. if esep {
  4998. for _, k2 := range v2 {
  4999. ee.WriteMapElemKey()
  5000. ee.EncodeFloat64(float64(k2))
  5001. ee.WriteMapElemValue()
  5002. e.encode(v[float64(k2)])
  5003. }
  5004. } else {
  5005. for _, k2 := range v2 {
  5006. ee.EncodeFloat64(float64(k2))
  5007. e.encode(v[float64(k2)])
  5008. }
  5009. }
  5010. } else {
  5011. if esep {
  5012. for k2, v2 := range v {
  5013. ee.WriteMapElemKey()
  5014. ee.EncodeFloat64(k2)
  5015. ee.WriteMapElemValue()
  5016. e.encode(v2)
  5017. }
  5018. } else {
  5019. for k2, v2 := range v {
  5020. ee.EncodeFloat64(k2)
  5021. e.encode(v2)
  5022. }
  5023. }
  5024. }
  5025. ee.WriteMapEnd()
  5026. }
  5027. func (e *Encoder) fastpathEncMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  5028. fastpathTV.EncMapFloat64IntV(rv2i(rv).(map[float64]int), e)
  5029. }
  5030. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, e *Encoder) {
  5031. if v == nil {
  5032. e.e.EncodeNil()
  5033. return
  5034. }
  5035. ee, esep := e.e, e.hh.hasElemSeparators()
  5036. ee.WriteMapStart(len(v))
  5037. if e.h.Canonical {
  5038. v2 := make([]float64, len(v))
  5039. var i int
  5040. for k, _ := range v {
  5041. v2[i] = float64(k)
  5042. i++
  5043. }
  5044. sort.Sort(floatSlice(v2))
  5045. if esep {
  5046. for _, k2 := range v2 {
  5047. ee.WriteMapElemKey()
  5048. ee.EncodeFloat64(float64(k2))
  5049. ee.WriteMapElemValue()
  5050. ee.EncodeInt(int64(v[float64(k2)]))
  5051. }
  5052. } else {
  5053. for _, k2 := range v2 {
  5054. ee.EncodeFloat64(float64(k2))
  5055. ee.EncodeInt(int64(v[float64(k2)]))
  5056. }
  5057. }
  5058. } else {
  5059. if esep {
  5060. for k2, v2 := range v {
  5061. ee.WriteMapElemKey()
  5062. ee.EncodeFloat64(k2)
  5063. ee.WriteMapElemValue()
  5064. ee.EncodeInt(int64(v2))
  5065. }
  5066. } else {
  5067. for k2, v2 := range v {
  5068. ee.EncodeFloat64(k2)
  5069. ee.EncodeInt(int64(v2))
  5070. }
  5071. }
  5072. }
  5073. ee.WriteMapEnd()
  5074. }
  5075. func (e *Encoder) fastpathEncMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  5076. fastpathTV.EncMapFloat64Int8V(rv2i(rv).(map[float64]int8), e)
  5077. }
  5078. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, e *Encoder) {
  5079. if v == nil {
  5080. e.e.EncodeNil()
  5081. return
  5082. }
  5083. ee, esep := e.e, e.hh.hasElemSeparators()
  5084. ee.WriteMapStart(len(v))
  5085. if e.h.Canonical {
  5086. v2 := make([]float64, len(v))
  5087. var i int
  5088. for k, _ := range v {
  5089. v2[i] = float64(k)
  5090. i++
  5091. }
  5092. sort.Sort(floatSlice(v2))
  5093. if esep {
  5094. for _, k2 := range v2 {
  5095. ee.WriteMapElemKey()
  5096. ee.EncodeFloat64(float64(k2))
  5097. ee.WriteMapElemValue()
  5098. ee.EncodeInt(int64(v[float64(k2)]))
  5099. }
  5100. } else {
  5101. for _, k2 := range v2 {
  5102. ee.EncodeFloat64(float64(k2))
  5103. ee.EncodeInt(int64(v[float64(k2)]))
  5104. }
  5105. }
  5106. } else {
  5107. if esep {
  5108. for k2, v2 := range v {
  5109. ee.WriteMapElemKey()
  5110. ee.EncodeFloat64(k2)
  5111. ee.WriteMapElemValue()
  5112. ee.EncodeInt(int64(v2))
  5113. }
  5114. } else {
  5115. for k2, v2 := range v {
  5116. ee.EncodeFloat64(k2)
  5117. ee.EncodeInt(int64(v2))
  5118. }
  5119. }
  5120. }
  5121. ee.WriteMapEnd()
  5122. }
  5123. func (e *Encoder) fastpathEncMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  5124. fastpathTV.EncMapFloat64Int16V(rv2i(rv).(map[float64]int16), e)
  5125. }
  5126. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, e *Encoder) {
  5127. if v == nil {
  5128. e.e.EncodeNil()
  5129. return
  5130. }
  5131. ee, esep := e.e, e.hh.hasElemSeparators()
  5132. ee.WriteMapStart(len(v))
  5133. if e.h.Canonical {
  5134. v2 := make([]float64, len(v))
  5135. var i int
  5136. for k, _ := range v {
  5137. v2[i] = float64(k)
  5138. i++
  5139. }
  5140. sort.Sort(floatSlice(v2))
  5141. if esep {
  5142. for _, k2 := range v2 {
  5143. ee.WriteMapElemKey()
  5144. ee.EncodeFloat64(float64(k2))
  5145. ee.WriteMapElemValue()
  5146. ee.EncodeInt(int64(v[float64(k2)]))
  5147. }
  5148. } else {
  5149. for _, k2 := range v2 {
  5150. ee.EncodeFloat64(float64(k2))
  5151. ee.EncodeInt(int64(v[float64(k2)]))
  5152. }
  5153. }
  5154. } else {
  5155. if esep {
  5156. for k2, v2 := range v {
  5157. ee.WriteMapElemKey()
  5158. ee.EncodeFloat64(k2)
  5159. ee.WriteMapElemValue()
  5160. ee.EncodeInt(int64(v2))
  5161. }
  5162. } else {
  5163. for k2, v2 := range v {
  5164. ee.EncodeFloat64(k2)
  5165. ee.EncodeInt(int64(v2))
  5166. }
  5167. }
  5168. }
  5169. ee.WriteMapEnd()
  5170. }
  5171. func (e *Encoder) fastpathEncMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  5172. fastpathTV.EncMapFloat64Int32V(rv2i(rv).(map[float64]int32), e)
  5173. }
  5174. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, e *Encoder) {
  5175. if v == nil {
  5176. e.e.EncodeNil()
  5177. return
  5178. }
  5179. ee, esep := e.e, e.hh.hasElemSeparators()
  5180. ee.WriteMapStart(len(v))
  5181. if e.h.Canonical {
  5182. v2 := make([]float64, len(v))
  5183. var i int
  5184. for k, _ := range v {
  5185. v2[i] = float64(k)
  5186. i++
  5187. }
  5188. sort.Sort(floatSlice(v2))
  5189. if esep {
  5190. for _, k2 := range v2 {
  5191. ee.WriteMapElemKey()
  5192. ee.EncodeFloat64(float64(k2))
  5193. ee.WriteMapElemValue()
  5194. ee.EncodeInt(int64(v[float64(k2)]))
  5195. }
  5196. } else {
  5197. for _, k2 := range v2 {
  5198. ee.EncodeFloat64(float64(k2))
  5199. ee.EncodeInt(int64(v[float64(k2)]))
  5200. }
  5201. }
  5202. } else {
  5203. if esep {
  5204. for k2, v2 := range v {
  5205. ee.WriteMapElemKey()
  5206. ee.EncodeFloat64(k2)
  5207. ee.WriteMapElemValue()
  5208. ee.EncodeInt(int64(v2))
  5209. }
  5210. } else {
  5211. for k2, v2 := range v {
  5212. ee.EncodeFloat64(k2)
  5213. ee.EncodeInt(int64(v2))
  5214. }
  5215. }
  5216. }
  5217. ee.WriteMapEnd()
  5218. }
  5219. func (e *Encoder) fastpathEncMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  5220. fastpathTV.EncMapFloat64Int64V(rv2i(rv).(map[float64]int64), e)
  5221. }
  5222. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, e *Encoder) {
  5223. if v == nil {
  5224. e.e.EncodeNil()
  5225. return
  5226. }
  5227. ee, esep := e.e, e.hh.hasElemSeparators()
  5228. ee.WriteMapStart(len(v))
  5229. if e.h.Canonical {
  5230. v2 := make([]float64, len(v))
  5231. var i int
  5232. for k, _ := range v {
  5233. v2[i] = float64(k)
  5234. i++
  5235. }
  5236. sort.Sort(floatSlice(v2))
  5237. if esep {
  5238. for _, k2 := range v2 {
  5239. ee.WriteMapElemKey()
  5240. ee.EncodeFloat64(float64(k2))
  5241. ee.WriteMapElemValue()
  5242. ee.EncodeInt(int64(v[float64(k2)]))
  5243. }
  5244. } else {
  5245. for _, k2 := range v2 {
  5246. ee.EncodeFloat64(float64(k2))
  5247. ee.EncodeInt(int64(v[float64(k2)]))
  5248. }
  5249. }
  5250. } else {
  5251. if esep {
  5252. for k2, v2 := range v {
  5253. ee.WriteMapElemKey()
  5254. ee.EncodeFloat64(k2)
  5255. ee.WriteMapElemValue()
  5256. ee.EncodeInt(int64(v2))
  5257. }
  5258. } else {
  5259. for k2, v2 := range v {
  5260. ee.EncodeFloat64(k2)
  5261. ee.EncodeInt(int64(v2))
  5262. }
  5263. }
  5264. }
  5265. ee.WriteMapEnd()
  5266. }
  5267. func (e *Encoder) fastpathEncMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  5268. fastpathTV.EncMapFloat64Float32V(rv2i(rv).(map[float64]float32), e)
  5269. }
  5270. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, e *Encoder) {
  5271. if v == nil {
  5272. e.e.EncodeNil()
  5273. return
  5274. }
  5275. ee, esep := e.e, e.hh.hasElemSeparators()
  5276. ee.WriteMapStart(len(v))
  5277. if e.h.Canonical {
  5278. v2 := make([]float64, len(v))
  5279. var i int
  5280. for k, _ := range v {
  5281. v2[i] = float64(k)
  5282. i++
  5283. }
  5284. sort.Sort(floatSlice(v2))
  5285. if esep {
  5286. for _, k2 := range v2 {
  5287. ee.WriteMapElemKey()
  5288. ee.EncodeFloat64(float64(k2))
  5289. ee.WriteMapElemValue()
  5290. ee.EncodeFloat32(v[float64(k2)])
  5291. }
  5292. } else {
  5293. for _, k2 := range v2 {
  5294. ee.EncodeFloat64(float64(k2))
  5295. ee.EncodeFloat32(v[float64(k2)])
  5296. }
  5297. }
  5298. } else {
  5299. if esep {
  5300. for k2, v2 := range v {
  5301. ee.WriteMapElemKey()
  5302. ee.EncodeFloat64(k2)
  5303. ee.WriteMapElemValue()
  5304. ee.EncodeFloat32(v2)
  5305. }
  5306. } else {
  5307. for k2, v2 := range v {
  5308. ee.EncodeFloat64(k2)
  5309. ee.EncodeFloat32(v2)
  5310. }
  5311. }
  5312. }
  5313. ee.WriteMapEnd()
  5314. }
  5315. func (e *Encoder) fastpathEncMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  5316. fastpathTV.EncMapFloat64Float64V(rv2i(rv).(map[float64]float64), e)
  5317. }
  5318. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, e *Encoder) {
  5319. if v == nil {
  5320. e.e.EncodeNil()
  5321. return
  5322. }
  5323. ee, esep := e.e, e.hh.hasElemSeparators()
  5324. ee.WriteMapStart(len(v))
  5325. if e.h.Canonical {
  5326. v2 := make([]float64, len(v))
  5327. var i int
  5328. for k, _ := range v {
  5329. v2[i] = float64(k)
  5330. i++
  5331. }
  5332. sort.Sort(floatSlice(v2))
  5333. if esep {
  5334. for _, k2 := range v2 {
  5335. ee.WriteMapElemKey()
  5336. ee.EncodeFloat64(float64(k2))
  5337. ee.WriteMapElemValue()
  5338. ee.EncodeFloat64(v[float64(k2)])
  5339. }
  5340. } else {
  5341. for _, k2 := range v2 {
  5342. ee.EncodeFloat64(float64(k2))
  5343. ee.EncodeFloat64(v[float64(k2)])
  5344. }
  5345. }
  5346. } else {
  5347. if esep {
  5348. for k2, v2 := range v {
  5349. ee.WriteMapElemKey()
  5350. ee.EncodeFloat64(k2)
  5351. ee.WriteMapElemValue()
  5352. ee.EncodeFloat64(v2)
  5353. }
  5354. } else {
  5355. for k2, v2 := range v {
  5356. ee.EncodeFloat64(k2)
  5357. ee.EncodeFloat64(v2)
  5358. }
  5359. }
  5360. }
  5361. ee.WriteMapEnd()
  5362. }
  5363. func (e *Encoder) fastpathEncMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  5364. fastpathTV.EncMapFloat64BoolV(rv2i(rv).(map[float64]bool), e)
  5365. }
  5366. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, e *Encoder) {
  5367. if v == nil {
  5368. e.e.EncodeNil()
  5369. return
  5370. }
  5371. ee, esep := e.e, e.hh.hasElemSeparators()
  5372. ee.WriteMapStart(len(v))
  5373. if e.h.Canonical {
  5374. v2 := make([]float64, len(v))
  5375. var i int
  5376. for k, _ := range v {
  5377. v2[i] = float64(k)
  5378. i++
  5379. }
  5380. sort.Sort(floatSlice(v2))
  5381. if esep {
  5382. for _, k2 := range v2 {
  5383. ee.WriteMapElemKey()
  5384. ee.EncodeFloat64(float64(k2))
  5385. ee.WriteMapElemValue()
  5386. ee.EncodeBool(v[float64(k2)])
  5387. }
  5388. } else {
  5389. for _, k2 := range v2 {
  5390. ee.EncodeFloat64(float64(k2))
  5391. ee.EncodeBool(v[float64(k2)])
  5392. }
  5393. }
  5394. } else {
  5395. if esep {
  5396. for k2, v2 := range v {
  5397. ee.WriteMapElemKey()
  5398. ee.EncodeFloat64(k2)
  5399. ee.WriteMapElemValue()
  5400. ee.EncodeBool(v2)
  5401. }
  5402. } else {
  5403. for k2, v2 := range v {
  5404. ee.EncodeFloat64(k2)
  5405. ee.EncodeBool(v2)
  5406. }
  5407. }
  5408. }
  5409. ee.WriteMapEnd()
  5410. }
  5411. func (e *Encoder) fastpathEncMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  5412. fastpathTV.EncMapUintIntfV(rv2i(rv).(map[uint]interface{}), e)
  5413. }
  5414. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, e *Encoder) {
  5415. if v == nil {
  5416. e.e.EncodeNil()
  5417. return
  5418. }
  5419. ee, esep := e.e, e.hh.hasElemSeparators()
  5420. ee.WriteMapStart(len(v))
  5421. if e.h.Canonical {
  5422. v2 := make([]uint64, len(v))
  5423. var i int
  5424. for k, _ := range v {
  5425. v2[i] = uint64(k)
  5426. i++
  5427. }
  5428. sort.Sort(uintSlice(v2))
  5429. if esep {
  5430. for _, k2 := range v2 {
  5431. ee.WriteMapElemKey()
  5432. ee.EncodeUint(uint64(uint(k2)))
  5433. ee.WriteMapElemValue()
  5434. e.encode(v[uint(k2)])
  5435. }
  5436. } else {
  5437. for _, k2 := range v2 {
  5438. ee.EncodeUint(uint64(uint(k2)))
  5439. e.encode(v[uint(k2)])
  5440. }
  5441. }
  5442. } else {
  5443. if esep {
  5444. for k2, v2 := range v {
  5445. ee.WriteMapElemKey()
  5446. ee.EncodeUint(uint64(k2))
  5447. ee.WriteMapElemValue()
  5448. e.encode(v2)
  5449. }
  5450. } else {
  5451. for k2, v2 := range v {
  5452. ee.EncodeUint(uint64(k2))
  5453. e.encode(v2)
  5454. }
  5455. }
  5456. }
  5457. ee.WriteMapEnd()
  5458. }
  5459. func (e *Encoder) fastpathEncMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  5460. fastpathTV.EncMapUintStringV(rv2i(rv).(map[uint]string), e)
  5461. }
  5462. func (_ fastpathT) EncMapUintStringV(v map[uint]string, e *Encoder) {
  5463. if v == nil {
  5464. e.e.EncodeNil()
  5465. return
  5466. }
  5467. ee, esep := e.e, e.hh.hasElemSeparators()
  5468. ee.WriteMapStart(len(v))
  5469. if e.h.Canonical {
  5470. v2 := make([]uint64, len(v))
  5471. var i int
  5472. for k, _ := range v {
  5473. v2[i] = uint64(k)
  5474. i++
  5475. }
  5476. sort.Sort(uintSlice(v2))
  5477. if esep {
  5478. for _, k2 := range v2 {
  5479. ee.WriteMapElemKey()
  5480. ee.EncodeUint(uint64(uint(k2)))
  5481. ee.WriteMapElemValue()
  5482. ee.EncodeString(cUTF8, v[uint(k2)])
  5483. }
  5484. } else {
  5485. for _, k2 := range v2 {
  5486. ee.EncodeUint(uint64(uint(k2)))
  5487. ee.EncodeString(cUTF8, v[uint(k2)])
  5488. }
  5489. }
  5490. } else {
  5491. if esep {
  5492. for k2, v2 := range v {
  5493. ee.WriteMapElemKey()
  5494. ee.EncodeUint(uint64(k2))
  5495. ee.WriteMapElemValue()
  5496. ee.EncodeString(cUTF8, v2)
  5497. }
  5498. } else {
  5499. for k2, v2 := range v {
  5500. ee.EncodeUint(uint64(k2))
  5501. ee.EncodeString(cUTF8, v2)
  5502. }
  5503. }
  5504. }
  5505. ee.WriteMapEnd()
  5506. }
  5507. func (e *Encoder) fastpathEncMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  5508. fastpathTV.EncMapUintUintV(rv2i(rv).(map[uint]uint), e)
  5509. }
  5510. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, e *Encoder) {
  5511. if v == nil {
  5512. e.e.EncodeNil()
  5513. return
  5514. }
  5515. ee, esep := e.e, e.hh.hasElemSeparators()
  5516. ee.WriteMapStart(len(v))
  5517. if e.h.Canonical {
  5518. v2 := make([]uint64, len(v))
  5519. var i int
  5520. for k, _ := range v {
  5521. v2[i] = uint64(k)
  5522. i++
  5523. }
  5524. sort.Sort(uintSlice(v2))
  5525. if esep {
  5526. for _, k2 := range v2 {
  5527. ee.WriteMapElemKey()
  5528. ee.EncodeUint(uint64(uint(k2)))
  5529. ee.WriteMapElemValue()
  5530. ee.EncodeUint(uint64(v[uint(k2)]))
  5531. }
  5532. } else {
  5533. for _, k2 := range v2 {
  5534. ee.EncodeUint(uint64(uint(k2)))
  5535. ee.EncodeUint(uint64(v[uint(k2)]))
  5536. }
  5537. }
  5538. } else {
  5539. if esep {
  5540. for k2, v2 := range v {
  5541. ee.WriteMapElemKey()
  5542. ee.EncodeUint(uint64(k2))
  5543. ee.WriteMapElemValue()
  5544. ee.EncodeUint(uint64(v2))
  5545. }
  5546. } else {
  5547. for k2, v2 := range v {
  5548. ee.EncodeUint(uint64(k2))
  5549. ee.EncodeUint(uint64(v2))
  5550. }
  5551. }
  5552. }
  5553. ee.WriteMapEnd()
  5554. }
  5555. func (e *Encoder) fastpathEncMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  5556. fastpathTV.EncMapUintUint8V(rv2i(rv).(map[uint]uint8), e)
  5557. }
  5558. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, e *Encoder) {
  5559. if v == nil {
  5560. e.e.EncodeNil()
  5561. return
  5562. }
  5563. ee, esep := e.e, e.hh.hasElemSeparators()
  5564. ee.WriteMapStart(len(v))
  5565. if e.h.Canonical {
  5566. v2 := make([]uint64, len(v))
  5567. var i int
  5568. for k, _ := range v {
  5569. v2[i] = uint64(k)
  5570. i++
  5571. }
  5572. sort.Sort(uintSlice(v2))
  5573. if esep {
  5574. for _, k2 := range v2 {
  5575. ee.WriteMapElemKey()
  5576. ee.EncodeUint(uint64(uint(k2)))
  5577. ee.WriteMapElemValue()
  5578. ee.EncodeUint(uint64(v[uint(k2)]))
  5579. }
  5580. } else {
  5581. for _, k2 := range v2 {
  5582. ee.EncodeUint(uint64(uint(k2)))
  5583. ee.EncodeUint(uint64(v[uint(k2)]))
  5584. }
  5585. }
  5586. } else {
  5587. if esep {
  5588. for k2, v2 := range v {
  5589. ee.WriteMapElemKey()
  5590. ee.EncodeUint(uint64(k2))
  5591. ee.WriteMapElemValue()
  5592. ee.EncodeUint(uint64(v2))
  5593. }
  5594. } else {
  5595. for k2, v2 := range v {
  5596. ee.EncodeUint(uint64(k2))
  5597. ee.EncodeUint(uint64(v2))
  5598. }
  5599. }
  5600. }
  5601. ee.WriteMapEnd()
  5602. }
  5603. func (e *Encoder) fastpathEncMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  5604. fastpathTV.EncMapUintUint16V(rv2i(rv).(map[uint]uint16), e)
  5605. }
  5606. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, e *Encoder) {
  5607. if v == nil {
  5608. e.e.EncodeNil()
  5609. return
  5610. }
  5611. ee, esep := e.e, e.hh.hasElemSeparators()
  5612. ee.WriteMapStart(len(v))
  5613. if e.h.Canonical {
  5614. v2 := make([]uint64, len(v))
  5615. var i int
  5616. for k, _ := range v {
  5617. v2[i] = uint64(k)
  5618. i++
  5619. }
  5620. sort.Sort(uintSlice(v2))
  5621. if esep {
  5622. for _, k2 := range v2 {
  5623. ee.WriteMapElemKey()
  5624. ee.EncodeUint(uint64(uint(k2)))
  5625. ee.WriteMapElemValue()
  5626. ee.EncodeUint(uint64(v[uint(k2)]))
  5627. }
  5628. } else {
  5629. for _, k2 := range v2 {
  5630. ee.EncodeUint(uint64(uint(k2)))
  5631. ee.EncodeUint(uint64(v[uint(k2)]))
  5632. }
  5633. }
  5634. } else {
  5635. if esep {
  5636. for k2, v2 := range v {
  5637. ee.WriteMapElemKey()
  5638. ee.EncodeUint(uint64(k2))
  5639. ee.WriteMapElemValue()
  5640. ee.EncodeUint(uint64(v2))
  5641. }
  5642. } else {
  5643. for k2, v2 := range v {
  5644. ee.EncodeUint(uint64(k2))
  5645. ee.EncodeUint(uint64(v2))
  5646. }
  5647. }
  5648. }
  5649. ee.WriteMapEnd()
  5650. }
  5651. func (e *Encoder) fastpathEncMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  5652. fastpathTV.EncMapUintUint32V(rv2i(rv).(map[uint]uint32), e)
  5653. }
  5654. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, e *Encoder) {
  5655. if v == nil {
  5656. e.e.EncodeNil()
  5657. return
  5658. }
  5659. ee, esep := e.e, e.hh.hasElemSeparators()
  5660. ee.WriteMapStart(len(v))
  5661. if e.h.Canonical {
  5662. v2 := make([]uint64, len(v))
  5663. var i int
  5664. for k, _ := range v {
  5665. v2[i] = uint64(k)
  5666. i++
  5667. }
  5668. sort.Sort(uintSlice(v2))
  5669. if esep {
  5670. for _, k2 := range v2 {
  5671. ee.WriteMapElemKey()
  5672. ee.EncodeUint(uint64(uint(k2)))
  5673. ee.WriteMapElemValue()
  5674. ee.EncodeUint(uint64(v[uint(k2)]))
  5675. }
  5676. } else {
  5677. for _, k2 := range v2 {
  5678. ee.EncodeUint(uint64(uint(k2)))
  5679. ee.EncodeUint(uint64(v[uint(k2)]))
  5680. }
  5681. }
  5682. } else {
  5683. if esep {
  5684. for k2, v2 := range v {
  5685. ee.WriteMapElemKey()
  5686. ee.EncodeUint(uint64(k2))
  5687. ee.WriteMapElemValue()
  5688. ee.EncodeUint(uint64(v2))
  5689. }
  5690. } else {
  5691. for k2, v2 := range v {
  5692. ee.EncodeUint(uint64(k2))
  5693. ee.EncodeUint(uint64(v2))
  5694. }
  5695. }
  5696. }
  5697. ee.WriteMapEnd()
  5698. }
  5699. func (e *Encoder) fastpathEncMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  5700. fastpathTV.EncMapUintUint64V(rv2i(rv).(map[uint]uint64), e)
  5701. }
  5702. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, e *Encoder) {
  5703. if v == nil {
  5704. e.e.EncodeNil()
  5705. return
  5706. }
  5707. ee, esep := e.e, e.hh.hasElemSeparators()
  5708. ee.WriteMapStart(len(v))
  5709. if e.h.Canonical {
  5710. v2 := make([]uint64, len(v))
  5711. var i int
  5712. for k, _ := range v {
  5713. v2[i] = uint64(k)
  5714. i++
  5715. }
  5716. sort.Sort(uintSlice(v2))
  5717. if esep {
  5718. for _, k2 := range v2 {
  5719. ee.WriteMapElemKey()
  5720. ee.EncodeUint(uint64(uint(k2)))
  5721. ee.WriteMapElemValue()
  5722. ee.EncodeUint(uint64(v[uint(k2)]))
  5723. }
  5724. } else {
  5725. for _, k2 := range v2 {
  5726. ee.EncodeUint(uint64(uint(k2)))
  5727. ee.EncodeUint(uint64(v[uint(k2)]))
  5728. }
  5729. }
  5730. } else {
  5731. if esep {
  5732. for k2, v2 := range v {
  5733. ee.WriteMapElemKey()
  5734. ee.EncodeUint(uint64(k2))
  5735. ee.WriteMapElemValue()
  5736. ee.EncodeUint(uint64(v2))
  5737. }
  5738. } else {
  5739. for k2, v2 := range v {
  5740. ee.EncodeUint(uint64(k2))
  5741. ee.EncodeUint(uint64(v2))
  5742. }
  5743. }
  5744. }
  5745. ee.WriteMapEnd()
  5746. }
  5747. func (e *Encoder) fastpathEncMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  5748. fastpathTV.EncMapUintUintptrV(rv2i(rv).(map[uint]uintptr), e)
  5749. }
  5750. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, e *Encoder) {
  5751. if v == nil {
  5752. e.e.EncodeNil()
  5753. return
  5754. }
  5755. ee, esep := e.e, e.hh.hasElemSeparators()
  5756. ee.WriteMapStart(len(v))
  5757. if e.h.Canonical {
  5758. v2 := make([]uint64, len(v))
  5759. var i int
  5760. for k, _ := range v {
  5761. v2[i] = uint64(k)
  5762. i++
  5763. }
  5764. sort.Sort(uintSlice(v2))
  5765. if esep {
  5766. for _, k2 := range v2 {
  5767. ee.WriteMapElemKey()
  5768. ee.EncodeUint(uint64(uint(k2)))
  5769. ee.WriteMapElemValue()
  5770. e.encode(v[uint(k2)])
  5771. }
  5772. } else {
  5773. for _, k2 := range v2 {
  5774. ee.EncodeUint(uint64(uint(k2)))
  5775. e.encode(v[uint(k2)])
  5776. }
  5777. }
  5778. } else {
  5779. if esep {
  5780. for k2, v2 := range v {
  5781. ee.WriteMapElemKey()
  5782. ee.EncodeUint(uint64(k2))
  5783. ee.WriteMapElemValue()
  5784. e.encode(v2)
  5785. }
  5786. } else {
  5787. for k2, v2 := range v {
  5788. ee.EncodeUint(uint64(k2))
  5789. e.encode(v2)
  5790. }
  5791. }
  5792. }
  5793. ee.WriteMapEnd()
  5794. }
  5795. func (e *Encoder) fastpathEncMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  5796. fastpathTV.EncMapUintIntV(rv2i(rv).(map[uint]int), e)
  5797. }
  5798. func (_ fastpathT) EncMapUintIntV(v map[uint]int, e *Encoder) {
  5799. if v == nil {
  5800. e.e.EncodeNil()
  5801. return
  5802. }
  5803. ee, esep := e.e, e.hh.hasElemSeparators()
  5804. ee.WriteMapStart(len(v))
  5805. if e.h.Canonical {
  5806. v2 := make([]uint64, len(v))
  5807. var i int
  5808. for k, _ := range v {
  5809. v2[i] = uint64(k)
  5810. i++
  5811. }
  5812. sort.Sort(uintSlice(v2))
  5813. if esep {
  5814. for _, k2 := range v2 {
  5815. ee.WriteMapElemKey()
  5816. ee.EncodeUint(uint64(uint(k2)))
  5817. ee.WriteMapElemValue()
  5818. ee.EncodeInt(int64(v[uint(k2)]))
  5819. }
  5820. } else {
  5821. for _, k2 := range v2 {
  5822. ee.EncodeUint(uint64(uint(k2)))
  5823. ee.EncodeInt(int64(v[uint(k2)]))
  5824. }
  5825. }
  5826. } else {
  5827. if esep {
  5828. for k2, v2 := range v {
  5829. ee.WriteMapElemKey()
  5830. ee.EncodeUint(uint64(k2))
  5831. ee.WriteMapElemValue()
  5832. ee.EncodeInt(int64(v2))
  5833. }
  5834. } else {
  5835. for k2, v2 := range v {
  5836. ee.EncodeUint(uint64(k2))
  5837. ee.EncodeInt(int64(v2))
  5838. }
  5839. }
  5840. }
  5841. ee.WriteMapEnd()
  5842. }
  5843. func (e *Encoder) fastpathEncMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  5844. fastpathTV.EncMapUintInt8V(rv2i(rv).(map[uint]int8), e)
  5845. }
  5846. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, e *Encoder) {
  5847. if v == nil {
  5848. e.e.EncodeNil()
  5849. return
  5850. }
  5851. ee, esep := e.e, e.hh.hasElemSeparators()
  5852. ee.WriteMapStart(len(v))
  5853. if e.h.Canonical {
  5854. v2 := make([]uint64, len(v))
  5855. var i int
  5856. for k, _ := range v {
  5857. v2[i] = uint64(k)
  5858. i++
  5859. }
  5860. sort.Sort(uintSlice(v2))
  5861. if esep {
  5862. for _, k2 := range v2 {
  5863. ee.WriteMapElemKey()
  5864. ee.EncodeUint(uint64(uint(k2)))
  5865. ee.WriteMapElemValue()
  5866. ee.EncodeInt(int64(v[uint(k2)]))
  5867. }
  5868. } else {
  5869. for _, k2 := range v2 {
  5870. ee.EncodeUint(uint64(uint(k2)))
  5871. ee.EncodeInt(int64(v[uint(k2)]))
  5872. }
  5873. }
  5874. } else {
  5875. if esep {
  5876. for k2, v2 := range v {
  5877. ee.WriteMapElemKey()
  5878. ee.EncodeUint(uint64(k2))
  5879. ee.WriteMapElemValue()
  5880. ee.EncodeInt(int64(v2))
  5881. }
  5882. } else {
  5883. for k2, v2 := range v {
  5884. ee.EncodeUint(uint64(k2))
  5885. ee.EncodeInt(int64(v2))
  5886. }
  5887. }
  5888. }
  5889. ee.WriteMapEnd()
  5890. }
  5891. func (e *Encoder) fastpathEncMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  5892. fastpathTV.EncMapUintInt16V(rv2i(rv).(map[uint]int16), e)
  5893. }
  5894. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, e *Encoder) {
  5895. if v == nil {
  5896. e.e.EncodeNil()
  5897. return
  5898. }
  5899. ee, esep := e.e, e.hh.hasElemSeparators()
  5900. ee.WriteMapStart(len(v))
  5901. if e.h.Canonical {
  5902. v2 := make([]uint64, len(v))
  5903. var i int
  5904. for k, _ := range v {
  5905. v2[i] = uint64(k)
  5906. i++
  5907. }
  5908. sort.Sort(uintSlice(v2))
  5909. if esep {
  5910. for _, k2 := range v2 {
  5911. ee.WriteMapElemKey()
  5912. ee.EncodeUint(uint64(uint(k2)))
  5913. ee.WriteMapElemValue()
  5914. ee.EncodeInt(int64(v[uint(k2)]))
  5915. }
  5916. } else {
  5917. for _, k2 := range v2 {
  5918. ee.EncodeUint(uint64(uint(k2)))
  5919. ee.EncodeInt(int64(v[uint(k2)]))
  5920. }
  5921. }
  5922. } else {
  5923. if esep {
  5924. for k2, v2 := range v {
  5925. ee.WriteMapElemKey()
  5926. ee.EncodeUint(uint64(k2))
  5927. ee.WriteMapElemValue()
  5928. ee.EncodeInt(int64(v2))
  5929. }
  5930. } else {
  5931. for k2, v2 := range v {
  5932. ee.EncodeUint(uint64(k2))
  5933. ee.EncodeInt(int64(v2))
  5934. }
  5935. }
  5936. }
  5937. ee.WriteMapEnd()
  5938. }
  5939. func (e *Encoder) fastpathEncMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  5940. fastpathTV.EncMapUintInt32V(rv2i(rv).(map[uint]int32), e)
  5941. }
  5942. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, e *Encoder) {
  5943. if v == nil {
  5944. e.e.EncodeNil()
  5945. return
  5946. }
  5947. ee, esep := e.e, e.hh.hasElemSeparators()
  5948. ee.WriteMapStart(len(v))
  5949. if e.h.Canonical {
  5950. v2 := make([]uint64, len(v))
  5951. var i int
  5952. for k, _ := range v {
  5953. v2[i] = uint64(k)
  5954. i++
  5955. }
  5956. sort.Sort(uintSlice(v2))
  5957. if esep {
  5958. for _, k2 := range v2 {
  5959. ee.WriteMapElemKey()
  5960. ee.EncodeUint(uint64(uint(k2)))
  5961. ee.WriteMapElemValue()
  5962. ee.EncodeInt(int64(v[uint(k2)]))
  5963. }
  5964. } else {
  5965. for _, k2 := range v2 {
  5966. ee.EncodeUint(uint64(uint(k2)))
  5967. ee.EncodeInt(int64(v[uint(k2)]))
  5968. }
  5969. }
  5970. } else {
  5971. if esep {
  5972. for k2, v2 := range v {
  5973. ee.WriteMapElemKey()
  5974. ee.EncodeUint(uint64(k2))
  5975. ee.WriteMapElemValue()
  5976. ee.EncodeInt(int64(v2))
  5977. }
  5978. } else {
  5979. for k2, v2 := range v {
  5980. ee.EncodeUint(uint64(k2))
  5981. ee.EncodeInt(int64(v2))
  5982. }
  5983. }
  5984. }
  5985. ee.WriteMapEnd()
  5986. }
  5987. func (e *Encoder) fastpathEncMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  5988. fastpathTV.EncMapUintInt64V(rv2i(rv).(map[uint]int64), e)
  5989. }
  5990. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, e *Encoder) {
  5991. if v == nil {
  5992. e.e.EncodeNil()
  5993. return
  5994. }
  5995. ee, esep := e.e, e.hh.hasElemSeparators()
  5996. ee.WriteMapStart(len(v))
  5997. if e.h.Canonical {
  5998. v2 := make([]uint64, len(v))
  5999. var i int
  6000. for k, _ := range v {
  6001. v2[i] = uint64(k)
  6002. i++
  6003. }
  6004. sort.Sort(uintSlice(v2))
  6005. if esep {
  6006. for _, k2 := range v2 {
  6007. ee.WriteMapElemKey()
  6008. ee.EncodeUint(uint64(uint(k2)))
  6009. ee.WriteMapElemValue()
  6010. ee.EncodeInt(int64(v[uint(k2)]))
  6011. }
  6012. } else {
  6013. for _, k2 := range v2 {
  6014. ee.EncodeUint(uint64(uint(k2)))
  6015. ee.EncodeInt(int64(v[uint(k2)]))
  6016. }
  6017. }
  6018. } else {
  6019. if esep {
  6020. for k2, v2 := range v {
  6021. ee.WriteMapElemKey()
  6022. ee.EncodeUint(uint64(k2))
  6023. ee.WriteMapElemValue()
  6024. ee.EncodeInt(int64(v2))
  6025. }
  6026. } else {
  6027. for k2, v2 := range v {
  6028. ee.EncodeUint(uint64(k2))
  6029. ee.EncodeInt(int64(v2))
  6030. }
  6031. }
  6032. }
  6033. ee.WriteMapEnd()
  6034. }
  6035. func (e *Encoder) fastpathEncMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  6036. fastpathTV.EncMapUintFloat32V(rv2i(rv).(map[uint]float32), e)
  6037. }
  6038. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, e *Encoder) {
  6039. if v == nil {
  6040. e.e.EncodeNil()
  6041. return
  6042. }
  6043. ee, esep := e.e, e.hh.hasElemSeparators()
  6044. ee.WriteMapStart(len(v))
  6045. if e.h.Canonical {
  6046. v2 := make([]uint64, len(v))
  6047. var i int
  6048. for k, _ := range v {
  6049. v2[i] = uint64(k)
  6050. i++
  6051. }
  6052. sort.Sort(uintSlice(v2))
  6053. if esep {
  6054. for _, k2 := range v2 {
  6055. ee.WriteMapElemKey()
  6056. ee.EncodeUint(uint64(uint(k2)))
  6057. ee.WriteMapElemValue()
  6058. ee.EncodeFloat32(v[uint(k2)])
  6059. }
  6060. } else {
  6061. for _, k2 := range v2 {
  6062. ee.EncodeUint(uint64(uint(k2)))
  6063. ee.EncodeFloat32(v[uint(k2)])
  6064. }
  6065. }
  6066. } else {
  6067. if esep {
  6068. for k2, v2 := range v {
  6069. ee.WriteMapElemKey()
  6070. ee.EncodeUint(uint64(k2))
  6071. ee.WriteMapElemValue()
  6072. ee.EncodeFloat32(v2)
  6073. }
  6074. } else {
  6075. for k2, v2 := range v {
  6076. ee.EncodeUint(uint64(k2))
  6077. ee.EncodeFloat32(v2)
  6078. }
  6079. }
  6080. }
  6081. ee.WriteMapEnd()
  6082. }
  6083. func (e *Encoder) fastpathEncMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  6084. fastpathTV.EncMapUintFloat64V(rv2i(rv).(map[uint]float64), e)
  6085. }
  6086. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, e *Encoder) {
  6087. if v == nil {
  6088. e.e.EncodeNil()
  6089. return
  6090. }
  6091. ee, esep := e.e, e.hh.hasElemSeparators()
  6092. ee.WriteMapStart(len(v))
  6093. if e.h.Canonical {
  6094. v2 := make([]uint64, len(v))
  6095. var i int
  6096. for k, _ := range v {
  6097. v2[i] = uint64(k)
  6098. i++
  6099. }
  6100. sort.Sort(uintSlice(v2))
  6101. if esep {
  6102. for _, k2 := range v2 {
  6103. ee.WriteMapElemKey()
  6104. ee.EncodeUint(uint64(uint(k2)))
  6105. ee.WriteMapElemValue()
  6106. ee.EncodeFloat64(v[uint(k2)])
  6107. }
  6108. } else {
  6109. for _, k2 := range v2 {
  6110. ee.EncodeUint(uint64(uint(k2)))
  6111. ee.EncodeFloat64(v[uint(k2)])
  6112. }
  6113. }
  6114. } else {
  6115. if esep {
  6116. for k2, v2 := range v {
  6117. ee.WriteMapElemKey()
  6118. ee.EncodeUint(uint64(k2))
  6119. ee.WriteMapElemValue()
  6120. ee.EncodeFloat64(v2)
  6121. }
  6122. } else {
  6123. for k2, v2 := range v {
  6124. ee.EncodeUint(uint64(k2))
  6125. ee.EncodeFloat64(v2)
  6126. }
  6127. }
  6128. }
  6129. ee.WriteMapEnd()
  6130. }
  6131. func (e *Encoder) fastpathEncMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  6132. fastpathTV.EncMapUintBoolV(rv2i(rv).(map[uint]bool), e)
  6133. }
  6134. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, e *Encoder) {
  6135. if v == nil {
  6136. e.e.EncodeNil()
  6137. return
  6138. }
  6139. ee, esep := e.e, e.hh.hasElemSeparators()
  6140. ee.WriteMapStart(len(v))
  6141. if e.h.Canonical {
  6142. v2 := make([]uint64, len(v))
  6143. var i int
  6144. for k, _ := range v {
  6145. v2[i] = uint64(k)
  6146. i++
  6147. }
  6148. sort.Sort(uintSlice(v2))
  6149. if esep {
  6150. for _, k2 := range v2 {
  6151. ee.WriteMapElemKey()
  6152. ee.EncodeUint(uint64(uint(k2)))
  6153. ee.WriteMapElemValue()
  6154. ee.EncodeBool(v[uint(k2)])
  6155. }
  6156. } else {
  6157. for _, k2 := range v2 {
  6158. ee.EncodeUint(uint64(uint(k2)))
  6159. ee.EncodeBool(v[uint(k2)])
  6160. }
  6161. }
  6162. } else {
  6163. if esep {
  6164. for k2, v2 := range v {
  6165. ee.WriteMapElemKey()
  6166. ee.EncodeUint(uint64(k2))
  6167. ee.WriteMapElemValue()
  6168. ee.EncodeBool(v2)
  6169. }
  6170. } else {
  6171. for k2, v2 := range v {
  6172. ee.EncodeUint(uint64(k2))
  6173. ee.EncodeBool(v2)
  6174. }
  6175. }
  6176. }
  6177. ee.WriteMapEnd()
  6178. }
  6179. func (e *Encoder) fastpathEncMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  6180. fastpathTV.EncMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), e)
  6181. }
  6182. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, e *Encoder) {
  6183. if v == nil {
  6184. e.e.EncodeNil()
  6185. return
  6186. }
  6187. ee, esep := e.e, e.hh.hasElemSeparators()
  6188. ee.WriteMapStart(len(v))
  6189. if e.h.Canonical {
  6190. v2 := make([]uint64, len(v))
  6191. var i int
  6192. for k, _ := range v {
  6193. v2[i] = uint64(k)
  6194. i++
  6195. }
  6196. sort.Sort(uintSlice(v2))
  6197. if esep {
  6198. for _, k2 := range v2 {
  6199. ee.WriteMapElemKey()
  6200. ee.EncodeUint(uint64(uint8(k2)))
  6201. ee.WriteMapElemValue()
  6202. e.encode(v[uint8(k2)])
  6203. }
  6204. } else {
  6205. for _, k2 := range v2 {
  6206. ee.EncodeUint(uint64(uint8(k2)))
  6207. e.encode(v[uint8(k2)])
  6208. }
  6209. }
  6210. } else {
  6211. if esep {
  6212. for k2, v2 := range v {
  6213. ee.WriteMapElemKey()
  6214. ee.EncodeUint(uint64(k2))
  6215. ee.WriteMapElemValue()
  6216. e.encode(v2)
  6217. }
  6218. } else {
  6219. for k2, v2 := range v {
  6220. ee.EncodeUint(uint64(k2))
  6221. e.encode(v2)
  6222. }
  6223. }
  6224. }
  6225. ee.WriteMapEnd()
  6226. }
  6227. func (e *Encoder) fastpathEncMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  6228. fastpathTV.EncMapUint8StringV(rv2i(rv).(map[uint8]string), e)
  6229. }
  6230. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, e *Encoder) {
  6231. if v == nil {
  6232. e.e.EncodeNil()
  6233. return
  6234. }
  6235. ee, esep := e.e, e.hh.hasElemSeparators()
  6236. ee.WriteMapStart(len(v))
  6237. if e.h.Canonical {
  6238. v2 := make([]uint64, len(v))
  6239. var i int
  6240. for k, _ := range v {
  6241. v2[i] = uint64(k)
  6242. i++
  6243. }
  6244. sort.Sort(uintSlice(v2))
  6245. if esep {
  6246. for _, k2 := range v2 {
  6247. ee.WriteMapElemKey()
  6248. ee.EncodeUint(uint64(uint8(k2)))
  6249. ee.WriteMapElemValue()
  6250. ee.EncodeString(cUTF8, v[uint8(k2)])
  6251. }
  6252. } else {
  6253. for _, k2 := range v2 {
  6254. ee.EncodeUint(uint64(uint8(k2)))
  6255. ee.EncodeString(cUTF8, v[uint8(k2)])
  6256. }
  6257. }
  6258. } else {
  6259. if esep {
  6260. for k2, v2 := range v {
  6261. ee.WriteMapElemKey()
  6262. ee.EncodeUint(uint64(k2))
  6263. ee.WriteMapElemValue()
  6264. ee.EncodeString(cUTF8, v2)
  6265. }
  6266. } else {
  6267. for k2, v2 := range v {
  6268. ee.EncodeUint(uint64(k2))
  6269. ee.EncodeString(cUTF8, v2)
  6270. }
  6271. }
  6272. }
  6273. ee.WriteMapEnd()
  6274. }
  6275. func (e *Encoder) fastpathEncMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  6276. fastpathTV.EncMapUint8UintV(rv2i(rv).(map[uint8]uint), e)
  6277. }
  6278. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, e *Encoder) {
  6279. if v == nil {
  6280. e.e.EncodeNil()
  6281. return
  6282. }
  6283. ee, esep := e.e, e.hh.hasElemSeparators()
  6284. ee.WriteMapStart(len(v))
  6285. if e.h.Canonical {
  6286. v2 := make([]uint64, len(v))
  6287. var i int
  6288. for k, _ := range v {
  6289. v2[i] = uint64(k)
  6290. i++
  6291. }
  6292. sort.Sort(uintSlice(v2))
  6293. if esep {
  6294. for _, k2 := range v2 {
  6295. ee.WriteMapElemKey()
  6296. ee.EncodeUint(uint64(uint8(k2)))
  6297. ee.WriteMapElemValue()
  6298. ee.EncodeUint(uint64(v[uint8(k2)]))
  6299. }
  6300. } else {
  6301. for _, k2 := range v2 {
  6302. ee.EncodeUint(uint64(uint8(k2)))
  6303. ee.EncodeUint(uint64(v[uint8(k2)]))
  6304. }
  6305. }
  6306. } else {
  6307. if esep {
  6308. for k2, v2 := range v {
  6309. ee.WriteMapElemKey()
  6310. ee.EncodeUint(uint64(k2))
  6311. ee.WriteMapElemValue()
  6312. ee.EncodeUint(uint64(v2))
  6313. }
  6314. } else {
  6315. for k2, v2 := range v {
  6316. ee.EncodeUint(uint64(k2))
  6317. ee.EncodeUint(uint64(v2))
  6318. }
  6319. }
  6320. }
  6321. ee.WriteMapEnd()
  6322. }
  6323. func (e *Encoder) fastpathEncMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  6324. fastpathTV.EncMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), e)
  6325. }
  6326. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, e *Encoder) {
  6327. if v == nil {
  6328. e.e.EncodeNil()
  6329. return
  6330. }
  6331. ee, esep := e.e, e.hh.hasElemSeparators()
  6332. ee.WriteMapStart(len(v))
  6333. if e.h.Canonical {
  6334. v2 := make([]uint64, len(v))
  6335. var i int
  6336. for k, _ := range v {
  6337. v2[i] = uint64(k)
  6338. i++
  6339. }
  6340. sort.Sort(uintSlice(v2))
  6341. if esep {
  6342. for _, k2 := range v2 {
  6343. ee.WriteMapElemKey()
  6344. ee.EncodeUint(uint64(uint8(k2)))
  6345. ee.WriteMapElemValue()
  6346. ee.EncodeUint(uint64(v[uint8(k2)]))
  6347. }
  6348. } else {
  6349. for _, k2 := range v2 {
  6350. ee.EncodeUint(uint64(uint8(k2)))
  6351. ee.EncodeUint(uint64(v[uint8(k2)]))
  6352. }
  6353. }
  6354. } else {
  6355. if esep {
  6356. for k2, v2 := range v {
  6357. ee.WriteMapElemKey()
  6358. ee.EncodeUint(uint64(k2))
  6359. ee.WriteMapElemValue()
  6360. ee.EncodeUint(uint64(v2))
  6361. }
  6362. } else {
  6363. for k2, v2 := range v {
  6364. ee.EncodeUint(uint64(k2))
  6365. ee.EncodeUint(uint64(v2))
  6366. }
  6367. }
  6368. }
  6369. ee.WriteMapEnd()
  6370. }
  6371. func (e *Encoder) fastpathEncMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  6372. fastpathTV.EncMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), e)
  6373. }
  6374. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, e *Encoder) {
  6375. if v == nil {
  6376. e.e.EncodeNil()
  6377. return
  6378. }
  6379. ee, esep := e.e, e.hh.hasElemSeparators()
  6380. ee.WriteMapStart(len(v))
  6381. if e.h.Canonical {
  6382. v2 := make([]uint64, len(v))
  6383. var i int
  6384. for k, _ := range v {
  6385. v2[i] = uint64(k)
  6386. i++
  6387. }
  6388. sort.Sort(uintSlice(v2))
  6389. if esep {
  6390. for _, k2 := range v2 {
  6391. ee.WriteMapElemKey()
  6392. ee.EncodeUint(uint64(uint8(k2)))
  6393. ee.WriteMapElemValue()
  6394. ee.EncodeUint(uint64(v[uint8(k2)]))
  6395. }
  6396. } else {
  6397. for _, k2 := range v2 {
  6398. ee.EncodeUint(uint64(uint8(k2)))
  6399. ee.EncodeUint(uint64(v[uint8(k2)]))
  6400. }
  6401. }
  6402. } else {
  6403. if esep {
  6404. for k2, v2 := range v {
  6405. ee.WriteMapElemKey()
  6406. ee.EncodeUint(uint64(k2))
  6407. ee.WriteMapElemValue()
  6408. ee.EncodeUint(uint64(v2))
  6409. }
  6410. } else {
  6411. for k2, v2 := range v {
  6412. ee.EncodeUint(uint64(k2))
  6413. ee.EncodeUint(uint64(v2))
  6414. }
  6415. }
  6416. }
  6417. ee.WriteMapEnd()
  6418. }
  6419. func (e *Encoder) fastpathEncMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  6420. fastpathTV.EncMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), e)
  6421. }
  6422. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, e *Encoder) {
  6423. if v == nil {
  6424. e.e.EncodeNil()
  6425. return
  6426. }
  6427. ee, esep := e.e, e.hh.hasElemSeparators()
  6428. ee.WriteMapStart(len(v))
  6429. if e.h.Canonical {
  6430. v2 := make([]uint64, len(v))
  6431. var i int
  6432. for k, _ := range v {
  6433. v2[i] = uint64(k)
  6434. i++
  6435. }
  6436. sort.Sort(uintSlice(v2))
  6437. if esep {
  6438. for _, k2 := range v2 {
  6439. ee.WriteMapElemKey()
  6440. ee.EncodeUint(uint64(uint8(k2)))
  6441. ee.WriteMapElemValue()
  6442. ee.EncodeUint(uint64(v[uint8(k2)]))
  6443. }
  6444. } else {
  6445. for _, k2 := range v2 {
  6446. ee.EncodeUint(uint64(uint8(k2)))
  6447. ee.EncodeUint(uint64(v[uint8(k2)]))
  6448. }
  6449. }
  6450. } else {
  6451. if esep {
  6452. for k2, v2 := range v {
  6453. ee.WriteMapElemKey()
  6454. ee.EncodeUint(uint64(k2))
  6455. ee.WriteMapElemValue()
  6456. ee.EncodeUint(uint64(v2))
  6457. }
  6458. } else {
  6459. for k2, v2 := range v {
  6460. ee.EncodeUint(uint64(k2))
  6461. ee.EncodeUint(uint64(v2))
  6462. }
  6463. }
  6464. }
  6465. ee.WriteMapEnd()
  6466. }
  6467. func (e *Encoder) fastpathEncMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  6468. fastpathTV.EncMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), e)
  6469. }
  6470. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, e *Encoder) {
  6471. if v == nil {
  6472. e.e.EncodeNil()
  6473. return
  6474. }
  6475. ee, esep := e.e, e.hh.hasElemSeparators()
  6476. ee.WriteMapStart(len(v))
  6477. if e.h.Canonical {
  6478. v2 := make([]uint64, len(v))
  6479. var i int
  6480. for k, _ := range v {
  6481. v2[i] = uint64(k)
  6482. i++
  6483. }
  6484. sort.Sort(uintSlice(v2))
  6485. if esep {
  6486. for _, k2 := range v2 {
  6487. ee.WriteMapElemKey()
  6488. ee.EncodeUint(uint64(uint8(k2)))
  6489. ee.WriteMapElemValue()
  6490. ee.EncodeUint(uint64(v[uint8(k2)]))
  6491. }
  6492. } else {
  6493. for _, k2 := range v2 {
  6494. ee.EncodeUint(uint64(uint8(k2)))
  6495. ee.EncodeUint(uint64(v[uint8(k2)]))
  6496. }
  6497. }
  6498. } else {
  6499. if esep {
  6500. for k2, v2 := range v {
  6501. ee.WriteMapElemKey()
  6502. ee.EncodeUint(uint64(k2))
  6503. ee.WriteMapElemValue()
  6504. ee.EncodeUint(uint64(v2))
  6505. }
  6506. } else {
  6507. for k2, v2 := range v {
  6508. ee.EncodeUint(uint64(k2))
  6509. ee.EncodeUint(uint64(v2))
  6510. }
  6511. }
  6512. }
  6513. ee.WriteMapEnd()
  6514. }
  6515. func (e *Encoder) fastpathEncMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  6516. fastpathTV.EncMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), e)
  6517. }
  6518. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, e *Encoder) {
  6519. if v == nil {
  6520. e.e.EncodeNil()
  6521. return
  6522. }
  6523. ee, esep := e.e, e.hh.hasElemSeparators()
  6524. ee.WriteMapStart(len(v))
  6525. if e.h.Canonical {
  6526. v2 := make([]uint64, len(v))
  6527. var i int
  6528. for k, _ := range v {
  6529. v2[i] = uint64(k)
  6530. i++
  6531. }
  6532. sort.Sort(uintSlice(v2))
  6533. if esep {
  6534. for _, k2 := range v2 {
  6535. ee.WriteMapElemKey()
  6536. ee.EncodeUint(uint64(uint8(k2)))
  6537. ee.WriteMapElemValue()
  6538. e.encode(v[uint8(k2)])
  6539. }
  6540. } else {
  6541. for _, k2 := range v2 {
  6542. ee.EncodeUint(uint64(uint8(k2)))
  6543. e.encode(v[uint8(k2)])
  6544. }
  6545. }
  6546. } else {
  6547. if esep {
  6548. for k2, v2 := range v {
  6549. ee.WriteMapElemKey()
  6550. ee.EncodeUint(uint64(k2))
  6551. ee.WriteMapElemValue()
  6552. e.encode(v2)
  6553. }
  6554. } else {
  6555. for k2, v2 := range v {
  6556. ee.EncodeUint(uint64(k2))
  6557. e.encode(v2)
  6558. }
  6559. }
  6560. }
  6561. ee.WriteMapEnd()
  6562. }
  6563. func (e *Encoder) fastpathEncMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  6564. fastpathTV.EncMapUint8IntV(rv2i(rv).(map[uint8]int), e)
  6565. }
  6566. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, e *Encoder) {
  6567. if v == nil {
  6568. e.e.EncodeNil()
  6569. return
  6570. }
  6571. ee, esep := e.e, e.hh.hasElemSeparators()
  6572. ee.WriteMapStart(len(v))
  6573. if e.h.Canonical {
  6574. v2 := make([]uint64, len(v))
  6575. var i int
  6576. for k, _ := range v {
  6577. v2[i] = uint64(k)
  6578. i++
  6579. }
  6580. sort.Sort(uintSlice(v2))
  6581. if esep {
  6582. for _, k2 := range v2 {
  6583. ee.WriteMapElemKey()
  6584. ee.EncodeUint(uint64(uint8(k2)))
  6585. ee.WriteMapElemValue()
  6586. ee.EncodeInt(int64(v[uint8(k2)]))
  6587. }
  6588. } else {
  6589. for _, k2 := range v2 {
  6590. ee.EncodeUint(uint64(uint8(k2)))
  6591. ee.EncodeInt(int64(v[uint8(k2)]))
  6592. }
  6593. }
  6594. } else {
  6595. if esep {
  6596. for k2, v2 := range v {
  6597. ee.WriteMapElemKey()
  6598. ee.EncodeUint(uint64(k2))
  6599. ee.WriteMapElemValue()
  6600. ee.EncodeInt(int64(v2))
  6601. }
  6602. } else {
  6603. for k2, v2 := range v {
  6604. ee.EncodeUint(uint64(k2))
  6605. ee.EncodeInt(int64(v2))
  6606. }
  6607. }
  6608. }
  6609. ee.WriteMapEnd()
  6610. }
  6611. func (e *Encoder) fastpathEncMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  6612. fastpathTV.EncMapUint8Int8V(rv2i(rv).(map[uint8]int8), e)
  6613. }
  6614. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, e *Encoder) {
  6615. if v == nil {
  6616. e.e.EncodeNil()
  6617. return
  6618. }
  6619. ee, esep := e.e, e.hh.hasElemSeparators()
  6620. ee.WriteMapStart(len(v))
  6621. if e.h.Canonical {
  6622. v2 := make([]uint64, len(v))
  6623. var i int
  6624. for k, _ := range v {
  6625. v2[i] = uint64(k)
  6626. i++
  6627. }
  6628. sort.Sort(uintSlice(v2))
  6629. if esep {
  6630. for _, k2 := range v2 {
  6631. ee.WriteMapElemKey()
  6632. ee.EncodeUint(uint64(uint8(k2)))
  6633. ee.WriteMapElemValue()
  6634. ee.EncodeInt(int64(v[uint8(k2)]))
  6635. }
  6636. } else {
  6637. for _, k2 := range v2 {
  6638. ee.EncodeUint(uint64(uint8(k2)))
  6639. ee.EncodeInt(int64(v[uint8(k2)]))
  6640. }
  6641. }
  6642. } else {
  6643. if esep {
  6644. for k2, v2 := range v {
  6645. ee.WriteMapElemKey()
  6646. ee.EncodeUint(uint64(k2))
  6647. ee.WriteMapElemValue()
  6648. ee.EncodeInt(int64(v2))
  6649. }
  6650. } else {
  6651. for k2, v2 := range v {
  6652. ee.EncodeUint(uint64(k2))
  6653. ee.EncodeInt(int64(v2))
  6654. }
  6655. }
  6656. }
  6657. ee.WriteMapEnd()
  6658. }
  6659. func (e *Encoder) fastpathEncMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  6660. fastpathTV.EncMapUint8Int16V(rv2i(rv).(map[uint8]int16), e)
  6661. }
  6662. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, e *Encoder) {
  6663. if v == nil {
  6664. e.e.EncodeNil()
  6665. return
  6666. }
  6667. ee, esep := e.e, e.hh.hasElemSeparators()
  6668. ee.WriteMapStart(len(v))
  6669. if e.h.Canonical {
  6670. v2 := make([]uint64, len(v))
  6671. var i int
  6672. for k, _ := range v {
  6673. v2[i] = uint64(k)
  6674. i++
  6675. }
  6676. sort.Sort(uintSlice(v2))
  6677. if esep {
  6678. for _, k2 := range v2 {
  6679. ee.WriteMapElemKey()
  6680. ee.EncodeUint(uint64(uint8(k2)))
  6681. ee.WriteMapElemValue()
  6682. ee.EncodeInt(int64(v[uint8(k2)]))
  6683. }
  6684. } else {
  6685. for _, k2 := range v2 {
  6686. ee.EncodeUint(uint64(uint8(k2)))
  6687. ee.EncodeInt(int64(v[uint8(k2)]))
  6688. }
  6689. }
  6690. } else {
  6691. if esep {
  6692. for k2, v2 := range v {
  6693. ee.WriteMapElemKey()
  6694. ee.EncodeUint(uint64(k2))
  6695. ee.WriteMapElemValue()
  6696. ee.EncodeInt(int64(v2))
  6697. }
  6698. } else {
  6699. for k2, v2 := range v {
  6700. ee.EncodeUint(uint64(k2))
  6701. ee.EncodeInt(int64(v2))
  6702. }
  6703. }
  6704. }
  6705. ee.WriteMapEnd()
  6706. }
  6707. func (e *Encoder) fastpathEncMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  6708. fastpathTV.EncMapUint8Int32V(rv2i(rv).(map[uint8]int32), e)
  6709. }
  6710. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, e *Encoder) {
  6711. if v == nil {
  6712. e.e.EncodeNil()
  6713. return
  6714. }
  6715. ee, esep := e.e, e.hh.hasElemSeparators()
  6716. ee.WriteMapStart(len(v))
  6717. if e.h.Canonical {
  6718. v2 := make([]uint64, len(v))
  6719. var i int
  6720. for k, _ := range v {
  6721. v2[i] = uint64(k)
  6722. i++
  6723. }
  6724. sort.Sort(uintSlice(v2))
  6725. if esep {
  6726. for _, k2 := range v2 {
  6727. ee.WriteMapElemKey()
  6728. ee.EncodeUint(uint64(uint8(k2)))
  6729. ee.WriteMapElemValue()
  6730. ee.EncodeInt(int64(v[uint8(k2)]))
  6731. }
  6732. } else {
  6733. for _, k2 := range v2 {
  6734. ee.EncodeUint(uint64(uint8(k2)))
  6735. ee.EncodeInt(int64(v[uint8(k2)]))
  6736. }
  6737. }
  6738. } else {
  6739. if esep {
  6740. for k2, v2 := range v {
  6741. ee.WriteMapElemKey()
  6742. ee.EncodeUint(uint64(k2))
  6743. ee.WriteMapElemValue()
  6744. ee.EncodeInt(int64(v2))
  6745. }
  6746. } else {
  6747. for k2, v2 := range v {
  6748. ee.EncodeUint(uint64(k2))
  6749. ee.EncodeInt(int64(v2))
  6750. }
  6751. }
  6752. }
  6753. ee.WriteMapEnd()
  6754. }
  6755. func (e *Encoder) fastpathEncMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  6756. fastpathTV.EncMapUint8Int64V(rv2i(rv).(map[uint8]int64), e)
  6757. }
  6758. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, e *Encoder) {
  6759. if v == nil {
  6760. e.e.EncodeNil()
  6761. return
  6762. }
  6763. ee, esep := e.e, e.hh.hasElemSeparators()
  6764. ee.WriteMapStart(len(v))
  6765. if e.h.Canonical {
  6766. v2 := make([]uint64, len(v))
  6767. var i int
  6768. for k, _ := range v {
  6769. v2[i] = uint64(k)
  6770. i++
  6771. }
  6772. sort.Sort(uintSlice(v2))
  6773. if esep {
  6774. for _, k2 := range v2 {
  6775. ee.WriteMapElemKey()
  6776. ee.EncodeUint(uint64(uint8(k2)))
  6777. ee.WriteMapElemValue()
  6778. ee.EncodeInt(int64(v[uint8(k2)]))
  6779. }
  6780. } else {
  6781. for _, k2 := range v2 {
  6782. ee.EncodeUint(uint64(uint8(k2)))
  6783. ee.EncodeInt(int64(v[uint8(k2)]))
  6784. }
  6785. }
  6786. } else {
  6787. if esep {
  6788. for k2, v2 := range v {
  6789. ee.WriteMapElemKey()
  6790. ee.EncodeUint(uint64(k2))
  6791. ee.WriteMapElemValue()
  6792. ee.EncodeInt(int64(v2))
  6793. }
  6794. } else {
  6795. for k2, v2 := range v {
  6796. ee.EncodeUint(uint64(k2))
  6797. ee.EncodeInt(int64(v2))
  6798. }
  6799. }
  6800. }
  6801. ee.WriteMapEnd()
  6802. }
  6803. func (e *Encoder) fastpathEncMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  6804. fastpathTV.EncMapUint8Float32V(rv2i(rv).(map[uint8]float32), e)
  6805. }
  6806. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, e *Encoder) {
  6807. if v == nil {
  6808. e.e.EncodeNil()
  6809. return
  6810. }
  6811. ee, esep := e.e, e.hh.hasElemSeparators()
  6812. ee.WriteMapStart(len(v))
  6813. if e.h.Canonical {
  6814. v2 := make([]uint64, len(v))
  6815. var i int
  6816. for k, _ := range v {
  6817. v2[i] = uint64(k)
  6818. i++
  6819. }
  6820. sort.Sort(uintSlice(v2))
  6821. if esep {
  6822. for _, k2 := range v2 {
  6823. ee.WriteMapElemKey()
  6824. ee.EncodeUint(uint64(uint8(k2)))
  6825. ee.WriteMapElemValue()
  6826. ee.EncodeFloat32(v[uint8(k2)])
  6827. }
  6828. } else {
  6829. for _, k2 := range v2 {
  6830. ee.EncodeUint(uint64(uint8(k2)))
  6831. ee.EncodeFloat32(v[uint8(k2)])
  6832. }
  6833. }
  6834. } else {
  6835. if esep {
  6836. for k2, v2 := range v {
  6837. ee.WriteMapElemKey()
  6838. ee.EncodeUint(uint64(k2))
  6839. ee.WriteMapElemValue()
  6840. ee.EncodeFloat32(v2)
  6841. }
  6842. } else {
  6843. for k2, v2 := range v {
  6844. ee.EncodeUint(uint64(k2))
  6845. ee.EncodeFloat32(v2)
  6846. }
  6847. }
  6848. }
  6849. ee.WriteMapEnd()
  6850. }
  6851. func (e *Encoder) fastpathEncMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  6852. fastpathTV.EncMapUint8Float64V(rv2i(rv).(map[uint8]float64), e)
  6853. }
  6854. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, e *Encoder) {
  6855. if v == nil {
  6856. e.e.EncodeNil()
  6857. return
  6858. }
  6859. ee, esep := e.e, e.hh.hasElemSeparators()
  6860. ee.WriteMapStart(len(v))
  6861. if e.h.Canonical {
  6862. v2 := make([]uint64, len(v))
  6863. var i int
  6864. for k, _ := range v {
  6865. v2[i] = uint64(k)
  6866. i++
  6867. }
  6868. sort.Sort(uintSlice(v2))
  6869. if esep {
  6870. for _, k2 := range v2 {
  6871. ee.WriteMapElemKey()
  6872. ee.EncodeUint(uint64(uint8(k2)))
  6873. ee.WriteMapElemValue()
  6874. ee.EncodeFloat64(v[uint8(k2)])
  6875. }
  6876. } else {
  6877. for _, k2 := range v2 {
  6878. ee.EncodeUint(uint64(uint8(k2)))
  6879. ee.EncodeFloat64(v[uint8(k2)])
  6880. }
  6881. }
  6882. } else {
  6883. if esep {
  6884. for k2, v2 := range v {
  6885. ee.WriteMapElemKey()
  6886. ee.EncodeUint(uint64(k2))
  6887. ee.WriteMapElemValue()
  6888. ee.EncodeFloat64(v2)
  6889. }
  6890. } else {
  6891. for k2, v2 := range v {
  6892. ee.EncodeUint(uint64(k2))
  6893. ee.EncodeFloat64(v2)
  6894. }
  6895. }
  6896. }
  6897. ee.WriteMapEnd()
  6898. }
  6899. func (e *Encoder) fastpathEncMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  6900. fastpathTV.EncMapUint8BoolV(rv2i(rv).(map[uint8]bool), e)
  6901. }
  6902. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, e *Encoder) {
  6903. if v == nil {
  6904. e.e.EncodeNil()
  6905. return
  6906. }
  6907. ee, esep := e.e, e.hh.hasElemSeparators()
  6908. ee.WriteMapStart(len(v))
  6909. if e.h.Canonical {
  6910. v2 := make([]uint64, len(v))
  6911. var i int
  6912. for k, _ := range v {
  6913. v2[i] = uint64(k)
  6914. i++
  6915. }
  6916. sort.Sort(uintSlice(v2))
  6917. if esep {
  6918. for _, k2 := range v2 {
  6919. ee.WriteMapElemKey()
  6920. ee.EncodeUint(uint64(uint8(k2)))
  6921. ee.WriteMapElemValue()
  6922. ee.EncodeBool(v[uint8(k2)])
  6923. }
  6924. } else {
  6925. for _, k2 := range v2 {
  6926. ee.EncodeUint(uint64(uint8(k2)))
  6927. ee.EncodeBool(v[uint8(k2)])
  6928. }
  6929. }
  6930. } else {
  6931. if esep {
  6932. for k2, v2 := range v {
  6933. ee.WriteMapElemKey()
  6934. ee.EncodeUint(uint64(k2))
  6935. ee.WriteMapElemValue()
  6936. ee.EncodeBool(v2)
  6937. }
  6938. } else {
  6939. for k2, v2 := range v {
  6940. ee.EncodeUint(uint64(k2))
  6941. ee.EncodeBool(v2)
  6942. }
  6943. }
  6944. }
  6945. ee.WriteMapEnd()
  6946. }
  6947. func (e *Encoder) fastpathEncMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  6948. fastpathTV.EncMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), e)
  6949. }
  6950. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, e *Encoder) {
  6951. if v == nil {
  6952. e.e.EncodeNil()
  6953. return
  6954. }
  6955. ee, esep := e.e, e.hh.hasElemSeparators()
  6956. ee.WriteMapStart(len(v))
  6957. if e.h.Canonical {
  6958. v2 := make([]uint64, len(v))
  6959. var i int
  6960. for k, _ := range v {
  6961. v2[i] = uint64(k)
  6962. i++
  6963. }
  6964. sort.Sort(uintSlice(v2))
  6965. if esep {
  6966. for _, k2 := range v2 {
  6967. ee.WriteMapElemKey()
  6968. ee.EncodeUint(uint64(uint16(k2)))
  6969. ee.WriteMapElemValue()
  6970. e.encode(v[uint16(k2)])
  6971. }
  6972. } else {
  6973. for _, k2 := range v2 {
  6974. ee.EncodeUint(uint64(uint16(k2)))
  6975. e.encode(v[uint16(k2)])
  6976. }
  6977. }
  6978. } else {
  6979. if esep {
  6980. for k2, v2 := range v {
  6981. ee.WriteMapElemKey()
  6982. ee.EncodeUint(uint64(k2))
  6983. ee.WriteMapElemValue()
  6984. e.encode(v2)
  6985. }
  6986. } else {
  6987. for k2, v2 := range v {
  6988. ee.EncodeUint(uint64(k2))
  6989. e.encode(v2)
  6990. }
  6991. }
  6992. }
  6993. ee.WriteMapEnd()
  6994. }
  6995. func (e *Encoder) fastpathEncMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  6996. fastpathTV.EncMapUint16StringV(rv2i(rv).(map[uint16]string), e)
  6997. }
  6998. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, e *Encoder) {
  6999. if v == nil {
  7000. e.e.EncodeNil()
  7001. return
  7002. }
  7003. ee, esep := e.e, e.hh.hasElemSeparators()
  7004. ee.WriteMapStart(len(v))
  7005. if e.h.Canonical {
  7006. v2 := make([]uint64, len(v))
  7007. var i int
  7008. for k, _ := range v {
  7009. v2[i] = uint64(k)
  7010. i++
  7011. }
  7012. sort.Sort(uintSlice(v2))
  7013. if esep {
  7014. for _, k2 := range v2 {
  7015. ee.WriteMapElemKey()
  7016. ee.EncodeUint(uint64(uint16(k2)))
  7017. ee.WriteMapElemValue()
  7018. ee.EncodeString(cUTF8, v[uint16(k2)])
  7019. }
  7020. } else {
  7021. for _, k2 := range v2 {
  7022. ee.EncodeUint(uint64(uint16(k2)))
  7023. ee.EncodeString(cUTF8, v[uint16(k2)])
  7024. }
  7025. }
  7026. } else {
  7027. if esep {
  7028. for k2, v2 := range v {
  7029. ee.WriteMapElemKey()
  7030. ee.EncodeUint(uint64(k2))
  7031. ee.WriteMapElemValue()
  7032. ee.EncodeString(cUTF8, v2)
  7033. }
  7034. } else {
  7035. for k2, v2 := range v {
  7036. ee.EncodeUint(uint64(k2))
  7037. ee.EncodeString(cUTF8, v2)
  7038. }
  7039. }
  7040. }
  7041. ee.WriteMapEnd()
  7042. }
  7043. func (e *Encoder) fastpathEncMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  7044. fastpathTV.EncMapUint16UintV(rv2i(rv).(map[uint16]uint), e)
  7045. }
  7046. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, e *Encoder) {
  7047. if v == nil {
  7048. e.e.EncodeNil()
  7049. return
  7050. }
  7051. ee, esep := e.e, e.hh.hasElemSeparators()
  7052. ee.WriteMapStart(len(v))
  7053. if e.h.Canonical {
  7054. v2 := make([]uint64, len(v))
  7055. var i int
  7056. for k, _ := range v {
  7057. v2[i] = uint64(k)
  7058. i++
  7059. }
  7060. sort.Sort(uintSlice(v2))
  7061. if esep {
  7062. for _, k2 := range v2 {
  7063. ee.WriteMapElemKey()
  7064. ee.EncodeUint(uint64(uint16(k2)))
  7065. ee.WriteMapElemValue()
  7066. ee.EncodeUint(uint64(v[uint16(k2)]))
  7067. }
  7068. } else {
  7069. for _, k2 := range v2 {
  7070. ee.EncodeUint(uint64(uint16(k2)))
  7071. ee.EncodeUint(uint64(v[uint16(k2)]))
  7072. }
  7073. }
  7074. } else {
  7075. if esep {
  7076. for k2, v2 := range v {
  7077. ee.WriteMapElemKey()
  7078. ee.EncodeUint(uint64(k2))
  7079. ee.WriteMapElemValue()
  7080. ee.EncodeUint(uint64(v2))
  7081. }
  7082. } else {
  7083. for k2, v2 := range v {
  7084. ee.EncodeUint(uint64(k2))
  7085. ee.EncodeUint(uint64(v2))
  7086. }
  7087. }
  7088. }
  7089. ee.WriteMapEnd()
  7090. }
  7091. func (e *Encoder) fastpathEncMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  7092. fastpathTV.EncMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), e)
  7093. }
  7094. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, e *Encoder) {
  7095. if v == nil {
  7096. e.e.EncodeNil()
  7097. return
  7098. }
  7099. ee, esep := e.e, e.hh.hasElemSeparators()
  7100. ee.WriteMapStart(len(v))
  7101. if e.h.Canonical {
  7102. v2 := make([]uint64, len(v))
  7103. var i int
  7104. for k, _ := range v {
  7105. v2[i] = uint64(k)
  7106. i++
  7107. }
  7108. sort.Sort(uintSlice(v2))
  7109. if esep {
  7110. for _, k2 := range v2 {
  7111. ee.WriteMapElemKey()
  7112. ee.EncodeUint(uint64(uint16(k2)))
  7113. ee.WriteMapElemValue()
  7114. ee.EncodeUint(uint64(v[uint16(k2)]))
  7115. }
  7116. } else {
  7117. for _, k2 := range v2 {
  7118. ee.EncodeUint(uint64(uint16(k2)))
  7119. ee.EncodeUint(uint64(v[uint16(k2)]))
  7120. }
  7121. }
  7122. } else {
  7123. if esep {
  7124. for k2, v2 := range v {
  7125. ee.WriteMapElemKey()
  7126. ee.EncodeUint(uint64(k2))
  7127. ee.WriteMapElemValue()
  7128. ee.EncodeUint(uint64(v2))
  7129. }
  7130. } else {
  7131. for k2, v2 := range v {
  7132. ee.EncodeUint(uint64(k2))
  7133. ee.EncodeUint(uint64(v2))
  7134. }
  7135. }
  7136. }
  7137. ee.WriteMapEnd()
  7138. }
  7139. func (e *Encoder) fastpathEncMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  7140. fastpathTV.EncMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), e)
  7141. }
  7142. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, e *Encoder) {
  7143. if v == nil {
  7144. e.e.EncodeNil()
  7145. return
  7146. }
  7147. ee, esep := e.e, e.hh.hasElemSeparators()
  7148. ee.WriteMapStart(len(v))
  7149. if e.h.Canonical {
  7150. v2 := make([]uint64, len(v))
  7151. var i int
  7152. for k, _ := range v {
  7153. v2[i] = uint64(k)
  7154. i++
  7155. }
  7156. sort.Sort(uintSlice(v2))
  7157. if esep {
  7158. for _, k2 := range v2 {
  7159. ee.WriteMapElemKey()
  7160. ee.EncodeUint(uint64(uint16(k2)))
  7161. ee.WriteMapElemValue()
  7162. ee.EncodeUint(uint64(v[uint16(k2)]))
  7163. }
  7164. } else {
  7165. for _, k2 := range v2 {
  7166. ee.EncodeUint(uint64(uint16(k2)))
  7167. ee.EncodeUint(uint64(v[uint16(k2)]))
  7168. }
  7169. }
  7170. } else {
  7171. if esep {
  7172. for k2, v2 := range v {
  7173. ee.WriteMapElemKey()
  7174. ee.EncodeUint(uint64(k2))
  7175. ee.WriteMapElemValue()
  7176. ee.EncodeUint(uint64(v2))
  7177. }
  7178. } else {
  7179. for k2, v2 := range v {
  7180. ee.EncodeUint(uint64(k2))
  7181. ee.EncodeUint(uint64(v2))
  7182. }
  7183. }
  7184. }
  7185. ee.WriteMapEnd()
  7186. }
  7187. func (e *Encoder) fastpathEncMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  7188. fastpathTV.EncMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), e)
  7189. }
  7190. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, e *Encoder) {
  7191. if v == nil {
  7192. e.e.EncodeNil()
  7193. return
  7194. }
  7195. ee, esep := e.e, e.hh.hasElemSeparators()
  7196. ee.WriteMapStart(len(v))
  7197. if e.h.Canonical {
  7198. v2 := make([]uint64, len(v))
  7199. var i int
  7200. for k, _ := range v {
  7201. v2[i] = uint64(k)
  7202. i++
  7203. }
  7204. sort.Sort(uintSlice(v2))
  7205. if esep {
  7206. for _, k2 := range v2 {
  7207. ee.WriteMapElemKey()
  7208. ee.EncodeUint(uint64(uint16(k2)))
  7209. ee.WriteMapElemValue()
  7210. ee.EncodeUint(uint64(v[uint16(k2)]))
  7211. }
  7212. } else {
  7213. for _, k2 := range v2 {
  7214. ee.EncodeUint(uint64(uint16(k2)))
  7215. ee.EncodeUint(uint64(v[uint16(k2)]))
  7216. }
  7217. }
  7218. } else {
  7219. if esep {
  7220. for k2, v2 := range v {
  7221. ee.WriteMapElemKey()
  7222. ee.EncodeUint(uint64(k2))
  7223. ee.WriteMapElemValue()
  7224. ee.EncodeUint(uint64(v2))
  7225. }
  7226. } else {
  7227. for k2, v2 := range v {
  7228. ee.EncodeUint(uint64(k2))
  7229. ee.EncodeUint(uint64(v2))
  7230. }
  7231. }
  7232. }
  7233. ee.WriteMapEnd()
  7234. }
  7235. func (e *Encoder) fastpathEncMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  7236. fastpathTV.EncMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), e)
  7237. }
  7238. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, e *Encoder) {
  7239. if v == nil {
  7240. e.e.EncodeNil()
  7241. return
  7242. }
  7243. ee, esep := e.e, e.hh.hasElemSeparators()
  7244. ee.WriteMapStart(len(v))
  7245. if e.h.Canonical {
  7246. v2 := make([]uint64, len(v))
  7247. var i int
  7248. for k, _ := range v {
  7249. v2[i] = uint64(k)
  7250. i++
  7251. }
  7252. sort.Sort(uintSlice(v2))
  7253. if esep {
  7254. for _, k2 := range v2 {
  7255. ee.WriteMapElemKey()
  7256. ee.EncodeUint(uint64(uint16(k2)))
  7257. ee.WriteMapElemValue()
  7258. ee.EncodeUint(uint64(v[uint16(k2)]))
  7259. }
  7260. } else {
  7261. for _, k2 := range v2 {
  7262. ee.EncodeUint(uint64(uint16(k2)))
  7263. ee.EncodeUint(uint64(v[uint16(k2)]))
  7264. }
  7265. }
  7266. } else {
  7267. if esep {
  7268. for k2, v2 := range v {
  7269. ee.WriteMapElemKey()
  7270. ee.EncodeUint(uint64(k2))
  7271. ee.WriteMapElemValue()
  7272. ee.EncodeUint(uint64(v2))
  7273. }
  7274. } else {
  7275. for k2, v2 := range v {
  7276. ee.EncodeUint(uint64(k2))
  7277. ee.EncodeUint(uint64(v2))
  7278. }
  7279. }
  7280. }
  7281. ee.WriteMapEnd()
  7282. }
  7283. func (e *Encoder) fastpathEncMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  7284. fastpathTV.EncMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), e)
  7285. }
  7286. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, e *Encoder) {
  7287. if v == nil {
  7288. e.e.EncodeNil()
  7289. return
  7290. }
  7291. ee, esep := e.e, e.hh.hasElemSeparators()
  7292. ee.WriteMapStart(len(v))
  7293. if e.h.Canonical {
  7294. v2 := make([]uint64, len(v))
  7295. var i int
  7296. for k, _ := range v {
  7297. v2[i] = uint64(k)
  7298. i++
  7299. }
  7300. sort.Sort(uintSlice(v2))
  7301. if esep {
  7302. for _, k2 := range v2 {
  7303. ee.WriteMapElemKey()
  7304. ee.EncodeUint(uint64(uint16(k2)))
  7305. ee.WriteMapElemValue()
  7306. e.encode(v[uint16(k2)])
  7307. }
  7308. } else {
  7309. for _, k2 := range v2 {
  7310. ee.EncodeUint(uint64(uint16(k2)))
  7311. e.encode(v[uint16(k2)])
  7312. }
  7313. }
  7314. } else {
  7315. if esep {
  7316. for k2, v2 := range v {
  7317. ee.WriteMapElemKey()
  7318. ee.EncodeUint(uint64(k2))
  7319. ee.WriteMapElemValue()
  7320. e.encode(v2)
  7321. }
  7322. } else {
  7323. for k2, v2 := range v {
  7324. ee.EncodeUint(uint64(k2))
  7325. e.encode(v2)
  7326. }
  7327. }
  7328. }
  7329. ee.WriteMapEnd()
  7330. }
  7331. func (e *Encoder) fastpathEncMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  7332. fastpathTV.EncMapUint16IntV(rv2i(rv).(map[uint16]int), e)
  7333. }
  7334. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, e *Encoder) {
  7335. if v == nil {
  7336. e.e.EncodeNil()
  7337. return
  7338. }
  7339. ee, esep := e.e, e.hh.hasElemSeparators()
  7340. ee.WriteMapStart(len(v))
  7341. if e.h.Canonical {
  7342. v2 := make([]uint64, len(v))
  7343. var i int
  7344. for k, _ := range v {
  7345. v2[i] = uint64(k)
  7346. i++
  7347. }
  7348. sort.Sort(uintSlice(v2))
  7349. if esep {
  7350. for _, k2 := range v2 {
  7351. ee.WriteMapElemKey()
  7352. ee.EncodeUint(uint64(uint16(k2)))
  7353. ee.WriteMapElemValue()
  7354. ee.EncodeInt(int64(v[uint16(k2)]))
  7355. }
  7356. } else {
  7357. for _, k2 := range v2 {
  7358. ee.EncodeUint(uint64(uint16(k2)))
  7359. ee.EncodeInt(int64(v[uint16(k2)]))
  7360. }
  7361. }
  7362. } else {
  7363. if esep {
  7364. for k2, v2 := range v {
  7365. ee.WriteMapElemKey()
  7366. ee.EncodeUint(uint64(k2))
  7367. ee.WriteMapElemValue()
  7368. ee.EncodeInt(int64(v2))
  7369. }
  7370. } else {
  7371. for k2, v2 := range v {
  7372. ee.EncodeUint(uint64(k2))
  7373. ee.EncodeInt(int64(v2))
  7374. }
  7375. }
  7376. }
  7377. ee.WriteMapEnd()
  7378. }
  7379. func (e *Encoder) fastpathEncMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  7380. fastpathTV.EncMapUint16Int8V(rv2i(rv).(map[uint16]int8), e)
  7381. }
  7382. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, e *Encoder) {
  7383. if v == nil {
  7384. e.e.EncodeNil()
  7385. return
  7386. }
  7387. ee, esep := e.e, e.hh.hasElemSeparators()
  7388. ee.WriteMapStart(len(v))
  7389. if e.h.Canonical {
  7390. v2 := make([]uint64, len(v))
  7391. var i int
  7392. for k, _ := range v {
  7393. v2[i] = uint64(k)
  7394. i++
  7395. }
  7396. sort.Sort(uintSlice(v2))
  7397. if esep {
  7398. for _, k2 := range v2 {
  7399. ee.WriteMapElemKey()
  7400. ee.EncodeUint(uint64(uint16(k2)))
  7401. ee.WriteMapElemValue()
  7402. ee.EncodeInt(int64(v[uint16(k2)]))
  7403. }
  7404. } else {
  7405. for _, k2 := range v2 {
  7406. ee.EncodeUint(uint64(uint16(k2)))
  7407. ee.EncodeInt(int64(v[uint16(k2)]))
  7408. }
  7409. }
  7410. } else {
  7411. if esep {
  7412. for k2, v2 := range v {
  7413. ee.WriteMapElemKey()
  7414. ee.EncodeUint(uint64(k2))
  7415. ee.WriteMapElemValue()
  7416. ee.EncodeInt(int64(v2))
  7417. }
  7418. } else {
  7419. for k2, v2 := range v {
  7420. ee.EncodeUint(uint64(k2))
  7421. ee.EncodeInt(int64(v2))
  7422. }
  7423. }
  7424. }
  7425. ee.WriteMapEnd()
  7426. }
  7427. func (e *Encoder) fastpathEncMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  7428. fastpathTV.EncMapUint16Int16V(rv2i(rv).(map[uint16]int16), e)
  7429. }
  7430. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, e *Encoder) {
  7431. if v == nil {
  7432. e.e.EncodeNil()
  7433. return
  7434. }
  7435. ee, esep := e.e, e.hh.hasElemSeparators()
  7436. ee.WriteMapStart(len(v))
  7437. if e.h.Canonical {
  7438. v2 := make([]uint64, len(v))
  7439. var i int
  7440. for k, _ := range v {
  7441. v2[i] = uint64(k)
  7442. i++
  7443. }
  7444. sort.Sort(uintSlice(v2))
  7445. if esep {
  7446. for _, k2 := range v2 {
  7447. ee.WriteMapElemKey()
  7448. ee.EncodeUint(uint64(uint16(k2)))
  7449. ee.WriteMapElemValue()
  7450. ee.EncodeInt(int64(v[uint16(k2)]))
  7451. }
  7452. } else {
  7453. for _, k2 := range v2 {
  7454. ee.EncodeUint(uint64(uint16(k2)))
  7455. ee.EncodeInt(int64(v[uint16(k2)]))
  7456. }
  7457. }
  7458. } else {
  7459. if esep {
  7460. for k2, v2 := range v {
  7461. ee.WriteMapElemKey()
  7462. ee.EncodeUint(uint64(k2))
  7463. ee.WriteMapElemValue()
  7464. ee.EncodeInt(int64(v2))
  7465. }
  7466. } else {
  7467. for k2, v2 := range v {
  7468. ee.EncodeUint(uint64(k2))
  7469. ee.EncodeInt(int64(v2))
  7470. }
  7471. }
  7472. }
  7473. ee.WriteMapEnd()
  7474. }
  7475. func (e *Encoder) fastpathEncMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  7476. fastpathTV.EncMapUint16Int32V(rv2i(rv).(map[uint16]int32), e)
  7477. }
  7478. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, e *Encoder) {
  7479. if v == nil {
  7480. e.e.EncodeNil()
  7481. return
  7482. }
  7483. ee, esep := e.e, e.hh.hasElemSeparators()
  7484. ee.WriteMapStart(len(v))
  7485. if e.h.Canonical {
  7486. v2 := make([]uint64, len(v))
  7487. var i int
  7488. for k, _ := range v {
  7489. v2[i] = uint64(k)
  7490. i++
  7491. }
  7492. sort.Sort(uintSlice(v2))
  7493. if esep {
  7494. for _, k2 := range v2 {
  7495. ee.WriteMapElemKey()
  7496. ee.EncodeUint(uint64(uint16(k2)))
  7497. ee.WriteMapElemValue()
  7498. ee.EncodeInt(int64(v[uint16(k2)]))
  7499. }
  7500. } else {
  7501. for _, k2 := range v2 {
  7502. ee.EncodeUint(uint64(uint16(k2)))
  7503. ee.EncodeInt(int64(v[uint16(k2)]))
  7504. }
  7505. }
  7506. } else {
  7507. if esep {
  7508. for k2, v2 := range v {
  7509. ee.WriteMapElemKey()
  7510. ee.EncodeUint(uint64(k2))
  7511. ee.WriteMapElemValue()
  7512. ee.EncodeInt(int64(v2))
  7513. }
  7514. } else {
  7515. for k2, v2 := range v {
  7516. ee.EncodeUint(uint64(k2))
  7517. ee.EncodeInt(int64(v2))
  7518. }
  7519. }
  7520. }
  7521. ee.WriteMapEnd()
  7522. }
  7523. func (e *Encoder) fastpathEncMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  7524. fastpathTV.EncMapUint16Int64V(rv2i(rv).(map[uint16]int64), e)
  7525. }
  7526. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, e *Encoder) {
  7527. if v == nil {
  7528. e.e.EncodeNil()
  7529. return
  7530. }
  7531. ee, esep := e.e, e.hh.hasElemSeparators()
  7532. ee.WriteMapStart(len(v))
  7533. if e.h.Canonical {
  7534. v2 := make([]uint64, len(v))
  7535. var i int
  7536. for k, _ := range v {
  7537. v2[i] = uint64(k)
  7538. i++
  7539. }
  7540. sort.Sort(uintSlice(v2))
  7541. if esep {
  7542. for _, k2 := range v2 {
  7543. ee.WriteMapElemKey()
  7544. ee.EncodeUint(uint64(uint16(k2)))
  7545. ee.WriteMapElemValue()
  7546. ee.EncodeInt(int64(v[uint16(k2)]))
  7547. }
  7548. } else {
  7549. for _, k2 := range v2 {
  7550. ee.EncodeUint(uint64(uint16(k2)))
  7551. ee.EncodeInt(int64(v[uint16(k2)]))
  7552. }
  7553. }
  7554. } else {
  7555. if esep {
  7556. for k2, v2 := range v {
  7557. ee.WriteMapElemKey()
  7558. ee.EncodeUint(uint64(k2))
  7559. ee.WriteMapElemValue()
  7560. ee.EncodeInt(int64(v2))
  7561. }
  7562. } else {
  7563. for k2, v2 := range v {
  7564. ee.EncodeUint(uint64(k2))
  7565. ee.EncodeInt(int64(v2))
  7566. }
  7567. }
  7568. }
  7569. ee.WriteMapEnd()
  7570. }
  7571. func (e *Encoder) fastpathEncMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  7572. fastpathTV.EncMapUint16Float32V(rv2i(rv).(map[uint16]float32), e)
  7573. }
  7574. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, e *Encoder) {
  7575. if v == nil {
  7576. e.e.EncodeNil()
  7577. return
  7578. }
  7579. ee, esep := e.e, e.hh.hasElemSeparators()
  7580. ee.WriteMapStart(len(v))
  7581. if e.h.Canonical {
  7582. v2 := make([]uint64, len(v))
  7583. var i int
  7584. for k, _ := range v {
  7585. v2[i] = uint64(k)
  7586. i++
  7587. }
  7588. sort.Sort(uintSlice(v2))
  7589. if esep {
  7590. for _, k2 := range v2 {
  7591. ee.WriteMapElemKey()
  7592. ee.EncodeUint(uint64(uint16(k2)))
  7593. ee.WriteMapElemValue()
  7594. ee.EncodeFloat32(v[uint16(k2)])
  7595. }
  7596. } else {
  7597. for _, k2 := range v2 {
  7598. ee.EncodeUint(uint64(uint16(k2)))
  7599. ee.EncodeFloat32(v[uint16(k2)])
  7600. }
  7601. }
  7602. } else {
  7603. if esep {
  7604. for k2, v2 := range v {
  7605. ee.WriteMapElemKey()
  7606. ee.EncodeUint(uint64(k2))
  7607. ee.WriteMapElemValue()
  7608. ee.EncodeFloat32(v2)
  7609. }
  7610. } else {
  7611. for k2, v2 := range v {
  7612. ee.EncodeUint(uint64(k2))
  7613. ee.EncodeFloat32(v2)
  7614. }
  7615. }
  7616. }
  7617. ee.WriteMapEnd()
  7618. }
  7619. func (e *Encoder) fastpathEncMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  7620. fastpathTV.EncMapUint16Float64V(rv2i(rv).(map[uint16]float64), e)
  7621. }
  7622. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, e *Encoder) {
  7623. if v == nil {
  7624. e.e.EncodeNil()
  7625. return
  7626. }
  7627. ee, esep := e.e, e.hh.hasElemSeparators()
  7628. ee.WriteMapStart(len(v))
  7629. if e.h.Canonical {
  7630. v2 := make([]uint64, len(v))
  7631. var i int
  7632. for k, _ := range v {
  7633. v2[i] = uint64(k)
  7634. i++
  7635. }
  7636. sort.Sort(uintSlice(v2))
  7637. if esep {
  7638. for _, k2 := range v2 {
  7639. ee.WriteMapElemKey()
  7640. ee.EncodeUint(uint64(uint16(k2)))
  7641. ee.WriteMapElemValue()
  7642. ee.EncodeFloat64(v[uint16(k2)])
  7643. }
  7644. } else {
  7645. for _, k2 := range v2 {
  7646. ee.EncodeUint(uint64(uint16(k2)))
  7647. ee.EncodeFloat64(v[uint16(k2)])
  7648. }
  7649. }
  7650. } else {
  7651. if esep {
  7652. for k2, v2 := range v {
  7653. ee.WriteMapElemKey()
  7654. ee.EncodeUint(uint64(k2))
  7655. ee.WriteMapElemValue()
  7656. ee.EncodeFloat64(v2)
  7657. }
  7658. } else {
  7659. for k2, v2 := range v {
  7660. ee.EncodeUint(uint64(k2))
  7661. ee.EncodeFloat64(v2)
  7662. }
  7663. }
  7664. }
  7665. ee.WriteMapEnd()
  7666. }
  7667. func (e *Encoder) fastpathEncMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  7668. fastpathTV.EncMapUint16BoolV(rv2i(rv).(map[uint16]bool), e)
  7669. }
  7670. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, e *Encoder) {
  7671. if v == nil {
  7672. e.e.EncodeNil()
  7673. return
  7674. }
  7675. ee, esep := e.e, e.hh.hasElemSeparators()
  7676. ee.WriteMapStart(len(v))
  7677. if e.h.Canonical {
  7678. v2 := make([]uint64, len(v))
  7679. var i int
  7680. for k, _ := range v {
  7681. v2[i] = uint64(k)
  7682. i++
  7683. }
  7684. sort.Sort(uintSlice(v2))
  7685. if esep {
  7686. for _, k2 := range v2 {
  7687. ee.WriteMapElemKey()
  7688. ee.EncodeUint(uint64(uint16(k2)))
  7689. ee.WriteMapElemValue()
  7690. ee.EncodeBool(v[uint16(k2)])
  7691. }
  7692. } else {
  7693. for _, k2 := range v2 {
  7694. ee.EncodeUint(uint64(uint16(k2)))
  7695. ee.EncodeBool(v[uint16(k2)])
  7696. }
  7697. }
  7698. } else {
  7699. if esep {
  7700. for k2, v2 := range v {
  7701. ee.WriteMapElemKey()
  7702. ee.EncodeUint(uint64(k2))
  7703. ee.WriteMapElemValue()
  7704. ee.EncodeBool(v2)
  7705. }
  7706. } else {
  7707. for k2, v2 := range v {
  7708. ee.EncodeUint(uint64(k2))
  7709. ee.EncodeBool(v2)
  7710. }
  7711. }
  7712. }
  7713. ee.WriteMapEnd()
  7714. }
  7715. func (e *Encoder) fastpathEncMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  7716. fastpathTV.EncMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), e)
  7717. }
  7718. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, e *Encoder) {
  7719. if v == nil {
  7720. e.e.EncodeNil()
  7721. return
  7722. }
  7723. ee, esep := e.e, e.hh.hasElemSeparators()
  7724. ee.WriteMapStart(len(v))
  7725. if e.h.Canonical {
  7726. v2 := make([]uint64, len(v))
  7727. var i int
  7728. for k, _ := range v {
  7729. v2[i] = uint64(k)
  7730. i++
  7731. }
  7732. sort.Sort(uintSlice(v2))
  7733. if esep {
  7734. for _, k2 := range v2 {
  7735. ee.WriteMapElemKey()
  7736. ee.EncodeUint(uint64(uint32(k2)))
  7737. ee.WriteMapElemValue()
  7738. e.encode(v[uint32(k2)])
  7739. }
  7740. } else {
  7741. for _, k2 := range v2 {
  7742. ee.EncodeUint(uint64(uint32(k2)))
  7743. e.encode(v[uint32(k2)])
  7744. }
  7745. }
  7746. } else {
  7747. if esep {
  7748. for k2, v2 := range v {
  7749. ee.WriteMapElemKey()
  7750. ee.EncodeUint(uint64(k2))
  7751. ee.WriteMapElemValue()
  7752. e.encode(v2)
  7753. }
  7754. } else {
  7755. for k2, v2 := range v {
  7756. ee.EncodeUint(uint64(k2))
  7757. e.encode(v2)
  7758. }
  7759. }
  7760. }
  7761. ee.WriteMapEnd()
  7762. }
  7763. func (e *Encoder) fastpathEncMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  7764. fastpathTV.EncMapUint32StringV(rv2i(rv).(map[uint32]string), e)
  7765. }
  7766. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, e *Encoder) {
  7767. if v == nil {
  7768. e.e.EncodeNil()
  7769. return
  7770. }
  7771. ee, esep := e.e, e.hh.hasElemSeparators()
  7772. ee.WriteMapStart(len(v))
  7773. if e.h.Canonical {
  7774. v2 := make([]uint64, len(v))
  7775. var i int
  7776. for k, _ := range v {
  7777. v2[i] = uint64(k)
  7778. i++
  7779. }
  7780. sort.Sort(uintSlice(v2))
  7781. if esep {
  7782. for _, k2 := range v2 {
  7783. ee.WriteMapElemKey()
  7784. ee.EncodeUint(uint64(uint32(k2)))
  7785. ee.WriteMapElemValue()
  7786. ee.EncodeString(cUTF8, v[uint32(k2)])
  7787. }
  7788. } else {
  7789. for _, k2 := range v2 {
  7790. ee.EncodeUint(uint64(uint32(k2)))
  7791. ee.EncodeString(cUTF8, v[uint32(k2)])
  7792. }
  7793. }
  7794. } else {
  7795. if esep {
  7796. for k2, v2 := range v {
  7797. ee.WriteMapElemKey()
  7798. ee.EncodeUint(uint64(k2))
  7799. ee.WriteMapElemValue()
  7800. ee.EncodeString(cUTF8, v2)
  7801. }
  7802. } else {
  7803. for k2, v2 := range v {
  7804. ee.EncodeUint(uint64(k2))
  7805. ee.EncodeString(cUTF8, v2)
  7806. }
  7807. }
  7808. }
  7809. ee.WriteMapEnd()
  7810. }
  7811. func (e *Encoder) fastpathEncMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  7812. fastpathTV.EncMapUint32UintV(rv2i(rv).(map[uint32]uint), e)
  7813. }
  7814. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, e *Encoder) {
  7815. if v == nil {
  7816. e.e.EncodeNil()
  7817. return
  7818. }
  7819. ee, esep := e.e, e.hh.hasElemSeparators()
  7820. ee.WriteMapStart(len(v))
  7821. if e.h.Canonical {
  7822. v2 := make([]uint64, len(v))
  7823. var i int
  7824. for k, _ := range v {
  7825. v2[i] = uint64(k)
  7826. i++
  7827. }
  7828. sort.Sort(uintSlice(v2))
  7829. if esep {
  7830. for _, k2 := range v2 {
  7831. ee.WriteMapElemKey()
  7832. ee.EncodeUint(uint64(uint32(k2)))
  7833. ee.WriteMapElemValue()
  7834. ee.EncodeUint(uint64(v[uint32(k2)]))
  7835. }
  7836. } else {
  7837. for _, k2 := range v2 {
  7838. ee.EncodeUint(uint64(uint32(k2)))
  7839. ee.EncodeUint(uint64(v[uint32(k2)]))
  7840. }
  7841. }
  7842. } else {
  7843. if esep {
  7844. for k2, v2 := range v {
  7845. ee.WriteMapElemKey()
  7846. ee.EncodeUint(uint64(k2))
  7847. ee.WriteMapElemValue()
  7848. ee.EncodeUint(uint64(v2))
  7849. }
  7850. } else {
  7851. for k2, v2 := range v {
  7852. ee.EncodeUint(uint64(k2))
  7853. ee.EncodeUint(uint64(v2))
  7854. }
  7855. }
  7856. }
  7857. ee.WriteMapEnd()
  7858. }
  7859. func (e *Encoder) fastpathEncMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  7860. fastpathTV.EncMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), e)
  7861. }
  7862. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, e *Encoder) {
  7863. if v == nil {
  7864. e.e.EncodeNil()
  7865. return
  7866. }
  7867. ee, esep := e.e, e.hh.hasElemSeparators()
  7868. ee.WriteMapStart(len(v))
  7869. if e.h.Canonical {
  7870. v2 := make([]uint64, len(v))
  7871. var i int
  7872. for k, _ := range v {
  7873. v2[i] = uint64(k)
  7874. i++
  7875. }
  7876. sort.Sort(uintSlice(v2))
  7877. if esep {
  7878. for _, k2 := range v2 {
  7879. ee.WriteMapElemKey()
  7880. ee.EncodeUint(uint64(uint32(k2)))
  7881. ee.WriteMapElemValue()
  7882. ee.EncodeUint(uint64(v[uint32(k2)]))
  7883. }
  7884. } else {
  7885. for _, k2 := range v2 {
  7886. ee.EncodeUint(uint64(uint32(k2)))
  7887. ee.EncodeUint(uint64(v[uint32(k2)]))
  7888. }
  7889. }
  7890. } else {
  7891. if esep {
  7892. for k2, v2 := range v {
  7893. ee.WriteMapElemKey()
  7894. ee.EncodeUint(uint64(k2))
  7895. ee.WriteMapElemValue()
  7896. ee.EncodeUint(uint64(v2))
  7897. }
  7898. } else {
  7899. for k2, v2 := range v {
  7900. ee.EncodeUint(uint64(k2))
  7901. ee.EncodeUint(uint64(v2))
  7902. }
  7903. }
  7904. }
  7905. ee.WriteMapEnd()
  7906. }
  7907. func (e *Encoder) fastpathEncMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  7908. fastpathTV.EncMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), e)
  7909. }
  7910. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, e *Encoder) {
  7911. if v == nil {
  7912. e.e.EncodeNil()
  7913. return
  7914. }
  7915. ee, esep := e.e, e.hh.hasElemSeparators()
  7916. ee.WriteMapStart(len(v))
  7917. if e.h.Canonical {
  7918. v2 := make([]uint64, len(v))
  7919. var i int
  7920. for k, _ := range v {
  7921. v2[i] = uint64(k)
  7922. i++
  7923. }
  7924. sort.Sort(uintSlice(v2))
  7925. if esep {
  7926. for _, k2 := range v2 {
  7927. ee.WriteMapElemKey()
  7928. ee.EncodeUint(uint64(uint32(k2)))
  7929. ee.WriteMapElemValue()
  7930. ee.EncodeUint(uint64(v[uint32(k2)]))
  7931. }
  7932. } else {
  7933. for _, k2 := range v2 {
  7934. ee.EncodeUint(uint64(uint32(k2)))
  7935. ee.EncodeUint(uint64(v[uint32(k2)]))
  7936. }
  7937. }
  7938. } else {
  7939. if esep {
  7940. for k2, v2 := range v {
  7941. ee.WriteMapElemKey()
  7942. ee.EncodeUint(uint64(k2))
  7943. ee.WriteMapElemValue()
  7944. ee.EncodeUint(uint64(v2))
  7945. }
  7946. } else {
  7947. for k2, v2 := range v {
  7948. ee.EncodeUint(uint64(k2))
  7949. ee.EncodeUint(uint64(v2))
  7950. }
  7951. }
  7952. }
  7953. ee.WriteMapEnd()
  7954. }
  7955. func (e *Encoder) fastpathEncMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  7956. fastpathTV.EncMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), e)
  7957. }
  7958. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, e *Encoder) {
  7959. if v == nil {
  7960. e.e.EncodeNil()
  7961. return
  7962. }
  7963. ee, esep := e.e, e.hh.hasElemSeparators()
  7964. ee.WriteMapStart(len(v))
  7965. if e.h.Canonical {
  7966. v2 := make([]uint64, len(v))
  7967. var i int
  7968. for k, _ := range v {
  7969. v2[i] = uint64(k)
  7970. i++
  7971. }
  7972. sort.Sort(uintSlice(v2))
  7973. if esep {
  7974. for _, k2 := range v2 {
  7975. ee.WriteMapElemKey()
  7976. ee.EncodeUint(uint64(uint32(k2)))
  7977. ee.WriteMapElemValue()
  7978. ee.EncodeUint(uint64(v[uint32(k2)]))
  7979. }
  7980. } else {
  7981. for _, k2 := range v2 {
  7982. ee.EncodeUint(uint64(uint32(k2)))
  7983. ee.EncodeUint(uint64(v[uint32(k2)]))
  7984. }
  7985. }
  7986. } else {
  7987. if esep {
  7988. for k2, v2 := range v {
  7989. ee.WriteMapElemKey()
  7990. ee.EncodeUint(uint64(k2))
  7991. ee.WriteMapElemValue()
  7992. ee.EncodeUint(uint64(v2))
  7993. }
  7994. } else {
  7995. for k2, v2 := range v {
  7996. ee.EncodeUint(uint64(k2))
  7997. ee.EncodeUint(uint64(v2))
  7998. }
  7999. }
  8000. }
  8001. ee.WriteMapEnd()
  8002. }
  8003. func (e *Encoder) fastpathEncMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  8004. fastpathTV.EncMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), e)
  8005. }
  8006. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, e *Encoder) {
  8007. if v == nil {
  8008. e.e.EncodeNil()
  8009. return
  8010. }
  8011. ee, esep := e.e, e.hh.hasElemSeparators()
  8012. ee.WriteMapStart(len(v))
  8013. if e.h.Canonical {
  8014. v2 := make([]uint64, len(v))
  8015. var i int
  8016. for k, _ := range v {
  8017. v2[i] = uint64(k)
  8018. i++
  8019. }
  8020. sort.Sort(uintSlice(v2))
  8021. if esep {
  8022. for _, k2 := range v2 {
  8023. ee.WriteMapElemKey()
  8024. ee.EncodeUint(uint64(uint32(k2)))
  8025. ee.WriteMapElemValue()
  8026. ee.EncodeUint(uint64(v[uint32(k2)]))
  8027. }
  8028. } else {
  8029. for _, k2 := range v2 {
  8030. ee.EncodeUint(uint64(uint32(k2)))
  8031. ee.EncodeUint(uint64(v[uint32(k2)]))
  8032. }
  8033. }
  8034. } else {
  8035. if esep {
  8036. for k2, v2 := range v {
  8037. ee.WriteMapElemKey()
  8038. ee.EncodeUint(uint64(k2))
  8039. ee.WriteMapElemValue()
  8040. ee.EncodeUint(uint64(v2))
  8041. }
  8042. } else {
  8043. for k2, v2 := range v {
  8044. ee.EncodeUint(uint64(k2))
  8045. ee.EncodeUint(uint64(v2))
  8046. }
  8047. }
  8048. }
  8049. ee.WriteMapEnd()
  8050. }
  8051. func (e *Encoder) fastpathEncMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  8052. fastpathTV.EncMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), e)
  8053. }
  8054. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, e *Encoder) {
  8055. if v == nil {
  8056. e.e.EncodeNil()
  8057. return
  8058. }
  8059. ee, esep := e.e, e.hh.hasElemSeparators()
  8060. ee.WriteMapStart(len(v))
  8061. if e.h.Canonical {
  8062. v2 := make([]uint64, len(v))
  8063. var i int
  8064. for k, _ := range v {
  8065. v2[i] = uint64(k)
  8066. i++
  8067. }
  8068. sort.Sort(uintSlice(v2))
  8069. if esep {
  8070. for _, k2 := range v2 {
  8071. ee.WriteMapElemKey()
  8072. ee.EncodeUint(uint64(uint32(k2)))
  8073. ee.WriteMapElemValue()
  8074. e.encode(v[uint32(k2)])
  8075. }
  8076. } else {
  8077. for _, k2 := range v2 {
  8078. ee.EncodeUint(uint64(uint32(k2)))
  8079. e.encode(v[uint32(k2)])
  8080. }
  8081. }
  8082. } else {
  8083. if esep {
  8084. for k2, v2 := range v {
  8085. ee.WriteMapElemKey()
  8086. ee.EncodeUint(uint64(k2))
  8087. ee.WriteMapElemValue()
  8088. e.encode(v2)
  8089. }
  8090. } else {
  8091. for k2, v2 := range v {
  8092. ee.EncodeUint(uint64(k2))
  8093. e.encode(v2)
  8094. }
  8095. }
  8096. }
  8097. ee.WriteMapEnd()
  8098. }
  8099. func (e *Encoder) fastpathEncMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  8100. fastpathTV.EncMapUint32IntV(rv2i(rv).(map[uint32]int), e)
  8101. }
  8102. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, e *Encoder) {
  8103. if v == nil {
  8104. e.e.EncodeNil()
  8105. return
  8106. }
  8107. ee, esep := e.e, e.hh.hasElemSeparators()
  8108. ee.WriteMapStart(len(v))
  8109. if e.h.Canonical {
  8110. v2 := make([]uint64, len(v))
  8111. var i int
  8112. for k, _ := range v {
  8113. v2[i] = uint64(k)
  8114. i++
  8115. }
  8116. sort.Sort(uintSlice(v2))
  8117. if esep {
  8118. for _, k2 := range v2 {
  8119. ee.WriteMapElemKey()
  8120. ee.EncodeUint(uint64(uint32(k2)))
  8121. ee.WriteMapElemValue()
  8122. ee.EncodeInt(int64(v[uint32(k2)]))
  8123. }
  8124. } else {
  8125. for _, k2 := range v2 {
  8126. ee.EncodeUint(uint64(uint32(k2)))
  8127. ee.EncodeInt(int64(v[uint32(k2)]))
  8128. }
  8129. }
  8130. } else {
  8131. if esep {
  8132. for k2, v2 := range v {
  8133. ee.WriteMapElemKey()
  8134. ee.EncodeUint(uint64(k2))
  8135. ee.WriteMapElemValue()
  8136. ee.EncodeInt(int64(v2))
  8137. }
  8138. } else {
  8139. for k2, v2 := range v {
  8140. ee.EncodeUint(uint64(k2))
  8141. ee.EncodeInt(int64(v2))
  8142. }
  8143. }
  8144. }
  8145. ee.WriteMapEnd()
  8146. }
  8147. func (e *Encoder) fastpathEncMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  8148. fastpathTV.EncMapUint32Int8V(rv2i(rv).(map[uint32]int8), e)
  8149. }
  8150. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, e *Encoder) {
  8151. if v == nil {
  8152. e.e.EncodeNil()
  8153. return
  8154. }
  8155. ee, esep := e.e, e.hh.hasElemSeparators()
  8156. ee.WriteMapStart(len(v))
  8157. if e.h.Canonical {
  8158. v2 := make([]uint64, len(v))
  8159. var i int
  8160. for k, _ := range v {
  8161. v2[i] = uint64(k)
  8162. i++
  8163. }
  8164. sort.Sort(uintSlice(v2))
  8165. if esep {
  8166. for _, k2 := range v2 {
  8167. ee.WriteMapElemKey()
  8168. ee.EncodeUint(uint64(uint32(k2)))
  8169. ee.WriteMapElemValue()
  8170. ee.EncodeInt(int64(v[uint32(k2)]))
  8171. }
  8172. } else {
  8173. for _, k2 := range v2 {
  8174. ee.EncodeUint(uint64(uint32(k2)))
  8175. ee.EncodeInt(int64(v[uint32(k2)]))
  8176. }
  8177. }
  8178. } else {
  8179. if esep {
  8180. for k2, v2 := range v {
  8181. ee.WriteMapElemKey()
  8182. ee.EncodeUint(uint64(k2))
  8183. ee.WriteMapElemValue()
  8184. ee.EncodeInt(int64(v2))
  8185. }
  8186. } else {
  8187. for k2, v2 := range v {
  8188. ee.EncodeUint(uint64(k2))
  8189. ee.EncodeInt(int64(v2))
  8190. }
  8191. }
  8192. }
  8193. ee.WriteMapEnd()
  8194. }
  8195. func (e *Encoder) fastpathEncMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  8196. fastpathTV.EncMapUint32Int16V(rv2i(rv).(map[uint32]int16), e)
  8197. }
  8198. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, e *Encoder) {
  8199. if v == nil {
  8200. e.e.EncodeNil()
  8201. return
  8202. }
  8203. ee, esep := e.e, e.hh.hasElemSeparators()
  8204. ee.WriteMapStart(len(v))
  8205. if e.h.Canonical {
  8206. v2 := make([]uint64, len(v))
  8207. var i int
  8208. for k, _ := range v {
  8209. v2[i] = uint64(k)
  8210. i++
  8211. }
  8212. sort.Sort(uintSlice(v2))
  8213. if esep {
  8214. for _, k2 := range v2 {
  8215. ee.WriteMapElemKey()
  8216. ee.EncodeUint(uint64(uint32(k2)))
  8217. ee.WriteMapElemValue()
  8218. ee.EncodeInt(int64(v[uint32(k2)]))
  8219. }
  8220. } else {
  8221. for _, k2 := range v2 {
  8222. ee.EncodeUint(uint64(uint32(k2)))
  8223. ee.EncodeInt(int64(v[uint32(k2)]))
  8224. }
  8225. }
  8226. } else {
  8227. if esep {
  8228. for k2, v2 := range v {
  8229. ee.WriteMapElemKey()
  8230. ee.EncodeUint(uint64(k2))
  8231. ee.WriteMapElemValue()
  8232. ee.EncodeInt(int64(v2))
  8233. }
  8234. } else {
  8235. for k2, v2 := range v {
  8236. ee.EncodeUint(uint64(k2))
  8237. ee.EncodeInt(int64(v2))
  8238. }
  8239. }
  8240. }
  8241. ee.WriteMapEnd()
  8242. }
  8243. func (e *Encoder) fastpathEncMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  8244. fastpathTV.EncMapUint32Int32V(rv2i(rv).(map[uint32]int32), e)
  8245. }
  8246. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, e *Encoder) {
  8247. if v == nil {
  8248. e.e.EncodeNil()
  8249. return
  8250. }
  8251. ee, esep := e.e, e.hh.hasElemSeparators()
  8252. ee.WriteMapStart(len(v))
  8253. if e.h.Canonical {
  8254. v2 := make([]uint64, len(v))
  8255. var i int
  8256. for k, _ := range v {
  8257. v2[i] = uint64(k)
  8258. i++
  8259. }
  8260. sort.Sort(uintSlice(v2))
  8261. if esep {
  8262. for _, k2 := range v2 {
  8263. ee.WriteMapElemKey()
  8264. ee.EncodeUint(uint64(uint32(k2)))
  8265. ee.WriteMapElemValue()
  8266. ee.EncodeInt(int64(v[uint32(k2)]))
  8267. }
  8268. } else {
  8269. for _, k2 := range v2 {
  8270. ee.EncodeUint(uint64(uint32(k2)))
  8271. ee.EncodeInt(int64(v[uint32(k2)]))
  8272. }
  8273. }
  8274. } else {
  8275. if esep {
  8276. for k2, v2 := range v {
  8277. ee.WriteMapElemKey()
  8278. ee.EncodeUint(uint64(k2))
  8279. ee.WriteMapElemValue()
  8280. ee.EncodeInt(int64(v2))
  8281. }
  8282. } else {
  8283. for k2, v2 := range v {
  8284. ee.EncodeUint(uint64(k2))
  8285. ee.EncodeInt(int64(v2))
  8286. }
  8287. }
  8288. }
  8289. ee.WriteMapEnd()
  8290. }
  8291. func (e *Encoder) fastpathEncMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  8292. fastpathTV.EncMapUint32Int64V(rv2i(rv).(map[uint32]int64), e)
  8293. }
  8294. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, e *Encoder) {
  8295. if v == nil {
  8296. e.e.EncodeNil()
  8297. return
  8298. }
  8299. ee, esep := e.e, e.hh.hasElemSeparators()
  8300. ee.WriteMapStart(len(v))
  8301. if e.h.Canonical {
  8302. v2 := make([]uint64, len(v))
  8303. var i int
  8304. for k, _ := range v {
  8305. v2[i] = uint64(k)
  8306. i++
  8307. }
  8308. sort.Sort(uintSlice(v2))
  8309. if esep {
  8310. for _, k2 := range v2 {
  8311. ee.WriteMapElemKey()
  8312. ee.EncodeUint(uint64(uint32(k2)))
  8313. ee.WriteMapElemValue()
  8314. ee.EncodeInt(int64(v[uint32(k2)]))
  8315. }
  8316. } else {
  8317. for _, k2 := range v2 {
  8318. ee.EncodeUint(uint64(uint32(k2)))
  8319. ee.EncodeInt(int64(v[uint32(k2)]))
  8320. }
  8321. }
  8322. } else {
  8323. if esep {
  8324. for k2, v2 := range v {
  8325. ee.WriteMapElemKey()
  8326. ee.EncodeUint(uint64(k2))
  8327. ee.WriteMapElemValue()
  8328. ee.EncodeInt(int64(v2))
  8329. }
  8330. } else {
  8331. for k2, v2 := range v {
  8332. ee.EncodeUint(uint64(k2))
  8333. ee.EncodeInt(int64(v2))
  8334. }
  8335. }
  8336. }
  8337. ee.WriteMapEnd()
  8338. }
  8339. func (e *Encoder) fastpathEncMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  8340. fastpathTV.EncMapUint32Float32V(rv2i(rv).(map[uint32]float32), e)
  8341. }
  8342. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, e *Encoder) {
  8343. if v == nil {
  8344. e.e.EncodeNil()
  8345. return
  8346. }
  8347. ee, esep := e.e, e.hh.hasElemSeparators()
  8348. ee.WriteMapStart(len(v))
  8349. if e.h.Canonical {
  8350. v2 := make([]uint64, len(v))
  8351. var i int
  8352. for k, _ := range v {
  8353. v2[i] = uint64(k)
  8354. i++
  8355. }
  8356. sort.Sort(uintSlice(v2))
  8357. if esep {
  8358. for _, k2 := range v2 {
  8359. ee.WriteMapElemKey()
  8360. ee.EncodeUint(uint64(uint32(k2)))
  8361. ee.WriteMapElemValue()
  8362. ee.EncodeFloat32(v[uint32(k2)])
  8363. }
  8364. } else {
  8365. for _, k2 := range v2 {
  8366. ee.EncodeUint(uint64(uint32(k2)))
  8367. ee.EncodeFloat32(v[uint32(k2)])
  8368. }
  8369. }
  8370. } else {
  8371. if esep {
  8372. for k2, v2 := range v {
  8373. ee.WriteMapElemKey()
  8374. ee.EncodeUint(uint64(k2))
  8375. ee.WriteMapElemValue()
  8376. ee.EncodeFloat32(v2)
  8377. }
  8378. } else {
  8379. for k2, v2 := range v {
  8380. ee.EncodeUint(uint64(k2))
  8381. ee.EncodeFloat32(v2)
  8382. }
  8383. }
  8384. }
  8385. ee.WriteMapEnd()
  8386. }
  8387. func (e *Encoder) fastpathEncMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  8388. fastpathTV.EncMapUint32Float64V(rv2i(rv).(map[uint32]float64), e)
  8389. }
  8390. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, e *Encoder) {
  8391. if v == nil {
  8392. e.e.EncodeNil()
  8393. return
  8394. }
  8395. ee, esep := e.e, e.hh.hasElemSeparators()
  8396. ee.WriteMapStart(len(v))
  8397. if e.h.Canonical {
  8398. v2 := make([]uint64, len(v))
  8399. var i int
  8400. for k, _ := range v {
  8401. v2[i] = uint64(k)
  8402. i++
  8403. }
  8404. sort.Sort(uintSlice(v2))
  8405. if esep {
  8406. for _, k2 := range v2 {
  8407. ee.WriteMapElemKey()
  8408. ee.EncodeUint(uint64(uint32(k2)))
  8409. ee.WriteMapElemValue()
  8410. ee.EncodeFloat64(v[uint32(k2)])
  8411. }
  8412. } else {
  8413. for _, k2 := range v2 {
  8414. ee.EncodeUint(uint64(uint32(k2)))
  8415. ee.EncodeFloat64(v[uint32(k2)])
  8416. }
  8417. }
  8418. } else {
  8419. if esep {
  8420. for k2, v2 := range v {
  8421. ee.WriteMapElemKey()
  8422. ee.EncodeUint(uint64(k2))
  8423. ee.WriteMapElemValue()
  8424. ee.EncodeFloat64(v2)
  8425. }
  8426. } else {
  8427. for k2, v2 := range v {
  8428. ee.EncodeUint(uint64(k2))
  8429. ee.EncodeFloat64(v2)
  8430. }
  8431. }
  8432. }
  8433. ee.WriteMapEnd()
  8434. }
  8435. func (e *Encoder) fastpathEncMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  8436. fastpathTV.EncMapUint32BoolV(rv2i(rv).(map[uint32]bool), e)
  8437. }
  8438. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, e *Encoder) {
  8439. if v == nil {
  8440. e.e.EncodeNil()
  8441. return
  8442. }
  8443. ee, esep := e.e, e.hh.hasElemSeparators()
  8444. ee.WriteMapStart(len(v))
  8445. if e.h.Canonical {
  8446. v2 := make([]uint64, len(v))
  8447. var i int
  8448. for k, _ := range v {
  8449. v2[i] = uint64(k)
  8450. i++
  8451. }
  8452. sort.Sort(uintSlice(v2))
  8453. if esep {
  8454. for _, k2 := range v2 {
  8455. ee.WriteMapElemKey()
  8456. ee.EncodeUint(uint64(uint32(k2)))
  8457. ee.WriteMapElemValue()
  8458. ee.EncodeBool(v[uint32(k2)])
  8459. }
  8460. } else {
  8461. for _, k2 := range v2 {
  8462. ee.EncodeUint(uint64(uint32(k2)))
  8463. ee.EncodeBool(v[uint32(k2)])
  8464. }
  8465. }
  8466. } else {
  8467. if esep {
  8468. for k2, v2 := range v {
  8469. ee.WriteMapElemKey()
  8470. ee.EncodeUint(uint64(k2))
  8471. ee.WriteMapElemValue()
  8472. ee.EncodeBool(v2)
  8473. }
  8474. } else {
  8475. for k2, v2 := range v {
  8476. ee.EncodeUint(uint64(k2))
  8477. ee.EncodeBool(v2)
  8478. }
  8479. }
  8480. }
  8481. ee.WriteMapEnd()
  8482. }
  8483. func (e *Encoder) fastpathEncMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  8484. fastpathTV.EncMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), e)
  8485. }
  8486. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, e *Encoder) {
  8487. if v == nil {
  8488. e.e.EncodeNil()
  8489. return
  8490. }
  8491. ee, esep := e.e, e.hh.hasElemSeparators()
  8492. ee.WriteMapStart(len(v))
  8493. if e.h.Canonical {
  8494. v2 := make([]uint64, len(v))
  8495. var i int
  8496. for k, _ := range v {
  8497. v2[i] = uint64(k)
  8498. i++
  8499. }
  8500. sort.Sort(uintSlice(v2))
  8501. if esep {
  8502. for _, k2 := range v2 {
  8503. ee.WriteMapElemKey()
  8504. ee.EncodeUint(uint64(uint64(k2)))
  8505. ee.WriteMapElemValue()
  8506. e.encode(v[uint64(k2)])
  8507. }
  8508. } else {
  8509. for _, k2 := range v2 {
  8510. ee.EncodeUint(uint64(uint64(k2)))
  8511. e.encode(v[uint64(k2)])
  8512. }
  8513. }
  8514. } else {
  8515. if esep {
  8516. for k2, v2 := range v {
  8517. ee.WriteMapElemKey()
  8518. ee.EncodeUint(uint64(k2))
  8519. ee.WriteMapElemValue()
  8520. e.encode(v2)
  8521. }
  8522. } else {
  8523. for k2, v2 := range v {
  8524. ee.EncodeUint(uint64(k2))
  8525. e.encode(v2)
  8526. }
  8527. }
  8528. }
  8529. ee.WriteMapEnd()
  8530. }
  8531. func (e *Encoder) fastpathEncMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  8532. fastpathTV.EncMapUint64StringV(rv2i(rv).(map[uint64]string), e)
  8533. }
  8534. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, e *Encoder) {
  8535. if v == nil {
  8536. e.e.EncodeNil()
  8537. return
  8538. }
  8539. ee, esep := e.e, e.hh.hasElemSeparators()
  8540. ee.WriteMapStart(len(v))
  8541. if e.h.Canonical {
  8542. v2 := make([]uint64, len(v))
  8543. var i int
  8544. for k, _ := range v {
  8545. v2[i] = uint64(k)
  8546. i++
  8547. }
  8548. sort.Sort(uintSlice(v2))
  8549. if esep {
  8550. for _, k2 := range v2 {
  8551. ee.WriteMapElemKey()
  8552. ee.EncodeUint(uint64(uint64(k2)))
  8553. ee.WriteMapElemValue()
  8554. ee.EncodeString(cUTF8, v[uint64(k2)])
  8555. }
  8556. } else {
  8557. for _, k2 := range v2 {
  8558. ee.EncodeUint(uint64(uint64(k2)))
  8559. ee.EncodeString(cUTF8, v[uint64(k2)])
  8560. }
  8561. }
  8562. } else {
  8563. if esep {
  8564. for k2, v2 := range v {
  8565. ee.WriteMapElemKey()
  8566. ee.EncodeUint(uint64(k2))
  8567. ee.WriteMapElemValue()
  8568. ee.EncodeString(cUTF8, v2)
  8569. }
  8570. } else {
  8571. for k2, v2 := range v {
  8572. ee.EncodeUint(uint64(k2))
  8573. ee.EncodeString(cUTF8, v2)
  8574. }
  8575. }
  8576. }
  8577. ee.WriteMapEnd()
  8578. }
  8579. func (e *Encoder) fastpathEncMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  8580. fastpathTV.EncMapUint64UintV(rv2i(rv).(map[uint64]uint), e)
  8581. }
  8582. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, e *Encoder) {
  8583. if v == nil {
  8584. e.e.EncodeNil()
  8585. return
  8586. }
  8587. ee, esep := e.e, e.hh.hasElemSeparators()
  8588. ee.WriteMapStart(len(v))
  8589. if e.h.Canonical {
  8590. v2 := make([]uint64, len(v))
  8591. var i int
  8592. for k, _ := range v {
  8593. v2[i] = uint64(k)
  8594. i++
  8595. }
  8596. sort.Sort(uintSlice(v2))
  8597. if esep {
  8598. for _, k2 := range v2 {
  8599. ee.WriteMapElemKey()
  8600. ee.EncodeUint(uint64(uint64(k2)))
  8601. ee.WriteMapElemValue()
  8602. ee.EncodeUint(uint64(v[uint64(k2)]))
  8603. }
  8604. } else {
  8605. for _, k2 := range v2 {
  8606. ee.EncodeUint(uint64(uint64(k2)))
  8607. ee.EncodeUint(uint64(v[uint64(k2)]))
  8608. }
  8609. }
  8610. } else {
  8611. if esep {
  8612. for k2, v2 := range v {
  8613. ee.WriteMapElemKey()
  8614. ee.EncodeUint(uint64(k2))
  8615. ee.WriteMapElemValue()
  8616. ee.EncodeUint(uint64(v2))
  8617. }
  8618. } else {
  8619. for k2, v2 := range v {
  8620. ee.EncodeUint(uint64(k2))
  8621. ee.EncodeUint(uint64(v2))
  8622. }
  8623. }
  8624. }
  8625. ee.WriteMapEnd()
  8626. }
  8627. func (e *Encoder) fastpathEncMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  8628. fastpathTV.EncMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), e)
  8629. }
  8630. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, e *Encoder) {
  8631. if v == nil {
  8632. e.e.EncodeNil()
  8633. return
  8634. }
  8635. ee, esep := e.e, e.hh.hasElemSeparators()
  8636. ee.WriteMapStart(len(v))
  8637. if e.h.Canonical {
  8638. v2 := make([]uint64, len(v))
  8639. var i int
  8640. for k, _ := range v {
  8641. v2[i] = uint64(k)
  8642. i++
  8643. }
  8644. sort.Sort(uintSlice(v2))
  8645. if esep {
  8646. for _, k2 := range v2 {
  8647. ee.WriteMapElemKey()
  8648. ee.EncodeUint(uint64(uint64(k2)))
  8649. ee.WriteMapElemValue()
  8650. ee.EncodeUint(uint64(v[uint64(k2)]))
  8651. }
  8652. } else {
  8653. for _, k2 := range v2 {
  8654. ee.EncodeUint(uint64(uint64(k2)))
  8655. ee.EncodeUint(uint64(v[uint64(k2)]))
  8656. }
  8657. }
  8658. } else {
  8659. if esep {
  8660. for k2, v2 := range v {
  8661. ee.WriteMapElemKey()
  8662. ee.EncodeUint(uint64(k2))
  8663. ee.WriteMapElemValue()
  8664. ee.EncodeUint(uint64(v2))
  8665. }
  8666. } else {
  8667. for k2, v2 := range v {
  8668. ee.EncodeUint(uint64(k2))
  8669. ee.EncodeUint(uint64(v2))
  8670. }
  8671. }
  8672. }
  8673. ee.WriteMapEnd()
  8674. }
  8675. func (e *Encoder) fastpathEncMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  8676. fastpathTV.EncMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), e)
  8677. }
  8678. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, e *Encoder) {
  8679. if v == nil {
  8680. e.e.EncodeNil()
  8681. return
  8682. }
  8683. ee, esep := e.e, e.hh.hasElemSeparators()
  8684. ee.WriteMapStart(len(v))
  8685. if e.h.Canonical {
  8686. v2 := make([]uint64, len(v))
  8687. var i int
  8688. for k, _ := range v {
  8689. v2[i] = uint64(k)
  8690. i++
  8691. }
  8692. sort.Sort(uintSlice(v2))
  8693. if esep {
  8694. for _, k2 := range v2 {
  8695. ee.WriteMapElemKey()
  8696. ee.EncodeUint(uint64(uint64(k2)))
  8697. ee.WriteMapElemValue()
  8698. ee.EncodeUint(uint64(v[uint64(k2)]))
  8699. }
  8700. } else {
  8701. for _, k2 := range v2 {
  8702. ee.EncodeUint(uint64(uint64(k2)))
  8703. ee.EncodeUint(uint64(v[uint64(k2)]))
  8704. }
  8705. }
  8706. } else {
  8707. if esep {
  8708. for k2, v2 := range v {
  8709. ee.WriteMapElemKey()
  8710. ee.EncodeUint(uint64(k2))
  8711. ee.WriteMapElemValue()
  8712. ee.EncodeUint(uint64(v2))
  8713. }
  8714. } else {
  8715. for k2, v2 := range v {
  8716. ee.EncodeUint(uint64(k2))
  8717. ee.EncodeUint(uint64(v2))
  8718. }
  8719. }
  8720. }
  8721. ee.WriteMapEnd()
  8722. }
  8723. func (e *Encoder) fastpathEncMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  8724. fastpathTV.EncMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), e)
  8725. }
  8726. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, e *Encoder) {
  8727. if v == nil {
  8728. e.e.EncodeNil()
  8729. return
  8730. }
  8731. ee, esep := e.e, e.hh.hasElemSeparators()
  8732. ee.WriteMapStart(len(v))
  8733. if e.h.Canonical {
  8734. v2 := make([]uint64, len(v))
  8735. var i int
  8736. for k, _ := range v {
  8737. v2[i] = uint64(k)
  8738. i++
  8739. }
  8740. sort.Sort(uintSlice(v2))
  8741. if esep {
  8742. for _, k2 := range v2 {
  8743. ee.WriteMapElemKey()
  8744. ee.EncodeUint(uint64(uint64(k2)))
  8745. ee.WriteMapElemValue()
  8746. ee.EncodeUint(uint64(v[uint64(k2)]))
  8747. }
  8748. } else {
  8749. for _, k2 := range v2 {
  8750. ee.EncodeUint(uint64(uint64(k2)))
  8751. ee.EncodeUint(uint64(v[uint64(k2)]))
  8752. }
  8753. }
  8754. } else {
  8755. if esep {
  8756. for k2, v2 := range v {
  8757. ee.WriteMapElemKey()
  8758. ee.EncodeUint(uint64(k2))
  8759. ee.WriteMapElemValue()
  8760. ee.EncodeUint(uint64(v2))
  8761. }
  8762. } else {
  8763. for k2, v2 := range v {
  8764. ee.EncodeUint(uint64(k2))
  8765. ee.EncodeUint(uint64(v2))
  8766. }
  8767. }
  8768. }
  8769. ee.WriteMapEnd()
  8770. }
  8771. func (e *Encoder) fastpathEncMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  8772. fastpathTV.EncMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), e)
  8773. }
  8774. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, e *Encoder) {
  8775. if v == nil {
  8776. e.e.EncodeNil()
  8777. return
  8778. }
  8779. ee, esep := e.e, e.hh.hasElemSeparators()
  8780. ee.WriteMapStart(len(v))
  8781. if e.h.Canonical {
  8782. v2 := make([]uint64, len(v))
  8783. var i int
  8784. for k, _ := range v {
  8785. v2[i] = uint64(k)
  8786. i++
  8787. }
  8788. sort.Sort(uintSlice(v2))
  8789. if esep {
  8790. for _, k2 := range v2 {
  8791. ee.WriteMapElemKey()
  8792. ee.EncodeUint(uint64(uint64(k2)))
  8793. ee.WriteMapElemValue()
  8794. ee.EncodeUint(uint64(v[uint64(k2)]))
  8795. }
  8796. } else {
  8797. for _, k2 := range v2 {
  8798. ee.EncodeUint(uint64(uint64(k2)))
  8799. ee.EncodeUint(uint64(v[uint64(k2)]))
  8800. }
  8801. }
  8802. } else {
  8803. if esep {
  8804. for k2, v2 := range v {
  8805. ee.WriteMapElemKey()
  8806. ee.EncodeUint(uint64(k2))
  8807. ee.WriteMapElemValue()
  8808. ee.EncodeUint(uint64(v2))
  8809. }
  8810. } else {
  8811. for k2, v2 := range v {
  8812. ee.EncodeUint(uint64(k2))
  8813. ee.EncodeUint(uint64(v2))
  8814. }
  8815. }
  8816. }
  8817. ee.WriteMapEnd()
  8818. }
  8819. func (e *Encoder) fastpathEncMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  8820. fastpathTV.EncMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), e)
  8821. }
  8822. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, e *Encoder) {
  8823. if v == nil {
  8824. e.e.EncodeNil()
  8825. return
  8826. }
  8827. ee, esep := e.e, e.hh.hasElemSeparators()
  8828. ee.WriteMapStart(len(v))
  8829. if e.h.Canonical {
  8830. v2 := make([]uint64, len(v))
  8831. var i int
  8832. for k, _ := range v {
  8833. v2[i] = uint64(k)
  8834. i++
  8835. }
  8836. sort.Sort(uintSlice(v2))
  8837. if esep {
  8838. for _, k2 := range v2 {
  8839. ee.WriteMapElemKey()
  8840. ee.EncodeUint(uint64(uint64(k2)))
  8841. ee.WriteMapElemValue()
  8842. e.encode(v[uint64(k2)])
  8843. }
  8844. } else {
  8845. for _, k2 := range v2 {
  8846. ee.EncodeUint(uint64(uint64(k2)))
  8847. e.encode(v[uint64(k2)])
  8848. }
  8849. }
  8850. } else {
  8851. if esep {
  8852. for k2, v2 := range v {
  8853. ee.WriteMapElemKey()
  8854. ee.EncodeUint(uint64(k2))
  8855. ee.WriteMapElemValue()
  8856. e.encode(v2)
  8857. }
  8858. } else {
  8859. for k2, v2 := range v {
  8860. ee.EncodeUint(uint64(k2))
  8861. e.encode(v2)
  8862. }
  8863. }
  8864. }
  8865. ee.WriteMapEnd()
  8866. }
  8867. func (e *Encoder) fastpathEncMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  8868. fastpathTV.EncMapUint64IntV(rv2i(rv).(map[uint64]int), e)
  8869. }
  8870. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, e *Encoder) {
  8871. if v == nil {
  8872. e.e.EncodeNil()
  8873. return
  8874. }
  8875. ee, esep := e.e, e.hh.hasElemSeparators()
  8876. ee.WriteMapStart(len(v))
  8877. if e.h.Canonical {
  8878. v2 := make([]uint64, len(v))
  8879. var i int
  8880. for k, _ := range v {
  8881. v2[i] = uint64(k)
  8882. i++
  8883. }
  8884. sort.Sort(uintSlice(v2))
  8885. if esep {
  8886. for _, k2 := range v2 {
  8887. ee.WriteMapElemKey()
  8888. ee.EncodeUint(uint64(uint64(k2)))
  8889. ee.WriteMapElemValue()
  8890. ee.EncodeInt(int64(v[uint64(k2)]))
  8891. }
  8892. } else {
  8893. for _, k2 := range v2 {
  8894. ee.EncodeUint(uint64(uint64(k2)))
  8895. ee.EncodeInt(int64(v[uint64(k2)]))
  8896. }
  8897. }
  8898. } else {
  8899. if esep {
  8900. for k2, v2 := range v {
  8901. ee.WriteMapElemKey()
  8902. ee.EncodeUint(uint64(k2))
  8903. ee.WriteMapElemValue()
  8904. ee.EncodeInt(int64(v2))
  8905. }
  8906. } else {
  8907. for k2, v2 := range v {
  8908. ee.EncodeUint(uint64(k2))
  8909. ee.EncodeInt(int64(v2))
  8910. }
  8911. }
  8912. }
  8913. ee.WriteMapEnd()
  8914. }
  8915. func (e *Encoder) fastpathEncMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  8916. fastpathTV.EncMapUint64Int8V(rv2i(rv).(map[uint64]int8), e)
  8917. }
  8918. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, e *Encoder) {
  8919. if v == nil {
  8920. e.e.EncodeNil()
  8921. return
  8922. }
  8923. ee, esep := e.e, e.hh.hasElemSeparators()
  8924. ee.WriteMapStart(len(v))
  8925. if e.h.Canonical {
  8926. v2 := make([]uint64, len(v))
  8927. var i int
  8928. for k, _ := range v {
  8929. v2[i] = uint64(k)
  8930. i++
  8931. }
  8932. sort.Sort(uintSlice(v2))
  8933. if esep {
  8934. for _, k2 := range v2 {
  8935. ee.WriteMapElemKey()
  8936. ee.EncodeUint(uint64(uint64(k2)))
  8937. ee.WriteMapElemValue()
  8938. ee.EncodeInt(int64(v[uint64(k2)]))
  8939. }
  8940. } else {
  8941. for _, k2 := range v2 {
  8942. ee.EncodeUint(uint64(uint64(k2)))
  8943. ee.EncodeInt(int64(v[uint64(k2)]))
  8944. }
  8945. }
  8946. } else {
  8947. if esep {
  8948. for k2, v2 := range v {
  8949. ee.WriteMapElemKey()
  8950. ee.EncodeUint(uint64(k2))
  8951. ee.WriteMapElemValue()
  8952. ee.EncodeInt(int64(v2))
  8953. }
  8954. } else {
  8955. for k2, v2 := range v {
  8956. ee.EncodeUint(uint64(k2))
  8957. ee.EncodeInt(int64(v2))
  8958. }
  8959. }
  8960. }
  8961. ee.WriteMapEnd()
  8962. }
  8963. func (e *Encoder) fastpathEncMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  8964. fastpathTV.EncMapUint64Int16V(rv2i(rv).(map[uint64]int16), e)
  8965. }
  8966. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, e *Encoder) {
  8967. if v == nil {
  8968. e.e.EncodeNil()
  8969. return
  8970. }
  8971. ee, esep := e.e, e.hh.hasElemSeparators()
  8972. ee.WriteMapStart(len(v))
  8973. if e.h.Canonical {
  8974. v2 := make([]uint64, len(v))
  8975. var i int
  8976. for k, _ := range v {
  8977. v2[i] = uint64(k)
  8978. i++
  8979. }
  8980. sort.Sort(uintSlice(v2))
  8981. if esep {
  8982. for _, k2 := range v2 {
  8983. ee.WriteMapElemKey()
  8984. ee.EncodeUint(uint64(uint64(k2)))
  8985. ee.WriteMapElemValue()
  8986. ee.EncodeInt(int64(v[uint64(k2)]))
  8987. }
  8988. } else {
  8989. for _, k2 := range v2 {
  8990. ee.EncodeUint(uint64(uint64(k2)))
  8991. ee.EncodeInt(int64(v[uint64(k2)]))
  8992. }
  8993. }
  8994. } else {
  8995. if esep {
  8996. for k2, v2 := range v {
  8997. ee.WriteMapElemKey()
  8998. ee.EncodeUint(uint64(k2))
  8999. ee.WriteMapElemValue()
  9000. ee.EncodeInt(int64(v2))
  9001. }
  9002. } else {
  9003. for k2, v2 := range v {
  9004. ee.EncodeUint(uint64(k2))
  9005. ee.EncodeInt(int64(v2))
  9006. }
  9007. }
  9008. }
  9009. ee.WriteMapEnd()
  9010. }
  9011. func (e *Encoder) fastpathEncMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  9012. fastpathTV.EncMapUint64Int32V(rv2i(rv).(map[uint64]int32), e)
  9013. }
  9014. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, e *Encoder) {
  9015. if v == nil {
  9016. e.e.EncodeNil()
  9017. return
  9018. }
  9019. ee, esep := e.e, e.hh.hasElemSeparators()
  9020. ee.WriteMapStart(len(v))
  9021. if e.h.Canonical {
  9022. v2 := make([]uint64, len(v))
  9023. var i int
  9024. for k, _ := range v {
  9025. v2[i] = uint64(k)
  9026. i++
  9027. }
  9028. sort.Sort(uintSlice(v2))
  9029. if esep {
  9030. for _, k2 := range v2 {
  9031. ee.WriteMapElemKey()
  9032. ee.EncodeUint(uint64(uint64(k2)))
  9033. ee.WriteMapElemValue()
  9034. ee.EncodeInt(int64(v[uint64(k2)]))
  9035. }
  9036. } else {
  9037. for _, k2 := range v2 {
  9038. ee.EncodeUint(uint64(uint64(k2)))
  9039. ee.EncodeInt(int64(v[uint64(k2)]))
  9040. }
  9041. }
  9042. } else {
  9043. if esep {
  9044. for k2, v2 := range v {
  9045. ee.WriteMapElemKey()
  9046. ee.EncodeUint(uint64(k2))
  9047. ee.WriteMapElemValue()
  9048. ee.EncodeInt(int64(v2))
  9049. }
  9050. } else {
  9051. for k2, v2 := range v {
  9052. ee.EncodeUint(uint64(k2))
  9053. ee.EncodeInt(int64(v2))
  9054. }
  9055. }
  9056. }
  9057. ee.WriteMapEnd()
  9058. }
  9059. func (e *Encoder) fastpathEncMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  9060. fastpathTV.EncMapUint64Int64V(rv2i(rv).(map[uint64]int64), e)
  9061. }
  9062. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, e *Encoder) {
  9063. if v == nil {
  9064. e.e.EncodeNil()
  9065. return
  9066. }
  9067. ee, esep := e.e, e.hh.hasElemSeparators()
  9068. ee.WriteMapStart(len(v))
  9069. if e.h.Canonical {
  9070. v2 := make([]uint64, len(v))
  9071. var i int
  9072. for k, _ := range v {
  9073. v2[i] = uint64(k)
  9074. i++
  9075. }
  9076. sort.Sort(uintSlice(v2))
  9077. if esep {
  9078. for _, k2 := range v2 {
  9079. ee.WriteMapElemKey()
  9080. ee.EncodeUint(uint64(uint64(k2)))
  9081. ee.WriteMapElemValue()
  9082. ee.EncodeInt(int64(v[uint64(k2)]))
  9083. }
  9084. } else {
  9085. for _, k2 := range v2 {
  9086. ee.EncodeUint(uint64(uint64(k2)))
  9087. ee.EncodeInt(int64(v[uint64(k2)]))
  9088. }
  9089. }
  9090. } else {
  9091. if esep {
  9092. for k2, v2 := range v {
  9093. ee.WriteMapElemKey()
  9094. ee.EncodeUint(uint64(k2))
  9095. ee.WriteMapElemValue()
  9096. ee.EncodeInt(int64(v2))
  9097. }
  9098. } else {
  9099. for k2, v2 := range v {
  9100. ee.EncodeUint(uint64(k2))
  9101. ee.EncodeInt(int64(v2))
  9102. }
  9103. }
  9104. }
  9105. ee.WriteMapEnd()
  9106. }
  9107. func (e *Encoder) fastpathEncMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  9108. fastpathTV.EncMapUint64Float32V(rv2i(rv).(map[uint64]float32), e)
  9109. }
  9110. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, e *Encoder) {
  9111. if v == nil {
  9112. e.e.EncodeNil()
  9113. return
  9114. }
  9115. ee, esep := e.e, e.hh.hasElemSeparators()
  9116. ee.WriteMapStart(len(v))
  9117. if e.h.Canonical {
  9118. v2 := make([]uint64, len(v))
  9119. var i int
  9120. for k, _ := range v {
  9121. v2[i] = uint64(k)
  9122. i++
  9123. }
  9124. sort.Sort(uintSlice(v2))
  9125. if esep {
  9126. for _, k2 := range v2 {
  9127. ee.WriteMapElemKey()
  9128. ee.EncodeUint(uint64(uint64(k2)))
  9129. ee.WriteMapElemValue()
  9130. ee.EncodeFloat32(v[uint64(k2)])
  9131. }
  9132. } else {
  9133. for _, k2 := range v2 {
  9134. ee.EncodeUint(uint64(uint64(k2)))
  9135. ee.EncodeFloat32(v[uint64(k2)])
  9136. }
  9137. }
  9138. } else {
  9139. if esep {
  9140. for k2, v2 := range v {
  9141. ee.WriteMapElemKey()
  9142. ee.EncodeUint(uint64(k2))
  9143. ee.WriteMapElemValue()
  9144. ee.EncodeFloat32(v2)
  9145. }
  9146. } else {
  9147. for k2, v2 := range v {
  9148. ee.EncodeUint(uint64(k2))
  9149. ee.EncodeFloat32(v2)
  9150. }
  9151. }
  9152. }
  9153. ee.WriteMapEnd()
  9154. }
  9155. func (e *Encoder) fastpathEncMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  9156. fastpathTV.EncMapUint64Float64V(rv2i(rv).(map[uint64]float64), e)
  9157. }
  9158. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, e *Encoder) {
  9159. if v == nil {
  9160. e.e.EncodeNil()
  9161. return
  9162. }
  9163. ee, esep := e.e, e.hh.hasElemSeparators()
  9164. ee.WriteMapStart(len(v))
  9165. if e.h.Canonical {
  9166. v2 := make([]uint64, len(v))
  9167. var i int
  9168. for k, _ := range v {
  9169. v2[i] = uint64(k)
  9170. i++
  9171. }
  9172. sort.Sort(uintSlice(v2))
  9173. if esep {
  9174. for _, k2 := range v2 {
  9175. ee.WriteMapElemKey()
  9176. ee.EncodeUint(uint64(uint64(k2)))
  9177. ee.WriteMapElemValue()
  9178. ee.EncodeFloat64(v[uint64(k2)])
  9179. }
  9180. } else {
  9181. for _, k2 := range v2 {
  9182. ee.EncodeUint(uint64(uint64(k2)))
  9183. ee.EncodeFloat64(v[uint64(k2)])
  9184. }
  9185. }
  9186. } else {
  9187. if esep {
  9188. for k2, v2 := range v {
  9189. ee.WriteMapElemKey()
  9190. ee.EncodeUint(uint64(k2))
  9191. ee.WriteMapElemValue()
  9192. ee.EncodeFloat64(v2)
  9193. }
  9194. } else {
  9195. for k2, v2 := range v {
  9196. ee.EncodeUint(uint64(k2))
  9197. ee.EncodeFloat64(v2)
  9198. }
  9199. }
  9200. }
  9201. ee.WriteMapEnd()
  9202. }
  9203. func (e *Encoder) fastpathEncMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  9204. fastpathTV.EncMapUint64BoolV(rv2i(rv).(map[uint64]bool), e)
  9205. }
  9206. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, e *Encoder) {
  9207. if v == nil {
  9208. e.e.EncodeNil()
  9209. return
  9210. }
  9211. ee, esep := e.e, e.hh.hasElemSeparators()
  9212. ee.WriteMapStart(len(v))
  9213. if e.h.Canonical {
  9214. v2 := make([]uint64, len(v))
  9215. var i int
  9216. for k, _ := range v {
  9217. v2[i] = uint64(k)
  9218. i++
  9219. }
  9220. sort.Sort(uintSlice(v2))
  9221. if esep {
  9222. for _, k2 := range v2 {
  9223. ee.WriteMapElemKey()
  9224. ee.EncodeUint(uint64(uint64(k2)))
  9225. ee.WriteMapElemValue()
  9226. ee.EncodeBool(v[uint64(k2)])
  9227. }
  9228. } else {
  9229. for _, k2 := range v2 {
  9230. ee.EncodeUint(uint64(uint64(k2)))
  9231. ee.EncodeBool(v[uint64(k2)])
  9232. }
  9233. }
  9234. } else {
  9235. if esep {
  9236. for k2, v2 := range v {
  9237. ee.WriteMapElemKey()
  9238. ee.EncodeUint(uint64(k2))
  9239. ee.WriteMapElemValue()
  9240. ee.EncodeBool(v2)
  9241. }
  9242. } else {
  9243. for k2, v2 := range v {
  9244. ee.EncodeUint(uint64(k2))
  9245. ee.EncodeBool(v2)
  9246. }
  9247. }
  9248. }
  9249. ee.WriteMapEnd()
  9250. }
  9251. func (e *Encoder) fastpathEncMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  9252. fastpathTV.EncMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), e)
  9253. }
  9254. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, e *Encoder) {
  9255. if v == nil {
  9256. e.e.EncodeNil()
  9257. return
  9258. }
  9259. ee, esep := e.e, e.hh.hasElemSeparators()
  9260. ee.WriteMapStart(len(v))
  9261. if e.h.Canonical {
  9262. v2 := make([]uint64, len(v))
  9263. var i int
  9264. for k, _ := range v {
  9265. v2[i] = uint64(k)
  9266. i++
  9267. }
  9268. sort.Sort(uintSlice(v2))
  9269. if esep {
  9270. for _, k2 := range v2 {
  9271. ee.WriteMapElemKey()
  9272. e.encode(uintptr(k2))
  9273. ee.WriteMapElemValue()
  9274. e.encode(v[uintptr(k2)])
  9275. }
  9276. } else {
  9277. for _, k2 := range v2 {
  9278. e.encode(uintptr(k2))
  9279. e.encode(v[uintptr(k2)])
  9280. }
  9281. }
  9282. } else {
  9283. if esep {
  9284. for k2, v2 := range v {
  9285. ee.WriteMapElemKey()
  9286. e.encode(k2)
  9287. ee.WriteMapElemValue()
  9288. e.encode(v2)
  9289. }
  9290. } else {
  9291. for k2, v2 := range v {
  9292. e.encode(k2)
  9293. e.encode(v2)
  9294. }
  9295. }
  9296. }
  9297. ee.WriteMapEnd()
  9298. }
  9299. func (e *Encoder) fastpathEncMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  9300. fastpathTV.EncMapUintptrStringV(rv2i(rv).(map[uintptr]string), e)
  9301. }
  9302. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, e *Encoder) {
  9303. if v == nil {
  9304. e.e.EncodeNil()
  9305. return
  9306. }
  9307. ee, esep := e.e, e.hh.hasElemSeparators()
  9308. ee.WriteMapStart(len(v))
  9309. if e.h.Canonical {
  9310. v2 := make([]uint64, len(v))
  9311. var i int
  9312. for k, _ := range v {
  9313. v2[i] = uint64(k)
  9314. i++
  9315. }
  9316. sort.Sort(uintSlice(v2))
  9317. if esep {
  9318. for _, k2 := range v2 {
  9319. ee.WriteMapElemKey()
  9320. e.encode(uintptr(k2))
  9321. ee.WriteMapElemValue()
  9322. ee.EncodeString(cUTF8, v[uintptr(k2)])
  9323. }
  9324. } else {
  9325. for _, k2 := range v2 {
  9326. e.encode(uintptr(k2))
  9327. ee.EncodeString(cUTF8, v[uintptr(k2)])
  9328. }
  9329. }
  9330. } else {
  9331. if esep {
  9332. for k2, v2 := range v {
  9333. ee.WriteMapElemKey()
  9334. e.encode(k2)
  9335. ee.WriteMapElemValue()
  9336. ee.EncodeString(cUTF8, v2)
  9337. }
  9338. } else {
  9339. for k2, v2 := range v {
  9340. e.encode(k2)
  9341. ee.EncodeString(cUTF8, v2)
  9342. }
  9343. }
  9344. }
  9345. ee.WriteMapEnd()
  9346. }
  9347. func (e *Encoder) fastpathEncMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  9348. fastpathTV.EncMapUintptrUintV(rv2i(rv).(map[uintptr]uint), e)
  9349. }
  9350. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, e *Encoder) {
  9351. if v == nil {
  9352. e.e.EncodeNil()
  9353. return
  9354. }
  9355. ee, esep := e.e, e.hh.hasElemSeparators()
  9356. ee.WriteMapStart(len(v))
  9357. if e.h.Canonical {
  9358. v2 := make([]uint64, len(v))
  9359. var i int
  9360. for k, _ := range v {
  9361. v2[i] = uint64(k)
  9362. i++
  9363. }
  9364. sort.Sort(uintSlice(v2))
  9365. if esep {
  9366. for _, k2 := range v2 {
  9367. ee.WriteMapElemKey()
  9368. e.encode(uintptr(k2))
  9369. ee.WriteMapElemValue()
  9370. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9371. }
  9372. } else {
  9373. for _, k2 := range v2 {
  9374. e.encode(uintptr(k2))
  9375. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9376. }
  9377. }
  9378. } else {
  9379. if esep {
  9380. for k2, v2 := range v {
  9381. ee.WriteMapElemKey()
  9382. e.encode(k2)
  9383. ee.WriteMapElemValue()
  9384. ee.EncodeUint(uint64(v2))
  9385. }
  9386. } else {
  9387. for k2, v2 := range v {
  9388. e.encode(k2)
  9389. ee.EncodeUint(uint64(v2))
  9390. }
  9391. }
  9392. }
  9393. ee.WriteMapEnd()
  9394. }
  9395. func (e *Encoder) fastpathEncMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  9396. fastpathTV.EncMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), e)
  9397. }
  9398. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, e *Encoder) {
  9399. if v == nil {
  9400. e.e.EncodeNil()
  9401. return
  9402. }
  9403. ee, esep := e.e, e.hh.hasElemSeparators()
  9404. ee.WriteMapStart(len(v))
  9405. if e.h.Canonical {
  9406. v2 := make([]uint64, len(v))
  9407. var i int
  9408. for k, _ := range v {
  9409. v2[i] = uint64(k)
  9410. i++
  9411. }
  9412. sort.Sort(uintSlice(v2))
  9413. if esep {
  9414. for _, k2 := range v2 {
  9415. ee.WriteMapElemKey()
  9416. e.encode(uintptr(k2))
  9417. ee.WriteMapElemValue()
  9418. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9419. }
  9420. } else {
  9421. for _, k2 := range v2 {
  9422. e.encode(uintptr(k2))
  9423. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9424. }
  9425. }
  9426. } else {
  9427. if esep {
  9428. for k2, v2 := range v {
  9429. ee.WriteMapElemKey()
  9430. e.encode(k2)
  9431. ee.WriteMapElemValue()
  9432. ee.EncodeUint(uint64(v2))
  9433. }
  9434. } else {
  9435. for k2, v2 := range v {
  9436. e.encode(k2)
  9437. ee.EncodeUint(uint64(v2))
  9438. }
  9439. }
  9440. }
  9441. ee.WriteMapEnd()
  9442. }
  9443. func (e *Encoder) fastpathEncMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  9444. fastpathTV.EncMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), e)
  9445. }
  9446. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, e *Encoder) {
  9447. if v == nil {
  9448. e.e.EncodeNil()
  9449. return
  9450. }
  9451. ee, esep := e.e, e.hh.hasElemSeparators()
  9452. ee.WriteMapStart(len(v))
  9453. if e.h.Canonical {
  9454. v2 := make([]uint64, len(v))
  9455. var i int
  9456. for k, _ := range v {
  9457. v2[i] = uint64(k)
  9458. i++
  9459. }
  9460. sort.Sort(uintSlice(v2))
  9461. if esep {
  9462. for _, k2 := range v2 {
  9463. ee.WriteMapElemKey()
  9464. e.encode(uintptr(k2))
  9465. ee.WriteMapElemValue()
  9466. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9467. }
  9468. } else {
  9469. for _, k2 := range v2 {
  9470. e.encode(uintptr(k2))
  9471. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9472. }
  9473. }
  9474. } else {
  9475. if esep {
  9476. for k2, v2 := range v {
  9477. ee.WriteMapElemKey()
  9478. e.encode(k2)
  9479. ee.WriteMapElemValue()
  9480. ee.EncodeUint(uint64(v2))
  9481. }
  9482. } else {
  9483. for k2, v2 := range v {
  9484. e.encode(k2)
  9485. ee.EncodeUint(uint64(v2))
  9486. }
  9487. }
  9488. }
  9489. ee.WriteMapEnd()
  9490. }
  9491. func (e *Encoder) fastpathEncMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  9492. fastpathTV.EncMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), e)
  9493. }
  9494. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, e *Encoder) {
  9495. if v == nil {
  9496. e.e.EncodeNil()
  9497. return
  9498. }
  9499. ee, esep := e.e, e.hh.hasElemSeparators()
  9500. ee.WriteMapStart(len(v))
  9501. if e.h.Canonical {
  9502. v2 := make([]uint64, len(v))
  9503. var i int
  9504. for k, _ := range v {
  9505. v2[i] = uint64(k)
  9506. i++
  9507. }
  9508. sort.Sort(uintSlice(v2))
  9509. if esep {
  9510. for _, k2 := range v2 {
  9511. ee.WriteMapElemKey()
  9512. e.encode(uintptr(k2))
  9513. ee.WriteMapElemValue()
  9514. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9515. }
  9516. } else {
  9517. for _, k2 := range v2 {
  9518. e.encode(uintptr(k2))
  9519. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9520. }
  9521. }
  9522. } else {
  9523. if esep {
  9524. for k2, v2 := range v {
  9525. ee.WriteMapElemKey()
  9526. e.encode(k2)
  9527. ee.WriteMapElemValue()
  9528. ee.EncodeUint(uint64(v2))
  9529. }
  9530. } else {
  9531. for k2, v2 := range v {
  9532. e.encode(k2)
  9533. ee.EncodeUint(uint64(v2))
  9534. }
  9535. }
  9536. }
  9537. ee.WriteMapEnd()
  9538. }
  9539. func (e *Encoder) fastpathEncMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  9540. fastpathTV.EncMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), e)
  9541. }
  9542. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, e *Encoder) {
  9543. if v == nil {
  9544. e.e.EncodeNil()
  9545. return
  9546. }
  9547. ee, esep := e.e, e.hh.hasElemSeparators()
  9548. ee.WriteMapStart(len(v))
  9549. if e.h.Canonical {
  9550. v2 := make([]uint64, len(v))
  9551. var i int
  9552. for k, _ := range v {
  9553. v2[i] = uint64(k)
  9554. i++
  9555. }
  9556. sort.Sort(uintSlice(v2))
  9557. if esep {
  9558. for _, k2 := range v2 {
  9559. ee.WriteMapElemKey()
  9560. e.encode(uintptr(k2))
  9561. ee.WriteMapElemValue()
  9562. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9563. }
  9564. } else {
  9565. for _, k2 := range v2 {
  9566. e.encode(uintptr(k2))
  9567. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9568. }
  9569. }
  9570. } else {
  9571. if esep {
  9572. for k2, v2 := range v {
  9573. ee.WriteMapElemKey()
  9574. e.encode(k2)
  9575. ee.WriteMapElemValue()
  9576. ee.EncodeUint(uint64(v2))
  9577. }
  9578. } else {
  9579. for k2, v2 := range v {
  9580. e.encode(k2)
  9581. ee.EncodeUint(uint64(v2))
  9582. }
  9583. }
  9584. }
  9585. ee.WriteMapEnd()
  9586. }
  9587. func (e *Encoder) fastpathEncMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  9588. fastpathTV.EncMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), e)
  9589. }
  9590. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, e *Encoder) {
  9591. if v == nil {
  9592. e.e.EncodeNil()
  9593. return
  9594. }
  9595. ee, esep := e.e, e.hh.hasElemSeparators()
  9596. ee.WriteMapStart(len(v))
  9597. if e.h.Canonical {
  9598. v2 := make([]uint64, len(v))
  9599. var i int
  9600. for k, _ := range v {
  9601. v2[i] = uint64(k)
  9602. i++
  9603. }
  9604. sort.Sort(uintSlice(v2))
  9605. if esep {
  9606. for _, k2 := range v2 {
  9607. ee.WriteMapElemKey()
  9608. e.encode(uintptr(k2))
  9609. ee.WriteMapElemValue()
  9610. e.encode(v[uintptr(k2)])
  9611. }
  9612. } else {
  9613. for _, k2 := range v2 {
  9614. e.encode(uintptr(k2))
  9615. e.encode(v[uintptr(k2)])
  9616. }
  9617. }
  9618. } else {
  9619. if esep {
  9620. for k2, v2 := range v {
  9621. ee.WriteMapElemKey()
  9622. e.encode(k2)
  9623. ee.WriteMapElemValue()
  9624. e.encode(v2)
  9625. }
  9626. } else {
  9627. for k2, v2 := range v {
  9628. e.encode(k2)
  9629. e.encode(v2)
  9630. }
  9631. }
  9632. }
  9633. ee.WriteMapEnd()
  9634. }
  9635. func (e *Encoder) fastpathEncMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  9636. fastpathTV.EncMapUintptrIntV(rv2i(rv).(map[uintptr]int), e)
  9637. }
  9638. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, e *Encoder) {
  9639. if v == nil {
  9640. e.e.EncodeNil()
  9641. return
  9642. }
  9643. ee, esep := e.e, e.hh.hasElemSeparators()
  9644. ee.WriteMapStart(len(v))
  9645. if e.h.Canonical {
  9646. v2 := make([]uint64, len(v))
  9647. var i int
  9648. for k, _ := range v {
  9649. v2[i] = uint64(k)
  9650. i++
  9651. }
  9652. sort.Sort(uintSlice(v2))
  9653. if esep {
  9654. for _, k2 := range v2 {
  9655. ee.WriteMapElemKey()
  9656. e.encode(uintptr(k2))
  9657. ee.WriteMapElemValue()
  9658. ee.EncodeInt(int64(v[uintptr(k2)]))
  9659. }
  9660. } else {
  9661. for _, k2 := range v2 {
  9662. e.encode(uintptr(k2))
  9663. ee.EncodeInt(int64(v[uintptr(k2)]))
  9664. }
  9665. }
  9666. } else {
  9667. if esep {
  9668. for k2, v2 := range v {
  9669. ee.WriteMapElemKey()
  9670. e.encode(k2)
  9671. ee.WriteMapElemValue()
  9672. ee.EncodeInt(int64(v2))
  9673. }
  9674. } else {
  9675. for k2, v2 := range v {
  9676. e.encode(k2)
  9677. ee.EncodeInt(int64(v2))
  9678. }
  9679. }
  9680. }
  9681. ee.WriteMapEnd()
  9682. }
  9683. func (e *Encoder) fastpathEncMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  9684. fastpathTV.EncMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), e)
  9685. }
  9686. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, e *Encoder) {
  9687. if v == nil {
  9688. e.e.EncodeNil()
  9689. return
  9690. }
  9691. ee, esep := e.e, e.hh.hasElemSeparators()
  9692. ee.WriteMapStart(len(v))
  9693. if e.h.Canonical {
  9694. v2 := make([]uint64, len(v))
  9695. var i int
  9696. for k, _ := range v {
  9697. v2[i] = uint64(k)
  9698. i++
  9699. }
  9700. sort.Sort(uintSlice(v2))
  9701. if esep {
  9702. for _, k2 := range v2 {
  9703. ee.WriteMapElemKey()
  9704. e.encode(uintptr(k2))
  9705. ee.WriteMapElemValue()
  9706. ee.EncodeInt(int64(v[uintptr(k2)]))
  9707. }
  9708. } else {
  9709. for _, k2 := range v2 {
  9710. e.encode(uintptr(k2))
  9711. ee.EncodeInt(int64(v[uintptr(k2)]))
  9712. }
  9713. }
  9714. } else {
  9715. if esep {
  9716. for k2, v2 := range v {
  9717. ee.WriteMapElemKey()
  9718. e.encode(k2)
  9719. ee.WriteMapElemValue()
  9720. ee.EncodeInt(int64(v2))
  9721. }
  9722. } else {
  9723. for k2, v2 := range v {
  9724. e.encode(k2)
  9725. ee.EncodeInt(int64(v2))
  9726. }
  9727. }
  9728. }
  9729. ee.WriteMapEnd()
  9730. }
  9731. func (e *Encoder) fastpathEncMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  9732. fastpathTV.EncMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), e)
  9733. }
  9734. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, e *Encoder) {
  9735. if v == nil {
  9736. e.e.EncodeNil()
  9737. return
  9738. }
  9739. ee, esep := e.e, e.hh.hasElemSeparators()
  9740. ee.WriteMapStart(len(v))
  9741. if e.h.Canonical {
  9742. v2 := make([]uint64, len(v))
  9743. var i int
  9744. for k, _ := range v {
  9745. v2[i] = uint64(k)
  9746. i++
  9747. }
  9748. sort.Sort(uintSlice(v2))
  9749. if esep {
  9750. for _, k2 := range v2 {
  9751. ee.WriteMapElemKey()
  9752. e.encode(uintptr(k2))
  9753. ee.WriteMapElemValue()
  9754. ee.EncodeInt(int64(v[uintptr(k2)]))
  9755. }
  9756. } else {
  9757. for _, k2 := range v2 {
  9758. e.encode(uintptr(k2))
  9759. ee.EncodeInt(int64(v[uintptr(k2)]))
  9760. }
  9761. }
  9762. } else {
  9763. if esep {
  9764. for k2, v2 := range v {
  9765. ee.WriteMapElemKey()
  9766. e.encode(k2)
  9767. ee.WriteMapElemValue()
  9768. ee.EncodeInt(int64(v2))
  9769. }
  9770. } else {
  9771. for k2, v2 := range v {
  9772. e.encode(k2)
  9773. ee.EncodeInt(int64(v2))
  9774. }
  9775. }
  9776. }
  9777. ee.WriteMapEnd()
  9778. }
  9779. func (e *Encoder) fastpathEncMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  9780. fastpathTV.EncMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), e)
  9781. }
  9782. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, e *Encoder) {
  9783. if v == nil {
  9784. e.e.EncodeNil()
  9785. return
  9786. }
  9787. ee, esep := e.e, e.hh.hasElemSeparators()
  9788. ee.WriteMapStart(len(v))
  9789. if e.h.Canonical {
  9790. v2 := make([]uint64, len(v))
  9791. var i int
  9792. for k, _ := range v {
  9793. v2[i] = uint64(k)
  9794. i++
  9795. }
  9796. sort.Sort(uintSlice(v2))
  9797. if esep {
  9798. for _, k2 := range v2 {
  9799. ee.WriteMapElemKey()
  9800. e.encode(uintptr(k2))
  9801. ee.WriteMapElemValue()
  9802. ee.EncodeInt(int64(v[uintptr(k2)]))
  9803. }
  9804. } else {
  9805. for _, k2 := range v2 {
  9806. e.encode(uintptr(k2))
  9807. ee.EncodeInt(int64(v[uintptr(k2)]))
  9808. }
  9809. }
  9810. } else {
  9811. if esep {
  9812. for k2, v2 := range v {
  9813. ee.WriteMapElemKey()
  9814. e.encode(k2)
  9815. ee.WriteMapElemValue()
  9816. ee.EncodeInt(int64(v2))
  9817. }
  9818. } else {
  9819. for k2, v2 := range v {
  9820. e.encode(k2)
  9821. ee.EncodeInt(int64(v2))
  9822. }
  9823. }
  9824. }
  9825. ee.WriteMapEnd()
  9826. }
  9827. func (e *Encoder) fastpathEncMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  9828. fastpathTV.EncMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), e)
  9829. }
  9830. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, e *Encoder) {
  9831. if v == nil {
  9832. e.e.EncodeNil()
  9833. return
  9834. }
  9835. ee, esep := e.e, e.hh.hasElemSeparators()
  9836. ee.WriteMapStart(len(v))
  9837. if e.h.Canonical {
  9838. v2 := make([]uint64, len(v))
  9839. var i int
  9840. for k, _ := range v {
  9841. v2[i] = uint64(k)
  9842. i++
  9843. }
  9844. sort.Sort(uintSlice(v2))
  9845. if esep {
  9846. for _, k2 := range v2 {
  9847. ee.WriteMapElemKey()
  9848. e.encode(uintptr(k2))
  9849. ee.WriteMapElemValue()
  9850. ee.EncodeInt(int64(v[uintptr(k2)]))
  9851. }
  9852. } else {
  9853. for _, k2 := range v2 {
  9854. e.encode(uintptr(k2))
  9855. ee.EncodeInt(int64(v[uintptr(k2)]))
  9856. }
  9857. }
  9858. } else {
  9859. if esep {
  9860. for k2, v2 := range v {
  9861. ee.WriteMapElemKey()
  9862. e.encode(k2)
  9863. ee.WriteMapElemValue()
  9864. ee.EncodeInt(int64(v2))
  9865. }
  9866. } else {
  9867. for k2, v2 := range v {
  9868. e.encode(k2)
  9869. ee.EncodeInt(int64(v2))
  9870. }
  9871. }
  9872. }
  9873. ee.WriteMapEnd()
  9874. }
  9875. func (e *Encoder) fastpathEncMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  9876. fastpathTV.EncMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), e)
  9877. }
  9878. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, e *Encoder) {
  9879. if v == nil {
  9880. e.e.EncodeNil()
  9881. return
  9882. }
  9883. ee, esep := e.e, e.hh.hasElemSeparators()
  9884. ee.WriteMapStart(len(v))
  9885. if e.h.Canonical {
  9886. v2 := make([]uint64, len(v))
  9887. var i int
  9888. for k, _ := range v {
  9889. v2[i] = uint64(k)
  9890. i++
  9891. }
  9892. sort.Sort(uintSlice(v2))
  9893. if esep {
  9894. for _, k2 := range v2 {
  9895. ee.WriteMapElemKey()
  9896. e.encode(uintptr(k2))
  9897. ee.WriteMapElemValue()
  9898. ee.EncodeFloat32(v[uintptr(k2)])
  9899. }
  9900. } else {
  9901. for _, k2 := range v2 {
  9902. e.encode(uintptr(k2))
  9903. ee.EncodeFloat32(v[uintptr(k2)])
  9904. }
  9905. }
  9906. } else {
  9907. if esep {
  9908. for k2, v2 := range v {
  9909. ee.WriteMapElemKey()
  9910. e.encode(k2)
  9911. ee.WriteMapElemValue()
  9912. ee.EncodeFloat32(v2)
  9913. }
  9914. } else {
  9915. for k2, v2 := range v {
  9916. e.encode(k2)
  9917. ee.EncodeFloat32(v2)
  9918. }
  9919. }
  9920. }
  9921. ee.WriteMapEnd()
  9922. }
  9923. func (e *Encoder) fastpathEncMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  9924. fastpathTV.EncMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), e)
  9925. }
  9926. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, e *Encoder) {
  9927. if v == nil {
  9928. e.e.EncodeNil()
  9929. return
  9930. }
  9931. ee, esep := e.e, e.hh.hasElemSeparators()
  9932. ee.WriteMapStart(len(v))
  9933. if e.h.Canonical {
  9934. v2 := make([]uint64, len(v))
  9935. var i int
  9936. for k, _ := range v {
  9937. v2[i] = uint64(k)
  9938. i++
  9939. }
  9940. sort.Sort(uintSlice(v2))
  9941. if esep {
  9942. for _, k2 := range v2 {
  9943. ee.WriteMapElemKey()
  9944. e.encode(uintptr(k2))
  9945. ee.WriteMapElemValue()
  9946. ee.EncodeFloat64(v[uintptr(k2)])
  9947. }
  9948. } else {
  9949. for _, k2 := range v2 {
  9950. e.encode(uintptr(k2))
  9951. ee.EncodeFloat64(v[uintptr(k2)])
  9952. }
  9953. }
  9954. } else {
  9955. if esep {
  9956. for k2, v2 := range v {
  9957. ee.WriteMapElemKey()
  9958. e.encode(k2)
  9959. ee.WriteMapElemValue()
  9960. ee.EncodeFloat64(v2)
  9961. }
  9962. } else {
  9963. for k2, v2 := range v {
  9964. e.encode(k2)
  9965. ee.EncodeFloat64(v2)
  9966. }
  9967. }
  9968. }
  9969. ee.WriteMapEnd()
  9970. }
  9971. func (e *Encoder) fastpathEncMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  9972. fastpathTV.EncMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), e)
  9973. }
  9974. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, e *Encoder) {
  9975. if v == nil {
  9976. e.e.EncodeNil()
  9977. return
  9978. }
  9979. ee, esep := e.e, e.hh.hasElemSeparators()
  9980. ee.WriteMapStart(len(v))
  9981. if e.h.Canonical {
  9982. v2 := make([]uint64, len(v))
  9983. var i int
  9984. for k, _ := range v {
  9985. v2[i] = uint64(k)
  9986. i++
  9987. }
  9988. sort.Sort(uintSlice(v2))
  9989. if esep {
  9990. for _, k2 := range v2 {
  9991. ee.WriteMapElemKey()
  9992. e.encode(uintptr(k2))
  9993. ee.WriteMapElemValue()
  9994. ee.EncodeBool(v[uintptr(k2)])
  9995. }
  9996. } else {
  9997. for _, k2 := range v2 {
  9998. e.encode(uintptr(k2))
  9999. ee.EncodeBool(v[uintptr(k2)])
  10000. }
  10001. }
  10002. } else {
  10003. if esep {
  10004. for k2, v2 := range v {
  10005. ee.WriteMapElemKey()
  10006. e.encode(k2)
  10007. ee.WriteMapElemValue()
  10008. ee.EncodeBool(v2)
  10009. }
  10010. } else {
  10011. for k2, v2 := range v {
  10012. e.encode(k2)
  10013. ee.EncodeBool(v2)
  10014. }
  10015. }
  10016. }
  10017. ee.WriteMapEnd()
  10018. }
  10019. func (e *Encoder) fastpathEncMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  10020. fastpathTV.EncMapIntIntfV(rv2i(rv).(map[int]interface{}), e)
  10021. }
  10022. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, e *Encoder) {
  10023. if v == nil {
  10024. e.e.EncodeNil()
  10025. return
  10026. }
  10027. ee, esep := e.e, e.hh.hasElemSeparators()
  10028. ee.WriteMapStart(len(v))
  10029. if e.h.Canonical {
  10030. v2 := make([]int64, len(v))
  10031. var i int
  10032. for k, _ := range v {
  10033. v2[i] = int64(k)
  10034. i++
  10035. }
  10036. sort.Sort(intSlice(v2))
  10037. if esep {
  10038. for _, k2 := range v2 {
  10039. ee.WriteMapElemKey()
  10040. ee.EncodeInt(int64(int(k2)))
  10041. ee.WriteMapElemValue()
  10042. e.encode(v[int(k2)])
  10043. }
  10044. } else {
  10045. for _, k2 := range v2 {
  10046. ee.EncodeInt(int64(int(k2)))
  10047. e.encode(v[int(k2)])
  10048. }
  10049. }
  10050. } else {
  10051. if esep {
  10052. for k2, v2 := range v {
  10053. ee.WriteMapElemKey()
  10054. ee.EncodeInt(int64(k2))
  10055. ee.WriteMapElemValue()
  10056. e.encode(v2)
  10057. }
  10058. } else {
  10059. for k2, v2 := range v {
  10060. ee.EncodeInt(int64(k2))
  10061. e.encode(v2)
  10062. }
  10063. }
  10064. }
  10065. ee.WriteMapEnd()
  10066. }
  10067. func (e *Encoder) fastpathEncMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  10068. fastpathTV.EncMapIntStringV(rv2i(rv).(map[int]string), e)
  10069. }
  10070. func (_ fastpathT) EncMapIntStringV(v map[int]string, e *Encoder) {
  10071. if v == nil {
  10072. e.e.EncodeNil()
  10073. return
  10074. }
  10075. ee, esep := e.e, e.hh.hasElemSeparators()
  10076. ee.WriteMapStart(len(v))
  10077. if e.h.Canonical {
  10078. v2 := make([]int64, len(v))
  10079. var i int
  10080. for k, _ := range v {
  10081. v2[i] = int64(k)
  10082. i++
  10083. }
  10084. sort.Sort(intSlice(v2))
  10085. if esep {
  10086. for _, k2 := range v2 {
  10087. ee.WriteMapElemKey()
  10088. ee.EncodeInt(int64(int(k2)))
  10089. ee.WriteMapElemValue()
  10090. ee.EncodeString(cUTF8, v[int(k2)])
  10091. }
  10092. } else {
  10093. for _, k2 := range v2 {
  10094. ee.EncodeInt(int64(int(k2)))
  10095. ee.EncodeString(cUTF8, v[int(k2)])
  10096. }
  10097. }
  10098. } else {
  10099. if esep {
  10100. for k2, v2 := range v {
  10101. ee.WriteMapElemKey()
  10102. ee.EncodeInt(int64(k2))
  10103. ee.WriteMapElemValue()
  10104. ee.EncodeString(cUTF8, v2)
  10105. }
  10106. } else {
  10107. for k2, v2 := range v {
  10108. ee.EncodeInt(int64(k2))
  10109. ee.EncodeString(cUTF8, v2)
  10110. }
  10111. }
  10112. }
  10113. ee.WriteMapEnd()
  10114. }
  10115. func (e *Encoder) fastpathEncMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  10116. fastpathTV.EncMapIntUintV(rv2i(rv).(map[int]uint), e)
  10117. }
  10118. func (_ fastpathT) EncMapIntUintV(v map[int]uint, e *Encoder) {
  10119. if v == nil {
  10120. e.e.EncodeNil()
  10121. return
  10122. }
  10123. ee, esep := e.e, e.hh.hasElemSeparators()
  10124. ee.WriteMapStart(len(v))
  10125. if e.h.Canonical {
  10126. v2 := make([]int64, len(v))
  10127. var i int
  10128. for k, _ := range v {
  10129. v2[i] = int64(k)
  10130. i++
  10131. }
  10132. sort.Sort(intSlice(v2))
  10133. if esep {
  10134. for _, k2 := range v2 {
  10135. ee.WriteMapElemKey()
  10136. ee.EncodeInt(int64(int(k2)))
  10137. ee.WriteMapElemValue()
  10138. ee.EncodeUint(uint64(v[int(k2)]))
  10139. }
  10140. } else {
  10141. for _, k2 := range v2 {
  10142. ee.EncodeInt(int64(int(k2)))
  10143. ee.EncodeUint(uint64(v[int(k2)]))
  10144. }
  10145. }
  10146. } else {
  10147. if esep {
  10148. for k2, v2 := range v {
  10149. ee.WriteMapElemKey()
  10150. ee.EncodeInt(int64(k2))
  10151. ee.WriteMapElemValue()
  10152. ee.EncodeUint(uint64(v2))
  10153. }
  10154. } else {
  10155. for k2, v2 := range v {
  10156. ee.EncodeInt(int64(k2))
  10157. ee.EncodeUint(uint64(v2))
  10158. }
  10159. }
  10160. }
  10161. ee.WriteMapEnd()
  10162. }
  10163. func (e *Encoder) fastpathEncMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  10164. fastpathTV.EncMapIntUint8V(rv2i(rv).(map[int]uint8), e)
  10165. }
  10166. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, e *Encoder) {
  10167. if v == nil {
  10168. e.e.EncodeNil()
  10169. return
  10170. }
  10171. ee, esep := e.e, e.hh.hasElemSeparators()
  10172. ee.WriteMapStart(len(v))
  10173. if e.h.Canonical {
  10174. v2 := make([]int64, len(v))
  10175. var i int
  10176. for k, _ := range v {
  10177. v2[i] = int64(k)
  10178. i++
  10179. }
  10180. sort.Sort(intSlice(v2))
  10181. if esep {
  10182. for _, k2 := range v2 {
  10183. ee.WriteMapElemKey()
  10184. ee.EncodeInt(int64(int(k2)))
  10185. ee.WriteMapElemValue()
  10186. ee.EncodeUint(uint64(v[int(k2)]))
  10187. }
  10188. } else {
  10189. for _, k2 := range v2 {
  10190. ee.EncodeInt(int64(int(k2)))
  10191. ee.EncodeUint(uint64(v[int(k2)]))
  10192. }
  10193. }
  10194. } else {
  10195. if esep {
  10196. for k2, v2 := range v {
  10197. ee.WriteMapElemKey()
  10198. ee.EncodeInt(int64(k2))
  10199. ee.WriteMapElemValue()
  10200. ee.EncodeUint(uint64(v2))
  10201. }
  10202. } else {
  10203. for k2, v2 := range v {
  10204. ee.EncodeInt(int64(k2))
  10205. ee.EncodeUint(uint64(v2))
  10206. }
  10207. }
  10208. }
  10209. ee.WriteMapEnd()
  10210. }
  10211. func (e *Encoder) fastpathEncMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  10212. fastpathTV.EncMapIntUint16V(rv2i(rv).(map[int]uint16), e)
  10213. }
  10214. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, e *Encoder) {
  10215. if v == nil {
  10216. e.e.EncodeNil()
  10217. return
  10218. }
  10219. ee, esep := e.e, e.hh.hasElemSeparators()
  10220. ee.WriteMapStart(len(v))
  10221. if e.h.Canonical {
  10222. v2 := make([]int64, len(v))
  10223. var i int
  10224. for k, _ := range v {
  10225. v2[i] = int64(k)
  10226. i++
  10227. }
  10228. sort.Sort(intSlice(v2))
  10229. if esep {
  10230. for _, k2 := range v2 {
  10231. ee.WriteMapElemKey()
  10232. ee.EncodeInt(int64(int(k2)))
  10233. ee.WriteMapElemValue()
  10234. ee.EncodeUint(uint64(v[int(k2)]))
  10235. }
  10236. } else {
  10237. for _, k2 := range v2 {
  10238. ee.EncodeInt(int64(int(k2)))
  10239. ee.EncodeUint(uint64(v[int(k2)]))
  10240. }
  10241. }
  10242. } else {
  10243. if esep {
  10244. for k2, v2 := range v {
  10245. ee.WriteMapElemKey()
  10246. ee.EncodeInt(int64(k2))
  10247. ee.WriteMapElemValue()
  10248. ee.EncodeUint(uint64(v2))
  10249. }
  10250. } else {
  10251. for k2, v2 := range v {
  10252. ee.EncodeInt(int64(k2))
  10253. ee.EncodeUint(uint64(v2))
  10254. }
  10255. }
  10256. }
  10257. ee.WriteMapEnd()
  10258. }
  10259. func (e *Encoder) fastpathEncMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  10260. fastpathTV.EncMapIntUint32V(rv2i(rv).(map[int]uint32), e)
  10261. }
  10262. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, e *Encoder) {
  10263. if v == nil {
  10264. e.e.EncodeNil()
  10265. return
  10266. }
  10267. ee, esep := e.e, e.hh.hasElemSeparators()
  10268. ee.WriteMapStart(len(v))
  10269. if e.h.Canonical {
  10270. v2 := make([]int64, len(v))
  10271. var i int
  10272. for k, _ := range v {
  10273. v2[i] = int64(k)
  10274. i++
  10275. }
  10276. sort.Sort(intSlice(v2))
  10277. if esep {
  10278. for _, k2 := range v2 {
  10279. ee.WriteMapElemKey()
  10280. ee.EncodeInt(int64(int(k2)))
  10281. ee.WriteMapElemValue()
  10282. ee.EncodeUint(uint64(v[int(k2)]))
  10283. }
  10284. } else {
  10285. for _, k2 := range v2 {
  10286. ee.EncodeInt(int64(int(k2)))
  10287. ee.EncodeUint(uint64(v[int(k2)]))
  10288. }
  10289. }
  10290. } else {
  10291. if esep {
  10292. for k2, v2 := range v {
  10293. ee.WriteMapElemKey()
  10294. ee.EncodeInt(int64(k2))
  10295. ee.WriteMapElemValue()
  10296. ee.EncodeUint(uint64(v2))
  10297. }
  10298. } else {
  10299. for k2, v2 := range v {
  10300. ee.EncodeInt(int64(k2))
  10301. ee.EncodeUint(uint64(v2))
  10302. }
  10303. }
  10304. }
  10305. ee.WriteMapEnd()
  10306. }
  10307. func (e *Encoder) fastpathEncMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  10308. fastpathTV.EncMapIntUint64V(rv2i(rv).(map[int]uint64), e)
  10309. }
  10310. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, e *Encoder) {
  10311. if v == nil {
  10312. e.e.EncodeNil()
  10313. return
  10314. }
  10315. ee, esep := e.e, e.hh.hasElemSeparators()
  10316. ee.WriteMapStart(len(v))
  10317. if e.h.Canonical {
  10318. v2 := make([]int64, len(v))
  10319. var i int
  10320. for k, _ := range v {
  10321. v2[i] = int64(k)
  10322. i++
  10323. }
  10324. sort.Sort(intSlice(v2))
  10325. if esep {
  10326. for _, k2 := range v2 {
  10327. ee.WriteMapElemKey()
  10328. ee.EncodeInt(int64(int(k2)))
  10329. ee.WriteMapElemValue()
  10330. ee.EncodeUint(uint64(v[int(k2)]))
  10331. }
  10332. } else {
  10333. for _, k2 := range v2 {
  10334. ee.EncodeInt(int64(int(k2)))
  10335. ee.EncodeUint(uint64(v[int(k2)]))
  10336. }
  10337. }
  10338. } else {
  10339. if esep {
  10340. for k2, v2 := range v {
  10341. ee.WriteMapElemKey()
  10342. ee.EncodeInt(int64(k2))
  10343. ee.WriteMapElemValue()
  10344. ee.EncodeUint(uint64(v2))
  10345. }
  10346. } else {
  10347. for k2, v2 := range v {
  10348. ee.EncodeInt(int64(k2))
  10349. ee.EncodeUint(uint64(v2))
  10350. }
  10351. }
  10352. }
  10353. ee.WriteMapEnd()
  10354. }
  10355. func (e *Encoder) fastpathEncMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  10356. fastpathTV.EncMapIntUintptrV(rv2i(rv).(map[int]uintptr), e)
  10357. }
  10358. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, e *Encoder) {
  10359. if v == nil {
  10360. e.e.EncodeNil()
  10361. return
  10362. }
  10363. ee, esep := e.e, e.hh.hasElemSeparators()
  10364. ee.WriteMapStart(len(v))
  10365. if e.h.Canonical {
  10366. v2 := make([]int64, len(v))
  10367. var i int
  10368. for k, _ := range v {
  10369. v2[i] = int64(k)
  10370. i++
  10371. }
  10372. sort.Sort(intSlice(v2))
  10373. if esep {
  10374. for _, k2 := range v2 {
  10375. ee.WriteMapElemKey()
  10376. ee.EncodeInt(int64(int(k2)))
  10377. ee.WriteMapElemValue()
  10378. e.encode(v[int(k2)])
  10379. }
  10380. } else {
  10381. for _, k2 := range v2 {
  10382. ee.EncodeInt(int64(int(k2)))
  10383. e.encode(v[int(k2)])
  10384. }
  10385. }
  10386. } else {
  10387. if esep {
  10388. for k2, v2 := range v {
  10389. ee.WriteMapElemKey()
  10390. ee.EncodeInt(int64(k2))
  10391. ee.WriteMapElemValue()
  10392. e.encode(v2)
  10393. }
  10394. } else {
  10395. for k2, v2 := range v {
  10396. ee.EncodeInt(int64(k2))
  10397. e.encode(v2)
  10398. }
  10399. }
  10400. }
  10401. ee.WriteMapEnd()
  10402. }
  10403. func (e *Encoder) fastpathEncMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  10404. fastpathTV.EncMapIntIntV(rv2i(rv).(map[int]int), e)
  10405. }
  10406. func (_ fastpathT) EncMapIntIntV(v map[int]int, e *Encoder) {
  10407. if v == nil {
  10408. e.e.EncodeNil()
  10409. return
  10410. }
  10411. ee, esep := e.e, e.hh.hasElemSeparators()
  10412. ee.WriteMapStart(len(v))
  10413. if e.h.Canonical {
  10414. v2 := make([]int64, len(v))
  10415. var i int
  10416. for k, _ := range v {
  10417. v2[i] = int64(k)
  10418. i++
  10419. }
  10420. sort.Sort(intSlice(v2))
  10421. if esep {
  10422. for _, k2 := range v2 {
  10423. ee.WriteMapElemKey()
  10424. ee.EncodeInt(int64(int(k2)))
  10425. ee.WriteMapElemValue()
  10426. ee.EncodeInt(int64(v[int(k2)]))
  10427. }
  10428. } else {
  10429. for _, k2 := range v2 {
  10430. ee.EncodeInt(int64(int(k2)))
  10431. ee.EncodeInt(int64(v[int(k2)]))
  10432. }
  10433. }
  10434. } else {
  10435. if esep {
  10436. for k2, v2 := range v {
  10437. ee.WriteMapElemKey()
  10438. ee.EncodeInt(int64(k2))
  10439. ee.WriteMapElemValue()
  10440. ee.EncodeInt(int64(v2))
  10441. }
  10442. } else {
  10443. for k2, v2 := range v {
  10444. ee.EncodeInt(int64(k2))
  10445. ee.EncodeInt(int64(v2))
  10446. }
  10447. }
  10448. }
  10449. ee.WriteMapEnd()
  10450. }
  10451. func (e *Encoder) fastpathEncMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  10452. fastpathTV.EncMapIntInt8V(rv2i(rv).(map[int]int8), e)
  10453. }
  10454. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, e *Encoder) {
  10455. if v == nil {
  10456. e.e.EncodeNil()
  10457. return
  10458. }
  10459. ee, esep := e.e, e.hh.hasElemSeparators()
  10460. ee.WriteMapStart(len(v))
  10461. if e.h.Canonical {
  10462. v2 := make([]int64, len(v))
  10463. var i int
  10464. for k, _ := range v {
  10465. v2[i] = int64(k)
  10466. i++
  10467. }
  10468. sort.Sort(intSlice(v2))
  10469. if esep {
  10470. for _, k2 := range v2 {
  10471. ee.WriteMapElemKey()
  10472. ee.EncodeInt(int64(int(k2)))
  10473. ee.WriteMapElemValue()
  10474. ee.EncodeInt(int64(v[int(k2)]))
  10475. }
  10476. } else {
  10477. for _, k2 := range v2 {
  10478. ee.EncodeInt(int64(int(k2)))
  10479. ee.EncodeInt(int64(v[int(k2)]))
  10480. }
  10481. }
  10482. } else {
  10483. if esep {
  10484. for k2, v2 := range v {
  10485. ee.WriteMapElemKey()
  10486. ee.EncodeInt(int64(k2))
  10487. ee.WriteMapElemValue()
  10488. ee.EncodeInt(int64(v2))
  10489. }
  10490. } else {
  10491. for k2, v2 := range v {
  10492. ee.EncodeInt(int64(k2))
  10493. ee.EncodeInt(int64(v2))
  10494. }
  10495. }
  10496. }
  10497. ee.WriteMapEnd()
  10498. }
  10499. func (e *Encoder) fastpathEncMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  10500. fastpathTV.EncMapIntInt16V(rv2i(rv).(map[int]int16), e)
  10501. }
  10502. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, e *Encoder) {
  10503. if v == nil {
  10504. e.e.EncodeNil()
  10505. return
  10506. }
  10507. ee, esep := e.e, e.hh.hasElemSeparators()
  10508. ee.WriteMapStart(len(v))
  10509. if e.h.Canonical {
  10510. v2 := make([]int64, len(v))
  10511. var i int
  10512. for k, _ := range v {
  10513. v2[i] = int64(k)
  10514. i++
  10515. }
  10516. sort.Sort(intSlice(v2))
  10517. if esep {
  10518. for _, k2 := range v2 {
  10519. ee.WriteMapElemKey()
  10520. ee.EncodeInt(int64(int(k2)))
  10521. ee.WriteMapElemValue()
  10522. ee.EncodeInt(int64(v[int(k2)]))
  10523. }
  10524. } else {
  10525. for _, k2 := range v2 {
  10526. ee.EncodeInt(int64(int(k2)))
  10527. ee.EncodeInt(int64(v[int(k2)]))
  10528. }
  10529. }
  10530. } else {
  10531. if esep {
  10532. for k2, v2 := range v {
  10533. ee.WriteMapElemKey()
  10534. ee.EncodeInt(int64(k2))
  10535. ee.WriteMapElemValue()
  10536. ee.EncodeInt(int64(v2))
  10537. }
  10538. } else {
  10539. for k2, v2 := range v {
  10540. ee.EncodeInt(int64(k2))
  10541. ee.EncodeInt(int64(v2))
  10542. }
  10543. }
  10544. }
  10545. ee.WriteMapEnd()
  10546. }
  10547. func (e *Encoder) fastpathEncMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  10548. fastpathTV.EncMapIntInt32V(rv2i(rv).(map[int]int32), e)
  10549. }
  10550. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, e *Encoder) {
  10551. if v == nil {
  10552. e.e.EncodeNil()
  10553. return
  10554. }
  10555. ee, esep := e.e, e.hh.hasElemSeparators()
  10556. ee.WriteMapStart(len(v))
  10557. if e.h.Canonical {
  10558. v2 := make([]int64, len(v))
  10559. var i int
  10560. for k, _ := range v {
  10561. v2[i] = int64(k)
  10562. i++
  10563. }
  10564. sort.Sort(intSlice(v2))
  10565. if esep {
  10566. for _, k2 := range v2 {
  10567. ee.WriteMapElemKey()
  10568. ee.EncodeInt(int64(int(k2)))
  10569. ee.WriteMapElemValue()
  10570. ee.EncodeInt(int64(v[int(k2)]))
  10571. }
  10572. } else {
  10573. for _, k2 := range v2 {
  10574. ee.EncodeInt(int64(int(k2)))
  10575. ee.EncodeInt(int64(v[int(k2)]))
  10576. }
  10577. }
  10578. } else {
  10579. if esep {
  10580. for k2, v2 := range v {
  10581. ee.WriteMapElemKey()
  10582. ee.EncodeInt(int64(k2))
  10583. ee.WriteMapElemValue()
  10584. ee.EncodeInt(int64(v2))
  10585. }
  10586. } else {
  10587. for k2, v2 := range v {
  10588. ee.EncodeInt(int64(k2))
  10589. ee.EncodeInt(int64(v2))
  10590. }
  10591. }
  10592. }
  10593. ee.WriteMapEnd()
  10594. }
  10595. func (e *Encoder) fastpathEncMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  10596. fastpathTV.EncMapIntInt64V(rv2i(rv).(map[int]int64), e)
  10597. }
  10598. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, e *Encoder) {
  10599. if v == nil {
  10600. e.e.EncodeNil()
  10601. return
  10602. }
  10603. ee, esep := e.e, e.hh.hasElemSeparators()
  10604. ee.WriteMapStart(len(v))
  10605. if e.h.Canonical {
  10606. v2 := make([]int64, len(v))
  10607. var i int
  10608. for k, _ := range v {
  10609. v2[i] = int64(k)
  10610. i++
  10611. }
  10612. sort.Sort(intSlice(v2))
  10613. if esep {
  10614. for _, k2 := range v2 {
  10615. ee.WriteMapElemKey()
  10616. ee.EncodeInt(int64(int(k2)))
  10617. ee.WriteMapElemValue()
  10618. ee.EncodeInt(int64(v[int(k2)]))
  10619. }
  10620. } else {
  10621. for _, k2 := range v2 {
  10622. ee.EncodeInt(int64(int(k2)))
  10623. ee.EncodeInt(int64(v[int(k2)]))
  10624. }
  10625. }
  10626. } else {
  10627. if esep {
  10628. for k2, v2 := range v {
  10629. ee.WriteMapElemKey()
  10630. ee.EncodeInt(int64(k2))
  10631. ee.WriteMapElemValue()
  10632. ee.EncodeInt(int64(v2))
  10633. }
  10634. } else {
  10635. for k2, v2 := range v {
  10636. ee.EncodeInt(int64(k2))
  10637. ee.EncodeInt(int64(v2))
  10638. }
  10639. }
  10640. }
  10641. ee.WriteMapEnd()
  10642. }
  10643. func (e *Encoder) fastpathEncMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  10644. fastpathTV.EncMapIntFloat32V(rv2i(rv).(map[int]float32), e)
  10645. }
  10646. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, e *Encoder) {
  10647. if v == nil {
  10648. e.e.EncodeNil()
  10649. return
  10650. }
  10651. ee, esep := e.e, e.hh.hasElemSeparators()
  10652. ee.WriteMapStart(len(v))
  10653. if e.h.Canonical {
  10654. v2 := make([]int64, len(v))
  10655. var i int
  10656. for k, _ := range v {
  10657. v2[i] = int64(k)
  10658. i++
  10659. }
  10660. sort.Sort(intSlice(v2))
  10661. if esep {
  10662. for _, k2 := range v2 {
  10663. ee.WriteMapElemKey()
  10664. ee.EncodeInt(int64(int(k2)))
  10665. ee.WriteMapElemValue()
  10666. ee.EncodeFloat32(v[int(k2)])
  10667. }
  10668. } else {
  10669. for _, k2 := range v2 {
  10670. ee.EncodeInt(int64(int(k2)))
  10671. ee.EncodeFloat32(v[int(k2)])
  10672. }
  10673. }
  10674. } else {
  10675. if esep {
  10676. for k2, v2 := range v {
  10677. ee.WriteMapElemKey()
  10678. ee.EncodeInt(int64(k2))
  10679. ee.WriteMapElemValue()
  10680. ee.EncodeFloat32(v2)
  10681. }
  10682. } else {
  10683. for k2, v2 := range v {
  10684. ee.EncodeInt(int64(k2))
  10685. ee.EncodeFloat32(v2)
  10686. }
  10687. }
  10688. }
  10689. ee.WriteMapEnd()
  10690. }
  10691. func (e *Encoder) fastpathEncMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  10692. fastpathTV.EncMapIntFloat64V(rv2i(rv).(map[int]float64), e)
  10693. }
  10694. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, e *Encoder) {
  10695. if v == nil {
  10696. e.e.EncodeNil()
  10697. return
  10698. }
  10699. ee, esep := e.e, e.hh.hasElemSeparators()
  10700. ee.WriteMapStart(len(v))
  10701. if e.h.Canonical {
  10702. v2 := make([]int64, len(v))
  10703. var i int
  10704. for k, _ := range v {
  10705. v2[i] = int64(k)
  10706. i++
  10707. }
  10708. sort.Sort(intSlice(v2))
  10709. if esep {
  10710. for _, k2 := range v2 {
  10711. ee.WriteMapElemKey()
  10712. ee.EncodeInt(int64(int(k2)))
  10713. ee.WriteMapElemValue()
  10714. ee.EncodeFloat64(v[int(k2)])
  10715. }
  10716. } else {
  10717. for _, k2 := range v2 {
  10718. ee.EncodeInt(int64(int(k2)))
  10719. ee.EncodeFloat64(v[int(k2)])
  10720. }
  10721. }
  10722. } else {
  10723. if esep {
  10724. for k2, v2 := range v {
  10725. ee.WriteMapElemKey()
  10726. ee.EncodeInt(int64(k2))
  10727. ee.WriteMapElemValue()
  10728. ee.EncodeFloat64(v2)
  10729. }
  10730. } else {
  10731. for k2, v2 := range v {
  10732. ee.EncodeInt(int64(k2))
  10733. ee.EncodeFloat64(v2)
  10734. }
  10735. }
  10736. }
  10737. ee.WriteMapEnd()
  10738. }
  10739. func (e *Encoder) fastpathEncMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  10740. fastpathTV.EncMapIntBoolV(rv2i(rv).(map[int]bool), e)
  10741. }
  10742. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, e *Encoder) {
  10743. if v == nil {
  10744. e.e.EncodeNil()
  10745. return
  10746. }
  10747. ee, esep := e.e, e.hh.hasElemSeparators()
  10748. ee.WriteMapStart(len(v))
  10749. if e.h.Canonical {
  10750. v2 := make([]int64, len(v))
  10751. var i int
  10752. for k, _ := range v {
  10753. v2[i] = int64(k)
  10754. i++
  10755. }
  10756. sort.Sort(intSlice(v2))
  10757. if esep {
  10758. for _, k2 := range v2 {
  10759. ee.WriteMapElemKey()
  10760. ee.EncodeInt(int64(int(k2)))
  10761. ee.WriteMapElemValue()
  10762. ee.EncodeBool(v[int(k2)])
  10763. }
  10764. } else {
  10765. for _, k2 := range v2 {
  10766. ee.EncodeInt(int64(int(k2)))
  10767. ee.EncodeBool(v[int(k2)])
  10768. }
  10769. }
  10770. } else {
  10771. if esep {
  10772. for k2, v2 := range v {
  10773. ee.WriteMapElemKey()
  10774. ee.EncodeInt(int64(k2))
  10775. ee.WriteMapElemValue()
  10776. ee.EncodeBool(v2)
  10777. }
  10778. } else {
  10779. for k2, v2 := range v {
  10780. ee.EncodeInt(int64(k2))
  10781. ee.EncodeBool(v2)
  10782. }
  10783. }
  10784. }
  10785. ee.WriteMapEnd()
  10786. }
  10787. func (e *Encoder) fastpathEncMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  10788. fastpathTV.EncMapInt8IntfV(rv2i(rv).(map[int8]interface{}), e)
  10789. }
  10790. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, e *Encoder) {
  10791. if v == nil {
  10792. e.e.EncodeNil()
  10793. return
  10794. }
  10795. ee, esep := e.e, e.hh.hasElemSeparators()
  10796. ee.WriteMapStart(len(v))
  10797. if e.h.Canonical {
  10798. v2 := make([]int64, len(v))
  10799. var i int
  10800. for k, _ := range v {
  10801. v2[i] = int64(k)
  10802. i++
  10803. }
  10804. sort.Sort(intSlice(v2))
  10805. if esep {
  10806. for _, k2 := range v2 {
  10807. ee.WriteMapElemKey()
  10808. ee.EncodeInt(int64(int8(k2)))
  10809. ee.WriteMapElemValue()
  10810. e.encode(v[int8(k2)])
  10811. }
  10812. } else {
  10813. for _, k2 := range v2 {
  10814. ee.EncodeInt(int64(int8(k2)))
  10815. e.encode(v[int8(k2)])
  10816. }
  10817. }
  10818. } else {
  10819. if esep {
  10820. for k2, v2 := range v {
  10821. ee.WriteMapElemKey()
  10822. ee.EncodeInt(int64(k2))
  10823. ee.WriteMapElemValue()
  10824. e.encode(v2)
  10825. }
  10826. } else {
  10827. for k2, v2 := range v {
  10828. ee.EncodeInt(int64(k2))
  10829. e.encode(v2)
  10830. }
  10831. }
  10832. }
  10833. ee.WriteMapEnd()
  10834. }
  10835. func (e *Encoder) fastpathEncMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  10836. fastpathTV.EncMapInt8StringV(rv2i(rv).(map[int8]string), e)
  10837. }
  10838. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, e *Encoder) {
  10839. if v == nil {
  10840. e.e.EncodeNil()
  10841. return
  10842. }
  10843. ee, esep := e.e, e.hh.hasElemSeparators()
  10844. ee.WriteMapStart(len(v))
  10845. if e.h.Canonical {
  10846. v2 := make([]int64, len(v))
  10847. var i int
  10848. for k, _ := range v {
  10849. v2[i] = int64(k)
  10850. i++
  10851. }
  10852. sort.Sort(intSlice(v2))
  10853. if esep {
  10854. for _, k2 := range v2 {
  10855. ee.WriteMapElemKey()
  10856. ee.EncodeInt(int64(int8(k2)))
  10857. ee.WriteMapElemValue()
  10858. ee.EncodeString(cUTF8, v[int8(k2)])
  10859. }
  10860. } else {
  10861. for _, k2 := range v2 {
  10862. ee.EncodeInt(int64(int8(k2)))
  10863. ee.EncodeString(cUTF8, v[int8(k2)])
  10864. }
  10865. }
  10866. } else {
  10867. if esep {
  10868. for k2, v2 := range v {
  10869. ee.WriteMapElemKey()
  10870. ee.EncodeInt(int64(k2))
  10871. ee.WriteMapElemValue()
  10872. ee.EncodeString(cUTF8, v2)
  10873. }
  10874. } else {
  10875. for k2, v2 := range v {
  10876. ee.EncodeInt(int64(k2))
  10877. ee.EncodeString(cUTF8, v2)
  10878. }
  10879. }
  10880. }
  10881. ee.WriteMapEnd()
  10882. }
  10883. func (e *Encoder) fastpathEncMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  10884. fastpathTV.EncMapInt8UintV(rv2i(rv).(map[int8]uint), e)
  10885. }
  10886. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, e *Encoder) {
  10887. if v == nil {
  10888. e.e.EncodeNil()
  10889. return
  10890. }
  10891. ee, esep := e.e, e.hh.hasElemSeparators()
  10892. ee.WriteMapStart(len(v))
  10893. if e.h.Canonical {
  10894. v2 := make([]int64, len(v))
  10895. var i int
  10896. for k, _ := range v {
  10897. v2[i] = int64(k)
  10898. i++
  10899. }
  10900. sort.Sort(intSlice(v2))
  10901. if esep {
  10902. for _, k2 := range v2 {
  10903. ee.WriteMapElemKey()
  10904. ee.EncodeInt(int64(int8(k2)))
  10905. ee.WriteMapElemValue()
  10906. ee.EncodeUint(uint64(v[int8(k2)]))
  10907. }
  10908. } else {
  10909. for _, k2 := range v2 {
  10910. ee.EncodeInt(int64(int8(k2)))
  10911. ee.EncodeUint(uint64(v[int8(k2)]))
  10912. }
  10913. }
  10914. } else {
  10915. if esep {
  10916. for k2, v2 := range v {
  10917. ee.WriteMapElemKey()
  10918. ee.EncodeInt(int64(k2))
  10919. ee.WriteMapElemValue()
  10920. ee.EncodeUint(uint64(v2))
  10921. }
  10922. } else {
  10923. for k2, v2 := range v {
  10924. ee.EncodeInt(int64(k2))
  10925. ee.EncodeUint(uint64(v2))
  10926. }
  10927. }
  10928. }
  10929. ee.WriteMapEnd()
  10930. }
  10931. func (e *Encoder) fastpathEncMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  10932. fastpathTV.EncMapInt8Uint8V(rv2i(rv).(map[int8]uint8), e)
  10933. }
  10934. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, e *Encoder) {
  10935. if v == nil {
  10936. e.e.EncodeNil()
  10937. return
  10938. }
  10939. ee, esep := e.e, e.hh.hasElemSeparators()
  10940. ee.WriteMapStart(len(v))
  10941. if e.h.Canonical {
  10942. v2 := make([]int64, len(v))
  10943. var i int
  10944. for k, _ := range v {
  10945. v2[i] = int64(k)
  10946. i++
  10947. }
  10948. sort.Sort(intSlice(v2))
  10949. if esep {
  10950. for _, k2 := range v2 {
  10951. ee.WriteMapElemKey()
  10952. ee.EncodeInt(int64(int8(k2)))
  10953. ee.WriteMapElemValue()
  10954. ee.EncodeUint(uint64(v[int8(k2)]))
  10955. }
  10956. } else {
  10957. for _, k2 := range v2 {
  10958. ee.EncodeInt(int64(int8(k2)))
  10959. ee.EncodeUint(uint64(v[int8(k2)]))
  10960. }
  10961. }
  10962. } else {
  10963. if esep {
  10964. for k2, v2 := range v {
  10965. ee.WriteMapElemKey()
  10966. ee.EncodeInt(int64(k2))
  10967. ee.WriteMapElemValue()
  10968. ee.EncodeUint(uint64(v2))
  10969. }
  10970. } else {
  10971. for k2, v2 := range v {
  10972. ee.EncodeInt(int64(k2))
  10973. ee.EncodeUint(uint64(v2))
  10974. }
  10975. }
  10976. }
  10977. ee.WriteMapEnd()
  10978. }
  10979. func (e *Encoder) fastpathEncMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  10980. fastpathTV.EncMapInt8Uint16V(rv2i(rv).(map[int8]uint16), e)
  10981. }
  10982. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, e *Encoder) {
  10983. if v == nil {
  10984. e.e.EncodeNil()
  10985. return
  10986. }
  10987. ee, esep := e.e, e.hh.hasElemSeparators()
  10988. ee.WriteMapStart(len(v))
  10989. if e.h.Canonical {
  10990. v2 := make([]int64, len(v))
  10991. var i int
  10992. for k, _ := range v {
  10993. v2[i] = int64(k)
  10994. i++
  10995. }
  10996. sort.Sort(intSlice(v2))
  10997. if esep {
  10998. for _, k2 := range v2 {
  10999. ee.WriteMapElemKey()
  11000. ee.EncodeInt(int64(int8(k2)))
  11001. ee.WriteMapElemValue()
  11002. ee.EncodeUint(uint64(v[int8(k2)]))
  11003. }
  11004. } else {
  11005. for _, k2 := range v2 {
  11006. ee.EncodeInt(int64(int8(k2)))
  11007. ee.EncodeUint(uint64(v[int8(k2)]))
  11008. }
  11009. }
  11010. } else {
  11011. if esep {
  11012. for k2, v2 := range v {
  11013. ee.WriteMapElemKey()
  11014. ee.EncodeInt(int64(k2))
  11015. ee.WriteMapElemValue()
  11016. ee.EncodeUint(uint64(v2))
  11017. }
  11018. } else {
  11019. for k2, v2 := range v {
  11020. ee.EncodeInt(int64(k2))
  11021. ee.EncodeUint(uint64(v2))
  11022. }
  11023. }
  11024. }
  11025. ee.WriteMapEnd()
  11026. }
  11027. func (e *Encoder) fastpathEncMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  11028. fastpathTV.EncMapInt8Uint32V(rv2i(rv).(map[int8]uint32), e)
  11029. }
  11030. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, e *Encoder) {
  11031. if v == nil {
  11032. e.e.EncodeNil()
  11033. return
  11034. }
  11035. ee, esep := e.e, e.hh.hasElemSeparators()
  11036. ee.WriteMapStart(len(v))
  11037. if e.h.Canonical {
  11038. v2 := make([]int64, len(v))
  11039. var i int
  11040. for k, _ := range v {
  11041. v2[i] = int64(k)
  11042. i++
  11043. }
  11044. sort.Sort(intSlice(v2))
  11045. if esep {
  11046. for _, k2 := range v2 {
  11047. ee.WriteMapElemKey()
  11048. ee.EncodeInt(int64(int8(k2)))
  11049. ee.WriteMapElemValue()
  11050. ee.EncodeUint(uint64(v[int8(k2)]))
  11051. }
  11052. } else {
  11053. for _, k2 := range v2 {
  11054. ee.EncodeInt(int64(int8(k2)))
  11055. ee.EncodeUint(uint64(v[int8(k2)]))
  11056. }
  11057. }
  11058. } else {
  11059. if esep {
  11060. for k2, v2 := range v {
  11061. ee.WriteMapElemKey()
  11062. ee.EncodeInt(int64(k2))
  11063. ee.WriteMapElemValue()
  11064. ee.EncodeUint(uint64(v2))
  11065. }
  11066. } else {
  11067. for k2, v2 := range v {
  11068. ee.EncodeInt(int64(k2))
  11069. ee.EncodeUint(uint64(v2))
  11070. }
  11071. }
  11072. }
  11073. ee.WriteMapEnd()
  11074. }
  11075. func (e *Encoder) fastpathEncMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  11076. fastpathTV.EncMapInt8Uint64V(rv2i(rv).(map[int8]uint64), e)
  11077. }
  11078. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, e *Encoder) {
  11079. if v == nil {
  11080. e.e.EncodeNil()
  11081. return
  11082. }
  11083. ee, esep := e.e, e.hh.hasElemSeparators()
  11084. ee.WriteMapStart(len(v))
  11085. if e.h.Canonical {
  11086. v2 := make([]int64, len(v))
  11087. var i int
  11088. for k, _ := range v {
  11089. v2[i] = int64(k)
  11090. i++
  11091. }
  11092. sort.Sort(intSlice(v2))
  11093. if esep {
  11094. for _, k2 := range v2 {
  11095. ee.WriteMapElemKey()
  11096. ee.EncodeInt(int64(int8(k2)))
  11097. ee.WriteMapElemValue()
  11098. ee.EncodeUint(uint64(v[int8(k2)]))
  11099. }
  11100. } else {
  11101. for _, k2 := range v2 {
  11102. ee.EncodeInt(int64(int8(k2)))
  11103. ee.EncodeUint(uint64(v[int8(k2)]))
  11104. }
  11105. }
  11106. } else {
  11107. if esep {
  11108. for k2, v2 := range v {
  11109. ee.WriteMapElemKey()
  11110. ee.EncodeInt(int64(k2))
  11111. ee.WriteMapElemValue()
  11112. ee.EncodeUint(uint64(v2))
  11113. }
  11114. } else {
  11115. for k2, v2 := range v {
  11116. ee.EncodeInt(int64(k2))
  11117. ee.EncodeUint(uint64(v2))
  11118. }
  11119. }
  11120. }
  11121. ee.WriteMapEnd()
  11122. }
  11123. func (e *Encoder) fastpathEncMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  11124. fastpathTV.EncMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), e)
  11125. }
  11126. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, e *Encoder) {
  11127. if v == nil {
  11128. e.e.EncodeNil()
  11129. return
  11130. }
  11131. ee, esep := e.e, e.hh.hasElemSeparators()
  11132. ee.WriteMapStart(len(v))
  11133. if e.h.Canonical {
  11134. v2 := make([]int64, len(v))
  11135. var i int
  11136. for k, _ := range v {
  11137. v2[i] = int64(k)
  11138. i++
  11139. }
  11140. sort.Sort(intSlice(v2))
  11141. if esep {
  11142. for _, k2 := range v2 {
  11143. ee.WriteMapElemKey()
  11144. ee.EncodeInt(int64(int8(k2)))
  11145. ee.WriteMapElemValue()
  11146. e.encode(v[int8(k2)])
  11147. }
  11148. } else {
  11149. for _, k2 := range v2 {
  11150. ee.EncodeInt(int64(int8(k2)))
  11151. e.encode(v[int8(k2)])
  11152. }
  11153. }
  11154. } else {
  11155. if esep {
  11156. for k2, v2 := range v {
  11157. ee.WriteMapElemKey()
  11158. ee.EncodeInt(int64(k2))
  11159. ee.WriteMapElemValue()
  11160. e.encode(v2)
  11161. }
  11162. } else {
  11163. for k2, v2 := range v {
  11164. ee.EncodeInt(int64(k2))
  11165. e.encode(v2)
  11166. }
  11167. }
  11168. }
  11169. ee.WriteMapEnd()
  11170. }
  11171. func (e *Encoder) fastpathEncMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  11172. fastpathTV.EncMapInt8IntV(rv2i(rv).(map[int8]int), e)
  11173. }
  11174. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, e *Encoder) {
  11175. if v == nil {
  11176. e.e.EncodeNil()
  11177. return
  11178. }
  11179. ee, esep := e.e, e.hh.hasElemSeparators()
  11180. ee.WriteMapStart(len(v))
  11181. if e.h.Canonical {
  11182. v2 := make([]int64, len(v))
  11183. var i int
  11184. for k, _ := range v {
  11185. v2[i] = int64(k)
  11186. i++
  11187. }
  11188. sort.Sort(intSlice(v2))
  11189. if esep {
  11190. for _, k2 := range v2 {
  11191. ee.WriteMapElemKey()
  11192. ee.EncodeInt(int64(int8(k2)))
  11193. ee.WriteMapElemValue()
  11194. ee.EncodeInt(int64(v[int8(k2)]))
  11195. }
  11196. } else {
  11197. for _, k2 := range v2 {
  11198. ee.EncodeInt(int64(int8(k2)))
  11199. ee.EncodeInt(int64(v[int8(k2)]))
  11200. }
  11201. }
  11202. } else {
  11203. if esep {
  11204. for k2, v2 := range v {
  11205. ee.WriteMapElemKey()
  11206. ee.EncodeInt(int64(k2))
  11207. ee.WriteMapElemValue()
  11208. ee.EncodeInt(int64(v2))
  11209. }
  11210. } else {
  11211. for k2, v2 := range v {
  11212. ee.EncodeInt(int64(k2))
  11213. ee.EncodeInt(int64(v2))
  11214. }
  11215. }
  11216. }
  11217. ee.WriteMapEnd()
  11218. }
  11219. func (e *Encoder) fastpathEncMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  11220. fastpathTV.EncMapInt8Int8V(rv2i(rv).(map[int8]int8), e)
  11221. }
  11222. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, e *Encoder) {
  11223. if v == nil {
  11224. e.e.EncodeNil()
  11225. return
  11226. }
  11227. ee, esep := e.e, e.hh.hasElemSeparators()
  11228. ee.WriteMapStart(len(v))
  11229. if e.h.Canonical {
  11230. v2 := make([]int64, len(v))
  11231. var i int
  11232. for k, _ := range v {
  11233. v2[i] = int64(k)
  11234. i++
  11235. }
  11236. sort.Sort(intSlice(v2))
  11237. if esep {
  11238. for _, k2 := range v2 {
  11239. ee.WriteMapElemKey()
  11240. ee.EncodeInt(int64(int8(k2)))
  11241. ee.WriteMapElemValue()
  11242. ee.EncodeInt(int64(v[int8(k2)]))
  11243. }
  11244. } else {
  11245. for _, k2 := range v2 {
  11246. ee.EncodeInt(int64(int8(k2)))
  11247. ee.EncodeInt(int64(v[int8(k2)]))
  11248. }
  11249. }
  11250. } else {
  11251. if esep {
  11252. for k2, v2 := range v {
  11253. ee.WriteMapElemKey()
  11254. ee.EncodeInt(int64(k2))
  11255. ee.WriteMapElemValue()
  11256. ee.EncodeInt(int64(v2))
  11257. }
  11258. } else {
  11259. for k2, v2 := range v {
  11260. ee.EncodeInt(int64(k2))
  11261. ee.EncodeInt(int64(v2))
  11262. }
  11263. }
  11264. }
  11265. ee.WriteMapEnd()
  11266. }
  11267. func (e *Encoder) fastpathEncMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  11268. fastpathTV.EncMapInt8Int16V(rv2i(rv).(map[int8]int16), e)
  11269. }
  11270. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, e *Encoder) {
  11271. if v == nil {
  11272. e.e.EncodeNil()
  11273. return
  11274. }
  11275. ee, esep := e.e, e.hh.hasElemSeparators()
  11276. ee.WriteMapStart(len(v))
  11277. if e.h.Canonical {
  11278. v2 := make([]int64, len(v))
  11279. var i int
  11280. for k, _ := range v {
  11281. v2[i] = int64(k)
  11282. i++
  11283. }
  11284. sort.Sort(intSlice(v2))
  11285. if esep {
  11286. for _, k2 := range v2 {
  11287. ee.WriteMapElemKey()
  11288. ee.EncodeInt(int64(int8(k2)))
  11289. ee.WriteMapElemValue()
  11290. ee.EncodeInt(int64(v[int8(k2)]))
  11291. }
  11292. } else {
  11293. for _, k2 := range v2 {
  11294. ee.EncodeInt(int64(int8(k2)))
  11295. ee.EncodeInt(int64(v[int8(k2)]))
  11296. }
  11297. }
  11298. } else {
  11299. if esep {
  11300. for k2, v2 := range v {
  11301. ee.WriteMapElemKey()
  11302. ee.EncodeInt(int64(k2))
  11303. ee.WriteMapElemValue()
  11304. ee.EncodeInt(int64(v2))
  11305. }
  11306. } else {
  11307. for k2, v2 := range v {
  11308. ee.EncodeInt(int64(k2))
  11309. ee.EncodeInt(int64(v2))
  11310. }
  11311. }
  11312. }
  11313. ee.WriteMapEnd()
  11314. }
  11315. func (e *Encoder) fastpathEncMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  11316. fastpathTV.EncMapInt8Int32V(rv2i(rv).(map[int8]int32), e)
  11317. }
  11318. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, e *Encoder) {
  11319. if v == nil {
  11320. e.e.EncodeNil()
  11321. return
  11322. }
  11323. ee, esep := e.e, e.hh.hasElemSeparators()
  11324. ee.WriteMapStart(len(v))
  11325. if e.h.Canonical {
  11326. v2 := make([]int64, len(v))
  11327. var i int
  11328. for k, _ := range v {
  11329. v2[i] = int64(k)
  11330. i++
  11331. }
  11332. sort.Sort(intSlice(v2))
  11333. if esep {
  11334. for _, k2 := range v2 {
  11335. ee.WriteMapElemKey()
  11336. ee.EncodeInt(int64(int8(k2)))
  11337. ee.WriteMapElemValue()
  11338. ee.EncodeInt(int64(v[int8(k2)]))
  11339. }
  11340. } else {
  11341. for _, k2 := range v2 {
  11342. ee.EncodeInt(int64(int8(k2)))
  11343. ee.EncodeInt(int64(v[int8(k2)]))
  11344. }
  11345. }
  11346. } else {
  11347. if esep {
  11348. for k2, v2 := range v {
  11349. ee.WriteMapElemKey()
  11350. ee.EncodeInt(int64(k2))
  11351. ee.WriteMapElemValue()
  11352. ee.EncodeInt(int64(v2))
  11353. }
  11354. } else {
  11355. for k2, v2 := range v {
  11356. ee.EncodeInt(int64(k2))
  11357. ee.EncodeInt(int64(v2))
  11358. }
  11359. }
  11360. }
  11361. ee.WriteMapEnd()
  11362. }
  11363. func (e *Encoder) fastpathEncMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  11364. fastpathTV.EncMapInt8Int64V(rv2i(rv).(map[int8]int64), e)
  11365. }
  11366. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, e *Encoder) {
  11367. if v == nil {
  11368. e.e.EncodeNil()
  11369. return
  11370. }
  11371. ee, esep := e.e, e.hh.hasElemSeparators()
  11372. ee.WriteMapStart(len(v))
  11373. if e.h.Canonical {
  11374. v2 := make([]int64, len(v))
  11375. var i int
  11376. for k, _ := range v {
  11377. v2[i] = int64(k)
  11378. i++
  11379. }
  11380. sort.Sort(intSlice(v2))
  11381. if esep {
  11382. for _, k2 := range v2 {
  11383. ee.WriteMapElemKey()
  11384. ee.EncodeInt(int64(int8(k2)))
  11385. ee.WriteMapElemValue()
  11386. ee.EncodeInt(int64(v[int8(k2)]))
  11387. }
  11388. } else {
  11389. for _, k2 := range v2 {
  11390. ee.EncodeInt(int64(int8(k2)))
  11391. ee.EncodeInt(int64(v[int8(k2)]))
  11392. }
  11393. }
  11394. } else {
  11395. if esep {
  11396. for k2, v2 := range v {
  11397. ee.WriteMapElemKey()
  11398. ee.EncodeInt(int64(k2))
  11399. ee.WriteMapElemValue()
  11400. ee.EncodeInt(int64(v2))
  11401. }
  11402. } else {
  11403. for k2, v2 := range v {
  11404. ee.EncodeInt(int64(k2))
  11405. ee.EncodeInt(int64(v2))
  11406. }
  11407. }
  11408. }
  11409. ee.WriteMapEnd()
  11410. }
  11411. func (e *Encoder) fastpathEncMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  11412. fastpathTV.EncMapInt8Float32V(rv2i(rv).(map[int8]float32), e)
  11413. }
  11414. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, e *Encoder) {
  11415. if v == nil {
  11416. e.e.EncodeNil()
  11417. return
  11418. }
  11419. ee, esep := e.e, e.hh.hasElemSeparators()
  11420. ee.WriteMapStart(len(v))
  11421. if e.h.Canonical {
  11422. v2 := make([]int64, len(v))
  11423. var i int
  11424. for k, _ := range v {
  11425. v2[i] = int64(k)
  11426. i++
  11427. }
  11428. sort.Sort(intSlice(v2))
  11429. if esep {
  11430. for _, k2 := range v2 {
  11431. ee.WriteMapElemKey()
  11432. ee.EncodeInt(int64(int8(k2)))
  11433. ee.WriteMapElemValue()
  11434. ee.EncodeFloat32(v[int8(k2)])
  11435. }
  11436. } else {
  11437. for _, k2 := range v2 {
  11438. ee.EncodeInt(int64(int8(k2)))
  11439. ee.EncodeFloat32(v[int8(k2)])
  11440. }
  11441. }
  11442. } else {
  11443. if esep {
  11444. for k2, v2 := range v {
  11445. ee.WriteMapElemKey()
  11446. ee.EncodeInt(int64(k2))
  11447. ee.WriteMapElemValue()
  11448. ee.EncodeFloat32(v2)
  11449. }
  11450. } else {
  11451. for k2, v2 := range v {
  11452. ee.EncodeInt(int64(k2))
  11453. ee.EncodeFloat32(v2)
  11454. }
  11455. }
  11456. }
  11457. ee.WriteMapEnd()
  11458. }
  11459. func (e *Encoder) fastpathEncMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  11460. fastpathTV.EncMapInt8Float64V(rv2i(rv).(map[int8]float64), e)
  11461. }
  11462. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, e *Encoder) {
  11463. if v == nil {
  11464. e.e.EncodeNil()
  11465. return
  11466. }
  11467. ee, esep := e.e, e.hh.hasElemSeparators()
  11468. ee.WriteMapStart(len(v))
  11469. if e.h.Canonical {
  11470. v2 := make([]int64, len(v))
  11471. var i int
  11472. for k, _ := range v {
  11473. v2[i] = int64(k)
  11474. i++
  11475. }
  11476. sort.Sort(intSlice(v2))
  11477. if esep {
  11478. for _, k2 := range v2 {
  11479. ee.WriteMapElemKey()
  11480. ee.EncodeInt(int64(int8(k2)))
  11481. ee.WriteMapElemValue()
  11482. ee.EncodeFloat64(v[int8(k2)])
  11483. }
  11484. } else {
  11485. for _, k2 := range v2 {
  11486. ee.EncodeInt(int64(int8(k2)))
  11487. ee.EncodeFloat64(v[int8(k2)])
  11488. }
  11489. }
  11490. } else {
  11491. if esep {
  11492. for k2, v2 := range v {
  11493. ee.WriteMapElemKey()
  11494. ee.EncodeInt(int64(k2))
  11495. ee.WriteMapElemValue()
  11496. ee.EncodeFloat64(v2)
  11497. }
  11498. } else {
  11499. for k2, v2 := range v {
  11500. ee.EncodeInt(int64(k2))
  11501. ee.EncodeFloat64(v2)
  11502. }
  11503. }
  11504. }
  11505. ee.WriteMapEnd()
  11506. }
  11507. func (e *Encoder) fastpathEncMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  11508. fastpathTV.EncMapInt8BoolV(rv2i(rv).(map[int8]bool), e)
  11509. }
  11510. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, e *Encoder) {
  11511. if v == nil {
  11512. e.e.EncodeNil()
  11513. return
  11514. }
  11515. ee, esep := e.e, e.hh.hasElemSeparators()
  11516. ee.WriteMapStart(len(v))
  11517. if e.h.Canonical {
  11518. v2 := make([]int64, len(v))
  11519. var i int
  11520. for k, _ := range v {
  11521. v2[i] = int64(k)
  11522. i++
  11523. }
  11524. sort.Sort(intSlice(v2))
  11525. if esep {
  11526. for _, k2 := range v2 {
  11527. ee.WriteMapElemKey()
  11528. ee.EncodeInt(int64(int8(k2)))
  11529. ee.WriteMapElemValue()
  11530. ee.EncodeBool(v[int8(k2)])
  11531. }
  11532. } else {
  11533. for _, k2 := range v2 {
  11534. ee.EncodeInt(int64(int8(k2)))
  11535. ee.EncodeBool(v[int8(k2)])
  11536. }
  11537. }
  11538. } else {
  11539. if esep {
  11540. for k2, v2 := range v {
  11541. ee.WriteMapElemKey()
  11542. ee.EncodeInt(int64(k2))
  11543. ee.WriteMapElemValue()
  11544. ee.EncodeBool(v2)
  11545. }
  11546. } else {
  11547. for k2, v2 := range v {
  11548. ee.EncodeInt(int64(k2))
  11549. ee.EncodeBool(v2)
  11550. }
  11551. }
  11552. }
  11553. ee.WriteMapEnd()
  11554. }
  11555. func (e *Encoder) fastpathEncMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  11556. fastpathTV.EncMapInt16IntfV(rv2i(rv).(map[int16]interface{}), e)
  11557. }
  11558. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, e *Encoder) {
  11559. if v == nil {
  11560. e.e.EncodeNil()
  11561. return
  11562. }
  11563. ee, esep := e.e, e.hh.hasElemSeparators()
  11564. ee.WriteMapStart(len(v))
  11565. if e.h.Canonical {
  11566. v2 := make([]int64, len(v))
  11567. var i int
  11568. for k, _ := range v {
  11569. v2[i] = int64(k)
  11570. i++
  11571. }
  11572. sort.Sort(intSlice(v2))
  11573. if esep {
  11574. for _, k2 := range v2 {
  11575. ee.WriteMapElemKey()
  11576. ee.EncodeInt(int64(int16(k2)))
  11577. ee.WriteMapElemValue()
  11578. e.encode(v[int16(k2)])
  11579. }
  11580. } else {
  11581. for _, k2 := range v2 {
  11582. ee.EncodeInt(int64(int16(k2)))
  11583. e.encode(v[int16(k2)])
  11584. }
  11585. }
  11586. } else {
  11587. if esep {
  11588. for k2, v2 := range v {
  11589. ee.WriteMapElemKey()
  11590. ee.EncodeInt(int64(k2))
  11591. ee.WriteMapElemValue()
  11592. e.encode(v2)
  11593. }
  11594. } else {
  11595. for k2, v2 := range v {
  11596. ee.EncodeInt(int64(k2))
  11597. e.encode(v2)
  11598. }
  11599. }
  11600. }
  11601. ee.WriteMapEnd()
  11602. }
  11603. func (e *Encoder) fastpathEncMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  11604. fastpathTV.EncMapInt16StringV(rv2i(rv).(map[int16]string), e)
  11605. }
  11606. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, e *Encoder) {
  11607. if v == nil {
  11608. e.e.EncodeNil()
  11609. return
  11610. }
  11611. ee, esep := e.e, e.hh.hasElemSeparators()
  11612. ee.WriteMapStart(len(v))
  11613. if e.h.Canonical {
  11614. v2 := make([]int64, len(v))
  11615. var i int
  11616. for k, _ := range v {
  11617. v2[i] = int64(k)
  11618. i++
  11619. }
  11620. sort.Sort(intSlice(v2))
  11621. if esep {
  11622. for _, k2 := range v2 {
  11623. ee.WriteMapElemKey()
  11624. ee.EncodeInt(int64(int16(k2)))
  11625. ee.WriteMapElemValue()
  11626. ee.EncodeString(cUTF8, v[int16(k2)])
  11627. }
  11628. } else {
  11629. for _, k2 := range v2 {
  11630. ee.EncodeInt(int64(int16(k2)))
  11631. ee.EncodeString(cUTF8, v[int16(k2)])
  11632. }
  11633. }
  11634. } else {
  11635. if esep {
  11636. for k2, v2 := range v {
  11637. ee.WriteMapElemKey()
  11638. ee.EncodeInt(int64(k2))
  11639. ee.WriteMapElemValue()
  11640. ee.EncodeString(cUTF8, v2)
  11641. }
  11642. } else {
  11643. for k2, v2 := range v {
  11644. ee.EncodeInt(int64(k2))
  11645. ee.EncodeString(cUTF8, v2)
  11646. }
  11647. }
  11648. }
  11649. ee.WriteMapEnd()
  11650. }
  11651. func (e *Encoder) fastpathEncMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  11652. fastpathTV.EncMapInt16UintV(rv2i(rv).(map[int16]uint), e)
  11653. }
  11654. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, e *Encoder) {
  11655. if v == nil {
  11656. e.e.EncodeNil()
  11657. return
  11658. }
  11659. ee, esep := e.e, e.hh.hasElemSeparators()
  11660. ee.WriteMapStart(len(v))
  11661. if e.h.Canonical {
  11662. v2 := make([]int64, len(v))
  11663. var i int
  11664. for k, _ := range v {
  11665. v2[i] = int64(k)
  11666. i++
  11667. }
  11668. sort.Sort(intSlice(v2))
  11669. if esep {
  11670. for _, k2 := range v2 {
  11671. ee.WriteMapElemKey()
  11672. ee.EncodeInt(int64(int16(k2)))
  11673. ee.WriteMapElemValue()
  11674. ee.EncodeUint(uint64(v[int16(k2)]))
  11675. }
  11676. } else {
  11677. for _, k2 := range v2 {
  11678. ee.EncodeInt(int64(int16(k2)))
  11679. ee.EncodeUint(uint64(v[int16(k2)]))
  11680. }
  11681. }
  11682. } else {
  11683. if esep {
  11684. for k2, v2 := range v {
  11685. ee.WriteMapElemKey()
  11686. ee.EncodeInt(int64(k2))
  11687. ee.WriteMapElemValue()
  11688. ee.EncodeUint(uint64(v2))
  11689. }
  11690. } else {
  11691. for k2, v2 := range v {
  11692. ee.EncodeInt(int64(k2))
  11693. ee.EncodeUint(uint64(v2))
  11694. }
  11695. }
  11696. }
  11697. ee.WriteMapEnd()
  11698. }
  11699. func (e *Encoder) fastpathEncMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  11700. fastpathTV.EncMapInt16Uint8V(rv2i(rv).(map[int16]uint8), e)
  11701. }
  11702. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, e *Encoder) {
  11703. if v == nil {
  11704. e.e.EncodeNil()
  11705. return
  11706. }
  11707. ee, esep := e.e, e.hh.hasElemSeparators()
  11708. ee.WriteMapStart(len(v))
  11709. if e.h.Canonical {
  11710. v2 := make([]int64, len(v))
  11711. var i int
  11712. for k, _ := range v {
  11713. v2[i] = int64(k)
  11714. i++
  11715. }
  11716. sort.Sort(intSlice(v2))
  11717. if esep {
  11718. for _, k2 := range v2 {
  11719. ee.WriteMapElemKey()
  11720. ee.EncodeInt(int64(int16(k2)))
  11721. ee.WriteMapElemValue()
  11722. ee.EncodeUint(uint64(v[int16(k2)]))
  11723. }
  11724. } else {
  11725. for _, k2 := range v2 {
  11726. ee.EncodeInt(int64(int16(k2)))
  11727. ee.EncodeUint(uint64(v[int16(k2)]))
  11728. }
  11729. }
  11730. } else {
  11731. if esep {
  11732. for k2, v2 := range v {
  11733. ee.WriteMapElemKey()
  11734. ee.EncodeInt(int64(k2))
  11735. ee.WriteMapElemValue()
  11736. ee.EncodeUint(uint64(v2))
  11737. }
  11738. } else {
  11739. for k2, v2 := range v {
  11740. ee.EncodeInt(int64(k2))
  11741. ee.EncodeUint(uint64(v2))
  11742. }
  11743. }
  11744. }
  11745. ee.WriteMapEnd()
  11746. }
  11747. func (e *Encoder) fastpathEncMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  11748. fastpathTV.EncMapInt16Uint16V(rv2i(rv).(map[int16]uint16), e)
  11749. }
  11750. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, e *Encoder) {
  11751. if v == nil {
  11752. e.e.EncodeNil()
  11753. return
  11754. }
  11755. ee, esep := e.e, e.hh.hasElemSeparators()
  11756. ee.WriteMapStart(len(v))
  11757. if e.h.Canonical {
  11758. v2 := make([]int64, len(v))
  11759. var i int
  11760. for k, _ := range v {
  11761. v2[i] = int64(k)
  11762. i++
  11763. }
  11764. sort.Sort(intSlice(v2))
  11765. if esep {
  11766. for _, k2 := range v2 {
  11767. ee.WriteMapElemKey()
  11768. ee.EncodeInt(int64(int16(k2)))
  11769. ee.WriteMapElemValue()
  11770. ee.EncodeUint(uint64(v[int16(k2)]))
  11771. }
  11772. } else {
  11773. for _, k2 := range v2 {
  11774. ee.EncodeInt(int64(int16(k2)))
  11775. ee.EncodeUint(uint64(v[int16(k2)]))
  11776. }
  11777. }
  11778. } else {
  11779. if esep {
  11780. for k2, v2 := range v {
  11781. ee.WriteMapElemKey()
  11782. ee.EncodeInt(int64(k2))
  11783. ee.WriteMapElemValue()
  11784. ee.EncodeUint(uint64(v2))
  11785. }
  11786. } else {
  11787. for k2, v2 := range v {
  11788. ee.EncodeInt(int64(k2))
  11789. ee.EncodeUint(uint64(v2))
  11790. }
  11791. }
  11792. }
  11793. ee.WriteMapEnd()
  11794. }
  11795. func (e *Encoder) fastpathEncMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  11796. fastpathTV.EncMapInt16Uint32V(rv2i(rv).(map[int16]uint32), e)
  11797. }
  11798. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, e *Encoder) {
  11799. if v == nil {
  11800. e.e.EncodeNil()
  11801. return
  11802. }
  11803. ee, esep := e.e, e.hh.hasElemSeparators()
  11804. ee.WriteMapStart(len(v))
  11805. if e.h.Canonical {
  11806. v2 := make([]int64, len(v))
  11807. var i int
  11808. for k, _ := range v {
  11809. v2[i] = int64(k)
  11810. i++
  11811. }
  11812. sort.Sort(intSlice(v2))
  11813. if esep {
  11814. for _, k2 := range v2 {
  11815. ee.WriteMapElemKey()
  11816. ee.EncodeInt(int64(int16(k2)))
  11817. ee.WriteMapElemValue()
  11818. ee.EncodeUint(uint64(v[int16(k2)]))
  11819. }
  11820. } else {
  11821. for _, k2 := range v2 {
  11822. ee.EncodeInt(int64(int16(k2)))
  11823. ee.EncodeUint(uint64(v[int16(k2)]))
  11824. }
  11825. }
  11826. } else {
  11827. if esep {
  11828. for k2, v2 := range v {
  11829. ee.WriteMapElemKey()
  11830. ee.EncodeInt(int64(k2))
  11831. ee.WriteMapElemValue()
  11832. ee.EncodeUint(uint64(v2))
  11833. }
  11834. } else {
  11835. for k2, v2 := range v {
  11836. ee.EncodeInt(int64(k2))
  11837. ee.EncodeUint(uint64(v2))
  11838. }
  11839. }
  11840. }
  11841. ee.WriteMapEnd()
  11842. }
  11843. func (e *Encoder) fastpathEncMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  11844. fastpathTV.EncMapInt16Uint64V(rv2i(rv).(map[int16]uint64), e)
  11845. }
  11846. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, e *Encoder) {
  11847. if v == nil {
  11848. e.e.EncodeNil()
  11849. return
  11850. }
  11851. ee, esep := e.e, e.hh.hasElemSeparators()
  11852. ee.WriteMapStart(len(v))
  11853. if e.h.Canonical {
  11854. v2 := make([]int64, len(v))
  11855. var i int
  11856. for k, _ := range v {
  11857. v2[i] = int64(k)
  11858. i++
  11859. }
  11860. sort.Sort(intSlice(v2))
  11861. if esep {
  11862. for _, k2 := range v2 {
  11863. ee.WriteMapElemKey()
  11864. ee.EncodeInt(int64(int16(k2)))
  11865. ee.WriteMapElemValue()
  11866. ee.EncodeUint(uint64(v[int16(k2)]))
  11867. }
  11868. } else {
  11869. for _, k2 := range v2 {
  11870. ee.EncodeInt(int64(int16(k2)))
  11871. ee.EncodeUint(uint64(v[int16(k2)]))
  11872. }
  11873. }
  11874. } else {
  11875. if esep {
  11876. for k2, v2 := range v {
  11877. ee.WriteMapElemKey()
  11878. ee.EncodeInt(int64(k2))
  11879. ee.WriteMapElemValue()
  11880. ee.EncodeUint(uint64(v2))
  11881. }
  11882. } else {
  11883. for k2, v2 := range v {
  11884. ee.EncodeInt(int64(k2))
  11885. ee.EncodeUint(uint64(v2))
  11886. }
  11887. }
  11888. }
  11889. ee.WriteMapEnd()
  11890. }
  11891. func (e *Encoder) fastpathEncMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  11892. fastpathTV.EncMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), e)
  11893. }
  11894. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, e *Encoder) {
  11895. if v == nil {
  11896. e.e.EncodeNil()
  11897. return
  11898. }
  11899. ee, esep := e.e, e.hh.hasElemSeparators()
  11900. ee.WriteMapStart(len(v))
  11901. if e.h.Canonical {
  11902. v2 := make([]int64, len(v))
  11903. var i int
  11904. for k, _ := range v {
  11905. v2[i] = int64(k)
  11906. i++
  11907. }
  11908. sort.Sort(intSlice(v2))
  11909. if esep {
  11910. for _, k2 := range v2 {
  11911. ee.WriteMapElemKey()
  11912. ee.EncodeInt(int64(int16(k2)))
  11913. ee.WriteMapElemValue()
  11914. e.encode(v[int16(k2)])
  11915. }
  11916. } else {
  11917. for _, k2 := range v2 {
  11918. ee.EncodeInt(int64(int16(k2)))
  11919. e.encode(v[int16(k2)])
  11920. }
  11921. }
  11922. } else {
  11923. if esep {
  11924. for k2, v2 := range v {
  11925. ee.WriteMapElemKey()
  11926. ee.EncodeInt(int64(k2))
  11927. ee.WriteMapElemValue()
  11928. e.encode(v2)
  11929. }
  11930. } else {
  11931. for k2, v2 := range v {
  11932. ee.EncodeInt(int64(k2))
  11933. e.encode(v2)
  11934. }
  11935. }
  11936. }
  11937. ee.WriteMapEnd()
  11938. }
  11939. func (e *Encoder) fastpathEncMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  11940. fastpathTV.EncMapInt16IntV(rv2i(rv).(map[int16]int), e)
  11941. }
  11942. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, e *Encoder) {
  11943. if v == nil {
  11944. e.e.EncodeNil()
  11945. return
  11946. }
  11947. ee, esep := e.e, e.hh.hasElemSeparators()
  11948. ee.WriteMapStart(len(v))
  11949. if e.h.Canonical {
  11950. v2 := make([]int64, len(v))
  11951. var i int
  11952. for k, _ := range v {
  11953. v2[i] = int64(k)
  11954. i++
  11955. }
  11956. sort.Sort(intSlice(v2))
  11957. if esep {
  11958. for _, k2 := range v2 {
  11959. ee.WriteMapElemKey()
  11960. ee.EncodeInt(int64(int16(k2)))
  11961. ee.WriteMapElemValue()
  11962. ee.EncodeInt(int64(v[int16(k2)]))
  11963. }
  11964. } else {
  11965. for _, k2 := range v2 {
  11966. ee.EncodeInt(int64(int16(k2)))
  11967. ee.EncodeInt(int64(v[int16(k2)]))
  11968. }
  11969. }
  11970. } else {
  11971. if esep {
  11972. for k2, v2 := range v {
  11973. ee.WriteMapElemKey()
  11974. ee.EncodeInt(int64(k2))
  11975. ee.WriteMapElemValue()
  11976. ee.EncodeInt(int64(v2))
  11977. }
  11978. } else {
  11979. for k2, v2 := range v {
  11980. ee.EncodeInt(int64(k2))
  11981. ee.EncodeInt(int64(v2))
  11982. }
  11983. }
  11984. }
  11985. ee.WriteMapEnd()
  11986. }
  11987. func (e *Encoder) fastpathEncMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  11988. fastpathTV.EncMapInt16Int8V(rv2i(rv).(map[int16]int8), e)
  11989. }
  11990. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, e *Encoder) {
  11991. if v == nil {
  11992. e.e.EncodeNil()
  11993. return
  11994. }
  11995. ee, esep := e.e, e.hh.hasElemSeparators()
  11996. ee.WriteMapStart(len(v))
  11997. if e.h.Canonical {
  11998. v2 := make([]int64, len(v))
  11999. var i int
  12000. for k, _ := range v {
  12001. v2[i] = int64(k)
  12002. i++
  12003. }
  12004. sort.Sort(intSlice(v2))
  12005. if esep {
  12006. for _, k2 := range v2 {
  12007. ee.WriteMapElemKey()
  12008. ee.EncodeInt(int64(int16(k2)))
  12009. ee.WriteMapElemValue()
  12010. ee.EncodeInt(int64(v[int16(k2)]))
  12011. }
  12012. } else {
  12013. for _, k2 := range v2 {
  12014. ee.EncodeInt(int64(int16(k2)))
  12015. ee.EncodeInt(int64(v[int16(k2)]))
  12016. }
  12017. }
  12018. } else {
  12019. if esep {
  12020. for k2, v2 := range v {
  12021. ee.WriteMapElemKey()
  12022. ee.EncodeInt(int64(k2))
  12023. ee.WriteMapElemValue()
  12024. ee.EncodeInt(int64(v2))
  12025. }
  12026. } else {
  12027. for k2, v2 := range v {
  12028. ee.EncodeInt(int64(k2))
  12029. ee.EncodeInt(int64(v2))
  12030. }
  12031. }
  12032. }
  12033. ee.WriteMapEnd()
  12034. }
  12035. func (e *Encoder) fastpathEncMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  12036. fastpathTV.EncMapInt16Int16V(rv2i(rv).(map[int16]int16), e)
  12037. }
  12038. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, e *Encoder) {
  12039. if v == nil {
  12040. e.e.EncodeNil()
  12041. return
  12042. }
  12043. ee, esep := e.e, e.hh.hasElemSeparators()
  12044. ee.WriteMapStart(len(v))
  12045. if e.h.Canonical {
  12046. v2 := make([]int64, len(v))
  12047. var i int
  12048. for k, _ := range v {
  12049. v2[i] = int64(k)
  12050. i++
  12051. }
  12052. sort.Sort(intSlice(v2))
  12053. if esep {
  12054. for _, k2 := range v2 {
  12055. ee.WriteMapElemKey()
  12056. ee.EncodeInt(int64(int16(k2)))
  12057. ee.WriteMapElemValue()
  12058. ee.EncodeInt(int64(v[int16(k2)]))
  12059. }
  12060. } else {
  12061. for _, k2 := range v2 {
  12062. ee.EncodeInt(int64(int16(k2)))
  12063. ee.EncodeInt(int64(v[int16(k2)]))
  12064. }
  12065. }
  12066. } else {
  12067. if esep {
  12068. for k2, v2 := range v {
  12069. ee.WriteMapElemKey()
  12070. ee.EncodeInt(int64(k2))
  12071. ee.WriteMapElemValue()
  12072. ee.EncodeInt(int64(v2))
  12073. }
  12074. } else {
  12075. for k2, v2 := range v {
  12076. ee.EncodeInt(int64(k2))
  12077. ee.EncodeInt(int64(v2))
  12078. }
  12079. }
  12080. }
  12081. ee.WriteMapEnd()
  12082. }
  12083. func (e *Encoder) fastpathEncMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  12084. fastpathTV.EncMapInt16Int32V(rv2i(rv).(map[int16]int32), e)
  12085. }
  12086. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, e *Encoder) {
  12087. if v == nil {
  12088. e.e.EncodeNil()
  12089. return
  12090. }
  12091. ee, esep := e.e, e.hh.hasElemSeparators()
  12092. ee.WriteMapStart(len(v))
  12093. if e.h.Canonical {
  12094. v2 := make([]int64, len(v))
  12095. var i int
  12096. for k, _ := range v {
  12097. v2[i] = int64(k)
  12098. i++
  12099. }
  12100. sort.Sort(intSlice(v2))
  12101. if esep {
  12102. for _, k2 := range v2 {
  12103. ee.WriteMapElemKey()
  12104. ee.EncodeInt(int64(int16(k2)))
  12105. ee.WriteMapElemValue()
  12106. ee.EncodeInt(int64(v[int16(k2)]))
  12107. }
  12108. } else {
  12109. for _, k2 := range v2 {
  12110. ee.EncodeInt(int64(int16(k2)))
  12111. ee.EncodeInt(int64(v[int16(k2)]))
  12112. }
  12113. }
  12114. } else {
  12115. if esep {
  12116. for k2, v2 := range v {
  12117. ee.WriteMapElemKey()
  12118. ee.EncodeInt(int64(k2))
  12119. ee.WriteMapElemValue()
  12120. ee.EncodeInt(int64(v2))
  12121. }
  12122. } else {
  12123. for k2, v2 := range v {
  12124. ee.EncodeInt(int64(k2))
  12125. ee.EncodeInt(int64(v2))
  12126. }
  12127. }
  12128. }
  12129. ee.WriteMapEnd()
  12130. }
  12131. func (e *Encoder) fastpathEncMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  12132. fastpathTV.EncMapInt16Int64V(rv2i(rv).(map[int16]int64), e)
  12133. }
  12134. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, e *Encoder) {
  12135. if v == nil {
  12136. e.e.EncodeNil()
  12137. return
  12138. }
  12139. ee, esep := e.e, e.hh.hasElemSeparators()
  12140. ee.WriteMapStart(len(v))
  12141. if e.h.Canonical {
  12142. v2 := make([]int64, len(v))
  12143. var i int
  12144. for k, _ := range v {
  12145. v2[i] = int64(k)
  12146. i++
  12147. }
  12148. sort.Sort(intSlice(v2))
  12149. if esep {
  12150. for _, k2 := range v2 {
  12151. ee.WriteMapElemKey()
  12152. ee.EncodeInt(int64(int16(k2)))
  12153. ee.WriteMapElemValue()
  12154. ee.EncodeInt(int64(v[int16(k2)]))
  12155. }
  12156. } else {
  12157. for _, k2 := range v2 {
  12158. ee.EncodeInt(int64(int16(k2)))
  12159. ee.EncodeInt(int64(v[int16(k2)]))
  12160. }
  12161. }
  12162. } else {
  12163. if esep {
  12164. for k2, v2 := range v {
  12165. ee.WriteMapElemKey()
  12166. ee.EncodeInt(int64(k2))
  12167. ee.WriteMapElemValue()
  12168. ee.EncodeInt(int64(v2))
  12169. }
  12170. } else {
  12171. for k2, v2 := range v {
  12172. ee.EncodeInt(int64(k2))
  12173. ee.EncodeInt(int64(v2))
  12174. }
  12175. }
  12176. }
  12177. ee.WriteMapEnd()
  12178. }
  12179. func (e *Encoder) fastpathEncMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  12180. fastpathTV.EncMapInt16Float32V(rv2i(rv).(map[int16]float32), e)
  12181. }
  12182. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, e *Encoder) {
  12183. if v == nil {
  12184. e.e.EncodeNil()
  12185. return
  12186. }
  12187. ee, esep := e.e, e.hh.hasElemSeparators()
  12188. ee.WriteMapStart(len(v))
  12189. if e.h.Canonical {
  12190. v2 := make([]int64, len(v))
  12191. var i int
  12192. for k, _ := range v {
  12193. v2[i] = int64(k)
  12194. i++
  12195. }
  12196. sort.Sort(intSlice(v2))
  12197. if esep {
  12198. for _, k2 := range v2 {
  12199. ee.WriteMapElemKey()
  12200. ee.EncodeInt(int64(int16(k2)))
  12201. ee.WriteMapElemValue()
  12202. ee.EncodeFloat32(v[int16(k2)])
  12203. }
  12204. } else {
  12205. for _, k2 := range v2 {
  12206. ee.EncodeInt(int64(int16(k2)))
  12207. ee.EncodeFloat32(v[int16(k2)])
  12208. }
  12209. }
  12210. } else {
  12211. if esep {
  12212. for k2, v2 := range v {
  12213. ee.WriteMapElemKey()
  12214. ee.EncodeInt(int64(k2))
  12215. ee.WriteMapElemValue()
  12216. ee.EncodeFloat32(v2)
  12217. }
  12218. } else {
  12219. for k2, v2 := range v {
  12220. ee.EncodeInt(int64(k2))
  12221. ee.EncodeFloat32(v2)
  12222. }
  12223. }
  12224. }
  12225. ee.WriteMapEnd()
  12226. }
  12227. func (e *Encoder) fastpathEncMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  12228. fastpathTV.EncMapInt16Float64V(rv2i(rv).(map[int16]float64), e)
  12229. }
  12230. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, e *Encoder) {
  12231. if v == nil {
  12232. e.e.EncodeNil()
  12233. return
  12234. }
  12235. ee, esep := e.e, e.hh.hasElemSeparators()
  12236. ee.WriteMapStart(len(v))
  12237. if e.h.Canonical {
  12238. v2 := make([]int64, len(v))
  12239. var i int
  12240. for k, _ := range v {
  12241. v2[i] = int64(k)
  12242. i++
  12243. }
  12244. sort.Sort(intSlice(v2))
  12245. if esep {
  12246. for _, k2 := range v2 {
  12247. ee.WriteMapElemKey()
  12248. ee.EncodeInt(int64(int16(k2)))
  12249. ee.WriteMapElemValue()
  12250. ee.EncodeFloat64(v[int16(k2)])
  12251. }
  12252. } else {
  12253. for _, k2 := range v2 {
  12254. ee.EncodeInt(int64(int16(k2)))
  12255. ee.EncodeFloat64(v[int16(k2)])
  12256. }
  12257. }
  12258. } else {
  12259. if esep {
  12260. for k2, v2 := range v {
  12261. ee.WriteMapElemKey()
  12262. ee.EncodeInt(int64(k2))
  12263. ee.WriteMapElemValue()
  12264. ee.EncodeFloat64(v2)
  12265. }
  12266. } else {
  12267. for k2, v2 := range v {
  12268. ee.EncodeInt(int64(k2))
  12269. ee.EncodeFloat64(v2)
  12270. }
  12271. }
  12272. }
  12273. ee.WriteMapEnd()
  12274. }
  12275. func (e *Encoder) fastpathEncMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  12276. fastpathTV.EncMapInt16BoolV(rv2i(rv).(map[int16]bool), e)
  12277. }
  12278. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, e *Encoder) {
  12279. if v == nil {
  12280. e.e.EncodeNil()
  12281. return
  12282. }
  12283. ee, esep := e.e, e.hh.hasElemSeparators()
  12284. ee.WriteMapStart(len(v))
  12285. if e.h.Canonical {
  12286. v2 := make([]int64, len(v))
  12287. var i int
  12288. for k, _ := range v {
  12289. v2[i] = int64(k)
  12290. i++
  12291. }
  12292. sort.Sort(intSlice(v2))
  12293. if esep {
  12294. for _, k2 := range v2 {
  12295. ee.WriteMapElemKey()
  12296. ee.EncodeInt(int64(int16(k2)))
  12297. ee.WriteMapElemValue()
  12298. ee.EncodeBool(v[int16(k2)])
  12299. }
  12300. } else {
  12301. for _, k2 := range v2 {
  12302. ee.EncodeInt(int64(int16(k2)))
  12303. ee.EncodeBool(v[int16(k2)])
  12304. }
  12305. }
  12306. } else {
  12307. if esep {
  12308. for k2, v2 := range v {
  12309. ee.WriteMapElemKey()
  12310. ee.EncodeInt(int64(k2))
  12311. ee.WriteMapElemValue()
  12312. ee.EncodeBool(v2)
  12313. }
  12314. } else {
  12315. for k2, v2 := range v {
  12316. ee.EncodeInt(int64(k2))
  12317. ee.EncodeBool(v2)
  12318. }
  12319. }
  12320. }
  12321. ee.WriteMapEnd()
  12322. }
  12323. func (e *Encoder) fastpathEncMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  12324. fastpathTV.EncMapInt32IntfV(rv2i(rv).(map[int32]interface{}), e)
  12325. }
  12326. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, e *Encoder) {
  12327. if v == nil {
  12328. e.e.EncodeNil()
  12329. return
  12330. }
  12331. ee, esep := e.e, e.hh.hasElemSeparators()
  12332. ee.WriteMapStart(len(v))
  12333. if e.h.Canonical {
  12334. v2 := make([]int64, len(v))
  12335. var i int
  12336. for k, _ := range v {
  12337. v2[i] = int64(k)
  12338. i++
  12339. }
  12340. sort.Sort(intSlice(v2))
  12341. if esep {
  12342. for _, k2 := range v2 {
  12343. ee.WriteMapElemKey()
  12344. ee.EncodeInt(int64(int32(k2)))
  12345. ee.WriteMapElemValue()
  12346. e.encode(v[int32(k2)])
  12347. }
  12348. } else {
  12349. for _, k2 := range v2 {
  12350. ee.EncodeInt(int64(int32(k2)))
  12351. e.encode(v[int32(k2)])
  12352. }
  12353. }
  12354. } else {
  12355. if esep {
  12356. for k2, v2 := range v {
  12357. ee.WriteMapElemKey()
  12358. ee.EncodeInt(int64(k2))
  12359. ee.WriteMapElemValue()
  12360. e.encode(v2)
  12361. }
  12362. } else {
  12363. for k2, v2 := range v {
  12364. ee.EncodeInt(int64(k2))
  12365. e.encode(v2)
  12366. }
  12367. }
  12368. }
  12369. ee.WriteMapEnd()
  12370. }
  12371. func (e *Encoder) fastpathEncMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  12372. fastpathTV.EncMapInt32StringV(rv2i(rv).(map[int32]string), e)
  12373. }
  12374. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, e *Encoder) {
  12375. if v == nil {
  12376. e.e.EncodeNil()
  12377. return
  12378. }
  12379. ee, esep := e.e, e.hh.hasElemSeparators()
  12380. ee.WriteMapStart(len(v))
  12381. if e.h.Canonical {
  12382. v2 := make([]int64, len(v))
  12383. var i int
  12384. for k, _ := range v {
  12385. v2[i] = int64(k)
  12386. i++
  12387. }
  12388. sort.Sort(intSlice(v2))
  12389. if esep {
  12390. for _, k2 := range v2 {
  12391. ee.WriteMapElemKey()
  12392. ee.EncodeInt(int64(int32(k2)))
  12393. ee.WriteMapElemValue()
  12394. ee.EncodeString(cUTF8, v[int32(k2)])
  12395. }
  12396. } else {
  12397. for _, k2 := range v2 {
  12398. ee.EncodeInt(int64(int32(k2)))
  12399. ee.EncodeString(cUTF8, v[int32(k2)])
  12400. }
  12401. }
  12402. } else {
  12403. if esep {
  12404. for k2, v2 := range v {
  12405. ee.WriteMapElemKey()
  12406. ee.EncodeInt(int64(k2))
  12407. ee.WriteMapElemValue()
  12408. ee.EncodeString(cUTF8, v2)
  12409. }
  12410. } else {
  12411. for k2, v2 := range v {
  12412. ee.EncodeInt(int64(k2))
  12413. ee.EncodeString(cUTF8, v2)
  12414. }
  12415. }
  12416. }
  12417. ee.WriteMapEnd()
  12418. }
  12419. func (e *Encoder) fastpathEncMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  12420. fastpathTV.EncMapInt32UintV(rv2i(rv).(map[int32]uint), e)
  12421. }
  12422. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, e *Encoder) {
  12423. if v == nil {
  12424. e.e.EncodeNil()
  12425. return
  12426. }
  12427. ee, esep := e.e, e.hh.hasElemSeparators()
  12428. ee.WriteMapStart(len(v))
  12429. if e.h.Canonical {
  12430. v2 := make([]int64, len(v))
  12431. var i int
  12432. for k, _ := range v {
  12433. v2[i] = int64(k)
  12434. i++
  12435. }
  12436. sort.Sort(intSlice(v2))
  12437. if esep {
  12438. for _, k2 := range v2 {
  12439. ee.WriteMapElemKey()
  12440. ee.EncodeInt(int64(int32(k2)))
  12441. ee.WriteMapElemValue()
  12442. ee.EncodeUint(uint64(v[int32(k2)]))
  12443. }
  12444. } else {
  12445. for _, k2 := range v2 {
  12446. ee.EncodeInt(int64(int32(k2)))
  12447. ee.EncodeUint(uint64(v[int32(k2)]))
  12448. }
  12449. }
  12450. } else {
  12451. if esep {
  12452. for k2, v2 := range v {
  12453. ee.WriteMapElemKey()
  12454. ee.EncodeInt(int64(k2))
  12455. ee.WriteMapElemValue()
  12456. ee.EncodeUint(uint64(v2))
  12457. }
  12458. } else {
  12459. for k2, v2 := range v {
  12460. ee.EncodeInt(int64(k2))
  12461. ee.EncodeUint(uint64(v2))
  12462. }
  12463. }
  12464. }
  12465. ee.WriteMapEnd()
  12466. }
  12467. func (e *Encoder) fastpathEncMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  12468. fastpathTV.EncMapInt32Uint8V(rv2i(rv).(map[int32]uint8), e)
  12469. }
  12470. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, e *Encoder) {
  12471. if v == nil {
  12472. e.e.EncodeNil()
  12473. return
  12474. }
  12475. ee, esep := e.e, e.hh.hasElemSeparators()
  12476. ee.WriteMapStart(len(v))
  12477. if e.h.Canonical {
  12478. v2 := make([]int64, len(v))
  12479. var i int
  12480. for k, _ := range v {
  12481. v2[i] = int64(k)
  12482. i++
  12483. }
  12484. sort.Sort(intSlice(v2))
  12485. if esep {
  12486. for _, k2 := range v2 {
  12487. ee.WriteMapElemKey()
  12488. ee.EncodeInt(int64(int32(k2)))
  12489. ee.WriteMapElemValue()
  12490. ee.EncodeUint(uint64(v[int32(k2)]))
  12491. }
  12492. } else {
  12493. for _, k2 := range v2 {
  12494. ee.EncodeInt(int64(int32(k2)))
  12495. ee.EncodeUint(uint64(v[int32(k2)]))
  12496. }
  12497. }
  12498. } else {
  12499. if esep {
  12500. for k2, v2 := range v {
  12501. ee.WriteMapElemKey()
  12502. ee.EncodeInt(int64(k2))
  12503. ee.WriteMapElemValue()
  12504. ee.EncodeUint(uint64(v2))
  12505. }
  12506. } else {
  12507. for k2, v2 := range v {
  12508. ee.EncodeInt(int64(k2))
  12509. ee.EncodeUint(uint64(v2))
  12510. }
  12511. }
  12512. }
  12513. ee.WriteMapEnd()
  12514. }
  12515. func (e *Encoder) fastpathEncMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  12516. fastpathTV.EncMapInt32Uint16V(rv2i(rv).(map[int32]uint16), e)
  12517. }
  12518. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, e *Encoder) {
  12519. if v == nil {
  12520. e.e.EncodeNil()
  12521. return
  12522. }
  12523. ee, esep := e.e, e.hh.hasElemSeparators()
  12524. ee.WriteMapStart(len(v))
  12525. if e.h.Canonical {
  12526. v2 := make([]int64, len(v))
  12527. var i int
  12528. for k, _ := range v {
  12529. v2[i] = int64(k)
  12530. i++
  12531. }
  12532. sort.Sort(intSlice(v2))
  12533. if esep {
  12534. for _, k2 := range v2 {
  12535. ee.WriteMapElemKey()
  12536. ee.EncodeInt(int64(int32(k2)))
  12537. ee.WriteMapElemValue()
  12538. ee.EncodeUint(uint64(v[int32(k2)]))
  12539. }
  12540. } else {
  12541. for _, k2 := range v2 {
  12542. ee.EncodeInt(int64(int32(k2)))
  12543. ee.EncodeUint(uint64(v[int32(k2)]))
  12544. }
  12545. }
  12546. } else {
  12547. if esep {
  12548. for k2, v2 := range v {
  12549. ee.WriteMapElemKey()
  12550. ee.EncodeInt(int64(k2))
  12551. ee.WriteMapElemValue()
  12552. ee.EncodeUint(uint64(v2))
  12553. }
  12554. } else {
  12555. for k2, v2 := range v {
  12556. ee.EncodeInt(int64(k2))
  12557. ee.EncodeUint(uint64(v2))
  12558. }
  12559. }
  12560. }
  12561. ee.WriteMapEnd()
  12562. }
  12563. func (e *Encoder) fastpathEncMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  12564. fastpathTV.EncMapInt32Uint32V(rv2i(rv).(map[int32]uint32), e)
  12565. }
  12566. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, e *Encoder) {
  12567. if v == nil {
  12568. e.e.EncodeNil()
  12569. return
  12570. }
  12571. ee, esep := e.e, e.hh.hasElemSeparators()
  12572. ee.WriteMapStart(len(v))
  12573. if e.h.Canonical {
  12574. v2 := make([]int64, len(v))
  12575. var i int
  12576. for k, _ := range v {
  12577. v2[i] = int64(k)
  12578. i++
  12579. }
  12580. sort.Sort(intSlice(v2))
  12581. if esep {
  12582. for _, k2 := range v2 {
  12583. ee.WriteMapElemKey()
  12584. ee.EncodeInt(int64(int32(k2)))
  12585. ee.WriteMapElemValue()
  12586. ee.EncodeUint(uint64(v[int32(k2)]))
  12587. }
  12588. } else {
  12589. for _, k2 := range v2 {
  12590. ee.EncodeInt(int64(int32(k2)))
  12591. ee.EncodeUint(uint64(v[int32(k2)]))
  12592. }
  12593. }
  12594. } else {
  12595. if esep {
  12596. for k2, v2 := range v {
  12597. ee.WriteMapElemKey()
  12598. ee.EncodeInt(int64(k2))
  12599. ee.WriteMapElemValue()
  12600. ee.EncodeUint(uint64(v2))
  12601. }
  12602. } else {
  12603. for k2, v2 := range v {
  12604. ee.EncodeInt(int64(k2))
  12605. ee.EncodeUint(uint64(v2))
  12606. }
  12607. }
  12608. }
  12609. ee.WriteMapEnd()
  12610. }
  12611. func (e *Encoder) fastpathEncMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  12612. fastpathTV.EncMapInt32Uint64V(rv2i(rv).(map[int32]uint64), e)
  12613. }
  12614. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, e *Encoder) {
  12615. if v == nil {
  12616. e.e.EncodeNil()
  12617. return
  12618. }
  12619. ee, esep := e.e, e.hh.hasElemSeparators()
  12620. ee.WriteMapStart(len(v))
  12621. if e.h.Canonical {
  12622. v2 := make([]int64, len(v))
  12623. var i int
  12624. for k, _ := range v {
  12625. v2[i] = int64(k)
  12626. i++
  12627. }
  12628. sort.Sort(intSlice(v2))
  12629. if esep {
  12630. for _, k2 := range v2 {
  12631. ee.WriteMapElemKey()
  12632. ee.EncodeInt(int64(int32(k2)))
  12633. ee.WriteMapElemValue()
  12634. ee.EncodeUint(uint64(v[int32(k2)]))
  12635. }
  12636. } else {
  12637. for _, k2 := range v2 {
  12638. ee.EncodeInt(int64(int32(k2)))
  12639. ee.EncodeUint(uint64(v[int32(k2)]))
  12640. }
  12641. }
  12642. } else {
  12643. if esep {
  12644. for k2, v2 := range v {
  12645. ee.WriteMapElemKey()
  12646. ee.EncodeInt(int64(k2))
  12647. ee.WriteMapElemValue()
  12648. ee.EncodeUint(uint64(v2))
  12649. }
  12650. } else {
  12651. for k2, v2 := range v {
  12652. ee.EncodeInt(int64(k2))
  12653. ee.EncodeUint(uint64(v2))
  12654. }
  12655. }
  12656. }
  12657. ee.WriteMapEnd()
  12658. }
  12659. func (e *Encoder) fastpathEncMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  12660. fastpathTV.EncMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), e)
  12661. }
  12662. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, e *Encoder) {
  12663. if v == nil {
  12664. e.e.EncodeNil()
  12665. return
  12666. }
  12667. ee, esep := e.e, e.hh.hasElemSeparators()
  12668. ee.WriteMapStart(len(v))
  12669. if e.h.Canonical {
  12670. v2 := make([]int64, len(v))
  12671. var i int
  12672. for k, _ := range v {
  12673. v2[i] = int64(k)
  12674. i++
  12675. }
  12676. sort.Sort(intSlice(v2))
  12677. if esep {
  12678. for _, k2 := range v2 {
  12679. ee.WriteMapElemKey()
  12680. ee.EncodeInt(int64(int32(k2)))
  12681. ee.WriteMapElemValue()
  12682. e.encode(v[int32(k2)])
  12683. }
  12684. } else {
  12685. for _, k2 := range v2 {
  12686. ee.EncodeInt(int64(int32(k2)))
  12687. e.encode(v[int32(k2)])
  12688. }
  12689. }
  12690. } else {
  12691. if esep {
  12692. for k2, v2 := range v {
  12693. ee.WriteMapElemKey()
  12694. ee.EncodeInt(int64(k2))
  12695. ee.WriteMapElemValue()
  12696. e.encode(v2)
  12697. }
  12698. } else {
  12699. for k2, v2 := range v {
  12700. ee.EncodeInt(int64(k2))
  12701. e.encode(v2)
  12702. }
  12703. }
  12704. }
  12705. ee.WriteMapEnd()
  12706. }
  12707. func (e *Encoder) fastpathEncMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  12708. fastpathTV.EncMapInt32IntV(rv2i(rv).(map[int32]int), e)
  12709. }
  12710. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, e *Encoder) {
  12711. if v == nil {
  12712. e.e.EncodeNil()
  12713. return
  12714. }
  12715. ee, esep := e.e, e.hh.hasElemSeparators()
  12716. ee.WriteMapStart(len(v))
  12717. if e.h.Canonical {
  12718. v2 := make([]int64, len(v))
  12719. var i int
  12720. for k, _ := range v {
  12721. v2[i] = int64(k)
  12722. i++
  12723. }
  12724. sort.Sort(intSlice(v2))
  12725. if esep {
  12726. for _, k2 := range v2 {
  12727. ee.WriteMapElemKey()
  12728. ee.EncodeInt(int64(int32(k2)))
  12729. ee.WriteMapElemValue()
  12730. ee.EncodeInt(int64(v[int32(k2)]))
  12731. }
  12732. } else {
  12733. for _, k2 := range v2 {
  12734. ee.EncodeInt(int64(int32(k2)))
  12735. ee.EncodeInt(int64(v[int32(k2)]))
  12736. }
  12737. }
  12738. } else {
  12739. if esep {
  12740. for k2, v2 := range v {
  12741. ee.WriteMapElemKey()
  12742. ee.EncodeInt(int64(k2))
  12743. ee.WriteMapElemValue()
  12744. ee.EncodeInt(int64(v2))
  12745. }
  12746. } else {
  12747. for k2, v2 := range v {
  12748. ee.EncodeInt(int64(k2))
  12749. ee.EncodeInt(int64(v2))
  12750. }
  12751. }
  12752. }
  12753. ee.WriteMapEnd()
  12754. }
  12755. func (e *Encoder) fastpathEncMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  12756. fastpathTV.EncMapInt32Int8V(rv2i(rv).(map[int32]int8), e)
  12757. }
  12758. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, e *Encoder) {
  12759. if v == nil {
  12760. e.e.EncodeNil()
  12761. return
  12762. }
  12763. ee, esep := e.e, e.hh.hasElemSeparators()
  12764. ee.WriteMapStart(len(v))
  12765. if e.h.Canonical {
  12766. v2 := make([]int64, len(v))
  12767. var i int
  12768. for k, _ := range v {
  12769. v2[i] = int64(k)
  12770. i++
  12771. }
  12772. sort.Sort(intSlice(v2))
  12773. if esep {
  12774. for _, k2 := range v2 {
  12775. ee.WriteMapElemKey()
  12776. ee.EncodeInt(int64(int32(k2)))
  12777. ee.WriteMapElemValue()
  12778. ee.EncodeInt(int64(v[int32(k2)]))
  12779. }
  12780. } else {
  12781. for _, k2 := range v2 {
  12782. ee.EncodeInt(int64(int32(k2)))
  12783. ee.EncodeInt(int64(v[int32(k2)]))
  12784. }
  12785. }
  12786. } else {
  12787. if esep {
  12788. for k2, v2 := range v {
  12789. ee.WriteMapElemKey()
  12790. ee.EncodeInt(int64(k2))
  12791. ee.WriteMapElemValue()
  12792. ee.EncodeInt(int64(v2))
  12793. }
  12794. } else {
  12795. for k2, v2 := range v {
  12796. ee.EncodeInt(int64(k2))
  12797. ee.EncodeInt(int64(v2))
  12798. }
  12799. }
  12800. }
  12801. ee.WriteMapEnd()
  12802. }
  12803. func (e *Encoder) fastpathEncMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  12804. fastpathTV.EncMapInt32Int16V(rv2i(rv).(map[int32]int16), e)
  12805. }
  12806. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, e *Encoder) {
  12807. if v == nil {
  12808. e.e.EncodeNil()
  12809. return
  12810. }
  12811. ee, esep := e.e, e.hh.hasElemSeparators()
  12812. ee.WriteMapStart(len(v))
  12813. if e.h.Canonical {
  12814. v2 := make([]int64, len(v))
  12815. var i int
  12816. for k, _ := range v {
  12817. v2[i] = int64(k)
  12818. i++
  12819. }
  12820. sort.Sort(intSlice(v2))
  12821. if esep {
  12822. for _, k2 := range v2 {
  12823. ee.WriteMapElemKey()
  12824. ee.EncodeInt(int64(int32(k2)))
  12825. ee.WriteMapElemValue()
  12826. ee.EncodeInt(int64(v[int32(k2)]))
  12827. }
  12828. } else {
  12829. for _, k2 := range v2 {
  12830. ee.EncodeInt(int64(int32(k2)))
  12831. ee.EncodeInt(int64(v[int32(k2)]))
  12832. }
  12833. }
  12834. } else {
  12835. if esep {
  12836. for k2, v2 := range v {
  12837. ee.WriteMapElemKey()
  12838. ee.EncodeInt(int64(k2))
  12839. ee.WriteMapElemValue()
  12840. ee.EncodeInt(int64(v2))
  12841. }
  12842. } else {
  12843. for k2, v2 := range v {
  12844. ee.EncodeInt(int64(k2))
  12845. ee.EncodeInt(int64(v2))
  12846. }
  12847. }
  12848. }
  12849. ee.WriteMapEnd()
  12850. }
  12851. func (e *Encoder) fastpathEncMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  12852. fastpathTV.EncMapInt32Int32V(rv2i(rv).(map[int32]int32), e)
  12853. }
  12854. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, e *Encoder) {
  12855. if v == nil {
  12856. e.e.EncodeNil()
  12857. return
  12858. }
  12859. ee, esep := e.e, e.hh.hasElemSeparators()
  12860. ee.WriteMapStart(len(v))
  12861. if e.h.Canonical {
  12862. v2 := make([]int64, len(v))
  12863. var i int
  12864. for k, _ := range v {
  12865. v2[i] = int64(k)
  12866. i++
  12867. }
  12868. sort.Sort(intSlice(v2))
  12869. if esep {
  12870. for _, k2 := range v2 {
  12871. ee.WriteMapElemKey()
  12872. ee.EncodeInt(int64(int32(k2)))
  12873. ee.WriteMapElemValue()
  12874. ee.EncodeInt(int64(v[int32(k2)]))
  12875. }
  12876. } else {
  12877. for _, k2 := range v2 {
  12878. ee.EncodeInt(int64(int32(k2)))
  12879. ee.EncodeInt(int64(v[int32(k2)]))
  12880. }
  12881. }
  12882. } else {
  12883. if esep {
  12884. for k2, v2 := range v {
  12885. ee.WriteMapElemKey()
  12886. ee.EncodeInt(int64(k2))
  12887. ee.WriteMapElemValue()
  12888. ee.EncodeInt(int64(v2))
  12889. }
  12890. } else {
  12891. for k2, v2 := range v {
  12892. ee.EncodeInt(int64(k2))
  12893. ee.EncodeInt(int64(v2))
  12894. }
  12895. }
  12896. }
  12897. ee.WriteMapEnd()
  12898. }
  12899. func (e *Encoder) fastpathEncMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  12900. fastpathTV.EncMapInt32Int64V(rv2i(rv).(map[int32]int64), e)
  12901. }
  12902. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, e *Encoder) {
  12903. if v == nil {
  12904. e.e.EncodeNil()
  12905. return
  12906. }
  12907. ee, esep := e.e, e.hh.hasElemSeparators()
  12908. ee.WriteMapStart(len(v))
  12909. if e.h.Canonical {
  12910. v2 := make([]int64, len(v))
  12911. var i int
  12912. for k, _ := range v {
  12913. v2[i] = int64(k)
  12914. i++
  12915. }
  12916. sort.Sort(intSlice(v2))
  12917. if esep {
  12918. for _, k2 := range v2 {
  12919. ee.WriteMapElemKey()
  12920. ee.EncodeInt(int64(int32(k2)))
  12921. ee.WriteMapElemValue()
  12922. ee.EncodeInt(int64(v[int32(k2)]))
  12923. }
  12924. } else {
  12925. for _, k2 := range v2 {
  12926. ee.EncodeInt(int64(int32(k2)))
  12927. ee.EncodeInt(int64(v[int32(k2)]))
  12928. }
  12929. }
  12930. } else {
  12931. if esep {
  12932. for k2, v2 := range v {
  12933. ee.WriteMapElemKey()
  12934. ee.EncodeInt(int64(k2))
  12935. ee.WriteMapElemValue()
  12936. ee.EncodeInt(int64(v2))
  12937. }
  12938. } else {
  12939. for k2, v2 := range v {
  12940. ee.EncodeInt(int64(k2))
  12941. ee.EncodeInt(int64(v2))
  12942. }
  12943. }
  12944. }
  12945. ee.WriteMapEnd()
  12946. }
  12947. func (e *Encoder) fastpathEncMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  12948. fastpathTV.EncMapInt32Float32V(rv2i(rv).(map[int32]float32), e)
  12949. }
  12950. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, e *Encoder) {
  12951. if v == nil {
  12952. e.e.EncodeNil()
  12953. return
  12954. }
  12955. ee, esep := e.e, e.hh.hasElemSeparators()
  12956. ee.WriteMapStart(len(v))
  12957. if e.h.Canonical {
  12958. v2 := make([]int64, len(v))
  12959. var i int
  12960. for k, _ := range v {
  12961. v2[i] = int64(k)
  12962. i++
  12963. }
  12964. sort.Sort(intSlice(v2))
  12965. if esep {
  12966. for _, k2 := range v2 {
  12967. ee.WriteMapElemKey()
  12968. ee.EncodeInt(int64(int32(k2)))
  12969. ee.WriteMapElemValue()
  12970. ee.EncodeFloat32(v[int32(k2)])
  12971. }
  12972. } else {
  12973. for _, k2 := range v2 {
  12974. ee.EncodeInt(int64(int32(k2)))
  12975. ee.EncodeFloat32(v[int32(k2)])
  12976. }
  12977. }
  12978. } else {
  12979. if esep {
  12980. for k2, v2 := range v {
  12981. ee.WriteMapElemKey()
  12982. ee.EncodeInt(int64(k2))
  12983. ee.WriteMapElemValue()
  12984. ee.EncodeFloat32(v2)
  12985. }
  12986. } else {
  12987. for k2, v2 := range v {
  12988. ee.EncodeInt(int64(k2))
  12989. ee.EncodeFloat32(v2)
  12990. }
  12991. }
  12992. }
  12993. ee.WriteMapEnd()
  12994. }
  12995. func (e *Encoder) fastpathEncMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  12996. fastpathTV.EncMapInt32Float64V(rv2i(rv).(map[int32]float64), e)
  12997. }
  12998. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, e *Encoder) {
  12999. if v == nil {
  13000. e.e.EncodeNil()
  13001. return
  13002. }
  13003. ee, esep := e.e, e.hh.hasElemSeparators()
  13004. ee.WriteMapStart(len(v))
  13005. if e.h.Canonical {
  13006. v2 := make([]int64, len(v))
  13007. var i int
  13008. for k, _ := range v {
  13009. v2[i] = int64(k)
  13010. i++
  13011. }
  13012. sort.Sort(intSlice(v2))
  13013. if esep {
  13014. for _, k2 := range v2 {
  13015. ee.WriteMapElemKey()
  13016. ee.EncodeInt(int64(int32(k2)))
  13017. ee.WriteMapElemValue()
  13018. ee.EncodeFloat64(v[int32(k2)])
  13019. }
  13020. } else {
  13021. for _, k2 := range v2 {
  13022. ee.EncodeInt(int64(int32(k2)))
  13023. ee.EncodeFloat64(v[int32(k2)])
  13024. }
  13025. }
  13026. } else {
  13027. if esep {
  13028. for k2, v2 := range v {
  13029. ee.WriteMapElemKey()
  13030. ee.EncodeInt(int64(k2))
  13031. ee.WriteMapElemValue()
  13032. ee.EncodeFloat64(v2)
  13033. }
  13034. } else {
  13035. for k2, v2 := range v {
  13036. ee.EncodeInt(int64(k2))
  13037. ee.EncodeFloat64(v2)
  13038. }
  13039. }
  13040. }
  13041. ee.WriteMapEnd()
  13042. }
  13043. func (e *Encoder) fastpathEncMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  13044. fastpathTV.EncMapInt32BoolV(rv2i(rv).(map[int32]bool), e)
  13045. }
  13046. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, e *Encoder) {
  13047. if v == nil {
  13048. e.e.EncodeNil()
  13049. return
  13050. }
  13051. ee, esep := e.e, e.hh.hasElemSeparators()
  13052. ee.WriteMapStart(len(v))
  13053. if e.h.Canonical {
  13054. v2 := make([]int64, len(v))
  13055. var i int
  13056. for k, _ := range v {
  13057. v2[i] = int64(k)
  13058. i++
  13059. }
  13060. sort.Sort(intSlice(v2))
  13061. if esep {
  13062. for _, k2 := range v2 {
  13063. ee.WriteMapElemKey()
  13064. ee.EncodeInt(int64(int32(k2)))
  13065. ee.WriteMapElemValue()
  13066. ee.EncodeBool(v[int32(k2)])
  13067. }
  13068. } else {
  13069. for _, k2 := range v2 {
  13070. ee.EncodeInt(int64(int32(k2)))
  13071. ee.EncodeBool(v[int32(k2)])
  13072. }
  13073. }
  13074. } else {
  13075. if esep {
  13076. for k2, v2 := range v {
  13077. ee.WriteMapElemKey()
  13078. ee.EncodeInt(int64(k2))
  13079. ee.WriteMapElemValue()
  13080. ee.EncodeBool(v2)
  13081. }
  13082. } else {
  13083. for k2, v2 := range v {
  13084. ee.EncodeInt(int64(k2))
  13085. ee.EncodeBool(v2)
  13086. }
  13087. }
  13088. }
  13089. ee.WriteMapEnd()
  13090. }
  13091. func (e *Encoder) fastpathEncMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  13092. fastpathTV.EncMapInt64IntfV(rv2i(rv).(map[int64]interface{}), e)
  13093. }
  13094. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, e *Encoder) {
  13095. if v == nil {
  13096. e.e.EncodeNil()
  13097. return
  13098. }
  13099. ee, esep := e.e, e.hh.hasElemSeparators()
  13100. ee.WriteMapStart(len(v))
  13101. if e.h.Canonical {
  13102. v2 := make([]int64, len(v))
  13103. var i int
  13104. for k, _ := range v {
  13105. v2[i] = int64(k)
  13106. i++
  13107. }
  13108. sort.Sort(intSlice(v2))
  13109. if esep {
  13110. for _, k2 := range v2 {
  13111. ee.WriteMapElemKey()
  13112. ee.EncodeInt(int64(int64(k2)))
  13113. ee.WriteMapElemValue()
  13114. e.encode(v[int64(k2)])
  13115. }
  13116. } else {
  13117. for _, k2 := range v2 {
  13118. ee.EncodeInt(int64(int64(k2)))
  13119. e.encode(v[int64(k2)])
  13120. }
  13121. }
  13122. } else {
  13123. if esep {
  13124. for k2, v2 := range v {
  13125. ee.WriteMapElemKey()
  13126. ee.EncodeInt(int64(k2))
  13127. ee.WriteMapElemValue()
  13128. e.encode(v2)
  13129. }
  13130. } else {
  13131. for k2, v2 := range v {
  13132. ee.EncodeInt(int64(k2))
  13133. e.encode(v2)
  13134. }
  13135. }
  13136. }
  13137. ee.WriteMapEnd()
  13138. }
  13139. func (e *Encoder) fastpathEncMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  13140. fastpathTV.EncMapInt64StringV(rv2i(rv).(map[int64]string), e)
  13141. }
  13142. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, e *Encoder) {
  13143. if v == nil {
  13144. e.e.EncodeNil()
  13145. return
  13146. }
  13147. ee, esep := e.e, e.hh.hasElemSeparators()
  13148. ee.WriteMapStart(len(v))
  13149. if e.h.Canonical {
  13150. v2 := make([]int64, len(v))
  13151. var i int
  13152. for k, _ := range v {
  13153. v2[i] = int64(k)
  13154. i++
  13155. }
  13156. sort.Sort(intSlice(v2))
  13157. if esep {
  13158. for _, k2 := range v2 {
  13159. ee.WriteMapElemKey()
  13160. ee.EncodeInt(int64(int64(k2)))
  13161. ee.WriteMapElemValue()
  13162. ee.EncodeString(cUTF8, v[int64(k2)])
  13163. }
  13164. } else {
  13165. for _, k2 := range v2 {
  13166. ee.EncodeInt(int64(int64(k2)))
  13167. ee.EncodeString(cUTF8, v[int64(k2)])
  13168. }
  13169. }
  13170. } else {
  13171. if esep {
  13172. for k2, v2 := range v {
  13173. ee.WriteMapElemKey()
  13174. ee.EncodeInt(int64(k2))
  13175. ee.WriteMapElemValue()
  13176. ee.EncodeString(cUTF8, v2)
  13177. }
  13178. } else {
  13179. for k2, v2 := range v {
  13180. ee.EncodeInt(int64(k2))
  13181. ee.EncodeString(cUTF8, v2)
  13182. }
  13183. }
  13184. }
  13185. ee.WriteMapEnd()
  13186. }
  13187. func (e *Encoder) fastpathEncMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  13188. fastpathTV.EncMapInt64UintV(rv2i(rv).(map[int64]uint), e)
  13189. }
  13190. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, e *Encoder) {
  13191. if v == nil {
  13192. e.e.EncodeNil()
  13193. return
  13194. }
  13195. ee, esep := e.e, e.hh.hasElemSeparators()
  13196. ee.WriteMapStart(len(v))
  13197. if e.h.Canonical {
  13198. v2 := make([]int64, len(v))
  13199. var i int
  13200. for k, _ := range v {
  13201. v2[i] = int64(k)
  13202. i++
  13203. }
  13204. sort.Sort(intSlice(v2))
  13205. if esep {
  13206. for _, k2 := range v2 {
  13207. ee.WriteMapElemKey()
  13208. ee.EncodeInt(int64(int64(k2)))
  13209. ee.WriteMapElemValue()
  13210. ee.EncodeUint(uint64(v[int64(k2)]))
  13211. }
  13212. } else {
  13213. for _, k2 := range v2 {
  13214. ee.EncodeInt(int64(int64(k2)))
  13215. ee.EncodeUint(uint64(v[int64(k2)]))
  13216. }
  13217. }
  13218. } else {
  13219. if esep {
  13220. for k2, v2 := range v {
  13221. ee.WriteMapElemKey()
  13222. ee.EncodeInt(int64(k2))
  13223. ee.WriteMapElemValue()
  13224. ee.EncodeUint(uint64(v2))
  13225. }
  13226. } else {
  13227. for k2, v2 := range v {
  13228. ee.EncodeInt(int64(k2))
  13229. ee.EncodeUint(uint64(v2))
  13230. }
  13231. }
  13232. }
  13233. ee.WriteMapEnd()
  13234. }
  13235. func (e *Encoder) fastpathEncMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  13236. fastpathTV.EncMapInt64Uint8V(rv2i(rv).(map[int64]uint8), e)
  13237. }
  13238. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, e *Encoder) {
  13239. if v == nil {
  13240. e.e.EncodeNil()
  13241. return
  13242. }
  13243. ee, esep := e.e, e.hh.hasElemSeparators()
  13244. ee.WriteMapStart(len(v))
  13245. if e.h.Canonical {
  13246. v2 := make([]int64, len(v))
  13247. var i int
  13248. for k, _ := range v {
  13249. v2[i] = int64(k)
  13250. i++
  13251. }
  13252. sort.Sort(intSlice(v2))
  13253. if esep {
  13254. for _, k2 := range v2 {
  13255. ee.WriteMapElemKey()
  13256. ee.EncodeInt(int64(int64(k2)))
  13257. ee.WriteMapElemValue()
  13258. ee.EncodeUint(uint64(v[int64(k2)]))
  13259. }
  13260. } else {
  13261. for _, k2 := range v2 {
  13262. ee.EncodeInt(int64(int64(k2)))
  13263. ee.EncodeUint(uint64(v[int64(k2)]))
  13264. }
  13265. }
  13266. } else {
  13267. if esep {
  13268. for k2, v2 := range v {
  13269. ee.WriteMapElemKey()
  13270. ee.EncodeInt(int64(k2))
  13271. ee.WriteMapElemValue()
  13272. ee.EncodeUint(uint64(v2))
  13273. }
  13274. } else {
  13275. for k2, v2 := range v {
  13276. ee.EncodeInt(int64(k2))
  13277. ee.EncodeUint(uint64(v2))
  13278. }
  13279. }
  13280. }
  13281. ee.WriteMapEnd()
  13282. }
  13283. func (e *Encoder) fastpathEncMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  13284. fastpathTV.EncMapInt64Uint16V(rv2i(rv).(map[int64]uint16), e)
  13285. }
  13286. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, e *Encoder) {
  13287. if v == nil {
  13288. e.e.EncodeNil()
  13289. return
  13290. }
  13291. ee, esep := e.e, e.hh.hasElemSeparators()
  13292. ee.WriteMapStart(len(v))
  13293. if e.h.Canonical {
  13294. v2 := make([]int64, len(v))
  13295. var i int
  13296. for k, _ := range v {
  13297. v2[i] = int64(k)
  13298. i++
  13299. }
  13300. sort.Sort(intSlice(v2))
  13301. if esep {
  13302. for _, k2 := range v2 {
  13303. ee.WriteMapElemKey()
  13304. ee.EncodeInt(int64(int64(k2)))
  13305. ee.WriteMapElemValue()
  13306. ee.EncodeUint(uint64(v[int64(k2)]))
  13307. }
  13308. } else {
  13309. for _, k2 := range v2 {
  13310. ee.EncodeInt(int64(int64(k2)))
  13311. ee.EncodeUint(uint64(v[int64(k2)]))
  13312. }
  13313. }
  13314. } else {
  13315. if esep {
  13316. for k2, v2 := range v {
  13317. ee.WriteMapElemKey()
  13318. ee.EncodeInt(int64(k2))
  13319. ee.WriteMapElemValue()
  13320. ee.EncodeUint(uint64(v2))
  13321. }
  13322. } else {
  13323. for k2, v2 := range v {
  13324. ee.EncodeInt(int64(k2))
  13325. ee.EncodeUint(uint64(v2))
  13326. }
  13327. }
  13328. }
  13329. ee.WriteMapEnd()
  13330. }
  13331. func (e *Encoder) fastpathEncMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  13332. fastpathTV.EncMapInt64Uint32V(rv2i(rv).(map[int64]uint32), e)
  13333. }
  13334. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, e *Encoder) {
  13335. if v == nil {
  13336. e.e.EncodeNil()
  13337. return
  13338. }
  13339. ee, esep := e.e, e.hh.hasElemSeparators()
  13340. ee.WriteMapStart(len(v))
  13341. if e.h.Canonical {
  13342. v2 := make([]int64, len(v))
  13343. var i int
  13344. for k, _ := range v {
  13345. v2[i] = int64(k)
  13346. i++
  13347. }
  13348. sort.Sort(intSlice(v2))
  13349. if esep {
  13350. for _, k2 := range v2 {
  13351. ee.WriteMapElemKey()
  13352. ee.EncodeInt(int64(int64(k2)))
  13353. ee.WriteMapElemValue()
  13354. ee.EncodeUint(uint64(v[int64(k2)]))
  13355. }
  13356. } else {
  13357. for _, k2 := range v2 {
  13358. ee.EncodeInt(int64(int64(k2)))
  13359. ee.EncodeUint(uint64(v[int64(k2)]))
  13360. }
  13361. }
  13362. } else {
  13363. if esep {
  13364. for k2, v2 := range v {
  13365. ee.WriteMapElemKey()
  13366. ee.EncodeInt(int64(k2))
  13367. ee.WriteMapElemValue()
  13368. ee.EncodeUint(uint64(v2))
  13369. }
  13370. } else {
  13371. for k2, v2 := range v {
  13372. ee.EncodeInt(int64(k2))
  13373. ee.EncodeUint(uint64(v2))
  13374. }
  13375. }
  13376. }
  13377. ee.WriteMapEnd()
  13378. }
  13379. func (e *Encoder) fastpathEncMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  13380. fastpathTV.EncMapInt64Uint64V(rv2i(rv).(map[int64]uint64), e)
  13381. }
  13382. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, e *Encoder) {
  13383. if v == nil {
  13384. e.e.EncodeNil()
  13385. return
  13386. }
  13387. ee, esep := e.e, e.hh.hasElemSeparators()
  13388. ee.WriteMapStart(len(v))
  13389. if e.h.Canonical {
  13390. v2 := make([]int64, len(v))
  13391. var i int
  13392. for k, _ := range v {
  13393. v2[i] = int64(k)
  13394. i++
  13395. }
  13396. sort.Sort(intSlice(v2))
  13397. if esep {
  13398. for _, k2 := range v2 {
  13399. ee.WriteMapElemKey()
  13400. ee.EncodeInt(int64(int64(k2)))
  13401. ee.WriteMapElemValue()
  13402. ee.EncodeUint(uint64(v[int64(k2)]))
  13403. }
  13404. } else {
  13405. for _, k2 := range v2 {
  13406. ee.EncodeInt(int64(int64(k2)))
  13407. ee.EncodeUint(uint64(v[int64(k2)]))
  13408. }
  13409. }
  13410. } else {
  13411. if esep {
  13412. for k2, v2 := range v {
  13413. ee.WriteMapElemKey()
  13414. ee.EncodeInt(int64(k2))
  13415. ee.WriteMapElemValue()
  13416. ee.EncodeUint(uint64(v2))
  13417. }
  13418. } else {
  13419. for k2, v2 := range v {
  13420. ee.EncodeInt(int64(k2))
  13421. ee.EncodeUint(uint64(v2))
  13422. }
  13423. }
  13424. }
  13425. ee.WriteMapEnd()
  13426. }
  13427. func (e *Encoder) fastpathEncMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  13428. fastpathTV.EncMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), e)
  13429. }
  13430. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, e *Encoder) {
  13431. if v == nil {
  13432. e.e.EncodeNil()
  13433. return
  13434. }
  13435. ee, esep := e.e, e.hh.hasElemSeparators()
  13436. ee.WriteMapStart(len(v))
  13437. if e.h.Canonical {
  13438. v2 := make([]int64, len(v))
  13439. var i int
  13440. for k, _ := range v {
  13441. v2[i] = int64(k)
  13442. i++
  13443. }
  13444. sort.Sort(intSlice(v2))
  13445. if esep {
  13446. for _, k2 := range v2 {
  13447. ee.WriteMapElemKey()
  13448. ee.EncodeInt(int64(int64(k2)))
  13449. ee.WriteMapElemValue()
  13450. e.encode(v[int64(k2)])
  13451. }
  13452. } else {
  13453. for _, k2 := range v2 {
  13454. ee.EncodeInt(int64(int64(k2)))
  13455. e.encode(v[int64(k2)])
  13456. }
  13457. }
  13458. } else {
  13459. if esep {
  13460. for k2, v2 := range v {
  13461. ee.WriteMapElemKey()
  13462. ee.EncodeInt(int64(k2))
  13463. ee.WriteMapElemValue()
  13464. e.encode(v2)
  13465. }
  13466. } else {
  13467. for k2, v2 := range v {
  13468. ee.EncodeInt(int64(k2))
  13469. e.encode(v2)
  13470. }
  13471. }
  13472. }
  13473. ee.WriteMapEnd()
  13474. }
  13475. func (e *Encoder) fastpathEncMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  13476. fastpathTV.EncMapInt64IntV(rv2i(rv).(map[int64]int), e)
  13477. }
  13478. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, e *Encoder) {
  13479. if v == nil {
  13480. e.e.EncodeNil()
  13481. return
  13482. }
  13483. ee, esep := e.e, e.hh.hasElemSeparators()
  13484. ee.WriteMapStart(len(v))
  13485. if e.h.Canonical {
  13486. v2 := make([]int64, len(v))
  13487. var i int
  13488. for k, _ := range v {
  13489. v2[i] = int64(k)
  13490. i++
  13491. }
  13492. sort.Sort(intSlice(v2))
  13493. if esep {
  13494. for _, k2 := range v2 {
  13495. ee.WriteMapElemKey()
  13496. ee.EncodeInt(int64(int64(k2)))
  13497. ee.WriteMapElemValue()
  13498. ee.EncodeInt(int64(v[int64(k2)]))
  13499. }
  13500. } else {
  13501. for _, k2 := range v2 {
  13502. ee.EncodeInt(int64(int64(k2)))
  13503. ee.EncodeInt(int64(v[int64(k2)]))
  13504. }
  13505. }
  13506. } else {
  13507. if esep {
  13508. for k2, v2 := range v {
  13509. ee.WriteMapElemKey()
  13510. ee.EncodeInt(int64(k2))
  13511. ee.WriteMapElemValue()
  13512. ee.EncodeInt(int64(v2))
  13513. }
  13514. } else {
  13515. for k2, v2 := range v {
  13516. ee.EncodeInt(int64(k2))
  13517. ee.EncodeInt(int64(v2))
  13518. }
  13519. }
  13520. }
  13521. ee.WriteMapEnd()
  13522. }
  13523. func (e *Encoder) fastpathEncMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  13524. fastpathTV.EncMapInt64Int8V(rv2i(rv).(map[int64]int8), e)
  13525. }
  13526. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, e *Encoder) {
  13527. if v == nil {
  13528. e.e.EncodeNil()
  13529. return
  13530. }
  13531. ee, esep := e.e, e.hh.hasElemSeparators()
  13532. ee.WriteMapStart(len(v))
  13533. if e.h.Canonical {
  13534. v2 := make([]int64, len(v))
  13535. var i int
  13536. for k, _ := range v {
  13537. v2[i] = int64(k)
  13538. i++
  13539. }
  13540. sort.Sort(intSlice(v2))
  13541. if esep {
  13542. for _, k2 := range v2 {
  13543. ee.WriteMapElemKey()
  13544. ee.EncodeInt(int64(int64(k2)))
  13545. ee.WriteMapElemValue()
  13546. ee.EncodeInt(int64(v[int64(k2)]))
  13547. }
  13548. } else {
  13549. for _, k2 := range v2 {
  13550. ee.EncodeInt(int64(int64(k2)))
  13551. ee.EncodeInt(int64(v[int64(k2)]))
  13552. }
  13553. }
  13554. } else {
  13555. if esep {
  13556. for k2, v2 := range v {
  13557. ee.WriteMapElemKey()
  13558. ee.EncodeInt(int64(k2))
  13559. ee.WriteMapElemValue()
  13560. ee.EncodeInt(int64(v2))
  13561. }
  13562. } else {
  13563. for k2, v2 := range v {
  13564. ee.EncodeInt(int64(k2))
  13565. ee.EncodeInt(int64(v2))
  13566. }
  13567. }
  13568. }
  13569. ee.WriteMapEnd()
  13570. }
  13571. func (e *Encoder) fastpathEncMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  13572. fastpathTV.EncMapInt64Int16V(rv2i(rv).(map[int64]int16), e)
  13573. }
  13574. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, e *Encoder) {
  13575. if v == nil {
  13576. e.e.EncodeNil()
  13577. return
  13578. }
  13579. ee, esep := e.e, e.hh.hasElemSeparators()
  13580. ee.WriteMapStart(len(v))
  13581. if e.h.Canonical {
  13582. v2 := make([]int64, len(v))
  13583. var i int
  13584. for k, _ := range v {
  13585. v2[i] = int64(k)
  13586. i++
  13587. }
  13588. sort.Sort(intSlice(v2))
  13589. if esep {
  13590. for _, k2 := range v2 {
  13591. ee.WriteMapElemKey()
  13592. ee.EncodeInt(int64(int64(k2)))
  13593. ee.WriteMapElemValue()
  13594. ee.EncodeInt(int64(v[int64(k2)]))
  13595. }
  13596. } else {
  13597. for _, k2 := range v2 {
  13598. ee.EncodeInt(int64(int64(k2)))
  13599. ee.EncodeInt(int64(v[int64(k2)]))
  13600. }
  13601. }
  13602. } else {
  13603. if esep {
  13604. for k2, v2 := range v {
  13605. ee.WriteMapElemKey()
  13606. ee.EncodeInt(int64(k2))
  13607. ee.WriteMapElemValue()
  13608. ee.EncodeInt(int64(v2))
  13609. }
  13610. } else {
  13611. for k2, v2 := range v {
  13612. ee.EncodeInt(int64(k2))
  13613. ee.EncodeInt(int64(v2))
  13614. }
  13615. }
  13616. }
  13617. ee.WriteMapEnd()
  13618. }
  13619. func (e *Encoder) fastpathEncMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  13620. fastpathTV.EncMapInt64Int32V(rv2i(rv).(map[int64]int32), e)
  13621. }
  13622. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, e *Encoder) {
  13623. if v == nil {
  13624. e.e.EncodeNil()
  13625. return
  13626. }
  13627. ee, esep := e.e, e.hh.hasElemSeparators()
  13628. ee.WriteMapStart(len(v))
  13629. if e.h.Canonical {
  13630. v2 := make([]int64, len(v))
  13631. var i int
  13632. for k, _ := range v {
  13633. v2[i] = int64(k)
  13634. i++
  13635. }
  13636. sort.Sort(intSlice(v2))
  13637. if esep {
  13638. for _, k2 := range v2 {
  13639. ee.WriteMapElemKey()
  13640. ee.EncodeInt(int64(int64(k2)))
  13641. ee.WriteMapElemValue()
  13642. ee.EncodeInt(int64(v[int64(k2)]))
  13643. }
  13644. } else {
  13645. for _, k2 := range v2 {
  13646. ee.EncodeInt(int64(int64(k2)))
  13647. ee.EncodeInt(int64(v[int64(k2)]))
  13648. }
  13649. }
  13650. } else {
  13651. if esep {
  13652. for k2, v2 := range v {
  13653. ee.WriteMapElemKey()
  13654. ee.EncodeInt(int64(k2))
  13655. ee.WriteMapElemValue()
  13656. ee.EncodeInt(int64(v2))
  13657. }
  13658. } else {
  13659. for k2, v2 := range v {
  13660. ee.EncodeInt(int64(k2))
  13661. ee.EncodeInt(int64(v2))
  13662. }
  13663. }
  13664. }
  13665. ee.WriteMapEnd()
  13666. }
  13667. func (e *Encoder) fastpathEncMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  13668. fastpathTV.EncMapInt64Int64V(rv2i(rv).(map[int64]int64), e)
  13669. }
  13670. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, e *Encoder) {
  13671. if v == nil {
  13672. e.e.EncodeNil()
  13673. return
  13674. }
  13675. ee, esep := e.e, e.hh.hasElemSeparators()
  13676. ee.WriteMapStart(len(v))
  13677. if e.h.Canonical {
  13678. v2 := make([]int64, len(v))
  13679. var i int
  13680. for k, _ := range v {
  13681. v2[i] = int64(k)
  13682. i++
  13683. }
  13684. sort.Sort(intSlice(v2))
  13685. if esep {
  13686. for _, k2 := range v2 {
  13687. ee.WriteMapElemKey()
  13688. ee.EncodeInt(int64(int64(k2)))
  13689. ee.WriteMapElemValue()
  13690. ee.EncodeInt(int64(v[int64(k2)]))
  13691. }
  13692. } else {
  13693. for _, k2 := range v2 {
  13694. ee.EncodeInt(int64(int64(k2)))
  13695. ee.EncodeInt(int64(v[int64(k2)]))
  13696. }
  13697. }
  13698. } else {
  13699. if esep {
  13700. for k2, v2 := range v {
  13701. ee.WriteMapElemKey()
  13702. ee.EncodeInt(int64(k2))
  13703. ee.WriteMapElemValue()
  13704. ee.EncodeInt(int64(v2))
  13705. }
  13706. } else {
  13707. for k2, v2 := range v {
  13708. ee.EncodeInt(int64(k2))
  13709. ee.EncodeInt(int64(v2))
  13710. }
  13711. }
  13712. }
  13713. ee.WriteMapEnd()
  13714. }
  13715. func (e *Encoder) fastpathEncMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  13716. fastpathTV.EncMapInt64Float32V(rv2i(rv).(map[int64]float32), e)
  13717. }
  13718. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, e *Encoder) {
  13719. if v == nil {
  13720. e.e.EncodeNil()
  13721. return
  13722. }
  13723. ee, esep := e.e, e.hh.hasElemSeparators()
  13724. ee.WriteMapStart(len(v))
  13725. if e.h.Canonical {
  13726. v2 := make([]int64, len(v))
  13727. var i int
  13728. for k, _ := range v {
  13729. v2[i] = int64(k)
  13730. i++
  13731. }
  13732. sort.Sort(intSlice(v2))
  13733. if esep {
  13734. for _, k2 := range v2 {
  13735. ee.WriteMapElemKey()
  13736. ee.EncodeInt(int64(int64(k2)))
  13737. ee.WriteMapElemValue()
  13738. ee.EncodeFloat32(v[int64(k2)])
  13739. }
  13740. } else {
  13741. for _, k2 := range v2 {
  13742. ee.EncodeInt(int64(int64(k2)))
  13743. ee.EncodeFloat32(v[int64(k2)])
  13744. }
  13745. }
  13746. } else {
  13747. if esep {
  13748. for k2, v2 := range v {
  13749. ee.WriteMapElemKey()
  13750. ee.EncodeInt(int64(k2))
  13751. ee.WriteMapElemValue()
  13752. ee.EncodeFloat32(v2)
  13753. }
  13754. } else {
  13755. for k2, v2 := range v {
  13756. ee.EncodeInt(int64(k2))
  13757. ee.EncodeFloat32(v2)
  13758. }
  13759. }
  13760. }
  13761. ee.WriteMapEnd()
  13762. }
  13763. func (e *Encoder) fastpathEncMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  13764. fastpathTV.EncMapInt64Float64V(rv2i(rv).(map[int64]float64), e)
  13765. }
  13766. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, e *Encoder) {
  13767. if v == nil {
  13768. e.e.EncodeNil()
  13769. return
  13770. }
  13771. ee, esep := e.e, e.hh.hasElemSeparators()
  13772. ee.WriteMapStart(len(v))
  13773. if e.h.Canonical {
  13774. v2 := make([]int64, len(v))
  13775. var i int
  13776. for k, _ := range v {
  13777. v2[i] = int64(k)
  13778. i++
  13779. }
  13780. sort.Sort(intSlice(v2))
  13781. if esep {
  13782. for _, k2 := range v2 {
  13783. ee.WriteMapElemKey()
  13784. ee.EncodeInt(int64(int64(k2)))
  13785. ee.WriteMapElemValue()
  13786. ee.EncodeFloat64(v[int64(k2)])
  13787. }
  13788. } else {
  13789. for _, k2 := range v2 {
  13790. ee.EncodeInt(int64(int64(k2)))
  13791. ee.EncodeFloat64(v[int64(k2)])
  13792. }
  13793. }
  13794. } else {
  13795. if esep {
  13796. for k2, v2 := range v {
  13797. ee.WriteMapElemKey()
  13798. ee.EncodeInt(int64(k2))
  13799. ee.WriteMapElemValue()
  13800. ee.EncodeFloat64(v2)
  13801. }
  13802. } else {
  13803. for k2, v2 := range v {
  13804. ee.EncodeInt(int64(k2))
  13805. ee.EncodeFloat64(v2)
  13806. }
  13807. }
  13808. }
  13809. ee.WriteMapEnd()
  13810. }
  13811. func (e *Encoder) fastpathEncMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  13812. fastpathTV.EncMapInt64BoolV(rv2i(rv).(map[int64]bool), e)
  13813. }
  13814. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, e *Encoder) {
  13815. if v == nil {
  13816. e.e.EncodeNil()
  13817. return
  13818. }
  13819. ee, esep := e.e, e.hh.hasElemSeparators()
  13820. ee.WriteMapStart(len(v))
  13821. if e.h.Canonical {
  13822. v2 := make([]int64, len(v))
  13823. var i int
  13824. for k, _ := range v {
  13825. v2[i] = int64(k)
  13826. i++
  13827. }
  13828. sort.Sort(intSlice(v2))
  13829. if esep {
  13830. for _, k2 := range v2 {
  13831. ee.WriteMapElemKey()
  13832. ee.EncodeInt(int64(int64(k2)))
  13833. ee.WriteMapElemValue()
  13834. ee.EncodeBool(v[int64(k2)])
  13835. }
  13836. } else {
  13837. for _, k2 := range v2 {
  13838. ee.EncodeInt(int64(int64(k2)))
  13839. ee.EncodeBool(v[int64(k2)])
  13840. }
  13841. }
  13842. } else {
  13843. if esep {
  13844. for k2, v2 := range v {
  13845. ee.WriteMapElemKey()
  13846. ee.EncodeInt(int64(k2))
  13847. ee.WriteMapElemValue()
  13848. ee.EncodeBool(v2)
  13849. }
  13850. } else {
  13851. for k2, v2 := range v {
  13852. ee.EncodeInt(int64(k2))
  13853. ee.EncodeBool(v2)
  13854. }
  13855. }
  13856. }
  13857. ee.WriteMapEnd()
  13858. }
  13859. func (e *Encoder) fastpathEncMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  13860. fastpathTV.EncMapBoolIntfV(rv2i(rv).(map[bool]interface{}), e)
  13861. }
  13862. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, e *Encoder) {
  13863. if v == nil {
  13864. e.e.EncodeNil()
  13865. return
  13866. }
  13867. ee, esep := e.e, e.hh.hasElemSeparators()
  13868. ee.WriteMapStart(len(v))
  13869. if e.h.Canonical {
  13870. v2 := make([]bool, len(v))
  13871. var i int
  13872. for k, _ := range v {
  13873. v2[i] = bool(k)
  13874. i++
  13875. }
  13876. sort.Sort(boolSlice(v2))
  13877. if esep {
  13878. for _, k2 := range v2 {
  13879. ee.WriteMapElemKey()
  13880. ee.EncodeBool(bool(k2))
  13881. ee.WriteMapElemValue()
  13882. e.encode(v[bool(k2)])
  13883. }
  13884. } else {
  13885. for _, k2 := range v2 {
  13886. ee.EncodeBool(bool(k2))
  13887. e.encode(v[bool(k2)])
  13888. }
  13889. }
  13890. } else {
  13891. if esep {
  13892. for k2, v2 := range v {
  13893. ee.WriteMapElemKey()
  13894. ee.EncodeBool(k2)
  13895. ee.WriteMapElemValue()
  13896. e.encode(v2)
  13897. }
  13898. } else {
  13899. for k2, v2 := range v {
  13900. ee.EncodeBool(k2)
  13901. e.encode(v2)
  13902. }
  13903. }
  13904. }
  13905. ee.WriteMapEnd()
  13906. }
  13907. func (e *Encoder) fastpathEncMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  13908. fastpathTV.EncMapBoolStringV(rv2i(rv).(map[bool]string), e)
  13909. }
  13910. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, e *Encoder) {
  13911. if v == nil {
  13912. e.e.EncodeNil()
  13913. return
  13914. }
  13915. ee, esep := e.e, e.hh.hasElemSeparators()
  13916. ee.WriteMapStart(len(v))
  13917. if e.h.Canonical {
  13918. v2 := make([]bool, len(v))
  13919. var i int
  13920. for k, _ := range v {
  13921. v2[i] = bool(k)
  13922. i++
  13923. }
  13924. sort.Sort(boolSlice(v2))
  13925. if esep {
  13926. for _, k2 := range v2 {
  13927. ee.WriteMapElemKey()
  13928. ee.EncodeBool(bool(k2))
  13929. ee.WriteMapElemValue()
  13930. ee.EncodeString(cUTF8, v[bool(k2)])
  13931. }
  13932. } else {
  13933. for _, k2 := range v2 {
  13934. ee.EncodeBool(bool(k2))
  13935. ee.EncodeString(cUTF8, v[bool(k2)])
  13936. }
  13937. }
  13938. } else {
  13939. if esep {
  13940. for k2, v2 := range v {
  13941. ee.WriteMapElemKey()
  13942. ee.EncodeBool(k2)
  13943. ee.WriteMapElemValue()
  13944. ee.EncodeString(cUTF8, v2)
  13945. }
  13946. } else {
  13947. for k2, v2 := range v {
  13948. ee.EncodeBool(k2)
  13949. ee.EncodeString(cUTF8, v2)
  13950. }
  13951. }
  13952. }
  13953. ee.WriteMapEnd()
  13954. }
  13955. func (e *Encoder) fastpathEncMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  13956. fastpathTV.EncMapBoolUintV(rv2i(rv).(map[bool]uint), e)
  13957. }
  13958. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, e *Encoder) {
  13959. if v == nil {
  13960. e.e.EncodeNil()
  13961. return
  13962. }
  13963. ee, esep := e.e, e.hh.hasElemSeparators()
  13964. ee.WriteMapStart(len(v))
  13965. if e.h.Canonical {
  13966. v2 := make([]bool, len(v))
  13967. var i int
  13968. for k, _ := range v {
  13969. v2[i] = bool(k)
  13970. i++
  13971. }
  13972. sort.Sort(boolSlice(v2))
  13973. if esep {
  13974. for _, k2 := range v2 {
  13975. ee.WriteMapElemKey()
  13976. ee.EncodeBool(bool(k2))
  13977. ee.WriteMapElemValue()
  13978. ee.EncodeUint(uint64(v[bool(k2)]))
  13979. }
  13980. } else {
  13981. for _, k2 := range v2 {
  13982. ee.EncodeBool(bool(k2))
  13983. ee.EncodeUint(uint64(v[bool(k2)]))
  13984. }
  13985. }
  13986. } else {
  13987. if esep {
  13988. for k2, v2 := range v {
  13989. ee.WriteMapElemKey()
  13990. ee.EncodeBool(k2)
  13991. ee.WriteMapElemValue()
  13992. ee.EncodeUint(uint64(v2))
  13993. }
  13994. } else {
  13995. for k2, v2 := range v {
  13996. ee.EncodeBool(k2)
  13997. ee.EncodeUint(uint64(v2))
  13998. }
  13999. }
  14000. }
  14001. ee.WriteMapEnd()
  14002. }
  14003. func (e *Encoder) fastpathEncMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  14004. fastpathTV.EncMapBoolUint8V(rv2i(rv).(map[bool]uint8), e)
  14005. }
  14006. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, e *Encoder) {
  14007. if v == nil {
  14008. e.e.EncodeNil()
  14009. return
  14010. }
  14011. ee, esep := e.e, e.hh.hasElemSeparators()
  14012. ee.WriteMapStart(len(v))
  14013. if e.h.Canonical {
  14014. v2 := make([]bool, len(v))
  14015. var i int
  14016. for k, _ := range v {
  14017. v2[i] = bool(k)
  14018. i++
  14019. }
  14020. sort.Sort(boolSlice(v2))
  14021. if esep {
  14022. for _, k2 := range v2 {
  14023. ee.WriteMapElemKey()
  14024. ee.EncodeBool(bool(k2))
  14025. ee.WriteMapElemValue()
  14026. ee.EncodeUint(uint64(v[bool(k2)]))
  14027. }
  14028. } else {
  14029. for _, k2 := range v2 {
  14030. ee.EncodeBool(bool(k2))
  14031. ee.EncodeUint(uint64(v[bool(k2)]))
  14032. }
  14033. }
  14034. } else {
  14035. if esep {
  14036. for k2, v2 := range v {
  14037. ee.WriteMapElemKey()
  14038. ee.EncodeBool(k2)
  14039. ee.WriteMapElemValue()
  14040. ee.EncodeUint(uint64(v2))
  14041. }
  14042. } else {
  14043. for k2, v2 := range v {
  14044. ee.EncodeBool(k2)
  14045. ee.EncodeUint(uint64(v2))
  14046. }
  14047. }
  14048. }
  14049. ee.WriteMapEnd()
  14050. }
  14051. func (e *Encoder) fastpathEncMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  14052. fastpathTV.EncMapBoolUint16V(rv2i(rv).(map[bool]uint16), e)
  14053. }
  14054. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, e *Encoder) {
  14055. if v == nil {
  14056. e.e.EncodeNil()
  14057. return
  14058. }
  14059. ee, esep := e.e, e.hh.hasElemSeparators()
  14060. ee.WriteMapStart(len(v))
  14061. if e.h.Canonical {
  14062. v2 := make([]bool, len(v))
  14063. var i int
  14064. for k, _ := range v {
  14065. v2[i] = bool(k)
  14066. i++
  14067. }
  14068. sort.Sort(boolSlice(v2))
  14069. if esep {
  14070. for _, k2 := range v2 {
  14071. ee.WriteMapElemKey()
  14072. ee.EncodeBool(bool(k2))
  14073. ee.WriteMapElemValue()
  14074. ee.EncodeUint(uint64(v[bool(k2)]))
  14075. }
  14076. } else {
  14077. for _, k2 := range v2 {
  14078. ee.EncodeBool(bool(k2))
  14079. ee.EncodeUint(uint64(v[bool(k2)]))
  14080. }
  14081. }
  14082. } else {
  14083. if esep {
  14084. for k2, v2 := range v {
  14085. ee.WriteMapElemKey()
  14086. ee.EncodeBool(k2)
  14087. ee.WriteMapElemValue()
  14088. ee.EncodeUint(uint64(v2))
  14089. }
  14090. } else {
  14091. for k2, v2 := range v {
  14092. ee.EncodeBool(k2)
  14093. ee.EncodeUint(uint64(v2))
  14094. }
  14095. }
  14096. }
  14097. ee.WriteMapEnd()
  14098. }
  14099. func (e *Encoder) fastpathEncMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  14100. fastpathTV.EncMapBoolUint32V(rv2i(rv).(map[bool]uint32), e)
  14101. }
  14102. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, e *Encoder) {
  14103. if v == nil {
  14104. e.e.EncodeNil()
  14105. return
  14106. }
  14107. ee, esep := e.e, e.hh.hasElemSeparators()
  14108. ee.WriteMapStart(len(v))
  14109. if e.h.Canonical {
  14110. v2 := make([]bool, len(v))
  14111. var i int
  14112. for k, _ := range v {
  14113. v2[i] = bool(k)
  14114. i++
  14115. }
  14116. sort.Sort(boolSlice(v2))
  14117. if esep {
  14118. for _, k2 := range v2 {
  14119. ee.WriteMapElemKey()
  14120. ee.EncodeBool(bool(k2))
  14121. ee.WriteMapElemValue()
  14122. ee.EncodeUint(uint64(v[bool(k2)]))
  14123. }
  14124. } else {
  14125. for _, k2 := range v2 {
  14126. ee.EncodeBool(bool(k2))
  14127. ee.EncodeUint(uint64(v[bool(k2)]))
  14128. }
  14129. }
  14130. } else {
  14131. if esep {
  14132. for k2, v2 := range v {
  14133. ee.WriteMapElemKey()
  14134. ee.EncodeBool(k2)
  14135. ee.WriteMapElemValue()
  14136. ee.EncodeUint(uint64(v2))
  14137. }
  14138. } else {
  14139. for k2, v2 := range v {
  14140. ee.EncodeBool(k2)
  14141. ee.EncodeUint(uint64(v2))
  14142. }
  14143. }
  14144. }
  14145. ee.WriteMapEnd()
  14146. }
  14147. func (e *Encoder) fastpathEncMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  14148. fastpathTV.EncMapBoolUint64V(rv2i(rv).(map[bool]uint64), e)
  14149. }
  14150. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, e *Encoder) {
  14151. if v == nil {
  14152. e.e.EncodeNil()
  14153. return
  14154. }
  14155. ee, esep := e.e, e.hh.hasElemSeparators()
  14156. ee.WriteMapStart(len(v))
  14157. if e.h.Canonical {
  14158. v2 := make([]bool, len(v))
  14159. var i int
  14160. for k, _ := range v {
  14161. v2[i] = bool(k)
  14162. i++
  14163. }
  14164. sort.Sort(boolSlice(v2))
  14165. if esep {
  14166. for _, k2 := range v2 {
  14167. ee.WriteMapElemKey()
  14168. ee.EncodeBool(bool(k2))
  14169. ee.WriteMapElemValue()
  14170. ee.EncodeUint(uint64(v[bool(k2)]))
  14171. }
  14172. } else {
  14173. for _, k2 := range v2 {
  14174. ee.EncodeBool(bool(k2))
  14175. ee.EncodeUint(uint64(v[bool(k2)]))
  14176. }
  14177. }
  14178. } else {
  14179. if esep {
  14180. for k2, v2 := range v {
  14181. ee.WriteMapElemKey()
  14182. ee.EncodeBool(k2)
  14183. ee.WriteMapElemValue()
  14184. ee.EncodeUint(uint64(v2))
  14185. }
  14186. } else {
  14187. for k2, v2 := range v {
  14188. ee.EncodeBool(k2)
  14189. ee.EncodeUint(uint64(v2))
  14190. }
  14191. }
  14192. }
  14193. ee.WriteMapEnd()
  14194. }
  14195. func (e *Encoder) fastpathEncMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  14196. fastpathTV.EncMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), e)
  14197. }
  14198. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, e *Encoder) {
  14199. if v == nil {
  14200. e.e.EncodeNil()
  14201. return
  14202. }
  14203. ee, esep := e.e, e.hh.hasElemSeparators()
  14204. ee.WriteMapStart(len(v))
  14205. if e.h.Canonical {
  14206. v2 := make([]bool, len(v))
  14207. var i int
  14208. for k, _ := range v {
  14209. v2[i] = bool(k)
  14210. i++
  14211. }
  14212. sort.Sort(boolSlice(v2))
  14213. if esep {
  14214. for _, k2 := range v2 {
  14215. ee.WriteMapElemKey()
  14216. ee.EncodeBool(bool(k2))
  14217. ee.WriteMapElemValue()
  14218. e.encode(v[bool(k2)])
  14219. }
  14220. } else {
  14221. for _, k2 := range v2 {
  14222. ee.EncodeBool(bool(k2))
  14223. e.encode(v[bool(k2)])
  14224. }
  14225. }
  14226. } else {
  14227. if esep {
  14228. for k2, v2 := range v {
  14229. ee.WriteMapElemKey()
  14230. ee.EncodeBool(k2)
  14231. ee.WriteMapElemValue()
  14232. e.encode(v2)
  14233. }
  14234. } else {
  14235. for k2, v2 := range v {
  14236. ee.EncodeBool(k2)
  14237. e.encode(v2)
  14238. }
  14239. }
  14240. }
  14241. ee.WriteMapEnd()
  14242. }
  14243. func (e *Encoder) fastpathEncMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  14244. fastpathTV.EncMapBoolIntV(rv2i(rv).(map[bool]int), e)
  14245. }
  14246. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, e *Encoder) {
  14247. if v == nil {
  14248. e.e.EncodeNil()
  14249. return
  14250. }
  14251. ee, esep := e.e, e.hh.hasElemSeparators()
  14252. ee.WriteMapStart(len(v))
  14253. if e.h.Canonical {
  14254. v2 := make([]bool, len(v))
  14255. var i int
  14256. for k, _ := range v {
  14257. v2[i] = bool(k)
  14258. i++
  14259. }
  14260. sort.Sort(boolSlice(v2))
  14261. if esep {
  14262. for _, k2 := range v2 {
  14263. ee.WriteMapElemKey()
  14264. ee.EncodeBool(bool(k2))
  14265. ee.WriteMapElemValue()
  14266. ee.EncodeInt(int64(v[bool(k2)]))
  14267. }
  14268. } else {
  14269. for _, k2 := range v2 {
  14270. ee.EncodeBool(bool(k2))
  14271. ee.EncodeInt(int64(v[bool(k2)]))
  14272. }
  14273. }
  14274. } else {
  14275. if esep {
  14276. for k2, v2 := range v {
  14277. ee.WriteMapElemKey()
  14278. ee.EncodeBool(k2)
  14279. ee.WriteMapElemValue()
  14280. ee.EncodeInt(int64(v2))
  14281. }
  14282. } else {
  14283. for k2, v2 := range v {
  14284. ee.EncodeBool(k2)
  14285. ee.EncodeInt(int64(v2))
  14286. }
  14287. }
  14288. }
  14289. ee.WriteMapEnd()
  14290. }
  14291. func (e *Encoder) fastpathEncMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  14292. fastpathTV.EncMapBoolInt8V(rv2i(rv).(map[bool]int8), e)
  14293. }
  14294. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, e *Encoder) {
  14295. if v == nil {
  14296. e.e.EncodeNil()
  14297. return
  14298. }
  14299. ee, esep := e.e, e.hh.hasElemSeparators()
  14300. ee.WriteMapStart(len(v))
  14301. if e.h.Canonical {
  14302. v2 := make([]bool, len(v))
  14303. var i int
  14304. for k, _ := range v {
  14305. v2[i] = bool(k)
  14306. i++
  14307. }
  14308. sort.Sort(boolSlice(v2))
  14309. if esep {
  14310. for _, k2 := range v2 {
  14311. ee.WriteMapElemKey()
  14312. ee.EncodeBool(bool(k2))
  14313. ee.WriteMapElemValue()
  14314. ee.EncodeInt(int64(v[bool(k2)]))
  14315. }
  14316. } else {
  14317. for _, k2 := range v2 {
  14318. ee.EncodeBool(bool(k2))
  14319. ee.EncodeInt(int64(v[bool(k2)]))
  14320. }
  14321. }
  14322. } else {
  14323. if esep {
  14324. for k2, v2 := range v {
  14325. ee.WriteMapElemKey()
  14326. ee.EncodeBool(k2)
  14327. ee.WriteMapElemValue()
  14328. ee.EncodeInt(int64(v2))
  14329. }
  14330. } else {
  14331. for k2, v2 := range v {
  14332. ee.EncodeBool(k2)
  14333. ee.EncodeInt(int64(v2))
  14334. }
  14335. }
  14336. }
  14337. ee.WriteMapEnd()
  14338. }
  14339. func (e *Encoder) fastpathEncMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  14340. fastpathTV.EncMapBoolInt16V(rv2i(rv).(map[bool]int16), e)
  14341. }
  14342. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, e *Encoder) {
  14343. if v == nil {
  14344. e.e.EncodeNil()
  14345. return
  14346. }
  14347. ee, esep := e.e, e.hh.hasElemSeparators()
  14348. ee.WriteMapStart(len(v))
  14349. if e.h.Canonical {
  14350. v2 := make([]bool, len(v))
  14351. var i int
  14352. for k, _ := range v {
  14353. v2[i] = bool(k)
  14354. i++
  14355. }
  14356. sort.Sort(boolSlice(v2))
  14357. if esep {
  14358. for _, k2 := range v2 {
  14359. ee.WriteMapElemKey()
  14360. ee.EncodeBool(bool(k2))
  14361. ee.WriteMapElemValue()
  14362. ee.EncodeInt(int64(v[bool(k2)]))
  14363. }
  14364. } else {
  14365. for _, k2 := range v2 {
  14366. ee.EncodeBool(bool(k2))
  14367. ee.EncodeInt(int64(v[bool(k2)]))
  14368. }
  14369. }
  14370. } else {
  14371. if esep {
  14372. for k2, v2 := range v {
  14373. ee.WriteMapElemKey()
  14374. ee.EncodeBool(k2)
  14375. ee.WriteMapElemValue()
  14376. ee.EncodeInt(int64(v2))
  14377. }
  14378. } else {
  14379. for k2, v2 := range v {
  14380. ee.EncodeBool(k2)
  14381. ee.EncodeInt(int64(v2))
  14382. }
  14383. }
  14384. }
  14385. ee.WriteMapEnd()
  14386. }
  14387. func (e *Encoder) fastpathEncMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  14388. fastpathTV.EncMapBoolInt32V(rv2i(rv).(map[bool]int32), e)
  14389. }
  14390. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, e *Encoder) {
  14391. if v == nil {
  14392. e.e.EncodeNil()
  14393. return
  14394. }
  14395. ee, esep := e.e, e.hh.hasElemSeparators()
  14396. ee.WriteMapStart(len(v))
  14397. if e.h.Canonical {
  14398. v2 := make([]bool, len(v))
  14399. var i int
  14400. for k, _ := range v {
  14401. v2[i] = bool(k)
  14402. i++
  14403. }
  14404. sort.Sort(boolSlice(v2))
  14405. if esep {
  14406. for _, k2 := range v2 {
  14407. ee.WriteMapElemKey()
  14408. ee.EncodeBool(bool(k2))
  14409. ee.WriteMapElemValue()
  14410. ee.EncodeInt(int64(v[bool(k2)]))
  14411. }
  14412. } else {
  14413. for _, k2 := range v2 {
  14414. ee.EncodeBool(bool(k2))
  14415. ee.EncodeInt(int64(v[bool(k2)]))
  14416. }
  14417. }
  14418. } else {
  14419. if esep {
  14420. for k2, v2 := range v {
  14421. ee.WriteMapElemKey()
  14422. ee.EncodeBool(k2)
  14423. ee.WriteMapElemValue()
  14424. ee.EncodeInt(int64(v2))
  14425. }
  14426. } else {
  14427. for k2, v2 := range v {
  14428. ee.EncodeBool(k2)
  14429. ee.EncodeInt(int64(v2))
  14430. }
  14431. }
  14432. }
  14433. ee.WriteMapEnd()
  14434. }
  14435. func (e *Encoder) fastpathEncMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  14436. fastpathTV.EncMapBoolInt64V(rv2i(rv).(map[bool]int64), e)
  14437. }
  14438. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, e *Encoder) {
  14439. if v == nil {
  14440. e.e.EncodeNil()
  14441. return
  14442. }
  14443. ee, esep := e.e, e.hh.hasElemSeparators()
  14444. ee.WriteMapStart(len(v))
  14445. if e.h.Canonical {
  14446. v2 := make([]bool, len(v))
  14447. var i int
  14448. for k, _ := range v {
  14449. v2[i] = bool(k)
  14450. i++
  14451. }
  14452. sort.Sort(boolSlice(v2))
  14453. if esep {
  14454. for _, k2 := range v2 {
  14455. ee.WriteMapElemKey()
  14456. ee.EncodeBool(bool(k2))
  14457. ee.WriteMapElemValue()
  14458. ee.EncodeInt(int64(v[bool(k2)]))
  14459. }
  14460. } else {
  14461. for _, k2 := range v2 {
  14462. ee.EncodeBool(bool(k2))
  14463. ee.EncodeInt(int64(v[bool(k2)]))
  14464. }
  14465. }
  14466. } else {
  14467. if esep {
  14468. for k2, v2 := range v {
  14469. ee.WriteMapElemKey()
  14470. ee.EncodeBool(k2)
  14471. ee.WriteMapElemValue()
  14472. ee.EncodeInt(int64(v2))
  14473. }
  14474. } else {
  14475. for k2, v2 := range v {
  14476. ee.EncodeBool(k2)
  14477. ee.EncodeInt(int64(v2))
  14478. }
  14479. }
  14480. }
  14481. ee.WriteMapEnd()
  14482. }
  14483. func (e *Encoder) fastpathEncMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  14484. fastpathTV.EncMapBoolFloat32V(rv2i(rv).(map[bool]float32), e)
  14485. }
  14486. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, e *Encoder) {
  14487. if v == nil {
  14488. e.e.EncodeNil()
  14489. return
  14490. }
  14491. ee, esep := e.e, e.hh.hasElemSeparators()
  14492. ee.WriteMapStart(len(v))
  14493. if e.h.Canonical {
  14494. v2 := make([]bool, len(v))
  14495. var i int
  14496. for k, _ := range v {
  14497. v2[i] = bool(k)
  14498. i++
  14499. }
  14500. sort.Sort(boolSlice(v2))
  14501. if esep {
  14502. for _, k2 := range v2 {
  14503. ee.WriteMapElemKey()
  14504. ee.EncodeBool(bool(k2))
  14505. ee.WriteMapElemValue()
  14506. ee.EncodeFloat32(v[bool(k2)])
  14507. }
  14508. } else {
  14509. for _, k2 := range v2 {
  14510. ee.EncodeBool(bool(k2))
  14511. ee.EncodeFloat32(v[bool(k2)])
  14512. }
  14513. }
  14514. } else {
  14515. if esep {
  14516. for k2, v2 := range v {
  14517. ee.WriteMapElemKey()
  14518. ee.EncodeBool(k2)
  14519. ee.WriteMapElemValue()
  14520. ee.EncodeFloat32(v2)
  14521. }
  14522. } else {
  14523. for k2, v2 := range v {
  14524. ee.EncodeBool(k2)
  14525. ee.EncodeFloat32(v2)
  14526. }
  14527. }
  14528. }
  14529. ee.WriteMapEnd()
  14530. }
  14531. func (e *Encoder) fastpathEncMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  14532. fastpathTV.EncMapBoolFloat64V(rv2i(rv).(map[bool]float64), e)
  14533. }
  14534. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, e *Encoder) {
  14535. if v == nil {
  14536. e.e.EncodeNil()
  14537. return
  14538. }
  14539. ee, esep := e.e, e.hh.hasElemSeparators()
  14540. ee.WriteMapStart(len(v))
  14541. if e.h.Canonical {
  14542. v2 := make([]bool, len(v))
  14543. var i int
  14544. for k, _ := range v {
  14545. v2[i] = bool(k)
  14546. i++
  14547. }
  14548. sort.Sort(boolSlice(v2))
  14549. if esep {
  14550. for _, k2 := range v2 {
  14551. ee.WriteMapElemKey()
  14552. ee.EncodeBool(bool(k2))
  14553. ee.WriteMapElemValue()
  14554. ee.EncodeFloat64(v[bool(k2)])
  14555. }
  14556. } else {
  14557. for _, k2 := range v2 {
  14558. ee.EncodeBool(bool(k2))
  14559. ee.EncodeFloat64(v[bool(k2)])
  14560. }
  14561. }
  14562. } else {
  14563. if esep {
  14564. for k2, v2 := range v {
  14565. ee.WriteMapElemKey()
  14566. ee.EncodeBool(k2)
  14567. ee.WriteMapElemValue()
  14568. ee.EncodeFloat64(v2)
  14569. }
  14570. } else {
  14571. for k2, v2 := range v {
  14572. ee.EncodeBool(k2)
  14573. ee.EncodeFloat64(v2)
  14574. }
  14575. }
  14576. }
  14577. ee.WriteMapEnd()
  14578. }
  14579. func (e *Encoder) fastpathEncMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  14580. fastpathTV.EncMapBoolBoolV(rv2i(rv).(map[bool]bool), e)
  14581. }
  14582. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, e *Encoder) {
  14583. if v == nil {
  14584. e.e.EncodeNil()
  14585. return
  14586. }
  14587. ee, esep := e.e, e.hh.hasElemSeparators()
  14588. ee.WriteMapStart(len(v))
  14589. if e.h.Canonical {
  14590. v2 := make([]bool, len(v))
  14591. var i int
  14592. for k, _ := range v {
  14593. v2[i] = bool(k)
  14594. i++
  14595. }
  14596. sort.Sort(boolSlice(v2))
  14597. if esep {
  14598. for _, k2 := range v2 {
  14599. ee.WriteMapElemKey()
  14600. ee.EncodeBool(bool(k2))
  14601. ee.WriteMapElemValue()
  14602. ee.EncodeBool(v[bool(k2)])
  14603. }
  14604. } else {
  14605. for _, k2 := range v2 {
  14606. ee.EncodeBool(bool(k2))
  14607. ee.EncodeBool(v[bool(k2)])
  14608. }
  14609. }
  14610. } else {
  14611. if esep {
  14612. for k2, v2 := range v {
  14613. ee.WriteMapElemKey()
  14614. ee.EncodeBool(k2)
  14615. ee.WriteMapElemValue()
  14616. ee.EncodeBool(v2)
  14617. }
  14618. } else {
  14619. for k2, v2 := range v {
  14620. ee.EncodeBool(k2)
  14621. ee.EncodeBool(v2)
  14622. }
  14623. }
  14624. }
  14625. ee.WriteMapEnd()
  14626. }
  14627. // -- decode
  14628. // -- -- fast path type switch
  14629. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  14630. var changed bool
  14631. switch v := iv.(type) {
  14632. case []interface{}:
  14633. var v2 []interface{}
  14634. v2, changed = fastpathTV.DecSliceIntfV(v, false, d)
  14635. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14636. copy(v, v2)
  14637. }
  14638. case *[]interface{}:
  14639. var v2 []interface{}
  14640. v2, changed = fastpathTV.DecSliceIntfV(*v, true, d)
  14641. if changed {
  14642. *v = v2
  14643. }
  14644. case []string:
  14645. var v2 []string
  14646. v2, changed = fastpathTV.DecSliceStringV(v, false, d)
  14647. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14648. copy(v, v2)
  14649. }
  14650. case *[]string:
  14651. var v2 []string
  14652. v2, changed = fastpathTV.DecSliceStringV(*v, true, d)
  14653. if changed {
  14654. *v = v2
  14655. }
  14656. case []float32:
  14657. var v2 []float32
  14658. v2, changed = fastpathTV.DecSliceFloat32V(v, false, d)
  14659. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14660. copy(v, v2)
  14661. }
  14662. case *[]float32:
  14663. var v2 []float32
  14664. v2, changed = fastpathTV.DecSliceFloat32V(*v, true, d)
  14665. if changed {
  14666. *v = v2
  14667. }
  14668. case []float64:
  14669. var v2 []float64
  14670. v2, changed = fastpathTV.DecSliceFloat64V(v, false, d)
  14671. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14672. copy(v, v2)
  14673. }
  14674. case *[]float64:
  14675. var v2 []float64
  14676. v2, changed = fastpathTV.DecSliceFloat64V(*v, true, d)
  14677. if changed {
  14678. *v = v2
  14679. }
  14680. case []uint:
  14681. var v2 []uint
  14682. v2, changed = fastpathTV.DecSliceUintV(v, false, d)
  14683. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14684. copy(v, v2)
  14685. }
  14686. case *[]uint:
  14687. var v2 []uint
  14688. v2, changed = fastpathTV.DecSliceUintV(*v, true, d)
  14689. if changed {
  14690. *v = v2
  14691. }
  14692. case []uint16:
  14693. var v2 []uint16
  14694. v2, changed = fastpathTV.DecSliceUint16V(v, false, d)
  14695. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14696. copy(v, v2)
  14697. }
  14698. case *[]uint16:
  14699. var v2 []uint16
  14700. v2, changed = fastpathTV.DecSliceUint16V(*v, true, d)
  14701. if changed {
  14702. *v = v2
  14703. }
  14704. case []uint32:
  14705. var v2 []uint32
  14706. v2, changed = fastpathTV.DecSliceUint32V(v, false, d)
  14707. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14708. copy(v, v2)
  14709. }
  14710. case *[]uint32:
  14711. var v2 []uint32
  14712. v2, changed = fastpathTV.DecSliceUint32V(*v, true, d)
  14713. if changed {
  14714. *v = v2
  14715. }
  14716. case []uint64:
  14717. var v2 []uint64
  14718. v2, changed = fastpathTV.DecSliceUint64V(v, false, d)
  14719. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14720. copy(v, v2)
  14721. }
  14722. case *[]uint64:
  14723. var v2 []uint64
  14724. v2, changed = fastpathTV.DecSliceUint64V(*v, true, d)
  14725. if changed {
  14726. *v = v2
  14727. }
  14728. case []uintptr:
  14729. var v2 []uintptr
  14730. v2, changed = fastpathTV.DecSliceUintptrV(v, false, d)
  14731. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14732. copy(v, v2)
  14733. }
  14734. case *[]uintptr:
  14735. var v2 []uintptr
  14736. v2, changed = fastpathTV.DecSliceUintptrV(*v, true, d)
  14737. if changed {
  14738. *v = v2
  14739. }
  14740. case []int:
  14741. var v2 []int
  14742. v2, changed = fastpathTV.DecSliceIntV(v, false, d)
  14743. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14744. copy(v, v2)
  14745. }
  14746. case *[]int:
  14747. var v2 []int
  14748. v2, changed = fastpathTV.DecSliceIntV(*v, true, d)
  14749. if changed {
  14750. *v = v2
  14751. }
  14752. case []int8:
  14753. var v2 []int8
  14754. v2, changed = fastpathTV.DecSliceInt8V(v, false, d)
  14755. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14756. copy(v, v2)
  14757. }
  14758. case *[]int8:
  14759. var v2 []int8
  14760. v2, changed = fastpathTV.DecSliceInt8V(*v, true, d)
  14761. if changed {
  14762. *v = v2
  14763. }
  14764. case []int16:
  14765. var v2 []int16
  14766. v2, changed = fastpathTV.DecSliceInt16V(v, false, d)
  14767. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14768. copy(v, v2)
  14769. }
  14770. case *[]int16:
  14771. var v2 []int16
  14772. v2, changed = fastpathTV.DecSliceInt16V(*v, true, d)
  14773. if changed {
  14774. *v = v2
  14775. }
  14776. case []int32:
  14777. var v2 []int32
  14778. v2, changed = fastpathTV.DecSliceInt32V(v, false, d)
  14779. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14780. copy(v, v2)
  14781. }
  14782. case *[]int32:
  14783. var v2 []int32
  14784. v2, changed = fastpathTV.DecSliceInt32V(*v, true, d)
  14785. if changed {
  14786. *v = v2
  14787. }
  14788. case []int64:
  14789. var v2 []int64
  14790. v2, changed = fastpathTV.DecSliceInt64V(v, false, d)
  14791. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14792. copy(v, v2)
  14793. }
  14794. case *[]int64:
  14795. var v2 []int64
  14796. v2, changed = fastpathTV.DecSliceInt64V(*v, true, d)
  14797. if changed {
  14798. *v = v2
  14799. }
  14800. case []bool:
  14801. var v2 []bool
  14802. v2, changed = fastpathTV.DecSliceBoolV(v, false, d)
  14803. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14804. copy(v, v2)
  14805. }
  14806. case *[]bool:
  14807. var v2 []bool
  14808. v2, changed = fastpathTV.DecSliceBoolV(*v, true, d)
  14809. if changed {
  14810. *v = v2
  14811. }
  14812. case map[interface{}]interface{}:
  14813. fastpathTV.DecMapIntfIntfV(v, false, d)
  14814. case *map[interface{}]interface{}:
  14815. var v2 map[interface{}]interface{}
  14816. v2, changed = fastpathTV.DecMapIntfIntfV(*v, true, d)
  14817. if changed {
  14818. *v = v2
  14819. }
  14820. case map[interface{}]string:
  14821. fastpathTV.DecMapIntfStringV(v, false, d)
  14822. case *map[interface{}]string:
  14823. var v2 map[interface{}]string
  14824. v2, changed = fastpathTV.DecMapIntfStringV(*v, true, d)
  14825. if changed {
  14826. *v = v2
  14827. }
  14828. case map[interface{}]uint:
  14829. fastpathTV.DecMapIntfUintV(v, false, d)
  14830. case *map[interface{}]uint:
  14831. var v2 map[interface{}]uint
  14832. v2, changed = fastpathTV.DecMapIntfUintV(*v, true, d)
  14833. if changed {
  14834. *v = v2
  14835. }
  14836. case map[interface{}]uint8:
  14837. fastpathTV.DecMapIntfUint8V(v, false, d)
  14838. case *map[interface{}]uint8:
  14839. var v2 map[interface{}]uint8
  14840. v2, changed = fastpathTV.DecMapIntfUint8V(*v, true, d)
  14841. if changed {
  14842. *v = v2
  14843. }
  14844. case map[interface{}]uint16:
  14845. fastpathTV.DecMapIntfUint16V(v, false, d)
  14846. case *map[interface{}]uint16:
  14847. var v2 map[interface{}]uint16
  14848. v2, changed = fastpathTV.DecMapIntfUint16V(*v, true, d)
  14849. if changed {
  14850. *v = v2
  14851. }
  14852. case map[interface{}]uint32:
  14853. fastpathTV.DecMapIntfUint32V(v, false, d)
  14854. case *map[interface{}]uint32:
  14855. var v2 map[interface{}]uint32
  14856. v2, changed = fastpathTV.DecMapIntfUint32V(*v, true, d)
  14857. if changed {
  14858. *v = v2
  14859. }
  14860. case map[interface{}]uint64:
  14861. fastpathTV.DecMapIntfUint64V(v, false, d)
  14862. case *map[interface{}]uint64:
  14863. var v2 map[interface{}]uint64
  14864. v2, changed = fastpathTV.DecMapIntfUint64V(*v, true, d)
  14865. if changed {
  14866. *v = v2
  14867. }
  14868. case map[interface{}]uintptr:
  14869. fastpathTV.DecMapIntfUintptrV(v, false, d)
  14870. case *map[interface{}]uintptr:
  14871. var v2 map[interface{}]uintptr
  14872. v2, changed = fastpathTV.DecMapIntfUintptrV(*v, true, d)
  14873. if changed {
  14874. *v = v2
  14875. }
  14876. case map[interface{}]int:
  14877. fastpathTV.DecMapIntfIntV(v, false, d)
  14878. case *map[interface{}]int:
  14879. var v2 map[interface{}]int
  14880. v2, changed = fastpathTV.DecMapIntfIntV(*v, true, d)
  14881. if changed {
  14882. *v = v2
  14883. }
  14884. case map[interface{}]int8:
  14885. fastpathTV.DecMapIntfInt8V(v, false, d)
  14886. case *map[interface{}]int8:
  14887. var v2 map[interface{}]int8
  14888. v2, changed = fastpathTV.DecMapIntfInt8V(*v, true, d)
  14889. if changed {
  14890. *v = v2
  14891. }
  14892. case map[interface{}]int16:
  14893. fastpathTV.DecMapIntfInt16V(v, false, d)
  14894. case *map[interface{}]int16:
  14895. var v2 map[interface{}]int16
  14896. v2, changed = fastpathTV.DecMapIntfInt16V(*v, true, d)
  14897. if changed {
  14898. *v = v2
  14899. }
  14900. case map[interface{}]int32:
  14901. fastpathTV.DecMapIntfInt32V(v, false, d)
  14902. case *map[interface{}]int32:
  14903. var v2 map[interface{}]int32
  14904. v2, changed = fastpathTV.DecMapIntfInt32V(*v, true, d)
  14905. if changed {
  14906. *v = v2
  14907. }
  14908. case map[interface{}]int64:
  14909. fastpathTV.DecMapIntfInt64V(v, false, d)
  14910. case *map[interface{}]int64:
  14911. var v2 map[interface{}]int64
  14912. v2, changed = fastpathTV.DecMapIntfInt64V(*v, true, d)
  14913. if changed {
  14914. *v = v2
  14915. }
  14916. case map[interface{}]float32:
  14917. fastpathTV.DecMapIntfFloat32V(v, false, d)
  14918. case *map[interface{}]float32:
  14919. var v2 map[interface{}]float32
  14920. v2, changed = fastpathTV.DecMapIntfFloat32V(*v, true, d)
  14921. if changed {
  14922. *v = v2
  14923. }
  14924. case map[interface{}]float64:
  14925. fastpathTV.DecMapIntfFloat64V(v, false, d)
  14926. case *map[interface{}]float64:
  14927. var v2 map[interface{}]float64
  14928. v2, changed = fastpathTV.DecMapIntfFloat64V(*v, true, d)
  14929. if changed {
  14930. *v = v2
  14931. }
  14932. case map[interface{}]bool:
  14933. fastpathTV.DecMapIntfBoolV(v, false, d)
  14934. case *map[interface{}]bool:
  14935. var v2 map[interface{}]bool
  14936. v2, changed = fastpathTV.DecMapIntfBoolV(*v, true, d)
  14937. if changed {
  14938. *v = v2
  14939. }
  14940. case map[string]interface{}:
  14941. fastpathTV.DecMapStringIntfV(v, false, d)
  14942. case *map[string]interface{}:
  14943. var v2 map[string]interface{}
  14944. v2, changed = fastpathTV.DecMapStringIntfV(*v, true, d)
  14945. if changed {
  14946. *v = v2
  14947. }
  14948. case map[string]string:
  14949. fastpathTV.DecMapStringStringV(v, false, d)
  14950. case *map[string]string:
  14951. var v2 map[string]string
  14952. v2, changed = fastpathTV.DecMapStringStringV(*v, true, d)
  14953. if changed {
  14954. *v = v2
  14955. }
  14956. case map[string]uint:
  14957. fastpathTV.DecMapStringUintV(v, false, d)
  14958. case *map[string]uint:
  14959. var v2 map[string]uint
  14960. v2, changed = fastpathTV.DecMapStringUintV(*v, true, d)
  14961. if changed {
  14962. *v = v2
  14963. }
  14964. case map[string]uint8:
  14965. fastpathTV.DecMapStringUint8V(v, false, d)
  14966. case *map[string]uint8:
  14967. var v2 map[string]uint8
  14968. v2, changed = fastpathTV.DecMapStringUint8V(*v, true, d)
  14969. if changed {
  14970. *v = v2
  14971. }
  14972. case map[string]uint16:
  14973. fastpathTV.DecMapStringUint16V(v, false, d)
  14974. case *map[string]uint16:
  14975. var v2 map[string]uint16
  14976. v2, changed = fastpathTV.DecMapStringUint16V(*v, true, d)
  14977. if changed {
  14978. *v = v2
  14979. }
  14980. case map[string]uint32:
  14981. fastpathTV.DecMapStringUint32V(v, false, d)
  14982. case *map[string]uint32:
  14983. var v2 map[string]uint32
  14984. v2, changed = fastpathTV.DecMapStringUint32V(*v, true, d)
  14985. if changed {
  14986. *v = v2
  14987. }
  14988. case map[string]uint64:
  14989. fastpathTV.DecMapStringUint64V(v, false, d)
  14990. case *map[string]uint64:
  14991. var v2 map[string]uint64
  14992. v2, changed = fastpathTV.DecMapStringUint64V(*v, true, d)
  14993. if changed {
  14994. *v = v2
  14995. }
  14996. case map[string]uintptr:
  14997. fastpathTV.DecMapStringUintptrV(v, false, d)
  14998. case *map[string]uintptr:
  14999. var v2 map[string]uintptr
  15000. v2, changed = fastpathTV.DecMapStringUintptrV(*v, true, d)
  15001. if changed {
  15002. *v = v2
  15003. }
  15004. case map[string]int:
  15005. fastpathTV.DecMapStringIntV(v, false, d)
  15006. case *map[string]int:
  15007. var v2 map[string]int
  15008. v2, changed = fastpathTV.DecMapStringIntV(*v, true, d)
  15009. if changed {
  15010. *v = v2
  15011. }
  15012. case map[string]int8:
  15013. fastpathTV.DecMapStringInt8V(v, false, d)
  15014. case *map[string]int8:
  15015. var v2 map[string]int8
  15016. v2, changed = fastpathTV.DecMapStringInt8V(*v, true, d)
  15017. if changed {
  15018. *v = v2
  15019. }
  15020. case map[string]int16:
  15021. fastpathTV.DecMapStringInt16V(v, false, d)
  15022. case *map[string]int16:
  15023. var v2 map[string]int16
  15024. v2, changed = fastpathTV.DecMapStringInt16V(*v, true, d)
  15025. if changed {
  15026. *v = v2
  15027. }
  15028. case map[string]int32:
  15029. fastpathTV.DecMapStringInt32V(v, false, d)
  15030. case *map[string]int32:
  15031. var v2 map[string]int32
  15032. v2, changed = fastpathTV.DecMapStringInt32V(*v, true, d)
  15033. if changed {
  15034. *v = v2
  15035. }
  15036. case map[string]int64:
  15037. fastpathTV.DecMapStringInt64V(v, false, d)
  15038. case *map[string]int64:
  15039. var v2 map[string]int64
  15040. v2, changed = fastpathTV.DecMapStringInt64V(*v, true, d)
  15041. if changed {
  15042. *v = v2
  15043. }
  15044. case map[string]float32:
  15045. fastpathTV.DecMapStringFloat32V(v, false, d)
  15046. case *map[string]float32:
  15047. var v2 map[string]float32
  15048. v2, changed = fastpathTV.DecMapStringFloat32V(*v, true, d)
  15049. if changed {
  15050. *v = v2
  15051. }
  15052. case map[string]float64:
  15053. fastpathTV.DecMapStringFloat64V(v, false, d)
  15054. case *map[string]float64:
  15055. var v2 map[string]float64
  15056. v2, changed = fastpathTV.DecMapStringFloat64V(*v, true, d)
  15057. if changed {
  15058. *v = v2
  15059. }
  15060. case map[string]bool:
  15061. fastpathTV.DecMapStringBoolV(v, false, d)
  15062. case *map[string]bool:
  15063. var v2 map[string]bool
  15064. v2, changed = fastpathTV.DecMapStringBoolV(*v, true, d)
  15065. if changed {
  15066. *v = v2
  15067. }
  15068. case map[float32]interface{}:
  15069. fastpathTV.DecMapFloat32IntfV(v, false, d)
  15070. case *map[float32]interface{}:
  15071. var v2 map[float32]interface{}
  15072. v2, changed = fastpathTV.DecMapFloat32IntfV(*v, true, d)
  15073. if changed {
  15074. *v = v2
  15075. }
  15076. case map[float32]string:
  15077. fastpathTV.DecMapFloat32StringV(v, false, d)
  15078. case *map[float32]string:
  15079. var v2 map[float32]string
  15080. v2, changed = fastpathTV.DecMapFloat32StringV(*v, true, d)
  15081. if changed {
  15082. *v = v2
  15083. }
  15084. case map[float32]uint:
  15085. fastpathTV.DecMapFloat32UintV(v, false, d)
  15086. case *map[float32]uint:
  15087. var v2 map[float32]uint
  15088. v2, changed = fastpathTV.DecMapFloat32UintV(*v, true, d)
  15089. if changed {
  15090. *v = v2
  15091. }
  15092. case map[float32]uint8:
  15093. fastpathTV.DecMapFloat32Uint8V(v, false, d)
  15094. case *map[float32]uint8:
  15095. var v2 map[float32]uint8
  15096. v2, changed = fastpathTV.DecMapFloat32Uint8V(*v, true, d)
  15097. if changed {
  15098. *v = v2
  15099. }
  15100. case map[float32]uint16:
  15101. fastpathTV.DecMapFloat32Uint16V(v, false, d)
  15102. case *map[float32]uint16:
  15103. var v2 map[float32]uint16
  15104. v2, changed = fastpathTV.DecMapFloat32Uint16V(*v, true, d)
  15105. if changed {
  15106. *v = v2
  15107. }
  15108. case map[float32]uint32:
  15109. fastpathTV.DecMapFloat32Uint32V(v, false, d)
  15110. case *map[float32]uint32:
  15111. var v2 map[float32]uint32
  15112. v2, changed = fastpathTV.DecMapFloat32Uint32V(*v, true, d)
  15113. if changed {
  15114. *v = v2
  15115. }
  15116. case map[float32]uint64:
  15117. fastpathTV.DecMapFloat32Uint64V(v, false, d)
  15118. case *map[float32]uint64:
  15119. var v2 map[float32]uint64
  15120. v2, changed = fastpathTV.DecMapFloat32Uint64V(*v, true, d)
  15121. if changed {
  15122. *v = v2
  15123. }
  15124. case map[float32]uintptr:
  15125. fastpathTV.DecMapFloat32UintptrV(v, false, d)
  15126. case *map[float32]uintptr:
  15127. var v2 map[float32]uintptr
  15128. v2, changed = fastpathTV.DecMapFloat32UintptrV(*v, true, d)
  15129. if changed {
  15130. *v = v2
  15131. }
  15132. case map[float32]int:
  15133. fastpathTV.DecMapFloat32IntV(v, false, d)
  15134. case *map[float32]int:
  15135. var v2 map[float32]int
  15136. v2, changed = fastpathTV.DecMapFloat32IntV(*v, true, d)
  15137. if changed {
  15138. *v = v2
  15139. }
  15140. case map[float32]int8:
  15141. fastpathTV.DecMapFloat32Int8V(v, false, d)
  15142. case *map[float32]int8:
  15143. var v2 map[float32]int8
  15144. v2, changed = fastpathTV.DecMapFloat32Int8V(*v, true, d)
  15145. if changed {
  15146. *v = v2
  15147. }
  15148. case map[float32]int16:
  15149. fastpathTV.DecMapFloat32Int16V(v, false, d)
  15150. case *map[float32]int16:
  15151. var v2 map[float32]int16
  15152. v2, changed = fastpathTV.DecMapFloat32Int16V(*v, true, d)
  15153. if changed {
  15154. *v = v2
  15155. }
  15156. case map[float32]int32:
  15157. fastpathTV.DecMapFloat32Int32V(v, false, d)
  15158. case *map[float32]int32:
  15159. var v2 map[float32]int32
  15160. v2, changed = fastpathTV.DecMapFloat32Int32V(*v, true, d)
  15161. if changed {
  15162. *v = v2
  15163. }
  15164. case map[float32]int64:
  15165. fastpathTV.DecMapFloat32Int64V(v, false, d)
  15166. case *map[float32]int64:
  15167. var v2 map[float32]int64
  15168. v2, changed = fastpathTV.DecMapFloat32Int64V(*v, true, d)
  15169. if changed {
  15170. *v = v2
  15171. }
  15172. case map[float32]float32:
  15173. fastpathTV.DecMapFloat32Float32V(v, false, d)
  15174. case *map[float32]float32:
  15175. var v2 map[float32]float32
  15176. v2, changed = fastpathTV.DecMapFloat32Float32V(*v, true, d)
  15177. if changed {
  15178. *v = v2
  15179. }
  15180. case map[float32]float64:
  15181. fastpathTV.DecMapFloat32Float64V(v, false, d)
  15182. case *map[float32]float64:
  15183. var v2 map[float32]float64
  15184. v2, changed = fastpathTV.DecMapFloat32Float64V(*v, true, d)
  15185. if changed {
  15186. *v = v2
  15187. }
  15188. case map[float32]bool:
  15189. fastpathTV.DecMapFloat32BoolV(v, false, d)
  15190. case *map[float32]bool:
  15191. var v2 map[float32]bool
  15192. v2, changed = fastpathTV.DecMapFloat32BoolV(*v, true, d)
  15193. if changed {
  15194. *v = v2
  15195. }
  15196. case map[float64]interface{}:
  15197. fastpathTV.DecMapFloat64IntfV(v, false, d)
  15198. case *map[float64]interface{}:
  15199. var v2 map[float64]interface{}
  15200. v2, changed = fastpathTV.DecMapFloat64IntfV(*v, true, d)
  15201. if changed {
  15202. *v = v2
  15203. }
  15204. case map[float64]string:
  15205. fastpathTV.DecMapFloat64StringV(v, false, d)
  15206. case *map[float64]string:
  15207. var v2 map[float64]string
  15208. v2, changed = fastpathTV.DecMapFloat64StringV(*v, true, d)
  15209. if changed {
  15210. *v = v2
  15211. }
  15212. case map[float64]uint:
  15213. fastpathTV.DecMapFloat64UintV(v, false, d)
  15214. case *map[float64]uint:
  15215. var v2 map[float64]uint
  15216. v2, changed = fastpathTV.DecMapFloat64UintV(*v, true, d)
  15217. if changed {
  15218. *v = v2
  15219. }
  15220. case map[float64]uint8:
  15221. fastpathTV.DecMapFloat64Uint8V(v, false, d)
  15222. case *map[float64]uint8:
  15223. var v2 map[float64]uint8
  15224. v2, changed = fastpathTV.DecMapFloat64Uint8V(*v, true, d)
  15225. if changed {
  15226. *v = v2
  15227. }
  15228. case map[float64]uint16:
  15229. fastpathTV.DecMapFloat64Uint16V(v, false, d)
  15230. case *map[float64]uint16:
  15231. var v2 map[float64]uint16
  15232. v2, changed = fastpathTV.DecMapFloat64Uint16V(*v, true, d)
  15233. if changed {
  15234. *v = v2
  15235. }
  15236. case map[float64]uint32:
  15237. fastpathTV.DecMapFloat64Uint32V(v, false, d)
  15238. case *map[float64]uint32:
  15239. var v2 map[float64]uint32
  15240. v2, changed = fastpathTV.DecMapFloat64Uint32V(*v, true, d)
  15241. if changed {
  15242. *v = v2
  15243. }
  15244. case map[float64]uint64:
  15245. fastpathTV.DecMapFloat64Uint64V(v, false, d)
  15246. case *map[float64]uint64:
  15247. var v2 map[float64]uint64
  15248. v2, changed = fastpathTV.DecMapFloat64Uint64V(*v, true, d)
  15249. if changed {
  15250. *v = v2
  15251. }
  15252. case map[float64]uintptr:
  15253. fastpathTV.DecMapFloat64UintptrV(v, false, d)
  15254. case *map[float64]uintptr:
  15255. var v2 map[float64]uintptr
  15256. v2, changed = fastpathTV.DecMapFloat64UintptrV(*v, true, d)
  15257. if changed {
  15258. *v = v2
  15259. }
  15260. case map[float64]int:
  15261. fastpathTV.DecMapFloat64IntV(v, false, d)
  15262. case *map[float64]int:
  15263. var v2 map[float64]int
  15264. v2, changed = fastpathTV.DecMapFloat64IntV(*v, true, d)
  15265. if changed {
  15266. *v = v2
  15267. }
  15268. case map[float64]int8:
  15269. fastpathTV.DecMapFloat64Int8V(v, false, d)
  15270. case *map[float64]int8:
  15271. var v2 map[float64]int8
  15272. v2, changed = fastpathTV.DecMapFloat64Int8V(*v, true, d)
  15273. if changed {
  15274. *v = v2
  15275. }
  15276. case map[float64]int16:
  15277. fastpathTV.DecMapFloat64Int16V(v, false, d)
  15278. case *map[float64]int16:
  15279. var v2 map[float64]int16
  15280. v2, changed = fastpathTV.DecMapFloat64Int16V(*v, true, d)
  15281. if changed {
  15282. *v = v2
  15283. }
  15284. case map[float64]int32:
  15285. fastpathTV.DecMapFloat64Int32V(v, false, d)
  15286. case *map[float64]int32:
  15287. var v2 map[float64]int32
  15288. v2, changed = fastpathTV.DecMapFloat64Int32V(*v, true, d)
  15289. if changed {
  15290. *v = v2
  15291. }
  15292. case map[float64]int64:
  15293. fastpathTV.DecMapFloat64Int64V(v, false, d)
  15294. case *map[float64]int64:
  15295. var v2 map[float64]int64
  15296. v2, changed = fastpathTV.DecMapFloat64Int64V(*v, true, d)
  15297. if changed {
  15298. *v = v2
  15299. }
  15300. case map[float64]float32:
  15301. fastpathTV.DecMapFloat64Float32V(v, false, d)
  15302. case *map[float64]float32:
  15303. var v2 map[float64]float32
  15304. v2, changed = fastpathTV.DecMapFloat64Float32V(*v, true, d)
  15305. if changed {
  15306. *v = v2
  15307. }
  15308. case map[float64]float64:
  15309. fastpathTV.DecMapFloat64Float64V(v, false, d)
  15310. case *map[float64]float64:
  15311. var v2 map[float64]float64
  15312. v2, changed = fastpathTV.DecMapFloat64Float64V(*v, true, d)
  15313. if changed {
  15314. *v = v2
  15315. }
  15316. case map[float64]bool:
  15317. fastpathTV.DecMapFloat64BoolV(v, false, d)
  15318. case *map[float64]bool:
  15319. var v2 map[float64]bool
  15320. v2, changed = fastpathTV.DecMapFloat64BoolV(*v, true, d)
  15321. if changed {
  15322. *v = v2
  15323. }
  15324. case map[uint]interface{}:
  15325. fastpathTV.DecMapUintIntfV(v, false, d)
  15326. case *map[uint]interface{}:
  15327. var v2 map[uint]interface{}
  15328. v2, changed = fastpathTV.DecMapUintIntfV(*v, true, d)
  15329. if changed {
  15330. *v = v2
  15331. }
  15332. case map[uint]string:
  15333. fastpathTV.DecMapUintStringV(v, false, d)
  15334. case *map[uint]string:
  15335. var v2 map[uint]string
  15336. v2, changed = fastpathTV.DecMapUintStringV(*v, true, d)
  15337. if changed {
  15338. *v = v2
  15339. }
  15340. case map[uint]uint:
  15341. fastpathTV.DecMapUintUintV(v, false, d)
  15342. case *map[uint]uint:
  15343. var v2 map[uint]uint
  15344. v2, changed = fastpathTV.DecMapUintUintV(*v, true, d)
  15345. if changed {
  15346. *v = v2
  15347. }
  15348. case map[uint]uint8:
  15349. fastpathTV.DecMapUintUint8V(v, false, d)
  15350. case *map[uint]uint8:
  15351. var v2 map[uint]uint8
  15352. v2, changed = fastpathTV.DecMapUintUint8V(*v, true, d)
  15353. if changed {
  15354. *v = v2
  15355. }
  15356. case map[uint]uint16:
  15357. fastpathTV.DecMapUintUint16V(v, false, d)
  15358. case *map[uint]uint16:
  15359. var v2 map[uint]uint16
  15360. v2, changed = fastpathTV.DecMapUintUint16V(*v, true, d)
  15361. if changed {
  15362. *v = v2
  15363. }
  15364. case map[uint]uint32:
  15365. fastpathTV.DecMapUintUint32V(v, false, d)
  15366. case *map[uint]uint32:
  15367. var v2 map[uint]uint32
  15368. v2, changed = fastpathTV.DecMapUintUint32V(*v, true, d)
  15369. if changed {
  15370. *v = v2
  15371. }
  15372. case map[uint]uint64:
  15373. fastpathTV.DecMapUintUint64V(v, false, d)
  15374. case *map[uint]uint64:
  15375. var v2 map[uint]uint64
  15376. v2, changed = fastpathTV.DecMapUintUint64V(*v, true, d)
  15377. if changed {
  15378. *v = v2
  15379. }
  15380. case map[uint]uintptr:
  15381. fastpathTV.DecMapUintUintptrV(v, false, d)
  15382. case *map[uint]uintptr:
  15383. var v2 map[uint]uintptr
  15384. v2, changed = fastpathTV.DecMapUintUintptrV(*v, true, d)
  15385. if changed {
  15386. *v = v2
  15387. }
  15388. case map[uint]int:
  15389. fastpathTV.DecMapUintIntV(v, false, d)
  15390. case *map[uint]int:
  15391. var v2 map[uint]int
  15392. v2, changed = fastpathTV.DecMapUintIntV(*v, true, d)
  15393. if changed {
  15394. *v = v2
  15395. }
  15396. case map[uint]int8:
  15397. fastpathTV.DecMapUintInt8V(v, false, d)
  15398. case *map[uint]int8:
  15399. var v2 map[uint]int8
  15400. v2, changed = fastpathTV.DecMapUintInt8V(*v, true, d)
  15401. if changed {
  15402. *v = v2
  15403. }
  15404. case map[uint]int16:
  15405. fastpathTV.DecMapUintInt16V(v, false, d)
  15406. case *map[uint]int16:
  15407. var v2 map[uint]int16
  15408. v2, changed = fastpathTV.DecMapUintInt16V(*v, true, d)
  15409. if changed {
  15410. *v = v2
  15411. }
  15412. case map[uint]int32:
  15413. fastpathTV.DecMapUintInt32V(v, false, d)
  15414. case *map[uint]int32:
  15415. var v2 map[uint]int32
  15416. v2, changed = fastpathTV.DecMapUintInt32V(*v, true, d)
  15417. if changed {
  15418. *v = v2
  15419. }
  15420. case map[uint]int64:
  15421. fastpathTV.DecMapUintInt64V(v, false, d)
  15422. case *map[uint]int64:
  15423. var v2 map[uint]int64
  15424. v2, changed = fastpathTV.DecMapUintInt64V(*v, true, d)
  15425. if changed {
  15426. *v = v2
  15427. }
  15428. case map[uint]float32:
  15429. fastpathTV.DecMapUintFloat32V(v, false, d)
  15430. case *map[uint]float32:
  15431. var v2 map[uint]float32
  15432. v2, changed = fastpathTV.DecMapUintFloat32V(*v, true, d)
  15433. if changed {
  15434. *v = v2
  15435. }
  15436. case map[uint]float64:
  15437. fastpathTV.DecMapUintFloat64V(v, false, d)
  15438. case *map[uint]float64:
  15439. var v2 map[uint]float64
  15440. v2, changed = fastpathTV.DecMapUintFloat64V(*v, true, d)
  15441. if changed {
  15442. *v = v2
  15443. }
  15444. case map[uint]bool:
  15445. fastpathTV.DecMapUintBoolV(v, false, d)
  15446. case *map[uint]bool:
  15447. var v2 map[uint]bool
  15448. v2, changed = fastpathTV.DecMapUintBoolV(*v, true, d)
  15449. if changed {
  15450. *v = v2
  15451. }
  15452. case map[uint8]interface{}:
  15453. fastpathTV.DecMapUint8IntfV(v, false, d)
  15454. case *map[uint8]interface{}:
  15455. var v2 map[uint8]interface{}
  15456. v2, changed = fastpathTV.DecMapUint8IntfV(*v, true, d)
  15457. if changed {
  15458. *v = v2
  15459. }
  15460. case map[uint8]string:
  15461. fastpathTV.DecMapUint8StringV(v, false, d)
  15462. case *map[uint8]string:
  15463. var v2 map[uint8]string
  15464. v2, changed = fastpathTV.DecMapUint8StringV(*v, true, d)
  15465. if changed {
  15466. *v = v2
  15467. }
  15468. case map[uint8]uint:
  15469. fastpathTV.DecMapUint8UintV(v, false, d)
  15470. case *map[uint8]uint:
  15471. var v2 map[uint8]uint
  15472. v2, changed = fastpathTV.DecMapUint8UintV(*v, true, d)
  15473. if changed {
  15474. *v = v2
  15475. }
  15476. case map[uint8]uint8:
  15477. fastpathTV.DecMapUint8Uint8V(v, false, d)
  15478. case *map[uint8]uint8:
  15479. var v2 map[uint8]uint8
  15480. v2, changed = fastpathTV.DecMapUint8Uint8V(*v, true, d)
  15481. if changed {
  15482. *v = v2
  15483. }
  15484. case map[uint8]uint16:
  15485. fastpathTV.DecMapUint8Uint16V(v, false, d)
  15486. case *map[uint8]uint16:
  15487. var v2 map[uint8]uint16
  15488. v2, changed = fastpathTV.DecMapUint8Uint16V(*v, true, d)
  15489. if changed {
  15490. *v = v2
  15491. }
  15492. case map[uint8]uint32:
  15493. fastpathTV.DecMapUint8Uint32V(v, false, d)
  15494. case *map[uint8]uint32:
  15495. var v2 map[uint8]uint32
  15496. v2, changed = fastpathTV.DecMapUint8Uint32V(*v, true, d)
  15497. if changed {
  15498. *v = v2
  15499. }
  15500. case map[uint8]uint64:
  15501. fastpathTV.DecMapUint8Uint64V(v, false, d)
  15502. case *map[uint8]uint64:
  15503. var v2 map[uint8]uint64
  15504. v2, changed = fastpathTV.DecMapUint8Uint64V(*v, true, d)
  15505. if changed {
  15506. *v = v2
  15507. }
  15508. case map[uint8]uintptr:
  15509. fastpathTV.DecMapUint8UintptrV(v, false, d)
  15510. case *map[uint8]uintptr:
  15511. var v2 map[uint8]uintptr
  15512. v2, changed = fastpathTV.DecMapUint8UintptrV(*v, true, d)
  15513. if changed {
  15514. *v = v2
  15515. }
  15516. case map[uint8]int:
  15517. fastpathTV.DecMapUint8IntV(v, false, d)
  15518. case *map[uint8]int:
  15519. var v2 map[uint8]int
  15520. v2, changed = fastpathTV.DecMapUint8IntV(*v, true, d)
  15521. if changed {
  15522. *v = v2
  15523. }
  15524. case map[uint8]int8:
  15525. fastpathTV.DecMapUint8Int8V(v, false, d)
  15526. case *map[uint8]int8:
  15527. var v2 map[uint8]int8
  15528. v2, changed = fastpathTV.DecMapUint8Int8V(*v, true, d)
  15529. if changed {
  15530. *v = v2
  15531. }
  15532. case map[uint8]int16:
  15533. fastpathTV.DecMapUint8Int16V(v, false, d)
  15534. case *map[uint8]int16:
  15535. var v2 map[uint8]int16
  15536. v2, changed = fastpathTV.DecMapUint8Int16V(*v, true, d)
  15537. if changed {
  15538. *v = v2
  15539. }
  15540. case map[uint8]int32:
  15541. fastpathTV.DecMapUint8Int32V(v, false, d)
  15542. case *map[uint8]int32:
  15543. var v2 map[uint8]int32
  15544. v2, changed = fastpathTV.DecMapUint8Int32V(*v, true, d)
  15545. if changed {
  15546. *v = v2
  15547. }
  15548. case map[uint8]int64:
  15549. fastpathTV.DecMapUint8Int64V(v, false, d)
  15550. case *map[uint8]int64:
  15551. var v2 map[uint8]int64
  15552. v2, changed = fastpathTV.DecMapUint8Int64V(*v, true, d)
  15553. if changed {
  15554. *v = v2
  15555. }
  15556. case map[uint8]float32:
  15557. fastpathTV.DecMapUint8Float32V(v, false, d)
  15558. case *map[uint8]float32:
  15559. var v2 map[uint8]float32
  15560. v2, changed = fastpathTV.DecMapUint8Float32V(*v, true, d)
  15561. if changed {
  15562. *v = v2
  15563. }
  15564. case map[uint8]float64:
  15565. fastpathTV.DecMapUint8Float64V(v, false, d)
  15566. case *map[uint8]float64:
  15567. var v2 map[uint8]float64
  15568. v2, changed = fastpathTV.DecMapUint8Float64V(*v, true, d)
  15569. if changed {
  15570. *v = v2
  15571. }
  15572. case map[uint8]bool:
  15573. fastpathTV.DecMapUint8BoolV(v, false, d)
  15574. case *map[uint8]bool:
  15575. var v2 map[uint8]bool
  15576. v2, changed = fastpathTV.DecMapUint8BoolV(*v, true, d)
  15577. if changed {
  15578. *v = v2
  15579. }
  15580. case map[uint16]interface{}:
  15581. fastpathTV.DecMapUint16IntfV(v, false, d)
  15582. case *map[uint16]interface{}:
  15583. var v2 map[uint16]interface{}
  15584. v2, changed = fastpathTV.DecMapUint16IntfV(*v, true, d)
  15585. if changed {
  15586. *v = v2
  15587. }
  15588. case map[uint16]string:
  15589. fastpathTV.DecMapUint16StringV(v, false, d)
  15590. case *map[uint16]string:
  15591. var v2 map[uint16]string
  15592. v2, changed = fastpathTV.DecMapUint16StringV(*v, true, d)
  15593. if changed {
  15594. *v = v2
  15595. }
  15596. case map[uint16]uint:
  15597. fastpathTV.DecMapUint16UintV(v, false, d)
  15598. case *map[uint16]uint:
  15599. var v2 map[uint16]uint
  15600. v2, changed = fastpathTV.DecMapUint16UintV(*v, true, d)
  15601. if changed {
  15602. *v = v2
  15603. }
  15604. case map[uint16]uint8:
  15605. fastpathTV.DecMapUint16Uint8V(v, false, d)
  15606. case *map[uint16]uint8:
  15607. var v2 map[uint16]uint8
  15608. v2, changed = fastpathTV.DecMapUint16Uint8V(*v, true, d)
  15609. if changed {
  15610. *v = v2
  15611. }
  15612. case map[uint16]uint16:
  15613. fastpathTV.DecMapUint16Uint16V(v, false, d)
  15614. case *map[uint16]uint16:
  15615. var v2 map[uint16]uint16
  15616. v2, changed = fastpathTV.DecMapUint16Uint16V(*v, true, d)
  15617. if changed {
  15618. *v = v2
  15619. }
  15620. case map[uint16]uint32:
  15621. fastpathTV.DecMapUint16Uint32V(v, false, d)
  15622. case *map[uint16]uint32:
  15623. var v2 map[uint16]uint32
  15624. v2, changed = fastpathTV.DecMapUint16Uint32V(*v, true, d)
  15625. if changed {
  15626. *v = v2
  15627. }
  15628. case map[uint16]uint64:
  15629. fastpathTV.DecMapUint16Uint64V(v, false, d)
  15630. case *map[uint16]uint64:
  15631. var v2 map[uint16]uint64
  15632. v2, changed = fastpathTV.DecMapUint16Uint64V(*v, true, d)
  15633. if changed {
  15634. *v = v2
  15635. }
  15636. case map[uint16]uintptr:
  15637. fastpathTV.DecMapUint16UintptrV(v, false, d)
  15638. case *map[uint16]uintptr:
  15639. var v2 map[uint16]uintptr
  15640. v2, changed = fastpathTV.DecMapUint16UintptrV(*v, true, d)
  15641. if changed {
  15642. *v = v2
  15643. }
  15644. case map[uint16]int:
  15645. fastpathTV.DecMapUint16IntV(v, false, d)
  15646. case *map[uint16]int:
  15647. var v2 map[uint16]int
  15648. v2, changed = fastpathTV.DecMapUint16IntV(*v, true, d)
  15649. if changed {
  15650. *v = v2
  15651. }
  15652. case map[uint16]int8:
  15653. fastpathTV.DecMapUint16Int8V(v, false, d)
  15654. case *map[uint16]int8:
  15655. var v2 map[uint16]int8
  15656. v2, changed = fastpathTV.DecMapUint16Int8V(*v, true, d)
  15657. if changed {
  15658. *v = v2
  15659. }
  15660. case map[uint16]int16:
  15661. fastpathTV.DecMapUint16Int16V(v, false, d)
  15662. case *map[uint16]int16:
  15663. var v2 map[uint16]int16
  15664. v2, changed = fastpathTV.DecMapUint16Int16V(*v, true, d)
  15665. if changed {
  15666. *v = v2
  15667. }
  15668. case map[uint16]int32:
  15669. fastpathTV.DecMapUint16Int32V(v, false, d)
  15670. case *map[uint16]int32:
  15671. var v2 map[uint16]int32
  15672. v2, changed = fastpathTV.DecMapUint16Int32V(*v, true, d)
  15673. if changed {
  15674. *v = v2
  15675. }
  15676. case map[uint16]int64:
  15677. fastpathTV.DecMapUint16Int64V(v, false, d)
  15678. case *map[uint16]int64:
  15679. var v2 map[uint16]int64
  15680. v2, changed = fastpathTV.DecMapUint16Int64V(*v, true, d)
  15681. if changed {
  15682. *v = v2
  15683. }
  15684. case map[uint16]float32:
  15685. fastpathTV.DecMapUint16Float32V(v, false, d)
  15686. case *map[uint16]float32:
  15687. var v2 map[uint16]float32
  15688. v2, changed = fastpathTV.DecMapUint16Float32V(*v, true, d)
  15689. if changed {
  15690. *v = v2
  15691. }
  15692. case map[uint16]float64:
  15693. fastpathTV.DecMapUint16Float64V(v, false, d)
  15694. case *map[uint16]float64:
  15695. var v2 map[uint16]float64
  15696. v2, changed = fastpathTV.DecMapUint16Float64V(*v, true, d)
  15697. if changed {
  15698. *v = v2
  15699. }
  15700. case map[uint16]bool:
  15701. fastpathTV.DecMapUint16BoolV(v, false, d)
  15702. case *map[uint16]bool:
  15703. var v2 map[uint16]bool
  15704. v2, changed = fastpathTV.DecMapUint16BoolV(*v, true, d)
  15705. if changed {
  15706. *v = v2
  15707. }
  15708. case map[uint32]interface{}:
  15709. fastpathTV.DecMapUint32IntfV(v, false, d)
  15710. case *map[uint32]interface{}:
  15711. var v2 map[uint32]interface{}
  15712. v2, changed = fastpathTV.DecMapUint32IntfV(*v, true, d)
  15713. if changed {
  15714. *v = v2
  15715. }
  15716. case map[uint32]string:
  15717. fastpathTV.DecMapUint32StringV(v, false, d)
  15718. case *map[uint32]string:
  15719. var v2 map[uint32]string
  15720. v2, changed = fastpathTV.DecMapUint32StringV(*v, true, d)
  15721. if changed {
  15722. *v = v2
  15723. }
  15724. case map[uint32]uint:
  15725. fastpathTV.DecMapUint32UintV(v, false, d)
  15726. case *map[uint32]uint:
  15727. var v2 map[uint32]uint
  15728. v2, changed = fastpathTV.DecMapUint32UintV(*v, true, d)
  15729. if changed {
  15730. *v = v2
  15731. }
  15732. case map[uint32]uint8:
  15733. fastpathTV.DecMapUint32Uint8V(v, false, d)
  15734. case *map[uint32]uint8:
  15735. var v2 map[uint32]uint8
  15736. v2, changed = fastpathTV.DecMapUint32Uint8V(*v, true, d)
  15737. if changed {
  15738. *v = v2
  15739. }
  15740. case map[uint32]uint16:
  15741. fastpathTV.DecMapUint32Uint16V(v, false, d)
  15742. case *map[uint32]uint16:
  15743. var v2 map[uint32]uint16
  15744. v2, changed = fastpathTV.DecMapUint32Uint16V(*v, true, d)
  15745. if changed {
  15746. *v = v2
  15747. }
  15748. case map[uint32]uint32:
  15749. fastpathTV.DecMapUint32Uint32V(v, false, d)
  15750. case *map[uint32]uint32:
  15751. var v2 map[uint32]uint32
  15752. v2, changed = fastpathTV.DecMapUint32Uint32V(*v, true, d)
  15753. if changed {
  15754. *v = v2
  15755. }
  15756. case map[uint32]uint64:
  15757. fastpathTV.DecMapUint32Uint64V(v, false, d)
  15758. case *map[uint32]uint64:
  15759. var v2 map[uint32]uint64
  15760. v2, changed = fastpathTV.DecMapUint32Uint64V(*v, true, d)
  15761. if changed {
  15762. *v = v2
  15763. }
  15764. case map[uint32]uintptr:
  15765. fastpathTV.DecMapUint32UintptrV(v, false, d)
  15766. case *map[uint32]uintptr:
  15767. var v2 map[uint32]uintptr
  15768. v2, changed = fastpathTV.DecMapUint32UintptrV(*v, true, d)
  15769. if changed {
  15770. *v = v2
  15771. }
  15772. case map[uint32]int:
  15773. fastpathTV.DecMapUint32IntV(v, false, d)
  15774. case *map[uint32]int:
  15775. var v2 map[uint32]int
  15776. v2, changed = fastpathTV.DecMapUint32IntV(*v, true, d)
  15777. if changed {
  15778. *v = v2
  15779. }
  15780. case map[uint32]int8:
  15781. fastpathTV.DecMapUint32Int8V(v, false, d)
  15782. case *map[uint32]int8:
  15783. var v2 map[uint32]int8
  15784. v2, changed = fastpathTV.DecMapUint32Int8V(*v, true, d)
  15785. if changed {
  15786. *v = v2
  15787. }
  15788. case map[uint32]int16:
  15789. fastpathTV.DecMapUint32Int16V(v, false, d)
  15790. case *map[uint32]int16:
  15791. var v2 map[uint32]int16
  15792. v2, changed = fastpathTV.DecMapUint32Int16V(*v, true, d)
  15793. if changed {
  15794. *v = v2
  15795. }
  15796. case map[uint32]int32:
  15797. fastpathTV.DecMapUint32Int32V(v, false, d)
  15798. case *map[uint32]int32:
  15799. var v2 map[uint32]int32
  15800. v2, changed = fastpathTV.DecMapUint32Int32V(*v, true, d)
  15801. if changed {
  15802. *v = v2
  15803. }
  15804. case map[uint32]int64:
  15805. fastpathTV.DecMapUint32Int64V(v, false, d)
  15806. case *map[uint32]int64:
  15807. var v2 map[uint32]int64
  15808. v2, changed = fastpathTV.DecMapUint32Int64V(*v, true, d)
  15809. if changed {
  15810. *v = v2
  15811. }
  15812. case map[uint32]float32:
  15813. fastpathTV.DecMapUint32Float32V(v, false, d)
  15814. case *map[uint32]float32:
  15815. var v2 map[uint32]float32
  15816. v2, changed = fastpathTV.DecMapUint32Float32V(*v, true, d)
  15817. if changed {
  15818. *v = v2
  15819. }
  15820. case map[uint32]float64:
  15821. fastpathTV.DecMapUint32Float64V(v, false, d)
  15822. case *map[uint32]float64:
  15823. var v2 map[uint32]float64
  15824. v2, changed = fastpathTV.DecMapUint32Float64V(*v, true, d)
  15825. if changed {
  15826. *v = v2
  15827. }
  15828. case map[uint32]bool:
  15829. fastpathTV.DecMapUint32BoolV(v, false, d)
  15830. case *map[uint32]bool:
  15831. var v2 map[uint32]bool
  15832. v2, changed = fastpathTV.DecMapUint32BoolV(*v, true, d)
  15833. if changed {
  15834. *v = v2
  15835. }
  15836. case map[uint64]interface{}:
  15837. fastpathTV.DecMapUint64IntfV(v, false, d)
  15838. case *map[uint64]interface{}:
  15839. var v2 map[uint64]interface{}
  15840. v2, changed = fastpathTV.DecMapUint64IntfV(*v, true, d)
  15841. if changed {
  15842. *v = v2
  15843. }
  15844. case map[uint64]string:
  15845. fastpathTV.DecMapUint64StringV(v, false, d)
  15846. case *map[uint64]string:
  15847. var v2 map[uint64]string
  15848. v2, changed = fastpathTV.DecMapUint64StringV(*v, true, d)
  15849. if changed {
  15850. *v = v2
  15851. }
  15852. case map[uint64]uint:
  15853. fastpathTV.DecMapUint64UintV(v, false, d)
  15854. case *map[uint64]uint:
  15855. var v2 map[uint64]uint
  15856. v2, changed = fastpathTV.DecMapUint64UintV(*v, true, d)
  15857. if changed {
  15858. *v = v2
  15859. }
  15860. case map[uint64]uint8:
  15861. fastpathTV.DecMapUint64Uint8V(v, false, d)
  15862. case *map[uint64]uint8:
  15863. var v2 map[uint64]uint8
  15864. v2, changed = fastpathTV.DecMapUint64Uint8V(*v, true, d)
  15865. if changed {
  15866. *v = v2
  15867. }
  15868. case map[uint64]uint16:
  15869. fastpathTV.DecMapUint64Uint16V(v, false, d)
  15870. case *map[uint64]uint16:
  15871. var v2 map[uint64]uint16
  15872. v2, changed = fastpathTV.DecMapUint64Uint16V(*v, true, d)
  15873. if changed {
  15874. *v = v2
  15875. }
  15876. case map[uint64]uint32:
  15877. fastpathTV.DecMapUint64Uint32V(v, false, d)
  15878. case *map[uint64]uint32:
  15879. var v2 map[uint64]uint32
  15880. v2, changed = fastpathTV.DecMapUint64Uint32V(*v, true, d)
  15881. if changed {
  15882. *v = v2
  15883. }
  15884. case map[uint64]uint64:
  15885. fastpathTV.DecMapUint64Uint64V(v, false, d)
  15886. case *map[uint64]uint64:
  15887. var v2 map[uint64]uint64
  15888. v2, changed = fastpathTV.DecMapUint64Uint64V(*v, true, d)
  15889. if changed {
  15890. *v = v2
  15891. }
  15892. case map[uint64]uintptr:
  15893. fastpathTV.DecMapUint64UintptrV(v, false, d)
  15894. case *map[uint64]uintptr:
  15895. var v2 map[uint64]uintptr
  15896. v2, changed = fastpathTV.DecMapUint64UintptrV(*v, true, d)
  15897. if changed {
  15898. *v = v2
  15899. }
  15900. case map[uint64]int:
  15901. fastpathTV.DecMapUint64IntV(v, false, d)
  15902. case *map[uint64]int:
  15903. var v2 map[uint64]int
  15904. v2, changed = fastpathTV.DecMapUint64IntV(*v, true, d)
  15905. if changed {
  15906. *v = v2
  15907. }
  15908. case map[uint64]int8:
  15909. fastpathTV.DecMapUint64Int8V(v, false, d)
  15910. case *map[uint64]int8:
  15911. var v2 map[uint64]int8
  15912. v2, changed = fastpathTV.DecMapUint64Int8V(*v, true, d)
  15913. if changed {
  15914. *v = v2
  15915. }
  15916. case map[uint64]int16:
  15917. fastpathTV.DecMapUint64Int16V(v, false, d)
  15918. case *map[uint64]int16:
  15919. var v2 map[uint64]int16
  15920. v2, changed = fastpathTV.DecMapUint64Int16V(*v, true, d)
  15921. if changed {
  15922. *v = v2
  15923. }
  15924. case map[uint64]int32:
  15925. fastpathTV.DecMapUint64Int32V(v, false, d)
  15926. case *map[uint64]int32:
  15927. var v2 map[uint64]int32
  15928. v2, changed = fastpathTV.DecMapUint64Int32V(*v, true, d)
  15929. if changed {
  15930. *v = v2
  15931. }
  15932. case map[uint64]int64:
  15933. fastpathTV.DecMapUint64Int64V(v, false, d)
  15934. case *map[uint64]int64:
  15935. var v2 map[uint64]int64
  15936. v2, changed = fastpathTV.DecMapUint64Int64V(*v, true, d)
  15937. if changed {
  15938. *v = v2
  15939. }
  15940. case map[uint64]float32:
  15941. fastpathTV.DecMapUint64Float32V(v, false, d)
  15942. case *map[uint64]float32:
  15943. var v2 map[uint64]float32
  15944. v2, changed = fastpathTV.DecMapUint64Float32V(*v, true, d)
  15945. if changed {
  15946. *v = v2
  15947. }
  15948. case map[uint64]float64:
  15949. fastpathTV.DecMapUint64Float64V(v, false, d)
  15950. case *map[uint64]float64:
  15951. var v2 map[uint64]float64
  15952. v2, changed = fastpathTV.DecMapUint64Float64V(*v, true, d)
  15953. if changed {
  15954. *v = v2
  15955. }
  15956. case map[uint64]bool:
  15957. fastpathTV.DecMapUint64BoolV(v, false, d)
  15958. case *map[uint64]bool:
  15959. var v2 map[uint64]bool
  15960. v2, changed = fastpathTV.DecMapUint64BoolV(*v, true, d)
  15961. if changed {
  15962. *v = v2
  15963. }
  15964. case map[uintptr]interface{}:
  15965. fastpathTV.DecMapUintptrIntfV(v, false, d)
  15966. case *map[uintptr]interface{}:
  15967. var v2 map[uintptr]interface{}
  15968. v2, changed = fastpathTV.DecMapUintptrIntfV(*v, true, d)
  15969. if changed {
  15970. *v = v2
  15971. }
  15972. case map[uintptr]string:
  15973. fastpathTV.DecMapUintptrStringV(v, false, d)
  15974. case *map[uintptr]string:
  15975. var v2 map[uintptr]string
  15976. v2, changed = fastpathTV.DecMapUintptrStringV(*v, true, d)
  15977. if changed {
  15978. *v = v2
  15979. }
  15980. case map[uintptr]uint:
  15981. fastpathTV.DecMapUintptrUintV(v, false, d)
  15982. case *map[uintptr]uint:
  15983. var v2 map[uintptr]uint
  15984. v2, changed = fastpathTV.DecMapUintptrUintV(*v, true, d)
  15985. if changed {
  15986. *v = v2
  15987. }
  15988. case map[uintptr]uint8:
  15989. fastpathTV.DecMapUintptrUint8V(v, false, d)
  15990. case *map[uintptr]uint8:
  15991. var v2 map[uintptr]uint8
  15992. v2, changed = fastpathTV.DecMapUintptrUint8V(*v, true, d)
  15993. if changed {
  15994. *v = v2
  15995. }
  15996. case map[uintptr]uint16:
  15997. fastpathTV.DecMapUintptrUint16V(v, false, d)
  15998. case *map[uintptr]uint16:
  15999. var v2 map[uintptr]uint16
  16000. v2, changed = fastpathTV.DecMapUintptrUint16V(*v, true, d)
  16001. if changed {
  16002. *v = v2
  16003. }
  16004. case map[uintptr]uint32:
  16005. fastpathTV.DecMapUintptrUint32V(v, false, d)
  16006. case *map[uintptr]uint32:
  16007. var v2 map[uintptr]uint32
  16008. v2, changed = fastpathTV.DecMapUintptrUint32V(*v, true, d)
  16009. if changed {
  16010. *v = v2
  16011. }
  16012. case map[uintptr]uint64:
  16013. fastpathTV.DecMapUintptrUint64V(v, false, d)
  16014. case *map[uintptr]uint64:
  16015. var v2 map[uintptr]uint64
  16016. v2, changed = fastpathTV.DecMapUintptrUint64V(*v, true, d)
  16017. if changed {
  16018. *v = v2
  16019. }
  16020. case map[uintptr]uintptr:
  16021. fastpathTV.DecMapUintptrUintptrV(v, false, d)
  16022. case *map[uintptr]uintptr:
  16023. var v2 map[uintptr]uintptr
  16024. v2, changed = fastpathTV.DecMapUintptrUintptrV(*v, true, d)
  16025. if changed {
  16026. *v = v2
  16027. }
  16028. case map[uintptr]int:
  16029. fastpathTV.DecMapUintptrIntV(v, false, d)
  16030. case *map[uintptr]int:
  16031. var v2 map[uintptr]int
  16032. v2, changed = fastpathTV.DecMapUintptrIntV(*v, true, d)
  16033. if changed {
  16034. *v = v2
  16035. }
  16036. case map[uintptr]int8:
  16037. fastpathTV.DecMapUintptrInt8V(v, false, d)
  16038. case *map[uintptr]int8:
  16039. var v2 map[uintptr]int8
  16040. v2, changed = fastpathTV.DecMapUintptrInt8V(*v, true, d)
  16041. if changed {
  16042. *v = v2
  16043. }
  16044. case map[uintptr]int16:
  16045. fastpathTV.DecMapUintptrInt16V(v, false, d)
  16046. case *map[uintptr]int16:
  16047. var v2 map[uintptr]int16
  16048. v2, changed = fastpathTV.DecMapUintptrInt16V(*v, true, d)
  16049. if changed {
  16050. *v = v2
  16051. }
  16052. case map[uintptr]int32:
  16053. fastpathTV.DecMapUintptrInt32V(v, false, d)
  16054. case *map[uintptr]int32:
  16055. var v2 map[uintptr]int32
  16056. v2, changed = fastpathTV.DecMapUintptrInt32V(*v, true, d)
  16057. if changed {
  16058. *v = v2
  16059. }
  16060. case map[uintptr]int64:
  16061. fastpathTV.DecMapUintptrInt64V(v, false, d)
  16062. case *map[uintptr]int64:
  16063. var v2 map[uintptr]int64
  16064. v2, changed = fastpathTV.DecMapUintptrInt64V(*v, true, d)
  16065. if changed {
  16066. *v = v2
  16067. }
  16068. case map[uintptr]float32:
  16069. fastpathTV.DecMapUintptrFloat32V(v, false, d)
  16070. case *map[uintptr]float32:
  16071. var v2 map[uintptr]float32
  16072. v2, changed = fastpathTV.DecMapUintptrFloat32V(*v, true, d)
  16073. if changed {
  16074. *v = v2
  16075. }
  16076. case map[uintptr]float64:
  16077. fastpathTV.DecMapUintptrFloat64V(v, false, d)
  16078. case *map[uintptr]float64:
  16079. var v2 map[uintptr]float64
  16080. v2, changed = fastpathTV.DecMapUintptrFloat64V(*v, true, d)
  16081. if changed {
  16082. *v = v2
  16083. }
  16084. case map[uintptr]bool:
  16085. fastpathTV.DecMapUintptrBoolV(v, false, d)
  16086. case *map[uintptr]bool:
  16087. var v2 map[uintptr]bool
  16088. v2, changed = fastpathTV.DecMapUintptrBoolV(*v, true, d)
  16089. if changed {
  16090. *v = v2
  16091. }
  16092. case map[int]interface{}:
  16093. fastpathTV.DecMapIntIntfV(v, false, d)
  16094. case *map[int]interface{}:
  16095. var v2 map[int]interface{}
  16096. v2, changed = fastpathTV.DecMapIntIntfV(*v, true, d)
  16097. if changed {
  16098. *v = v2
  16099. }
  16100. case map[int]string:
  16101. fastpathTV.DecMapIntStringV(v, false, d)
  16102. case *map[int]string:
  16103. var v2 map[int]string
  16104. v2, changed = fastpathTV.DecMapIntStringV(*v, true, d)
  16105. if changed {
  16106. *v = v2
  16107. }
  16108. case map[int]uint:
  16109. fastpathTV.DecMapIntUintV(v, false, d)
  16110. case *map[int]uint:
  16111. var v2 map[int]uint
  16112. v2, changed = fastpathTV.DecMapIntUintV(*v, true, d)
  16113. if changed {
  16114. *v = v2
  16115. }
  16116. case map[int]uint8:
  16117. fastpathTV.DecMapIntUint8V(v, false, d)
  16118. case *map[int]uint8:
  16119. var v2 map[int]uint8
  16120. v2, changed = fastpathTV.DecMapIntUint8V(*v, true, d)
  16121. if changed {
  16122. *v = v2
  16123. }
  16124. case map[int]uint16:
  16125. fastpathTV.DecMapIntUint16V(v, false, d)
  16126. case *map[int]uint16:
  16127. var v2 map[int]uint16
  16128. v2, changed = fastpathTV.DecMapIntUint16V(*v, true, d)
  16129. if changed {
  16130. *v = v2
  16131. }
  16132. case map[int]uint32:
  16133. fastpathTV.DecMapIntUint32V(v, false, d)
  16134. case *map[int]uint32:
  16135. var v2 map[int]uint32
  16136. v2, changed = fastpathTV.DecMapIntUint32V(*v, true, d)
  16137. if changed {
  16138. *v = v2
  16139. }
  16140. case map[int]uint64:
  16141. fastpathTV.DecMapIntUint64V(v, false, d)
  16142. case *map[int]uint64:
  16143. var v2 map[int]uint64
  16144. v2, changed = fastpathTV.DecMapIntUint64V(*v, true, d)
  16145. if changed {
  16146. *v = v2
  16147. }
  16148. case map[int]uintptr:
  16149. fastpathTV.DecMapIntUintptrV(v, false, d)
  16150. case *map[int]uintptr:
  16151. var v2 map[int]uintptr
  16152. v2, changed = fastpathTV.DecMapIntUintptrV(*v, true, d)
  16153. if changed {
  16154. *v = v2
  16155. }
  16156. case map[int]int:
  16157. fastpathTV.DecMapIntIntV(v, false, d)
  16158. case *map[int]int:
  16159. var v2 map[int]int
  16160. v2, changed = fastpathTV.DecMapIntIntV(*v, true, d)
  16161. if changed {
  16162. *v = v2
  16163. }
  16164. case map[int]int8:
  16165. fastpathTV.DecMapIntInt8V(v, false, d)
  16166. case *map[int]int8:
  16167. var v2 map[int]int8
  16168. v2, changed = fastpathTV.DecMapIntInt8V(*v, true, d)
  16169. if changed {
  16170. *v = v2
  16171. }
  16172. case map[int]int16:
  16173. fastpathTV.DecMapIntInt16V(v, false, d)
  16174. case *map[int]int16:
  16175. var v2 map[int]int16
  16176. v2, changed = fastpathTV.DecMapIntInt16V(*v, true, d)
  16177. if changed {
  16178. *v = v2
  16179. }
  16180. case map[int]int32:
  16181. fastpathTV.DecMapIntInt32V(v, false, d)
  16182. case *map[int]int32:
  16183. var v2 map[int]int32
  16184. v2, changed = fastpathTV.DecMapIntInt32V(*v, true, d)
  16185. if changed {
  16186. *v = v2
  16187. }
  16188. case map[int]int64:
  16189. fastpathTV.DecMapIntInt64V(v, false, d)
  16190. case *map[int]int64:
  16191. var v2 map[int]int64
  16192. v2, changed = fastpathTV.DecMapIntInt64V(*v, true, d)
  16193. if changed {
  16194. *v = v2
  16195. }
  16196. case map[int]float32:
  16197. fastpathTV.DecMapIntFloat32V(v, false, d)
  16198. case *map[int]float32:
  16199. var v2 map[int]float32
  16200. v2, changed = fastpathTV.DecMapIntFloat32V(*v, true, d)
  16201. if changed {
  16202. *v = v2
  16203. }
  16204. case map[int]float64:
  16205. fastpathTV.DecMapIntFloat64V(v, false, d)
  16206. case *map[int]float64:
  16207. var v2 map[int]float64
  16208. v2, changed = fastpathTV.DecMapIntFloat64V(*v, true, d)
  16209. if changed {
  16210. *v = v2
  16211. }
  16212. case map[int]bool:
  16213. fastpathTV.DecMapIntBoolV(v, false, d)
  16214. case *map[int]bool:
  16215. var v2 map[int]bool
  16216. v2, changed = fastpathTV.DecMapIntBoolV(*v, true, d)
  16217. if changed {
  16218. *v = v2
  16219. }
  16220. case map[int8]interface{}:
  16221. fastpathTV.DecMapInt8IntfV(v, false, d)
  16222. case *map[int8]interface{}:
  16223. var v2 map[int8]interface{}
  16224. v2, changed = fastpathTV.DecMapInt8IntfV(*v, true, d)
  16225. if changed {
  16226. *v = v2
  16227. }
  16228. case map[int8]string:
  16229. fastpathTV.DecMapInt8StringV(v, false, d)
  16230. case *map[int8]string:
  16231. var v2 map[int8]string
  16232. v2, changed = fastpathTV.DecMapInt8StringV(*v, true, d)
  16233. if changed {
  16234. *v = v2
  16235. }
  16236. case map[int8]uint:
  16237. fastpathTV.DecMapInt8UintV(v, false, d)
  16238. case *map[int8]uint:
  16239. var v2 map[int8]uint
  16240. v2, changed = fastpathTV.DecMapInt8UintV(*v, true, d)
  16241. if changed {
  16242. *v = v2
  16243. }
  16244. case map[int8]uint8:
  16245. fastpathTV.DecMapInt8Uint8V(v, false, d)
  16246. case *map[int8]uint8:
  16247. var v2 map[int8]uint8
  16248. v2, changed = fastpathTV.DecMapInt8Uint8V(*v, true, d)
  16249. if changed {
  16250. *v = v2
  16251. }
  16252. case map[int8]uint16:
  16253. fastpathTV.DecMapInt8Uint16V(v, false, d)
  16254. case *map[int8]uint16:
  16255. var v2 map[int8]uint16
  16256. v2, changed = fastpathTV.DecMapInt8Uint16V(*v, true, d)
  16257. if changed {
  16258. *v = v2
  16259. }
  16260. case map[int8]uint32:
  16261. fastpathTV.DecMapInt8Uint32V(v, false, d)
  16262. case *map[int8]uint32:
  16263. var v2 map[int8]uint32
  16264. v2, changed = fastpathTV.DecMapInt8Uint32V(*v, true, d)
  16265. if changed {
  16266. *v = v2
  16267. }
  16268. case map[int8]uint64:
  16269. fastpathTV.DecMapInt8Uint64V(v, false, d)
  16270. case *map[int8]uint64:
  16271. var v2 map[int8]uint64
  16272. v2, changed = fastpathTV.DecMapInt8Uint64V(*v, true, d)
  16273. if changed {
  16274. *v = v2
  16275. }
  16276. case map[int8]uintptr:
  16277. fastpathTV.DecMapInt8UintptrV(v, false, d)
  16278. case *map[int8]uintptr:
  16279. var v2 map[int8]uintptr
  16280. v2, changed = fastpathTV.DecMapInt8UintptrV(*v, true, d)
  16281. if changed {
  16282. *v = v2
  16283. }
  16284. case map[int8]int:
  16285. fastpathTV.DecMapInt8IntV(v, false, d)
  16286. case *map[int8]int:
  16287. var v2 map[int8]int
  16288. v2, changed = fastpathTV.DecMapInt8IntV(*v, true, d)
  16289. if changed {
  16290. *v = v2
  16291. }
  16292. case map[int8]int8:
  16293. fastpathTV.DecMapInt8Int8V(v, false, d)
  16294. case *map[int8]int8:
  16295. var v2 map[int8]int8
  16296. v2, changed = fastpathTV.DecMapInt8Int8V(*v, true, d)
  16297. if changed {
  16298. *v = v2
  16299. }
  16300. case map[int8]int16:
  16301. fastpathTV.DecMapInt8Int16V(v, false, d)
  16302. case *map[int8]int16:
  16303. var v2 map[int8]int16
  16304. v2, changed = fastpathTV.DecMapInt8Int16V(*v, true, d)
  16305. if changed {
  16306. *v = v2
  16307. }
  16308. case map[int8]int32:
  16309. fastpathTV.DecMapInt8Int32V(v, false, d)
  16310. case *map[int8]int32:
  16311. var v2 map[int8]int32
  16312. v2, changed = fastpathTV.DecMapInt8Int32V(*v, true, d)
  16313. if changed {
  16314. *v = v2
  16315. }
  16316. case map[int8]int64:
  16317. fastpathTV.DecMapInt8Int64V(v, false, d)
  16318. case *map[int8]int64:
  16319. var v2 map[int8]int64
  16320. v2, changed = fastpathTV.DecMapInt8Int64V(*v, true, d)
  16321. if changed {
  16322. *v = v2
  16323. }
  16324. case map[int8]float32:
  16325. fastpathTV.DecMapInt8Float32V(v, false, d)
  16326. case *map[int8]float32:
  16327. var v2 map[int8]float32
  16328. v2, changed = fastpathTV.DecMapInt8Float32V(*v, true, d)
  16329. if changed {
  16330. *v = v2
  16331. }
  16332. case map[int8]float64:
  16333. fastpathTV.DecMapInt8Float64V(v, false, d)
  16334. case *map[int8]float64:
  16335. var v2 map[int8]float64
  16336. v2, changed = fastpathTV.DecMapInt8Float64V(*v, true, d)
  16337. if changed {
  16338. *v = v2
  16339. }
  16340. case map[int8]bool:
  16341. fastpathTV.DecMapInt8BoolV(v, false, d)
  16342. case *map[int8]bool:
  16343. var v2 map[int8]bool
  16344. v2, changed = fastpathTV.DecMapInt8BoolV(*v, true, d)
  16345. if changed {
  16346. *v = v2
  16347. }
  16348. case map[int16]interface{}:
  16349. fastpathTV.DecMapInt16IntfV(v, false, d)
  16350. case *map[int16]interface{}:
  16351. var v2 map[int16]interface{}
  16352. v2, changed = fastpathTV.DecMapInt16IntfV(*v, true, d)
  16353. if changed {
  16354. *v = v2
  16355. }
  16356. case map[int16]string:
  16357. fastpathTV.DecMapInt16StringV(v, false, d)
  16358. case *map[int16]string:
  16359. var v2 map[int16]string
  16360. v2, changed = fastpathTV.DecMapInt16StringV(*v, true, d)
  16361. if changed {
  16362. *v = v2
  16363. }
  16364. case map[int16]uint:
  16365. fastpathTV.DecMapInt16UintV(v, false, d)
  16366. case *map[int16]uint:
  16367. var v2 map[int16]uint
  16368. v2, changed = fastpathTV.DecMapInt16UintV(*v, true, d)
  16369. if changed {
  16370. *v = v2
  16371. }
  16372. case map[int16]uint8:
  16373. fastpathTV.DecMapInt16Uint8V(v, false, d)
  16374. case *map[int16]uint8:
  16375. var v2 map[int16]uint8
  16376. v2, changed = fastpathTV.DecMapInt16Uint8V(*v, true, d)
  16377. if changed {
  16378. *v = v2
  16379. }
  16380. case map[int16]uint16:
  16381. fastpathTV.DecMapInt16Uint16V(v, false, d)
  16382. case *map[int16]uint16:
  16383. var v2 map[int16]uint16
  16384. v2, changed = fastpathTV.DecMapInt16Uint16V(*v, true, d)
  16385. if changed {
  16386. *v = v2
  16387. }
  16388. case map[int16]uint32:
  16389. fastpathTV.DecMapInt16Uint32V(v, false, d)
  16390. case *map[int16]uint32:
  16391. var v2 map[int16]uint32
  16392. v2, changed = fastpathTV.DecMapInt16Uint32V(*v, true, d)
  16393. if changed {
  16394. *v = v2
  16395. }
  16396. case map[int16]uint64:
  16397. fastpathTV.DecMapInt16Uint64V(v, false, d)
  16398. case *map[int16]uint64:
  16399. var v2 map[int16]uint64
  16400. v2, changed = fastpathTV.DecMapInt16Uint64V(*v, true, d)
  16401. if changed {
  16402. *v = v2
  16403. }
  16404. case map[int16]uintptr:
  16405. fastpathTV.DecMapInt16UintptrV(v, false, d)
  16406. case *map[int16]uintptr:
  16407. var v2 map[int16]uintptr
  16408. v2, changed = fastpathTV.DecMapInt16UintptrV(*v, true, d)
  16409. if changed {
  16410. *v = v2
  16411. }
  16412. case map[int16]int:
  16413. fastpathTV.DecMapInt16IntV(v, false, d)
  16414. case *map[int16]int:
  16415. var v2 map[int16]int
  16416. v2, changed = fastpathTV.DecMapInt16IntV(*v, true, d)
  16417. if changed {
  16418. *v = v2
  16419. }
  16420. case map[int16]int8:
  16421. fastpathTV.DecMapInt16Int8V(v, false, d)
  16422. case *map[int16]int8:
  16423. var v2 map[int16]int8
  16424. v2, changed = fastpathTV.DecMapInt16Int8V(*v, true, d)
  16425. if changed {
  16426. *v = v2
  16427. }
  16428. case map[int16]int16:
  16429. fastpathTV.DecMapInt16Int16V(v, false, d)
  16430. case *map[int16]int16:
  16431. var v2 map[int16]int16
  16432. v2, changed = fastpathTV.DecMapInt16Int16V(*v, true, d)
  16433. if changed {
  16434. *v = v2
  16435. }
  16436. case map[int16]int32:
  16437. fastpathTV.DecMapInt16Int32V(v, false, d)
  16438. case *map[int16]int32:
  16439. var v2 map[int16]int32
  16440. v2, changed = fastpathTV.DecMapInt16Int32V(*v, true, d)
  16441. if changed {
  16442. *v = v2
  16443. }
  16444. case map[int16]int64:
  16445. fastpathTV.DecMapInt16Int64V(v, false, d)
  16446. case *map[int16]int64:
  16447. var v2 map[int16]int64
  16448. v2, changed = fastpathTV.DecMapInt16Int64V(*v, true, d)
  16449. if changed {
  16450. *v = v2
  16451. }
  16452. case map[int16]float32:
  16453. fastpathTV.DecMapInt16Float32V(v, false, d)
  16454. case *map[int16]float32:
  16455. var v2 map[int16]float32
  16456. v2, changed = fastpathTV.DecMapInt16Float32V(*v, true, d)
  16457. if changed {
  16458. *v = v2
  16459. }
  16460. case map[int16]float64:
  16461. fastpathTV.DecMapInt16Float64V(v, false, d)
  16462. case *map[int16]float64:
  16463. var v2 map[int16]float64
  16464. v2, changed = fastpathTV.DecMapInt16Float64V(*v, true, d)
  16465. if changed {
  16466. *v = v2
  16467. }
  16468. case map[int16]bool:
  16469. fastpathTV.DecMapInt16BoolV(v, false, d)
  16470. case *map[int16]bool:
  16471. var v2 map[int16]bool
  16472. v2, changed = fastpathTV.DecMapInt16BoolV(*v, true, d)
  16473. if changed {
  16474. *v = v2
  16475. }
  16476. case map[int32]interface{}:
  16477. fastpathTV.DecMapInt32IntfV(v, false, d)
  16478. case *map[int32]interface{}:
  16479. var v2 map[int32]interface{}
  16480. v2, changed = fastpathTV.DecMapInt32IntfV(*v, true, d)
  16481. if changed {
  16482. *v = v2
  16483. }
  16484. case map[int32]string:
  16485. fastpathTV.DecMapInt32StringV(v, false, d)
  16486. case *map[int32]string:
  16487. var v2 map[int32]string
  16488. v2, changed = fastpathTV.DecMapInt32StringV(*v, true, d)
  16489. if changed {
  16490. *v = v2
  16491. }
  16492. case map[int32]uint:
  16493. fastpathTV.DecMapInt32UintV(v, false, d)
  16494. case *map[int32]uint:
  16495. var v2 map[int32]uint
  16496. v2, changed = fastpathTV.DecMapInt32UintV(*v, true, d)
  16497. if changed {
  16498. *v = v2
  16499. }
  16500. case map[int32]uint8:
  16501. fastpathTV.DecMapInt32Uint8V(v, false, d)
  16502. case *map[int32]uint8:
  16503. var v2 map[int32]uint8
  16504. v2, changed = fastpathTV.DecMapInt32Uint8V(*v, true, d)
  16505. if changed {
  16506. *v = v2
  16507. }
  16508. case map[int32]uint16:
  16509. fastpathTV.DecMapInt32Uint16V(v, false, d)
  16510. case *map[int32]uint16:
  16511. var v2 map[int32]uint16
  16512. v2, changed = fastpathTV.DecMapInt32Uint16V(*v, true, d)
  16513. if changed {
  16514. *v = v2
  16515. }
  16516. case map[int32]uint32:
  16517. fastpathTV.DecMapInt32Uint32V(v, false, d)
  16518. case *map[int32]uint32:
  16519. var v2 map[int32]uint32
  16520. v2, changed = fastpathTV.DecMapInt32Uint32V(*v, true, d)
  16521. if changed {
  16522. *v = v2
  16523. }
  16524. case map[int32]uint64:
  16525. fastpathTV.DecMapInt32Uint64V(v, false, d)
  16526. case *map[int32]uint64:
  16527. var v2 map[int32]uint64
  16528. v2, changed = fastpathTV.DecMapInt32Uint64V(*v, true, d)
  16529. if changed {
  16530. *v = v2
  16531. }
  16532. case map[int32]uintptr:
  16533. fastpathTV.DecMapInt32UintptrV(v, false, d)
  16534. case *map[int32]uintptr:
  16535. var v2 map[int32]uintptr
  16536. v2, changed = fastpathTV.DecMapInt32UintptrV(*v, true, d)
  16537. if changed {
  16538. *v = v2
  16539. }
  16540. case map[int32]int:
  16541. fastpathTV.DecMapInt32IntV(v, false, d)
  16542. case *map[int32]int:
  16543. var v2 map[int32]int
  16544. v2, changed = fastpathTV.DecMapInt32IntV(*v, true, d)
  16545. if changed {
  16546. *v = v2
  16547. }
  16548. case map[int32]int8:
  16549. fastpathTV.DecMapInt32Int8V(v, false, d)
  16550. case *map[int32]int8:
  16551. var v2 map[int32]int8
  16552. v2, changed = fastpathTV.DecMapInt32Int8V(*v, true, d)
  16553. if changed {
  16554. *v = v2
  16555. }
  16556. case map[int32]int16:
  16557. fastpathTV.DecMapInt32Int16V(v, false, d)
  16558. case *map[int32]int16:
  16559. var v2 map[int32]int16
  16560. v2, changed = fastpathTV.DecMapInt32Int16V(*v, true, d)
  16561. if changed {
  16562. *v = v2
  16563. }
  16564. case map[int32]int32:
  16565. fastpathTV.DecMapInt32Int32V(v, false, d)
  16566. case *map[int32]int32:
  16567. var v2 map[int32]int32
  16568. v2, changed = fastpathTV.DecMapInt32Int32V(*v, true, d)
  16569. if changed {
  16570. *v = v2
  16571. }
  16572. case map[int32]int64:
  16573. fastpathTV.DecMapInt32Int64V(v, false, d)
  16574. case *map[int32]int64:
  16575. var v2 map[int32]int64
  16576. v2, changed = fastpathTV.DecMapInt32Int64V(*v, true, d)
  16577. if changed {
  16578. *v = v2
  16579. }
  16580. case map[int32]float32:
  16581. fastpathTV.DecMapInt32Float32V(v, false, d)
  16582. case *map[int32]float32:
  16583. var v2 map[int32]float32
  16584. v2, changed = fastpathTV.DecMapInt32Float32V(*v, true, d)
  16585. if changed {
  16586. *v = v2
  16587. }
  16588. case map[int32]float64:
  16589. fastpathTV.DecMapInt32Float64V(v, false, d)
  16590. case *map[int32]float64:
  16591. var v2 map[int32]float64
  16592. v2, changed = fastpathTV.DecMapInt32Float64V(*v, true, d)
  16593. if changed {
  16594. *v = v2
  16595. }
  16596. case map[int32]bool:
  16597. fastpathTV.DecMapInt32BoolV(v, false, d)
  16598. case *map[int32]bool:
  16599. var v2 map[int32]bool
  16600. v2, changed = fastpathTV.DecMapInt32BoolV(*v, true, d)
  16601. if changed {
  16602. *v = v2
  16603. }
  16604. case map[int64]interface{}:
  16605. fastpathTV.DecMapInt64IntfV(v, false, d)
  16606. case *map[int64]interface{}:
  16607. var v2 map[int64]interface{}
  16608. v2, changed = fastpathTV.DecMapInt64IntfV(*v, true, d)
  16609. if changed {
  16610. *v = v2
  16611. }
  16612. case map[int64]string:
  16613. fastpathTV.DecMapInt64StringV(v, false, d)
  16614. case *map[int64]string:
  16615. var v2 map[int64]string
  16616. v2, changed = fastpathTV.DecMapInt64StringV(*v, true, d)
  16617. if changed {
  16618. *v = v2
  16619. }
  16620. case map[int64]uint:
  16621. fastpathTV.DecMapInt64UintV(v, false, d)
  16622. case *map[int64]uint:
  16623. var v2 map[int64]uint
  16624. v2, changed = fastpathTV.DecMapInt64UintV(*v, true, d)
  16625. if changed {
  16626. *v = v2
  16627. }
  16628. case map[int64]uint8:
  16629. fastpathTV.DecMapInt64Uint8V(v, false, d)
  16630. case *map[int64]uint8:
  16631. var v2 map[int64]uint8
  16632. v2, changed = fastpathTV.DecMapInt64Uint8V(*v, true, d)
  16633. if changed {
  16634. *v = v2
  16635. }
  16636. case map[int64]uint16:
  16637. fastpathTV.DecMapInt64Uint16V(v, false, d)
  16638. case *map[int64]uint16:
  16639. var v2 map[int64]uint16
  16640. v2, changed = fastpathTV.DecMapInt64Uint16V(*v, true, d)
  16641. if changed {
  16642. *v = v2
  16643. }
  16644. case map[int64]uint32:
  16645. fastpathTV.DecMapInt64Uint32V(v, false, d)
  16646. case *map[int64]uint32:
  16647. var v2 map[int64]uint32
  16648. v2, changed = fastpathTV.DecMapInt64Uint32V(*v, true, d)
  16649. if changed {
  16650. *v = v2
  16651. }
  16652. case map[int64]uint64:
  16653. fastpathTV.DecMapInt64Uint64V(v, false, d)
  16654. case *map[int64]uint64:
  16655. var v2 map[int64]uint64
  16656. v2, changed = fastpathTV.DecMapInt64Uint64V(*v, true, d)
  16657. if changed {
  16658. *v = v2
  16659. }
  16660. case map[int64]uintptr:
  16661. fastpathTV.DecMapInt64UintptrV(v, false, d)
  16662. case *map[int64]uintptr:
  16663. var v2 map[int64]uintptr
  16664. v2, changed = fastpathTV.DecMapInt64UintptrV(*v, true, d)
  16665. if changed {
  16666. *v = v2
  16667. }
  16668. case map[int64]int:
  16669. fastpathTV.DecMapInt64IntV(v, false, d)
  16670. case *map[int64]int:
  16671. var v2 map[int64]int
  16672. v2, changed = fastpathTV.DecMapInt64IntV(*v, true, d)
  16673. if changed {
  16674. *v = v2
  16675. }
  16676. case map[int64]int8:
  16677. fastpathTV.DecMapInt64Int8V(v, false, d)
  16678. case *map[int64]int8:
  16679. var v2 map[int64]int8
  16680. v2, changed = fastpathTV.DecMapInt64Int8V(*v, true, d)
  16681. if changed {
  16682. *v = v2
  16683. }
  16684. case map[int64]int16:
  16685. fastpathTV.DecMapInt64Int16V(v, false, d)
  16686. case *map[int64]int16:
  16687. var v2 map[int64]int16
  16688. v2, changed = fastpathTV.DecMapInt64Int16V(*v, true, d)
  16689. if changed {
  16690. *v = v2
  16691. }
  16692. case map[int64]int32:
  16693. fastpathTV.DecMapInt64Int32V(v, false, d)
  16694. case *map[int64]int32:
  16695. var v2 map[int64]int32
  16696. v2, changed = fastpathTV.DecMapInt64Int32V(*v, true, d)
  16697. if changed {
  16698. *v = v2
  16699. }
  16700. case map[int64]int64:
  16701. fastpathTV.DecMapInt64Int64V(v, false, d)
  16702. case *map[int64]int64:
  16703. var v2 map[int64]int64
  16704. v2, changed = fastpathTV.DecMapInt64Int64V(*v, true, d)
  16705. if changed {
  16706. *v = v2
  16707. }
  16708. case map[int64]float32:
  16709. fastpathTV.DecMapInt64Float32V(v, false, d)
  16710. case *map[int64]float32:
  16711. var v2 map[int64]float32
  16712. v2, changed = fastpathTV.DecMapInt64Float32V(*v, true, d)
  16713. if changed {
  16714. *v = v2
  16715. }
  16716. case map[int64]float64:
  16717. fastpathTV.DecMapInt64Float64V(v, false, d)
  16718. case *map[int64]float64:
  16719. var v2 map[int64]float64
  16720. v2, changed = fastpathTV.DecMapInt64Float64V(*v, true, d)
  16721. if changed {
  16722. *v = v2
  16723. }
  16724. case map[int64]bool:
  16725. fastpathTV.DecMapInt64BoolV(v, false, d)
  16726. case *map[int64]bool:
  16727. var v2 map[int64]bool
  16728. v2, changed = fastpathTV.DecMapInt64BoolV(*v, true, d)
  16729. if changed {
  16730. *v = v2
  16731. }
  16732. case map[bool]interface{}:
  16733. fastpathTV.DecMapBoolIntfV(v, false, d)
  16734. case *map[bool]interface{}:
  16735. var v2 map[bool]interface{}
  16736. v2, changed = fastpathTV.DecMapBoolIntfV(*v, true, d)
  16737. if changed {
  16738. *v = v2
  16739. }
  16740. case map[bool]string:
  16741. fastpathTV.DecMapBoolStringV(v, false, d)
  16742. case *map[bool]string:
  16743. var v2 map[bool]string
  16744. v2, changed = fastpathTV.DecMapBoolStringV(*v, true, d)
  16745. if changed {
  16746. *v = v2
  16747. }
  16748. case map[bool]uint:
  16749. fastpathTV.DecMapBoolUintV(v, false, d)
  16750. case *map[bool]uint:
  16751. var v2 map[bool]uint
  16752. v2, changed = fastpathTV.DecMapBoolUintV(*v, true, d)
  16753. if changed {
  16754. *v = v2
  16755. }
  16756. case map[bool]uint8:
  16757. fastpathTV.DecMapBoolUint8V(v, false, d)
  16758. case *map[bool]uint8:
  16759. var v2 map[bool]uint8
  16760. v2, changed = fastpathTV.DecMapBoolUint8V(*v, true, d)
  16761. if changed {
  16762. *v = v2
  16763. }
  16764. case map[bool]uint16:
  16765. fastpathTV.DecMapBoolUint16V(v, false, d)
  16766. case *map[bool]uint16:
  16767. var v2 map[bool]uint16
  16768. v2, changed = fastpathTV.DecMapBoolUint16V(*v, true, d)
  16769. if changed {
  16770. *v = v2
  16771. }
  16772. case map[bool]uint32:
  16773. fastpathTV.DecMapBoolUint32V(v, false, d)
  16774. case *map[bool]uint32:
  16775. var v2 map[bool]uint32
  16776. v2, changed = fastpathTV.DecMapBoolUint32V(*v, true, d)
  16777. if changed {
  16778. *v = v2
  16779. }
  16780. case map[bool]uint64:
  16781. fastpathTV.DecMapBoolUint64V(v, false, d)
  16782. case *map[bool]uint64:
  16783. var v2 map[bool]uint64
  16784. v2, changed = fastpathTV.DecMapBoolUint64V(*v, true, d)
  16785. if changed {
  16786. *v = v2
  16787. }
  16788. case map[bool]uintptr:
  16789. fastpathTV.DecMapBoolUintptrV(v, false, d)
  16790. case *map[bool]uintptr:
  16791. var v2 map[bool]uintptr
  16792. v2, changed = fastpathTV.DecMapBoolUintptrV(*v, true, d)
  16793. if changed {
  16794. *v = v2
  16795. }
  16796. case map[bool]int:
  16797. fastpathTV.DecMapBoolIntV(v, false, d)
  16798. case *map[bool]int:
  16799. var v2 map[bool]int
  16800. v2, changed = fastpathTV.DecMapBoolIntV(*v, true, d)
  16801. if changed {
  16802. *v = v2
  16803. }
  16804. case map[bool]int8:
  16805. fastpathTV.DecMapBoolInt8V(v, false, d)
  16806. case *map[bool]int8:
  16807. var v2 map[bool]int8
  16808. v2, changed = fastpathTV.DecMapBoolInt8V(*v, true, d)
  16809. if changed {
  16810. *v = v2
  16811. }
  16812. case map[bool]int16:
  16813. fastpathTV.DecMapBoolInt16V(v, false, d)
  16814. case *map[bool]int16:
  16815. var v2 map[bool]int16
  16816. v2, changed = fastpathTV.DecMapBoolInt16V(*v, true, d)
  16817. if changed {
  16818. *v = v2
  16819. }
  16820. case map[bool]int32:
  16821. fastpathTV.DecMapBoolInt32V(v, false, d)
  16822. case *map[bool]int32:
  16823. var v2 map[bool]int32
  16824. v2, changed = fastpathTV.DecMapBoolInt32V(*v, true, d)
  16825. if changed {
  16826. *v = v2
  16827. }
  16828. case map[bool]int64:
  16829. fastpathTV.DecMapBoolInt64V(v, false, d)
  16830. case *map[bool]int64:
  16831. var v2 map[bool]int64
  16832. v2, changed = fastpathTV.DecMapBoolInt64V(*v, true, d)
  16833. if changed {
  16834. *v = v2
  16835. }
  16836. case map[bool]float32:
  16837. fastpathTV.DecMapBoolFloat32V(v, false, d)
  16838. case *map[bool]float32:
  16839. var v2 map[bool]float32
  16840. v2, changed = fastpathTV.DecMapBoolFloat32V(*v, true, d)
  16841. if changed {
  16842. *v = v2
  16843. }
  16844. case map[bool]float64:
  16845. fastpathTV.DecMapBoolFloat64V(v, false, d)
  16846. case *map[bool]float64:
  16847. var v2 map[bool]float64
  16848. v2, changed = fastpathTV.DecMapBoolFloat64V(*v, true, d)
  16849. if changed {
  16850. *v = v2
  16851. }
  16852. case map[bool]bool:
  16853. fastpathTV.DecMapBoolBoolV(v, false, d)
  16854. case *map[bool]bool:
  16855. var v2 map[bool]bool
  16856. v2, changed = fastpathTV.DecMapBoolBoolV(*v, true, d)
  16857. if changed {
  16858. *v = v2
  16859. }
  16860. default:
  16861. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  16862. return false
  16863. }
  16864. return true
  16865. }
  16866. func fastpathDecodeSetZeroTypeSwitch(iv interface{}) bool {
  16867. switch v := iv.(type) {
  16868. case *[]interface{}:
  16869. *v = nil
  16870. case *[]string:
  16871. *v = nil
  16872. case *[]float32:
  16873. *v = nil
  16874. case *[]float64:
  16875. *v = nil
  16876. case *[]uint:
  16877. *v = nil
  16878. case *[]uint8:
  16879. *v = nil
  16880. case *[]uint16:
  16881. *v = nil
  16882. case *[]uint32:
  16883. *v = nil
  16884. case *[]uint64:
  16885. *v = nil
  16886. case *[]uintptr:
  16887. *v = nil
  16888. case *[]int:
  16889. *v = nil
  16890. case *[]int8:
  16891. *v = nil
  16892. case *[]int16:
  16893. *v = nil
  16894. case *[]int32:
  16895. *v = nil
  16896. case *[]int64:
  16897. *v = nil
  16898. case *[]bool:
  16899. *v = nil
  16900. case *map[interface{}]interface{}:
  16901. *v = nil
  16902. case *map[interface{}]string:
  16903. *v = nil
  16904. case *map[interface{}]uint:
  16905. *v = nil
  16906. case *map[interface{}]uint8:
  16907. *v = nil
  16908. case *map[interface{}]uint16:
  16909. *v = nil
  16910. case *map[interface{}]uint32:
  16911. *v = nil
  16912. case *map[interface{}]uint64:
  16913. *v = nil
  16914. case *map[interface{}]uintptr:
  16915. *v = nil
  16916. case *map[interface{}]int:
  16917. *v = nil
  16918. case *map[interface{}]int8:
  16919. *v = nil
  16920. case *map[interface{}]int16:
  16921. *v = nil
  16922. case *map[interface{}]int32:
  16923. *v = nil
  16924. case *map[interface{}]int64:
  16925. *v = nil
  16926. case *map[interface{}]float32:
  16927. *v = nil
  16928. case *map[interface{}]float64:
  16929. *v = nil
  16930. case *map[interface{}]bool:
  16931. *v = nil
  16932. case *map[string]interface{}:
  16933. *v = nil
  16934. case *map[string]string:
  16935. *v = nil
  16936. case *map[string]uint:
  16937. *v = nil
  16938. case *map[string]uint8:
  16939. *v = nil
  16940. case *map[string]uint16:
  16941. *v = nil
  16942. case *map[string]uint32:
  16943. *v = nil
  16944. case *map[string]uint64:
  16945. *v = nil
  16946. case *map[string]uintptr:
  16947. *v = nil
  16948. case *map[string]int:
  16949. *v = nil
  16950. case *map[string]int8:
  16951. *v = nil
  16952. case *map[string]int16:
  16953. *v = nil
  16954. case *map[string]int32:
  16955. *v = nil
  16956. case *map[string]int64:
  16957. *v = nil
  16958. case *map[string]float32:
  16959. *v = nil
  16960. case *map[string]float64:
  16961. *v = nil
  16962. case *map[string]bool:
  16963. *v = nil
  16964. case *map[float32]interface{}:
  16965. *v = nil
  16966. case *map[float32]string:
  16967. *v = nil
  16968. case *map[float32]uint:
  16969. *v = nil
  16970. case *map[float32]uint8:
  16971. *v = nil
  16972. case *map[float32]uint16:
  16973. *v = nil
  16974. case *map[float32]uint32:
  16975. *v = nil
  16976. case *map[float32]uint64:
  16977. *v = nil
  16978. case *map[float32]uintptr:
  16979. *v = nil
  16980. case *map[float32]int:
  16981. *v = nil
  16982. case *map[float32]int8:
  16983. *v = nil
  16984. case *map[float32]int16:
  16985. *v = nil
  16986. case *map[float32]int32:
  16987. *v = nil
  16988. case *map[float32]int64:
  16989. *v = nil
  16990. case *map[float32]float32:
  16991. *v = nil
  16992. case *map[float32]float64:
  16993. *v = nil
  16994. case *map[float32]bool:
  16995. *v = nil
  16996. case *map[float64]interface{}:
  16997. *v = nil
  16998. case *map[float64]string:
  16999. *v = nil
  17000. case *map[float64]uint:
  17001. *v = nil
  17002. case *map[float64]uint8:
  17003. *v = nil
  17004. case *map[float64]uint16:
  17005. *v = nil
  17006. case *map[float64]uint32:
  17007. *v = nil
  17008. case *map[float64]uint64:
  17009. *v = nil
  17010. case *map[float64]uintptr:
  17011. *v = nil
  17012. case *map[float64]int:
  17013. *v = nil
  17014. case *map[float64]int8:
  17015. *v = nil
  17016. case *map[float64]int16:
  17017. *v = nil
  17018. case *map[float64]int32:
  17019. *v = nil
  17020. case *map[float64]int64:
  17021. *v = nil
  17022. case *map[float64]float32:
  17023. *v = nil
  17024. case *map[float64]float64:
  17025. *v = nil
  17026. case *map[float64]bool:
  17027. *v = nil
  17028. case *map[uint]interface{}:
  17029. *v = nil
  17030. case *map[uint]string:
  17031. *v = nil
  17032. case *map[uint]uint:
  17033. *v = nil
  17034. case *map[uint]uint8:
  17035. *v = nil
  17036. case *map[uint]uint16:
  17037. *v = nil
  17038. case *map[uint]uint32:
  17039. *v = nil
  17040. case *map[uint]uint64:
  17041. *v = nil
  17042. case *map[uint]uintptr:
  17043. *v = nil
  17044. case *map[uint]int:
  17045. *v = nil
  17046. case *map[uint]int8:
  17047. *v = nil
  17048. case *map[uint]int16:
  17049. *v = nil
  17050. case *map[uint]int32:
  17051. *v = nil
  17052. case *map[uint]int64:
  17053. *v = nil
  17054. case *map[uint]float32:
  17055. *v = nil
  17056. case *map[uint]float64:
  17057. *v = nil
  17058. case *map[uint]bool:
  17059. *v = nil
  17060. case *map[uint8]interface{}:
  17061. *v = nil
  17062. case *map[uint8]string:
  17063. *v = nil
  17064. case *map[uint8]uint:
  17065. *v = nil
  17066. case *map[uint8]uint8:
  17067. *v = nil
  17068. case *map[uint8]uint16:
  17069. *v = nil
  17070. case *map[uint8]uint32:
  17071. *v = nil
  17072. case *map[uint8]uint64:
  17073. *v = nil
  17074. case *map[uint8]uintptr:
  17075. *v = nil
  17076. case *map[uint8]int:
  17077. *v = nil
  17078. case *map[uint8]int8:
  17079. *v = nil
  17080. case *map[uint8]int16:
  17081. *v = nil
  17082. case *map[uint8]int32:
  17083. *v = nil
  17084. case *map[uint8]int64:
  17085. *v = nil
  17086. case *map[uint8]float32:
  17087. *v = nil
  17088. case *map[uint8]float64:
  17089. *v = nil
  17090. case *map[uint8]bool:
  17091. *v = nil
  17092. case *map[uint16]interface{}:
  17093. *v = nil
  17094. case *map[uint16]string:
  17095. *v = nil
  17096. case *map[uint16]uint:
  17097. *v = nil
  17098. case *map[uint16]uint8:
  17099. *v = nil
  17100. case *map[uint16]uint16:
  17101. *v = nil
  17102. case *map[uint16]uint32:
  17103. *v = nil
  17104. case *map[uint16]uint64:
  17105. *v = nil
  17106. case *map[uint16]uintptr:
  17107. *v = nil
  17108. case *map[uint16]int:
  17109. *v = nil
  17110. case *map[uint16]int8:
  17111. *v = nil
  17112. case *map[uint16]int16:
  17113. *v = nil
  17114. case *map[uint16]int32:
  17115. *v = nil
  17116. case *map[uint16]int64:
  17117. *v = nil
  17118. case *map[uint16]float32:
  17119. *v = nil
  17120. case *map[uint16]float64:
  17121. *v = nil
  17122. case *map[uint16]bool:
  17123. *v = nil
  17124. case *map[uint32]interface{}:
  17125. *v = nil
  17126. case *map[uint32]string:
  17127. *v = nil
  17128. case *map[uint32]uint:
  17129. *v = nil
  17130. case *map[uint32]uint8:
  17131. *v = nil
  17132. case *map[uint32]uint16:
  17133. *v = nil
  17134. case *map[uint32]uint32:
  17135. *v = nil
  17136. case *map[uint32]uint64:
  17137. *v = nil
  17138. case *map[uint32]uintptr:
  17139. *v = nil
  17140. case *map[uint32]int:
  17141. *v = nil
  17142. case *map[uint32]int8:
  17143. *v = nil
  17144. case *map[uint32]int16:
  17145. *v = nil
  17146. case *map[uint32]int32:
  17147. *v = nil
  17148. case *map[uint32]int64:
  17149. *v = nil
  17150. case *map[uint32]float32:
  17151. *v = nil
  17152. case *map[uint32]float64:
  17153. *v = nil
  17154. case *map[uint32]bool:
  17155. *v = nil
  17156. case *map[uint64]interface{}:
  17157. *v = nil
  17158. case *map[uint64]string:
  17159. *v = nil
  17160. case *map[uint64]uint:
  17161. *v = nil
  17162. case *map[uint64]uint8:
  17163. *v = nil
  17164. case *map[uint64]uint16:
  17165. *v = nil
  17166. case *map[uint64]uint32:
  17167. *v = nil
  17168. case *map[uint64]uint64:
  17169. *v = nil
  17170. case *map[uint64]uintptr:
  17171. *v = nil
  17172. case *map[uint64]int:
  17173. *v = nil
  17174. case *map[uint64]int8:
  17175. *v = nil
  17176. case *map[uint64]int16:
  17177. *v = nil
  17178. case *map[uint64]int32:
  17179. *v = nil
  17180. case *map[uint64]int64:
  17181. *v = nil
  17182. case *map[uint64]float32:
  17183. *v = nil
  17184. case *map[uint64]float64:
  17185. *v = nil
  17186. case *map[uint64]bool:
  17187. *v = nil
  17188. case *map[uintptr]interface{}:
  17189. *v = nil
  17190. case *map[uintptr]string:
  17191. *v = nil
  17192. case *map[uintptr]uint:
  17193. *v = nil
  17194. case *map[uintptr]uint8:
  17195. *v = nil
  17196. case *map[uintptr]uint16:
  17197. *v = nil
  17198. case *map[uintptr]uint32:
  17199. *v = nil
  17200. case *map[uintptr]uint64:
  17201. *v = nil
  17202. case *map[uintptr]uintptr:
  17203. *v = nil
  17204. case *map[uintptr]int:
  17205. *v = nil
  17206. case *map[uintptr]int8:
  17207. *v = nil
  17208. case *map[uintptr]int16:
  17209. *v = nil
  17210. case *map[uintptr]int32:
  17211. *v = nil
  17212. case *map[uintptr]int64:
  17213. *v = nil
  17214. case *map[uintptr]float32:
  17215. *v = nil
  17216. case *map[uintptr]float64:
  17217. *v = nil
  17218. case *map[uintptr]bool:
  17219. *v = nil
  17220. case *map[int]interface{}:
  17221. *v = nil
  17222. case *map[int]string:
  17223. *v = nil
  17224. case *map[int]uint:
  17225. *v = nil
  17226. case *map[int]uint8:
  17227. *v = nil
  17228. case *map[int]uint16:
  17229. *v = nil
  17230. case *map[int]uint32:
  17231. *v = nil
  17232. case *map[int]uint64:
  17233. *v = nil
  17234. case *map[int]uintptr:
  17235. *v = nil
  17236. case *map[int]int:
  17237. *v = nil
  17238. case *map[int]int8:
  17239. *v = nil
  17240. case *map[int]int16:
  17241. *v = nil
  17242. case *map[int]int32:
  17243. *v = nil
  17244. case *map[int]int64:
  17245. *v = nil
  17246. case *map[int]float32:
  17247. *v = nil
  17248. case *map[int]float64:
  17249. *v = nil
  17250. case *map[int]bool:
  17251. *v = nil
  17252. case *map[int8]interface{}:
  17253. *v = nil
  17254. case *map[int8]string:
  17255. *v = nil
  17256. case *map[int8]uint:
  17257. *v = nil
  17258. case *map[int8]uint8:
  17259. *v = nil
  17260. case *map[int8]uint16:
  17261. *v = nil
  17262. case *map[int8]uint32:
  17263. *v = nil
  17264. case *map[int8]uint64:
  17265. *v = nil
  17266. case *map[int8]uintptr:
  17267. *v = nil
  17268. case *map[int8]int:
  17269. *v = nil
  17270. case *map[int8]int8:
  17271. *v = nil
  17272. case *map[int8]int16:
  17273. *v = nil
  17274. case *map[int8]int32:
  17275. *v = nil
  17276. case *map[int8]int64:
  17277. *v = nil
  17278. case *map[int8]float32:
  17279. *v = nil
  17280. case *map[int8]float64:
  17281. *v = nil
  17282. case *map[int8]bool:
  17283. *v = nil
  17284. case *map[int16]interface{}:
  17285. *v = nil
  17286. case *map[int16]string:
  17287. *v = nil
  17288. case *map[int16]uint:
  17289. *v = nil
  17290. case *map[int16]uint8:
  17291. *v = nil
  17292. case *map[int16]uint16:
  17293. *v = nil
  17294. case *map[int16]uint32:
  17295. *v = nil
  17296. case *map[int16]uint64:
  17297. *v = nil
  17298. case *map[int16]uintptr:
  17299. *v = nil
  17300. case *map[int16]int:
  17301. *v = nil
  17302. case *map[int16]int8:
  17303. *v = nil
  17304. case *map[int16]int16:
  17305. *v = nil
  17306. case *map[int16]int32:
  17307. *v = nil
  17308. case *map[int16]int64:
  17309. *v = nil
  17310. case *map[int16]float32:
  17311. *v = nil
  17312. case *map[int16]float64:
  17313. *v = nil
  17314. case *map[int16]bool:
  17315. *v = nil
  17316. case *map[int32]interface{}:
  17317. *v = nil
  17318. case *map[int32]string:
  17319. *v = nil
  17320. case *map[int32]uint:
  17321. *v = nil
  17322. case *map[int32]uint8:
  17323. *v = nil
  17324. case *map[int32]uint16:
  17325. *v = nil
  17326. case *map[int32]uint32:
  17327. *v = nil
  17328. case *map[int32]uint64:
  17329. *v = nil
  17330. case *map[int32]uintptr:
  17331. *v = nil
  17332. case *map[int32]int:
  17333. *v = nil
  17334. case *map[int32]int8:
  17335. *v = nil
  17336. case *map[int32]int16:
  17337. *v = nil
  17338. case *map[int32]int32:
  17339. *v = nil
  17340. case *map[int32]int64:
  17341. *v = nil
  17342. case *map[int32]float32:
  17343. *v = nil
  17344. case *map[int32]float64:
  17345. *v = nil
  17346. case *map[int32]bool:
  17347. *v = nil
  17348. case *map[int64]interface{}:
  17349. *v = nil
  17350. case *map[int64]string:
  17351. *v = nil
  17352. case *map[int64]uint:
  17353. *v = nil
  17354. case *map[int64]uint8:
  17355. *v = nil
  17356. case *map[int64]uint16:
  17357. *v = nil
  17358. case *map[int64]uint32:
  17359. *v = nil
  17360. case *map[int64]uint64:
  17361. *v = nil
  17362. case *map[int64]uintptr:
  17363. *v = nil
  17364. case *map[int64]int:
  17365. *v = nil
  17366. case *map[int64]int8:
  17367. *v = nil
  17368. case *map[int64]int16:
  17369. *v = nil
  17370. case *map[int64]int32:
  17371. *v = nil
  17372. case *map[int64]int64:
  17373. *v = nil
  17374. case *map[int64]float32:
  17375. *v = nil
  17376. case *map[int64]float64:
  17377. *v = nil
  17378. case *map[int64]bool:
  17379. *v = nil
  17380. case *map[bool]interface{}:
  17381. *v = nil
  17382. case *map[bool]string:
  17383. *v = nil
  17384. case *map[bool]uint:
  17385. *v = nil
  17386. case *map[bool]uint8:
  17387. *v = nil
  17388. case *map[bool]uint16:
  17389. *v = nil
  17390. case *map[bool]uint32:
  17391. *v = nil
  17392. case *map[bool]uint64:
  17393. *v = nil
  17394. case *map[bool]uintptr:
  17395. *v = nil
  17396. case *map[bool]int:
  17397. *v = nil
  17398. case *map[bool]int8:
  17399. *v = nil
  17400. case *map[bool]int16:
  17401. *v = nil
  17402. case *map[bool]int32:
  17403. *v = nil
  17404. case *map[bool]int64:
  17405. *v = nil
  17406. case *map[bool]float32:
  17407. *v = nil
  17408. case *map[bool]float64:
  17409. *v = nil
  17410. case *map[bool]bool:
  17411. *v = nil
  17412. default:
  17413. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  17414. return false
  17415. }
  17416. return true
  17417. }
  17418. // -- -- fast path functions
  17419. func (d *Decoder) fastpathDecSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  17420. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17421. vp := rv2i(rv).(*[]interface{})
  17422. v, changed := fastpathTV.DecSliceIntfV(*vp, !array, d)
  17423. if changed {
  17424. *vp = v
  17425. }
  17426. } else {
  17427. v := rv2i(rv).([]interface{})
  17428. v2, changed := fastpathTV.DecSliceIntfV(v, !array, d)
  17429. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17430. copy(v, v2)
  17431. }
  17432. }
  17433. }
  17434. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, d *Decoder) {
  17435. v, changed := f.DecSliceIntfV(*vp, true, d)
  17436. if changed {
  17437. *vp = v
  17438. }
  17439. }
  17440. func (_ fastpathT) DecSliceIntfV(v []interface{}, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  17441. dd := d.d
  17442. slh, containerLenS := d.decSliceHelperStart()
  17443. if containerLenS == 0 {
  17444. if canChange {
  17445. if v == nil {
  17446. v = []interface{}{}
  17447. } else if len(v) != 0 {
  17448. v = v[:0]
  17449. }
  17450. changed = true
  17451. }
  17452. slh.End()
  17453. return v, changed
  17454. }
  17455. hasLen := containerLenS > 0
  17456. var xlen int
  17457. if hasLen && canChange {
  17458. if containerLenS > cap(v) {
  17459. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17460. if xlen <= cap(v) {
  17461. v = v[:xlen]
  17462. } else {
  17463. v = make([]interface{}, xlen)
  17464. }
  17465. changed = true
  17466. } else if containerLenS != len(v) {
  17467. v = v[:containerLenS]
  17468. changed = true
  17469. }
  17470. }
  17471. j := 0
  17472. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17473. if j == 0 && len(v) == 0 && canChange {
  17474. if hasLen {
  17475. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17476. } else {
  17477. xlen = 8
  17478. }
  17479. v = make([]interface{}, xlen)
  17480. changed = true
  17481. }
  17482. // if indefinite, etc, then expand the slice if necessary
  17483. var decodeIntoBlank bool
  17484. if j >= len(v) {
  17485. if canChange {
  17486. v = append(v, nil)
  17487. changed = true
  17488. } else {
  17489. d.arrayCannotExpand(len(v), j+1)
  17490. decodeIntoBlank = true
  17491. }
  17492. }
  17493. slh.ElemContainerState(j)
  17494. if decodeIntoBlank {
  17495. d.swallow()
  17496. } else if dd.TryDecodeAsNil() {
  17497. v[j] = nil
  17498. } else {
  17499. d.decode(&v[j])
  17500. }
  17501. }
  17502. if canChange {
  17503. if j < len(v) {
  17504. v = v[:j]
  17505. changed = true
  17506. } else if j == 0 && v == nil {
  17507. v = make([]interface{}, 0)
  17508. changed = true
  17509. }
  17510. }
  17511. slh.End()
  17512. return v, changed
  17513. }
  17514. func (d *Decoder) fastpathDecSliceStringR(f *codecFnInfo, rv reflect.Value) {
  17515. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17516. vp := rv2i(rv).(*[]string)
  17517. v, changed := fastpathTV.DecSliceStringV(*vp, !array, d)
  17518. if changed {
  17519. *vp = v
  17520. }
  17521. } else {
  17522. v := rv2i(rv).([]string)
  17523. v2, changed := fastpathTV.DecSliceStringV(v, !array, d)
  17524. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17525. copy(v, v2)
  17526. }
  17527. }
  17528. }
  17529. func (f fastpathT) DecSliceStringX(vp *[]string, d *Decoder) {
  17530. v, changed := f.DecSliceStringV(*vp, true, d)
  17531. if changed {
  17532. *vp = v
  17533. }
  17534. }
  17535. func (_ fastpathT) DecSliceStringV(v []string, canChange bool, d *Decoder) (_ []string, changed bool) {
  17536. dd := d.d
  17537. slh, containerLenS := d.decSliceHelperStart()
  17538. if containerLenS == 0 {
  17539. if canChange {
  17540. if v == nil {
  17541. v = []string{}
  17542. } else if len(v) != 0 {
  17543. v = v[:0]
  17544. }
  17545. changed = true
  17546. }
  17547. slh.End()
  17548. return v, changed
  17549. }
  17550. hasLen := containerLenS > 0
  17551. var xlen int
  17552. if hasLen && canChange {
  17553. if containerLenS > cap(v) {
  17554. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17555. if xlen <= cap(v) {
  17556. v = v[:xlen]
  17557. } else {
  17558. v = make([]string, xlen)
  17559. }
  17560. changed = true
  17561. } else if containerLenS != len(v) {
  17562. v = v[:containerLenS]
  17563. changed = true
  17564. }
  17565. }
  17566. j := 0
  17567. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17568. if j == 0 && len(v) == 0 && canChange {
  17569. if hasLen {
  17570. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17571. } else {
  17572. xlen = 8
  17573. }
  17574. v = make([]string, xlen)
  17575. changed = true
  17576. }
  17577. // if indefinite, etc, then expand the slice if necessary
  17578. var decodeIntoBlank bool
  17579. if j >= len(v) {
  17580. if canChange {
  17581. v = append(v, "")
  17582. changed = true
  17583. } else {
  17584. d.arrayCannotExpand(len(v), j+1)
  17585. decodeIntoBlank = true
  17586. }
  17587. }
  17588. slh.ElemContainerState(j)
  17589. if decodeIntoBlank {
  17590. d.swallow()
  17591. } else if dd.TryDecodeAsNil() {
  17592. v[j] = ""
  17593. } else {
  17594. v[j] = dd.DecodeString()
  17595. }
  17596. }
  17597. if canChange {
  17598. if j < len(v) {
  17599. v = v[:j]
  17600. changed = true
  17601. } else if j == 0 && v == nil {
  17602. v = make([]string, 0)
  17603. changed = true
  17604. }
  17605. }
  17606. slh.End()
  17607. return v, changed
  17608. }
  17609. func (d *Decoder) fastpathDecSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  17610. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17611. vp := rv2i(rv).(*[]float32)
  17612. v, changed := fastpathTV.DecSliceFloat32V(*vp, !array, d)
  17613. if changed {
  17614. *vp = v
  17615. }
  17616. } else {
  17617. v := rv2i(rv).([]float32)
  17618. v2, changed := fastpathTV.DecSliceFloat32V(v, !array, d)
  17619. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17620. copy(v, v2)
  17621. }
  17622. }
  17623. }
  17624. func (f fastpathT) DecSliceFloat32X(vp *[]float32, d *Decoder) {
  17625. v, changed := f.DecSliceFloat32V(*vp, true, d)
  17626. if changed {
  17627. *vp = v
  17628. }
  17629. }
  17630. func (_ fastpathT) DecSliceFloat32V(v []float32, canChange bool, d *Decoder) (_ []float32, changed bool) {
  17631. dd := d.d
  17632. slh, containerLenS := d.decSliceHelperStart()
  17633. if containerLenS == 0 {
  17634. if canChange {
  17635. if v == nil {
  17636. v = []float32{}
  17637. } else if len(v) != 0 {
  17638. v = v[:0]
  17639. }
  17640. changed = true
  17641. }
  17642. slh.End()
  17643. return v, changed
  17644. }
  17645. hasLen := containerLenS > 0
  17646. var xlen int
  17647. if hasLen && canChange {
  17648. if containerLenS > cap(v) {
  17649. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17650. if xlen <= cap(v) {
  17651. v = v[:xlen]
  17652. } else {
  17653. v = make([]float32, xlen)
  17654. }
  17655. changed = true
  17656. } else if containerLenS != len(v) {
  17657. v = v[:containerLenS]
  17658. changed = true
  17659. }
  17660. }
  17661. j := 0
  17662. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17663. if j == 0 && len(v) == 0 && canChange {
  17664. if hasLen {
  17665. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17666. } else {
  17667. xlen = 8
  17668. }
  17669. v = make([]float32, xlen)
  17670. changed = true
  17671. }
  17672. // if indefinite, etc, then expand the slice if necessary
  17673. var decodeIntoBlank bool
  17674. if j >= len(v) {
  17675. if canChange {
  17676. v = append(v, 0)
  17677. changed = true
  17678. } else {
  17679. d.arrayCannotExpand(len(v), j+1)
  17680. decodeIntoBlank = true
  17681. }
  17682. }
  17683. slh.ElemContainerState(j)
  17684. if decodeIntoBlank {
  17685. d.swallow()
  17686. } else if dd.TryDecodeAsNil() {
  17687. v[j] = 0
  17688. } else {
  17689. v[j] = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  17690. }
  17691. }
  17692. if canChange {
  17693. if j < len(v) {
  17694. v = v[:j]
  17695. changed = true
  17696. } else if j == 0 && v == nil {
  17697. v = make([]float32, 0)
  17698. changed = true
  17699. }
  17700. }
  17701. slh.End()
  17702. return v, changed
  17703. }
  17704. func (d *Decoder) fastpathDecSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  17705. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17706. vp := rv2i(rv).(*[]float64)
  17707. v, changed := fastpathTV.DecSliceFloat64V(*vp, !array, d)
  17708. if changed {
  17709. *vp = v
  17710. }
  17711. } else {
  17712. v := rv2i(rv).([]float64)
  17713. v2, changed := fastpathTV.DecSliceFloat64V(v, !array, d)
  17714. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17715. copy(v, v2)
  17716. }
  17717. }
  17718. }
  17719. func (f fastpathT) DecSliceFloat64X(vp *[]float64, d *Decoder) {
  17720. v, changed := f.DecSliceFloat64V(*vp, true, d)
  17721. if changed {
  17722. *vp = v
  17723. }
  17724. }
  17725. func (_ fastpathT) DecSliceFloat64V(v []float64, canChange bool, d *Decoder) (_ []float64, changed bool) {
  17726. dd := d.d
  17727. slh, containerLenS := d.decSliceHelperStart()
  17728. if containerLenS == 0 {
  17729. if canChange {
  17730. if v == nil {
  17731. v = []float64{}
  17732. } else if len(v) != 0 {
  17733. v = v[:0]
  17734. }
  17735. changed = true
  17736. }
  17737. slh.End()
  17738. return v, changed
  17739. }
  17740. hasLen := containerLenS > 0
  17741. var xlen int
  17742. if hasLen && canChange {
  17743. if containerLenS > cap(v) {
  17744. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17745. if xlen <= cap(v) {
  17746. v = v[:xlen]
  17747. } else {
  17748. v = make([]float64, xlen)
  17749. }
  17750. changed = true
  17751. } else if containerLenS != len(v) {
  17752. v = v[:containerLenS]
  17753. changed = true
  17754. }
  17755. }
  17756. j := 0
  17757. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17758. if j == 0 && len(v) == 0 && canChange {
  17759. if hasLen {
  17760. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17761. } else {
  17762. xlen = 8
  17763. }
  17764. v = make([]float64, xlen)
  17765. changed = true
  17766. }
  17767. // if indefinite, etc, then expand the slice if necessary
  17768. var decodeIntoBlank bool
  17769. if j >= len(v) {
  17770. if canChange {
  17771. v = append(v, 0)
  17772. changed = true
  17773. } else {
  17774. d.arrayCannotExpand(len(v), j+1)
  17775. decodeIntoBlank = true
  17776. }
  17777. }
  17778. slh.ElemContainerState(j)
  17779. if decodeIntoBlank {
  17780. d.swallow()
  17781. } else if dd.TryDecodeAsNil() {
  17782. v[j] = 0
  17783. } else {
  17784. v[j] = dd.DecodeFloat64()
  17785. }
  17786. }
  17787. if canChange {
  17788. if j < len(v) {
  17789. v = v[:j]
  17790. changed = true
  17791. } else if j == 0 && v == nil {
  17792. v = make([]float64, 0)
  17793. changed = true
  17794. }
  17795. }
  17796. slh.End()
  17797. return v, changed
  17798. }
  17799. func (d *Decoder) fastpathDecSliceUintR(f *codecFnInfo, rv reflect.Value) {
  17800. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17801. vp := rv2i(rv).(*[]uint)
  17802. v, changed := fastpathTV.DecSliceUintV(*vp, !array, d)
  17803. if changed {
  17804. *vp = v
  17805. }
  17806. } else {
  17807. v := rv2i(rv).([]uint)
  17808. v2, changed := fastpathTV.DecSliceUintV(v, !array, d)
  17809. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17810. copy(v, v2)
  17811. }
  17812. }
  17813. }
  17814. func (f fastpathT) DecSliceUintX(vp *[]uint, d *Decoder) {
  17815. v, changed := f.DecSliceUintV(*vp, true, d)
  17816. if changed {
  17817. *vp = v
  17818. }
  17819. }
  17820. func (_ fastpathT) DecSliceUintV(v []uint, canChange bool, d *Decoder) (_ []uint, changed bool) {
  17821. dd := d.d
  17822. slh, containerLenS := d.decSliceHelperStart()
  17823. if containerLenS == 0 {
  17824. if canChange {
  17825. if v == nil {
  17826. v = []uint{}
  17827. } else if len(v) != 0 {
  17828. v = v[:0]
  17829. }
  17830. changed = true
  17831. }
  17832. slh.End()
  17833. return v, changed
  17834. }
  17835. hasLen := containerLenS > 0
  17836. var xlen int
  17837. if hasLen && canChange {
  17838. if containerLenS > cap(v) {
  17839. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17840. if xlen <= cap(v) {
  17841. v = v[:xlen]
  17842. } else {
  17843. v = make([]uint, xlen)
  17844. }
  17845. changed = true
  17846. } else if containerLenS != len(v) {
  17847. v = v[:containerLenS]
  17848. changed = true
  17849. }
  17850. }
  17851. j := 0
  17852. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17853. if j == 0 && len(v) == 0 && canChange {
  17854. if hasLen {
  17855. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17856. } else {
  17857. xlen = 8
  17858. }
  17859. v = make([]uint, xlen)
  17860. changed = true
  17861. }
  17862. // if indefinite, etc, then expand the slice if necessary
  17863. var decodeIntoBlank bool
  17864. if j >= len(v) {
  17865. if canChange {
  17866. v = append(v, 0)
  17867. changed = true
  17868. } else {
  17869. d.arrayCannotExpand(len(v), j+1)
  17870. decodeIntoBlank = true
  17871. }
  17872. }
  17873. slh.ElemContainerState(j)
  17874. if decodeIntoBlank {
  17875. d.swallow()
  17876. } else if dd.TryDecodeAsNil() {
  17877. v[j] = 0
  17878. } else {
  17879. v[j] = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  17880. }
  17881. }
  17882. if canChange {
  17883. if j < len(v) {
  17884. v = v[:j]
  17885. changed = true
  17886. } else if j == 0 && v == nil {
  17887. v = make([]uint, 0)
  17888. changed = true
  17889. }
  17890. }
  17891. slh.End()
  17892. return v, changed
  17893. }
  17894. func (d *Decoder) fastpathDecSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  17895. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17896. vp := rv2i(rv).(*[]uint8)
  17897. v, changed := fastpathTV.DecSliceUint8V(*vp, !array, d)
  17898. if changed {
  17899. *vp = v
  17900. }
  17901. } else {
  17902. v := rv2i(rv).([]uint8)
  17903. v2, changed := fastpathTV.DecSliceUint8V(v, !array, d)
  17904. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17905. copy(v, v2)
  17906. }
  17907. }
  17908. }
  17909. func (f fastpathT) DecSliceUint8X(vp *[]uint8, d *Decoder) {
  17910. v, changed := f.DecSliceUint8V(*vp, true, d)
  17911. if changed {
  17912. *vp = v
  17913. }
  17914. }
  17915. func (_ fastpathT) DecSliceUint8V(v []uint8, canChange bool, d *Decoder) (_ []uint8, changed bool) {
  17916. dd := d.d
  17917. slh, containerLenS := d.decSliceHelperStart()
  17918. if containerLenS == 0 {
  17919. if canChange {
  17920. if v == nil {
  17921. v = []uint8{}
  17922. } else if len(v) != 0 {
  17923. v = v[:0]
  17924. }
  17925. changed = true
  17926. }
  17927. slh.End()
  17928. return v, changed
  17929. }
  17930. hasLen := containerLenS > 0
  17931. var xlen int
  17932. if hasLen && canChange {
  17933. if containerLenS > cap(v) {
  17934. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17935. if xlen <= cap(v) {
  17936. v = v[:xlen]
  17937. } else {
  17938. v = make([]uint8, xlen)
  17939. }
  17940. changed = true
  17941. } else if containerLenS != len(v) {
  17942. v = v[:containerLenS]
  17943. changed = true
  17944. }
  17945. }
  17946. j := 0
  17947. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17948. if j == 0 && len(v) == 0 && canChange {
  17949. if hasLen {
  17950. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17951. } else {
  17952. xlen = 8
  17953. }
  17954. v = make([]uint8, xlen)
  17955. changed = true
  17956. }
  17957. // if indefinite, etc, then expand the slice if necessary
  17958. var decodeIntoBlank bool
  17959. if j >= len(v) {
  17960. if canChange {
  17961. v = append(v, 0)
  17962. changed = true
  17963. } else {
  17964. d.arrayCannotExpand(len(v), j+1)
  17965. decodeIntoBlank = true
  17966. }
  17967. }
  17968. slh.ElemContainerState(j)
  17969. if decodeIntoBlank {
  17970. d.swallow()
  17971. } else if dd.TryDecodeAsNil() {
  17972. v[j] = 0
  17973. } else {
  17974. v[j] = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  17975. }
  17976. }
  17977. if canChange {
  17978. if j < len(v) {
  17979. v = v[:j]
  17980. changed = true
  17981. } else if j == 0 && v == nil {
  17982. v = make([]uint8, 0)
  17983. changed = true
  17984. }
  17985. }
  17986. slh.End()
  17987. return v, changed
  17988. }
  17989. func (d *Decoder) fastpathDecSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  17990. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17991. vp := rv2i(rv).(*[]uint16)
  17992. v, changed := fastpathTV.DecSliceUint16V(*vp, !array, d)
  17993. if changed {
  17994. *vp = v
  17995. }
  17996. } else {
  17997. v := rv2i(rv).([]uint16)
  17998. v2, changed := fastpathTV.DecSliceUint16V(v, !array, d)
  17999. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18000. copy(v, v2)
  18001. }
  18002. }
  18003. }
  18004. func (f fastpathT) DecSliceUint16X(vp *[]uint16, d *Decoder) {
  18005. v, changed := f.DecSliceUint16V(*vp, true, d)
  18006. if changed {
  18007. *vp = v
  18008. }
  18009. }
  18010. func (_ fastpathT) DecSliceUint16V(v []uint16, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  18011. dd := d.d
  18012. slh, containerLenS := d.decSliceHelperStart()
  18013. if containerLenS == 0 {
  18014. if canChange {
  18015. if v == nil {
  18016. v = []uint16{}
  18017. } else if len(v) != 0 {
  18018. v = v[:0]
  18019. }
  18020. changed = true
  18021. }
  18022. slh.End()
  18023. return v, changed
  18024. }
  18025. hasLen := containerLenS > 0
  18026. var xlen int
  18027. if hasLen && canChange {
  18028. if containerLenS > cap(v) {
  18029. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18030. if xlen <= cap(v) {
  18031. v = v[:xlen]
  18032. } else {
  18033. v = make([]uint16, xlen)
  18034. }
  18035. changed = true
  18036. } else if containerLenS != len(v) {
  18037. v = v[:containerLenS]
  18038. changed = true
  18039. }
  18040. }
  18041. j := 0
  18042. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18043. if j == 0 && len(v) == 0 && canChange {
  18044. if hasLen {
  18045. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18046. } else {
  18047. xlen = 8
  18048. }
  18049. v = make([]uint16, xlen)
  18050. changed = true
  18051. }
  18052. // if indefinite, etc, then expand the slice if necessary
  18053. var decodeIntoBlank bool
  18054. if j >= len(v) {
  18055. if canChange {
  18056. v = append(v, 0)
  18057. changed = true
  18058. } else {
  18059. d.arrayCannotExpand(len(v), j+1)
  18060. decodeIntoBlank = true
  18061. }
  18062. }
  18063. slh.ElemContainerState(j)
  18064. if decodeIntoBlank {
  18065. d.swallow()
  18066. } else if dd.TryDecodeAsNil() {
  18067. v[j] = 0
  18068. } else {
  18069. v[j] = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  18070. }
  18071. }
  18072. if canChange {
  18073. if j < len(v) {
  18074. v = v[:j]
  18075. changed = true
  18076. } else if j == 0 && v == nil {
  18077. v = make([]uint16, 0)
  18078. changed = true
  18079. }
  18080. }
  18081. slh.End()
  18082. return v, changed
  18083. }
  18084. func (d *Decoder) fastpathDecSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  18085. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18086. vp := rv2i(rv).(*[]uint32)
  18087. v, changed := fastpathTV.DecSliceUint32V(*vp, !array, d)
  18088. if changed {
  18089. *vp = v
  18090. }
  18091. } else {
  18092. v := rv2i(rv).([]uint32)
  18093. v2, changed := fastpathTV.DecSliceUint32V(v, !array, d)
  18094. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18095. copy(v, v2)
  18096. }
  18097. }
  18098. }
  18099. func (f fastpathT) DecSliceUint32X(vp *[]uint32, d *Decoder) {
  18100. v, changed := f.DecSliceUint32V(*vp, true, d)
  18101. if changed {
  18102. *vp = v
  18103. }
  18104. }
  18105. func (_ fastpathT) DecSliceUint32V(v []uint32, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  18106. dd := d.d
  18107. slh, containerLenS := d.decSliceHelperStart()
  18108. if containerLenS == 0 {
  18109. if canChange {
  18110. if v == nil {
  18111. v = []uint32{}
  18112. } else if len(v) != 0 {
  18113. v = v[:0]
  18114. }
  18115. changed = true
  18116. }
  18117. slh.End()
  18118. return v, changed
  18119. }
  18120. hasLen := containerLenS > 0
  18121. var xlen int
  18122. if hasLen && canChange {
  18123. if containerLenS > cap(v) {
  18124. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18125. if xlen <= cap(v) {
  18126. v = v[:xlen]
  18127. } else {
  18128. v = make([]uint32, xlen)
  18129. }
  18130. changed = true
  18131. } else if containerLenS != len(v) {
  18132. v = v[:containerLenS]
  18133. changed = true
  18134. }
  18135. }
  18136. j := 0
  18137. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18138. if j == 0 && len(v) == 0 && canChange {
  18139. if hasLen {
  18140. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18141. } else {
  18142. xlen = 8
  18143. }
  18144. v = make([]uint32, xlen)
  18145. changed = true
  18146. }
  18147. // if indefinite, etc, then expand the slice if necessary
  18148. var decodeIntoBlank bool
  18149. if j >= len(v) {
  18150. if canChange {
  18151. v = append(v, 0)
  18152. changed = true
  18153. } else {
  18154. d.arrayCannotExpand(len(v), j+1)
  18155. decodeIntoBlank = true
  18156. }
  18157. }
  18158. slh.ElemContainerState(j)
  18159. if decodeIntoBlank {
  18160. d.swallow()
  18161. } else if dd.TryDecodeAsNil() {
  18162. v[j] = 0
  18163. } else {
  18164. v[j] = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  18165. }
  18166. }
  18167. if canChange {
  18168. if j < len(v) {
  18169. v = v[:j]
  18170. changed = true
  18171. } else if j == 0 && v == nil {
  18172. v = make([]uint32, 0)
  18173. changed = true
  18174. }
  18175. }
  18176. slh.End()
  18177. return v, changed
  18178. }
  18179. func (d *Decoder) fastpathDecSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  18180. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18181. vp := rv2i(rv).(*[]uint64)
  18182. v, changed := fastpathTV.DecSliceUint64V(*vp, !array, d)
  18183. if changed {
  18184. *vp = v
  18185. }
  18186. } else {
  18187. v := rv2i(rv).([]uint64)
  18188. v2, changed := fastpathTV.DecSliceUint64V(v, !array, d)
  18189. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18190. copy(v, v2)
  18191. }
  18192. }
  18193. }
  18194. func (f fastpathT) DecSliceUint64X(vp *[]uint64, d *Decoder) {
  18195. v, changed := f.DecSliceUint64V(*vp, true, d)
  18196. if changed {
  18197. *vp = v
  18198. }
  18199. }
  18200. func (_ fastpathT) DecSliceUint64V(v []uint64, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  18201. dd := d.d
  18202. slh, containerLenS := d.decSliceHelperStart()
  18203. if containerLenS == 0 {
  18204. if canChange {
  18205. if v == nil {
  18206. v = []uint64{}
  18207. } else if len(v) != 0 {
  18208. v = v[:0]
  18209. }
  18210. changed = true
  18211. }
  18212. slh.End()
  18213. return v, changed
  18214. }
  18215. hasLen := containerLenS > 0
  18216. var xlen int
  18217. if hasLen && canChange {
  18218. if containerLenS > cap(v) {
  18219. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18220. if xlen <= cap(v) {
  18221. v = v[:xlen]
  18222. } else {
  18223. v = make([]uint64, xlen)
  18224. }
  18225. changed = true
  18226. } else if containerLenS != len(v) {
  18227. v = v[:containerLenS]
  18228. changed = true
  18229. }
  18230. }
  18231. j := 0
  18232. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18233. if j == 0 && len(v) == 0 && canChange {
  18234. if hasLen {
  18235. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18236. } else {
  18237. xlen = 8
  18238. }
  18239. v = make([]uint64, xlen)
  18240. changed = true
  18241. }
  18242. // if indefinite, etc, then expand the slice if necessary
  18243. var decodeIntoBlank bool
  18244. if j >= len(v) {
  18245. if canChange {
  18246. v = append(v, 0)
  18247. changed = true
  18248. } else {
  18249. d.arrayCannotExpand(len(v), j+1)
  18250. decodeIntoBlank = true
  18251. }
  18252. }
  18253. slh.ElemContainerState(j)
  18254. if decodeIntoBlank {
  18255. d.swallow()
  18256. } else if dd.TryDecodeAsNil() {
  18257. v[j] = 0
  18258. } else {
  18259. v[j] = dd.DecodeUint64()
  18260. }
  18261. }
  18262. if canChange {
  18263. if j < len(v) {
  18264. v = v[:j]
  18265. changed = true
  18266. } else if j == 0 && v == nil {
  18267. v = make([]uint64, 0)
  18268. changed = true
  18269. }
  18270. }
  18271. slh.End()
  18272. return v, changed
  18273. }
  18274. func (d *Decoder) fastpathDecSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  18275. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18276. vp := rv2i(rv).(*[]uintptr)
  18277. v, changed := fastpathTV.DecSliceUintptrV(*vp, !array, d)
  18278. if changed {
  18279. *vp = v
  18280. }
  18281. } else {
  18282. v := rv2i(rv).([]uintptr)
  18283. v2, changed := fastpathTV.DecSliceUintptrV(v, !array, d)
  18284. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18285. copy(v, v2)
  18286. }
  18287. }
  18288. }
  18289. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, d *Decoder) {
  18290. v, changed := f.DecSliceUintptrV(*vp, true, d)
  18291. if changed {
  18292. *vp = v
  18293. }
  18294. }
  18295. func (_ fastpathT) DecSliceUintptrV(v []uintptr, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  18296. dd := d.d
  18297. slh, containerLenS := d.decSliceHelperStart()
  18298. if containerLenS == 0 {
  18299. if canChange {
  18300. if v == nil {
  18301. v = []uintptr{}
  18302. } else if len(v) != 0 {
  18303. v = v[:0]
  18304. }
  18305. changed = true
  18306. }
  18307. slh.End()
  18308. return v, changed
  18309. }
  18310. hasLen := containerLenS > 0
  18311. var xlen int
  18312. if hasLen && canChange {
  18313. if containerLenS > cap(v) {
  18314. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18315. if xlen <= cap(v) {
  18316. v = v[:xlen]
  18317. } else {
  18318. v = make([]uintptr, xlen)
  18319. }
  18320. changed = true
  18321. } else if containerLenS != len(v) {
  18322. v = v[:containerLenS]
  18323. changed = true
  18324. }
  18325. }
  18326. j := 0
  18327. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18328. if j == 0 && len(v) == 0 && canChange {
  18329. if hasLen {
  18330. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18331. } else {
  18332. xlen = 8
  18333. }
  18334. v = make([]uintptr, xlen)
  18335. changed = true
  18336. }
  18337. // if indefinite, etc, then expand the slice if necessary
  18338. var decodeIntoBlank bool
  18339. if j >= len(v) {
  18340. if canChange {
  18341. v = append(v, 0)
  18342. changed = true
  18343. } else {
  18344. d.arrayCannotExpand(len(v), j+1)
  18345. decodeIntoBlank = true
  18346. }
  18347. }
  18348. slh.ElemContainerState(j)
  18349. if decodeIntoBlank {
  18350. d.swallow()
  18351. } else if dd.TryDecodeAsNil() {
  18352. v[j] = 0
  18353. } else {
  18354. v[j] = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  18355. }
  18356. }
  18357. if canChange {
  18358. if j < len(v) {
  18359. v = v[:j]
  18360. changed = true
  18361. } else if j == 0 && v == nil {
  18362. v = make([]uintptr, 0)
  18363. changed = true
  18364. }
  18365. }
  18366. slh.End()
  18367. return v, changed
  18368. }
  18369. func (d *Decoder) fastpathDecSliceIntR(f *codecFnInfo, rv reflect.Value) {
  18370. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18371. vp := rv2i(rv).(*[]int)
  18372. v, changed := fastpathTV.DecSliceIntV(*vp, !array, d)
  18373. if changed {
  18374. *vp = v
  18375. }
  18376. } else {
  18377. v := rv2i(rv).([]int)
  18378. v2, changed := fastpathTV.DecSliceIntV(v, !array, d)
  18379. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18380. copy(v, v2)
  18381. }
  18382. }
  18383. }
  18384. func (f fastpathT) DecSliceIntX(vp *[]int, d *Decoder) {
  18385. v, changed := f.DecSliceIntV(*vp, true, d)
  18386. if changed {
  18387. *vp = v
  18388. }
  18389. }
  18390. func (_ fastpathT) DecSliceIntV(v []int, canChange bool, d *Decoder) (_ []int, changed bool) {
  18391. dd := d.d
  18392. slh, containerLenS := d.decSliceHelperStart()
  18393. if containerLenS == 0 {
  18394. if canChange {
  18395. if v == nil {
  18396. v = []int{}
  18397. } else if len(v) != 0 {
  18398. v = v[:0]
  18399. }
  18400. changed = true
  18401. }
  18402. slh.End()
  18403. return v, changed
  18404. }
  18405. hasLen := containerLenS > 0
  18406. var xlen int
  18407. if hasLen && canChange {
  18408. if containerLenS > cap(v) {
  18409. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18410. if xlen <= cap(v) {
  18411. v = v[:xlen]
  18412. } else {
  18413. v = make([]int, xlen)
  18414. }
  18415. changed = true
  18416. } else if containerLenS != len(v) {
  18417. v = v[:containerLenS]
  18418. changed = true
  18419. }
  18420. }
  18421. j := 0
  18422. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18423. if j == 0 && len(v) == 0 && canChange {
  18424. if hasLen {
  18425. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18426. } else {
  18427. xlen = 8
  18428. }
  18429. v = make([]int, xlen)
  18430. changed = true
  18431. }
  18432. // if indefinite, etc, then expand the slice if necessary
  18433. var decodeIntoBlank bool
  18434. if j >= len(v) {
  18435. if canChange {
  18436. v = append(v, 0)
  18437. changed = true
  18438. } else {
  18439. d.arrayCannotExpand(len(v), j+1)
  18440. decodeIntoBlank = true
  18441. }
  18442. }
  18443. slh.ElemContainerState(j)
  18444. if decodeIntoBlank {
  18445. d.swallow()
  18446. } else if dd.TryDecodeAsNil() {
  18447. v[j] = 0
  18448. } else {
  18449. v[j] = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  18450. }
  18451. }
  18452. if canChange {
  18453. if j < len(v) {
  18454. v = v[:j]
  18455. changed = true
  18456. } else if j == 0 && v == nil {
  18457. v = make([]int, 0)
  18458. changed = true
  18459. }
  18460. }
  18461. slh.End()
  18462. return v, changed
  18463. }
  18464. func (d *Decoder) fastpathDecSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  18465. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18466. vp := rv2i(rv).(*[]int8)
  18467. v, changed := fastpathTV.DecSliceInt8V(*vp, !array, d)
  18468. if changed {
  18469. *vp = v
  18470. }
  18471. } else {
  18472. v := rv2i(rv).([]int8)
  18473. v2, changed := fastpathTV.DecSliceInt8V(v, !array, d)
  18474. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18475. copy(v, v2)
  18476. }
  18477. }
  18478. }
  18479. func (f fastpathT) DecSliceInt8X(vp *[]int8, d *Decoder) {
  18480. v, changed := f.DecSliceInt8V(*vp, true, d)
  18481. if changed {
  18482. *vp = v
  18483. }
  18484. }
  18485. func (_ fastpathT) DecSliceInt8V(v []int8, canChange bool, d *Decoder) (_ []int8, changed bool) {
  18486. dd := d.d
  18487. slh, containerLenS := d.decSliceHelperStart()
  18488. if containerLenS == 0 {
  18489. if canChange {
  18490. if v == nil {
  18491. v = []int8{}
  18492. } else if len(v) != 0 {
  18493. v = v[:0]
  18494. }
  18495. changed = true
  18496. }
  18497. slh.End()
  18498. return v, changed
  18499. }
  18500. hasLen := containerLenS > 0
  18501. var xlen int
  18502. if hasLen && canChange {
  18503. if containerLenS > cap(v) {
  18504. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18505. if xlen <= cap(v) {
  18506. v = v[:xlen]
  18507. } else {
  18508. v = make([]int8, xlen)
  18509. }
  18510. changed = true
  18511. } else if containerLenS != len(v) {
  18512. v = v[:containerLenS]
  18513. changed = true
  18514. }
  18515. }
  18516. j := 0
  18517. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18518. if j == 0 && len(v) == 0 && canChange {
  18519. if hasLen {
  18520. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18521. } else {
  18522. xlen = 8
  18523. }
  18524. v = make([]int8, xlen)
  18525. changed = true
  18526. }
  18527. // if indefinite, etc, then expand the slice if necessary
  18528. var decodeIntoBlank bool
  18529. if j >= len(v) {
  18530. if canChange {
  18531. v = append(v, 0)
  18532. changed = true
  18533. } else {
  18534. d.arrayCannotExpand(len(v), j+1)
  18535. decodeIntoBlank = true
  18536. }
  18537. }
  18538. slh.ElemContainerState(j)
  18539. if decodeIntoBlank {
  18540. d.swallow()
  18541. } else if dd.TryDecodeAsNil() {
  18542. v[j] = 0
  18543. } else {
  18544. v[j] = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  18545. }
  18546. }
  18547. if canChange {
  18548. if j < len(v) {
  18549. v = v[:j]
  18550. changed = true
  18551. } else if j == 0 && v == nil {
  18552. v = make([]int8, 0)
  18553. changed = true
  18554. }
  18555. }
  18556. slh.End()
  18557. return v, changed
  18558. }
  18559. func (d *Decoder) fastpathDecSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  18560. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18561. vp := rv2i(rv).(*[]int16)
  18562. v, changed := fastpathTV.DecSliceInt16V(*vp, !array, d)
  18563. if changed {
  18564. *vp = v
  18565. }
  18566. } else {
  18567. v := rv2i(rv).([]int16)
  18568. v2, changed := fastpathTV.DecSliceInt16V(v, !array, d)
  18569. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18570. copy(v, v2)
  18571. }
  18572. }
  18573. }
  18574. func (f fastpathT) DecSliceInt16X(vp *[]int16, d *Decoder) {
  18575. v, changed := f.DecSliceInt16V(*vp, true, d)
  18576. if changed {
  18577. *vp = v
  18578. }
  18579. }
  18580. func (_ fastpathT) DecSliceInt16V(v []int16, canChange bool, d *Decoder) (_ []int16, changed bool) {
  18581. dd := d.d
  18582. slh, containerLenS := d.decSliceHelperStart()
  18583. if containerLenS == 0 {
  18584. if canChange {
  18585. if v == nil {
  18586. v = []int16{}
  18587. } else if len(v) != 0 {
  18588. v = v[:0]
  18589. }
  18590. changed = true
  18591. }
  18592. slh.End()
  18593. return v, changed
  18594. }
  18595. hasLen := containerLenS > 0
  18596. var xlen int
  18597. if hasLen && canChange {
  18598. if containerLenS > cap(v) {
  18599. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18600. if xlen <= cap(v) {
  18601. v = v[:xlen]
  18602. } else {
  18603. v = make([]int16, xlen)
  18604. }
  18605. changed = true
  18606. } else if containerLenS != len(v) {
  18607. v = v[:containerLenS]
  18608. changed = true
  18609. }
  18610. }
  18611. j := 0
  18612. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18613. if j == 0 && len(v) == 0 && canChange {
  18614. if hasLen {
  18615. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18616. } else {
  18617. xlen = 8
  18618. }
  18619. v = make([]int16, xlen)
  18620. changed = true
  18621. }
  18622. // if indefinite, etc, then expand the slice if necessary
  18623. var decodeIntoBlank bool
  18624. if j >= len(v) {
  18625. if canChange {
  18626. v = append(v, 0)
  18627. changed = true
  18628. } else {
  18629. d.arrayCannotExpand(len(v), j+1)
  18630. decodeIntoBlank = true
  18631. }
  18632. }
  18633. slh.ElemContainerState(j)
  18634. if decodeIntoBlank {
  18635. d.swallow()
  18636. } else if dd.TryDecodeAsNil() {
  18637. v[j] = 0
  18638. } else {
  18639. v[j] = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  18640. }
  18641. }
  18642. if canChange {
  18643. if j < len(v) {
  18644. v = v[:j]
  18645. changed = true
  18646. } else if j == 0 && v == nil {
  18647. v = make([]int16, 0)
  18648. changed = true
  18649. }
  18650. }
  18651. slh.End()
  18652. return v, changed
  18653. }
  18654. func (d *Decoder) fastpathDecSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  18655. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18656. vp := rv2i(rv).(*[]int32)
  18657. v, changed := fastpathTV.DecSliceInt32V(*vp, !array, d)
  18658. if changed {
  18659. *vp = v
  18660. }
  18661. } else {
  18662. v := rv2i(rv).([]int32)
  18663. v2, changed := fastpathTV.DecSliceInt32V(v, !array, d)
  18664. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18665. copy(v, v2)
  18666. }
  18667. }
  18668. }
  18669. func (f fastpathT) DecSliceInt32X(vp *[]int32, d *Decoder) {
  18670. v, changed := f.DecSliceInt32V(*vp, true, d)
  18671. if changed {
  18672. *vp = v
  18673. }
  18674. }
  18675. func (_ fastpathT) DecSliceInt32V(v []int32, canChange bool, d *Decoder) (_ []int32, changed bool) {
  18676. dd := d.d
  18677. slh, containerLenS := d.decSliceHelperStart()
  18678. if containerLenS == 0 {
  18679. if canChange {
  18680. if v == nil {
  18681. v = []int32{}
  18682. } else if len(v) != 0 {
  18683. v = v[:0]
  18684. }
  18685. changed = true
  18686. }
  18687. slh.End()
  18688. return v, changed
  18689. }
  18690. hasLen := containerLenS > 0
  18691. var xlen int
  18692. if hasLen && canChange {
  18693. if containerLenS > cap(v) {
  18694. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18695. if xlen <= cap(v) {
  18696. v = v[:xlen]
  18697. } else {
  18698. v = make([]int32, xlen)
  18699. }
  18700. changed = true
  18701. } else if containerLenS != len(v) {
  18702. v = v[:containerLenS]
  18703. changed = true
  18704. }
  18705. }
  18706. j := 0
  18707. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18708. if j == 0 && len(v) == 0 && canChange {
  18709. if hasLen {
  18710. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18711. } else {
  18712. xlen = 8
  18713. }
  18714. v = make([]int32, xlen)
  18715. changed = true
  18716. }
  18717. // if indefinite, etc, then expand the slice if necessary
  18718. var decodeIntoBlank bool
  18719. if j >= len(v) {
  18720. if canChange {
  18721. v = append(v, 0)
  18722. changed = true
  18723. } else {
  18724. d.arrayCannotExpand(len(v), j+1)
  18725. decodeIntoBlank = true
  18726. }
  18727. }
  18728. slh.ElemContainerState(j)
  18729. if decodeIntoBlank {
  18730. d.swallow()
  18731. } else if dd.TryDecodeAsNil() {
  18732. v[j] = 0
  18733. } else {
  18734. v[j] = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  18735. }
  18736. }
  18737. if canChange {
  18738. if j < len(v) {
  18739. v = v[:j]
  18740. changed = true
  18741. } else if j == 0 && v == nil {
  18742. v = make([]int32, 0)
  18743. changed = true
  18744. }
  18745. }
  18746. slh.End()
  18747. return v, changed
  18748. }
  18749. func (d *Decoder) fastpathDecSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  18750. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18751. vp := rv2i(rv).(*[]int64)
  18752. v, changed := fastpathTV.DecSliceInt64V(*vp, !array, d)
  18753. if changed {
  18754. *vp = v
  18755. }
  18756. } else {
  18757. v := rv2i(rv).([]int64)
  18758. v2, changed := fastpathTV.DecSliceInt64V(v, !array, d)
  18759. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18760. copy(v, v2)
  18761. }
  18762. }
  18763. }
  18764. func (f fastpathT) DecSliceInt64X(vp *[]int64, d *Decoder) {
  18765. v, changed := f.DecSliceInt64V(*vp, true, d)
  18766. if changed {
  18767. *vp = v
  18768. }
  18769. }
  18770. func (_ fastpathT) DecSliceInt64V(v []int64, canChange bool, d *Decoder) (_ []int64, changed bool) {
  18771. dd := d.d
  18772. slh, containerLenS := d.decSliceHelperStart()
  18773. if containerLenS == 0 {
  18774. if canChange {
  18775. if v == nil {
  18776. v = []int64{}
  18777. } else if len(v) != 0 {
  18778. v = v[:0]
  18779. }
  18780. changed = true
  18781. }
  18782. slh.End()
  18783. return v, changed
  18784. }
  18785. hasLen := containerLenS > 0
  18786. var xlen int
  18787. if hasLen && canChange {
  18788. if containerLenS > cap(v) {
  18789. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18790. if xlen <= cap(v) {
  18791. v = v[:xlen]
  18792. } else {
  18793. v = make([]int64, xlen)
  18794. }
  18795. changed = true
  18796. } else if containerLenS != len(v) {
  18797. v = v[:containerLenS]
  18798. changed = true
  18799. }
  18800. }
  18801. j := 0
  18802. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18803. if j == 0 && len(v) == 0 && canChange {
  18804. if hasLen {
  18805. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18806. } else {
  18807. xlen = 8
  18808. }
  18809. v = make([]int64, xlen)
  18810. changed = true
  18811. }
  18812. // if indefinite, etc, then expand the slice if necessary
  18813. var decodeIntoBlank bool
  18814. if j >= len(v) {
  18815. if canChange {
  18816. v = append(v, 0)
  18817. changed = true
  18818. } else {
  18819. d.arrayCannotExpand(len(v), j+1)
  18820. decodeIntoBlank = true
  18821. }
  18822. }
  18823. slh.ElemContainerState(j)
  18824. if decodeIntoBlank {
  18825. d.swallow()
  18826. } else if dd.TryDecodeAsNil() {
  18827. v[j] = 0
  18828. } else {
  18829. v[j] = dd.DecodeInt64()
  18830. }
  18831. }
  18832. if canChange {
  18833. if j < len(v) {
  18834. v = v[:j]
  18835. changed = true
  18836. } else if j == 0 && v == nil {
  18837. v = make([]int64, 0)
  18838. changed = true
  18839. }
  18840. }
  18841. slh.End()
  18842. return v, changed
  18843. }
  18844. func (d *Decoder) fastpathDecSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  18845. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18846. vp := rv2i(rv).(*[]bool)
  18847. v, changed := fastpathTV.DecSliceBoolV(*vp, !array, d)
  18848. if changed {
  18849. *vp = v
  18850. }
  18851. } else {
  18852. v := rv2i(rv).([]bool)
  18853. v2, changed := fastpathTV.DecSliceBoolV(v, !array, d)
  18854. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18855. copy(v, v2)
  18856. }
  18857. }
  18858. }
  18859. func (f fastpathT) DecSliceBoolX(vp *[]bool, d *Decoder) {
  18860. v, changed := f.DecSliceBoolV(*vp, true, d)
  18861. if changed {
  18862. *vp = v
  18863. }
  18864. }
  18865. func (_ fastpathT) DecSliceBoolV(v []bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  18866. dd := d.d
  18867. slh, containerLenS := d.decSliceHelperStart()
  18868. if containerLenS == 0 {
  18869. if canChange {
  18870. if v == nil {
  18871. v = []bool{}
  18872. } else if len(v) != 0 {
  18873. v = v[:0]
  18874. }
  18875. changed = true
  18876. }
  18877. slh.End()
  18878. return v, changed
  18879. }
  18880. hasLen := containerLenS > 0
  18881. var xlen int
  18882. if hasLen && canChange {
  18883. if containerLenS > cap(v) {
  18884. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18885. if xlen <= cap(v) {
  18886. v = v[:xlen]
  18887. } else {
  18888. v = make([]bool, xlen)
  18889. }
  18890. changed = true
  18891. } else if containerLenS != len(v) {
  18892. v = v[:containerLenS]
  18893. changed = true
  18894. }
  18895. }
  18896. j := 0
  18897. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18898. if j == 0 && len(v) == 0 && canChange {
  18899. if hasLen {
  18900. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18901. } else {
  18902. xlen = 8
  18903. }
  18904. v = make([]bool, xlen)
  18905. changed = true
  18906. }
  18907. // if indefinite, etc, then expand the slice if necessary
  18908. var decodeIntoBlank bool
  18909. if j >= len(v) {
  18910. if canChange {
  18911. v = append(v, false)
  18912. changed = true
  18913. } else {
  18914. d.arrayCannotExpand(len(v), j+1)
  18915. decodeIntoBlank = true
  18916. }
  18917. }
  18918. slh.ElemContainerState(j)
  18919. if decodeIntoBlank {
  18920. d.swallow()
  18921. } else if dd.TryDecodeAsNil() {
  18922. v[j] = false
  18923. } else {
  18924. v[j] = dd.DecodeBool()
  18925. }
  18926. }
  18927. if canChange {
  18928. if j < len(v) {
  18929. v = v[:j]
  18930. changed = true
  18931. } else if j == 0 && v == nil {
  18932. v = make([]bool, 0)
  18933. changed = true
  18934. }
  18935. }
  18936. slh.End()
  18937. return v, changed
  18938. }
  18939. func (d *Decoder) fastpathDecMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  18940. if rv.Kind() == reflect.Ptr {
  18941. vp := rv2i(rv).(*map[interface{}]interface{})
  18942. v, changed := fastpathTV.DecMapIntfIntfV(*vp, true, d)
  18943. if changed {
  18944. *vp = v
  18945. }
  18946. } else {
  18947. fastpathTV.DecMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), false, d)
  18948. }
  18949. }
  18950. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, d *Decoder) {
  18951. v, changed := f.DecMapIntfIntfV(*vp, true, d)
  18952. if changed {
  18953. *vp = v
  18954. }
  18955. }
  18956. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, canChange bool,
  18957. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  18958. dd, esep := d.d, d.hh.hasElemSeparators()
  18959. containerLen := dd.ReadMapStart()
  18960. if canChange && v == nil {
  18961. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18962. v = make(map[interface{}]interface{}, xlen)
  18963. changed = true
  18964. }
  18965. if containerLen == 0 {
  18966. dd.ReadMapEnd()
  18967. return v, changed
  18968. }
  18969. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  18970. var mk interface{}
  18971. var mv interface{}
  18972. hasLen := containerLen > 0
  18973. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18974. if esep {
  18975. dd.ReadMapElemKey()
  18976. }
  18977. mk = nil
  18978. d.decode(&mk)
  18979. if bv, bok := mk.([]byte); bok {
  18980. mk = d.string(bv)
  18981. }
  18982. if esep {
  18983. dd.ReadMapElemValue()
  18984. }
  18985. if dd.TryDecodeAsNil() {
  18986. if v == nil {
  18987. } else if d.h.DeleteOnNilMapValue {
  18988. delete(v, mk)
  18989. } else {
  18990. v[mk] = nil
  18991. }
  18992. continue
  18993. }
  18994. if mapGet {
  18995. mv = v[mk]
  18996. } else {
  18997. mv = nil
  18998. }
  18999. d.decode(&mv)
  19000. if v != nil {
  19001. v[mk] = mv
  19002. }
  19003. }
  19004. dd.ReadMapEnd()
  19005. return v, changed
  19006. }
  19007. func (d *Decoder) fastpathDecMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  19008. if rv.Kind() == reflect.Ptr {
  19009. vp := rv2i(rv).(*map[interface{}]string)
  19010. v, changed := fastpathTV.DecMapIntfStringV(*vp, true, d)
  19011. if changed {
  19012. *vp = v
  19013. }
  19014. } else {
  19015. fastpathTV.DecMapIntfStringV(rv2i(rv).(map[interface{}]string), false, d)
  19016. }
  19017. }
  19018. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, d *Decoder) {
  19019. v, changed := f.DecMapIntfStringV(*vp, true, d)
  19020. if changed {
  19021. *vp = v
  19022. }
  19023. }
  19024. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, canChange bool,
  19025. d *Decoder) (_ map[interface{}]string, changed bool) {
  19026. dd, esep := d.d, d.hh.hasElemSeparators()
  19027. containerLen := dd.ReadMapStart()
  19028. if canChange && v == nil {
  19029. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  19030. v = make(map[interface{}]string, xlen)
  19031. changed = true
  19032. }
  19033. if containerLen == 0 {
  19034. dd.ReadMapEnd()
  19035. return v, changed
  19036. }
  19037. var mk interface{}
  19038. var mv string
  19039. hasLen := containerLen > 0
  19040. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19041. if esep {
  19042. dd.ReadMapElemKey()
  19043. }
  19044. mk = nil
  19045. d.decode(&mk)
  19046. if bv, bok := mk.([]byte); bok {
  19047. mk = d.string(bv)
  19048. }
  19049. if esep {
  19050. dd.ReadMapElemValue()
  19051. }
  19052. if dd.TryDecodeAsNil() {
  19053. if v == nil {
  19054. } else if d.h.DeleteOnNilMapValue {
  19055. delete(v, mk)
  19056. } else {
  19057. v[mk] = ""
  19058. }
  19059. continue
  19060. }
  19061. mv = dd.DecodeString()
  19062. if v != nil {
  19063. v[mk] = mv
  19064. }
  19065. }
  19066. dd.ReadMapEnd()
  19067. return v, changed
  19068. }
  19069. func (d *Decoder) fastpathDecMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  19070. if rv.Kind() == reflect.Ptr {
  19071. vp := rv2i(rv).(*map[interface{}]uint)
  19072. v, changed := fastpathTV.DecMapIntfUintV(*vp, true, d)
  19073. if changed {
  19074. *vp = v
  19075. }
  19076. } else {
  19077. fastpathTV.DecMapIntfUintV(rv2i(rv).(map[interface{}]uint), false, d)
  19078. }
  19079. }
  19080. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, d *Decoder) {
  19081. v, changed := f.DecMapIntfUintV(*vp, true, d)
  19082. if changed {
  19083. *vp = v
  19084. }
  19085. }
  19086. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, canChange bool,
  19087. d *Decoder) (_ map[interface{}]uint, changed bool) {
  19088. dd, esep := d.d, d.hh.hasElemSeparators()
  19089. containerLen := dd.ReadMapStart()
  19090. if canChange && v == nil {
  19091. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19092. v = make(map[interface{}]uint, xlen)
  19093. changed = true
  19094. }
  19095. if containerLen == 0 {
  19096. dd.ReadMapEnd()
  19097. return v, changed
  19098. }
  19099. var mk interface{}
  19100. var mv uint
  19101. hasLen := containerLen > 0
  19102. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19103. if esep {
  19104. dd.ReadMapElemKey()
  19105. }
  19106. mk = nil
  19107. d.decode(&mk)
  19108. if bv, bok := mk.([]byte); bok {
  19109. mk = d.string(bv)
  19110. }
  19111. if esep {
  19112. dd.ReadMapElemValue()
  19113. }
  19114. if dd.TryDecodeAsNil() {
  19115. if v == nil {
  19116. } else if d.h.DeleteOnNilMapValue {
  19117. delete(v, mk)
  19118. } else {
  19119. v[mk] = 0
  19120. }
  19121. continue
  19122. }
  19123. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  19124. if v != nil {
  19125. v[mk] = mv
  19126. }
  19127. }
  19128. dd.ReadMapEnd()
  19129. return v, changed
  19130. }
  19131. func (d *Decoder) fastpathDecMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  19132. if rv.Kind() == reflect.Ptr {
  19133. vp := rv2i(rv).(*map[interface{}]uint8)
  19134. v, changed := fastpathTV.DecMapIntfUint8V(*vp, true, d)
  19135. if changed {
  19136. *vp = v
  19137. }
  19138. } else {
  19139. fastpathTV.DecMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), false, d)
  19140. }
  19141. }
  19142. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, d *Decoder) {
  19143. v, changed := f.DecMapIntfUint8V(*vp, true, d)
  19144. if changed {
  19145. *vp = v
  19146. }
  19147. }
  19148. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, canChange bool,
  19149. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  19150. dd, esep := d.d, d.hh.hasElemSeparators()
  19151. containerLen := dd.ReadMapStart()
  19152. if canChange && v == nil {
  19153. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19154. v = make(map[interface{}]uint8, xlen)
  19155. changed = true
  19156. }
  19157. if containerLen == 0 {
  19158. dd.ReadMapEnd()
  19159. return v, changed
  19160. }
  19161. var mk interface{}
  19162. var mv uint8
  19163. hasLen := containerLen > 0
  19164. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19165. if esep {
  19166. dd.ReadMapElemKey()
  19167. }
  19168. mk = nil
  19169. d.decode(&mk)
  19170. if bv, bok := mk.([]byte); bok {
  19171. mk = d.string(bv)
  19172. }
  19173. if esep {
  19174. dd.ReadMapElemValue()
  19175. }
  19176. if dd.TryDecodeAsNil() {
  19177. if v == nil {
  19178. } else if d.h.DeleteOnNilMapValue {
  19179. delete(v, mk)
  19180. } else {
  19181. v[mk] = 0
  19182. }
  19183. continue
  19184. }
  19185. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  19186. if v != nil {
  19187. v[mk] = mv
  19188. }
  19189. }
  19190. dd.ReadMapEnd()
  19191. return v, changed
  19192. }
  19193. func (d *Decoder) fastpathDecMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  19194. if rv.Kind() == reflect.Ptr {
  19195. vp := rv2i(rv).(*map[interface{}]uint16)
  19196. v, changed := fastpathTV.DecMapIntfUint16V(*vp, true, d)
  19197. if changed {
  19198. *vp = v
  19199. }
  19200. } else {
  19201. fastpathTV.DecMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), false, d)
  19202. }
  19203. }
  19204. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, d *Decoder) {
  19205. v, changed := f.DecMapIntfUint16V(*vp, true, d)
  19206. if changed {
  19207. *vp = v
  19208. }
  19209. }
  19210. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, canChange bool,
  19211. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  19212. dd, esep := d.d, d.hh.hasElemSeparators()
  19213. containerLen := dd.ReadMapStart()
  19214. if canChange && v == nil {
  19215. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19216. v = make(map[interface{}]uint16, xlen)
  19217. changed = true
  19218. }
  19219. if containerLen == 0 {
  19220. dd.ReadMapEnd()
  19221. return v, changed
  19222. }
  19223. var mk interface{}
  19224. var mv uint16
  19225. hasLen := containerLen > 0
  19226. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19227. if esep {
  19228. dd.ReadMapElemKey()
  19229. }
  19230. mk = nil
  19231. d.decode(&mk)
  19232. if bv, bok := mk.([]byte); bok {
  19233. mk = d.string(bv)
  19234. }
  19235. if esep {
  19236. dd.ReadMapElemValue()
  19237. }
  19238. if dd.TryDecodeAsNil() {
  19239. if v == nil {
  19240. } else if d.h.DeleteOnNilMapValue {
  19241. delete(v, mk)
  19242. } else {
  19243. v[mk] = 0
  19244. }
  19245. continue
  19246. }
  19247. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  19248. if v != nil {
  19249. v[mk] = mv
  19250. }
  19251. }
  19252. dd.ReadMapEnd()
  19253. return v, changed
  19254. }
  19255. func (d *Decoder) fastpathDecMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  19256. if rv.Kind() == reflect.Ptr {
  19257. vp := rv2i(rv).(*map[interface{}]uint32)
  19258. v, changed := fastpathTV.DecMapIntfUint32V(*vp, true, d)
  19259. if changed {
  19260. *vp = v
  19261. }
  19262. } else {
  19263. fastpathTV.DecMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), false, d)
  19264. }
  19265. }
  19266. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, d *Decoder) {
  19267. v, changed := f.DecMapIntfUint32V(*vp, true, d)
  19268. if changed {
  19269. *vp = v
  19270. }
  19271. }
  19272. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, canChange bool,
  19273. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  19274. dd, esep := d.d, d.hh.hasElemSeparators()
  19275. containerLen := dd.ReadMapStart()
  19276. if canChange && v == nil {
  19277. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19278. v = make(map[interface{}]uint32, xlen)
  19279. changed = true
  19280. }
  19281. if containerLen == 0 {
  19282. dd.ReadMapEnd()
  19283. return v, changed
  19284. }
  19285. var mk interface{}
  19286. var mv uint32
  19287. hasLen := containerLen > 0
  19288. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19289. if esep {
  19290. dd.ReadMapElemKey()
  19291. }
  19292. mk = nil
  19293. d.decode(&mk)
  19294. if bv, bok := mk.([]byte); bok {
  19295. mk = d.string(bv)
  19296. }
  19297. if esep {
  19298. dd.ReadMapElemValue()
  19299. }
  19300. if dd.TryDecodeAsNil() {
  19301. if v == nil {
  19302. } else if d.h.DeleteOnNilMapValue {
  19303. delete(v, mk)
  19304. } else {
  19305. v[mk] = 0
  19306. }
  19307. continue
  19308. }
  19309. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  19310. if v != nil {
  19311. v[mk] = mv
  19312. }
  19313. }
  19314. dd.ReadMapEnd()
  19315. return v, changed
  19316. }
  19317. func (d *Decoder) fastpathDecMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  19318. if rv.Kind() == reflect.Ptr {
  19319. vp := rv2i(rv).(*map[interface{}]uint64)
  19320. v, changed := fastpathTV.DecMapIntfUint64V(*vp, true, d)
  19321. if changed {
  19322. *vp = v
  19323. }
  19324. } else {
  19325. fastpathTV.DecMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), false, d)
  19326. }
  19327. }
  19328. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, d *Decoder) {
  19329. v, changed := f.DecMapIntfUint64V(*vp, true, d)
  19330. if changed {
  19331. *vp = v
  19332. }
  19333. }
  19334. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, canChange bool,
  19335. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  19336. dd, esep := d.d, d.hh.hasElemSeparators()
  19337. containerLen := dd.ReadMapStart()
  19338. if canChange && v == nil {
  19339. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19340. v = make(map[interface{}]uint64, xlen)
  19341. changed = true
  19342. }
  19343. if containerLen == 0 {
  19344. dd.ReadMapEnd()
  19345. return v, changed
  19346. }
  19347. var mk interface{}
  19348. var mv uint64
  19349. hasLen := containerLen > 0
  19350. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19351. if esep {
  19352. dd.ReadMapElemKey()
  19353. }
  19354. mk = nil
  19355. d.decode(&mk)
  19356. if bv, bok := mk.([]byte); bok {
  19357. mk = d.string(bv)
  19358. }
  19359. if esep {
  19360. dd.ReadMapElemValue()
  19361. }
  19362. if dd.TryDecodeAsNil() {
  19363. if v == nil {
  19364. } else if d.h.DeleteOnNilMapValue {
  19365. delete(v, mk)
  19366. } else {
  19367. v[mk] = 0
  19368. }
  19369. continue
  19370. }
  19371. mv = dd.DecodeUint64()
  19372. if v != nil {
  19373. v[mk] = mv
  19374. }
  19375. }
  19376. dd.ReadMapEnd()
  19377. return v, changed
  19378. }
  19379. func (d *Decoder) fastpathDecMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  19380. if rv.Kind() == reflect.Ptr {
  19381. vp := rv2i(rv).(*map[interface{}]uintptr)
  19382. v, changed := fastpathTV.DecMapIntfUintptrV(*vp, true, d)
  19383. if changed {
  19384. *vp = v
  19385. }
  19386. } else {
  19387. fastpathTV.DecMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), false, d)
  19388. }
  19389. }
  19390. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, d *Decoder) {
  19391. v, changed := f.DecMapIntfUintptrV(*vp, true, d)
  19392. if changed {
  19393. *vp = v
  19394. }
  19395. }
  19396. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, canChange bool,
  19397. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  19398. dd, esep := d.d, d.hh.hasElemSeparators()
  19399. containerLen := dd.ReadMapStart()
  19400. if canChange && v == nil {
  19401. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19402. v = make(map[interface{}]uintptr, xlen)
  19403. changed = true
  19404. }
  19405. if containerLen == 0 {
  19406. dd.ReadMapEnd()
  19407. return v, changed
  19408. }
  19409. var mk interface{}
  19410. var mv uintptr
  19411. hasLen := containerLen > 0
  19412. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19413. if esep {
  19414. dd.ReadMapElemKey()
  19415. }
  19416. mk = nil
  19417. d.decode(&mk)
  19418. if bv, bok := mk.([]byte); bok {
  19419. mk = d.string(bv)
  19420. }
  19421. if esep {
  19422. dd.ReadMapElemValue()
  19423. }
  19424. if dd.TryDecodeAsNil() {
  19425. if v == nil {
  19426. } else if d.h.DeleteOnNilMapValue {
  19427. delete(v, mk)
  19428. } else {
  19429. v[mk] = 0
  19430. }
  19431. continue
  19432. }
  19433. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  19434. if v != nil {
  19435. v[mk] = mv
  19436. }
  19437. }
  19438. dd.ReadMapEnd()
  19439. return v, changed
  19440. }
  19441. func (d *Decoder) fastpathDecMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  19442. if rv.Kind() == reflect.Ptr {
  19443. vp := rv2i(rv).(*map[interface{}]int)
  19444. v, changed := fastpathTV.DecMapIntfIntV(*vp, true, d)
  19445. if changed {
  19446. *vp = v
  19447. }
  19448. } else {
  19449. fastpathTV.DecMapIntfIntV(rv2i(rv).(map[interface{}]int), false, d)
  19450. }
  19451. }
  19452. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, d *Decoder) {
  19453. v, changed := f.DecMapIntfIntV(*vp, true, d)
  19454. if changed {
  19455. *vp = v
  19456. }
  19457. }
  19458. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, canChange bool,
  19459. d *Decoder) (_ map[interface{}]int, changed bool) {
  19460. dd, esep := d.d, d.hh.hasElemSeparators()
  19461. containerLen := dd.ReadMapStart()
  19462. if canChange && v == nil {
  19463. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19464. v = make(map[interface{}]int, xlen)
  19465. changed = true
  19466. }
  19467. if containerLen == 0 {
  19468. dd.ReadMapEnd()
  19469. return v, changed
  19470. }
  19471. var mk interface{}
  19472. var mv int
  19473. hasLen := containerLen > 0
  19474. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19475. if esep {
  19476. dd.ReadMapElemKey()
  19477. }
  19478. mk = nil
  19479. d.decode(&mk)
  19480. if bv, bok := mk.([]byte); bok {
  19481. mk = d.string(bv)
  19482. }
  19483. if esep {
  19484. dd.ReadMapElemValue()
  19485. }
  19486. if dd.TryDecodeAsNil() {
  19487. if v == nil {
  19488. } else if d.h.DeleteOnNilMapValue {
  19489. delete(v, mk)
  19490. } else {
  19491. v[mk] = 0
  19492. }
  19493. continue
  19494. }
  19495. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  19496. if v != nil {
  19497. v[mk] = mv
  19498. }
  19499. }
  19500. dd.ReadMapEnd()
  19501. return v, changed
  19502. }
  19503. func (d *Decoder) fastpathDecMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  19504. if rv.Kind() == reflect.Ptr {
  19505. vp := rv2i(rv).(*map[interface{}]int8)
  19506. v, changed := fastpathTV.DecMapIntfInt8V(*vp, true, d)
  19507. if changed {
  19508. *vp = v
  19509. }
  19510. } else {
  19511. fastpathTV.DecMapIntfInt8V(rv2i(rv).(map[interface{}]int8), false, d)
  19512. }
  19513. }
  19514. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, d *Decoder) {
  19515. v, changed := f.DecMapIntfInt8V(*vp, true, d)
  19516. if changed {
  19517. *vp = v
  19518. }
  19519. }
  19520. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, canChange bool,
  19521. d *Decoder) (_ map[interface{}]int8, changed bool) {
  19522. dd, esep := d.d, d.hh.hasElemSeparators()
  19523. containerLen := dd.ReadMapStart()
  19524. if canChange && v == nil {
  19525. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19526. v = make(map[interface{}]int8, xlen)
  19527. changed = true
  19528. }
  19529. if containerLen == 0 {
  19530. dd.ReadMapEnd()
  19531. return v, changed
  19532. }
  19533. var mk interface{}
  19534. var mv int8
  19535. hasLen := containerLen > 0
  19536. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19537. if esep {
  19538. dd.ReadMapElemKey()
  19539. }
  19540. mk = nil
  19541. d.decode(&mk)
  19542. if bv, bok := mk.([]byte); bok {
  19543. mk = d.string(bv)
  19544. }
  19545. if esep {
  19546. dd.ReadMapElemValue()
  19547. }
  19548. if dd.TryDecodeAsNil() {
  19549. if v == nil {
  19550. } else if d.h.DeleteOnNilMapValue {
  19551. delete(v, mk)
  19552. } else {
  19553. v[mk] = 0
  19554. }
  19555. continue
  19556. }
  19557. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  19558. if v != nil {
  19559. v[mk] = mv
  19560. }
  19561. }
  19562. dd.ReadMapEnd()
  19563. return v, changed
  19564. }
  19565. func (d *Decoder) fastpathDecMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  19566. if rv.Kind() == reflect.Ptr {
  19567. vp := rv2i(rv).(*map[interface{}]int16)
  19568. v, changed := fastpathTV.DecMapIntfInt16V(*vp, true, d)
  19569. if changed {
  19570. *vp = v
  19571. }
  19572. } else {
  19573. fastpathTV.DecMapIntfInt16V(rv2i(rv).(map[interface{}]int16), false, d)
  19574. }
  19575. }
  19576. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, d *Decoder) {
  19577. v, changed := f.DecMapIntfInt16V(*vp, true, d)
  19578. if changed {
  19579. *vp = v
  19580. }
  19581. }
  19582. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, canChange bool,
  19583. d *Decoder) (_ map[interface{}]int16, changed bool) {
  19584. dd, esep := d.d, d.hh.hasElemSeparators()
  19585. containerLen := dd.ReadMapStart()
  19586. if canChange && v == nil {
  19587. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19588. v = make(map[interface{}]int16, xlen)
  19589. changed = true
  19590. }
  19591. if containerLen == 0 {
  19592. dd.ReadMapEnd()
  19593. return v, changed
  19594. }
  19595. var mk interface{}
  19596. var mv int16
  19597. hasLen := containerLen > 0
  19598. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19599. if esep {
  19600. dd.ReadMapElemKey()
  19601. }
  19602. mk = nil
  19603. d.decode(&mk)
  19604. if bv, bok := mk.([]byte); bok {
  19605. mk = d.string(bv)
  19606. }
  19607. if esep {
  19608. dd.ReadMapElemValue()
  19609. }
  19610. if dd.TryDecodeAsNil() {
  19611. if v == nil {
  19612. } else if d.h.DeleteOnNilMapValue {
  19613. delete(v, mk)
  19614. } else {
  19615. v[mk] = 0
  19616. }
  19617. continue
  19618. }
  19619. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  19620. if v != nil {
  19621. v[mk] = mv
  19622. }
  19623. }
  19624. dd.ReadMapEnd()
  19625. return v, changed
  19626. }
  19627. func (d *Decoder) fastpathDecMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  19628. if rv.Kind() == reflect.Ptr {
  19629. vp := rv2i(rv).(*map[interface{}]int32)
  19630. v, changed := fastpathTV.DecMapIntfInt32V(*vp, true, d)
  19631. if changed {
  19632. *vp = v
  19633. }
  19634. } else {
  19635. fastpathTV.DecMapIntfInt32V(rv2i(rv).(map[interface{}]int32), false, d)
  19636. }
  19637. }
  19638. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, d *Decoder) {
  19639. v, changed := f.DecMapIntfInt32V(*vp, true, d)
  19640. if changed {
  19641. *vp = v
  19642. }
  19643. }
  19644. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, canChange bool,
  19645. d *Decoder) (_ map[interface{}]int32, changed bool) {
  19646. dd, esep := d.d, d.hh.hasElemSeparators()
  19647. containerLen := dd.ReadMapStart()
  19648. if canChange && v == nil {
  19649. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19650. v = make(map[interface{}]int32, xlen)
  19651. changed = true
  19652. }
  19653. if containerLen == 0 {
  19654. dd.ReadMapEnd()
  19655. return v, changed
  19656. }
  19657. var mk interface{}
  19658. var mv int32
  19659. hasLen := containerLen > 0
  19660. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19661. if esep {
  19662. dd.ReadMapElemKey()
  19663. }
  19664. mk = nil
  19665. d.decode(&mk)
  19666. if bv, bok := mk.([]byte); bok {
  19667. mk = d.string(bv)
  19668. }
  19669. if esep {
  19670. dd.ReadMapElemValue()
  19671. }
  19672. if dd.TryDecodeAsNil() {
  19673. if v == nil {
  19674. } else if d.h.DeleteOnNilMapValue {
  19675. delete(v, mk)
  19676. } else {
  19677. v[mk] = 0
  19678. }
  19679. continue
  19680. }
  19681. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  19682. if v != nil {
  19683. v[mk] = mv
  19684. }
  19685. }
  19686. dd.ReadMapEnd()
  19687. return v, changed
  19688. }
  19689. func (d *Decoder) fastpathDecMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  19690. if rv.Kind() == reflect.Ptr {
  19691. vp := rv2i(rv).(*map[interface{}]int64)
  19692. v, changed := fastpathTV.DecMapIntfInt64V(*vp, true, d)
  19693. if changed {
  19694. *vp = v
  19695. }
  19696. } else {
  19697. fastpathTV.DecMapIntfInt64V(rv2i(rv).(map[interface{}]int64), false, d)
  19698. }
  19699. }
  19700. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, d *Decoder) {
  19701. v, changed := f.DecMapIntfInt64V(*vp, true, d)
  19702. if changed {
  19703. *vp = v
  19704. }
  19705. }
  19706. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, canChange bool,
  19707. d *Decoder) (_ map[interface{}]int64, changed bool) {
  19708. dd, esep := d.d, d.hh.hasElemSeparators()
  19709. containerLen := dd.ReadMapStart()
  19710. if canChange && v == nil {
  19711. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19712. v = make(map[interface{}]int64, xlen)
  19713. changed = true
  19714. }
  19715. if containerLen == 0 {
  19716. dd.ReadMapEnd()
  19717. return v, changed
  19718. }
  19719. var mk interface{}
  19720. var mv int64
  19721. hasLen := containerLen > 0
  19722. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19723. if esep {
  19724. dd.ReadMapElemKey()
  19725. }
  19726. mk = nil
  19727. d.decode(&mk)
  19728. if bv, bok := mk.([]byte); bok {
  19729. mk = d.string(bv)
  19730. }
  19731. if esep {
  19732. dd.ReadMapElemValue()
  19733. }
  19734. if dd.TryDecodeAsNil() {
  19735. if v == nil {
  19736. } else if d.h.DeleteOnNilMapValue {
  19737. delete(v, mk)
  19738. } else {
  19739. v[mk] = 0
  19740. }
  19741. continue
  19742. }
  19743. mv = dd.DecodeInt64()
  19744. if v != nil {
  19745. v[mk] = mv
  19746. }
  19747. }
  19748. dd.ReadMapEnd()
  19749. return v, changed
  19750. }
  19751. func (d *Decoder) fastpathDecMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  19752. if rv.Kind() == reflect.Ptr {
  19753. vp := rv2i(rv).(*map[interface{}]float32)
  19754. v, changed := fastpathTV.DecMapIntfFloat32V(*vp, true, d)
  19755. if changed {
  19756. *vp = v
  19757. }
  19758. } else {
  19759. fastpathTV.DecMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), false, d)
  19760. }
  19761. }
  19762. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, d *Decoder) {
  19763. v, changed := f.DecMapIntfFloat32V(*vp, true, d)
  19764. if changed {
  19765. *vp = v
  19766. }
  19767. }
  19768. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, canChange bool,
  19769. d *Decoder) (_ map[interface{}]float32, changed bool) {
  19770. dd, esep := d.d, d.hh.hasElemSeparators()
  19771. containerLen := dd.ReadMapStart()
  19772. if canChange && v == nil {
  19773. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19774. v = make(map[interface{}]float32, xlen)
  19775. changed = true
  19776. }
  19777. if containerLen == 0 {
  19778. dd.ReadMapEnd()
  19779. return v, changed
  19780. }
  19781. var mk interface{}
  19782. var mv float32
  19783. hasLen := containerLen > 0
  19784. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19785. if esep {
  19786. dd.ReadMapElemKey()
  19787. }
  19788. mk = nil
  19789. d.decode(&mk)
  19790. if bv, bok := mk.([]byte); bok {
  19791. mk = d.string(bv)
  19792. }
  19793. if esep {
  19794. dd.ReadMapElemValue()
  19795. }
  19796. if dd.TryDecodeAsNil() {
  19797. if v == nil {
  19798. } else if d.h.DeleteOnNilMapValue {
  19799. delete(v, mk)
  19800. } else {
  19801. v[mk] = 0
  19802. }
  19803. continue
  19804. }
  19805. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  19806. if v != nil {
  19807. v[mk] = mv
  19808. }
  19809. }
  19810. dd.ReadMapEnd()
  19811. return v, changed
  19812. }
  19813. func (d *Decoder) fastpathDecMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  19814. if rv.Kind() == reflect.Ptr {
  19815. vp := rv2i(rv).(*map[interface{}]float64)
  19816. v, changed := fastpathTV.DecMapIntfFloat64V(*vp, true, d)
  19817. if changed {
  19818. *vp = v
  19819. }
  19820. } else {
  19821. fastpathTV.DecMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), false, d)
  19822. }
  19823. }
  19824. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, d *Decoder) {
  19825. v, changed := f.DecMapIntfFloat64V(*vp, true, d)
  19826. if changed {
  19827. *vp = v
  19828. }
  19829. }
  19830. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, canChange bool,
  19831. d *Decoder) (_ map[interface{}]float64, changed bool) {
  19832. dd, esep := d.d, d.hh.hasElemSeparators()
  19833. containerLen := dd.ReadMapStart()
  19834. if canChange && v == nil {
  19835. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19836. v = make(map[interface{}]float64, xlen)
  19837. changed = true
  19838. }
  19839. if containerLen == 0 {
  19840. dd.ReadMapEnd()
  19841. return v, changed
  19842. }
  19843. var mk interface{}
  19844. var mv float64
  19845. hasLen := containerLen > 0
  19846. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19847. if esep {
  19848. dd.ReadMapElemKey()
  19849. }
  19850. mk = nil
  19851. d.decode(&mk)
  19852. if bv, bok := mk.([]byte); bok {
  19853. mk = d.string(bv)
  19854. }
  19855. if esep {
  19856. dd.ReadMapElemValue()
  19857. }
  19858. if dd.TryDecodeAsNil() {
  19859. if v == nil {
  19860. } else if d.h.DeleteOnNilMapValue {
  19861. delete(v, mk)
  19862. } else {
  19863. v[mk] = 0
  19864. }
  19865. continue
  19866. }
  19867. mv = dd.DecodeFloat64()
  19868. if v != nil {
  19869. v[mk] = mv
  19870. }
  19871. }
  19872. dd.ReadMapEnd()
  19873. return v, changed
  19874. }
  19875. func (d *Decoder) fastpathDecMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  19876. if rv.Kind() == reflect.Ptr {
  19877. vp := rv2i(rv).(*map[interface{}]bool)
  19878. v, changed := fastpathTV.DecMapIntfBoolV(*vp, true, d)
  19879. if changed {
  19880. *vp = v
  19881. }
  19882. } else {
  19883. fastpathTV.DecMapIntfBoolV(rv2i(rv).(map[interface{}]bool), false, d)
  19884. }
  19885. }
  19886. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, d *Decoder) {
  19887. v, changed := f.DecMapIntfBoolV(*vp, true, d)
  19888. if changed {
  19889. *vp = v
  19890. }
  19891. }
  19892. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, canChange bool,
  19893. d *Decoder) (_ map[interface{}]bool, changed bool) {
  19894. dd, esep := d.d, d.hh.hasElemSeparators()
  19895. containerLen := dd.ReadMapStart()
  19896. if canChange && v == nil {
  19897. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19898. v = make(map[interface{}]bool, xlen)
  19899. changed = true
  19900. }
  19901. if containerLen == 0 {
  19902. dd.ReadMapEnd()
  19903. return v, changed
  19904. }
  19905. var mk interface{}
  19906. var mv bool
  19907. hasLen := containerLen > 0
  19908. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19909. if esep {
  19910. dd.ReadMapElemKey()
  19911. }
  19912. mk = nil
  19913. d.decode(&mk)
  19914. if bv, bok := mk.([]byte); bok {
  19915. mk = d.string(bv)
  19916. }
  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] = false
  19926. }
  19927. continue
  19928. }
  19929. mv = dd.DecodeBool()
  19930. if v != nil {
  19931. v[mk] = mv
  19932. }
  19933. }
  19934. dd.ReadMapEnd()
  19935. return v, changed
  19936. }
  19937. func (d *Decoder) fastpathDecMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  19938. if rv.Kind() == reflect.Ptr {
  19939. vp := rv2i(rv).(*map[string]interface{})
  19940. v, changed := fastpathTV.DecMapStringIntfV(*vp, true, d)
  19941. if changed {
  19942. *vp = v
  19943. }
  19944. } else {
  19945. fastpathTV.DecMapStringIntfV(rv2i(rv).(map[string]interface{}), false, d)
  19946. }
  19947. }
  19948. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, d *Decoder) {
  19949. v, changed := f.DecMapStringIntfV(*vp, true, d)
  19950. if changed {
  19951. *vp = v
  19952. }
  19953. }
  19954. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, canChange bool,
  19955. d *Decoder) (_ map[string]interface{}, 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, 32)
  19960. v = make(map[string]interface{}, xlen)
  19961. changed = true
  19962. }
  19963. if containerLen == 0 {
  19964. dd.ReadMapEnd()
  19965. return v, changed
  19966. }
  19967. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  19968. var mk string
  19969. var mv interface{}
  19970. hasLen := containerLen > 0
  19971. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19972. if esep {
  19973. dd.ReadMapElemKey()
  19974. }
  19975. mk = dd.DecodeString()
  19976. if esep {
  19977. dd.ReadMapElemValue()
  19978. }
  19979. if dd.TryDecodeAsNil() {
  19980. if v == nil {
  19981. } else if d.h.DeleteOnNilMapValue {
  19982. delete(v, mk)
  19983. } else {
  19984. v[mk] = nil
  19985. }
  19986. continue
  19987. }
  19988. if mapGet {
  19989. mv = v[mk]
  19990. } else {
  19991. mv = nil
  19992. }
  19993. d.decode(&mv)
  19994. if v != nil {
  19995. v[mk] = mv
  19996. }
  19997. }
  19998. dd.ReadMapEnd()
  19999. return v, changed
  20000. }
  20001. func (d *Decoder) fastpathDecMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  20002. if rv.Kind() == reflect.Ptr {
  20003. vp := rv2i(rv).(*map[string]string)
  20004. v, changed := fastpathTV.DecMapStringStringV(*vp, true, d)
  20005. if changed {
  20006. *vp = v
  20007. }
  20008. } else {
  20009. fastpathTV.DecMapStringStringV(rv2i(rv).(map[string]string), false, d)
  20010. }
  20011. }
  20012. func (f fastpathT) DecMapStringStringX(vp *map[string]string, d *Decoder) {
  20013. v, changed := f.DecMapStringStringV(*vp, true, d)
  20014. if changed {
  20015. *vp = v
  20016. }
  20017. }
  20018. func (_ fastpathT) DecMapStringStringV(v map[string]string, canChange bool,
  20019. d *Decoder) (_ map[string]string, changed bool) {
  20020. dd, esep := d.d, d.hh.hasElemSeparators()
  20021. containerLen := dd.ReadMapStart()
  20022. if canChange && v == nil {
  20023. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  20024. v = make(map[string]string, xlen)
  20025. changed = true
  20026. }
  20027. if containerLen == 0 {
  20028. dd.ReadMapEnd()
  20029. return v, changed
  20030. }
  20031. var mk string
  20032. var mv string
  20033. hasLen := containerLen > 0
  20034. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20035. if esep {
  20036. dd.ReadMapElemKey()
  20037. }
  20038. mk = dd.DecodeString()
  20039. if esep {
  20040. dd.ReadMapElemValue()
  20041. }
  20042. if dd.TryDecodeAsNil() {
  20043. if v == nil {
  20044. } else if d.h.DeleteOnNilMapValue {
  20045. delete(v, mk)
  20046. } else {
  20047. v[mk] = ""
  20048. }
  20049. continue
  20050. }
  20051. mv = dd.DecodeString()
  20052. if v != nil {
  20053. v[mk] = mv
  20054. }
  20055. }
  20056. dd.ReadMapEnd()
  20057. return v, changed
  20058. }
  20059. func (d *Decoder) fastpathDecMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  20060. if rv.Kind() == reflect.Ptr {
  20061. vp := rv2i(rv).(*map[string]uint)
  20062. v, changed := fastpathTV.DecMapStringUintV(*vp, true, d)
  20063. if changed {
  20064. *vp = v
  20065. }
  20066. } else {
  20067. fastpathTV.DecMapStringUintV(rv2i(rv).(map[string]uint), false, d)
  20068. }
  20069. }
  20070. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, d *Decoder) {
  20071. v, changed := f.DecMapStringUintV(*vp, true, d)
  20072. if changed {
  20073. *vp = v
  20074. }
  20075. }
  20076. func (_ fastpathT) DecMapStringUintV(v map[string]uint, canChange bool,
  20077. d *Decoder) (_ map[string]uint, changed bool) {
  20078. dd, esep := d.d, d.hh.hasElemSeparators()
  20079. containerLen := dd.ReadMapStart()
  20080. if canChange && v == nil {
  20081. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20082. v = make(map[string]uint, xlen)
  20083. changed = true
  20084. }
  20085. if containerLen == 0 {
  20086. dd.ReadMapEnd()
  20087. return v, changed
  20088. }
  20089. var mk string
  20090. var mv uint
  20091. hasLen := containerLen > 0
  20092. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20093. if esep {
  20094. dd.ReadMapElemKey()
  20095. }
  20096. mk = dd.DecodeString()
  20097. if esep {
  20098. dd.ReadMapElemValue()
  20099. }
  20100. if dd.TryDecodeAsNil() {
  20101. if v == nil {
  20102. } else if d.h.DeleteOnNilMapValue {
  20103. delete(v, mk)
  20104. } else {
  20105. v[mk] = 0
  20106. }
  20107. continue
  20108. }
  20109. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  20110. if v != nil {
  20111. v[mk] = mv
  20112. }
  20113. }
  20114. dd.ReadMapEnd()
  20115. return v, changed
  20116. }
  20117. func (d *Decoder) fastpathDecMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  20118. if rv.Kind() == reflect.Ptr {
  20119. vp := rv2i(rv).(*map[string]uint8)
  20120. v, changed := fastpathTV.DecMapStringUint8V(*vp, true, d)
  20121. if changed {
  20122. *vp = v
  20123. }
  20124. } else {
  20125. fastpathTV.DecMapStringUint8V(rv2i(rv).(map[string]uint8), false, d)
  20126. }
  20127. }
  20128. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, d *Decoder) {
  20129. v, changed := f.DecMapStringUint8V(*vp, true, d)
  20130. if changed {
  20131. *vp = v
  20132. }
  20133. }
  20134. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, canChange bool,
  20135. d *Decoder) (_ map[string]uint8, changed bool) {
  20136. dd, esep := d.d, d.hh.hasElemSeparators()
  20137. containerLen := dd.ReadMapStart()
  20138. if canChange && v == nil {
  20139. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20140. v = make(map[string]uint8, xlen)
  20141. changed = true
  20142. }
  20143. if containerLen == 0 {
  20144. dd.ReadMapEnd()
  20145. return v, changed
  20146. }
  20147. var mk string
  20148. var mv uint8
  20149. hasLen := containerLen > 0
  20150. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20151. if esep {
  20152. dd.ReadMapElemKey()
  20153. }
  20154. mk = dd.DecodeString()
  20155. if esep {
  20156. dd.ReadMapElemValue()
  20157. }
  20158. if dd.TryDecodeAsNil() {
  20159. if v == nil {
  20160. } else if d.h.DeleteOnNilMapValue {
  20161. delete(v, mk)
  20162. } else {
  20163. v[mk] = 0
  20164. }
  20165. continue
  20166. }
  20167. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  20168. if v != nil {
  20169. v[mk] = mv
  20170. }
  20171. }
  20172. dd.ReadMapEnd()
  20173. return v, changed
  20174. }
  20175. func (d *Decoder) fastpathDecMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  20176. if rv.Kind() == reflect.Ptr {
  20177. vp := rv2i(rv).(*map[string]uint16)
  20178. v, changed := fastpathTV.DecMapStringUint16V(*vp, true, d)
  20179. if changed {
  20180. *vp = v
  20181. }
  20182. } else {
  20183. fastpathTV.DecMapStringUint16V(rv2i(rv).(map[string]uint16), false, d)
  20184. }
  20185. }
  20186. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, d *Decoder) {
  20187. v, changed := f.DecMapStringUint16V(*vp, true, d)
  20188. if changed {
  20189. *vp = v
  20190. }
  20191. }
  20192. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, canChange bool,
  20193. d *Decoder) (_ map[string]uint16, changed bool) {
  20194. dd, esep := d.d, d.hh.hasElemSeparators()
  20195. containerLen := dd.ReadMapStart()
  20196. if canChange && v == nil {
  20197. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20198. v = make(map[string]uint16, xlen)
  20199. changed = true
  20200. }
  20201. if containerLen == 0 {
  20202. dd.ReadMapEnd()
  20203. return v, changed
  20204. }
  20205. var mk string
  20206. var mv uint16
  20207. hasLen := containerLen > 0
  20208. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20209. if esep {
  20210. dd.ReadMapElemKey()
  20211. }
  20212. mk = dd.DecodeString()
  20213. if esep {
  20214. dd.ReadMapElemValue()
  20215. }
  20216. if dd.TryDecodeAsNil() {
  20217. if v == nil {
  20218. } else if d.h.DeleteOnNilMapValue {
  20219. delete(v, mk)
  20220. } else {
  20221. v[mk] = 0
  20222. }
  20223. continue
  20224. }
  20225. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  20226. if v != nil {
  20227. v[mk] = mv
  20228. }
  20229. }
  20230. dd.ReadMapEnd()
  20231. return v, changed
  20232. }
  20233. func (d *Decoder) fastpathDecMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  20234. if rv.Kind() == reflect.Ptr {
  20235. vp := rv2i(rv).(*map[string]uint32)
  20236. v, changed := fastpathTV.DecMapStringUint32V(*vp, true, d)
  20237. if changed {
  20238. *vp = v
  20239. }
  20240. } else {
  20241. fastpathTV.DecMapStringUint32V(rv2i(rv).(map[string]uint32), false, d)
  20242. }
  20243. }
  20244. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, d *Decoder) {
  20245. v, changed := f.DecMapStringUint32V(*vp, true, d)
  20246. if changed {
  20247. *vp = v
  20248. }
  20249. }
  20250. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, canChange bool,
  20251. d *Decoder) (_ map[string]uint32, changed bool) {
  20252. dd, esep := d.d, d.hh.hasElemSeparators()
  20253. containerLen := dd.ReadMapStart()
  20254. if canChange && v == nil {
  20255. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20256. v = make(map[string]uint32, xlen)
  20257. changed = true
  20258. }
  20259. if containerLen == 0 {
  20260. dd.ReadMapEnd()
  20261. return v, changed
  20262. }
  20263. var mk string
  20264. var mv uint32
  20265. hasLen := containerLen > 0
  20266. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20267. if esep {
  20268. dd.ReadMapElemKey()
  20269. }
  20270. mk = dd.DecodeString()
  20271. if esep {
  20272. dd.ReadMapElemValue()
  20273. }
  20274. if dd.TryDecodeAsNil() {
  20275. if v == nil {
  20276. } else if d.h.DeleteOnNilMapValue {
  20277. delete(v, mk)
  20278. } else {
  20279. v[mk] = 0
  20280. }
  20281. continue
  20282. }
  20283. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  20284. if v != nil {
  20285. v[mk] = mv
  20286. }
  20287. }
  20288. dd.ReadMapEnd()
  20289. return v, changed
  20290. }
  20291. func (d *Decoder) fastpathDecMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  20292. if rv.Kind() == reflect.Ptr {
  20293. vp := rv2i(rv).(*map[string]uint64)
  20294. v, changed := fastpathTV.DecMapStringUint64V(*vp, true, d)
  20295. if changed {
  20296. *vp = v
  20297. }
  20298. } else {
  20299. fastpathTV.DecMapStringUint64V(rv2i(rv).(map[string]uint64), false, d)
  20300. }
  20301. }
  20302. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, d *Decoder) {
  20303. v, changed := f.DecMapStringUint64V(*vp, true, d)
  20304. if changed {
  20305. *vp = v
  20306. }
  20307. }
  20308. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, canChange bool,
  20309. d *Decoder) (_ map[string]uint64, changed bool) {
  20310. dd, esep := d.d, d.hh.hasElemSeparators()
  20311. containerLen := dd.ReadMapStart()
  20312. if canChange && v == nil {
  20313. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20314. v = make(map[string]uint64, xlen)
  20315. changed = true
  20316. }
  20317. if containerLen == 0 {
  20318. dd.ReadMapEnd()
  20319. return v, changed
  20320. }
  20321. var mk string
  20322. var mv uint64
  20323. hasLen := containerLen > 0
  20324. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20325. if esep {
  20326. dd.ReadMapElemKey()
  20327. }
  20328. mk = dd.DecodeString()
  20329. if esep {
  20330. dd.ReadMapElemValue()
  20331. }
  20332. if dd.TryDecodeAsNil() {
  20333. if v == nil {
  20334. } else if d.h.DeleteOnNilMapValue {
  20335. delete(v, mk)
  20336. } else {
  20337. v[mk] = 0
  20338. }
  20339. continue
  20340. }
  20341. mv = dd.DecodeUint64()
  20342. if v != nil {
  20343. v[mk] = mv
  20344. }
  20345. }
  20346. dd.ReadMapEnd()
  20347. return v, changed
  20348. }
  20349. func (d *Decoder) fastpathDecMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  20350. if rv.Kind() == reflect.Ptr {
  20351. vp := rv2i(rv).(*map[string]uintptr)
  20352. v, changed := fastpathTV.DecMapStringUintptrV(*vp, true, d)
  20353. if changed {
  20354. *vp = v
  20355. }
  20356. } else {
  20357. fastpathTV.DecMapStringUintptrV(rv2i(rv).(map[string]uintptr), false, d)
  20358. }
  20359. }
  20360. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, d *Decoder) {
  20361. v, changed := f.DecMapStringUintptrV(*vp, true, d)
  20362. if changed {
  20363. *vp = v
  20364. }
  20365. }
  20366. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, canChange bool,
  20367. d *Decoder) (_ map[string]uintptr, 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[string]uintptr, xlen)
  20373. changed = true
  20374. }
  20375. if containerLen == 0 {
  20376. dd.ReadMapEnd()
  20377. return v, changed
  20378. }
  20379. var mk string
  20380. var mv uintptr
  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.DecodeString()
  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] = 0
  20396. }
  20397. continue
  20398. }
  20399. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  20400. if v != nil {
  20401. v[mk] = mv
  20402. }
  20403. }
  20404. dd.ReadMapEnd()
  20405. return v, changed
  20406. }
  20407. func (d *Decoder) fastpathDecMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  20408. if rv.Kind() == reflect.Ptr {
  20409. vp := rv2i(rv).(*map[string]int)
  20410. v, changed := fastpathTV.DecMapStringIntV(*vp, true, d)
  20411. if changed {
  20412. *vp = v
  20413. }
  20414. } else {
  20415. fastpathTV.DecMapStringIntV(rv2i(rv).(map[string]int), false, d)
  20416. }
  20417. }
  20418. func (f fastpathT) DecMapStringIntX(vp *map[string]int, d *Decoder) {
  20419. v, changed := f.DecMapStringIntV(*vp, true, d)
  20420. if changed {
  20421. *vp = v
  20422. }
  20423. }
  20424. func (_ fastpathT) DecMapStringIntV(v map[string]int, canChange bool,
  20425. d *Decoder) (_ map[string]int, 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, 24)
  20430. v = make(map[string]int, xlen)
  20431. changed = true
  20432. }
  20433. if containerLen == 0 {
  20434. dd.ReadMapEnd()
  20435. return v, changed
  20436. }
  20437. var mk string
  20438. var mv int
  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.DecodeString()
  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 = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  20458. if v != nil {
  20459. v[mk] = mv
  20460. }
  20461. }
  20462. dd.ReadMapEnd()
  20463. return v, changed
  20464. }
  20465. func (d *Decoder) fastpathDecMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  20466. if rv.Kind() == reflect.Ptr {
  20467. vp := rv2i(rv).(*map[string]int8)
  20468. v, changed := fastpathTV.DecMapStringInt8V(*vp, true, d)
  20469. if changed {
  20470. *vp = v
  20471. }
  20472. } else {
  20473. fastpathTV.DecMapStringInt8V(rv2i(rv).(map[string]int8), false, d)
  20474. }
  20475. }
  20476. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, d *Decoder) {
  20477. v, changed := f.DecMapStringInt8V(*vp, true, d)
  20478. if changed {
  20479. *vp = v
  20480. }
  20481. }
  20482. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, canChange bool,
  20483. d *Decoder) (_ map[string]int8, 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, 17)
  20488. v = make(map[string]int8, xlen)
  20489. changed = true
  20490. }
  20491. if containerLen == 0 {
  20492. dd.ReadMapEnd()
  20493. return v, changed
  20494. }
  20495. var mk string
  20496. var mv int8
  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.DecodeString()
  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 = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  20516. if v != nil {
  20517. v[mk] = mv
  20518. }
  20519. }
  20520. dd.ReadMapEnd()
  20521. return v, changed
  20522. }
  20523. func (d *Decoder) fastpathDecMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  20524. if rv.Kind() == reflect.Ptr {
  20525. vp := rv2i(rv).(*map[string]int16)
  20526. v, changed := fastpathTV.DecMapStringInt16V(*vp, true, d)
  20527. if changed {
  20528. *vp = v
  20529. }
  20530. } else {
  20531. fastpathTV.DecMapStringInt16V(rv2i(rv).(map[string]int16), false, d)
  20532. }
  20533. }
  20534. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, d *Decoder) {
  20535. v, changed := f.DecMapStringInt16V(*vp, true, d)
  20536. if changed {
  20537. *vp = v
  20538. }
  20539. }
  20540. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, canChange bool,
  20541. d *Decoder) (_ map[string]int16, 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, 18)
  20546. v = make(map[string]int16, xlen)
  20547. changed = true
  20548. }
  20549. if containerLen == 0 {
  20550. dd.ReadMapEnd()
  20551. return v, changed
  20552. }
  20553. var mk string
  20554. var mv int16
  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.DecodeString()
  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 = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  20574. if v != nil {
  20575. v[mk] = mv
  20576. }
  20577. }
  20578. dd.ReadMapEnd()
  20579. return v, changed
  20580. }
  20581. func (d *Decoder) fastpathDecMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  20582. if rv.Kind() == reflect.Ptr {
  20583. vp := rv2i(rv).(*map[string]int32)
  20584. v, changed := fastpathTV.DecMapStringInt32V(*vp, true, d)
  20585. if changed {
  20586. *vp = v
  20587. }
  20588. } else {
  20589. fastpathTV.DecMapStringInt32V(rv2i(rv).(map[string]int32), false, d)
  20590. }
  20591. }
  20592. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, d *Decoder) {
  20593. v, changed := f.DecMapStringInt32V(*vp, true, d)
  20594. if changed {
  20595. *vp = v
  20596. }
  20597. }
  20598. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, canChange bool,
  20599. d *Decoder) (_ map[string]int32, 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, 20)
  20604. v = make(map[string]int32, xlen)
  20605. changed = true
  20606. }
  20607. if containerLen == 0 {
  20608. dd.ReadMapEnd()
  20609. return v, changed
  20610. }
  20611. var mk string
  20612. var mv int32
  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.DecodeString()
  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 = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  20632. if v != nil {
  20633. v[mk] = mv
  20634. }
  20635. }
  20636. dd.ReadMapEnd()
  20637. return v, changed
  20638. }
  20639. func (d *Decoder) fastpathDecMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  20640. if rv.Kind() == reflect.Ptr {
  20641. vp := rv2i(rv).(*map[string]int64)
  20642. v, changed := fastpathTV.DecMapStringInt64V(*vp, true, d)
  20643. if changed {
  20644. *vp = v
  20645. }
  20646. } else {
  20647. fastpathTV.DecMapStringInt64V(rv2i(rv).(map[string]int64), false, d)
  20648. }
  20649. }
  20650. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, d *Decoder) {
  20651. v, changed := f.DecMapStringInt64V(*vp, true, d)
  20652. if changed {
  20653. *vp = v
  20654. }
  20655. }
  20656. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, canChange bool,
  20657. d *Decoder) (_ map[string]int64, 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, 24)
  20662. v = make(map[string]int64, xlen)
  20663. changed = true
  20664. }
  20665. if containerLen == 0 {
  20666. dd.ReadMapEnd()
  20667. return v, changed
  20668. }
  20669. var mk string
  20670. var mv int64
  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.DecodeString()
  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.DecodeInt64()
  20690. if v != nil {
  20691. v[mk] = mv
  20692. }
  20693. }
  20694. dd.ReadMapEnd()
  20695. return v, changed
  20696. }
  20697. func (d *Decoder) fastpathDecMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  20698. if rv.Kind() == reflect.Ptr {
  20699. vp := rv2i(rv).(*map[string]float32)
  20700. v, changed := fastpathTV.DecMapStringFloat32V(*vp, true, d)
  20701. if changed {
  20702. *vp = v
  20703. }
  20704. } else {
  20705. fastpathTV.DecMapStringFloat32V(rv2i(rv).(map[string]float32), false, d)
  20706. }
  20707. }
  20708. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, d *Decoder) {
  20709. v, changed := f.DecMapStringFloat32V(*vp, true, d)
  20710. if changed {
  20711. *vp = v
  20712. }
  20713. }
  20714. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, canChange bool,
  20715. d *Decoder) (_ map[string]float32, 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, 20)
  20720. v = make(map[string]float32, xlen)
  20721. changed = true
  20722. }
  20723. if containerLen == 0 {
  20724. dd.ReadMapEnd()
  20725. return v, changed
  20726. }
  20727. var mk string
  20728. var mv float32
  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.DecodeString()
  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 = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20748. if v != nil {
  20749. v[mk] = mv
  20750. }
  20751. }
  20752. dd.ReadMapEnd()
  20753. return v, changed
  20754. }
  20755. func (d *Decoder) fastpathDecMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  20756. if rv.Kind() == reflect.Ptr {
  20757. vp := rv2i(rv).(*map[string]float64)
  20758. v, changed := fastpathTV.DecMapStringFloat64V(*vp, true, d)
  20759. if changed {
  20760. *vp = v
  20761. }
  20762. } else {
  20763. fastpathTV.DecMapStringFloat64V(rv2i(rv).(map[string]float64), false, d)
  20764. }
  20765. }
  20766. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, d *Decoder) {
  20767. v, changed := f.DecMapStringFloat64V(*vp, true, d)
  20768. if changed {
  20769. *vp = v
  20770. }
  20771. }
  20772. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, canChange bool,
  20773. d *Decoder) (_ map[string]float64, 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, 24)
  20778. v = make(map[string]float64, xlen)
  20779. changed = true
  20780. }
  20781. if containerLen == 0 {
  20782. dd.ReadMapEnd()
  20783. return v, changed
  20784. }
  20785. var mk string
  20786. var mv float64
  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.DecodeString()
  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 = dd.DecodeFloat64()
  20806. if v != nil {
  20807. v[mk] = mv
  20808. }
  20809. }
  20810. dd.ReadMapEnd()
  20811. return v, changed
  20812. }
  20813. func (d *Decoder) fastpathDecMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  20814. if rv.Kind() == reflect.Ptr {
  20815. vp := rv2i(rv).(*map[string]bool)
  20816. v, changed := fastpathTV.DecMapStringBoolV(*vp, true, d)
  20817. if changed {
  20818. *vp = v
  20819. }
  20820. } else {
  20821. fastpathTV.DecMapStringBoolV(rv2i(rv).(map[string]bool), false, d)
  20822. }
  20823. }
  20824. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, d *Decoder) {
  20825. v, changed := f.DecMapStringBoolV(*vp, true, d)
  20826. if changed {
  20827. *vp = v
  20828. }
  20829. }
  20830. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, canChange bool,
  20831. d *Decoder) (_ map[string]bool, 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, 17)
  20836. v = make(map[string]bool, xlen)
  20837. changed = true
  20838. }
  20839. if containerLen == 0 {
  20840. dd.ReadMapEnd()
  20841. return v, changed
  20842. }
  20843. var mk string
  20844. var mv bool
  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.DecodeString()
  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] = false
  20860. }
  20861. continue
  20862. }
  20863. mv = dd.DecodeBool()
  20864. if v != nil {
  20865. v[mk] = mv
  20866. }
  20867. }
  20868. dd.ReadMapEnd()
  20869. return v, changed
  20870. }
  20871. func (d *Decoder) fastpathDecMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  20872. if rv.Kind() == reflect.Ptr {
  20873. vp := rv2i(rv).(*map[float32]interface{})
  20874. v, changed := fastpathTV.DecMapFloat32IntfV(*vp, true, d)
  20875. if changed {
  20876. *vp = v
  20877. }
  20878. } else {
  20879. fastpathTV.DecMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), false, d)
  20880. }
  20881. }
  20882. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, d *Decoder) {
  20883. v, changed := f.DecMapFloat32IntfV(*vp, true, d)
  20884. if changed {
  20885. *vp = v
  20886. }
  20887. }
  20888. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, canChange bool,
  20889. d *Decoder) (_ map[float32]interface{}, 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, 20)
  20894. v = make(map[float32]interface{}, xlen)
  20895. changed = true
  20896. }
  20897. if containerLen == 0 {
  20898. dd.ReadMapEnd()
  20899. return v, changed
  20900. }
  20901. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  20902. var mk float32
  20903. var mv interface{}
  20904. hasLen := containerLen > 0
  20905. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20906. if esep {
  20907. dd.ReadMapElemKey()
  20908. }
  20909. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20910. if esep {
  20911. dd.ReadMapElemValue()
  20912. }
  20913. if dd.TryDecodeAsNil() {
  20914. if v == nil {
  20915. } else if d.h.DeleteOnNilMapValue {
  20916. delete(v, mk)
  20917. } else {
  20918. v[mk] = nil
  20919. }
  20920. continue
  20921. }
  20922. if mapGet {
  20923. mv = v[mk]
  20924. } else {
  20925. mv = nil
  20926. }
  20927. d.decode(&mv)
  20928. if v != nil {
  20929. v[mk] = mv
  20930. }
  20931. }
  20932. dd.ReadMapEnd()
  20933. return v, changed
  20934. }
  20935. func (d *Decoder) fastpathDecMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  20936. if rv.Kind() == reflect.Ptr {
  20937. vp := rv2i(rv).(*map[float32]string)
  20938. v, changed := fastpathTV.DecMapFloat32StringV(*vp, true, d)
  20939. if changed {
  20940. *vp = v
  20941. }
  20942. } else {
  20943. fastpathTV.DecMapFloat32StringV(rv2i(rv).(map[float32]string), false, d)
  20944. }
  20945. }
  20946. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, d *Decoder) {
  20947. v, changed := f.DecMapFloat32StringV(*vp, true, d)
  20948. if changed {
  20949. *vp = v
  20950. }
  20951. }
  20952. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, canChange bool,
  20953. d *Decoder) (_ map[float32]string, changed bool) {
  20954. dd, esep := d.d, d.hh.hasElemSeparators()
  20955. containerLen := dd.ReadMapStart()
  20956. if canChange && v == nil {
  20957. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20958. v = make(map[float32]string, xlen)
  20959. changed = true
  20960. }
  20961. if containerLen == 0 {
  20962. dd.ReadMapEnd()
  20963. return v, changed
  20964. }
  20965. var mk float32
  20966. var mv string
  20967. hasLen := containerLen > 0
  20968. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20969. if esep {
  20970. dd.ReadMapElemKey()
  20971. }
  20972. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20973. if esep {
  20974. dd.ReadMapElemValue()
  20975. }
  20976. if dd.TryDecodeAsNil() {
  20977. if v == nil {
  20978. } else if d.h.DeleteOnNilMapValue {
  20979. delete(v, mk)
  20980. } else {
  20981. v[mk] = ""
  20982. }
  20983. continue
  20984. }
  20985. mv = dd.DecodeString()
  20986. if v != nil {
  20987. v[mk] = mv
  20988. }
  20989. }
  20990. dd.ReadMapEnd()
  20991. return v, changed
  20992. }
  20993. func (d *Decoder) fastpathDecMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  20994. if rv.Kind() == reflect.Ptr {
  20995. vp := rv2i(rv).(*map[float32]uint)
  20996. v, changed := fastpathTV.DecMapFloat32UintV(*vp, true, d)
  20997. if changed {
  20998. *vp = v
  20999. }
  21000. } else {
  21001. fastpathTV.DecMapFloat32UintV(rv2i(rv).(map[float32]uint), false, d)
  21002. }
  21003. }
  21004. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, d *Decoder) {
  21005. v, changed := f.DecMapFloat32UintV(*vp, true, d)
  21006. if changed {
  21007. *vp = v
  21008. }
  21009. }
  21010. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, canChange bool,
  21011. d *Decoder) (_ map[float32]uint, changed bool) {
  21012. dd, esep := d.d, d.hh.hasElemSeparators()
  21013. containerLen := dd.ReadMapStart()
  21014. if canChange && v == nil {
  21015. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21016. v = make(map[float32]uint, xlen)
  21017. changed = true
  21018. }
  21019. if containerLen == 0 {
  21020. dd.ReadMapEnd()
  21021. return v, changed
  21022. }
  21023. var mk float32
  21024. var mv uint
  21025. hasLen := containerLen > 0
  21026. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21027. if esep {
  21028. dd.ReadMapElemKey()
  21029. }
  21030. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21031. if esep {
  21032. dd.ReadMapElemValue()
  21033. }
  21034. if dd.TryDecodeAsNil() {
  21035. if v == nil {
  21036. } else if d.h.DeleteOnNilMapValue {
  21037. delete(v, mk)
  21038. } else {
  21039. v[mk] = 0
  21040. }
  21041. continue
  21042. }
  21043. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21044. if v != nil {
  21045. v[mk] = mv
  21046. }
  21047. }
  21048. dd.ReadMapEnd()
  21049. return v, changed
  21050. }
  21051. func (d *Decoder) fastpathDecMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  21052. if rv.Kind() == reflect.Ptr {
  21053. vp := rv2i(rv).(*map[float32]uint8)
  21054. v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, true, d)
  21055. if changed {
  21056. *vp = v
  21057. }
  21058. } else {
  21059. fastpathTV.DecMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), false, d)
  21060. }
  21061. }
  21062. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, d *Decoder) {
  21063. v, changed := f.DecMapFloat32Uint8V(*vp, true, d)
  21064. if changed {
  21065. *vp = v
  21066. }
  21067. }
  21068. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, canChange bool,
  21069. d *Decoder) (_ map[float32]uint8, changed bool) {
  21070. dd, esep := d.d, d.hh.hasElemSeparators()
  21071. containerLen := dd.ReadMapStart()
  21072. if canChange && v == nil {
  21073. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21074. v = make(map[float32]uint8, xlen)
  21075. changed = true
  21076. }
  21077. if containerLen == 0 {
  21078. dd.ReadMapEnd()
  21079. return v, changed
  21080. }
  21081. var mk float32
  21082. var mv uint8
  21083. hasLen := containerLen > 0
  21084. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21085. if esep {
  21086. dd.ReadMapElemKey()
  21087. }
  21088. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21089. if esep {
  21090. dd.ReadMapElemValue()
  21091. }
  21092. if dd.TryDecodeAsNil() {
  21093. if v == nil {
  21094. } else if d.h.DeleteOnNilMapValue {
  21095. delete(v, mk)
  21096. } else {
  21097. v[mk] = 0
  21098. }
  21099. continue
  21100. }
  21101. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  21102. if v != nil {
  21103. v[mk] = mv
  21104. }
  21105. }
  21106. dd.ReadMapEnd()
  21107. return v, changed
  21108. }
  21109. func (d *Decoder) fastpathDecMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  21110. if rv.Kind() == reflect.Ptr {
  21111. vp := rv2i(rv).(*map[float32]uint16)
  21112. v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, true, d)
  21113. if changed {
  21114. *vp = v
  21115. }
  21116. } else {
  21117. fastpathTV.DecMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), false, d)
  21118. }
  21119. }
  21120. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, d *Decoder) {
  21121. v, changed := f.DecMapFloat32Uint16V(*vp, true, d)
  21122. if changed {
  21123. *vp = v
  21124. }
  21125. }
  21126. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, canChange bool,
  21127. d *Decoder) (_ map[float32]uint16, changed bool) {
  21128. dd, esep := d.d, d.hh.hasElemSeparators()
  21129. containerLen := dd.ReadMapStart()
  21130. if canChange && v == nil {
  21131. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21132. v = make(map[float32]uint16, xlen)
  21133. changed = true
  21134. }
  21135. if containerLen == 0 {
  21136. dd.ReadMapEnd()
  21137. return v, changed
  21138. }
  21139. var mk float32
  21140. var mv uint16
  21141. hasLen := containerLen > 0
  21142. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21143. if esep {
  21144. dd.ReadMapElemKey()
  21145. }
  21146. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21147. if esep {
  21148. dd.ReadMapElemValue()
  21149. }
  21150. if dd.TryDecodeAsNil() {
  21151. if v == nil {
  21152. } else if d.h.DeleteOnNilMapValue {
  21153. delete(v, mk)
  21154. } else {
  21155. v[mk] = 0
  21156. }
  21157. continue
  21158. }
  21159. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  21160. if v != nil {
  21161. v[mk] = mv
  21162. }
  21163. }
  21164. dd.ReadMapEnd()
  21165. return v, changed
  21166. }
  21167. func (d *Decoder) fastpathDecMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  21168. if rv.Kind() == reflect.Ptr {
  21169. vp := rv2i(rv).(*map[float32]uint32)
  21170. v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, true, d)
  21171. if changed {
  21172. *vp = v
  21173. }
  21174. } else {
  21175. fastpathTV.DecMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), false, d)
  21176. }
  21177. }
  21178. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, d *Decoder) {
  21179. v, changed := f.DecMapFloat32Uint32V(*vp, true, d)
  21180. if changed {
  21181. *vp = v
  21182. }
  21183. }
  21184. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, canChange bool,
  21185. d *Decoder) (_ map[float32]uint32, changed bool) {
  21186. dd, esep := d.d, d.hh.hasElemSeparators()
  21187. containerLen := dd.ReadMapStart()
  21188. if canChange && v == nil {
  21189. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21190. v = make(map[float32]uint32, xlen)
  21191. changed = true
  21192. }
  21193. if containerLen == 0 {
  21194. dd.ReadMapEnd()
  21195. return v, changed
  21196. }
  21197. var mk float32
  21198. var mv uint32
  21199. hasLen := containerLen > 0
  21200. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21201. if esep {
  21202. dd.ReadMapElemKey()
  21203. }
  21204. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21205. if esep {
  21206. dd.ReadMapElemValue()
  21207. }
  21208. if dd.TryDecodeAsNil() {
  21209. if v == nil {
  21210. } else if d.h.DeleteOnNilMapValue {
  21211. delete(v, mk)
  21212. } else {
  21213. v[mk] = 0
  21214. }
  21215. continue
  21216. }
  21217. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  21218. if v != nil {
  21219. v[mk] = mv
  21220. }
  21221. }
  21222. dd.ReadMapEnd()
  21223. return v, changed
  21224. }
  21225. func (d *Decoder) fastpathDecMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  21226. if rv.Kind() == reflect.Ptr {
  21227. vp := rv2i(rv).(*map[float32]uint64)
  21228. v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, true, d)
  21229. if changed {
  21230. *vp = v
  21231. }
  21232. } else {
  21233. fastpathTV.DecMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), false, d)
  21234. }
  21235. }
  21236. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, d *Decoder) {
  21237. v, changed := f.DecMapFloat32Uint64V(*vp, true, d)
  21238. if changed {
  21239. *vp = v
  21240. }
  21241. }
  21242. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, canChange bool,
  21243. d *Decoder) (_ map[float32]uint64, changed bool) {
  21244. dd, esep := d.d, d.hh.hasElemSeparators()
  21245. containerLen := dd.ReadMapStart()
  21246. if canChange && v == nil {
  21247. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21248. v = make(map[float32]uint64, xlen)
  21249. changed = true
  21250. }
  21251. if containerLen == 0 {
  21252. dd.ReadMapEnd()
  21253. return v, changed
  21254. }
  21255. var mk float32
  21256. var mv uint64
  21257. hasLen := containerLen > 0
  21258. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21259. if esep {
  21260. dd.ReadMapElemKey()
  21261. }
  21262. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21263. if esep {
  21264. dd.ReadMapElemValue()
  21265. }
  21266. if dd.TryDecodeAsNil() {
  21267. if v == nil {
  21268. } else if d.h.DeleteOnNilMapValue {
  21269. delete(v, mk)
  21270. } else {
  21271. v[mk] = 0
  21272. }
  21273. continue
  21274. }
  21275. mv = dd.DecodeUint64()
  21276. if v != nil {
  21277. v[mk] = mv
  21278. }
  21279. }
  21280. dd.ReadMapEnd()
  21281. return v, changed
  21282. }
  21283. func (d *Decoder) fastpathDecMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  21284. if rv.Kind() == reflect.Ptr {
  21285. vp := rv2i(rv).(*map[float32]uintptr)
  21286. v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, true, d)
  21287. if changed {
  21288. *vp = v
  21289. }
  21290. } else {
  21291. fastpathTV.DecMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), false, d)
  21292. }
  21293. }
  21294. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, d *Decoder) {
  21295. v, changed := f.DecMapFloat32UintptrV(*vp, true, d)
  21296. if changed {
  21297. *vp = v
  21298. }
  21299. }
  21300. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, canChange bool,
  21301. d *Decoder) (_ map[float32]uintptr, 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, 12)
  21306. v = make(map[float32]uintptr, xlen)
  21307. changed = true
  21308. }
  21309. if containerLen == 0 {
  21310. dd.ReadMapEnd()
  21311. return v, changed
  21312. }
  21313. var mk float32
  21314. var mv uintptr
  21315. hasLen := containerLen > 0
  21316. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21317. if esep {
  21318. dd.ReadMapElemKey()
  21319. }
  21320. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  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] = 0
  21330. }
  21331. continue
  21332. }
  21333. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21334. if v != nil {
  21335. v[mk] = mv
  21336. }
  21337. }
  21338. dd.ReadMapEnd()
  21339. return v, changed
  21340. }
  21341. func (d *Decoder) fastpathDecMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  21342. if rv.Kind() == reflect.Ptr {
  21343. vp := rv2i(rv).(*map[float32]int)
  21344. v, changed := fastpathTV.DecMapFloat32IntV(*vp, true, d)
  21345. if changed {
  21346. *vp = v
  21347. }
  21348. } else {
  21349. fastpathTV.DecMapFloat32IntV(rv2i(rv).(map[float32]int), false, d)
  21350. }
  21351. }
  21352. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, d *Decoder) {
  21353. v, changed := f.DecMapFloat32IntV(*vp, true, d)
  21354. if changed {
  21355. *vp = v
  21356. }
  21357. }
  21358. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, canChange bool,
  21359. d *Decoder) (_ map[float32]int, 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, 12)
  21364. v = make(map[float32]int, xlen)
  21365. changed = true
  21366. }
  21367. if containerLen == 0 {
  21368. dd.ReadMapEnd()
  21369. return v, changed
  21370. }
  21371. var mk float32
  21372. var mv int
  21373. hasLen := containerLen > 0
  21374. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21375. if esep {
  21376. dd.ReadMapElemKey()
  21377. }
  21378. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  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 = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  21392. if v != nil {
  21393. v[mk] = mv
  21394. }
  21395. }
  21396. dd.ReadMapEnd()
  21397. return v, changed
  21398. }
  21399. func (d *Decoder) fastpathDecMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  21400. if rv.Kind() == reflect.Ptr {
  21401. vp := rv2i(rv).(*map[float32]int8)
  21402. v, changed := fastpathTV.DecMapFloat32Int8V(*vp, true, d)
  21403. if changed {
  21404. *vp = v
  21405. }
  21406. } else {
  21407. fastpathTV.DecMapFloat32Int8V(rv2i(rv).(map[float32]int8), false, d)
  21408. }
  21409. }
  21410. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, d *Decoder) {
  21411. v, changed := f.DecMapFloat32Int8V(*vp, true, d)
  21412. if changed {
  21413. *vp = v
  21414. }
  21415. }
  21416. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, canChange bool,
  21417. d *Decoder) (_ map[float32]int8, 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, 5)
  21422. v = make(map[float32]int8, xlen)
  21423. changed = true
  21424. }
  21425. if containerLen == 0 {
  21426. dd.ReadMapEnd()
  21427. return v, changed
  21428. }
  21429. var mk float32
  21430. var mv int8
  21431. hasLen := containerLen > 0
  21432. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21433. if esep {
  21434. dd.ReadMapElemKey()
  21435. }
  21436. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21437. if esep {
  21438. dd.ReadMapElemValue()
  21439. }
  21440. if dd.TryDecodeAsNil() {
  21441. if v == nil {
  21442. } else if d.h.DeleteOnNilMapValue {
  21443. delete(v, mk)
  21444. } else {
  21445. v[mk] = 0
  21446. }
  21447. continue
  21448. }
  21449. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  21450. if v != nil {
  21451. v[mk] = mv
  21452. }
  21453. }
  21454. dd.ReadMapEnd()
  21455. return v, changed
  21456. }
  21457. func (d *Decoder) fastpathDecMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  21458. if rv.Kind() == reflect.Ptr {
  21459. vp := rv2i(rv).(*map[float32]int16)
  21460. v, changed := fastpathTV.DecMapFloat32Int16V(*vp, true, d)
  21461. if changed {
  21462. *vp = v
  21463. }
  21464. } else {
  21465. fastpathTV.DecMapFloat32Int16V(rv2i(rv).(map[float32]int16), false, d)
  21466. }
  21467. }
  21468. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, d *Decoder) {
  21469. v, changed := f.DecMapFloat32Int16V(*vp, true, d)
  21470. if changed {
  21471. *vp = v
  21472. }
  21473. }
  21474. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, canChange bool,
  21475. d *Decoder) (_ map[float32]int16, 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, 6)
  21480. v = make(map[float32]int16, xlen)
  21481. changed = true
  21482. }
  21483. if containerLen == 0 {
  21484. dd.ReadMapEnd()
  21485. return v, changed
  21486. }
  21487. var mk float32
  21488. var mv int16
  21489. hasLen := containerLen > 0
  21490. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21491. if esep {
  21492. dd.ReadMapElemKey()
  21493. }
  21494. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  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 = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  21508. if v != nil {
  21509. v[mk] = mv
  21510. }
  21511. }
  21512. dd.ReadMapEnd()
  21513. return v, changed
  21514. }
  21515. func (d *Decoder) fastpathDecMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  21516. if rv.Kind() == reflect.Ptr {
  21517. vp := rv2i(rv).(*map[float32]int32)
  21518. v, changed := fastpathTV.DecMapFloat32Int32V(*vp, true, d)
  21519. if changed {
  21520. *vp = v
  21521. }
  21522. } else {
  21523. fastpathTV.DecMapFloat32Int32V(rv2i(rv).(map[float32]int32), false, d)
  21524. }
  21525. }
  21526. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, d *Decoder) {
  21527. v, changed := f.DecMapFloat32Int32V(*vp, true, d)
  21528. if changed {
  21529. *vp = v
  21530. }
  21531. }
  21532. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, canChange bool,
  21533. d *Decoder) (_ map[float32]int32, 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, 8)
  21538. v = make(map[float32]int32, xlen)
  21539. changed = true
  21540. }
  21541. if containerLen == 0 {
  21542. dd.ReadMapEnd()
  21543. return v, changed
  21544. }
  21545. var mk float32
  21546. var mv int32
  21547. hasLen := containerLen > 0
  21548. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21549. if esep {
  21550. dd.ReadMapElemKey()
  21551. }
  21552. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  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 = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  21566. if v != nil {
  21567. v[mk] = mv
  21568. }
  21569. }
  21570. dd.ReadMapEnd()
  21571. return v, changed
  21572. }
  21573. func (d *Decoder) fastpathDecMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  21574. if rv.Kind() == reflect.Ptr {
  21575. vp := rv2i(rv).(*map[float32]int64)
  21576. v, changed := fastpathTV.DecMapFloat32Int64V(*vp, true, d)
  21577. if changed {
  21578. *vp = v
  21579. }
  21580. } else {
  21581. fastpathTV.DecMapFloat32Int64V(rv2i(rv).(map[float32]int64), false, d)
  21582. }
  21583. }
  21584. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, d *Decoder) {
  21585. v, changed := f.DecMapFloat32Int64V(*vp, true, d)
  21586. if changed {
  21587. *vp = v
  21588. }
  21589. }
  21590. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, canChange bool,
  21591. d *Decoder) (_ map[float32]int64, 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, 12)
  21596. v = make(map[float32]int64, xlen)
  21597. changed = true
  21598. }
  21599. if containerLen == 0 {
  21600. dd.ReadMapEnd()
  21601. return v, changed
  21602. }
  21603. var mk float32
  21604. var mv int64
  21605. hasLen := containerLen > 0
  21606. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21607. if esep {
  21608. dd.ReadMapElemKey()
  21609. }
  21610. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  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.DecodeInt64()
  21624. if v != nil {
  21625. v[mk] = mv
  21626. }
  21627. }
  21628. dd.ReadMapEnd()
  21629. return v, changed
  21630. }
  21631. func (d *Decoder) fastpathDecMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  21632. if rv.Kind() == reflect.Ptr {
  21633. vp := rv2i(rv).(*map[float32]float32)
  21634. v, changed := fastpathTV.DecMapFloat32Float32V(*vp, true, d)
  21635. if changed {
  21636. *vp = v
  21637. }
  21638. } else {
  21639. fastpathTV.DecMapFloat32Float32V(rv2i(rv).(map[float32]float32), false, d)
  21640. }
  21641. }
  21642. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, d *Decoder) {
  21643. v, changed := f.DecMapFloat32Float32V(*vp, true, d)
  21644. if changed {
  21645. *vp = v
  21646. }
  21647. }
  21648. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, canChange bool,
  21649. d *Decoder) (_ map[float32]float32, 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, 8)
  21654. v = make(map[float32]float32, xlen)
  21655. changed = true
  21656. }
  21657. if containerLen == 0 {
  21658. dd.ReadMapEnd()
  21659. return v, changed
  21660. }
  21661. var mk float32
  21662. var mv float32
  21663. hasLen := containerLen > 0
  21664. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21665. if esep {
  21666. dd.ReadMapElemKey()
  21667. }
  21668. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  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 = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21682. if v != nil {
  21683. v[mk] = mv
  21684. }
  21685. }
  21686. dd.ReadMapEnd()
  21687. return v, changed
  21688. }
  21689. func (d *Decoder) fastpathDecMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  21690. if rv.Kind() == reflect.Ptr {
  21691. vp := rv2i(rv).(*map[float32]float64)
  21692. v, changed := fastpathTV.DecMapFloat32Float64V(*vp, true, d)
  21693. if changed {
  21694. *vp = v
  21695. }
  21696. } else {
  21697. fastpathTV.DecMapFloat32Float64V(rv2i(rv).(map[float32]float64), false, d)
  21698. }
  21699. }
  21700. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, d *Decoder) {
  21701. v, changed := f.DecMapFloat32Float64V(*vp, true, d)
  21702. if changed {
  21703. *vp = v
  21704. }
  21705. }
  21706. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, canChange bool,
  21707. d *Decoder) (_ map[float32]float64, 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, 12)
  21712. v = make(map[float32]float64, xlen)
  21713. changed = true
  21714. }
  21715. if containerLen == 0 {
  21716. dd.ReadMapEnd()
  21717. return v, changed
  21718. }
  21719. var mk float32
  21720. var mv float64
  21721. hasLen := containerLen > 0
  21722. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21723. if esep {
  21724. dd.ReadMapElemKey()
  21725. }
  21726. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  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 = dd.DecodeFloat64()
  21740. if v != nil {
  21741. v[mk] = mv
  21742. }
  21743. }
  21744. dd.ReadMapEnd()
  21745. return v, changed
  21746. }
  21747. func (d *Decoder) fastpathDecMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  21748. if rv.Kind() == reflect.Ptr {
  21749. vp := rv2i(rv).(*map[float32]bool)
  21750. v, changed := fastpathTV.DecMapFloat32BoolV(*vp, true, d)
  21751. if changed {
  21752. *vp = v
  21753. }
  21754. } else {
  21755. fastpathTV.DecMapFloat32BoolV(rv2i(rv).(map[float32]bool), false, d)
  21756. }
  21757. }
  21758. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, d *Decoder) {
  21759. v, changed := f.DecMapFloat32BoolV(*vp, true, d)
  21760. if changed {
  21761. *vp = v
  21762. }
  21763. }
  21764. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, canChange bool,
  21765. d *Decoder) (_ map[float32]bool, 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, 5)
  21770. v = make(map[float32]bool, xlen)
  21771. changed = true
  21772. }
  21773. if containerLen == 0 {
  21774. dd.ReadMapEnd()
  21775. return v, changed
  21776. }
  21777. var mk float32
  21778. var mv bool
  21779. hasLen := containerLen > 0
  21780. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21781. if esep {
  21782. dd.ReadMapElemKey()
  21783. }
  21784. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  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] = false
  21794. }
  21795. continue
  21796. }
  21797. mv = dd.DecodeBool()
  21798. if v != nil {
  21799. v[mk] = mv
  21800. }
  21801. }
  21802. dd.ReadMapEnd()
  21803. return v, changed
  21804. }
  21805. func (d *Decoder) fastpathDecMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  21806. if rv.Kind() == reflect.Ptr {
  21807. vp := rv2i(rv).(*map[float64]interface{})
  21808. v, changed := fastpathTV.DecMapFloat64IntfV(*vp, true, d)
  21809. if changed {
  21810. *vp = v
  21811. }
  21812. } else {
  21813. fastpathTV.DecMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), false, d)
  21814. }
  21815. }
  21816. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, d *Decoder) {
  21817. v, changed := f.DecMapFloat64IntfV(*vp, true, d)
  21818. if changed {
  21819. *vp = v
  21820. }
  21821. }
  21822. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, canChange bool,
  21823. d *Decoder) (_ map[float64]interface{}, 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, 24)
  21828. v = make(map[float64]interface{}, xlen)
  21829. changed = true
  21830. }
  21831. if containerLen == 0 {
  21832. dd.ReadMapEnd()
  21833. return v, changed
  21834. }
  21835. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  21836. var mk float64
  21837. var mv interface{}
  21838. hasLen := containerLen > 0
  21839. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21840. if esep {
  21841. dd.ReadMapElemKey()
  21842. }
  21843. mk = dd.DecodeFloat64()
  21844. if esep {
  21845. dd.ReadMapElemValue()
  21846. }
  21847. if dd.TryDecodeAsNil() {
  21848. if v == nil {
  21849. } else if d.h.DeleteOnNilMapValue {
  21850. delete(v, mk)
  21851. } else {
  21852. v[mk] = nil
  21853. }
  21854. continue
  21855. }
  21856. if mapGet {
  21857. mv = v[mk]
  21858. } else {
  21859. mv = nil
  21860. }
  21861. d.decode(&mv)
  21862. if v != nil {
  21863. v[mk] = mv
  21864. }
  21865. }
  21866. dd.ReadMapEnd()
  21867. return v, changed
  21868. }
  21869. func (d *Decoder) fastpathDecMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  21870. if rv.Kind() == reflect.Ptr {
  21871. vp := rv2i(rv).(*map[float64]string)
  21872. v, changed := fastpathTV.DecMapFloat64StringV(*vp, true, d)
  21873. if changed {
  21874. *vp = v
  21875. }
  21876. } else {
  21877. fastpathTV.DecMapFloat64StringV(rv2i(rv).(map[float64]string), false, d)
  21878. }
  21879. }
  21880. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, d *Decoder) {
  21881. v, changed := f.DecMapFloat64StringV(*vp, true, d)
  21882. if changed {
  21883. *vp = v
  21884. }
  21885. }
  21886. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, canChange bool,
  21887. d *Decoder) (_ map[float64]string, changed bool) {
  21888. dd, esep := d.d, d.hh.hasElemSeparators()
  21889. containerLen := dd.ReadMapStart()
  21890. if canChange && v == nil {
  21891. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21892. v = make(map[float64]string, xlen)
  21893. changed = true
  21894. }
  21895. if containerLen == 0 {
  21896. dd.ReadMapEnd()
  21897. return v, changed
  21898. }
  21899. var mk float64
  21900. var mv string
  21901. hasLen := containerLen > 0
  21902. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21903. if esep {
  21904. dd.ReadMapElemKey()
  21905. }
  21906. mk = dd.DecodeFloat64()
  21907. if esep {
  21908. dd.ReadMapElemValue()
  21909. }
  21910. if dd.TryDecodeAsNil() {
  21911. if v == nil {
  21912. } else if d.h.DeleteOnNilMapValue {
  21913. delete(v, mk)
  21914. } else {
  21915. v[mk] = ""
  21916. }
  21917. continue
  21918. }
  21919. mv = dd.DecodeString()
  21920. if v != nil {
  21921. v[mk] = mv
  21922. }
  21923. }
  21924. dd.ReadMapEnd()
  21925. return v, changed
  21926. }
  21927. func (d *Decoder) fastpathDecMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  21928. if rv.Kind() == reflect.Ptr {
  21929. vp := rv2i(rv).(*map[float64]uint)
  21930. v, changed := fastpathTV.DecMapFloat64UintV(*vp, true, d)
  21931. if changed {
  21932. *vp = v
  21933. }
  21934. } else {
  21935. fastpathTV.DecMapFloat64UintV(rv2i(rv).(map[float64]uint), false, d)
  21936. }
  21937. }
  21938. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, d *Decoder) {
  21939. v, changed := f.DecMapFloat64UintV(*vp, true, d)
  21940. if changed {
  21941. *vp = v
  21942. }
  21943. }
  21944. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, canChange bool,
  21945. d *Decoder) (_ map[float64]uint, changed bool) {
  21946. dd, esep := d.d, d.hh.hasElemSeparators()
  21947. containerLen := dd.ReadMapStart()
  21948. if canChange && v == nil {
  21949. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21950. v = make(map[float64]uint, xlen)
  21951. changed = true
  21952. }
  21953. if containerLen == 0 {
  21954. dd.ReadMapEnd()
  21955. return v, changed
  21956. }
  21957. var mk float64
  21958. var mv uint
  21959. hasLen := containerLen > 0
  21960. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21961. if esep {
  21962. dd.ReadMapElemKey()
  21963. }
  21964. mk = dd.DecodeFloat64()
  21965. if esep {
  21966. dd.ReadMapElemValue()
  21967. }
  21968. if dd.TryDecodeAsNil() {
  21969. if v == nil {
  21970. } else if d.h.DeleteOnNilMapValue {
  21971. delete(v, mk)
  21972. } else {
  21973. v[mk] = 0
  21974. }
  21975. continue
  21976. }
  21977. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21978. if v != nil {
  21979. v[mk] = mv
  21980. }
  21981. }
  21982. dd.ReadMapEnd()
  21983. return v, changed
  21984. }
  21985. func (d *Decoder) fastpathDecMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  21986. if rv.Kind() == reflect.Ptr {
  21987. vp := rv2i(rv).(*map[float64]uint8)
  21988. v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, true, d)
  21989. if changed {
  21990. *vp = v
  21991. }
  21992. } else {
  21993. fastpathTV.DecMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), false, d)
  21994. }
  21995. }
  21996. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, d *Decoder) {
  21997. v, changed := f.DecMapFloat64Uint8V(*vp, true, d)
  21998. if changed {
  21999. *vp = v
  22000. }
  22001. }
  22002. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, canChange bool,
  22003. d *Decoder) (_ map[float64]uint8, changed bool) {
  22004. dd, esep := d.d, d.hh.hasElemSeparators()
  22005. containerLen := dd.ReadMapStart()
  22006. if canChange && v == nil {
  22007. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22008. v = make(map[float64]uint8, xlen)
  22009. changed = true
  22010. }
  22011. if containerLen == 0 {
  22012. dd.ReadMapEnd()
  22013. return v, changed
  22014. }
  22015. var mk float64
  22016. var mv uint8
  22017. hasLen := containerLen > 0
  22018. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22019. if esep {
  22020. dd.ReadMapElemKey()
  22021. }
  22022. mk = dd.DecodeFloat64()
  22023. if esep {
  22024. dd.ReadMapElemValue()
  22025. }
  22026. if dd.TryDecodeAsNil() {
  22027. if v == nil {
  22028. } else if d.h.DeleteOnNilMapValue {
  22029. delete(v, mk)
  22030. } else {
  22031. v[mk] = 0
  22032. }
  22033. continue
  22034. }
  22035. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22036. if v != nil {
  22037. v[mk] = mv
  22038. }
  22039. }
  22040. dd.ReadMapEnd()
  22041. return v, changed
  22042. }
  22043. func (d *Decoder) fastpathDecMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  22044. if rv.Kind() == reflect.Ptr {
  22045. vp := rv2i(rv).(*map[float64]uint16)
  22046. v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, true, d)
  22047. if changed {
  22048. *vp = v
  22049. }
  22050. } else {
  22051. fastpathTV.DecMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), false, d)
  22052. }
  22053. }
  22054. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, d *Decoder) {
  22055. v, changed := f.DecMapFloat64Uint16V(*vp, true, d)
  22056. if changed {
  22057. *vp = v
  22058. }
  22059. }
  22060. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, canChange bool,
  22061. d *Decoder) (_ map[float64]uint16, changed bool) {
  22062. dd, esep := d.d, d.hh.hasElemSeparators()
  22063. containerLen := dd.ReadMapStart()
  22064. if canChange && v == nil {
  22065. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22066. v = make(map[float64]uint16, xlen)
  22067. changed = true
  22068. }
  22069. if containerLen == 0 {
  22070. dd.ReadMapEnd()
  22071. return v, changed
  22072. }
  22073. var mk float64
  22074. var mv uint16
  22075. hasLen := containerLen > 0
  22076. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22077. if esep {
  22078. dd.ReadMapElemKey()
  22079. }
  22080. mk = dd.DecodeFloat64()
  22081. if esep {
  22082. dd.ReadMapElemValue()
  22083. }
  22084. if dd.TryDecodeAsNil() {
  22085. if v == nil {
  22086. } else if d.h.DeleteOnNilMapValue {
  22087. delete(v, mk)
  22088. } else {
  22089. v[mk] = 0
  22090. }
  22091. continue
  22092. }
  22093. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  22094. if v != nil {
  22095. v[mk] = mv
  22096. }
  22097. }
  22098. dd.ReadMapEnd()
  22099. return v, changed
  22100. }
  22101. func (d *Decoder) fastpathDecMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  22102. if rv.Kind() == reflect.Ptr {
  22103. vp := rv2i(rv).(*map[float64]uint32)
  22104. v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, true, d)
  22105. if changed {
  22106. *vp = v
  22107. }
  22108. } else {
  22109. fastpathTV.DecMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), false, d)
  22110. }
  22111. }
  22112. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, d *Decoder) {
  22113. v, changed := f.DecMapFloat64Uint32V(*vp, true, d)
  22114. if changed {
  22115. *vp = v
  22116. }
  22117. }
  22118. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, canChange bool,
  22119. d *Decoder) (_ map[float64]uint32, changed bool) {
  22120. dd, esep := d.d, d.hh.hasElemSeparators()
  22121. containerLen := dd.ReadMapStart()
  22122. if canChange && v == nil {
  22123. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22124. v = make(map[float64]uint32, xlen)
  22125. changed = true
  22126. }
  22127. if containerLen == 0 {
  22128. dd.ReadMapEnd()
  22129. return v, changed
  22130. }
  22131. var mk float64
  22132. var mv uint32
  22133. hasLen := containerLen > 0
  22134. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22135. if esep {
  22136. dd.ReadMapElemKey()
  22137. }
  22138. mk = dd.DecodeFloat64()
  22139. if esep {
  22140. dd.ReadMapElemValue()
  22141. }
  22142. if dd.TryDecodeAsNil() {
  22143. if v == nil {
  22144. } else if d.h.DeleteOnNilMapValue {
  22145. delete(v, mk)
  22146. } else {
  22147. v[mk] = 0
  22148. }
  22149. continue
  22150. }
  22151. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  22152. if v != nil {
  22153. v[mk] = mv
  22154. }
  22155. }
  22156. dd.ReadMapEnd()
  22157. return v, changed
  22158. }
  22159. func (d *Decoder) fastpathDecMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  22160. if rv.Kind() == reflect.Ptr {
  22161. vp := rv2i(rv).(*map[float64]uint64)
  22162. v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, true, d)
  22163. if changed {
  22164. *vp = v
  22165. }
  22166. } else {
  22167. fastpathTV.DecMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), false, d)
  22168. }
  22169. }
  22170. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, d *Decoder) {
  22171. v, changed := f.DecMapFloat64Uint64V(*vp, true, d)
  22172. if changed {
  22173. *vp = v
  22174. }
  22175. }
  22176. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, canChange bool,
  22177. d *Decoder) (_ map[float64]uint64, changed bool) {
  22178. dd, esep := d.d, d.hh.hasElemSeparators()
  22179. containerLen := dd.ReadMapStart()
  22180. if canChange && v == nil {
  22181. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22182. v = make(map[float64]uint64, xlen)
  22183. changed = true
  22184. }
  22185. if containerLen == 0 {
  22186. dd.ReadMapEnd()
  22187. return v, changed
  22188. }
  22189. var mk float64
  22190. var mv uint64
  22191. hasLen := containerLen > 0
  22192. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22193. if esep {
  22194. dd.ReadMapElemKey()
  22195. }
  22196. mk = dd.DecodeFloat64()
  22197. if esep {
  22198. dd.ReadMapElemValue()
  22199. }
  22200. if dd.TryDecodeAsNil() {
  22201. if v == nil {
  22202. } else if d.h.DeleteOnNilMapValue {
  22203. delete(v, mk)
  22204. } else {
  22205. v[mk] = 0
  22206. }
  22207. continue
  22208. }
  22209. mv = dd.DecodeUint64()
  22210. if v != nil {
  22211. v[mk] = mv
  22212. }
  22213. }
  22214. dd.ReadMapEnd()
  22215. return v, changed
  22216. }
  22217. func (d *Decoder) fastpathDecMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  22218. if rv.Kind() == reflect.Ptr {
  22219. vp := rv2i(rv).(*map[float64]uintptr)
  22220. v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, true, d)
  22221. if changed {
  22222. *vp = v
  22223. }
  22224. } else {
  22225. fastpathTV.DecMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), false, d)
  22226. }
  22227. }
  22228. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, d *Decoder) {
  22229. v, changed := f.DecMapFloat64UintptrV(*vp, true, d)
  22230. if changed {
  22231. *vp = v
  22232. }
  22233. }
  22234. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, canChange bool,
  22235. d *Decoder) (_ map[float64]uintptr, 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, 16)
  22240. v = make(map[float64]uintptr, xlen)
  22241. changed = true
  22242. }
  22243. if containerLen == 0 {
  22244. dd.ReadMapEnd()
  22245. return v, changed
  22246. }
  22247. var mk float64
  22248. var mv uintptr
  22249. hasLen := containerLen > 0
  22250. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22251. if esep {
  22252. dd.ReadMapElemKey()
  22253. }
  22254. mk = dd.DecodeFloat64()
  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] = 0
  22264. }
  22265. continue
  22266. }
  22267. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22268. if v != nil {
  22269. v[mk] = mv
  22270. }
  22271. }
  22272. dd.ReadMapEnd()
  22273. return v, changed
  22274. }
  22275. func (d *Decoder) fastpathDecMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  22276. if rv.Kind() == reflect.Ptr {
  22277. vp := rv2i(rv).(*map[float64]int)
  22278. v, changed := fastpathTV.DecMapFloat64IntV(*vp, true, d)
  22279. if changed {
  22280. *vp = v
  22281. }
  22282. } else {
  22283. fastpathTV.DecMapFloat64IntV(rv2i(rv).(map[float64]int), false, d)
  22284. }
  22285. }
  22286. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, d *Decoder) {
  22287. v, changed := f.DecMapFloat64IntV(*vp, true, d)
  22288. if changed {
  22289. *vp = v
  22290. }
  22291. }
  22292. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, canChange bool,
  22293. d *Decoder) (_ map[float64]int, 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, 16)
  22298. v = make(map[float64]int, xlen)
  22299. changed = true
  22300. }
  22301. if containerLen == 0 {
  22302. dd.ReadMapEnd()
  22303. return v, changed
  22304. }
  22305. var mk float64
  22306. var mv int
  22307. hasLen := containerLen > 0
  22308. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22309. if esep {
  22310. dd.ReadMapElemKey()
  22311. }
  22312. mk = dd.DecodeFloat64()
  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 = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  22326. if v != nil {
  22327. v[mk] = mv
  22328. }
  22329. }
  22330. dd.ReadMapEnd()
  22331. return v, changed
  22332. }
  22333. func (d *Decoder) fastpathDecMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  22334. if rv.Kind() == reflect.Ptr {
  22335. vp := rv2i(rv).(*map[float64]int8)
  22336. v, changed := fastpathTV.DecMapFloat64Int8V(*vp, true, d)
  22337. if changed {
  22338. *vp = v
  22339. }
  22340. } else {
  22341. fastpathTV.DecMapFloat64Int8V(rv2i(rv).(map[float64]int8), false, d)
  22342. }
  22343. }
  22344. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, d *Decoder) {
  22345. v, changed := f.DecMapFloat64Int8V(*vp, true, d)
  22346. if changed {
  22347. *vp = v
  22348. }
  22349. }
  22350. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, canChange bool,
  22351. d *Decoder) (_ map[float64]int8, 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, 9)
  22356. v = make(map[float64]int8, xlen)
  22357. changed = true
  22358. }
  22359. if containerLen == 0 {
  22360. dd.ReadMapEnd()
  22361. return v, changed
  22362. }
  22363. var mk float64
  22364. var mv int8
  22365. hasLen := containerLen > 0
  22366. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22367. if esep {
  22368. dd.ReadMapElemKey()
  22369. }
  22370. mk = dd.DecodeFloat64()
  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 = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  22384. if v != nil {
  22385. v[mk] = mv
  22386. }
  22387. }
  22388. dd.ReadMapEnd()
  22389. return v, changed
  22390. }
  22391. func (d *Decoder) fastpathDecMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  22392. if rv.Kind() == reflect.Ptr {
  22393. vp := rv2i(rv).(*map[float64]int16)
  22394. v, changed := fastpathTV.DecMapFloat64Int16V(*vp, true, d)
  22395. if changed {
  22396. *vp = v
  22397. }
  22398. } else {
  22399. fastpathTV.DecMapFloat64Int16V(rv2i(rv).(map[float64]int16), false, d)
  22400. }
  22401. }
  22402. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, d *Decoder) {
  22403. v, changed := f.DecMapFloat64Int16V(*vp, true, d)
  22404. if changed {
  22405. *vp = v
  22406. }
  22407. }
  22408. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, canChange bool,
  22409. d *Decoder) (_ map[float64]int16, 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, 10)
  22414. v = make(map[float64]int16, xlen)
  22415. changed = true
  22416. }
  22417. if containerLen == 0 {
  22418. dd.ReadMapEnd()
  22419. return v, changed
  22420. }
  22421. var mk float64
  22422. var mv int16
  22423. hasLen := containerLen > 0
  22424. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22425. if esep {
  22426. dd.ReadMapElemKey()
  22427. }
  22428. mk = dd.DecodeFloat64()
  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 = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  22442. if v != nil {
  22443. v[mk] = mv
  22444. }
  22445. }
  22446. dd.ReadMapEnd()
  22447. return v, changed
  22448. }
  22449. func (d *Decoder) fastpathDecMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  22450. if rv.Kind() == reflect.Ptr {
  22451. vp := rv2i(rv).(*map[float64]int32)
  22452. v, changed := fastpathTV.DecMapFloat64Int32V(*vp, true, d)
  22453. if changed {
  22454. *vp = v
  22455. }
  22456. } else {
  22457. fastpathTV.DecMapFloat64Int32V(rv2i(rv).(map[float64]int32), false, d)
  22458. }
  22459. }
  22460. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, d *Decoder) {
  22461. v, changed := f.DecMapFloat64Int32V(*vp, true, d)
  22462. if changed {
  22463. *vp = v
  22464. }
  22465. }
  22466. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, canChange bool,
  22467. d *Decoder) (_ map[float64]int32, 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, 12)
  22472. v = make(map[float64]int32, xlen)
  22473. changed = true
  22474. }
  22475. if containerLen == 0 {
  22476. dd.ReadMapEnd()
  22477. return v, changed
  22478. }
  22479. var mk float64
  22480. var mv int32
  22481. hasLen := containerLen > 0
  22482. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22483. if esep {
  22484. dd.ReadMapElemKey()
  22485. }
  22486. mk = dd.DecodeFloat64()
  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 = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  22500. if v != nil {
  22501. v[mk] = mv
  22502. }
  22503. }
  22504. dd.ReadMapEnd()
  22505. return v, changed
  22506. }
  22507. func (d *Decoder) fastpathDecMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  22508. if rv.Kind() == reflect.Ptr {
  22509. vp := rv2i(rv).(*map[float64]int64)
  22510. v, changed := fastpathTV.DecMapFloat64Int64V(*vp, true, d)
  22511. if changed {
  22512. *vp = v
  22513. }
  22514. } else {
  22515. fastpathTV.DecMapFloat64Int64V(rv2i(rv).(map[float64]int64), false, d)
  22516. }
  22517. }
  22518. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, d *Decoder) {
  22519. v, changed := f.DecMapFloat64Int64V(*vp, true, d)
  22520. if changed {
  22521. *vp = v
  22522. }
  22523. }
  22524. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, canChange bool,
  22525. d *Decoder) (_ map[float64]int64, 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, 16)
  22530. v = make(map[float64]int64, xlen)
  22531. changed = true
  22532. }
  22533. if containerLen == 0 {
  22534. dd.ReadMapEnd()
  22535. return v, changed
  22536. }
  22537. var mk float64
  22538. var mv int64
  22539. hasLen := containerLen > 0
  22540. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22541. if esep {
  22542. dd.ReadMapElemKey()
  22543. }
  22544. mk = dd.DecodeFloat64()
  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.DecodeInt64()
  22558. if v != nil {
  22559. v[mk] = mv
  22560. }
  22561. }
  22562. dd.ReadMapEnd()
  22563. return v, changed
  22564. }
  22565. func (d *Decoder) fastpathDecMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  22566. if rv.Kind() == reflect.Ptr {
  22567. vp := rv2i(rv).(*map[float64]float32)
  22568. v, changed := fastpathTV.DecMapFloat64Float32V(*vp, true, d)
  22569. if changed {
  22570. *vp = v
  22571. }
  22572. } else {
  22573. fastpathTV.DecMapFloat64Float32V(rv2i(rv).(map[float64]float32), false, d)
  22574. }
  22575. }
  22576. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, d *Decoder) {
  22577. v, changed := f.DecMapFloat64Float32V(*vp, true, d)
  22578. if changed {
  22579. *vp = v
  22580. }
  22581. }
  22582. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, canChange bool,
  22583. d *Decoder) (_ map[float64]float32, 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, 12)
  22588. v = make(map[float64]float32, xlen)
  22589. changed = true
  22590. }
  22591. if containerLen == 0 {
  22592. dd.ReadMapEnd()
  22593. return v, changed
  22594. }
  22595. var mk float64
  22596. var mv float32
  22597. hasLen := containerLen > 0
  22598. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22599. if esep {
  22600. dd.ReadMapElemKey()
  22601. }
  22602. mk = dd.DecodeFloat64()
  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 = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  22616. if v != nil {
  22617. v[mk] = mv
  22618. }
  22619. }
  22620. dd.ReadMapEnd()
  22621. return v, changed
  22622. }
  22623. func (d *Decoder) fastpathDecMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  22624. if rv.Kind() == reflect.Ptr {
  22625. vp := rv2i(rv).(*map[float64]float64)
  22626. v, changed := fastpathTV.DecMapFloat64Float64V(*vp, true, d)
  22627. if changed {
  22628. *vp = v
  22629. }
  22630. } else {
  22631. fastpathTV.DecMapFloat64Float64V(rv2i(rv).(map[float64]float64), false, d)
  22632. }
  22633. }
  22634. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, d *Decoder) {
  22635. v, changed := f.DecMapFloat64Float64V(*vp, true, d)
  22636. if changed {
  22637. *vp = v
  22638. }
  22639. }
  22640. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, canChange bool,
  22641. d *Decoder) (_ map[float64]float64, 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, 16)
  22646. v = make(map[float64]float64, xlen)
  22647. changed = true
  22648. }
  22649. if containerLen == 0 {
  22650. dd.ReadMapEnd()
  22651. return v, changed
  22652. }
  22653. var mk float64
  22654. var mv float64
  22655. hasLen := containerLen > 0
  22656. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22657. if esep {
  22658. dd.ReadMapElemKey()
  22659. }
  22660. mk = dd.DecodeFloat64()
  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 = dd.DecodeFloat64()
  22674. if v != nil {
  22675. v[mk] = mv
  22676. }
  22677. }
  22678. dd.ReadMapEnd()
  22679. return v, changed
  22680. }
  22681. func (d *Decoder) fastpathDecMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  22682. if rv.Kind() == reflect.Ptr {
  22683. vp := rv2i(rv).(*map[float64]bool)
  22684. v, changed := fastpathTV.DecMapFloat64BoolV(*vp, true, d)
  22685. if changed {
  22686. *vp = v
  22687. }
  22688. } else {
  22689. fastpathTV.DecMapFloat64BoolV(rv2i(rv).(map[float64]bool), false, d)
  22690. }
  22691. }
  22692. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, d *Decoder) {
  22693. v, changed := f.DecMapFloat64BoolV(*vp, true, d)
  22694. if changed {
  22695. *vp = v
  22696. }
  22697. }
  22698. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, canChange bool,
  22699. d *Decoder) (_ map[float64]bool, 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, 9)
  22704. v = make(map[float64]bool, xlen)
  22705. changed = true
  22706. }
  22707. if containerLen == 0 {
  22708. dd.ReadMapEnd()
  22709. return v, changed
  22710. }
  22711. var mk float64
  22712. var mv bool
  22713. hasLen := containerLen > 0
  22714. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22715. if esep {
  22716. dd.ReadMapElemKey()
  22717. }
  22718. mk = dd.DecodeFloat64()
  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] = false
  22728. }
  22729. continue
  22730. }
  22731. mv = dd.DecodeBool()
  22732. if v != nil {
  22733. v[mk] = mv
  22734. }
  22735. }
  22736. dd.ReadMapEnd()
  22737. return v, changed
  22738. }
  22739. func (d *Decoder) fastpathDecMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  22740. if rv.Kind() == reflect.Ptr {
  22741. vp := rv2i(rv).(*map[uint]interface{})
  22742. v, changed := fastpathTV.DecMapUintIntfV(*vp, true, d)
  22743. if changed {
  22744. *vp = v
  22745. }
  22746. } else {
  22747. fastpathTV.DecMapUintIntfV(rv2i(rv).(map[uint]interface{}), false, d)
  22748. }
  22749. }
  22750. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, d *Decoder) {
  22751. v, changed := f.DecMapUintIntfV(*vp, true, d)
  22752. if changed {
  22753. *vp = v
  22754. }
  22755. }
  22756. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, canChange bool,
  22757. d *Decoder) (_ map[uint]interface{}, 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, 24)
  22762. v = make(map[uint]interface{}, xlen)
  22763. changed = true
  22764. }
  22765. if containerLen == 0 {
  22766. dd.ReadMapEnd()
  22767. return v, changed
  22768. }
  22769. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  22770. var mk uint
  22771. var mv interface{}
  22772. hasLen := containerLen > 0
  22773. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22774. if esep {
  22775. dd.ReadMapElemKey()
  22776. }
  22777. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22778. if esep {
  22779. dd.ReadMapElemValue()
  22780. }
  22781. if dd.TryDecodeAsNil() {
  22782. if v == nil {
  22783. } else if d.h.DeleteOnNilMapValue {
  22784. delete(v, mk)
  22785. } else {
  22786. v[mk] = nil
  22787. }
  22788. continue
  22789. }
  22790. if mapGet {
  22791. mv = v[mk]
  22792. } else {
  22793. mv = nil
  22794. }
  22795. d.decode(&mv)
  22796. if v != nil {
  22797. v[mk] = mv
  22798. }
  22799. }
  22800. dd.ReadMapEnd()
  22801. return v, changed
  22802. }
  22803. func (d *Decoder) fastpathDecMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  22804. if rv.Kind() == reflect.Ptr {
  22805. vp := rv2i(rv).(*map[uint]string)
  22806. v, changed := fastpathTV.DecMapUintStringV(*vp, true, d)
  22807. if changed {
  22808. *vp = v
  22809. }
  22810. } else {
  22811. fastpathTV.DecMapUintStringV(rv2i(rv).(map[uint]string), false, d)
  22812. }
  22813. }
  22814. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, d *Decoder) {
  22815. v, changed := f.DecMapUintStringV(*vp, true, d)
  22816. if changed {
  22817. *vp = v
  22818. }
  22819. }
  22820. func (_ fastpathT) DecMapUintStringV(v map[uint]string, canChange bool,
  22821. d *Decoder) (_ map[uint]string, changed bool) {
  22822. dd, esep := d.d, d.hh.hasElemSeparators()
  22823. containerLen := dd.ReadMapStart()
  22824. if canChange && v == nil {
  22825. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22826. v = make(map[uint]string, xlen)
  22827. changed = true
  22828. }
  22829. if containerLen == 0 {
  22830. dd.ReadMapEnd()
  22831. return v, changed
  22832. }
  22833. var mk uint
  22834. var mv string
  22835. hasLen := containerLen > 0
  22836. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22837. if esep {
  22838. dd.ReadMapElemKey()
  22839. }
  22840. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22841. if esep {
  22842. dd.ReadMapElemValue()
  22843. }
  22844. if dd.TryDecodeAsNil() {
  22845. if v == nil {
  22846. } else if d.h.DeleteOnNilMapValue {
  22847. delete(v, mk)
  22848. } else {
  22849. v[mk] = ""
  22850. }
  22851. continue
  22852. }
  22853. mv = dd.DecodeString()
  22854. if v != nil {
  22855. v[mk] = mv
  22856. }
  22857. }
  22858. dd.ReadMapEnd()
  22859. return v, changed
  22860. }
  22861. func (d *Decoder) fastpathDecMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  22862. if rv.Kind() == reflect.Ptr {
  22863. vp := rv2i(rv).(*map[uint]uint)
  22864. v, changed := fastpathTV.DecMapUintUintV(*vp, true, d)
  22865. if changed {
  22866. *vp = v
  22867. }
  22868. } else {
  22869. fastpathTV.DecMapUintUintV(rv2i(rv).(map[uint]uint), false, d)
  22870. }
  22871. }
  22872. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, d *Decoder) {
  22873. v, changed := f.DecMapUintUintV(*vp, true, d)
  22874. if changed {
  22875. *vp = v
  22876. }
  22877. }
  22878. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, canChange bool,
  22879. d *Decoder) (_ map[uint]uint, changed bool) {
  22880. dd, esep := d.d, d.hh.hasElemSeparators()
  22881. containerLen := dd.ReadMapStart()
  22882. if canChange && v == nil {
  22883. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22884. v = make(map[uint]uint, xlen)
  22885. changed = true
  22886. }
  22887. if containerLen == 0 {
  22888. dd.ReadMapEnd()
  22889. return v, changed
  22890. }
  22891. var mk uint
  22892. var mv uint
  22893. hasLen := containerLen > 0
  22894. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22895. if esep {
  22896. dd.ReadMapElemKey()
  22897. }
  22898. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22899. if esep {
  22900. dd.ReadMapElemValue()
  22901. }
  22902. if dd.TryDecodeAsNil() {
  22903. if v == nil {
  22904. } else if d.h.DeleteOnNilMapValue {
  22905. delete(v, mk)
  22906. } else {
  22907. v[mk] = 0
  22908. }
  22909. continue
  22910. }
  22911. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22912. if v != nil {
  22913. v[mk] = mv
  22914. }
  22915. }
  22916. dd.ReadMapEnd()
  22917. return v, changed
  22918. }
  22919. func (d *Decoder) fastpathDecMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  22920. if rv.Kind() == reflect.Ptr {
  22921. vp := rv2i(rv).(*map[uint]uint8)
  22922. v, changed := fastpathTV.DecMapUintUint8V(*vp, true, d)
  22923. if changed {
  22924. *vp = v
  22925. }
  22926. } else {
  22927. fastpathTV.DecMapUintUint8V(rv2i(rv).(map[uint]uint8), false, d)
  22928. }
  22929. }
  22930. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, d *Decoder) {
  22931. v, changed := f.DecMapUintUint8V(*vp, true, d)
  22932. if changed {
  22933. *vp = v
  22934. }
  22935. }
  22936. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, canChange bool,
  22937. d *Decoder) (_ map[uint]uint8, changed bool) {
  22938. dd, esep := d.d, d.hh.hasElemSeparators()
  22939. containerLen := dd.ReadMapStart()
  22940. if canChange && v == nil {
  22941. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22942. v = make(map[uint]uint8, xlen)
  22943. changed = true
  22944. }
  22945. if containerLen == 0 {
  22946. dd.ReadMapEnd()
  22947. return v, changed
  22948. }
  22949. var mk uint
  22950. var mv uint8
  22951. hasLen := containerLen > 0
  22952. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22953. if esep {
  22954. dd.ReadMapElemKey()
  22955. }
  22956. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22957. if esep {
  22958. dd.ReadMapElemValue()
  22959. }
  22960. if dd.TryDecodeAsNil() {
  22961. if v == nil {
  22962. } else if d.h.DeleteOnNilMapValue {
  22963. delete(v, mk)
  22964. } else {
  22965. v[mk] = 0
  22966. }
  22967. continue
  22968. }
  22969. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22970. if v != nil {
  22971. v[mk] = mv
  22972. }
  22973. }
  22974. dd.ReadMapEnd()
  22975. return v, changed
  22976. }
  22977. func (d *Decoder) fastpathDecMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  22978. if rv.Kind() == reflect.Ptr {
  22979. vp := rv2i(rv).(*map[uint]uint16)
  22980. v, changed := fastpathTV.DecMapUintUint16V(*vp, true, d)
  22981. if changed {
  22982. *vp = v
  22983. }
  22984. } else {
  22985. fastpathTV.DecMapUintUint16V(rv2i(rv).(map[uint]uint16), false, d)
  22986. }
  22987. }
  22988. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, d *Decoder) {
  22989. v, changed := f.DecMapUintUint16V(*vp, true, d)
  22990. if changed {
  22991. *vp = v
  22992. }
  22993. }
  22994. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, canChange bool,
  22995. d *Decoder) (_ map[uint]uint16, changed bool) {
  22996. dd, esep := d.d, d.hh.hasElemSeparators()
  22997. containerLen := dd.ReadMapStart()
  22998. if canChange && v == nil {
  22999. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23000. v = make(map[uint]uint16, xlen)
  23001. changed = true
  23002. }
  23003. if containerLen == 0 {
  23004. dd.ReadMapEnd()
  23005. return v, changed
  23006. }
  23007. var mk uint
  23008. var mv uint16
  23009. hasLen := containerLen > 0
  23010. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23011. if esep {
  23012. dd.ReadMapElemKey()
  23013. }
  23014. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23015. if esep {
  23016. dd.ReadMapElemValue()
  23017. }
  23018. if dd.TryDecodeAsNil() {
  23019. if v == nil {
  23020. } else if d.h.DeleteOnNilMapValue {
  23021. delete(v, mk)
  23022. } else {
  23023. v[mk] = 0
  23024. }
  23025. continue
  23026. }
  23027. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23028. if v != nil {
  23029. v[mk] = mv
  23030. }
  23031. }
  23032. dd.ReadMapEnd()
  23033. return v, changed
  23034. }
  23035. func (d *Decoder) fastpathDecMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  23036. if rv.Kind() == reflect.Ptr {
  23037. vp := rv2i(rv).(*map[uint]uint32)
  23038. v, changed := fastpathTV.DecMapUintUint32V(*vp, true, d)
  23039. if changed {
  23040. *vp = v
  23041. }
  23042. } else {
  23043. fastpathTV.DecMapUintUint32V(rv2i(rv).(map[uint]uint32), false, d)
  23044. }
  23045. }
  23046. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, d *Decoder) {
  23047. v, changed := f.DecMapUintUint32V(*vp, true, d)
  23048. if changed {
  23049. *vp = v
  23050. }
  23051. }
  23052. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, canChange bool,
  23053. d *Decoder) (_ map[uint]uint32, changed bool) {
  23054. dd, esep := d.d, d.hh.hasElemSeparators()
  23055. containerLen := dd.ReadMapStart()
  23056. if canChange && v == nil {
  23057. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23058. v = make(map[uint]uint32, xlen)
  23059. changed = true
  23060. }
  23061. if containerLen == 0 {
  23062. dd.ReadMapEnd()
  23063. return v, changed
  23064. }
  23065. var mk uint
  23066. var mv uint32
  23067. hasLen := containerLen > 0
  23068. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23069. if esep {
  23070. dd.ReadMapElemKey()
  23071. }
  23072. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23073. if esep {
  23074. dd.ReadMapElemValue()
  23075. }
  23076. if dd.TryDecodeAsNil() {
  23077. if v == nil {
  23078. } else if d.h.DeleteOnNilMapValue {
  23079. delete(v, mk)
  23080. } else {
  23081. v[mk] = 0
  23082. }
  23083. continue
  23084. }
  23085. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  23086. if v != nil {
  23087. v[mk] = mv
  23088. }
  23089. }
  23090. dd.ReadMapEnd()
  23091. return v, changed
  23092. }
  23093. func (d *Decoder) fastpathDecMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  23094. if rv.Kind() == reflect.Ptr {
  23095. vp := rv2i(rv).(*map[uint]uint64)
  23096. v, changed := fastpathTV.DecMapUintUint64V(*vp, true, d)
  23097. if changed {
  23098. *vp = v
  23099. }
  23100. } else {
  23101. fastpathTV.DecMapUintUint64V(rv2i(rv).(map[uint]uint64), false, d)
  23102. }
  23103. }
  23104. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, d *Decoder) {
  23105. v, changed := f.DecMapUintUint64V(*vp, true, d)
  23106. if changed {
  23107. *vp = v
  23108. }
  23109. }
  23110. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, canChange bool,
  23111. d *Decoder) (_ map[uint]uint64, changed bool) {
  23112. dd, esep := d.d, d.hh.hasElemSeparators()
  23113. containerLen := dd.ReadMapStart()
  23114. if canChange && v == nil {
  23115. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23116. v = make(map[uint]uint64, xlen)
  23117. changed = true
  23118. }
  23119. if containerLen == 0 {
  23120. dd.ReadMapEnd()
  23121. return v, changed
  23122. }
  23123. var mk uint
  23124. var mv uint64
  23125. hasLen := containerLen > 0
  23126. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23127. if esep {
  23128. dd.ReadMapElemKey()
  23129. }
  23130. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23131. if esep {
  23132. dd.ReadMapElemValue()
  23133. }
  23134. if dd.TryDecodeAsNil() {
  23135. if v == nil {
  23136. } else if d.h.DeleteOnNilMapValue {
  23137. delete(v, mk)
  23138. } else {
  23139. v[mk] = 0
  23140. }
  23141. continue
  23142. }
  23143. mv = dd.DecodeUint64()
  23144. if v != nil {
  23145. v[mk] = mv
  23146. }
  23147. }
  23148. dd.ReadMapEnd()
  23149. return v, changed
  23150. }
  23151. func (d *Decoder) fastpathDecMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  23152. if rv.Kind() == reflect.Ptr {
  23153. vp := rv2i(rv).(*map[uint]uintptr)
  23154. v, changed := fastpathTV.DecMapUintUintptrV(*vp, true, d)
  23155. if changed {
  23156. *vp = v
  23157. }
  23158. } else {
  23159. fastpathTV.DecMapUintUintptrV(rv2i(rv).(map[uint]uintptr), false, d)
  23160. }
  23161. }
  23162. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, d *Decoder) {
  23163. v, changed := f.DecMapUintUintptrV(*vp, true, d)
  23164. if changed {
  23165. *vp = v
  23166. }
  23167. }
  23168. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, canChange bool,
  23169. d *Decoder) (_ map[uint]uintptr, 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, 16)
  23174. v = make(map[uint]uintptr, xlen)
  23175. changed = true
  23176. }
  23177. if containerLen == 0 {
  23178. dd.ReadMapEnd()
  23179. return v, changed
  23180. }
  23181. var mk uint
  23182. var mv uintptr
  23183. hasLen := containerLen > 0
  23184. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23185. if esep {
  23186. dd.ReadMapElemKey()
  23187. }
  23188. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23189. if esep {
  23190. dd.ReadMapElemValue()
  23191. }
  23192. if dd.TryDecodeAsNil() {
  23193. if v == nil {
  23194. } else if d.h.DeleteOnNilMapValue {
  23195. delete(v, mk)
  23196. } else {
  23197. v[mk] = 0
  23198. }
  23199. continue
  23200. }
  23201. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23202. if v != nil {
  23203. v[mk] = mv
  23204. }
  23205. }
  23206. dd.ReadMapEnd()
  23207. return v, changed
  23208. }
  23209. func (d *Decoder) fastpathDecMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  23210. if rv.Kind() == reflect.Ptr {
  23211. vp := rv2i(rv).(*map[uint]int)
  23212. v, changed := fastpathTV.DecMapUintIntV(*vp, true, d)
  23213. if changed {
  23214. *vp = v
  23215. }
  23216. } else {
  23217. fastpathTV.DecMapUintIntV(rv2i(rv).(map[uint]int), false, d)
  23218. }
  23219. }
  23220. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, d *Decoder) {
  23221. v, changed := f.DecMapUintIntV(*vp, true, d)
  23222. if changed {
  23223. *vp = v
  23224. }
  23225. }
  23226. func (_ fastpathT) DecMapUintIntV(v map[uint]int, canChange bool,
  23227. d *Decoder) (_ map[uint]int, 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, 16)
  23232. v = make(map[uint]int, xlen)
  23233. changed = true
  23234. }
  23235. if containerLen == 0 {
  23236. dd.ReadMapEnd()
  23237. return v, changed
  23238. }
  23239. var mk uint
  23240. var mv int
  23241. hasLen := containerLen > 0
  23242. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23243. if esep {
  23244. dd.ReadMapElemKey()
  23245. }
  23246. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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 = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  23260. if v != nil {
  23261. v[mk] = mv
  23262. }
  23263. }
  23264. dd.ReadMapEnd()
  23265. return v, changed
  23266. }
  23267. func (d *Decoder) fastpathDecMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  23268. if rv.Kind() == reflect.Ptr {
  23269. vp := rv2i(rv).(*map[uint]int8)
  23270. v, changed := fastpathTV.DecMapUintInt8V(*vp, true, d)
  23271. if changed {
  23272. *vp = v
  23273. }
  23274. } else {
  23275. fastpathTV.DecMapUintInt8V(rv2i(rv).(map[uint]int8), false, d)
  23276. }
  23277. }
  23278. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, d *Decoder) {
  23279. v, changed := f.DecMapUintInt8V(*vp, true, d)
  23280. if changed {
  23281. *vp = v
  23282. }
  23283. }
  23284. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, canChange bool,
  23285. d *Decoder) (_ map[uint]int8, 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, 9)
  23290. v = make(map[uint]int8, xlen)
  23291. changed = true
  23292. }
  23293. if containerLen == 0 {
  23294. dd.ReadMapEnd()
  23295. return v, changed
  23296. }
  23297. var mk uint
  23298. var mv int8
  23299. hasLen := containerLen > 0
  23300. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23301. if esep {
  23302. dd.ReadMapElemKey()
  23303. }
  23304. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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 = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  23318. if v != nil {
  23319. v[mk] = mv
  23320. }
  23321. }
  23322. dd.ReadMapEnd()
  23323. return v, changed
  23324. }
  23325. func (d *Decoder) fastpathDecMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  23326. if rv.Kind() == reflect.Ptr {
  23327. vp := rv2i(rv).(*map[uint]int16)
  23328. v, changed := fastpathTV.DecMapUintInt16V(*vp, true, d)
  23329. if changed {
  23330. *vp = v
  23331. }
  23332. } else {
  23333. fastpathTV.DecMapUintInt16V(rv2i(rv).(map[uint]int16), false, d)
  23334. }
  23335. }
  23336. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, d *Decoder) {
  23337. v, changed := f.DecMapUintInt16V(*vp, true, d)
  23338. if changed {
  23339. *vp = v
  23340. }
  23341. }
  23342. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, canChange bool,
  23343. d *Decoder) (_ map[uint]int16, 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, 10)
  23348. v = make(map[uint]int16, xlen)
  23349. changed = true
  23350. }
  23351. if containerLen == 0 {
  23352. dd.ReadMapEnd()
  23353. return v, changed
  23354. }
  23355. var mk uint
  23356. var mv int16
  23357. hasLen := containerLen > 0
  23358. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23359. if esep {
  23360. dd.ReadMapElemKey()
  23361. }
  23362. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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 = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  23376. if v != nil {
  23377. v[mk] = mv
  23378. }
  23379. }
  23380. dd.ReadMapEnd()
  23381. return v, changed
  23382. }
  23383. func (d *Decoder) fastpathDecMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  23384. if rv.Kind() == reflect.Ptr {
  23385. vp := rv2i(rv).(*map[uint]int32)
  23386. v, changed := fastpathTV.DecMapUintInt32V(*vp, true, d)
  23387. if changed {
  23388. *vp = v
  23389. }
  23390. } else {
  23391. fastpathTV.DecMapUintInt32V(rv2i(rv).(map[uint]int32), false, d)
  23392. }
  23393. }
  23394. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, d *Decoder) {
  23395. v, changed := f.DecMapUintInt32V(*vp, true, d)
  23396. if changed {
  23397. *vp = v
  23398. }
  23399. }
  23400. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, canChange bool,
  23401. d *Decoder) (_ map[uint]int32, 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, 12)
  23406. v = make(map[uint]int32, xlen)
  23407. changed = true
  23408. }
  23409. if containerLen == 0 {
  23410. dd.ReadMapEnd()
  23411. return v, changed
  23412. }
  23413. var mk uint
  23414. var mv int32
  23415. hasLen := containerLen > 0
  23416. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23417. if esep {
  23418. dd.ReadMapElemKey()
  23419. }
  23420. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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 = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  23434. if v != nil {
  23435. v[mk] = mv
  23436. }
  23437. }
  23438. dd.ReadMapEnd()
  23439. return v, changed
  23440. }
  23441. func (d *Decoder) fastpathDecMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  23442. if rv.Kind() == reflect.Ptr {
  23443. vp := rv2i(rv).(*map[uint]int64)
  23444. v, changed := fastpathTV.DecMapUintInt64V(*vp, true, d)
  23445. if changed {
  23446. *vp = v
  23447. }
  23448. } else {
  23449. fastpathTV.DecMapUintInt64V(rv2i(rv).(map[uint]int64), false, d)
  23450. }
  23451. }
  23452. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, d *Decoder) {
  23453. v, changed := f.DecMapUintInt64V(*vp, true, d)
  23454. if changed {
  23455. *vp = v
  23456. }
  23457. }
  23458. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, canChange bool,
  23459. d *Decoder) (_ map[uint]int64, 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, 16)
  23464. v = make(map[uint]int64, xlen)
  23465. changed = true
  23466. }
  23467. if containerLen == 0 {
  23468. dd.ReadMapEnd()
  23469. return v, changed
  23470. }
  23471. var mk uint
  23472. var mv int64
  23473. hasLen := containerLen > 0
  23474. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23475. if esep {
  23476. dd.ReadMapElemKey()
  23477. }
  23478. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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.DecodeInt64()
  23492. if v != nil {
  23493. v[mk] = mv
  23494. }
  23495. }
  23496. dd.ReadMapEnd()
  23497. return v, changed
  23498. }
  23499. func (d *Decoder) fastpathDecMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  23500. if rv.Kind() == reflect.Ptr {
  23501. vp := rv2i(rv).(*map[uint]float32)
  23502. v, changed := fastpathTV.DecMapUintFloat32V(*vp, true, d)
  23503. if changed {
  23504. *vp = v
  23505. }
  23506. } else {
  23507. fastpathTV.DecMapUintFloat32V(rv2i(rv).(map[uint]float32), false, d)
  23508. }
  23509. }
  23510. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, d *Decoder) {
  23511. v, changed := f.DecMapUintFloat32V(*vp, true, d)
  23512. if changed {
  23513. *vp = v
  23514. }
  23515. }
  23516. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, canChange bool,
  23517. d *Decoder) (_ map[uint]float32, 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, 12)
  23522. v = make(map[uint]float32, xlen)
  23523. changed = true
  23524. }
  23525. if containerLen == 0 {
  23526. dd.ReadMapEnd()
  23527. return v, changed
  23528. }
  23529. var mk uint
  23530. var mv float32
  23531. hasLen := containerLen > 0
  23532. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23533. if esep {
  23534. dd.ReadMapElemKey()
  23535. }
  23536. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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 = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  23550. if v != nil {
  23551. v[mk] = mv
  23552. }
  23553. }
  23554. dd.ReadMapEnd()
  23555. return v, changed
  23556. }
  23557. func (d *Decoder) fastpathDecMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  23558. if rv.Kind() == reflect.Ptr {
  23559. vp := rv2i(rv).(*map[uint]float64)
  23560. v, changed := fastpathTV.DecMapUintFloat64V(*vp, true, d)
  23561. if changed {
  23562. *vp = v
  23563. }
  23564. } else {
  23565. fastpathTV.DecMapUintFloat64V(rv2i(rv).(map[uint]float64), false, d)
  23566. }
  23567. }
  23568. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, d *Decoder) {
  23569. v, changed := f.DecMapUintFloat64V(*vp, true, d)
  23570. if changed {
  23571. *vp = v
  23572. }
  23573. }
  23574. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, canChange bool,
  23575. d *Decoder) (_ map[uint]float64, 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, 16)
  23580. v = make(map[uint]float64, xlen)
  23581. changed = true
  23582. }
  23583. if containerLen == 0 {
  23584. dd.ReadMapEnd()
  23585. return v, changed
  23586. }
  23587. var mk uint
  23588. var mv float64
  23589. hasLen := containerLen > 0
  23590. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23591. if esep {
  23592. dd.ReadMapElemKey()
  23593. }
  23594. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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 = dd.DecodeFloat64()
  23608. if v != nil {
  23609. v[mk] = mv
  23610. }
  23611. }
  23612. dd.ReadMapEnd()
  23613. return v, changed
  23614. }
  23615. func (d *Decoder) fastpathDecMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  23616. if rv.Kind() == reflect.Ptr {
  23617. vp := rv2i(rv).(*map[uint]bool)
  23618. v, changed := fastpathTV.DecMapUintBoolV(*vp, true, d)
  23619. if changed {
  23620. *vp = v
  23621. }
  23622. } else {
  23623. fastpathTV.DecMapUintBoolV(rv2i(rv).(map[uint]bool), false, d)
  23624. }
  23625. }
  23626. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, d *Decoder) {
  23627. v, changed := f.DecMapUintBoolV(*vp, true, d)
  23628. if changed {
  23629. *vp = v
  23630. }
  23631. }
  23632. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, canChange bool,
  23633. d *Decoder) (_ map[uint]bool, 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, 9)
  23638. v = make(map[uint]bool, xlen)
  23639. changed = true
  23640. }
  23641. if containerLen == 0 {
  23642. dd.ReadMapEnd()
  23643. return v, changed
  23644. }
  23645. var mk uint
  23646. var mv bool
  23647. hasLen := containerLen > 0
  23648. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23649. if esep {
  23650. dd.ReadMapElemKey()
  23651. }
  23652. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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] = false
  23662. }
  23663. continue
  23664. }
  23665. mv = dd.DecodeBool()
  23666. if v != nil {
  23667. v[mk] = mv
  23668. }
  23669. }
  23670. dd.ReadMapEnd()
  23671. return v, changed
  23672. }
  23673. func (d *Decoder) fastpathDecMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  23674. if rv.Kind() == reflect.Ptr {
  23675. vp := rv2i(rv).(*map[uint8]interface{})
  23676. v, changed := fastpathTV.DecMapUint8IntfV(*vp, true, d)
  23677. if changed {
  23678. *vp = v
  23679. }
  23680. } else {
  23681. fastpathTV.DecMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), false, d)
  23682. }
  23683. }
  23684. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, d *Decoder) {
  23685. v, changed := f.DecMapUint8IntfV(*vp, true, d)
  23686. if changed {
  23687. *vp = v
  23688. }
  23689. }
  23690. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, canChange bool,
  23691. d *Decoder) (_ map[uint8]interface{}, 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, 17)
  23696. v = make(map[uint8]interface{}, xlen)
  23697. changed = true
  23698. }
  23699. if containerLen == 0 {
  23700. dd.ReadMapEnd()
  23701. return v, changed
  23702. }
  23703. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  23704. var mk uint8
  23705. var mv interface{}
  23706. hasLen := containerLen > 0
  23707. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23708. if esep {
  23709. dd.ReadMapElemKey()
  23710. }
  23711. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23712. if esep {
  23713. dd.ReadMapElemValue()
  23714. }
  23715. if dd.TryDecodeAsNil() {
  23716. if v == nil {
  23717. } else if d.h.DeleteOnNilMapValue {
  23718. delete(v, mk)
  23719. } else {
  23720. v[mk] = nil
  23721. }
  23722. continue
  23723. }
  23724. if mapGet {
  23725. mv = v[mk]
  23726. } else {
  23727. mv = nil
  23728. }
  23729. d.decode(&mv)
  23730. if v != nil {
  23731. v[mk] = mv
  23732. }
  23733. }
  23734. dd.ReadMapEnd()
  23735. return v, changed
  23736. }
  23737. func (d *Decoder) fastpathDecMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  23738. if rv.Kind() == reflect.Ptr {
  23739. vp := rv2i(rv).(*map[uint8]string)
  23740. v, changed := fastpathTV.DecMapUint8StringV(*vp, true, d)
  23741. if changed {
  23742. *vp = v
  23743. }
  23744. } else {
  23745. fastpathTV.DecMapUint8StringV(rv2i(rv).(map[uint8]string), false, d)
  23746. }
  23747. }
  23748. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, d *Decoder) {
  23749. v, changed := f.DecMapUint8StringV(*vp, true, d)
  23750. if changed {
  23751. *vp = v
  23752. }
  23753. }
  23754. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, canChange bool,
  23755. d *Decoder) (_ map[uint8]string, changed bool) {
  23756. dd, esep := d.d, d.hh.hasElemSeparators()
  23757. containerLen := dd.ReadMapStart()
  23758. if canChange && v == nil {
  23759. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  23760. v = make(map[uint8]string, xlen)
  23761. changed = true
  23762. }
  23763. if containerLen == 0 {
  23764. dd.ReadMapEnd()
  23765. return v, changed
  23766. }
  23767. var mk uint8
  23768. var mv string
  23769. hasLen := containerLen > 0
  23770. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23771. if esep {
  23772. dd.ReadMapElemKey()
  23773. }
  23774. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23775. if esep {
  23776. dd.ReadMapElemValue()
  23777. }
  23778. if dd.TryDecodeAsNil() {
  23779. if v == nil {
  23780. } else if d.h.DeleteOnNilMapValue {
  23781. delete(v, mk)
  23782. } else {
  23783. v[mk] = ""
  23784. }
  23785. continue
  23786. }
  23787. mv = dd.DecodeString()
  23788. if v != nil {
  23789. v[mk] = mv
  23790. }
  23791. }
  23792. dd.ReadMapEnd()
  23793. return v, changed
  23794. }
  23795. func (d *Decoder) fastpathDecMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  23796. if rv.Kind() == reflect.Ptr {
  23797. vp := rv2i(rv).(*map[uint8]uint)
  23798. v, changed := fastpathTV.DecMapUint8UintV(*vp, true, d)
  23799. if changed {
  23800. *vp = v
  23801. }
  23802. } else {
  23803. fastpathTV.DecMapUint8UintV(rv2i(rv).(map[uint8]uint), false, d)
  23804. }
  23805. }
  23806. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, d *Decoder) {
  23807. v, changed := f.DecMapUint8UintV(*vp, true, d)
  23808. if changed {
  23809. *vp = v
  23810. }
  23811. }
  23812. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, canChange bool,
  23813. d *Decoder) (_ map[uint8]uint, changed bool) {
  23814. dd, esep := d.d, d.hh.hasElemSeparators()
  23815. containerLen := dd.ReadMapStart()
  23816. if canChange && v == nil {
  23817. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23818. v = make(map[uint8]uint, xlen)
  23819. changed = true
  23820. }
  23821. if containerLen == 0 {
  23822. dd.ReadMapEnd()
  23823. return v, changed
  23824. }
  23825. var mk uint8
  23826. var mv uint
  23827. hasLen := containerLen > 0
  23828. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23829. if esep {
  23830. dd.ReadMapElemKey()
  23831. }
  23832. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23833. if esep {
  23834. dd.ReadMapElemValue()
  23835. }
  23836. if dd.TryDecodeAsNil() {
  23837. if v == nil {
  23838. } else if d.h.DeleteOnNilMapValue {
  23839. delete(v, mk)
  23840. } else {
  23841. v[mk] = 0
  23842. }
  23843. continue
  23844. }
  23845. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23846. if v != nil {
  23847. v[mk] = mv
  23848. }
  23849. }
  23850. dd.ReadMapEnd()
  23851. return v, changed
  23852. }
  23853. func (d *Decoder) fastpathDecMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  23854. if rv.Kind() == reflect.Ptr {
  23855. vp := rv2i(rv).(*map[uint8]uint8)
  23856. v, changed := fastpathTV.DecMapUint8Uint8V(*vp, true, d)
  23857. if changed {
  23858. *vp = v
  23859. }
  23860. } else {
  23861. fastpathTV.DecMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), false, d)
  23862. }
  23863. }
  23864. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, d *Decoder) {
  23865. v, changed := f.DecMapUint8Uint8V(*vp, true, d)
  23866. if changed {
  23867. *vp = v
  23868. }
  23869. }
  23870. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, canChange bool,
  23871. d *Decoder) (_ map[uint8]uint8, changed bool) {
  23872. dd, esep := d.d, d.hh.hasElemSeparators()
  23873. containerLen := dd.ReadMapStart()
  23874. if canChange && v == nil {
  23875. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  23876. v = make(map[uint8]uint8, xlen)
  23877. changed = true
  23878. }
  23879. if containerLen == 0 {
  23880. dd.ReadMapEnd()
  23881. return v, changed
  23882. }
  23883. var mk uint8
  23884. var mv uint8
  23885. hasLen := containerLen > 0
  23886. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23887. if esep {
  23888. dd.ReadMapElemKey()
  23889. }
  23890. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23891. if esep {
  23892. dd.ReadMapElemValue()
  23893. }
  23894. if dd.TryDecodeAsNil() {
  23895. if v == nil {
  23896. } else if d.h.DeleteOnNilMapValue {
  23897. delete(v, mk)
  23898. } else {
  23899. v[mk] = 0
  23900. }
  23901. continue
  23902. }
  23903. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23904. if v != nil {
  23905. v[mk] = mv
  23906. }
  23907. }
  23908. dd.ReadMapEnd()
  23909. return v, changed
  23910. }
  23911. func (d *Decoder) fastpathDecMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  23912. if rv.Kind() == reflect.Ptr {
  23913. vp := rv2i(rv).(*map[uint8]uint16)
  23914. v, changed := fastpathTV.DecMapUint8Uint16V(*vp, true, d)
  23915. if changed {
  23916. *vp = v
  23917. }
  23918. } else {
  23919. fastpathTV.DecMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), false, d)
  23920. }
  23921. }
  23922. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, d *Decoder) {
  23923. v, changed := f.DecMapUint8Uint16V(*vp, true, d)
  23924. if changed {
  23925. *vp = v
  23926. }
  23927. }
  23928. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, canChange bool,
  23929. d *Decoder) (_ map[uint8]uint16, changed bool) {
  23930. dd, esep := d.d, d.hh.hasElemSeparators()
  23931. containerLen := dd.ReadMapStart()
  23932. if canChange && v == nil {
  23933. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  23934. v = make(map[uint8]uint16, xlen)
  23935. changed = true
  23936. }
  23937. if containerLen == 0 {
  23938. dd.ReadMapEnd()
  23939. return v, changed
  23940. }
  23941. var mk uint8
  23942. var mv uint16
  23943. hasLen := containerLen > 0
  23944. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23945. if esep {
  23946. dd.ReadMapElemKey()
  23947. }
  23948. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23949. if esep {
  23950. dd.ReadMapElemValue()
  23951. }
  23952. if dd.TryDecodeAsNil() {
  23953. if v == nil {
  23954. } else if d.h.DeleteOnNilMapValue {
  23955. delete(v, mk)
  23956. } else {
  23957. v[mk] = 0
  23958. }
  23959. continue
  23960. }
  23961. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23962. if v != nil {
  23963. v[mk] = mv
  23964. }
  23965. }
  23966. dd.ReadMapEnd()
  23967. return v, changed
  23968. }
  23969. func (d *Decoder) fastpathDecMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  23970. if rv.Kind() == reflect.Ptr {
  23971. vp := rv2i(rv).(*map[uint8]uint32)
  23972. v, changed := fastpathTV.DecMapUint8Uint32V(*vp, true, d)
  23973. if changed {
  23974. *vp = v
  23975. }
  23976. } else {
  23977. fastpathTV.DecMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), false, d)
  23978. }
  23979. }
  23980. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, d *Decoder) {
  23981. v, changed := f.DecMapUint8Uint32V(*vp, true, d)
  23982. if changed {
  23983. *vp = v
  23984. }
  23985. }
  23986. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, canChange bool,
  23987. d *Decoder) (_ map[uint8]uint32, changed bool) {
  23988. dd, esep := d.d, d.hh.hasElemSeparators()
  23989. containerLen := dd.ReadMapStart()
  23990. if canChange && v == nil {
  23991. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  23992. v = make(map[uint8]uint32, xlen)
  23993. changed = true
  23994. }
  23995. if containerLen == 0 {
  23996. dd.ReadMapEnd()
  23997. return v, changed
  23998. }
  23999. var mk uint8
  24000. var mv uint32
  24001. hasLen := containerLen > 0
  24002. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24003. if esep {
  24004. dd.ReadMapElemKey()
  24005. }
  24006. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24007. if esep {
  24008. dd.ReadMapElemValue()
  24009. }
  24010. if dd.TryDecodeAsNil() {
  24011. if v == nil {
  24012. } else if d.h.DeleteOnNilMapValue {
  24013. delete(v, mk)
  24014. } else {
  24015. v[mk] = 0
  24016. }
  24017. continue
  24018. }
  24019. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24020. if v != nil {
  24021. v[mk] = mv
  24022. }
  24023. }
  24024. dd.ReadMapEnd()
  24025. return v, changed
  24026. }
  24027. func (d *Decoder) fastpathDecMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  24028. if rv.Kind() == reflect.Ptr {
  24029. vp := rv2i(rv).(*map[uint8]uint64)
  24030. v, changed := fastpathTV.DecMapUint8Uint64V(*vp, true, d)
  24031. if changed {
  24032. *vp = v
  24033. }
  24034. } else {
  24035. fastpathTV.DecMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), false, d)
  24036. }
  24037. }
  24038. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, d *Decoder) {
  24039. v, changed := f.DecMapUint8Uint64V(*vp, true, d)
  24040. if changed {
  24041. *vp = v
  24042. }
  24043. }
  24044. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, canChange bool,
  24045. d *Decoder) (_ map[uint8]uint64, changed bool) {
  24046. dd, esep := d.d, d.hh.hasElemSeparators()
  24047. containerLen := dd.ReadMapStart()
  24048. if canChange && v == nil {
  24049. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24050. v = make(map[uint8]uint64, xlen)
  24051. changed = true
  24052. }
  24053. if containerLen == 0 {
  24054. dd.ReadMapEnd()
  24055. return v, changed
  24056. }
  24057. var mk uint8
  24058. var mv uint64
  24059. hasLen := containerLen > 0
  24060. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24061. if esep {
  24062. dd.ReadMapElemKey()
  24063. }
  24064. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24065. if esep {
  24066. dd.ReadMapElemValue()
  24067. }
  24068. if dd.TryDecodeAsNil() {
  24069. if v == nil {
  24070. } else if d.h.DeleteOnNilMapValue {
  24071. delete(v, mk)
  24072. } else {
  24073. v[mk] = 0
  24074. }
  24075. continue
  24076. }
  24077. mv = dd.DecodeUint64()
  24078. if v != nil {
  24079. v[mk] = mv
  24080. }
  24081. }
  24082. dd.ReadMapEnd()
  24083. return v, changed
  24084. }
  24085. func (d *Decoder) fastpathDecMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  24086. if rv.Kind() == reflect.Ptr {
  24087. vp := rv2i(rv).(*map[uint8]uintptr)
  24088. v, changed := fastpathTV.DecMapUint8UintptrV(*vp, true, d)
  24089. if changed {
  24090. *vp = v
  24091. }
  24092. } else {
  24093. fastpathTV.DecMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), false, d)
  24094. }
  24095. }
  24096. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, d *Decoder) {
  24097. v, changed := f.DecMapUint8UintptrV(*vp, true, d)
  24098. if changed {
  24099. *vp = v
  24100. }
  24101. }
  24102. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, canChange bool,
  24103. d *Decoder) (_ map[uint8]uintptr, 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, 9)
  24108. v = make(map[uint8]uintptr, xlen)
  24109. changed = true
  24110. }
  24111. if containerLen == 0 {
  24112. dd.ReadMapEnd()
  24113. return v, changed
  24114. }
  24115. var mk uint8
  24116. var mv uintptr
  24117. hasLen := containerLen > 0
  24118. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24119. if esep {
  24120. dd.ReadMapElemKey()
  24121. }
  24122. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  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] = 0
  24132. }
  24133. continue
  24134. }
  24135. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  24136. if v != nil {
  24137. v[mk] = mv
  24138. }
  24139. }
  24140. dd.ReadMapEnd()
  24141. return v, changed
  24142. }
  24143. func (d *Decoder) fastpathDecMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  24144. if rv.Kind() == reflect.Ptr {
  24145. vp := rv2i(rv).(*map[uint8]int)
  24146. v, changed := fastpathTV.DecMapUint8IntV(*vp, true, d)
  24147. if changed {
  24148. *vp = v
  24149. }
  24150. } else {
  24151. fastpathTV.DecMapUint8IntV(rv2i(rv).(map[uint8]int), false, d)
  24152. }
  24153. }
  24154. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, d *Decoder) {
  24155. v, changed := f.DecMapUint8IntV(*vp, true, d)
  24156. if changed {
  24157. *vp = v
  24158. }
  24159. }
  24160. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, canChange bool,
  24161. d *Decoder) (_ map[uint8]int, 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, 9)
  24166. v = make(map[uint8]int, xlen)
  24167. changed = true
  24168. }
  24169. if containerLen == 0 {
  24170. dd.ReadMapEnd()
  24171. return v, changed
  24172. }
  24173. var mk uint8
  24174. var mv int
  24175. hasLen := containerLen > 0
  24176. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24177. if esep {
  24178. dd.ReadMapElemKey()
  24179. }
  24180. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  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 = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  24194. if v != nil {
  24195. v[mk] = mv
  24196. }
  24197. }
  24198. dd.ReadMapEnd()
  24199. return v, changed
  24200. }
  24201. func (d *Decoder) fastpathDecMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  24202. if rv.Kind() == reflect.Ptr {
  24203. vp := rv2i(rv).(*map[uint8]int8)
  24204. v, changed := fastpathTV.DecMapUint8Int8V(*vp, true, d)
  24205. if changed {
  24206. *vp = v
  24207. }
  24208. } else {
  24209. fastpathTV.DecMapUint8Int8V(rv2i(rv).(map[uint8]int8), false, d)
  24210. }
  24211. }
  24212. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, d *Decoder) {
  24213. v, changed := f.DecMapUint8Int8V(*vp, true, d)
  24214. if changed {
  24215. *vp = v
  24216. }
  24217. }
  24218. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, canChange bool,
  24219. d *Decoder) (_ map[uint8]int8, 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, 2)
  24224. v = make(map[uint8]int8, xlen)
  24225. changed = true
  24226. }
  24227. if containerLen == 0 {
  24228. dd.ReadMapEnd()
  24229. return v, changed
  24230. }
  24231. var mk uint8
  24232. var mv int8
  24233. hasLen := containerLen > 0
  24234. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24235. if esep {
  24236. dd.ReadMapElemKey()
  24237. }
  24238. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  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 = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  24252. if v != nil {
  24253. v[mk] = mv
  24254. }
  24255. }
  24256. dd.ReadMapEnd()
  24257. return v, changed
  24258. }
  24259. func (d *Decoder) fastpathDecMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  24260. if rv.Kind() == reflect.Ptr {
  24261. vp := rv2i(rv).(*map[uint8]int16)
  24262. v, changed := fastpathTV.DecMapUint8Int16V(*vp, true, d)
  24263. if changed {
  24264. *vp = v
  24265. }
  24266. } else {
  24267. fastpathTV.DecMapUint8Int16V(rv2i(rv).(map[uint8]int16), false, d)
  24268. }
  24269. }
  24270. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, d *Decoder) {
  24271. v, changed := f.DecMapUint8Int16V(*vp, true, d)
  24272. if changed {
  24273. *vp = v
  24274. }
  24275. }
  24276. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, canChange bool,
  24277. d *Decoder) (_ map[uint8]int16, 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, 3)
  24282. v = make(map[uint8]int16, xlen)
  24283. changed = true
  24284. }
  24285. if containerLen == 0 {
  24286. dd.ReadMapEnd()
  24287. return v, changed
  24288. }
  24289. var mk uint8
  24290. var mv int16
  24291. hasLen := containerLen > 0
  24292. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24293. if esep {
  24294. dd.ReadMapElemKey()
  24295. }
  24296. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  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 = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  24310. if v != nil {
  24311. v[mk] = mv
  24312. }
  24313. }
  24314. dd.ReadMapEnd()
  24315. return v, changed
  24316. }
  24317. func (d *Decoder) fastpathDecMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  24318. if rv.Kind() == reflect.Ptr {
  24319. vp := rv2i(rv).(*map[uint8]int32)
  24320. v, changed := fastpathTV.DecMapUint8Int32V(*vp, true, d)
  24321. if changed {
  24322. *vp = v
  24323. }
  24324. } else {
  24325. fastpathTV.DecMapUint8Int32V(rv2i(rv).(map[uint8]int32), false, d)
  24326. }
  24327. }
  24328. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, d *Decoder) {
  24329. v, changed := f.DecMapUint8Int32V(*vp, true, d)
  24330. if changed {
  24331. *vp = v
  24332. }
  24333. }
  24334. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, canChange bool,
  24335. d *Decoder) (_ map[uint8]int32, 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, 5)
  24340. v = make(map[uint8]int32, xlen)
  24341. changed = true
  24342. }
  24343. if containerLen == 0 {
  24344. dd.ReadMapEnd()
  24345. return v, changed
  24346. }
  24347. var mk uint8
  24348. var mv int32
  24349. hasLen := containerLen > 0
  24350. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24351. if esep {
  24352. dd.ReadMapElemKey()
  24353. }
  24354. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  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 = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  24368. if v != nil {
  24369. v[mk] = mv
  24370. }
  24371. }
  24372. dd.ReadMapEnd()
  24373. return v, changed
  24374. }
  24375. func (d *Decoder) fastpathDecMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  24376. if rv.Kind() == reflect.Ptr {
  24377. vp := rv2i(rv).(*map[uint8]int64)
  24378. v, changed := fastpathTV.DecMapUint8Int64V(*vp, true, d)
  24379. if changed {
  24380. *vp = v
  24381. }
  24382. } else {
  24383. fastpathTV.DecMapUint8Int64V(rv2i(rv).(map[uint8]int64), false, d)
  24384. }
  24385. }
  24386. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, d *Decoder) {
  24387. v, changed := f.DecMapUint8Int64V(*vp, true, d)
  24388. if changed {
  24389. *vp = v
  24390. }
  24391. }
  24392. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, canChange bool,
  24393. d *Decoder) (_ map[uint8]int64, 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, 9)
  24398. v = make(map[uint8]int64, xlen)
  24399. changed = true
  24400. }
  24401. if containerLen == 0 {
  24402. dd.ReadMapEnd()
  24403. return v, changed
  24404. }
  24405. var mk uint8
  24406. var mv int64
  24407. hasLen := containerLen > 0
  24408. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24409. if esep {
  24410. dd.ReadMapElemKey()
  24411. }
  24412. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  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.DecodeInt64()
  24426. if v != nil {
  24427. v[mk] = mv
  24428. }
  24429. }
  24430. dd.ReadMapEnd()
  24431. return v, changed
  24432. }
  24433. func (d *Decoder) fastpathDecMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  24434. if rv.Kind() == reflect.Ptr {
  24435. vp := rv2i(rv).(*map[uint8]float32)
  24436. v, changed := fastpathTV.DecMapUint8Float32V(*vp, true, d)
  24437. if changed {
  24438. *vp = v
  24439. }
  24440. } else {
  24441. fastpathTV.DecMapUint8Float32V(rv2i(rv).(map[uint8]float32), false, d)
  24442. }
  24443. }
  24444. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, d *Decoder) {
  24445. v, changed := f.DecMapUint8Float32V(*vp, true, d)
  24446. if changed {
  24447. *vp = v
  24448. }
  24449. }
  24450. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, canChange bool,
  24451. d *Decoder) (_ map[uint8]float32, 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, 5)
  24456. v = make(map[uint8]float32, xlen)
  24457. changed = true
  24458. }
  24459. if containerLen == 0 {
  24460. dd.ReadMapEnd()
  24461. return v, changed
  24462. }
  24463. var mk uint8
  24464. var mv float32
  24465. hasLen := containerLen > 0
  24466. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24467. if esep {
  24468. dd.ReadMapElemKey()
  24469. }
  24470. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  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 = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  24484. if v != nil {
  24485. v[mk] = mv
  24486. }
  24487. }
  24488. dd.ReadMapEnd()
  24489. return v, changed
  24490. }
  24491. func (d *Decoder) fastpathDecMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  24492. if rv.Kind() == reflect.Ptr {
  24493. vp := rv2i(rv).(*map[uint8]float64)
  24494. v, changed := fastpathTV.DecMapUint8Float64V(*vp, true, d)
  24495. if changed {
  24496. *vp = v
  24497. }
  24498. } else {
  24499. fastpathTV.DecMapUint8Float64V(rv2i(rv).(map[uint8]float64), false, d)
  24500. }
  24501. }
  24502. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, d *Decoder) {
  24503. v, changed := f.DecMapUint8Float64V(*vp, true, d)
  24504. if changed {
  24505. *vp = v
  24506. }
  24507. }
  24508. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, canChange bool,
  24509. d *Decoder) (_ map[uint8]float64, 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, 9)
  24514. v = make(map[uint8]float64, xlen)
  24515. changed = true
  24516. }
  24517. if containerLen == 0 {
  24518. dd.ReadMapEnd()
  24519. return v, changed
  24520. }
  24521. var mk uint8
  24522. var mv float64
  24523. hasLen := containerLen > 0
  24524. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24525. if esep {
  24526. dd.ReadMapElemKey()
  24527. }
  24528. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  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 = dd.DecodeFloat64()
  24542. if v != nil {
  24543. v[mk] = mv
  24544. }
  24545. }
  24546. dd.ReadMapEnd()
  24547. return v, changed
  24548. }
  24549. func (d *Decoder) fastpathDecMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  24550. if rv.Kind() == reflect.Ptr {
  24551. vp := rv2i(rv).(*map[uint8]bool)
  24552. v, changed := fastpathTV.DecMapUint8BoolV(*vp, true, d)
  24553. if changed {
  24554. *vp = v
  24555. }
  24556. } else {
  24557. fastpathTV.DecMapUint8BoolV(rv2i(rv).(map[uint8]bool), false, d)
  24558. }
  24559. }
  24560. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, d *Decoder) {
  24561. v, changed := f.DecMapUint8BoolV(*vp, true, d)
  24562. if changed {
  24563. *vp = v
  24564. }
  24565. }
  24566. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, canChange bool,
  24567. d *Decoder) (_ map[uint8]bool, 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, 2)
  24572. v = make(map[uint8]bool, xlen)
  24573. changed = true
  24574. }
  24575. if containerLen == 0 {
  24576. dd.ReadMapEnd()
  24577. return v, changed
  24578. }
  24579. var mk uint8
  24580. var mv bool
  24581. hasLen := containerLen > 0
  24582. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24583. if esep {
  24584. dd.ReadMapElemKey()
  24585. }
  24586. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  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] = false
  24596. }
  24597. continue
  24598. }
  24599. mv = dd.DecodeBool()
  24600. if v != nil {
  24601. v[mk] = mv
  24602. }
  24603. }
  24604. dd.ReadMapEnd()
  24605. return v, changed
  24606. }
  24607. func (d *Decoder) fastpathDecMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  24608. if rv.Kind() == reflect.Ptr {
  24609. vp := rv2i(rv).(*map[uint16]interface{})
  24610. v, changed := fastpathTV.DecMapUint16IntfV(*vp, true, d)
  24611. if changed {
  24612. *vp = v
  24613. }
  24614. } else {
  24615. fastpathTV.DecMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), false, d)
  24616. }
  24617. }
  24618. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, d *Decoder) {
  24619. v, changed := f.DecMapUint16IntfV(*vp, true, d)
  24620. if changed {
  24621. *vp = v
  24622. }
  24623. }
  24624. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, canChange bool,
  24625. d *Decoder) (_ map[uint16]interface{}, 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, 18)
  24630. v = make(map[uint16]interface{}, xlen)
  24631. changed = true
  24632. }
  24633. if containerLen == 0 {
  24634. dd.ReadMapEnd()
  24635. return v, changed
  24636. }
  24637. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  24638. var mk uint16
  24639. var mv interface{}
  24640. hasLen := containerLen > 0
  24641. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24642. if esep {
  24643. dd.ReadMapElemKey()
  24644. }
  24645. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24646. if esep {
  24647. dd.ReadMapElemValue()
  24648. }
  24649. if dd.TryDecodeAsNil() {
  24650. if v == nil {
  24651. } else if d.h.DeleteOnNilMapValue {
  24652. delete(v, mk)
  24653. } else {
  24654. v[mk] = nil
  24655. }
  24656. continue
  24657. }
  24658. if mapGet {
  24659. mv = v[mk]
  24660. } else {
  24661. mv = nil
  24662. }
  24663. d.decode(&mv)
  24664. if v != nil {
  24665. v[mk] = mv
  24666. }
  24667. }
  24668. dd.ReadMapEnd()
  24669. return v, changed
  24670. }
  24671. func (d *Decoder) fastpathDecMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  24672. if rv.Kind() == reflect.Ptr {
  24673. vp := rv2i(rv).(*map[uint16]string)
  24674. v, changed := fastpathTV.DecMapUint16StringV(*vp, true, d)
  24675. if changed {
  24676. *vp = v
  24677. }
  24678. } else {
  24679. fastpathTV.DecMapUint16StringV(rv2i(rv).(map[uint16]string), false, d)
  24680. }
  24681. }
  24682. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, d *Decoder) {
  24683. v, changed := f.DecMapUint16StringV(*vp, true, d)
  24684. if changed {
  24685. *vp = v
  24686. }
  24687. }
  24688. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, canChange bool,
  24689. d *Decoder) (_ map[uint16]string, changed bool) {
  24690. dd, esep := d.d, d.hh.hasElemSeparators()
  24691. containerLen := dd.ReadMapStart()
  24692. if canChange && v == nil {
  24693. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  24694. v = make(map[uint16]string, xlen)
  24695. changed = true
  24696. }
  24697. if containerLen == 0 {
  24698. dd.ReadMapEnd()
  24699. return v, changed
  24700. }
  24701. var mk uint16
  24702. var mv string
  24703. hasLen := containerLen > 0
  24704. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24705. if esep {
  24706. dd.ReadMapElemKey()
  24707. }
  24708. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24709. if esep {
  24710. dd.ReadMapElemValue()
  24711. }
  24712. if dd.TryDecodeAsNil() {
  24713. if v == nil {
  24714. } else if d.h.DeleteOnNilMapValue {
  24715. delete(v, mk)
  24716. } else {
  24717. v[mk] = ""
  24718. }
  24719. continue
  24720. }
  24721. mv = dd.DecodeString()
  24722. if v != nil {
  24723. v[mk] = mv
  24724. }
  24725. }
  24726. dd.ReadMapEnd()
  24727. return v, changed
  24728. }
  24729. func (d *Decoder) fastpathDecMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  24730. if rv.Kind() == reflect.Ptr {
  24731. vp := rv2i(rv).(*map[uint16]uint)
  24732. v, changed := fastpathTV.DecMapUint16UintV(*vp, true, d)
  24733. if changed {
  24734. *vp = v
  24735. }
  24736. } else {
  24737. fastpathTV.DecMapUint16UintV(rv2i(rv).(map[uint16]uint), false, d)
  24738. }
  24739. }
  24740. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, d *Decoder) {
  24741. v, changed := f.DecMapUint16UintV(*vp, true, d)
  24742. if changed {
  24743. *vp = v
  24744. }
  24745. }
  24746. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, canChange bool,
  24747. d *Decoder) (_ map[uint16]uint, changed bool) {
  24748. dd, esep := d.d, d.hh.hasElemSeparators()
  24749. containerLen := dd.ReadMapStart()
  24750. if canChange && v == nil {
  24751. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24752. v = make(map[uint16]uint, xlen)
  24753. changed = true
  24754. }
  24755. if containerLen == 0 {
  24756. dd.ReadMapEnd()
  24757. return v, changed
  24758. }
  24759. var mk uint16
  24760. var mv uint
  24761. hasLen := containerLen > 0
  24762. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24763. if esep {
  24764. dd.ReadMapElemKey()
  24765. }
  24766. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24767. if esep {
  24768. dd.ReadMapElemValue()
  24769. }
  24770. if dd.TryDecodeAsNil() {
  24771. if v == nil {
  24772. } else if d.h.DeleteOnNilMapValue {
  24773. delete(v, mk)
  24774. } else {
  24775. v[mk] = 0
  24776. }
  24777. continue
  24778. }
  24779. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  24780. if v != nil {
  24781. v[mk] = mv
  24782. }
  24783. }
  24784. dd.ReadMapEnd()
  24785. return v, changed
  24786. }
  24787. func (d *Decoder) fastpathDecMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  24788. if rv.Kind() == reflect.Ptr {
  24789. vp := rv2i(rv).(*map[uint16]uint8)
  24790. v, changed := fastpathTV.DecMapUint16Uint8V(*vp, true, d)
  24791. if changed {
  24792. *vp = v
  24793. }
  24794. } else {
  24795. fastpathTV.DecMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), false, d)
  24796. }
  24797. }
  24798. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, d *Decoder) {
  24799. v, changed := f.DecMapUint16Uint8V(*vp, true, d)
  24800. if changed {
  24801. *vp = v
  24802. }
  24803. }
  24804. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, canChange bool,
  24805. d *Decoder) (_ map[uint16]uint8, changed bool) {
  24806. dd, esep := d.d, d.hh.hasElemSeparators()
  24807. containerLen := dd.ReadMapStart()
  24808. if canChange && v == nil {
  24809. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24810. v = make(map[uint16]uint8, xlen)
  24811. changed = true
  24812. }
  24813. if containerLen == 0 {
  24814. dd.ReadMapEnd()
  24815. return v, changed
  24816. }
  24817. var mk uint16
  24818. var mv uint8
  24819. hasLen := containerLen > 0
  24820. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24821. if esep {
  24822. dd.ReadMapElemKey()
  24823. }
  24824. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24825. if esep {
  24826. dd.ReadMapElemValue()
  24827. }
  24828. if dd.TryDecodeAsNil() {
  24829. if v == nil {
  24830. } else if d.h.DeleteOnNilMapValue {
  24831. delete(v, mk)
  24832. } else {
  24833. v[mk] = 0
  24834. }
  24835. continue
  24836. }
  24837. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24838. if v != nil {
  24839. v[mk] = mv
  24840. }
  24841. }
  24842. dd.ReadMapEnd()
  24843. return v, changed
  24844. }
  24845. func (d *Decoder) fastpathDecMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  24846. if rv.Kind() == reflect.Ptr {
  24847. vp := rv2i(rv).(*map[uint16]uint16)
  24848. v, changed := fastpathTV.DecMapUint16Uint16V(*vp, true, d)
  24849. if changed {
  24850. *vp = v
  24851. }
  24852. } else {
  24853. fastpathTV.DecMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), false, d)
  24854. }
  24855. }
  24856. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, d *Decoder) {
  24857. v, changed := f.DecMapUint16Uint16V(*vp, true, d)
  24858. if changed {
  24859. *vp = v
  24860. }
  24861. }
  24862. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, canChange bool,
  24863. d *Decoder) (_ map[uint16]uint16, changed bool) {
  24864. dd, esep := d.d, d.hh.hasElemSeparators()
  24865. containerLen := dd.ReadMapStart()
  24866. if canChange && v == nil {
  24867. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  24868. v = make(map[uint16]uint16, xlen)
  24869. changed = true
  24870. }
  24871. if containerLen == 0 {
  24872. dd.ReadMapEnd()
  24873. return v, changed
  24874. }
  24875. var mk uint16
  24876. var mv uint16
  24877. hasLen := containerLen > 0
  24878. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24879. if esep {
  24880. dd.ReadMapElemKey()
  24881. }
  24882. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24883. if esep {
  24884. dd.ReadMapElemValue()
  24885. }
  24886. if dd.TryDecodeAsNil() {
  24887. if v == nil {
  24888. } else if d.h.DeleteOnNilMapValue {
  24889. delete(v, mk)
  24890. } else {
  24891. v[mk] = 0
  24892. }
  24893. continue
  24894. }
  24895. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24896. if v != nil {
  24897. v[mk] = mv
  24898. }
  24899. }
  24900. dd.ReadMapEnd()
  24901. return v, changed
  24902. }
  24903. func (d *Decoder) fastpathDecMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  24904. if rv.Kind() == reflect.Ptr {
  24905. vp := rv2i(rv).(*map[uint16]uint32)
  24906. v, changed := fastpathTV.DecMapUint16Uint32V(*vp, true, d)
  24907. if changed {
  24908. *vp = v
  24909. }
  24910. } else {
  24911. fastpathTV.DecMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), false, d)
  24912. }
  24913. }
  24914. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, d *Decoder) {
  24915. v, changed := f.DecMapUint16Uint32V(*vp, true, d)
  24916. if changed {
  24917. *vp = v
  24918. }
  24919. }
  24920. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, canChange bool,
  24921. d *Decoder) (_ map[uint16]uint32, changed bool) {
  24922. dd, esep := d.d, d.hh.hasElemSeparators()
  24923. containerLen := dd.ReadMapStart()
  24924. if canChange && v == nil {
  24925. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  24926. v = make(map[uint16]uint32, xlen)
  24927. changed = true
  24928. }
  24929. if containerLen == 0 {
  24930. dd.ReadMapEnd()
  24931. return v, changed
  24932. }
  24933. var mk uint16
  24934. var mv uint32
  24935. hasLen := containerLen > 0
  24936. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24937. if esep {
  24938. dd.ReadMapElemKey()
  24939. }
  24940. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24941. if esep {
  24942. dd.ReadMapElemValue()
  24943. }
  24944. if dd.TryDecodeAsNil() {
  24945. if v == nil {
  24946. } else if d.h.DeleteOnNilMapValue {
  24947. delete(v, mk)
  24948. } else {
  24949. v[mk] = 0
  24950. }
  24951. continue
  24952. }
  24953. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24954. if v != nil {
  24955. v[mk] = mv
  24956. }
  24957. }
  24958. dd.ReadMapEnd()
  24959. return v, changed
  24960. }
  24961. func (d *Decoder) fastpathDecMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  24962. if rv.Kind() == reflect.Ptr {
  24963. vp := rv2i(rv).(*map[uint16]uint64)
  24964. v, changed := fastpathTV.DecMapUint16Uint64V(*vp, true, d)
  24965. if changed {
  24966. *vp = v
  24967. }
  24968. } else {
  24969. fastpathTV.DecMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), false, d)
  24970. }
  24971. }
  24972. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, d *Decoder) {
  24973. v, changed := f.DecMapUint16Uint64V(*vp, true, d)
  24974. if changed {
  24975. *vp = v
  24976. }
  24977. }
  24978. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, canChange bool,
  24979. d *Decoder) (_ map[uint16]uint64, changed bool) {
  24980. dd, esep := d.d, d.hh.hasElemSeparators()
  24981. containerLen := dd.ReadMapStart()
  24982. if canChange && v == nil {
  24983. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24984. v = make(map[uint16]uint64, xlen)
  24985. changed = true
  24986. }
  24987. if containerLen == 0 {
  24988. dd.ReadMapEnd()
  24989. return v, changed
  24990. }
  24991. var mk uint16
  24992. var mv uint64
  24993. hasLen := containerLen > 0
  24994. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24995. if esep {
  24996. dd.ReadMapElemKey()
  24997. }
  24998. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24999. if esep {
  25000. dd.ReadMapElemValue()
  25001. }
  25002. if dd.TryDecodeAsNil() {
  25003. if v == nil {
  25004. } else if d.h.DeleteOnNilMapValue {
  25005. delete(v, mk)
  25006. } else {
  25007. v[mk] = 0
  25008. }
  25009. continue
  25010. }
  25011. mv = dd.DecodeUint64()
  25012. if v != nil {
  25013. v[mk] = mv
  25014. }
  25015. }
  25016. dd.ReadMapEnd()
  25017. return v, changed
  25018. }
  25019. func (d *Decoder) fastpathDecMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  25020. if rv.Kind() == reflect.Ptr {
  25021. vp := rv2i(rv).(*map[uint16]uintptr)
  25022. v, changed := fastpathTV.DecMapUint16UintptrV(*vp, true, d)
  25023. if changed {
  25024. *vp = v
  25025. }
  25026. } else {
  25027. fastpathTV.DecMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), false, d)
  25028. }
  25029. }
  25030. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, d *Decoder) {
  25031. v, changed := f.DecMapUint16UintptrV(*vp, true, d)
  25032. if changed {
  25033. *vp = v
  25034. }
  25035. }
  25036. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, canChange bool,
  25037. d *Decoder) (_ map[uint16]uintptr, 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, 10)
  25042. v = make(map[uint16]uintptr, xlen)
  25043. changed = true
  25044. }
  25045. if containerLen == 0 {
  25046. dd.ReadMapEnd()
  25047. return v, changed
  25048. }
  25049. var mk uint16
  25050. var mv uintptr
  25051. hasLen := containerLen > 0
  25052. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25053. if esep {
  25054. dd.ReadMapElemKey()
  25055. }
  25056. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  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] = 0
  25066. }
  25067. continue
  25068. }
  25069. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25070. if v != nil {
  25071. v[mk] = mv
  25072. }
  25073. }
  25074. dd.ReadMapEnd()
  25075. return v, changed
  25076. }
  25077. func (d *Decoder) fastpathDecMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  25078. if rv.Kind() == reflect.Ptr {
  25079. vp := rv2i(rv).(*map[uint16]int)
  25080. v, changed := fastpathTV.DecMapUint16IntV(*vp, true, d)
  25081. if changed {
  25082. *vp = v
  25083. }
  25084. } else {
  25085. fastpathTV.DecMapUint16IntV(rv2i(rv).(map[uint16]int), false, d)
  25086. }
  25087. }
  25088. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, d *Decoder) {
  25089. v, changed := f.DecMapUint16IntV(*vp, true, d)
  25090. if changed {
  25091. *vp = v
  25092. }
  25093. }
  25094. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, canChange bool,
  25095. d *Decoder) (_ map[uint16]int, 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, 10)
  25100. v = make(map[uint16]int, xlen)
  25101. changed = true
  25102. }
  25103. if containerLen == 0 {
  25104. dd.ReadMapEnd()
  25105. return v, changed
  25106. }
  25107. var mk uint16
  25108. var mv int
  25109. hasLen := containerLen > 0
  25110. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25111. if esep {
  25112. dd.ReadMapElemKey()
  25113. }
  25114. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  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 = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  25128. if v != nil {
  25129. v[mk] = mv
  25130. }
  25131. }
  25132. dd.ReadMapEnd()
  25133. return v, changed
  25134. }
  25135. func (d *Decoder) fastpathDecMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  25136. if rv.Kind() == reflect.Ptr {
  25137. vp := rv2i(rv).(*map[uint16]int8)
  25138. v, changed := fastpathTV.DecMapUint16Int8V(*vp, true, d)
  25139. if changed {
  25140. *vp = v
  25141. }
  25142. } else {
  25143. fastpathTV.DecMapUint16Int8V(rv2i(rv).(map[uint16]int8), false, d)
  25144. }
  25145. }
  25146. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, d *Decoder) {
  25147. v, changed := f.DecMapUint16Int8V(*vp, true, d)
  25148. if changed {
  25149. *vp = v
  25150. }
  25151. }
  25152. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, canChange bool,
  25153. d *Decoder) (_ map[uint16]int8, 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, 3)
  25158. v = make(map[uint16]int8, xlen)
  25159. changed = true
  25160. }
  25161. if containerLen == 0 {
  25162. dd.ReadMapEnd()
  25163. return v, changed
  25164. }
  25165. var mk uint16
  25166. var mv int8
  25167. hasLen := containerLen > 0
  25168. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25169. if esep {
  25170. dd.ReadMapElemKey()
  25171. }
  25172. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  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 = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  25186. if v != nil {
  25187. v[mk] = mv
  25188. }
  25189. }
  25190. dd.ReadMapEnd()
  25191. return v, changed
  25192. }
  25193. func (d *Decoder) fastpathDecMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  25194. if rv.Kind() == reflect.Ptr {
  25195. vp := rv2i(rv).(*map[uint16]int16)
  25196. v, changed := fastpathTV.DecMapUint16Int16V(*vp, true, d)
  25197. if changed {
  25198. *vp = v
  25199. }
  25200. } else {
  25201. fastpathTV.DecMapUint16Int16V(rv2i(rv).(map[uint16]int16), false, d)
  25202. }
  25203. }
  25204. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, d *Decoder) {
  25205. v, changed := f.DecMapUint16Int16V(*vp, true, d)
  25206. if changed {
  25207. *vp = v
  25208. }
  25209. }
  25210. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, canChange bool,
  25211. d *Decoder) (_ map[uint16]int16, 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, 4)
  25216. v = make(map[uint16]int16, xlen)
  25217. changed = true
  25218. }
  25219. if containerLen == 0 {
  25220. dd.ReadMapEnd()
  25221. return v, changed
  25222. }
  25223. var mk uint16
  25224. var mv int16
  25225. hasLen := containerLen > 0
  25226. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25227. if esep {
  25228. dd.ReadMapElemKey()
  25229. }
  25230. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  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 = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  25244. if v != nil {
  25245. v[mk] = mv
  25246. }
  25247. }
  25248. dd.ReadMapEnd()
  25249. return v, changed
  25250. }
  25251. func (d *Decoder) fastpathDecMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  25252. if rv.Kind() == reflect.Ptr {
  25253. vp := rv2i(rv).(*map[uint16]int32)
  25254. v, changed := fastpathTV.DecMapUint16Int32V(*vp, true, d)
  25255. if changed {
  25256. *vp = v
  25257. }
  25258. } else {
  25259. fastpathTV.DecMapUint16Int32V(rv2i(rv).(map[uint16]int32), false, d)
  25260. }
  25261. }
  25262. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, d *Decoder) {
  25263. v, changed := f.DecMapUint16Int32V(*vp, true, d)
  25264. if changed {
  25265. *vp = v
  25266. }
  25267. }
  25268. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, canChange bool,
  25269. d *Decoder) (_ map[uint16]int32, 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, 6)
  25274. v = make(map[uint16]int32, xlen)
  25275. changed = true
  25276. }
  25277. if containerLen == 0 {
  25278. dd.ReadMapEnd()
  25279. return v, changed
  25280. }
  25281. var mk uint16
  25282. var mv int32
  25283. hasLen := containerLen > 0
  25284. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25285. if esep {
  25286. dd.ReadMapElemKey()
  25287. }
  25288. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  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 = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  25302. if v != nil {
  25303. v[mk] = mv
  25304. }
  25305. }
  25306. dd.ReadMapEnd()
  25307. return v, changed
  25308. }
  25309. func (d *Decoder) fastpathDecMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  25310. if rv.Kind() == reflect.Ptr {
  25311. vp := rv2i(rv).(*map[uint16]int64)
  25312. v, changed := fastpathTV.DecMapUint16Int64V(*vp, true, d)
  25313. if changed {
  25314. *vp = v
  25315. }
  25316. } else {
  25317. fastpathTV.DecMapUint16Int64V(rv2i(rv).(map[uint16]int64), false, d)
  25318. }
  25319. }
  25320. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, d *Decoder) {
  25321. v, changed := f.DecMapUint16Int64V(*vp, true, d)
  25322. if changed {
  25323. *vp = v
  25324. }
  25325. }
  25326. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, canChange bool,
  25327. d *Decoder) (_ map[uint16]int64, 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, 10)
  25332. v = make(map[uint16]int64, xlen)
  25333. changed = true
  25334. }
  25335. if containerLen == 0 {
  25336. dd.ReadMapEnd()
  25337. return v, changed
  25338. }
  25339. var mk uint16
  25340. var mv int64
  25341. hasLen := containerLen > 0
  25342. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25343. if esep {
  25344. dd.ReadMapElemKey()
  25345. }
  25346. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  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.DecodeInt64()
  25360. if v != nil {
  25361. v[mk] = mv
  25362. }
  25363. }
  25364. dd.ReadMapEnd()
  25365. return v, changed
  25366. }
  25367. func (d *Decoder) fastpathDecMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  25368. if rv.Kind() == reflect.Ptr {
  25369. vp := rv2i(rv).(*map[uint16]float32)
  25370. v, changed := fastpathTV.DecMapUint16Float32V(*vp, true, d)
  25371. if changed {
  25372. *vp = v
  25373. }
  25374. } else {
  25375. fastpathTV.DecMapUint16Float32V(rv2i(rv).(map[uint16]float32), false, d)
  25376. }
  25377. }
  25378. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, d *Decoder) {
  25379. v, changed := f.DecMapUint16Float32V(*vp, true, d)
  25380. if changed {
  25381. *vp = v
  25382. }
  25383. }
  25384. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, canChange bool,
  25385. d *Decoder) (_ map[uint16]float32, 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, 6)
  25390. v = make(map[uint16]float32, xlen)
  25391. changed = true
  25392. }
  25393. if containerLen == 0 {
  25394. dd.ReadMapEnd()
  25395. return v, changed
  25396. }
  25397. var mk uint16
  25398. var mv float32
  25399. hasLen := containerLen > 0
  25400. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25401. if esep {
  25402. dd.ReadMapElemKey()
  25403. }
  25404. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  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 = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  25418. if v != nil {
  25419. v[mk] = mv
  25420. }
  25421. }
  25422. dd.ReadMapEnd()
  25423. return v, changed
  25424. }
  25425. func (d *Decoder) fastpathDecMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  25426. if rv.Kind() == reflect.Ptr {
  25427. vp := rv2i(rv).(*map[uint16]float64)
  25428. v, changed := fastpathTV.DecMapUint16Float64V(*vp, true, d)
  25429. if changed {
  25430. *vp = v
  25431. }
  25432. } else {
  25433. fastpathTV.DecMapUint16Float64V(rv2i(rv).(map[uint16]float64), false, d)
  25434. }
  25435. }
  25436. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, d *Decoder) {
  25437. v, changed := f.DecMapUint16Float64V(*vp, true, d)
  25438. if changed {
  25439. *vp = v
  25440. }
  25441. }
  25442. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, canChange bool,
  25443. d *Decoder) (_ map[uint16]float64, 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, 10)
  25448. v = make(map[uint16]float64, xlen)
  25449. changed = true
  25450. }
  25451. if containerLen == 0 {
  25452. dd.ReadMapEnd()
  25453. return v, changed
  25454. }
  25455. var mk uint16
  25456. var mv float64
  25457. hasLen := containerLen > 0
  25458. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25459. if esep {
  25460. dd.ReadMapElemKey()
  25461. }
  25462. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  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 = dd.DecodeFloat64()
  25476. if v != nil {
  25477. v[mk] = mv
  25478. }
  25479. }
  25480. dd.ReadMapEnd()
  25481. return v, changed
  25482. }
  25483. func (d *Decoder) fastpathDecMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  25484. if rv.Kind() == reflect.Ptr {
  25485. vp := rv2i(rv).(*map[uint16]bool)
  25486. v, changed := fastpathTV.DecMapUint16BoolV(*vp, true, d)
  25487. if changed {
  25488. *vp = v
  25489. }
  25490. } else {
  25491. fastpathTV.DecMapUint16BoolV(rv2i(rv).(map[uint16]bool), false, d)
  25492. }
  25493. }
  25494. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, d *Decoder) {
  25495. v, changed := f.DecMapUint16BoolV(*vp, true, d)
  25496. if changed {
  25497. *vp = v
  25498. }
  25499. }
  25500. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, canChange bool,
  25501. d *Decoder) (_ map[uint16]bool, 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, 3)
  25506. v = make(map[uint16]bool, xlen)
  25507. changed = true
  25508. }
  25509. if containerLen == 0 {
  25510. dd.ReadMapEnd()
  25511. return v, changed
  25512. }
  25513. var mk uint16
  25514. var mv bool
  25515. hasLen := containerLen > 0
  25516. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25517. if esep {
  25518. dd.ReadMapElemKey()
  25519. }
  25520. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  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] = false
  25530. }
  25531. continue
  25532. }
  25533. mv = dd.DecodeBool()
  25534. if v != nil {
  25535. v[mk] = mv
  25536. }
  25537. }
  25538. dd.ReadMapEnd()
  25539. return v, changed
  25540. }
  25541. func (d *Decoder) fastpathDecMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  25542. if rv.Kind() == reflect.Ptr {
  25543. vp := rv2i(rv).(*map[uint32]interface{})
  25544. v, changed := fastpathTV.DecMapUint32IntfV(*vp, true, d)
  25545. if changed {
  25546. *vp = v
  25547. }
  25548. } else {
  25549. fastpathTV.DecMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), false, d)
  25550. }
  25551. }
  25552. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, d *Decoder) {
  25553. v, changed := f.DecMapUint32IntfV(*vp, true, d)
  25554. if changed {
  25555. *vp = v
  25556. }
  25557. }
  25558. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, canChange bool,
  25559. d *Decoder) (_ map[uint32]interface{}, 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, 20)
  25564. v = make(map[uint32]interface{}, xlen)
  25565. changed = true
  25566. }
  25567. if containerLen == 0 {
  25568. dd.ReadMapEnd()
  25569. return v, changed
  25570. }
  25571. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  25572. var mk uint32
  25573. var mv interface{}
  25574. hasLen := containerLen > 0
  25575. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25576. if esep {
  25577. dd.ReadMapElemKey()
  25578. }
  25579. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25580. if esep {
  25581. dd.ReadMapElemValue()
  25582. }
  25583. if dd.TryDecodeAsNil() {
  25584. if v == nil {
  25585. } else if d.h.DeleteOnNilMapValue {
  25586. delete(v, mk)
  25587. } else {
  25588. v[mk] = nil
  25589. }
  25590. continue
  25591. }
  25592. if mapGet {
  25593. mv = v[mk]
  25594. } else {
  25595. mv = nil
  25596. }
  25597. d.decode(&mv)
  25598. if v != nil {
  25599. v[mk] = mv
  25600. }
  25601. }
  25602. dd.ReadMapEnd()
  25603. return v, changed
  25604. }
  25605. func (d *Decoder) fastpathDecMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  25606. if rv.Kind() == reflect.Ptr {
  25607. vp := rv2i(rv).(*map[uint32]string)
  25608. v, changed := fastpathTV.DecMapUint32StringV(*vp, true, d)
  25609. if changed {
  25610. *vp = v
  25611. }
  25612. } else {
  25613. fastpathTV.DecMapUint32StringV(rv2i(rv).(map[uint32]string), false, d)
  25614. }
  25615. }
  25616. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, d *Decoder) {
  25617. v, changed := f.DecMapUint32StringV(*vp, true, d)
  25618. if changed {
  25619. *vp = v
  25620. }
  25621. }
  25622. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, canChange bool,
  25623. d *Decoder) (_ map[uint32]string, changed bool) {
  25624. dd, esep := d.d, d.hh.hasElemSeparators()
  25625. containerLen := dd.ReadMapStart()
  25626. if canChange && v == nil {
  25627. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  25628. v = make(map[uint32]string, xlen)
  25629. changed = true
  25630. }
  25631. if containerLen == 0 {
  25632. dd.ReadMapEnd()
  25633. return v, changed
  25634. }
  25635. var mk uint32
  25636. var mv string
  25637. hasLen := containerLen > 0
  25638. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25639. if esep {
  25640. dd.ReadMapElemKey()
  25641. }
  25642. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25643. if esep {
  25644. dd.ReadMapElemValue()
  25645. }
  25646. if dd.TryDecodeAsNil() {
  25647. if v == nil {
  25648. } else if d.h.DeleteOnNilMapValue {
  25649. delete(v, mk)
  25650. } else {
  25651. v[mk] = ""
  25652. }
  25653. continue
  25654. }
  25655. mv = dd.DecodeString()
  25656. if v != nil {
  25657. v[mk] = mv
  25658. }
  25659. }
  25660. dd.ReadMapEnd()
  25661. return v, changed
  25662. }
  25663. func (d *Decoder) fastpathDecMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  25664. if rv.Kind() == reflect.Ptr {
  25665. vp := rv2i(rv).(*map[uint32]uint)
  25666. v, changed := fastpathTV.DecMapUint32UintV(*vp, true, d)
  25667. if changed {
  25668. *vp = v
  25669. }
  25670. } else {
  25671. fastpathTV.DecMapUint32UintV(rv2i(rv).(map[uint32]uint), false, d)
  25672. }
  25673. }
  25674. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, d *Decoder) {
  25675. v, changed := f.DecMapUint32UintV(*vp, true, d)
  25676. if changed {
  25677. *vp = v
  25678. }
  25679. }
  25680. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, canChange bool,
  25681. d *Decoder) (_ map[uint32]uint, changed bool) {
  25682. dd, esep := d.d, d.hh.hasElemSeparators()
  25683. containerLen := dd.ReadMapStart()
  25684. if canChange && v == nil {
  25685. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25686. v = make(map[uint32]uint, xlen)
  25687. changed = true
  25688. }
  25689. if containerLen == 0 {
  25690. dd.ReadMapEnd()
  25691. return v, changed
  25692. }
  25693. var mk uint32
  25694. var mv uint
  25695. hasLen := containerLen > 0
  25696. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25697. if esep {
  25698. dd.ReadMapElemKey()
  25699. }
  25700. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25701. if esep {
  25702. dd.ReadMapElemValue()
  25703. }
  25704. if dd.TryDecodeAsNil() {
  25705. if v == nil {
  25706. } else if d.h.DeleteOnNilMapValue {
  25707. delete(v, mk)
  25708. } else {
  25709. v[mk] = 0
  25710. }
  25711. continue
  25712. }
  25713. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25714. if v != nil {
  25715. v[mk] = mv
  25716. }
  25717. }
  25718. dd.ReadMapEnd()
  25719. return v, changed
  25720. }
  25721. func (d *Decoder) fastpathDecMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  25722. if rv.Kind() == reflect.Ptr {
  25723. vp := rv2i(rv).(*map[uint32]uint8)
  25724. v, changed := fastpathTV.DecMapUint32Uint8V(*vp, true, d)
  25725. if changed {
  25726. *vp = v
  25727. }
  25728. } else {
  25729. fastpathTV.DecMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), false, d)
  25730. }
  25731. }
  25732. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, d *Decoder) {
  25733. v, changed := f.DecMapUint32Uint8V(*vp, true, d)
  25734. if changed {
  25735. *vp = v
  25736. }
  25737. }
  25738. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, canChange bool,
  25739. d *Decoder) (_ map[uint32]uint8, changed bool) {
  25740. dd, esep := d.d, d.hh.hasElemSeparators()
  25741. containerLen := dd.ReadMapStart()
  25742. if canChange && v == nil {
  25743. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  25744. v = make(map[uint32]uint8, xlen)
  25745. changed = true
  25746. }
  25747. if containerLen == 0 {
  25748. dd.ReadMapEnd()
  25749. return v, changed
  25750. }
  25751. var mk uint32
  25752. var mv uint8
  25753. hasLen := containerLen > 0
  25754. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25755. if esep {
  25756. dd.ReadMapElemKey()
  25757. }
  25758. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25759. if esep {
  25760. dd.ReadMapElemValue()
  25761. }
  25762. if dd.TryDecodeAsNil() {
  25763. if v == nil {
  25764. } else if d.h.DeleteOnNilMapValue {
  25765. delete(v, mk)
  25766. } else {
  25767. v[mk] = 0
  25768. }
  25769. continue
  25770. }
  25771. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  25772. if v != nil {
  25773. v[mk] = mv
  25774. }
  25775. }
  25776. dd.ReadMapEnd()
  25777. return v, changed
  25778. }
  25779. func (d *Decoder) fastpathDecMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  25780. if rv.Kind() == reflect.Ptr {
  25781. vp := rv2i(rv).(*map[uint32]uint16)
  25782. v, changed := fastpathTV.DecMapUint32Uint16V(*vp, true, d)
  25783. if changed {
  25784. *vp = v
  25785. }
  25786. } else {
  25787. fastpathTV.DecMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), false, d)
  25788. }
  25789. }
  25790. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, d *Decoder) {
  25791. v, changed := f.DecMapUint32Uint16V(*vp, true, d)
  25792. if changed {
  25793. *vp = v
  25794. }
  25795. }
  25796. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, canChange bool,
  25797. d *Decoder) (_ map[uint32]uint16, changed bool) {
  25798. dd, esep := d.d, d.hh.hasElemSeparators()
  25799. containerLen := dd.ReadMapStart()
  25800. if canChange && v == nil {
  25801. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25802. v = make(map[uint32]uint16, xlen)
  25803. changed = true
  25804. }
  25805. if containerLen == 0 {
  25806. dd.ReadMapEnd()
  25807. return v, changed
  25808. }
  25809. var mk uint32
  25810. var mv uint16
  25811. hasLen := containerLen > 0
  25812. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25813. if esep {
  25814. dd.ReadMapElemKey()
  25815. }
  25816. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25817. if esep {
  25818. dd.ReadMapElemValue()
  25819. }
  25820. if dd.TryDecodeAsNil() {
  25821. if v == nil {
  25822. } else if d.h.DeleteOnNilMapValue {
  25823. delete(v, mk)
  25824. } else {
  25825. v[mk] = 0
  25826. }
  25827. continue
  25828. }
  25829. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25830. if v != nil {
  25831. v[mk] = mv
  25832. }
  25833. }
  25834. dd.ReadMapEnd()
  25835. return v, changed
  25836. }
  25837. func (d *Decoder) fastpathDecMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  25838. if rv.Kind() == reflect.Ptr {
  25839. vp := rv2i(rv).(*map[uint32]uint32)
  25840. v, changed := fastpathTV.DecMapUint32Uint32V(*vp, true, d)
  25841. if changed {
  25842. *vp = v
  25843. }
  25844. } else {
  25845. fastpathTV.DecMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), false, d)
  25846. }
  25847. }
  25848. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, d *Decoder) {
  25849. v, changed := f.DecMapUint32Uint32V(*vp, true, d)
  25850. if changed {
  25851. *vp = v
  25852. }
  25853. }
  25854. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, canChange bool,
  25855. d *Decoder) (_ map[uint32]uint32, changed bool) {
  25856. dd, esep := d.d, d.hh.hasElemSeparators()
  25857. containerLen := dd.ReadMapStart()
  25858. if canChange && v == nil {
  25859. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  25860. v = make(map[uint32]uint32, xlen)
  25861. changed = true
  25862. }
  25863. if containerLen == 0 {
  25864. dd.ReadMapEnd()
  25865. return v, changed
  25866. }
  25867. var mk uint32
  25868. var mv uint32
  25869. hasLen := containerLen > 0
  25870. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25871. if esep {
  25872. dd.ReadMapElemKey()
  25873. }
  25874. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25875. if esep {
  25876. dd.ReadMapElemValue()
  25877. }
  25878. if dd.TryDecodeAsNil() {
  25879. if v == nil {
  25880. } else if d.h.DeleteOnNilMapValue {
  25881. delete(v, mk)
  25882. } else {
  25883. v[mk] = 0
  25884. }
  25885. continue
  25886. }
  25887. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25888. if v != nil {
  25889. v[mk] = mv
  25890. }
  25891. }
  25892. dd.ReadMapEnd()
  25893. return v, changed
  25894. }
  25895. func (d *Decoder) fastpathDecMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  25896. if rv.Kind() == reflect.Ptr {
  25897. vp := rv2i(rv).(*map[uint32]uint64)
  25898. v, changed := fastpathTV.DecMapUint32Uint64V(*vp, true, d)
  25899. if changed {
  25900. *vp = v
  25901. }
  25902. } else {
  25903. fastpathTV.DecMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), false, d)
  25904. }
  25905. }
  25906. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, d *Decoder) {
  25907. v, changed := f.DecMapUint32Uint64V(*vp, true, d)
  25908. if changed {
  25909. *vp = v
  25910. }
  25911. }
  25912. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, canChange bool,
  25913. d *Decoder) (_ map[uint32]uint64, changed bool) {
  25914. dd, esep := d.d, d.hh.hasElemSeparators()
  25915. containerLen := dd.ReadMapStart()
  25916. if canChange && v == nil {
  25917. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25918. v = make(map[uint32]uint64, xlen)
  25919. changed = true
  25920. }
  25921. if containerLen == 0 {
  25922. dd.ReadMapEnd()
  25923. return v, changed
  25924. }
  25925. var mk uint32
  25926. var mv uint64
  25927. hasLen := containerLen > 0
  25928. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25929. if esep {
  25930. dd.ReadMapElemKey()
  25931. }
  25932. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25933. if esep {
  25934. dd.ReadMapElemValue()
  25935. }
  25936. if dd.TryDecodeAsNil() {
  25937. if v == nil {
  25938. } else if d.h.DeleteOnNilMapValue {
  25939. delete(v, mk)
  25940. } else {
  25941. v[mk] = 0
  25942. }
  25943. continue
  25944. }
  25945. mv = dd.DecodeUint64()
  25946. if v != nil {
  25947. v[mk] = mv
  25948. }
  25949. }
  25950. dd.ReadMapEnd()
  25951. return v, changed
  25952. }
  25953. func (d *Decoder) fastpathDecMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  25954. if rv.Kind() == reflect.Ptr {
  25955. vp := rv2i(rv).(*map[uint32]uintptr)
  25956. v, changed := fastpathTV.DecMapUint32UintptrV(*vp, true, d)
  25957. if changed {
  25958. *vp = v
  25959. }
  25960. } else {
  25961. fastpathTV.DecMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), false, d)
  25962. }
  25963. }
  25964. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, d *Decoder) {
  25965. v, changed := f.DecMapUint32UintptrV(*vp, true, d)
  25966. if changed {
  25967. *vp = v
  25968. }
  25969. }
  25970. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, canChange bool,
  25971. d *Decoder) (_ map[uint32]uintptr, 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, 12)
  25976. v = make(map[uint32]uintptr, xlen)
  25977. changed = true
  25978. }
  25979. if containerLen == 0 {
  25980. dd.ReadMapEnd()
  25981. return v, changed
  25982. }
  25983. var mk uint32
  25984. var mv uintptr
  25985. hasLen := containerLen > 0
  25986. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25987. if esep {
  25988. dd.ReadMapElemKey()
  25989. }
  25990. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  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] = 0
  26000. }
  26001. continue
  26002. }
  26003. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26004. if v != nil {
  26005. v[mk] = mv
  26006. }
  26007. }
  26008. dd.ReadMapEnd()
  26009. return v, changed
  26010. }
  26011. func (d *Decoder) fastpathDecMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  26012. if rv.Kind() == reflect.Ptr {
  26013. vp := rv2i(rv).(*map[uint32]int)
  26014. v, changed := fastpathTV.DecMapUint32IntV(*vp, true, d)
  26015. if changed {
  26016. *vp = v
  26017. }
  26018. } else {
  26019. fastpathTV.DecMapUint32IntV(rv2i(rv).(map[uint32]int), false, d)
  26020. }
  26021. }
  26022. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, d *Decoder) {
  26023. v, changed := f.DecMapUint32IntV(*vp, true, d)
  26024. if changed {
  26025. *vp = v
  26026. }
  26027. }
  26028. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, canChange bool,
  26029. d *Decoder) (_ map[uint32]int, 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, 12)
  26034. v = make(map[uint32]int, xlen)
  26035. changed = true
  26036. }
  26037. if containerLen == 0 {
  26038. dd.ReadMapEnd()
  26039. return v, changed
  26040. }
  26041. var mk uint32
  26042. var mv int
  26043. hasLen := containerLen > 0
  26044. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26045. if esep {
  26046. dd.ReadMapElemKey()
  26047. }
  26048. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  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 = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  26062. if v != nil {
  26063. v[mk] = mv
  26064. }
  26065. }
  26066. dd.ReadMapEnd()
  26067. return v, changed
  26068. }
  26069. func (d *Decoder) fastpathDecMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  26070. if rv.Kind() == reflect.Ptr {
  26071. vp := rv2i(rv).(*map[uint32]int8)
  26072. v, changed := fastpathTV.DecMapUint32Int8V(*vp, true, d)
  26073. if changed {
  26074. *vp = v
  26075. }
  26076. } else {
  26077. fastpathTV.DecMapUint32Int8V(rv2i(rv).(map[uint32]int8), false, d)
  26078. }
  26079. }
  26080. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, d *Decoder) {
  26081. v, changed := f.DecMapUint32Int8V(*vp, true, d)
  26082. if changed {
  26083. *vp = v
  26084. }
  26085. }
  26086. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, canChange bool,
  26087. d *Decoder) (_ map[uint32]int8, 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, 5)
  26092. v = make(map[uint32]int8, xlen)
  26093. changed = true
  26094. }
  26095. if containerLen == 0 {
  26096. dd.ReadMapEnd()
  26097. return v, changed
  26098. }
  26099. var mk uint32
  26100. var mv int8
  26101. hasLen := containerLen > 0
  26102. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26103. if esep {
  26104. dd.ReadMapElemKey()
  26105. }
  26106. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  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 = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  26120. if v != nil {
  26121. v[mk] = mv
  26122. }
  26123. }
  26124. dd.ReadMapEnd()
  26125. return v, changed
  26126. }
  26127. func (d *Decoder) fastpathDecMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  26128. if rv.Kind() == reflect.Ptr {
  26129. vp := rv2i(rv).(*map[uint32]int16)
  26130. v, changed := fastpathTV.DecMapUint32Int16V(*vp, true, d)
  26131. if changed {
  26132. *vp = v
  26133. }
  26134. } else {
  26135. fastpathTV.DecMapUint32Int16V(rv2i(rv).(map[uint32]int16), false, d)
  26136. }
  26137. }
  26138. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, d *Decoder) {
  26139. v, changed := f.DecMapUint32Int16V(*vp, true, d)
  26140. if changed {
  26141. *vp = v
  26142. }
  26143. }
  26144. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, canChange bool,
  26145. d *Decoder) (_ map[uint32]int16, 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, 6)
  26150. v = make(map[uint32]int16, xlen)
  26151. changed = true
  26152. }
  26153. if containerLen == 0 {
  26154. dd.ReadMapEnd()
  26155. return v, changed
  26156. }
  26157. var mk uint32
  26158. var mv int16
  26159. hasLen := containerLen > 0
  26160. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26161. if esep {
  26162. dd.ReadMapElemKey()
  26163. }
  26164. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  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 = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  26178. if v != nil {
  26179. v[mk] = mv
  26180. }
  26181. }
  26182. dd.ReadMapEnd()
  26183. return v, changed
  26184. }
  26185. func (d *Decoder) fastpathDecMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  26186. if rv.Kind() == reflect.Ptr {
  26187. vp := rv2i(rv).(*map[uint32]int32)
  26188. v, changed := fastpathTV.DecMapUint32Int32V(*vp, true, d)
  26189. if changed {
  26190. *vp = v
  26191. }
  26192. } else {
  26193. fastpathTV.DecMapUint32Int32V(rv2i(rv).(map[uint32]int32), false, d)
  26194. }
  26195. }
  26196. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, d *Decoder) {
  26197. v, changed := f.DecMapUint32Int32V(*vp, true, d)
  26198. if changed {
  26199. *vp = v
  26200. }
  26201. }
  26202. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, canChange bool,
  26203. d *Decoder) (_ map[uint32]int32, 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, 8)
  26208. v = make(map[uint32]int32, xlen)
  26209. changed = true
  26210. }
  26211. if containerLen == 0 {
  26212. dd.ReadMapEnd()
  26213. return v, changed
  26214. }
  26215. var mk uint32
  26216. var mv int32
  26217. hasLen := containerLen > 0
  26218. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26219. if esep {
  26220. dd.ReadMapElemKey()
  26221. }
  26222. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  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 = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  26236. if v != nil {
  26237. v[mk] = mv
  26238. }
  26239. }
  26240. dd.ReadMapEnd()
  26241. return v, changed
  26242. }
  26243. func (d *Decoder) fastpathDecMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  26244. if rv.Kind() == reflect.Ptr {
  26245. vp := rv2i(rv).(*map[uint32]int64)
  26246. v, changed := fastpathTV.DecMapUint32Int64V(*vp, true, d)
  26247. if changed {
  26248. *vp = v
  26249. }
  26250. } else {
  26251. fastpathTV.DecMapUint32Int64V(rv2i(rv).(map[uint32]int64), false, d)
  26252. }
  26253. }
  26254. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, d *Decoder) {
  26255. v, changed := f.DecMapUint32Int64V(*vp, true, d)
  26256. if changed {
  26257. *vp = v
  26258. }
  26259. }
  26260. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, canChange bool,
  26261. d *Decoder) (_ map[uint32]int64, 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, 12)
  26266. v = make(map[uint32]int64, xlen)
  26267. changed = true
  26268. }
  26269. if containerLen == 0 {
  26270. dd.ReadMapEnd()
  26271. return v, changed
  26272. }
  26273. var mk uint32
  26274. var mv int64
  26275. hasLen := containerLen > 0
  26276. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26277. if esep {
  26278. dd.ReadMapElemKey()
  26279. }
  26280. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  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.DecodeInt64()
  26294. if v != nil {
  26295. v[mk] = mv
  26296. }
  26297. }
  26298. dd.ReadMapEnd()
  26299. return v, changed
  26300. }
  26301. func (d *Decoder) fastpathDecMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  26302. if rv.Kind() == reflect.Ptr {
  26303. vp := rv2i(rv).(*map[uint32]float32)
  26304. v, changed := fastpathTV.DecMapUint32Float32V(*vp, true, d)
  26305. if changed {
  26306. *vp = v
  26307. }
  26308. } else {
  26309. fastpathTV.DecMapUint32Float32V(rv2i(rv).(map[uint32]float32), false, d)
  26310. }
  26311. }
  26312. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, d *Decoder) {
  26313. v, changed := f.DecMapUint32Float32V(*vp, true, d)
  26314. if changed {
  26315. *vp = v
  26316. }
  26317. }
  26318. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, canChange bool,
  26319. d *Decoder) (_ map[uint32]float32, 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, 8)
  26324. v = make(map[uint32]float32, xlen)
  26325. changed = true
  26326. }
  26327. if containerLen == 0 {
  26328. dd.ReadMapEnd()
  26329. return v, changed
  26330. }
  26331. var mk uint32
  26332. var mv float32
  26333. hasLen := containerLen > 0
  26334. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26335. if esep {
  26336. dd.ReadMapElemKey()
  26337. }
  26338. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  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 = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  26352. if v != nil {
  26353. v[mk] = mv
  26354. }
  26355. }
  26356. dd.ReadMapEnd()
  26357. return v, changed
  26358. }
  26359. func (d *Decoder) fastpathDecMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  26360. if rv.Kind() == reflect.Ptr {
  26361. vp := rv2i(rv).(*map[uint32]float64)
  26362. v, changed := fastpathTV.DecMapUint32Float64V(*vp, true, d)
  26363. if changed {
  26364. *vp = v
  26365. }
  26366. } else {
  26367. fastpathTV.DecMapUint32Float64V(rv2i(rv).(map[uint32]float64), false, d)
  26368. }
  26369. }
  26370. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, d *Decoder) {
  26371. v, changed := f.DecMapUint32Float64V(*vp, true, d)
  26372. if changed {
  26373. *vp = v
  26374. }
  26375. }
  26376. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, canChange bool,
  26377. d *Decoder) (_ map[uint32]float64, 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, 12)
  26382. v = make(map[uint32]float64, xlen)
  26383. changed = true
  26384. }
  26385. if containerLen == 0 {
  26386. dd.ReadMapEnd()
  26387. return v, changed
  26388. }
  26389. var mk uint32
  26390. var mv float64
  26391. hasLen := containerLen > 0
  26392. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26393. if esep {
  26394. dd.ReadMapElemKey()
  26395. }
  26396. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  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 = dd.DecodeFloat64()
  26410. if v != nil {
  26411. v[mk] = mv
  26412. }
  26413. }
  26414. dd.ReadMapEnd()
  26415. return v, changed
  26416. }
  26417. func (d *Decoder) fastpathDecMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  26418. if rv.Kind() == reflect.Ptr {
  26419. vp := rv2i(rv).(*map[uint32]bool)
  26420. v, changed := fastpathTV.DecMapUint32BoolV(*vp, true, d)
  26421. if changed {
  26422. *vp = v
  26423. }
  26424. } else {
  26425. fastpathTV.DecMapUint32BoolV(rv2i(rv).(map[uint32]bool), false, d)
  26426. }
  26427. }
  26428. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, d *Decoder) {
  26429. v, changed := f.DecMapUint32BoolV(*vp, true, d)
  26430. if changed {
  26431. *vp = v
  26432. }
  26433. }
  26434. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, canChange bool,
  26435. d *Decoder) (_ map[uint32]bool, 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, 5)
  26440. v = make(map[uint32]bool, xlen)
  26441. changed = true
  26442. }
  26443. if containerLen == 0 {
  26444. dd.ReadMapEnd()
  26445. return v, changed
  26446. }
  26447. var mk uint32
  26448. var mv bool
  26449. hasLen := containerLen > 0
  26450. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26451. if esep {
  26452. dd.ReadMapElemKey()
  26453. }
  26454. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  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] = false
  26464. }
  26465. continue
  26466. }
  26467. mv = dd.DecodeBool()
  26468. if v != nil {
  26469. v[mk] = mv
  26470. }
  26471. }
  26472. dd.ReadMapEnd()
  26473. return v, changed
  26474. }
  26475. func (d *Decoder) fastpathDecMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  26476. if rv.Kind() == reflect.Ptr {
  26477. vp := rv2i(rv).(*map[uint64]interface{})
  26478. v, changed := fastpathTV.DecMapUint64IntfV(*vp, true, d)
  26479. if changed {
  26480. *vp = v
  26481. }
  26482. } else {
  26483. fastpathTV.DecMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), false, d)
  26484. }
  26485. }
  26486. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, d *Decoder) {
  26487. v, changed := f.DecMapUint64IntfV(*vp, true, d)
  26488. if changed {
  26489. *vp = v
  26490. }
  26491. }
  26492. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, canChange bool,
  26493. d *Decoder) (_ map[uint64]interface{}, 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, 24)
  26498. v = make(map[uint64]interface{}, xlen)
  26499. changed = true
  26500. }
  26501. if containerLen == 0 {
  26502. dd.ReadMapEnd()
  26503. return v, changed
  26504. }
  26505. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  26506. var mk uint64
  26507. var mv interface{}
  26508. hasLen := containerLen > 0
  26509. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26510. if esep {
  26511. dd.ReadMapElemKey()
  26512. }
  26513. mk = dd.DecodeUint64()
  26514. if esep {
  26515. dd.ReadMapElemValue()
  26516. }
  26517. if dd.TryDecodeAsNil() {
  26518. if v == nil {
  26519. } else if d.h.DeleteOnNilMapValue {
  26520. delete(v, mk)
  26521. } else {
  26522. v[mk] = nil
  26523. }
  26524. continue
  26525. }
  26526. if mapGet {
  26527. mv = v[mk]
  26528. } else {
  26529. mv = nil
  26530. }
  26531. d.decode(&mv)
  26532. if v != nil {
  26533. v[mk] = mv
  26534. }
  26535. }
  26536. dd.ReadMapEnd()
  26537. return v, changed
  26538. }
  26539. func (d *Decoder) fastpathDecMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  26540. if rv.Kind() == reflect.Ptr {
  26541. vp := rv2i(rv).(*map[uint64]string)
  26542. v, changed := fastpathTV.DecMapUint64StringV(*vp, true, d)
  26543. if changed {
  26544. *vp = v
  26545. }
  26546. } else {
  26547. fastpathTV.DecMapUint64StringV(rv2i(rv).(map[uint64]string), false, d)
  26548. }
  26549. }
  26550. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, d *Decoder) {
  26551. v, changed := f.DecMapUint64StringV(*vp, true, d)
  26552. if changed {
  26553. *vp = v
  26554. }
  26555. }
  26556. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, canChange bool,
  26557. d *Decoder) (_ map[uint64]string, changed bool) {
  26558. dd, esep := d.d, d.hh.hasElemSeparators()
  26559. containerLen := dd.ReadMapStart()
  26560. if canChange && v == nil {
  26561. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26562. v = make(map[uint64]string, xlen)
  26563. changed = true
  26564. }
  26565. if containerLen == 0 {
  26566. dd.ReadMapEnd()
  26567. return v, changed
  26568. }
  26569. var mk uint64
  26570. var mv string
  26571. hasLen := containerLen > 0
  26572. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26573. if esep {
  26574. dd.ReadMapElemKey()
  26575. }
  26576. mk = dd.DecodeUint64()
  26577. if esep {
  26578. dd.ReadMapElemValue()
  26579. }
  26580. if dd.TryDecodeAsNil() {
  26581. if v == nil {
  26582. } else if d.h.DeleteOnNilMapValue {
  26583. delete(v, mk)
  26584. } else {
  26585. v[mk] = ""
  26586. }
  26587. continue
  26588. }
  26589. mv = dd.DecodeString()
  26590. if v != nil {
  26591. v[mk] = mv
  26592. }
  26593. }
  26594. dd.ReadMapEnd()
  26595. return v, changed
  26596. }
  26597. func (d *Decoder) fastpathDecMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  26598. if rv.Kind() == reflect.Ptr {
  26599. vp := rv2i(rv).(*map[uint64]uint)
  26600. v, changed := fastpathTV.DecMapUint64UintV(*vp, true, d)
  26601. if changed {
  26602. *vp = v
  26603. }
  26604. } else {
  26605. fastpathTV.DecMapUint64UintV(rv2i(rv).(map[uint64]uint), false, d)
  26606. }
  26607. }
  26608. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, d *Decoder) {
  26609. v, changed := f.DecMapUint64UintV(*vp, true, d)
  26610. if changed {
  26611. *vp = v
  26612. }
  26613. }
  26614. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, canChange bool,
  26615. d *Decoder) (_ map[uint64]uint, changed bool) {
  26616. dd, esep := d.d, d.hh.hasElemSeparators()
  26617. containerLen := dd.ReadMapStart()
  26618. if canChange && v == nil {
  26619. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26620. v = make(map[uint64]uint, xlen)
  26621. changed = true
  26622. }
  26623. if containerLen == 0 {
  26624. dd.ReadMapEnd()
  26625. return v, changed
  26626. }
  26627. var mk uint64
  26628. var mv uint
  26629. hasLen := containerLen > 0
  26630. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26631. if esep {
  26632. dd.ReadMapElemKey()
  26633. }
  26634. mk = dd.DecodeUint64()
  26635. if esep {
  26636. dd.ReadMapElemValue()
  26637. }
  26638. if dd.TryDecodeAsNil() {
  26639. if v == nil {
  26640. } else if d.h.DeleteOnNilMapValue {
  26641. delete(v, mk)
  26642. } else {
  26643. v[mk] = 0
  26644. }
  26645. continue
  26646. }
  26647. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26648. if v != nil {
  26649. v[mk] = mv
  26650. }
  26651. }
  26652. dd.ReadMapEnd()
  26653. return v, changed
  26654. }
  26655. func (d *Decoder) fastpathDecMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  26656. if rv.Kind() == reflect.Ptr {
  26657. vp := rv2i(rv).(*map[uint64]uint8)
  26658. v, changed := fastpathTV.DecMapUint64Uint8V(*vp, true, d)
  26659. if changed {
  26660. *vp = v
  26661. }
  26662. } else {
  26663. fastpathTV.DecMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), false, d)
  26664. }
  26665. }
  26666. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, d *Decoder) {
  26667. v, changed := f.DecMapUint64Uint8V(*vp, true, d)
  26668. if changed {
  26669. *vp = v
  26670. }
  26671. }
  26672. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, canChange bool,
  26673. d *Decoder) (_ map[uint64]uint8, changed bool) {
  26674. dd, esep := d.d, d.hh.hasElemSeparators()
  26675. containerLen := dd.ReadMapStart()
  26676. if canChange && v == nil {
  26677. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26678. v = make(map[uint64]uint8, xlen)
  26679. changed = true
  26680. }
  26681. if containerLen == 0 {
  26682. dd.ReadMapEnd()
  26683. return v, changed
  26684. }
  26685. var mk uint64
  26686. var mv uint8
  26687. hasLen := containerLen > 0
  26688. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26689. if esep {
  26690. dd.ReadMapElemKey()
  26691. }
  26692. mk = dd.DecodeUint64()
  26693. if esep {
  26694. dd.ReadMapElemValue()
  26695. }
  26696. if dd.TryDecodeAsNil() {
  26697. if v == nil {
  26698. } else if d.h.DeleteOnNilMapValue {
  26699. delete(v, mk)
  26700. } else {
  26701. v[mk] = 0
  26702. }
  26703. continue
  26704. }
  26705. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  26706. if v != nil {
  26707. v[mk] = mv
  26708. }
  26709. }
  26710. dd.ReadMapEnd()
  26711. return v, changed
  26712. }
  26713. func (d *Decoder) fastpathDecMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  26714. if rv.Kind() == reflect.Ptr {
  26715. vp := rv2i(rv).(*map[uint64]uint16)
  26716. v, changed := fastpathTV.DecMapUint64Uint16V(*vp, true, d)
  26717. if changed {
  26718. *vp = v
  26719. }
  26720. } else {
  26721. fastpathTV.DecMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), false, d)
  26722. }
  26723. }
  26724. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, d *Decoder) {
  26725. v, changed := f.DecMapUint64Uint16V(*vp, true, d)
  26726. if changed {
  26727. *vp = v
  26728. }
  26729. }
  26730. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, canChange bool,
  26731. d *Decoder) (_ map[uint64]uint16, changed bool) {
  26732. dd, esep := d.d, d.hh.hasElemSeparators()
  26733. containerLen := dd.ReadMapStart()
  26734. if canChange && v == nil {
  26735. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26736. v = make(map[uint64]uint16, xlen)
  26737. changed = true
  26738. }
  26739. if containerLen == 0 {
  26740. dd.ReadMapEnd()
  26741. return v, changed
  26742. }
  26743. var mk uint64
  26744. var mv uint16
  26745. hasLen := containerLen > 0
  26746. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26747. if esep {
  26748. dd.ReadMapElemKey()
  26749. }
  26750. mk = dd.DecodeUint64()
  26751. if esep {
  26752. dd.ReadMapElemValue()
  26753. }
  26754. if dd.TryDecodeAsNil() {
  26755. if v == nil {
  26756. } else if d.h.DeleteOnNilMapValue {
  26757. delete(v, mk)
  26758. } else {
  26759. v[mk] = 0
  26760. }
  26761. continue
  26762. }
  26763. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  26764. if v != nil {
  26765. v[mk] = mv
  26766. }
  26767. }
  26768. dd.ReadMapEnd()
  26769. return v, changed
  26770. }
  26771. func (d *Decoder) fastpathDecMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  26772. if rv.Kind() == reflect.Ptr {
  26773. vp := rv2i(rv).(*map[uint64]uint32)
  26774. v, changed := fastpathTV.DecMapUint64Uint32V(*vp, true, d)
  26775. if changed {
  26776. *vp = v
  26777. }
  26778. } else {
  26779. fastpathTV.DecMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), false, d)
  26780. }
  26781. }
  26782. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, d *Decoder) {
  26783. v, changed := f.DecMapUint64Uint32V(*vp, true, d)
  26784. if changed {
  26785. *vp = v
  26786. }
  26787. }
  26788. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, canChange bool,
  26789. d *Decoder) (_ map[uint64]uint32, changed bool) {
  26790. dd, esep := d.d, d.hh.hasElemSeparators()
  26791. containerLen := dd.ReadMapStart()
  26792. if canChange && v == nil {
  26793. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26794. v = make(map[uint64]uint32, xlen)
  26795. changed = true
  26796. }
  26797. if containerLen == 0 {
  26798. dd.ReadMapEnd()
  26799. return v, changed
  26800. }
  26801. var mk uint64
  26802. var mv uint32
  26803. hasLen := containerLen > 0
  26804. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26805. if esep {
  26806. dd.ReadMapElemKey()
  26807. }
  26808. mk = dd.DecodeUint64()
  26809. if esep {
  26810. dd.ReadMapElemValue()
  26811. }
  26812. if dd.TryDecodeAsNil() {
  26813. if v == nil {
  26814. } else if d.h.DeleteOnNilMapValue {
  26815. delete(v, mk)
  26816. } else {
  26817. v[mk] = 0
  26818. }
  26819. continue
  26820. }
  26821. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26822. if v != nil {
  26823. v[mk] = mv
  26824. }
  26825. }
  26826. dd.ReadMapEnd()
  26827. return v, changed
  26828. }
  26829. func (d *Decoder) fastpathDecMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  26830. if rv.Kind() == reflect.Ptr {
  26831. vp := rv2i(rv).(*map[uint64]uint64)
  26832. v, changed := fastpathTV.DecMapUint64Uint64V(*vp, true, d)
  26833. if changed {
  26834. *vp = v
  26835. }
  26836. } else {
  26837. fastpathTV.DecMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), false, d)
  26838. }
  26839. }
  26840. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, d *Decoder) {
  26841. v, changed := f.DecMapUint64Uint64V(*vp, true, d)
  26842. if changed {
  26843. *vp = v
  26844. }
  26845. }
  26846. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, canChange bool,
  26847. d *Decoder) (_ map[uint64]uint64, changed bool) {
  26848. dd, esep := d.d, d.hh.hasElemSeparators()
  26849. containerLen := dd.ReadMapStart()
  26850. if canChange && v == nil {
  26851. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26852. v = make(map[uint64]uint64, xlen)
  26853. changed = true
  26854. }
  26855. if containerLen == 0 {
  26856. dd.ReadMapEnd()
  26857. return v, changed
  26858. }
  26859. var mk uint64
  26860. var mv uint64
  26861. hasLen := containerLen > 0
  26862. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26863. if esep {
  26864. dd.ReadMapElemKey()
  26865. }
  26866. mk = dd.DecodeUint64()
  26867. if esep {
  26868. dd.ReadMapElemValue()
  26869. }
  26870. if dd.TryDecodeAsNil() {
  26871. if v == nil {
  26872. } else if d.h.DeleteOnNilMapValue {
  26873. delete(v, mk)
  26874. } else {
  26875. v[mk] = 0
  26876. }
  26877. continue
  26878. }
  26879. mv = dd.DecodeUint64()
  26880. if v != nil {
  26881. v[mk] = mv
  26882. }
  26883. }
  26884. dd.ReadMapEnd()
  26885. return v, changed
  26886. }
  26887. func (d *Decoder) fastpathDecMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  26888. if rv.Kind() == reflect.Ptr {
  26889. vp := rv2i(rv).(*map[uint64]uintptr)
  26890. v, changed := fastpathTV.DecMapUint64UintptrV(*vp, true, d)
  26891. if changed {
  26892. *vp = v
  26893. }
  26894. } else {
  26895. fastpathTV.DecMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), false, d)
  26896. }
  26897. }
  26898. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, d *Decoder) {
  26899. v, changed := f.DecMapUint64UintptrV(*vp, true, d)
  26900. if changed {
  26901. *vp = v
  26902. }
  26903. }
  26904. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, canChange bool,
  26905. d *Decoder) (_ map[uint64]uintptr, 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, 16)
  26910. v = make(map[uint64]uintptr, xlen)
  26911. changed = true
  26912. }
  26913. if containerLen == 0 {
  26914. dd.ReadMapEnd()
  26915. return v, changed
  26916. }
  26917. var mk uint64
  26918. var mv uintptr
  26919. hasLen := containerLen > 0
  26920. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26921. if esep {
  26922. dd.ReadMapElemKey()
  26923. }
  26924. mk = dd.DecodeUint64()
  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] = 0
  26934. }
  26935. continue
  26936. }
  26937. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26938. if v != nil {
  26939. v[mk] = mv
  26940. }
  26941. }
  26942. dd.ReadMapEnd()
  26943. return v, changed
  26944. }
  26945. func (d *Decoder) fastpathDecMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  26946. if rv.Kind() == reflect.Ptr {
  26947. vp := rv2i(rv).(*map[uint64]int)
  26948. v, changed := fastpathTV.DecMapUint64IntV(*vp, true, d)
  26949. if changed {
  26950. *vp = v
  26951. }
  26952. } else {
  26953. fastpathTV.DecMapUint64IntV(rv2i(rv).(map[uint64]int), false, d)
  26954. }
  26955. }
  26956. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, d *Decoder) {
  26957. v, changed := f.DecMapUint64IntV(*vp, true, d)
  26958. if changed {
  26959. *vp = v
  26960. }
  26961. }
  26962. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, canChange bool,
  26963. d *Decoder) (_ map[uint64]int, 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[uint64]int, xlen)
  26969. changed = true
  26970. }
  26971. if containerLen == 0 {
  26972. dd.ReadMapEnd()
  26973. return v, changed
  26974. }
  26975. var mk uint64
  26976. var mv int
  26977. hasLen := containerLen > 0
  26978. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26979. if esep {
  26980. dd.ReadMapElemKey()
  26981. }
  26982. mk = dd.DecodeUint64()
  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 = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  26996. if v != nil {
  26997. v[mk] = mv
  26998. }
  26999. }
  27000. dd.ReadMapEnd()
  27001. return v, changed
  27002. }
  27003. func (d *Decoder) fastpathDecMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  27004. if rv.Kind() == reflect.Ptr {
  27005. vp := rv2i(rv).(*map[uint64]int8)
  27006. v, changed := fastpathTV.DecMapUint64Int8V(*vp, true, d)
  27007. if changed {
  27008. *vp = v
  27009. }
  27010. } else {
  27011. fastpathTV.DecMapUint64Int8V(rv2i(rv).(map[uint64]int8), false, d)
  27012. }
  27013. }
  27014. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, d *Decoder) {
  27015. v, changed := f.DecMapUint64Int8V(*vp, true, d)
  27016. if changed {
  27017. *vp = v
  27018. }
  27019. }
  27020. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, canChange bool,
  27021. d *Decoder) (_ map[uint64]int8, 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[uint64]int8, xlen)
  27027. changed = true
  27028. }
  27029. if containerLen == 0 {
  27030. dd.ReadMapEnd()
  27031. return v, changed
  27032. }
  27033. var mk uint64
  27034. var mv int8
  27035. hasLen := containerLen > 0
  27036. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27037. if esep {
  27038. dd.ReadMapElemKey()
  27039. }
  27040. mk = dd.DecodeUint64()
  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 = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  27054. if v != nil {
  27055. v[mk] = mv
  27056. }
  27057. }
  27058. dd.ReadMapEnd()
  27059. return v, changed
  27060. }
  27061. func (d *Decoder) fastpathDecMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  27062. if rv.Kind() == reflect.Ptr {
  27063. vp := rv2i(rv).(*map[uint64]int16)
  27064. v, changed := fastpathTV.DecMapUint64Int16V(*vp, true, d)
  27065. if changed {
  27066. *vp = v
  27067. }
  27068. } else {
  27069. fastpathTV.DecMapUint64Int16V(rv2i(rv).(map[uint64]int16), false, d)
  27070. }
  27071. }
  27072. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, d *Decoder) {
  27073. v, changed := f.DecMapUint64Int16V(*vp, true, d)
  27074. if changed {
  27075. *vp = v
  27076. }
  27077. }
  27078. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, canChange bool,
  27079. d *Decoder) (_ map[uint64]int16, 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[uint64]int16, xlen)
  27085. changed = true
  27086. }
  27087. if containerLen == 0 {
  27088. dd.ReadMapEnd()
  27089. return v, changed
  27090. }
  27091. var mk uint64
  27092. var mv int16
  27093. hasLen := containerLen > 0
  27094. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27095. if esep {
  27096. dd.ReadMapElemKey()
  27097. }
  27098. mk = dd.DecodeUint64()
  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 = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  27112. if v != nil {
  27113. v[mk] = mv
  27114. }
  27115. }
  27116. dd.ReadMapEnd()
  27117. return v, changed
  27118. }
  27119. func (d *Decoder) fastpathDecMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  27120. if rv.Kind() == reflect.Ptr {
  27121. vp := rv2i(rv).(*map[uint64]int32)
  27122. v, changed := fastpathTV.DecMapUint64Int32V(*vp, true, d)
  27123. if changed {
  27124. *vp = v
  27125. }
  27126. } else {
  27127. fastpathTV.DecMapUint64Int32V(rv2i(rv).(map[uint64]int32), false, d)
  27128. }
  27129. }
  27130. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, d *Decoder) {
  27131. v, changed := f.DecMapUint64Int32V(*vp, true, d)
  27132. if changed {
  27133. *vp = v
  27134. }
  27135. }
  27136. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, canChange bool,
  27137. d *Decoder) (_ map[uint64]int32, 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[uint64]int32, xlen)
  27143. changed = true
  27144. }
  27145. if containerLen == 0 {
  27146. dd.ReadMapEnd()
  27147. return v, changed
  27148. }
  27149. var mk uint64
  27150. var mv int32
  27151. hasLen := containerLen > 0
  27152. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27153. if esep {
  27154. dd.ReadMapElemKey()
  27155. }
  27156. mk = dd.DecodeUint64()
  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 = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  27170. if v != nil {
  27171. v[mk] = mv
  27172. }
  27173. }
  27174. dd.ReadMapEnd()
  27175. return v, changed
  27176. }
  27177. func (d *Decoder) fastpathDecMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  27178. if rv.Kind() == reflect.Ptr {
  27179. vp := rv2i(rv).(*map[uint64]int64)
  27180. v, changed := fastpathTV.DecMapUint64Int64V(*vp, true, d)
  27181. if changed {
  27182. *vp = v
  27183. }
  27184. } else {
  27185. fastpathTV.DecMapUint64Int64V(rv2i(rv).(map[uint64]int64), false, d)
  27186. }
  27187. }
  27188. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, d *Decoder) {
  27189. v, changed := f.DecMapUint64Int64V(*vp, true, d)
  27190. if changed {
  27191. *vp = v
  27192. }
  27193. }
  27194. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, canChange bool,
  27195. d *Decoder) (_ map[uint64]int64, 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[uint64]int64, xlen)
  27201. changed = true
  27202. }
  27203. if containerLen == 0 {
  27204. dd.ReadMapEnd()
  27205. return v, changed
  27206. }
  27207. var mk uint64
  27208. var mv int64
  27209. hasLen := containerLen > 0
  27210. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27211. if esep {
  27212. dd.ReadMapElemKey()
  27213. }
  27214. mk = dd.DecodeUint64()
  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.DecodeInt64()
  27228. if v != nil {
  27229. v[mk] = mv
  27230. }
  27231. }
  27232. dd.ReadMapEnd()
  27233. return v, changed
  27234. }
  27235. func (d *Decoder) fastpathDecMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  27236. if rv.Kind() == reflect.Ptr {
  27237. vp := rv2i(rv).(*map[uint64]float32)
  27238. v, changed := fastpathTV.DecMapUint64Float32V(*vp, true, d)
  27239. if changed {
  27240. *vp = v
  27241. }
  27242. } else {
  27243. fastpathTV.DecMapUint64Float32V(rv2i(rv).(map[uint64]float32), false, d)
  27244. }
  27245. }
  27246. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, d *Decoder) {
  27247. v, changed := f.DecMapUint64Float32V(*vp, true, d)
  27248. if changed {
  27249. *vp = v
  27250. }
  27251. }
  27252. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, canChange bool,
  27253. d *Decoder) (_ map[uint64]float32, 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, 12)
  27258. v = make(map[uint64]float32, xlen)
  27259. changed = true
  27260. }
  27261. if containerLen == 0 {
  27262. dd.ReadMapEnd()
  27263. return v, changed
  27264. }
  27265. var mk uint64
  27266. var mv float32
  27267. hasLen := containerLen > 0
  27268. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27269. if esep {
  27270. dd.ReadMapElemKey()
  27271. }
  27272. mk = dd.DecodeUint64()
  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 = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  27286. if v != nil {
  27287. v[mk] = mv
  27288. }
  27289. }
  27290. dd.ReadMapEnd()
  27291. return v, changed
  27292. }
  27293. func (d *Decoder) fastpathDecMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  27294. if rv.Kind() == reflect.Ptr {
  27295. vp := rv2i(rv).(*map[uint64]float64)
  27296. v, changed := fastpathTV.DecMapUint64Float64V(*vp, true, d)
  27297. if changed {
  27298. *vp = v
  27299. }
  27300. } else {
  27301. fastpathTV.DecMapUint64Float64V(rv2i(rv).(map[uint64]float64), false, d)
  27302. }
  27303. }
  27304. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, d *Decoder) {
  27305. v, changed := f.DecMapUint64Float64V(*vp, true, d)
  27306. if changed {
  27307. *vp = v
  27308. }
  27309. }
  27310. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, canChange bool,
  27311. d *Decoder) (_ map[uint64]float64, 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[uint64]float64, xlen)
  27317. changed = true
  27318. }
  27319. if containerLen == 0 {
  27320. dd.ReadMapEnd()
  27321. return v, changed
  27322. }
  27323. var mk uint64
  27324. var mv float64
  27325. hasLen := containerLen > 0
  27326. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27327. if esep {
  27328. dd.ReadMapElemKey()
  27329. }
  27330. mk = dd.DecodeUint64()
  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 = dd.DecodeFloat64()
  27344. if v != nil {
  27345. v[mk] = mv
  27346. }
  27347. }
  27348. dd.ReadMapEnd()
  27349. return v, changed
  27350. }
  27351. func (d *Decoder) fastpathDecMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  27352. if rv.Kind() == reflect.Ptr {
  27353. vp := rv2i(rv).(*map[uint64]bool)
  27354. v, changed := fastpathTV.DecMapUint64BoolV(*vp, true, d)
  27355. if changed {
  27356. *vp = v
  27357. }
  27358. } else {
  27359. fastpathTV.DecMapUint64BoolV(rv2i(rv).(map[uint64]bool), false, d)
  27360. }
  27361. }
  27362. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, d *Decoder) {
  27363. v, changed := f.DecMapUint64BoolV(*vp, true, d)
  27364. if changed {
  27365. *vp = v
  27366. }
  27367. }
  27368. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, canChange bool,
  27369. d *Decoder) (_ map[uint64]bool, 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[uint64]bool, xlen)
  27375. changed = true
  27376. }
  27377. if containerLen == 0 {
  27378. dd.ReadMapEnd()
  27379. return v, changed
  27380. }
  27381. var mk uint64
  27382. var mv bool
  27383. hasLen := containerLen > 0
  27384. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27385. if esep {
  27386. dd.ReadMapElemKey()
  27387. }
  27388. mk = dd.DecodeUint64()
  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] = false
  27398. }
  27399. continue
  27400. }
  27401. mv = dd.DecodeBool()
  27402. if v != nil {
  27403. v[mk] = mv
  27404. }
  27405. }
  27406. dd.ReadMapEnd()
  27407. return v, changed
  27408. }
  27409. func (d *Decoder) fastpathDecMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  27410. if rv.Kind() == reflect.Ptr {
  27411. vp := rv2i(rv).(*map[uintptr]interface{})
  27412. v, changed := fastpathTV.DecMapUintptrIntfV(*vp, true, d)
  27413. if changed {
  27414. *vp = v
  27415. }
  27416. } else {
  27417. fastpathTV.DecMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), false, d)
  27418. }
  27419. }
  27420. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, d *Decoder) {
  27421. v, changed := f.DecMapUintptrIntfV(*vp, true, d)
  27422. if changed {
  27423. *vp = v
  27424. }
  27425. }
  27426. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, canChange bool,
  27427. d *Decoder) (_ map[uintptr]interface{}, 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, 24)
  27432. v = make(map[uintptr]interface{}, xlen)
  27433. changed = true
  27434. }
  27435. if containerLen == 0 {
  27436. dd.ReadMapEnd()
  27437. return v, changed
  27438. }
  27439. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  27440. var mk uintptr
  27441. var mv interface{}
  27442. hasLen := containerLen > 0
  27443. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27444. if esep {
  27445. dd.ReadMapElemKey()
  27446. }
  27447. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27448. if esep {
  27449. dd.ReadMapElemValue()
  27450. }
  27451. if dd.TryDecodeAsNil() {
  27452. if v == nil {
  27453. } else if d.h.DeleteOnNilMapValue {
  27454. delete(v, mk)
  27455. } else {
  27456. v[mk] = nil
  27457. }
  27458. continue
  27459. }
  27460. if mapGet {
  27461. mv = v[mk]
  27462. } else {
  27463. mv = nil
  27464. }
  27465. d.decode(&mv)
  27466. if v != nil {
  27467. v[mk] = mv
  27468. }
  27469. }
  27470. dd.ReadMapEnd()
  27471. return v, changed
  27472. }
  27473. func (d *Decoder) fastpathDecMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  27474. if rv.Kind() == reflect.Ptr {
  27475. vp := rv2i(rv).(*map[uintptr]string)
  27476. v, changed := fastpathTV.DecMapUintptrStringV(*vp, true, d)
  27477. if changed {
  27478. *vp = v
  27479. }
  27480. } else {
  27481. fastpathTV.DecMapUintptrStringV(rv2i(rv).(map[uintptr]string), false, d)
  27482. }
  27483. }
  27484. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, d *Decoder) {
  27485. v, changed := f.DecMapUintptrStringV(*vp, true, d)
  27486. if changed {
  27487. *vp = v
  27488. }
  27489. }
  27490. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, canChange bool,
  27491. d *Decoder) (_ map[uintptr]string, changed bool) {
  27492. dd, esep := d.d, d.hh.hasElemSeparators()
  27493. containerLen := dd.ReadMapStart()
  27494. if canChange && v == nil {
  27495. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27496. v = make(map[uintptr]string, xlen)
  27497. changed = true
  27498. }
  27499. if containerLen == 0 {
  27500. dd.ReadMapEnd()
  27501. return v, changed
  27502. }
  27503. var mk uintptr
  27504. var mv string
  27505. hasLen := containerLen > 0
  27506. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27507. if esep {
  27508. dd.ReadMapElemKey()
  27509. }
  27510. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27511. if esep {
  27512. dd.ReadMapElemValue()
  27513. }
  27514. if dd.TryDecodeAsNil() {
  27515. if v == nil {
  27516. } else if d.h.DeleteOnNilMapValue {
  27517. delete(v, mk)
  27518. } else {
  27519. v[mk] = ""
  27520. }
  27521. continue
  27522. }
  27523. mv = dd.DecodeString()
  27524. if v != nil {
  27525. v[mk] = mv
  27526. }
  27527. }
  27528. dd.ReadMapEnd()
  27529. return v, changed
  27530. }
  27531. func (d *Decoder) fastpathDecMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  27532. if rv.Kind() == reflect.Ptr {
  27533. vp := rv2i(rv).(*map[uintptr]uint)
  27534. v, changed := fastpathTV.DecMapUintptrUintV(*vp, true, d)
  27535. if changed {
  27536. *vp = v
  27537. }
  27538. } else {
  27539. fastpathTV.DecMapUintptrUintV(rv2i(rv).(map[uintptr]uint), false, d)
  27540. }
  27541. }
  27542. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, d *Decoder) {
  27543. v, changed := f.DecMapUintptrUintV(*vp, true, d)
  27544. if changed {
  27545. *vp = v
  27546. }
  27547. }
  27548. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, canChange bool,
  27549. d *Decoder) (_ map[uintptr]uint, changed bool) {
  27550. dd, esep := d.d, d.hh.hasElemSeparators()
  27551. containerLen := dd.ReadMapStart()
  27552. if canChange && v == nil {
  27553. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27554. v = make(map[uintptr]uint, xlen)
  27555. changed = true
  27556. }
  27557. if containerLen == 0 {
  27558. dd.ReadMapEnd()
  27559. return v, changed
  27560. }
  27561. var mk uintptr
  27562. var mv uint
  27563. hasLen := containerLen > 0
  27564. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27565. if esep {
  27566. dd.ReadMapElemKey()
  27567. }
  27568. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27569. if esep {
  27570. dd.ReadMapElemValue()
  27571. }
  27572. if dd.TryDecodeAsNil() {
  27573. if v == nil {
  27574. } else if d.h.DeleteOnNilMapValue {
  27575. delete(v, mk)
  27576. } else {
  27577. v[mk] = 0
  27578. }
  27579. continue
  27580. }
  27581. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27582. if v != nil {
  27583. v[mk] = mv
  27584. }
  27585. }
  27586. dd.ReadMapEnd()
  27587. return v, changed
  27588. }
  27589. func (d *Decoder) fastpathDecMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  27590. if rv.Kind() == reflect.Ptr {
  27591. vp := rv2i(rv).(*map[uintptr]uint8)
  27592. v, changed := fastpathTV.DecMapUintptrUint8V(*vp, true, d)
  27593. if changed {
  27594. *vp = v
  27595. }
  27596. } else {
  27597. fastpathTV.DecMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), false, d)
  27598. }
  27599. }
  27600. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, d *Decoder) {
  27601. v, changed := f.DecMapUintptrUint8V(*vp, true, d)
  27602. if changed {
  27603. *vp = v
  27604. }
  27605. }
  27606. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, canChange bool,
  27607. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  27608. dd, esep := d.d, d.hh.hasElemSeparators()
  27609. containerLen := dd.ReadMapStart()
  27610. if canChange && v == nil {
  27611. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27612. v = make(map[uintptr]uint8, xlen)
  27613. changed = true
  27614. }
  27615. if containerLen == 0 {
  27616. dd.ReadMapEnd()
  27617. return v, changed
  27618. }
  27619. var mk uintptr
  27620. var mv uint8
  27621. hasLen := containerLen > 0
  27622. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27623. if esep {
  27624. dd.ReadMapElemKey()
  27625. }
  27626. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27627. if esep {
  27628. dd.ReadMapElemValue()
  27629. }
  27630. if dd.TryDecodeAsNil() {
  27631. if v == nil {
  27632. } else if d.h.DeleteOnNilMapValue {
  27633. delete(v, mk)
  27634. } else {
  27635. v[mk] = 0
  27636. }
  27637. continue
  27638. }
  27639. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  27640. if v != nil {
  27641. v[mk] = mv
  27642. }
  27643. }
  27644. dd.ReadMapEnd()
  27645. return v, changed
  27646. }
  27647. func (d *Decoder) fastpathDecMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  27648. if rv.Kind() == reflect.Ptr {
  27649. vp := rv2i(rv).(*map[uintptr]uint16)
  27650. v, changed := fastpathTV.DecMapUintptrUint16V(*vp, true, d)
  27651. if changed {
  27652. *vp = v
  27653. }
  27654. } else {
  27655. fastpathTV.DecMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), false, d)
  27656. }
  27657. }
  27658. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, d *Decoder) {
  27659. v, changed := f.DecMapUintptrUint16V(*vp, true, d)
  27660. if changed {
  27661. *vp = v
  27662. }
  27663. }
  27664. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, canChange bool,
  27665. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  27666. dd, esep := d.d, d.hh.hasElemSeparators()
  27667. containerLen := dd.ReadMapStart()
  27668. if canChange && v == nil {
  27669. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27670. v = make(map[uintptr]uint16, xlen)
  27671. changed = true
  27672. }
  27673. if containerLen == 0 {
  27674. dd.ReadMapEnd()
  27675. return v, changed
  27676. }
  27677. var mk uintptr
  27678. var mv uint16
  27679. hasLen := containerLen > 0
  27680. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27681. if esep {
  27682. dd.ReadMapElemKey()
  27683. }
  27684. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27685. if esep {
  27686. dd.ReadMapElemValue()
  27687. }
  27688. if dd.TryDecodeAsNil() {
  27689. if v == nil {
  27690. } else if d.h.DeleteOnNilMapValue {
  27691. delete(v, mk)
  27692. } else {
  27693. v[mk] = 0
  27694. }
  27695. continue
  27696. }
  27697. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  27698. if v != nil {
  27699. v[mk] = mv
  27700. }
  27701. }
  27702. dd.ReadMapEnd()
  27703. return v, changed
  27704. }
  27705. func (d *Decoder) fastpathDecMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  27706. if rv.Kind() == reflect.Ptr {
  27707. vp := rv2i(rv).(*map[uintptr]uint32)
  27708. v, changed := fastpathTV.DecMapUintptrUint32V(*vp, true, d)
  27709. if changed {
  27710. *vp = v
  27711. }
  27712. } else {
  27713. fastpathTV.DecMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), false, d)
  27714. }
  27715. }
  27716. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, d *Decoder) {
  27717. v, changed := f.DecMapUintptrUint32V(*vp, true, d)
  27718. if changed {
  27719. *vp = v
  27720. }
  27721. }
  27722. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, canChange bool,
  27723. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  27724. dd, esep := d.d, d.hh.hasElemSeparators()
  27725. containerLen := dd.ReadMapStart()
  27726. if canChange && v == nil {
  27727. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27728. v = make(map[uintptr]uint32, xlen)
  27729. changed = true
  27730. }
  27731. if containerLen == 0 {
  27732. dd.ReadMapEnd()
  27733. return v, changed
  27734. }
  27735. var mk uintptr
  27736. var mv uint32
  27737. hasLen := containerLen > 0
  27738. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27739. if esep {
  27740. dd.ReadMapElemKey()
  27741. }
  27742. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27743. if esep {
  27744. dd.ReadMapElemValue()
  27745. }
  27746. if dd.TryDecodeAsNil() {
  27747. if v == nil {
  27748. } else if d.h.DeleteOnNilMapValue {
  27749. delete(v, mk)
  27750. } else {
  27751. v[mk] = 0
  27752. }
  27753. continue
  27754. }
  27755. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  27756. if v != nil {
  27757. v[mk] = mv
  27758. }
  27759. }
  27760. dd.ReadMapEnd()
  27761. return v, changed
  27762. }
  27763. func (d *Decoder) fastpathDecMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  27764. if rv.Kind() == reflect.Ptr {
  27765. vp := rv2i(rv).(*map[uintptr]uint64)
  27766. v, changed := fastpathTV.DecMapUintptrUint64V(*vp, true, d)
  27767. if changed {
  27768. *vp = v
  27769. }
  27770. } else {
  27771. fastpathTV.DecMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), false, d)
  27772. }
  27773. }
  27774. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, d *Decoder) {
  27775. v, changed := f.DecMapUintptrUint64V(*vp, true, d)
  27776. if changed {
  27777. *vp = v
  27778. }
  27779. }
  27780. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, canChange bool,
  27781. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  27782. dd, esep := d.d, d.hh.hasElemSeparators()
  27783. containerLen := dd.ReadMapStart()
  27784. if canChange && v == nil {
  27785. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27786. v = make(map[uintptr]uint64, xlen)
  27787. changed = true
  27788. }
  27789. if containerLen == 0 {
  27790. dd.ReadMapEnd()
  27791. return v, changed
  27792. }
  27793. var mk uintptr
  27794. var mv uint64
  27795. hasLen := containerLen > 0
  27796. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27797. if esep {
  27798. dd.ReadMapElemKey()
  27799. }
  27800. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27801. if esep {
  27802. dd.ReadMapElemValue()
  27803. }
  27804. if dd.TryDecodeAsNil() {
  27805. if v == nil {
  27806. } else if d.h.DeleteOnNilMapValue {
  27807. delete(v, mk)
  27808. } else {
  27809. v[mk] = 0
  27810. }
  27811. continue
  27812. }
  27813. mv = dd.DecodeUint64()
  27814. if v != nil {
  27815. v[mk] = mv
  27816. }
  27817. }
  27818. dd.ReadMapEnd()
  27819. return v, changed
  27820. }
  27821. func (d *Decoder) fastpathDecMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  27822. if rv.Kind() == reflect.Ptr {
  27823. vp := rv2i(rv).(*map[uintptr]uintptr)
  27824. v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, true, d)
  27825. if changed {
  27826. *vp = v
  27827. }
  27828. } else {
  27829. fastpathTV.DecMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), false, d)
  27830. }
  27831. }
  27832. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, d *Decoder) {
  27833. v, changed := f.DecMapUintptrUintptrV(*vp, true, d)
  27834. if changed {
  27835. *vp = v
  27836. }
  27837. }
  27838. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, canChange bool,
  27839. d *Decoder) (_ map[uintptr]uintptr, 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, 16)
  27844. v = make(map[uintptr]uintptr, xlen)
  27845. changed = true
  27846. }
  27847. if containerLen == 0 {
  27848. dd.ReadMapEnd()
  27849. return v, changed
  27850. }
  27851. var mk uintptr
  27852. var mv uintptr
  27853. hasLen := containerLen > 0
  27854. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27855. if esep {
  27856. dd.ReadMapElemKey()
  27857. }
  27858. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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] = 0
  27868. }
  27869. continue
  27870. }
  27871. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27872. if v != nil {
  27873. v[mk] = mv
  27874. }
  27875. }
  27876. dd.ReadMapEnd()
  27877. return v, changed
  27878. }
  27879. func (d *Decoder) fastpathDecMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  27880. if rv.Kind() == reflect.Ptr {
  27881. vp := rv2i(rv).(*map[uintptr]int)
  27882. v, changed := fastpathTV.DecMapUintptrIntV(*vp, true, d)
  27883. if changed {
  27884. *vp = v
  27885. }
  27886. } else {
  27887. fastpathTV.DecMapUintptrIntV(rv2i(rv).(map[uintptr]int), false, d)
  27888. }
  27889. }
  27890. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, d *Decoder) {
  27891. v, changed := f.DecMapUintptrIntV(*vp, true, d)
  27892. if changed {
  27893. *vp = v
  27894. }
  27895. }
  27896. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, canChange bool,
  27897. d *Decoder) (_ map[uintptr]int, 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, 16)
  27902. v = make(map[uintptr]int, xlen)
  27903. changed = true
  27904. }
  27905. if containerLen == 0 {
  27906. dd.ReadMapEnd()
  27907. return v, changed
  27908. }
  27909. var mk uintptr
  27910. var mv int
  27911. hasLen := containerLen > 0
  27912. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27913. if esep {
  27914. dd.ReadMapElemKey()
  27915. }
  27916. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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 = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27930. if v != nil {
  27931. v[mk] = mv
  27932. }
  27933. }
  27934. dd.ReadMapEnd()
  27935. return v, changed
  27936. }
  27937. func (d *Decoder) fastpathDecMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  27938. if rv.Kind() == reflect.Ptr {
  27939. vp := rv2i(rv).(*map[uintptr]int8)
  27940. v, changed := fastpathTV.DecMapUintptrInt8V(*vp, true, d)
  27941. if changed {
  27942. *vp = v
  27943. }
  27944. } else {
  27945. fastpathTV.DecMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), false, d)
  27946. }
  27947. }
  27948. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, d *Decoder) {
  27949. v, changed := f.DecMapUintptrInt8V(*vp, true, d)
  27950. if changed {
  27951. *vp = v
  27952. }
  27953. }
  27954. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, canChange bool,
  27955. d *Decoder) (_ map[uintptr]int8, 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, 9)
  27960. v = make(map[uintptr]int8, xlen)
  27961. changed = true
  27962. }
  27963. if containerLen == 0 {
  27964. dd.ReadMapEnd()
  27965. return v, changed
  27966. }
  27967. var mk uintptr
  27968. var mv int8
  27969. hasLen := containerLen > 0
  27970. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27971. if esep {
  27972. dd.ReadMapElemKey()
  27973. }
  27974. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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 = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  27988. if v != nil {
  27989. v[mk] = mv
  27990. }
  27991. }
  27992. dd.ReadMapEnd()
  27993. return v, changed
  27994. }
  27995. func (d *Decoder) fastpathDecMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  27996. if rv.Kind() == reflect.Ptr {
  27997. vp := rv2i(rv).(*map[uintptr]int16)
  27998. v, changed := fastpathTV.DecMapUintptrInt16V(*vp, true, d)
  27999. if changed {
  28000. *vp = v
  28001. }
  28002. } else {
  28003. fastpathTV.DecMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), false, d)
  28004. }
  28005. }
  28006. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, d *Decoder) {
  28007. v, changed := f.DecMapUintptrInt16V(*vp, true, d)
  28008. if changed {
  28009. *vp = v
  28010. }
  28011. }
  28012. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, canChange bool,
  28013. d *Decoder) (_ map[uintptr]int16, 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, 10)
  28018. v = make(map[uintptr]int16, xlen)
  28019. changed = true
  28020. }
  28021. if containerLen == 0 {
  28022. dd.ReadMapEnd()
  28023. return v, changed
  28024. }
  28025. var mk uintptr
  28026. var mv int16
  28027. hasLen := containerLen > 0
  28028. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28029. if esep {
  28030. dd.ReadMapElemKey()
  28031. }
  28032. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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 = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  28046. if v != nil {
  28047. v[mk] = mv
  28048. }
  28049. }
  28050. dd.ReadMapEnd()
  28051. return v, changed
  28052. }
  28053. func (d *Decoder) fastpathDecMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  28054. if rv.Kind() == reflect.Ptr {
  28055. vp := rv2i(rv).(*map[uintptr]int32)
  28056. v, changed := fastpathTV.DecMapUintptrInt32V(*vp, true, d)
  28057. if changed {
  28058. *vp = v
  28059. }
  28060. } else {
  28061. fastpathTV.DecMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), false, d)
  28062. }
  28063. }
  28064. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, d *Decoder) {
  28065. v, changed := f.DecMapUintptrInt32V(*vp, true, d)
  28066. if changed {
  28067. *vp = v
  28068. }
  28069. }
  28070. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, canChange bool,
  28071. d *Decoder) (_ map[uintptr]int32, 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, 12)
  28076. v = make(map[uintptr]int32, xlen)
  28077. changed = true
  28078. }
  28079. if containerLen == 0 {
  28080. dd.ReadMapEnd()
  28081. return v, changed
  28082. }
  28083. var mk uintptr
  28084. var mv int32
  28085. hasLen := containerLen > 0
  28086. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28087. if esep {
  28088. dd.ReadMapElemKey()
  28089. }
  28090. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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 = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  28104. if v != nil {
  28105. v[mk] = mv
  28106. }
  28107. }
  28108. dd.ReadMapEnd()
  28109. return v, changed
  28110. }
  28111. func (d *Decoder) fastpathDecMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  28112. if rv.Kind() == reflect.Ptr {
  28113. vp := rv2i(rv).(*map[uintptr]int64)
  28114. v, changed := fastpathTV.DecMapUintptrInt64V(*vp, true, d)
  28115. if changed {
  28116. *vp = v
  28117. }
  28118. } else {
  28119. fastpathTV.DecMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), false, d)
  28120. }
  28121. }
  28122. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, d *Decoder) {
  28123. v, changed := f.DecMapUintptrInt64V(*vp, true, d)
  28124. if changed {
  28125. *vp = v
  28126. }
  28127. }
  28128. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, canChange bool,
  28129. d *Decoder) (_ map[uintptr]int64, 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, 16)
  28134. v = make(map[uintptr]int64, xlen)
  28135. changed = true
  28136. }
  28137. if containerLen == 0 {
  28138. dd.ReadMapEnd()
  28139. return v, changed
  28140. }
  28141. var mk uintptr
  28142. var mv int64
  28143. hasLen := containerLen > 0
  28144. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28145. if esep {
  28146. dd.ReadMapElemKey()
  28147. }
  28148. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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.DecodeInt64()
  28162. if v != nil {
  28163. v[mk] = mv
  28164. }
  28165. }
  28166. dd.ReadMapEnd()
  28167. return v, changed
  28168. }
  28169. func (d *Decoder) fastpathDecMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  28170. if rv.Kind() == reflect.Ptr {
  28171. vp := rv2i(rv).(*map[uintptr]float32)
  28172. v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, true, d)
  28173. if changed {
  28174. *vp = v
  28175. }
  28176. } else {
  28177. fastpathTV.DecMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), false, d)
  28178. }
  28179. }
  28180. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, d *Decoder) {
  28181. v, changed := f.DecMapUintptrFloat32V(*vp, true, d)
  28182. if changed {
  28183. *vp = v
  28184. }
  28185. }
  28186. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, canChange bool,
  28187. d *Decoder) (_ map[uintptr]float32, 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, 12)
  28192. v = make(map[uintptr]float32, xlen)
  28193. changed = true
  28194. }
  28195. if containerLen == 0 {
  28196. dd.ReadMapEnd()
  28197. return v, changed
  28198. }
  28199. var mk uintptr
  28200. var mv float32
  28201. hasLen := containerLen > 0
  28202. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28203. if esep {
  28204. dd.ReadMapElemKey()
  28205. }
  28206. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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 = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  28220. if v != nil {
  28221. v[mk] = mv
  28222. }
  28223. }
  28224. dd.ReadMapEnd()
  28225. return v, changed
  28226. }
  28227. func (d *Decoder) fastpathDecMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  28228. if rv.Kind() == reflect.Ptr {
  28229. vp := rv2i(rv).(*map[uintptr]float64)
  28230. v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, true, d)
  28231. if changed {
  28232. *vp = v
  28233. }
  28234. } else {
  28235. fastpathTV.DecMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), false, d)
  28236. }
  28237. }
  28238. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, d *Decoder) {
  28239. v, changed := f.DecMapUintptrFloat64V(*vp, true, d)
  28240. if changed {
  28241. *vp = v
  28242. }
  28243. }
  28244. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, canChange bool,
  28245. d *Decoder) (_ map[uintptr]float64, 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, 16)
  28250. v = make(map[uintptr]float64, xlen)
  28251. changed = true
  28252. }
  28253. if containerLen == 0 {
  28254. dd.ReadMapEnd()
  28255. return v, changed
  28256. }
  28257. var mk uintptr
  28258. var mv float64
  28259. hasLen := containerLen > 0
  28260. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28261. if esep {
  28262. dd.ReadMapElemKey()
  28263. }
  28264. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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 = dd.DecodeFloat64()
  28278. if v != nil {
  28279. v[mk] = mv
  28280. }
  28281. }
  28282. dd.ReadMapEnd()
  28283. return v, changed
  28284. }
  28285. func (d *Decoder) fastpathDecMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  28286. if rv.Kind() == reflect.Ptr {
  28287. vp := rv2i(rv).(*map[uintptr]bool)
  28288. v, changed := fastpathTV.DecMapUintptrBoolV(*vp, true, d)
  28289. if changed {
  28290. *vp = v
  28291. }
  28292. } else {
  28293. fastpathTV.DecMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), false, d)
  28294. }
  28295. }
  28296. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, d *Decoder) {
  28297. v, changed := f.DecMapUintptrBoolV(*vp, true, d)
  28298. if changed {
  28299. *vp = v
  28300. }
  28301. }
  28302. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, canChange bool,
  28303. d *Decoder) (_ map[uintptr]bool, 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, 9)
  28308. v = make(map[uintptr]bool, xlen)
  28309. changed = true
  28310. }
  28311. if containerLen == 0 {
  28312. dd.ReadMapEnd()
  28313. return v, changed
  28314. }
  28315. var mk uintptr
  28316. var mv bool
  28317. hasLen := containerLen > 0
  28318. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28319. if esep {
  28320. dd.ReadMapElemKey()
  28321. }
  28322. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  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] = false
  28332. }
  28333. continue
  28334. }
  28335. mv = dd.DecodeBool()
  28336. if v != nil {
  28337. v[mk] = mv
  28338. }
  28339. }
  28340. dd.ReadMapEnd()
  28341. return v, changed
  28342. }
  28343. func (d *Decoder) fastpathDecMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  28344. if rv.Kind() == reflect.Ptr {
  28345. vp := rv2i(rv).(*map[int]interface{})
  28346. v, changed := fastpathTV.DecMapIntIntfV(*vp, true, d)
  28347. if changed {
  28348. *vp = v
  28349. }
  28350. } else {
  28351. fastpathTV.DecMapIntIntfV(rv2i(rv).(map[int]interface{}), false, d)
  28352. }
  28353. }
  28354. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, d *Decoder) {
  28355. v, changed := f.DecMapIntIntfV(*vp, true, d)
  28356. if changed {
  28357. *vp = v
  28358. }
  28359. }
  28360. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, canChange bool,
  28361. d *Decoder) (_ map[int]interface{}, 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, 24)
  28366. v = make(map[int]interface{}, xlen)
  28367. changed = true
  28368. }
  28369. if containerLen == 0 {
  28370. dd.ReadMapEnd()
  28371. return v, changed
  28372. }
  28373. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  28374. var mk int
  28375. var mv interface{}
  28376. hasLen := containerLen > 0
  28377. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28378. if esep {
  28379. dd.ReadMapElemKey()
  28380. }
  28381. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28382. if esep {
  28383. dd.ReadMapElemValue()
  28384. }
  28385. if dd.TryDecodeAsNil() {
  28386. if v == nil {
  28387. } else if d.h.DeleteOnNilMapValue {
  28388. delete(v, mk)
  28389. } else {
  28390. v[mk] = nil
  28391. }
  28392. continue
  28393. }
  28394. if mapGet {
  28395. mv = v[mk]
  28396. } else {
  28397. mv = nil
  28398. }
  28399. d.decode(&mv)
  28400. if v != nil {
  28401. v[mk] = mv
  28402. }
  28403. }
  28404. dd.ReadMapEnd()
  28405. return v, changed
  28406. }
  28407. func (d *Decoder) fastpathDecMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  28408. if rv.Kind() == reflect.Ptr {
  28409. vp := rv2i(rv).(*map[int]string)
  28410. v, changed := fastpathTV.DecMapIntStringV(*vp, true, d)
  28411. if changed {
  28412. *vp = v
  28413. }
  28414. } else {
  28415. fastpathTV.DecMapIntStringV(rv2i(rv).(map[int]string), false, d)
  28416. }
  28417. }
  28418. func (f fastpathT) DecMapIntStringX(vp *map[int]string, d *Decoder) {
  28419. v, changed := f.DecMapIntStringV(*vp, true, d)
  28420. if changed {
  28421. *vp = v
  28422. }
  28423. }
  28424. func (_ fastpathT) DecMapIntStringV(v map[int]string, canChange bool,
  28425. d *Decoder) (_ map[int]string, changed bool) {
  28426. dd, esep := d.d, d.hh.hasElemSeparators()
  28427. containerLen := dd.ReadMapStart()
  28428. if canChange && v == nil {
  28429. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28430. v = make(map[int]string, xlen)
  28431. changed = true
  28432. }
  28433. if containerLen == 0 {
  28434. dd.ReadMapEnd()
  28435. return v, changed
  28436. }
  28437. var mk int
  28438. var mv string
  28439. hasLen := containerLen > 0
  28440. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28441. if esep {
  28442. dd.ReadMapElemKey()
  28443. }
  28444. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28445. if esep {
  28446. dd.ReadMapElemValue()
  28447. }
  28448. if dd.TryDecodeAsNil() {
  28449. if v == nil {
  28450. } else if d.h.DeleteOnNilMapValue {
  28451. delete(v, mk)
  28452. } else {
  28453. v[mk] = ""
  28454. }
  28455. continue
  28456. }
  28457. mv = dd.DecodeString()
  28458. if v != nil {
  28459. v[mk] = mv
  28460. }
  28461. }
  28462. dd.ReadMapEnd()
  28463. return v, changed
  28464. }
  28465. func (d *Decoder) fastpathDecMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  28466. if rv.Kind() == reflect.Ptr {
  28467. vp := rv2i(rv).(*map[int]uint)
  28468. v, changed := fastpathTV.DecMapIntUintV(*vp, true, d)
  28469. if changed {
  28470. *vp = v
  28471. }
  28472. } else {
  28473. fastpathTV.DecMapIntUintV(rv2i(rv).(map[int]uint), false, d)
  28474. }
  28475. }
  28476. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, d *Decoder) {
  28477. v, changed := f.DecMapIntUintV(*vp, true, d)
  28478. if changed {
  28479. *vp = v
  28480. }
  28481. }
  28482. func (_ fastpathT) DecMapIntUintV(v map[int]uint, canChange bool,
  28483. d *Decoder) (_ map[int]uint, changed bool) {
  28484. dd, esep := d.d, d.hh.hasElemSeparators()
  28485. containerLen := dd.ReadMapStart()
  28486. if canChange && v == nil {
  28487. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28488. v = make(map[int]uint, xlen)
  28489. changed = true
  28490. }
  28491. if containerLen == 0 {
  28492. dd.ReadMapEnd()
  28493. return v, changed
  28494. }
  28495. var mk int
  28496. var mv uint
  28497. hasLen := containerLen > 0
  28498. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28499. if esep {
  28500. dd.ReadMapElemKey()
  28501. }
  28502. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28503. if esep {
  28504. dd.ReadMapElemValue()
  28505. }
  28506. if dd.TryDecodeAsNil() {
  28507. if v == nil {
  28508. } else if d.h.DeleteOnNilMapValue {
  28509. delete(v, mk)
  28510. } else {
  28511. v[mk] = 0
  28512. }
  28513. continue
  28514. }
  28515. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28516. if v != nil {
  28517. v[mk] = mv
  28518. }
  28519. }
  28520. dd.ReadMapEnd()
  28521. return v, changed
  28522. }
  28523. func (d *Decoder) fastpathDecMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  28524. if rv.Kind() == reflect.Ptr {
  28525. vp := rv2i(rv).(*map[int]uint8)
  28526. v, changed := fastpathTV.DecMapIntUint8V(*vp, true, d)
  28527. if changed {
  28528. *vp = v
  28529. }
  28530. } else {
  28531. fastpathTV.DecMapIntUint8V(rv2i(rv).(map[int]uint8), false, d)
  28532. }
  28533. }
  28534. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, d *Decoder) {
  28535. v, changed := f.DecMapIntUint8V(*vp, true, d)
  28536. if changed {
  28537. *vp = v
  28538. }
  28539. }
  28540. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, canChange bool,
  28541. d *Decoder) (_ map[int]uint8, changed bool) {
  28542. dd, esep := d.d, d.hh.hasElemSeparators()
  28543. containerLen := dd.ReadMapStart()
  28544. if canChange && v == nil {
  28545. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28546. v = make(map[int]uint8, xlen)
  28547. changed = true
  28548. }
  28549. if containerLen == 0 {
  28550. dd.ReadMapEnd()
  28551. return v, changed
  28552. }
  28553. var mk int
  28554. var mv uint8
  28555. hasLen := containerLen > 0
  28556. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28557. if esep {
  28558. dd.ReadMapElemKey()
  28559. }
  28560. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28561. if esep {
  28562. dd.ReadMapElemValue()
  28563. }
  28564. if dd.TryDecodeAsNil() {
  28565. if v == nil {
  28566. } else if d.h.DeleteOnNilMapValue {
  28567. delete(v, mk)
  28568. } else {
  28569. v[mk] = 0
  28570. }
  28571. continue
  28572. }
  28573. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  28574. if v != nil {
  28575. v[mk] = mv
  28576. }
  28577. }
  28578. dd.ReadMapEnd()
  28579. return v, changed
  28580. }
  28581. func (d *Decoder) fastpathDecMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  28582. if rv.Kind() == reflect.Ptr {
  28583. vp := rv2i(rv).(*map[int]uint16)
  28584. v, changed := fastpathTV.DecMapIntUint16V(*vp, true, d)
  28585. if changed {
  28586. *vp = v
  28587. }
  28588. } else {
  28589. fastpathTV.DecMapIntUint16V(rv2i(rv).(map[int]uint16), false, d)
  28590. }
  28591. }
  28592. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, d *Decoder) {
  28593. v, changed := f.DecMapIntUint16V(*vp, true, d)
  28594. if changed {
  28595. *vp = v
  28596. }
  28597. }
  28598. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, canChange bool,
  28599. d *Decoder) (_ map[int]uint16, changed bool) {
  28600. dd, esep := d.d, d.hh.hasElemSeparators()
  28601. containerLen := dd.ReadMapStart()
  28602. if canChange && v == nil {
  28603. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28604. v = make(map[int]uint16, xlen)
  28605. changed = true
  28606. }
  28607. if containerLen == 0 {
  28608. dd.ReadMapEnd()
  28609. return v, changed
  28610. }
  28611. var mk int
  28612. var mv uint16
  28613. hasLen := containerLen > 0
  28614. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28615. if esep {
  28616. dd.ReadMapElemKey()
  28617. }
  28618. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28619. if esep {
  28620. dd.ReadMapElemValue()
  28621. }
  28622. if dd.TryDecodeAsNil() {
  28623. if v == nil {
  28624. } else if d.h.DeleteOnNilMapValue {
  28625. delete(v, mk)
  28626. } else {
  28627. v[mk] = 0
  28628. }
  28629. continue
  28630. }
  28631. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  28632. if v != nil {
  28633. v[mk] = mv
  28634. }
  28635. }
  28636. dd.ReadMapEnd()
  28637. return v, changed
  28638. }
  28639. func (d *Decoder) fastpathDecMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  28640. if rv.Kind() == reflect.Ptr {
  28641. vp := rv2i(rv).(*map[int]uint32)
  28642. v, changed := fastpathTV.DecMapIntUint32V(*vp, true, d)
  28643. if changed {
  28644. *vp = v
  28645. }
  28646. } else {
  28647. fastpathTV.DecMapIntUint32V(rv2i(rv).(map[int]uint32), false, d)
  28648. }
  28649. }
  28650. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, d *Decoder) {
  28651. v, changed := f.DecMapIntUint32V(*vp, true, d)
  28652. if changed {
  28653. *vp = v
  28654. }
  28655. }
  28656. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, canChange bool,
  28657. d *Decoder) (_ map[int]uint32, changed bool) {
  28658. dd, esep := d.d, d.hh.hasElemSeparators()
  28659. containerLen := dd.ReadMapStart()
  28660. if canChange && v == nil {
  28661. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28662. v = make(map[int]uint32, xlen)
  28663. changed = true
  28664. }
  28665. if containerLen == 0 {
  28666. dd.ReadMapEnd()
  28667. return v, changed
  28668. }
  28669. var mk int
  28670. var mv uint32
  28671. hasLen := containerLen > 0
  28672. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28673. if esep {
  28674. dd.ReadMapElemKey()
  28675. }
  28676. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28677. if esep {
  28678. dd.ReadMapElemValue()
  28679. }
  28680. if dd.TryDecodeAsNil() {
  28681. if v == nil {
  28682. } else if d.h.DeleteOnNilMapValue {
  28683. delete(v, mk)
  28684. } else {
  28685. v[mk] = 0
  28686. }
  28687. continue
  28688. }
  28689. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  28690. if v != nil {
  28691. v[mk] = mv
  28692. }
  28693. }
  28694. dd.ReadMapEnd()
  28695. return v, changed
  28696. }
  28697. func (d *Decoder) fastpathDecMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  28698. if rv.Kind() == reflect.Ptr {
  28699. vp := rv2i(rv).(*map[int]uint64)
  28700. v, changed := fastpathTV.DecMapIntUint64V(*vp, true, d)
  28701. if changed {
  28702. *vp = v
  28703. }
  28704. } else {
  28705. fastpathTV.DecMapIntUint64V(rv2i(rv).(map[int]uint64), false, d)
  28706. }
  28707. }
  28708. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, d *Decoder) {
  28709. v, changed := f.DecMapIntUint64V(*vp, true, d)
  28710. if changed {
  28711. *vp = v
  28712. }
  28713. }
  28714. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, canChange bool,
  28715. d *Decoder) (_ map[int]uint64, changed bool) {
  28716. dd, esep := d.d, d.hh.hasElemSeparators()
  28717. containerLen := dd.ReadMapStart()
  28718. if canChange && v == nil {
  28719. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28720. v = make(map[int]uint64, xlen)
  28721. changed = true
  28722. }
  28723. if containerLen == 0 {
  28724. dd.ReadMapEnd()
  28725. return v, changed
  28726. }
  28727. var mk int
  28728. var mv uint64
  28729. hasLen := containerLen > 0
  28730. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28731. if esep {
  28732. dd.ReadMapElemKey()
  28733. }
  28734. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28735. if esep {
  28736. dd.ReadMapElemValue()
  28737. }
  28738. if dd.TryDecodeAsNil() {
  28739. if v == nil {
  28740. } else if d.h.DeleteOnNilMapValue {
  28741. delete(v, mk)
  28742. } else {
  28743. v[mk] = 0
  28744. }
  28745. continue
  28746. }
  28747. mv = dd.DecodeUint64()
  28748. if v != nil {
  28749. v[mk] = mv
  28750. }
  28751. }
  28752. dd.ReadMapEnd()
  28753. return v, changed
  28754. }
  28755. func (d *Decoder) fastpathDecMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  28756. if rv.Kind() == reflect.Ptr {
  28757. vp := rv2i(rv).(*map[int]uintptr)
  28758. v, changed := fastpathTV.DecMapIntUintptrV(*vp, true, d)
  28759. if changed {
  28760. *vp = v
  28761. }
  28762. } else {
  28763. fastpathTV.DecMapIntUintptrV(rv2i(rv).(map[int]uintptr), false, d)
  28764. }
  28765. }
  28766. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, d *Decoder) {
  28767. v, changed := f.DecMapIntUintptrV(*vp, true, d)
  28768. if changed {
  28769. *vp = v
  28770. }
  28771. }
  28772. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, canChange bool,
  28773. d *Decoder) (_ map[int]uintptr, 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, 16)
  28778. v = make(map[int]uintptr, xlen)
  28779. changed = true
  28780. }
  28781. if containerLen == 0 {
  28782. dd.ReadMapEnd()
  28783. return v, changed
  28784. }
  28785. var mk int
  28786. var mv uintptr
  28787. hasLen := containerLen > 0
  28788. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28789. if esep {
  28790. dd.ReadMapElemKey()
  28791. }
  28792. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  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] = 0
  28802. }
  28803. continue
  28804. }
  28805. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28806. if v != nil {
  28807. v[mk] = mv
  28808. }
  28809. }
  28810. dd.ReadMapEnd()
  28811. return v, changed
  28812. }
  28813. func (d *Decoder) fastpathDecMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  28814. if rv.Kind() == reflect.Ptr {
  28815. vp := rv2i(rv).(*map[int]int)
  28816. v, changed := fastpathTV.DecMapIntIntV(*vp, true, d)
  28817. if changed {
  28818. *vp = v
  28819. }
  28820. } else {
  28821. fastpathTV.DecMapIntIntV(rv2i(rv).(map[int]int), false, d)
  28822. }
  28823. }
  28824. func (f fastpathT) DecMapIntIntX(vp *map[int]int, d *Decoder) {
  28825. v, changed := f.DecMapIntIntV(*vp, true, d)
  28826. if changed {
  28827. *vp = v
  28828. }
  28829. }
  28830. func (_ fastpathT) DecMapIntIntV(v map[int]int, canChange bool,
  28831. d *Decoder) (_ map[int]int, 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, 16)
  28836. v = make(map[int]int, xlen)
  28837. changed = true
  28838. }
  28839. if containerLen == 0 {
  28840. dd.ReadMapEnd()
  28841. return v, changed
  28842. }
  28843. var mk int
  28844. var mv int
  28845. hasLen := containerLen > 0
  28846. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28847. if esep {
  28848. dd.ReadMapElemKey()
  28849. }
  28850. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  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 = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28864. if v != nil {
  28865. v[mk] = mv
  28866. }
  28867. }
  28868. dd.ReadMapEnd()
  28869. return v, changed
  28870. }
  28871. func (d *Decoder) fastpathDecMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  28872. if rv.Kind() == reflect.Ptr {
  28873. vp := rv2i(rv).(*map[int]int8)
  28874. v, changed := fastpathTV.DecMapIntInt8V(*vp, true, d)
  28875. if changed {
  28876. *vp = v
  28877. }
  28878. } else {
  28879. fastpathTV.DecMapIntInt8V(rv2i(rv).(map[int]int8), false, d)
  28880. }
  28881. }
  28882. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, d *Decoder) {
  28883. v, changed := f.DecMapIntInt8V(*vp, true, d)
  28884. if changed {
  28885. *vp = v
  28886. }
  28887. }
  28888. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, canChange bool,
  28889. d *Decoder) (_ map[int]int8, 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, 9)
  28894. v = make(map[int]int8, xlen)
  28895. changed = true
  28896. }
  28897. if containerLen == 0 {
  28898. dd.ReadMapEnd()
  28899. return v, changed
  28900. }
  28901. var mk int
  28902. var mv int8
  28903. hasLen := containerLen > 0
  28904. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28905. if esep {
  28906. dd.ReadMapElemKey()
  28907. }
  28908. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  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 = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28922. if v != nil {
  28923. v[mk] = mv
  28924. }
  28925. }
  28926. dd.ReadMapEnd()
  28927. return v, changed
  28928. }
  28929. func (d *Decoder) fastpathDecMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  28930. if rv.Kind() == reflect.Ptr {
  28931. vp := rv2i(rv).(*map[int]int16)
  28932. v, changed := fastpathTV.DecMapIntInt16V(*vp, true, d)
  28933. if changed {
  28934. *vp = v
  28935. }
  28936. } else {
  28937. fastpathTV.DecMapIntInt16V(rv2i(rv).(map[int]int16), false, d)
  28938. }
  28939. }
  28940. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, d *Decoder) {
  28941. v, changed := f.DecMapIntInt16V(*vp, true, d)
  28942. if changed {
  28943. *vp = v
  28944. }
  28945. }
  28946. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, canChange bool,
  28947. d *Decoder) (_ map[int]int16, 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, 10)
  28952. v = make(map[int]int16, xlen)
  28953. changed = true
  28954. }
  28955. if containerLen == 0 {
  28956. dd.ReadMapEnd()
  28957. return v, changed
  28958. }
  28959. var mk int
  28960. var mv int16
  28961. hasLen := containerLen > 0
  28962. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28963. if esep {
  28964. dd.ReadMapElemKey()
  28965. }
  28966. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  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 = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  28980. if v != nil {
  28981. v[mk] = mv
  28982. }
  28983. }
  28984. dd.ReadMapEnd()
  28985. return v, changed
  28986. }
  28987. func (d *Decoder) fastpathDecMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  28988. if rv.Kind() == reflect.Ptr {
  28989. vp := rv2i(rv).(*map[int]int32)
  28990. v, changed := fastpathTV.DecMapIntInt32V(*vp, true, d)
  28991. if changed {
  28992. *vp = v
  28993. }
  28994. } else {
  28995. fastpathTV.DecMapIntInt32V(rv2i(rv).(map[int]int32), false, d)
  28996. }
  28997. }
  28998. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, d *Decoder) {
  28999. v, changed := f.DecMapIntInt32V(*vp, true, d)
  29000. if changed {
  29001. *vp = v
  29002. }
  29003. }
  29004. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, canChange bool,
  29005. d *Decoder) (_ map[int]int32, 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, 12)
  29010. v = make(map[int]int32, xlen)
  29011. changed = true
  29012. }
  29013. if containerLen == 0 {
  29014. dd.ReadMapEnd()
  29015. return v, changed
  29016. }
  29017. var mk int
  29018. var mv int32
  29019. hasLen := containerLen > 0
  29020. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29021. if esep {
  29022. dd.ReadMapElemKey()
  29023. }
  29024. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  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 = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  29038. if v != nil {
  29039. v[mk] = mv
  29040. }
  29041. }
  29042. dd.ReadMapEnd()
  29043. return v, changed
  29044. }
  29045. func (d *Decoder) fastpathDecMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  29046. if rv.Kind() == reflect.Ptr {
  29047. vp := rv2i(rv).(*map[int]int64)
  29048. v, changed := fastpathTV.DecMapIntInt64V(*vp, true, d)
  29049. if changed {
  29050. *vp = v
  29051. }
  29052. } else {
  29053. fastpathTV.DecMapIntInt64V(rv2i(rv).(map[int]int64), false, d)
  29054. }
  29055. }
  29056. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, d *Decoder) {
  29057. v, changed := f.DecMapIntInt64V(*vp, true, d)
  29058. if changed {
  29059. *vp = v
  29060. }
  29061. }
  29062. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, canChange bool,
  29063. d *Decoder) (_ map[int]int64, 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, 16)
  29068. v = make(map[int]int64, xlen)
  29069. changed = true
  29070. }
  29071. if containerLen == 0 {
  29072. dd.ReadMapEnd()
  29073. return v, changed
  29074. }
  29075. var mk int
  29076. var mv int64
  29077. hasLen := containerLen > 0
  29078. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29079. if esep {
  29080. dd.ReadMapElemKey()
  29081. }
  29082. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  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.DecodeInt64()
  29096. if v != nil {
  29097. v[mk] = mv
  29098. }
  29099. }
  29100. dd.ReadMapEnd()
  29101. return v, changed
  29102. }
  29103. func (d *Decoder) fastpathDecMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  29104. if rv.Kind() == reflect.Ptr {
  29105. vp := rv2i(rv).(*map[int]float32)
  29106. v, changed := fastpathTV.DecMapIntFloat32V(*vp, true, d)
  29107. if changed {
  29108. *vp = v
  29109. }
  29110. } else {
  29111. fastpathTV.DecMapIntFloat32V(rv2i(rv).(map[int]float32), false, d)
  29112. }
  29113. }
  29114. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, d *Decoder) {
  29115. v, changed := f.DecMapIntFloat32V(*vp, true, d)
  29116. if changed {
  29117. *vp = v
  29118. }
  29119. }
  29120. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, canChange bool,
  29121. d *Decoder) (_ map[int]float32, 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, 12)
  29126. v = make(map[int]float32, xlen)
  29127. changed = true
  29128. }
  29129. if containerLen == 0 {
  29130. dd.ReadMapEnd()
  29131. return v, changed
  29132. }
  29133. var mk int
  29134. var mv float32
  29135. hasLen := containerLen > 0
  29136. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29137. if esep {
  29138. dd.ReadMapElemKey()
  29139. }
  29140. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  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 = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  29154. if v != nil {
  29155. v[mk] = mv
  29156. }
  29157. }
  29158. dd.ReadMapEnd()
  29159. return v, changed
  29160. }
  29161. func (d *Decoder) fastpathDecMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  29162. if rv.Kind() == reflect.Ptr {
  29163. vp := rv2i(rv).(*map[int]float64)
  29164. v, changed := fastpathTV.DecMapIntFloat64V(*vp, true, d)
  29165. if changed {
  29166. *vp = v
  29167. }
  29168. } else {
  29169. fastpathTV.DecMapIntFloat64V(rv2i(rv).(map[int]float64), false, d)
  29170. }
  29171. }
  29172. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, d *Decoder) {
  29173. v, changed := f.DecMapIntFloat64V(*vp, true, d)
  29174. if changed {
  29175. *vp = v
  29176. }
  29177. }
  29178. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, canChange bool,
  29179. d *Decoder) (_ map[int]float64, 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, 16)
  29184. v = make(map[int]float64, xlen)
  29185. changed = true
  29186. }
  29187. if containerLen == 0 {
  29188. dd.ReadMapEnd()
  29189. return v, changed
  29190. }
  29191. var mk int
  29192. var mv float64
  29193. hasLen := containerLen > 0
  29194. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29195. if esep {
  29196. dd.ReadMapElemKey()
  29197. }
  29198. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  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 = dd.DecodeFloat64()
  29212. if v != nil {
  29213. v[mk] = mv
  29214. }
  29215. }
  29216. dd.ReadMapEnd()
  29217. return v, changed
  29218. }
  29219. func (d *Decoder) fastpathDecMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  29220. if rv.Kind() == reflect.Ptr {
  29221. vp := rv2i(rv).(*map[int]bool)
  29222. v, changed := fastpathTV.DecMapIntBoolV(*vp, true, d)
  29223. if changed {
  29224. *vp = v
  29225. }
  29226. } else {
  29227. fastpathTV.DecMapIntBoolV(rv2i(rv).(map[int]bool), false, d)
  29228. }
  29229. }
  29230. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, d *Decoder) {
  29231. v, changed := f.DecMapIntBoolV(*vp, true, d)
  29232. if changed {
  29233. *vp = v
  29234. }
  29235. }
  29236. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, canChange bool,
  29237. d *Decoder) (_ map[int]bool, 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, 9)
  29242. v = make(map[int]bool, xlen)
  29243. changed = true
  29244. }
  29245. if containerLen == 0 {
  29246. dd.ReadMapEnd()
  29247. return v, changed
  29248. }
  29249. var mk int
  29250. var mv bool
  29251. hasLen := containerLen > 0
  29252. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29253. if esep {
  29254. dd.ReadMapElemKey()
  29255. }
  29256. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  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] = false
  29266. }
  29267. continue
  29268. }
  29269. mv = dd.DecodeBool()
  29270. if v != nil {
  29271. v[mk] = mv
  29272. }
  29273. }
  29274. dd.ReadMapEnd()
  29275. return v, changed
  29276. }
  29277. func (d *Decoder) fastpathDecMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  29278. if rv.Kind() == reflect.Ptr {
  29279. vp := rv2i(rv).(*map[int8]interface{})
  29280. v, changed := fastpathTV.DecMapInt8IntfV(*vp, true, d)
  29281. if changed {
  29282. *vp = v
  29283. }
  29284. } else {
  29285. fastpathTV.DecMapInt8IntfV(rv2i(rv).(map[int8]interface{}), false, d)
  29286. }
  29287. }
  29288. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, d *Decoder) {
  29289. v, changed := f.DecMapInt8IntfV(*vp, true, d)
  29290. if changed {
  29291. *vp = v
  29292. }
  29293. }
  29294. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, canChange bool,
  29295. d *Decoder) (_ map[int8]interface{}, 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, 17)
  29300. v = make(map[int8]interface{}, xlen)
  29301. changed = true
  29302. }
  29303. if containerLen == 0 {
  29304. dd.ReadMapEnd()
  29305. return v, changed
  29306. }
  29307. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  29308. var mk int8
  29309. var mv interface{}
  29310. hasLen := containerLen > 0
  29311. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29312. if esep {
  29313. dd.ReadMapElemKey()
  29314. }
  29315. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29316. if esep {
  29317. dd.ReadMapElemValue()
  29318. }
  29319. if dd.TryDecodeAsNil() {
  29320. if v == nil {
  29321. } else if d.h.DeleteOnNilMapValue {
  29322. delete(v, mk)
  29323. } else {
  29324. v[mk] = nil
  29325. }
  29326. continue
  29327. }
  29328. if mapGet {
  29329. mv = v[mk]
  29330. } else {
  29331. mv = nil
  29332. }
  29333. d.decode(&mv)
  29334. if v != nil {
  29335. v[mk] = mv
  29336. }
  29337. }
  29338. dd.ReadMapEnd()
  29339. return v, changed
  29340. }
  29341. func (d *Decoder) fastpathDecMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  29342. if rv.Kind() == reflect.Ptr {
  29343. vp := rv2i(rv).(*map[int8]string)
  29344. v, changed := fastpathTV.DecMapInt8StringV(*vp, true, d)
  29345. if changed {
  29346. *vp = v
  29347. }
  29348. } else {
  29349. fastpathTV.DecMapInt8StringV(rv2i(rv).(map[int8]string), false, d)
  29350. }
  29351. }
  29352. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, d *Decoder) {
  29353. v, changed := f.DecMapInt8StringV(*vp, true, d)
  29354. if changed {
  29355. *vp = v
  29356. }
  29357. }
  29358. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, canChange bool,
  29359. d *Decoder) (_ map[int8]string, changed bool) {
  29360. dd, esep := d.d, d.hh.hasElemSeparators()
  29361. containerLen := dd.ReadMapStart()
  29362. if canChange && v == nil {
  29363. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29364. v = make(map[int8]string, xlen)
  29365. changed = true
  29366. }
  29367. if containerLen == 0 {
  29368. dd.ReadMapEnd()
  29369. return v, changed
  29370. }
  29371. var mk int8
  29372. var mv string
  29373. hasLen := containerLen > 0
  29374. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29375. if esep {
  29376. dd.ReadMapElemKey()
  29377. }
  29378. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29379. if esep {
  29380. dd.ReadMapElemValue()
  29381. }
  29382. if dd.TryDecodeAsNil() {
  29383. if v == nil {
  29384. } else if d.h.DeleteOnNilMapValue {
  29385. delete(v, mk)
  29386. } else {
  29387. v[mk] = ""
  29388. }
  29389. continue
  29390. }
  29391. mv = dd.DecodeString()
  29392. if v != nil {
  29393. v[mk] = mv
  29394. }
  29395. }
  29396. dd.ReadMapEnd()
  29397. return v, changed
  29398. }
  29399. func (d *Decoder) fastpathDecMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  29400. if rv.Kind() == reflect.Ptr {
  29401. vp := rv2i(rv).(*map[int8]uint)
  29402. v, changed := fastpathTV.DecMapInt8UintV(*vp, true, d)
  29403. if changed {
  29404. *vp = v
  29405. }
  29406. } else {
  29407. fastpathTV.DecMapInt8UintV(rv2i(rv).(map[int8]uint), false, d)
  29408. }
  29409. }
  29410. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, d *Decoder) {
  29411. v, changed := f.DecMapInt8UintV(*vp, true, d)
  29412. if changed {
  29413. *vp = v
  29414. }
  29415. }
  29416. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, canChange bool,
  29417. d *Decoder) (_ map[int8]uint, changed bool) {
  29418. dd, esep := d.d, d.hh.hasElemSeparators()
  29419. containerLen := dd.ReadMapStart()
  29420. if canChange && v == nil {
  29421. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29422. v = make(map[int8]uint, xlen)
  29423. changed = true
  29424. }
  29425. if containerLen == 0 {
  29426. dd.ReadMapEnd()
  29427. return v, changed
  29428. }
  29429. var mk int8
  29430. var mv uint
  29431. hasLen := containerLen > 0
  29432. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29433. if esep {
  29434. dd.ReadMapElemKey()
  29435. }
  29436. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29437. if esep {
  29438. dd.ReadMapElemValue()
  29439. }
  29440. if dd.TryDecodeAsNil() {
  29441. if v == nil {
  29442. } else if d.h.DeleteOnNilMapValue {
  29443. delete(v, mk)
  29444. } else {
  29445. v[mk] = 0
  29446. }
  29447. continue
  29448. }
  29449. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  29450. if v != nil {
  29451. v[mk] = mv
  29452. }
  29453. }
  29454. dd.ReadMapEnd()
  29455. return v, changed
  29456. }
  29457. func (d *Decoder) fastpathDecMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  29458. if rv.Kind() == reflect.Ptr {
  29459. vp := rv2i(rv).(*map[int8]uint8)
  29460. v, changed := fastpathTV.DecMapInt8Uint8V(*vp, true, d)
  29461. if changed {
  29462. *vp = v
  29463. }
  29464. } else {
  29465. fastpathTV.DecMapInt8Uint8V(rv2i(rv).(map[int8]uint8), false, d)
  29466. }
  29467. }
  29468. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, d *Decoder) {
  29469. v, changed := f.DecMapInt8Uint8V(*vp, true, d)
  29470. if changed {
  29471. *vp = v
  29472. }
  29473. }
  29474. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, canChange bool,
  29475. d *Decoder) (_ map[int8]uint8, changed bool) {
  29476. dd, esep := d.d, d.hh.hasElemSeparators()
  29477. containerLen := dd.ReadMapStart()
  29478. if canChange && v == nil {
  29479. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  29480. v = make(map[int8]uint8, xlen)
  29481. changed = true
  29482. }
  29483. if containerLen == 0 {
  29484. dd.ReadMapEnd()
  29485. return v, changed
  29486. }
  29487. var mk int8
  29488. var mv uint8
  29489. hasLen := containerLen > 0
  29490. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29491. if esep {
  29492. dd.ReadMapElemKey()
  29493. }
  29494. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29495. if esep {
  29496. dd.ReadMapElemValue()
  29497. }
  29498. if dd.TryDecodeAsNil() {
  29499. if v == nil {
  29500. } else if d.h.DeleteOnNilMapValue {
  29501. delete(v, mk)
  29502. } else {
  29503. v[mk] = 0
  29504. }
  29505. continue
  29506. }
  29507. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  29508. if v != nil {
  29509. v[mk] = mv
  29510. }
  29511. }
  29512. dd.ReadMapEnd()
  29513. return v, changed
  29514. }
  29515. func (d *Decoder) fastpathDecMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  29516. if rv.Kind() == reflect.Ptr {
  29517. vp := rv2i(rv).(*map[int8]uint16)
  29518. v, changed := fastpathTV.DecMapInt8Uint16V(*vp, true, d)
  29519. if changed {
  29520. *vp = v
  29521. }
  29522. } else {
  29523. fastpathTV.DecMapInt8Uint16V(rv2i(rv).(map[int8]uint16), false, d)
  29524. }
  29525. }
  29526. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, d *Decoder) {
  29527. v, changed := f.DecMapInt8Uint16V(*vp, true, d)
  29528. if changed {
  29529. *vp = v
  29530. }
  29531. }
  29532. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, canChange bool,
  29533. d *Decoder) (_ map[int8]uint16, changed bool) {
  29534. dd, esep := d.d, d.hh.hasElemSeparators()
  29535. containerLen := dd.ReadMapStart()
  29536. if canChange && v == nil {
  29537. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29538. v = make(map[int8]uint16, xlen)
  29539. changed = true
  29540. }
  29541. if containerLen == 0 {
  29542. dd.ReadMapEnd()
  29543. return v, changed
  29544. }
  29545. var mk int8
  29546. var mv uint16
  29547. hasLen := containerLen > 0
  29548. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29549. if esep {
  29550. dd.ReadMapElemKey()
  29551. }
  29552. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29553. if esep {
  29554. dd.ReadMapElemValue()
  29555. }
  29556. if dd.TryDecodeAsNil() {
  29557. if v == nil {
  29558. } else if d.h.DeleteOnNilMapValue {
  29559. delete(v, mk)
  29560. } else {
  29561. v[mk] = 0
  29562. }
  29563. continue
  29564. }
  29565. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  29566. if v != nil {
  29567. v[mk] = mv
  29568. }
  29569. }
  29570. dd.ReadMapEnd()
  29571. return v, changed
  29572. }
  29573. func (d *Decoder) fastpathDecMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  29574. if rv.Kind() == reflect.Ptr {
  29575. vp := rv2i(rv).(*map[int8]uint32)
  29576. v, changed := fastpathTV.DecMapInt8Uint32V(*vp, true, d)
  29577. if changed {
  29578. *vp = v
  29579. }
  29580. } else {
  29581. fastpathTV.DecMapInt8Uint32V(rv2i(rv).(map[int8]uint32), false, d)
  29582. }
  29583. }
  29584. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, d *Decoder) {
  29585. v, changed := f.DecMapInt8Uint32V(*vp, true, d)
  29586. if changed {
  29587. *vp = v
  29588. }
  29589. }
  29590. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, canChange bool,
  29591. d *Decoder) (_ map[int8]uint32, changed bool) {
  29592. dd, esep := d.d, d.hh.hasElemSeparators()
  29593. containerLen := dd.ReadMapStart()
  29594. if canChange && v == nil {
  29595. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  29596. v = make(map[int8]uint32, xlen)
  29597. changed = true
  29598. }
  29599. if containerLen == 0 {
  29600. dd.ReadMapEnd()
  29601. return v, changed
  29602. }
  29603. var mk int8
  29604. var mv uint32
  29605. hasLen := containerLen > 0
  29606. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29607. if esep {
  29608. dd.ReadMapElemKey()
  29609. }
  29610. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29611. if esep {
  29612. dd.ReadMapElemValue()
  29613. }
  29614. if dd.TryDecodeAsNil() {
  29615. if v == nil {
  29616. } else if d.h.DeleteOnNilMapValue {
  29617. delete(v, mk)
  29618. } else {
  29619. v[mk] = 0
  29620. }
  29621. continue
  29622. }
  29623. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  29624. if v != nil {
  29625. v[mk] = mv
  29626. }
  29627. }
  29628. dd.ReadMapEnd()
  29629. return v, changed
  29630. }
  29631. func (d *Decoder) fastpathDecMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  29632. if rv.Kind() == reflect.Ptr {
  29633. vp := rv2i(rv).(*map[int8]uint64)
  29634. v, changed := fastpathTV.DecMapInt8Uint64V(*vp, true, d)
  29635. if changed {
  29636. *vp = v
  29637. }
  29638. } else {
  29639. fastpathTV.DecMapInt8Uint64V(rv2i(rv).(map[int8]uint64), false, d)
  29640. }
  29641. }
  29642. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, d *Decoder) {
  29643. v, changed := f.DecMapInt8Uint64V(*vp, true, d)
  29644. if changed {
  29645. *vp = v
  29646. }
  29647. }
  29648. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, canChange bool,
  29649. d *Decoder) (_ map[int8]uint64, changed bool) {
  29650. dd, esep := d.d, d.hh.hasElemSeparators()
  29651. containerLen := dd.ReadMapStart()
  29652. if canChange && v == nil {
  29653. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29654. v = make(map[int8]uint64, xlen)
  29655. changed = true
  29656. }
  29657. if containerLen == 0 {
  29658. dd.ReadMapEnd()
  29659. return v, changed
  29660. }
  29661. var mk int8
  29662. var mv uint64
  29663. hasLen := containerLen > 0
  29664. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29665. if esep {
  29666. dd.ReadMapElemKey()
  29667. }
  29668. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29669. if esep {
  29670. dd.ReadMapElemValue()
  29671. }
  29672. if dd.TryDecodeAsNil() {
  29673. if v == nil {
  29674. } else if d.h.DeleteOnNilMapValue {
  29675. delete(v, mk)
  29676. } else {
  29677. v[mk] = 0
  29678. }
  29679. continue
  29680. }
  29681. mv = dd.DecodeUint64()
  29682. if v != nil {
  29683. v[mk] = mv
  29684. }
  29685. }
  29686. dd.ReadMapEnd()
  29687. return v, changed
  29688. }
  29689. func (d *Decoder) fastpathDecMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  29690. if rv.Kind() == reflect.Ptr {
  29691. vp := rv2i(rv).(*map[int8]uintptr)
  29692. v, changed := fastpathTV.DecMapInt8UintptrV(*vp, true, d)
  29693. if changed {
  29694. *vp = v
  29695. }
  29696. } else {
  29697. fastpathTV.DecMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), false, d)
  29698. }
  29699. }
  29700. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, d *Decoder) {
  29701. v, changed := f.DecMapInt8UintptrV(*vp, true, d)
  29702. if changed {
  29703. *vp = v
  29704. }
  29705. }
  29706. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, canChange bool,
  29707. d *Decoder) (_ map[int8]uintptr, 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, 9)
  29712. v = make(map[int8]uintptr, xlen)
  29713. changed = true
  29714. }
  29715. if containerLen == 0 {
  29716. dd.ReadMapEnd()
  29717. return v, changed
  29718. }
  29719. var mk int8
  29720. var mv uintptr
  29721. hasLen := containerLen > 0
  29722. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29723. if esep {
  29724. dd.ReadMapElemKey()
  29725. }
  29726. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  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] = 0
  29736. }
  29737. continue
  29738. }
  29739. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  29740. if v != nil {
  29741. v[mk] = mv
  29742. }
  29743. }
  29744. dd.ReadMapEnd()
  29745. return v, changed
  29746. }
  29747. func (d *Decoder) fastpathDecMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  29748. if rv.Kind() == reflect.Ptr {
  29749. vp := rv2i(rv).(*map[int8]int)
  29750. v, changed := fastpathTV.DecMapInt8IntV(*vp, true, d)
  29751. if changed {
  29752. *vp = v
  29753. }
  29754. } else {
  29755. fastpathTV.DecMapInt8IntV(rv2i(rv).(map[int8]int), false, d)
  29756. }
  29757. }
  29758. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, d *Decoder) {
  29759. v, changed := f.DecMapInt8IntV(*vp, true, d)
  29760. if changed {
  29761. *vp = v
  29762. }
  29763. }
  29764. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, canChange bool,
  29765. d *Decoder) (_ map[int8]int, 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, 9)
  29770. v = make(map[int8]int, xlen)
  29771. changed = true
  29772. }
  29773. if containerLen == 0 {
  29774. dd.ReadMapEnd()
  29775. return v, changed
  29776. }
  29777. var mk int8
  29778. var mv int
  29779. hasLen := containerLen > 0
  29780. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29781. if esep {
  29782. dd.ReadMapElemKey()
  29783. }
  29784. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  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 = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29798. if v != nil {
  29799. v[mk] = mv
  29800. }
  29801. }
  29802. dd.ReadMapEnd()
  29803. return v, changed
  29804. }
  29805. func (d *Decoder) fastpathDecMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  29806. if rv.Kind() == reflect.Ptr {
  29807. vp := rv2i(rv).(*map[int8]int8)
  29808. v, changed := fastpathTV.DecMapInt8Int8V(*vp, true, d)
  29809. if changed {
  29810. *vp = v
  29811. }
  29812. } else {
  29813. fastpathTV.DecMapInt8Int8V(rv2i(rv).(map[int8]int8), false, d)
  29814. }
  29815. }
  29816. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, d *Decoder) {
  29817. v, changed := f.DecMapInt8Int8V(*vp, true, d)
  29818. if changed {
  29819. *vp = v
  29820. }
  29821. }
  29822. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, canChange bool,
  29823. d *Decoder) (_ map[int8]int8, 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, 2)
  29828. v = make(map[int8]int8, xlen)
  29829. changed = true
  29830. }
  29831. if containerLen == 0 {
  29832. dd.ReadMapEnd()
  29833. return v, changed
  29834. }
  29835. var mk int8
  29836. var mv int8
  29837. hasLen := containerLen > 0
  29838. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29839. if esep {
  29840. dd.ReadMapElemKey()
  29841. }
  29842. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  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 = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29856. if v != nil {
  29857. v[mk] = mv
  29858. }
  29859. }
  29860. dd.ReadMapEnd()
  29861. return v, changed
  29862. }
  29863. func (d *Decoder) fastpathDecMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  29864. if rv.Kind() == reflect.Ptr {
  29865. vp := rv2i(rv).(*map[int8]int16)
  29866. v, changed := fastpathTV.DecMapInt8Int16V(*vp, true, d)
  29867. if changed {
  29868. *vp = v
  29869. }
  29870. } else {
  29871. fastpathTV.DecMapInt8Int16V(rv2i(rv).(map[int8]int16), false, d)
  29872. }
  29873. }
  29874. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, d *Decoder) {
  29875. v, changed := f.DecMapInt8Int16V(*vp, true, d)
  29876. if changed {
  29877. *vp = v
  29878. }
  29879. }
  29880. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, canChange bool,
  29881. d *Decoder) (_ map[int8]int16, 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, 3)
  29886. v = make(map[int8]int16, xlen)
  29887. changed = true
  29888. }
  29889. if containerLen == 0 {
  29890. dd.ReadMapEnd()
  29891. return v, changed
  29892. }
  29893. var mk int8
  29894. var mv int16
  29895. hasLen := containerLen > 0
  29896. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29897. if esep {
  29898. dd.ReadMapElemKey()
  29899. }
  29900. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  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 = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29914. if v != nil {
  29915. v[mk] = mv
  29916. }
  29917. }
  29918. dd.ReadMapEnd()
  29919. return v, changed
  29920. }
  29921. func (d *Decoder) fastpathDecMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  29922. if rv.Kind() == reflect.Ptr {
  29923. vp := rv2i(rv).(*map[int8]int32)
  29924. v, changed := fastpathTV.DecMapInt8Int32V(*vp, true, d)
  29925. if changed {
  29926. *vp = v
  29927. }
  29928. } else {
  29929. fastpathTV.DecMapInt8Int32V(rv2i(rv).(map[int8]int32), false, d)
  29930. }
  29931. }
  29932. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, d *Decoder) {
  29933. v, changed := f.DecMapInt8Int32V(*vp, true, d)
  29934. if changed {
  29935. *vp = v
  29936. }
  29937. }
  29938. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, canChange bool,
  29939. d *Decoder) (_ map[int8]int32, 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, 5)
  29944. v = make(map[int8]int32, xlen)
  29945. changed = true
  29946. }
  29947. if containerLen == 0 {
  29948. dd.ReadMapEnd()
  29949. return v, changed
  29950. }
  29951. var mk int8
  29952. var mv int32
  29953. hasLen := containerLen > 0
  29954. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29955. if esep {
  29956. dd.ReadMapElemKey()
  29957. }
  29958. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  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 = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  29972. if v != nil {
  29973. v[mk] = mv
  29974. }
  29975. }
  29976. dd.ReadMapEnd()
  29977. return v, changed
  29978. }
  29979. func (d *Decoder) fastpathDecMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  29980. if rv.Kind() == reflect.Ptr {
  29981. vp := rv2i(rv).(*map[int8]int64)
  29982. v, changed := fastpathTV.DecMapInt8Int64V(*vp, true, d)
  29983. if changed {
  29984. *vp = v
  29985. }
  29986. } else {
  29987. fastpathTV.DecMapInt8Int64V(rv2i(rv).(map[int8]int64), false, d)
  29988. }
  29989. }
  29990. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, d *Decoder) {
  29991. v, changed := f.DecMapInt8Int64V(*vp, true, d)
  29992. if changed {
  29993. *vp = v
  29994. }
  29995. }
  29996. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, canChange bool,
  29997. d *Decoder) (_ map[int8]int64, 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, 9)
  30002. v = make(map[int8]int64, xlen)
  30003. changed = true
  30004. }
  30005. if containerLen == 0 {
  30006. dd.ReadMapEnd()
  30007. return v, changed
  30008. }
  30009. var mk int8
  30010. var mv int64
  30011. hasLen := containerLen > 0
  30012. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30013. if esep {
  30014. dd.ReadMapElemKey()
  30015. }
  30016. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  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.DecodeInt64()
  30030. if v != nil {
  30031. v[mk] = mv
  30032. }
  30033. }
  30034. dd.ReadMapEnd()
  30035. return v, changed
  30036. }
  30037. func (d *Decoder) fastpathDecMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  30038. if rv.Kind() == reflect.Ptr {
  30039. vp := rv2i(rv).(*map[int8]float32)
  30040. v, changed := fastpathTV.DecMapInt8Float32V(*vp, true, d)
  30041. if changed {
  30042. *vp = v
  30043. }
  30044. } else {
  30045. fastpathTV.DecMapInt8Float32V(rv2i(rv).(map[int8]float32), false, d)
  30046. }
  30047. }
  30048. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, d *Decoder) {
  30049. v, changed := f.DecMapInt8Float32V(*vp, true, d)
  30050. if changed {
  30051. *vp = v
  30052. }
  30053. }
  30054. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, canChange bool,
  30055. d *Decoder) (_ map[int8]float32, 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, 5)
  30060. v = make(map[int8]float32, xlen)
  30061. changed = true
  30062. }
  30063. if containerLen == 0 {
  30064. dd.ReadMapEnd()
  30065. return v, changed
  30066. }
  30067. var mk int8
  30068. var mv float32
  30069. hasLen := containerLen > 0
  30070. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30071. if esep {
  30072. dd.ReadMapElemKey()
  30073. }
  30074. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  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 = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  30088. if v != nil {
  30089. v[mk] = mv
  30090. }
  30091. }
  30092. dd.ReadMapEnd()
  30093. return v, changed
  30094. }
  30095. func (d *Decoder) fastpathDecMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  30096. if rv.Kind() == reflect.Ptr {
  30097. vp := rv2i(rv).(*map[int8]float64)
  30098. v, changed := fastpathTV.DecMapInt8Float64V(*vp, true, d)
  30099. if changed {
  30100. *vp = v
  30101. }
  30102. } else {
  30103. fastpathTV.DecMapInt8Float64V(rv2i(rv).(map[int8]float64), false, d)
  30104. }
  30105. }
  30106. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, d *Decoder) {
  30107. v, changed := f.DecMapInt8Float64V(*vp, true, d)
  30108. if changed {
  30109. *vp = v
  30110. }
  30111. }
  30112. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, canChange bool,
  30113. d *Decoder) (_ map[int8]float64, 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, 9)
  30118. v = make(map[int8]float64, xlen)
  30119. changed = true
  30120. }
  30121. if containerLen == 0 {
  30122. dd.ReadMapEnd()
  30123. return v, changed
  30124. }
  30125. var mk int8
  30126. var mv float64
  30127. hasLen := containerLen > 0
  30128. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30129. if esep {
  30130. dd.ReadMapElemKey()
  30131. }
  30132. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  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 = dd.DecodeFloat64()
  30146. if v != nil {
  30147. v[mk] = mv
  30148. }
  30149. }
  30150. dd.ReadMapEnd()
  30151. return v, changed
  30152. }
  30153. func (d *Decoder) fastpathDecMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  30154. if rv.Kind() == reflect.Ptr {
  30155. vp := rv2i(rv).(*map[int8]bool)
  30156. v, changed := fastpathTV.DecMapInt8BoolV(*vp, true, d)
  30157. if changed {
  30158. *vp = v
  30159. }
  30160. } else {
  30161. fastpathTV.DecMapInt8BoolV(rv2i(rv).(map[int8]bool), false, d)
  30162. }
  30163. }
  30164. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, d *Decoder) {
  30165. v, changed := f.DecMapInt8BoolV(*vp, true, d)
  30166. if changed {
  30167. *vp = v
  30168. }
  30169. }
  30170. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, canChange bool,
  30171. d *Decoder) (_ map[int8]bool, 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, 2)
  30176. v = make(map[int8]bool, xlen)
  30177. changed = true
  30178. }
  30179. if containerLen == 0 {
  30180. dd.ReadMapEnd()
  30181. return v, changed
  30182. }
  30183. var mk int8
  30184. var mv bool
  30185. hasLen := containerLen > 0
  30186. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30187. if esep {
  30188. dd.ReadMapElemKey()
  30189. }
  30190. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30191. if esep {
  30192. dd.ReadMapElemValue()
  30193. }
  30194. if dd.TryDecodeAsNil() {
  30195. if v == nil {
  30196. } else if d.h.DeleteOnNilMapValue {
  30197. delete(v, mk)
  30198. } else {
  30199. v[mk] = false
  30200. }
  30201. continue
  30202. }
  30203. mv = dd.DecodeBool()
  30204. if v != nil {
  30205. v[mk] = mv
  30206. }
  30207. }
  30208. dd.ReadMapEnd()
  30209. return v, changed
  30210. }
  30211. func (d *Decoder) fastpathDecMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  30212. if rv.Kind() == reflect.Ptr {
  30213. vp := rv2i(rv).(*map[int16]interface{})
  30214. v, changed := fastpathTV.DecMapInt16IntfV(*vp, true, d)
  30215. if changed {
  30216. *vp = v
  30217. }
  30218. } else {
  30219. fastpathTV.DecMapInt16IntfV(rv2i(rv).(map[int16]interface{}), false, d)
  30220. }
  30221. }
  30222. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, d *Decoder) {
  30223. v, changed := f.DecMapInt16IntfV(*vp, true, d)
  30224. if changed {
  30225. *vp = v
  30226. }
  30227. }
  30228. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, canChange bool,
  30229. d *Decoder) (_ map[int16]interface{}, 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, 18)
  30234. v = make(map[int16]interface{}, xlen)
  30235. changed = true
  30236. }
  30237. if containerLen == 0 {
  30238. dd.ReadMapEnd()
  30239. return v, changed
  30240. }
  30241. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  30242. var mk int16
  30243. var mv interface{}
  30244. hasLen := containerLen > 0
  30245. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30246. if esep {
  30247. dd.ReadMapElemKey()
  30248. }
  30249. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30250. if esep {
  30251. dd.ReadMapElemValue()
  30252. }
  30253. if dd.TryDecodeAsNil() {
  30254. if v == nil {
  30255. } else if d.h.DeleteOnNilMapValue {
  30256. delete(v, mk)
  30257. } else {
  30258. v[mk] = nil
  30259. }
  30260. continue
  30261. }
  30262. if mapGet {
  30263. mv = v[mk]
  30264. } else {
  30265. mv = nil
  30266. }
  30267. d.decode(&mv)
  30268. if v != nil {
  30269. v[mk] = mv
  30270. }
  30271. }
  30272. dd.ReadMapEnd()
  30273. return v, changed
  30274. }
  30275. func (d *Decoder) fastpathDecMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  30276. if rv.Kind() == reflect.Ptr {
  30277. vp := rv2i(rv).(*map[int16]string)
  30278. v, changed := fastpathTV.DecMapInt16StringV(*vp, true, d)
  30279. if changed {
  30280. *vp = v
  30281. }
  30282. } else {
  30283. fastpathTV.DecMapInt16StringV(rv2i(rv).(map[int16]string), false, d)
  30284. }
  30285. }
  30286. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, d *Decoder) {
  30287. v, changed := f.DecMapInt16StringV(*vp, true, d)
  30288. if changed {
  30289. *vp = v
  30290. }
  30291. }
  30292. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, canChange bool,
  30293. d *Decoder) (_ map[int16]string, changed bool) {
  30294. dd, esep := d.d, d.hh.hasElemSeparators()
  30295. containerLen := dd.ReadMapStart()
  30296. if canChange && v == nil {
  30297. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  30298. v = make(map[int16]string, xlen)
  30299. changed = true
  30300. }
  30301. if containerLen == 0 {
  30302. dd.ReadMapEnd()
  30303. return v, changed
  30304. }
  30305. var mk int16
  30306. var mv string
  30307. hasLen := containerLen > 0
  30308. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30309. if esep {
  30310. dd.ReadMapElemKey()
  30311. }
  30312. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30313. if esep {
  30314. dd.ReadMapElemValue()
  30315. }
  30316. if dd.TryDecodeAsNil() {
  30317. if v == nil {
  30318. } else if d.h.DeleteOnNilMapValue {
  30319. delete(v, mk)
  30320. } else {
  30321. v[mk] = ""
  30322. }
  30323. continue
  30324. }
  30325. mv = dd.DecodeString()
  30326. if v != nil {
  30327. v[mk] = mv
  30328. }
  30329. }
  30330. dd.ReadMapEnd()
  30331. return v, changed
  30332. }
  30333. func (d *Decoder) fastpathDecMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  30334. if rv.Kind() == reflect.Ptr {
  30335. vp := rv2i(rv).(*map[int16]uint)
  30336. v, changed := fastpathTV.DecMapInt16UintV(*vp, true, d)
  30337. if changed {
  30338. *vp = v
  30339. }
  30340. } else {
  30341. fastpathTV.DecMapInt16UintV(rv2i(rv).(map[int16]uint), false, d)
  30342. }
  30343. }
  30344. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, d *Decoder) {
  30345. v, changed := f.DecMapInt16UintV(*vp, true, d)
  30346. if changed {
  30347. *vp = v
  30348. }
  30349. }
  30350. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, canChange bool,
  30351. d *Decoder) (_ map[int16]uint, changed bool) {
  30352. dd, esep := d.d, d.hh.hasElemSeparators()
  30353. containerLen := dd.ReadMapStart()
  30354. if canChange && v == nil {
  30355. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30356. v = make(map[int16]uint, xlen)
  30357. changed = true
  30358. }
  30359. if containerLen == 0 {
  30360. dd.ReadMapEnd()
  30361. return v, changed
  30362. }
  30363. var mk int16
  30364. var mv uint
  30365. hasLen := containerLen > 0
  30366. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30367. if esep {
  30368. dd.ReadMapElemKey()
  30369. }
  30370. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30371. if esep {
  30372. dd.ReadMapElemValue()
  30373. }
  30374. if dd.TryDecodeAsNil() {
  30375. if v == nil {
  30376. } else if d.h.DeleteOnNilMapValue {
  30377. delete(v, mk)
  30378. } else {
  30379. v[mk] = 0
  30380. }
  30381. continue
  30382. }
  30383. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  30384. if v != nil {
  30385. v[mk] = mv
  30386. }
  30387. }
  30388. dd.ReadMapEnd()
  30389. return v, changed
  30390. }
  30391. func (d *Decoder) fastpathDecMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  30392. if rv.Kind() == reflect.Ptr {
  30393. vp := rv2i(rv).(*map[int16]uint8)
  30394. v, changed := fastpathTV.DecMapInt16Uint8V(*vp, true, d)
  30395. if changed {
  30396. *vp = v
  30397. }
  30398. } else {
  30399. fastpathTV.DecMapInt16Uint8V(rv2i(rv).(map[int16]uint8), false, d)
  30400. }
  30401. }
  30402. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, d *Decoder) {
  30403. v, changed := f.DecMapInt16Uint8V(*vp, true, d)
  30404. if changed {
  30405. *vp = v
  30406. }
  30407. }
  30408. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, canChange bool,
  30409. d *Decoder) (_ map[int16]uint8, changed bool) {
  30410. dd, esep := d.d, d.hh.hasElemSeparators()
  30411. containerLen := dd.ReadMapStart()
  30412. if canChange && v == nil {
  30413. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30414. v = make(map[int16]uint8, xlen)
  30415. changed = true
  30416. }
  30417. if containerLen == 0 {
  30418. dd.ReadMapEnd()
  30419. return v, changed
  30420. }
  30421. var mk int16
  30422. var mv uint8
  30423. hasLen := containerLen > 0
  30424. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30425. if esep {
  30426. dd.ReadMapElemKey()
  30427. }
  30428. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30429. if esep {
  30430. dd.ReadMapElemValue()
  30431. }
  30432. if dd.TryDecodeAsNil() {
  30433. if v == nil {
  30434. } else if d.h.DeleteOnNilMapValue {
  30435. delete(v, mk)
  30436. } else {
  30437. v[mk] = 0
  30438. }
  30439. continue
  30440. }
  30441. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  30442. if v != nil {
  30443. v[mk] = mv
  30444. }
  30445. }
  30446. dd.ReadMapEnd()
  30447. return v, changed
  30448. }
  30449. func (d *Decoder) fastpathDecMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  30450. if rv.Kind() == reflect.Ptr {
  30451. vp := rv2i(rv).(*map[int16]uint16)
  30452. v, changed := fastpathTV.DecMapInt16Uint16V(*vp, true, d)
  30453. if changed {
  30454. *vp = v
  30455. }
  30456. } else {
  30457. fastpathTV.DecMapInt16Uint16V(rv2i(rv).(map[int16]uint16), false, d)
  30458. }
  30459. }
  30460. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, d *Decoder) {
  30461. v, changed := f.DecMapInt16Uint16V(*vp, true, d)
  30462. if changed {
  30463. *vp = v
  30464. }
  30465. }
  30466. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, canChange bool,
  30467. d *Decoder) (_ map[int16]uint16, changed bool) {
  30468. dd, esep := d.d, d.hh.hasElemSeparators()
  30469. containerLen := dd.ReadMapStart()
  30470. if canChange && v == nil {
  30471. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  30472. v = make(map[int16]uint16, xlen)
  30473. changed = true
  30474. }
  30475. if containerLen == 0 {
  30476. dd.ReadMapEnd()
  30477. return v, changed
  30478. }
  30479. var mk int16
  30480. var mv uint16
  30481. hasLen := containerLen > 0
  30482. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30483. if esep {
  30484. dd.ReadMapElemKey()
  30485. }
  30486. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30487. if esep {
  30488. dd.ReadMapElemValue()
  30489. }
  30490. if dd.TryDecodeAsNil() {
  30491. if v == nil {
  30492. } else if d.h.DeleteOnNilMapValue {
  30493. delete(v, mk)
  30494. } else {
  30495. v[mk] = 0
  30496. }
  30497. continue
  30498. }
  30499. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  30500. if v != nil {
  30501. v[mk] = mv
  30502. }
  30503. }
  30504. dd.ReadMapEnd()
  30505. return v, changed
  30506. }
  30507. func (d *Decoder) fastpathDecMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  30508. if rv.Kind() == reflect.Ptr {
  30509. vp := rv2i(rv).(*map[int16]uint32)
  30510. v, changed := fastpathTV.DecMapInt16Uint32V(*vp, true, d)
  30511. if changed {
  30512. *vp = v
  30513. }
  30514. } else {
  30515. fastpathTV.DecMapInt16Uint32V(rv2i(rv).(map[int16]uint32), false, d)
  30516. }
  30517. }
  30518. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, d *Decoder) {
  30519. v, changed := f.DecMapInt16Uint32V(*vp, true, d)
  30520. if changed {
  30521. *vp = v
  30522. }
  30523. }
  30524. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, canChange bool,
  30525. d *Decoder) (_ map[int16]uint32, changed bool) {
  30526. dd, esep := d.d, d.hh.hasElemSeparators()
  30527. containerLen := dd.ReadMapStart()
  30528. if canChange && v == nil {
  30529. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  30530. v = make(map[int16]uint32, xlen)
  30531. changed = true
  30532. }
  30533. if containerLen == 0 {
  30534. dd.ReadMapEnd()
  30535. return v, changed
  30536. }
  30537. var mk int16
  30538. var mv uint32
  30539. hasLen := containerLen > 0
  30540. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30541. if esep {
  30542. dd.ReadMapElemKey()
  30543. }
  30544. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30545. if esep {
  30546. dd.ReadMapElemValue()
  30547. }
  30548. if dd.TryDecodeAsNil() {
  30549. if v == nil {
  30550. } else if d.h.DeleteOnNilMapValue {
  30551. delete(v, mk)
  30552. } else {
  30553. v[mk] = 0
  30554. }
  30555. continue
  30556. }
  30557. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  30558. if v != nil {
  30559. v[mk] = mv
  30560. }
  30561. }
  30562. dd.ReadMapEnd()
  30563. return v, changed
  30564. }
  30565. func (d *Decoder) fastpathDecMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  30566. if rv.Kind() == reflect.Ptr {
  30567. vp := rv2i(rv).(*map[int16]uint64)
  30568. v, changed := fastpathTV.DecMapInt16Uint64V(*vp, true, d)
  30569. if changed {
  30570. *vp = v
  30571. }
  30572. } else {
  30573. fastpathTV.DecMapInt16Uint64V(rv2i(rv).(map[int16]uint64), false, d)
  30574. }
  30575. }
  30576. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, d *Decoder) {
  30577. v, changed := f.DecMapInt16Uint64V(*vp, true, d)
  30578. if changed {
  30579. *vp = v
  30580. }
  30581. }
  30582. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, canChange bool,
  30583. d *Decoder) (_ map[int16]uint64, changed bool) {
  30584. dd, esep := d.d, d.hh.hasElemSeparators()
  30585. containerLen := dd.ReadMapStart()
  30586. if canChange && v == nil {
  30587. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30588. v = make(map[int16]uint64, xlen)
  30589. changed = true
  30590. }
  30591. if containerLen == 0 {
  30592. dd.ReadMapEnd()
  30593. return v, changed
  30594. }
  30595. var mk int16
  30596. var mv uint64
  30597. hasLen := containerLen > 0
  30598. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30599. if esep {
  30600. dd.ReadMapElemKey()
  30601. }
  30602. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30603. if esep {
  30604. dd.ReadMapElemValue()
  30605. }
  30606. if dd.TryDecodeAsNil() {
  30607. if v == nil {
  30608. } else if d.h.DeleteOnNilMapValue {
  30609. delete(v, mk)
  30610. } else {
  30611. v[mk] = 0
  30612. }
  30613. continue
  30614. }
  30615. mv = dd.DecodeUint64()
  30616. if v != nil {
  30617. v[mk] = mv
  30618. }
  30619. }
  30620. dd.ReadMapEnd()
  30621. return v, changed
  30622. }
  30623. func (d *Decoder) fastpathDecMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  30624. if rv.Kind() == reflect.Ptr {
  30625. vp := rv2i(rv).(*map[int16]uintptr)
  30626. v, changed := fastpathTV.DecMapInt16UintptrV(*vp, true, d)
  30627. if changed {
  30628. *vp = v
  30629. }
  30630. } else {
  30631. fastpathTV.DecMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), false, d)
  30632. }
  30633. }
  30634. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, d *Decoder) {
  30635. v, changed := f.DecMapInt16UintptrV(*vp, true, d)
  30636. if changed {
  30637. *vp = v
  30638. }
  30639. }
  30640. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, canChange bool,
  30641. d *Decoder) (_ map[int16]uintptr, 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, 10)
  30646. v = make(map[int16]uintptr, xlen)
  30647. changed = true
  30648. }
  30649. if containerLen == 0 {
  30650. dd.ReadMapEnd()
  30651. return v, changed
  30652. }
  30653. var mk int16
  30654. var mv uintptr
  30655. hasLen := containerLen > 0
  30656. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30657. if esep {
  30658. dd.ReadMapElemKey()
  30659. }
  30660. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  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] = 0
  30670. }
  30671. continue
  30672. }
  30673. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  30674. if v != nil {
  30675. v[mk] = mv
  30676. }
  30677. }
  30678. dd.ReadMapEnd()
  30679. return v, changed
  30680. }
  30681. func (d *Decoder) fastpathDecMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  30682. if rv.Kind() == reflect.Ptr {
  30683. vp := rv2i(rv).(*map[int16]int)
  30684. v, changed := fastpathTV.DecMapInt16IntV(*vp, true, d)
  30685. if changed {
  30686. *vp = v
  30687. }
  30688. } else {
  30689. fastpathTV.DecMapInt16IntV(rv2i(rv).(map[int16]int), false, d)
  30690. }
  30691. }
  30692. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, d *Decoder) {
  30693. v, changed := f.DecMapInt16IntV(*vp, true, d)
  30694. if changed {
  30695. *vp = v
  30696. }
  30697. }
  30698. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, canChange bool,
  30699. d *Decoder) (_ map[int16]int, 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, 10)
  30704. v = make(map[int16]int, xlen)
  30705. changed = true
  30706. }
  30707. if containerLen == 0 {
  30708. dd.ReadMapEnd()
  30709. return v, changed
  30710. }
  30711. var mk int16
  30712. var mv int
  30713. hasLen := containerLen > 0
  30714. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30715. if esep {
  30716. dd.ReadMapElemKey()
  30717. }
  30718. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30719. if esep {
  30720. dd.ReadMapElemValue()
  30721. }
  30722. if dd.TryDecodeAsNil() {
  30723. if v == nil {
  30724. } else if d.h.DeleteOnNilMapValue {
  30725. delete(v, mk)
  30726. } else {
  30727. v[mk] = 0
  30728. }
  30729. continue
  30730. }
  30731. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  30732. if v != nil {
  30733. v[mk] = mv
  30734. }
  30735. }
  30736. dd.ReadMapEnd()
  30737. return v, changed
  30738. }
  30739. func (d *Decoder) fastpathDecMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  30740. if rv.Kind() == reflect.Ptr {
  30741. vp := rv2i(rv).(*map[int16]int8)
  30742. v, changed := fastpathTV.DecMapInt16Int8V(*vp, true, d)
  30743. if changed {
  30744. *vp = v
  30745. }
  30746. } else {
  30747. fastpathTV.DecMapInt16Int8V(rv2i(rv).(map[int16]int8), false, d)
  30748. }
  30749. }
  30750. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, d *Decoder) {
  30751. v, changed := f.DecMapInt16Int8V(*vp, true, d)
  30752. if changed {
  30753. *vp = v
  30754. }
  30755. }
  30756. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, canChange bool,
  30757. d *Decoder) (_ map[int16]int8, 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, 3)
  30762. v = make(map[int16]int8, xlen)
  30763. changed = true
  30764. }
  30765. if containerLen == 0 {
  30766. dd.ReadMapEnd()
  30767. return v, changed
  30768. }
  30769. var mk int16
  30770. var mv int8
  30771. hasLen := containerLen > 0
  30772. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30773. if esep {
  30774. dd.ReadMapElemKey()
  30775. }
  30776. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  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 = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30790. if v != nil {
  30791. v[mk] = mv
  30792. }
  30793. }
  30794. dd.ReadMapEnd()
  30795. return v, changed
  30796. }
  30797. func (d *Decoder) fastpathDecMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  30798. if rv.Kind() == reflect.Ptr {
  30799. vp := rv2i(rv).(*map[int16]int16)
  30800. v, changed := fastpathTV.DecMapInt16Int16V(*vp, true, d)
  30801. if changed {
  30802. *vp = v
  30803. }
  30804. } else {
  30805. fastpathTV.DecMapInt16Int16V(rv2i(rv).(map[int16]int16), false, d)
  30806. }
  30807. }
  30808. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, d *Decoder) {
  30809. v, changed := f.DecMapInt16Int16V(*vp, true, d)
  30810. if changed {
  30811. *vp = v
  30812. }
  30813. }
  30814. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, canChange bool,
  30815. d *Decoder) (_ map[int16]int16, 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, 4)
  30820. v = make(map[int16]int16, xlen)
  30821. changed = true
  30822. }
  30823. if containerLen == 0 {
  30824. dd.ReadMapEnd()
  30825. return v, changed
  30826. }
  30827. var mk int16
  30828. var mv int16
  30829. hasLen := containerLen > 0
  30830. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30831. if esep {
  30832. dd.ReadMapElemKey()
  30833. }
  30834. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  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 = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30848. if v != nil {
  30849. v[mk] = mv
  30850. }
  30851. }
  30852. dd.ReadMapEnd()
  30853. return v, changed
  30854. }
  30855. func (d *Decoder) fastpathDecMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  30856. if rv.Kind() == reflect.Ptr {
  30857. vp := rv2i(rv).(*map[int16]int32)
  30858. v, changed := fastpathTV.DecMapInt16Int32V(*vp, true, d)
  30859. if changed {
  30860. *vp = v
  30861. }
  30862. } else {
  30863. fastpathTV.DecMapInt16Int32V(rv2i(rv).(map[int16]int32), false, d)
  30864. }
  30865. }
  30866. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, d *Decoder) {
  30867. v, changed := f.DecMapInt16Int32V(*vp, true, d)
  30868. if changed {
  30869. *vp = v
  30870. }
  30871. }
  30872. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, canChange bool,
  30873. d *Decoder) (_ map[int16]int32, 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, 6)
  30878. v = make(map[int16]int32, xlen)
  30879. changed = true
  30880. }
  30881. if containerLen == 0 {
  30882. dd.ReadMapEnd()
  30883. return v, changed
  30884. }
  30885. var mk int16
  30886. var mv int32
  30887. hasLen := containerLen > 0
  30888. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30889. if esep {
  30890. dd.ReadMapElemKey()
  30891. }
  30892. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  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 = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30906. if v != nil {
  30907. v[mk] = mv
  30908. }
  30909. }
  30910. dd.ReadMapEnd()
  30911. return v, changed
  30912. }
  30913. func (d *Decoder) fastpathDecMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  30914. if rv.Kind() == reflect.Ptr {
  30915. vp := rv2i(rv).(*map[int16]int64)
  30916. v, changed := fastpathTV.DecMapInt16Int64V(*vp, true, d)
  30917. if changed {
  30918. *vp = v
  30919. }
  30920. } else {
  30921. fastpathTV.DecMapInt16Int64V(rv2i(rv).(map[int16]int64), false, d)
  30922. }
  30923. }
  30924. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, d *Decoder) {
  30925. v, changed := f.DecMapInt16Int64V(*vp, true, d)
  30926. if changed {
  30927. *vp = v
  30928. }
  30929. }
  30930. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, canChange bool,
  30931. d *Decoder) (_ map[int16]int64, 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, 10)
  30936. v = make(map[int16]int64, xlen)
  30937. changed = true
  30938. }
  30939. if containerLen == 0 {
  30940. dd.ReadMapEnd()
  30941. return v, changed
  30942. }
  30943. var mk int16
  30944. var mv int64
  30945. hasLen := containerLen > 0
  30946. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30947. if esep {
  30948. dd.ReadMapElemKey()
  30949. }
  30950. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  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.DecodeInt64()
  30964. if v != nil {
  30965. v[mk] = mv
  30966. }
  30967. }
  30968. dd.ReadMapEnd()
  30969. return v, changed
  30970. }
  30971. func (d *Decoder) fastpathDecMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  30972. if rv.Kind() == reflect.Ptr {
  30973. vp := rv2i(rv).(*map[int16]float32)
  30974. v, changed := fastpathTV.DecMapInt16Float32V(*vp, true, d)
  30975. if changed {
  30976. *vp = v
  30977. }
  30978. } else {
  30979. fastpathTV.DecMapInt16Float32V(rv2i(rv).(map[int16]float32), false, d)
  30980. }
  30981. }
  30982. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, d *Decoder) {
  30983. v, changed := f.DecMapInt16Float32V(*vp, true, d)
  30984. if changed {
  30985. *vp = v
  30986. }
  30987. }
  30988. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, canChange bool,
  30989. d *Decoder) (_ map[int16]float32, 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, 6)
  30994. v = make(map[int16]float32, xlen)
  30995. changed = true
  30996. }
  30997. if containerLen == 0 {
  30998. dd.ReadMapEnd()
  30999. return v, changed
  31000. }
  31001. var mk int16
  31002. var mv float32
  31003. hasLen := containerLen > 0
  31004. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31005. if esep {
  31006. dd.ReadMapElemKey()
  31007. }
  31008. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  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 = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  31022. if v != nil {
  31023. v[mk] = mv
  31024. }
  31025. }
  31026. dd.ReadMapEnd()
  31027. return v, changed
  31028. }
  31029. func (d *Decoder) fastpathDecMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  31030. if rv.Kind() == reflect.Ptr {
  31031. vp := rv2i(rv).(*map[int16]float64)
  31032. v, changed := fastpathTV.DecMapInt16Float64V(*vp, true, d)
  31033. if changed {
  31034. *vp = v
  31035. }
  31036. } else {
  31037. fastpathTV.DecMapInt16Float64V(rv2i(rv).(map[int16]float64), false, d)
  31038. }
  31039. }
  31040. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, d *Decoder) {
  31041. v, changed := f.DecMapInt16Float64V(*vp, true, d)
  31042. if changed {
  31043. *vp = v
  31044. }
  31045. }
  31046. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, canChange bool,
  31047. d *Decoder) (_ map[int16]float64, 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, 10)
  31052. v = make(map[int16]float64, xlen)
  31053. changed = true
  31054. }
  31055. if containerLen == 0 {
  31056. dd.ReadMapEnd()
  31057. return v, changed
  31058. }
  31059. var mk int16
  31060. var mv float64
  31061. hasLen := containerLen > 0
  31062. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31063. if esep {
  31064. dd.ReadMapElemKey()
  31065. }
  31066. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  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 = dd.DecodeFloat64()
  31080. if v != nil {
  31081. v[mk] = mv
  31082. }
  31083. }
  31084. dd.ReadMapEnd()
  31085. return v, changed
  31086. }
  31087. func (d *Decoder) fastpathDecMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  31088. if rv.Kind() == reflect.Ptr {
  31089. vp := rv2i(rv).(*map[int16]bool)
  31090. v, changed := fastpathTV.DecMapInt16BoolV(*vp, true, d)
  31091. if changed {
  31092. *vp = v
  31093. }
  31094. } else {
  31095. fastpathTV.DecMapInt16BoolV(rv2i(rv).(map[int16]bool), false, d)
  31096. }
  31097. }
  31098. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, d *Decoder) {
  31099. v, changed := f.DecMapInt16BoolV(*vp, true, d)
  31100. if changed {
  31101. *vp = v
  31102. }
  31103. }
  31104. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, canChange bool,
  31105. d *Decoder) (_ map[int16]bool, 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, 3)
  31110. v = make(map[int16]bool, xlen)
  31111. changed = true
  31112. }
  31113. if containerLen == 0 {
  31114. dd.ReadMapEnd()
  31115. return v, changed
  31116. }
  31117. var mk int16
  31118. var mv bool
  31119. hasLen := containerLen > 0
  31120. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31121. if esep {
  31122. dd.ReadMapElemKey()
  31123. }
  31124. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  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] = false
  31134. }
  31135. continue
  31136. }
  31137. mv = dd.DecodeBool()
  31138. if v != nil {
  31139. v[mk] = mv
  31140. }
  31141. }
  31142. dd.ReadMapEnd()
  31143. return v, changed
  31144. }
  31145. func (d *Decoder) fastpathDecMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  31146. if rv.Kind() == reflect.Ptr {
  31147. vp := rv2i(rv).(*map[int32]interface{})
  31148. v, changed := fastpathTV.DecMapInt32IntfV(*vp, true, d)
  31149. if changed {
  31150. *vp = v
  31151. }
  31152. } else {
  31153. fastpathTV.DecMapInt32IntfV(rv2i(rv).(map[int32]interface{}), false, d)
  31154. }
  31155. }
  31156. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, d *Decoder) {
  31157. v, changed := f.DecMapInt32IntfV(*vp, true, d)
  31158. if changed {
  31159. *vp = v
  31160. }
  31161. }
  31162. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, canChange bool,
  31163. d *Decoder) (_ map[int32]interface{}, 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, 20)
  31168. v = make(map[int32]interface{}, xlen)
  31169. changed = true
  31170. }
  31171. if containerLen == 0 {
  31172. dd.ReadMapEnd()
  31173. return v, changed
  31174. }
  31175. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  31176. var mk int32
  31177. var mv interface{}
  31178. hasLen := containerLen > 0
  31179. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31180. if esep {
  31181. dd.ReadMapElemKey()
  31182. }
  31183. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31184. if esep {
  31185. dd.ReadMapElemValue()
  31186. }
  31187. if dd.TryDecodeAsNil() {
  31188. if v == nil {
  31189. } else if d.h.DeleteOnNilMapValue {
  31190. delete(v, mk)
  31191. } else {
  31192. v[mk] = nil
  31193. }
  31194. continue
  31195. }
  31196. if mapGet {
  31197. mv = v[mk]
  31198. } else {
  31199. mv = nil
  31200. }
  31201. d.decode(&mv)
  31202. if v != nil {
  31203. v[mk] = mv
  31204. }
  31205. }
  31206. dd.ReadMapEnd()
  31207. return v, changed
  31208. }
  31209. func (d *Decoder) fastpathDecMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  31210. if rv.Kind() == reflect.Ptr {
  31211. vp := rv2i(rv).(*map[int32]string)
  31212. v, changed := fastpathTV.DecMapInt32StringV(*vp, true, d)
  31213. if changed {
  31214. *vp = v
  31215. }
  31216. } else {
  31217. fastpathTV.DecMapInt32StringV(rv2i(rv).(map[int32]string), false, d)
  31218. }
  31219. }
  31220. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, d *Decoder) {
  31221. v, changed := f.DecMapInt32StringV(*vp, true, d)
  31222. if changed {
  31223. *vp = v
  31224. }
  31225. }
  31226. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, canChange bool,
  31227. d *Decoder) (_ map[int32]string, changed bool) {
  31228. dd, esep := d.d, d.hh.hasElemSeparators()
  31229. containerLen := dd.ReadMapStart()
  31230. if canChange && v == nil {
  31231. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  31232. v = make(map[int32]string, xlen)
  31233. changed = true
  31234. }
  31235. if containerLen == 0 {
  31236. dd.ReadMapEnd()
  31237. return v, changed
  31238. }
  31239. var mk int32
  31240. var mv string
  31241. hasLen := containerLen > 0
  31242. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31243. if esep {
  31244. dd.ReadMapElemKey()
  31245. }
  31246. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31247. if esep {
  31248. dd.ReadMapElemValue()
  31249. }
  31250. if dd.TryDecodeAsNil() {
  31251. if v == nil {
  31252. } else if d.h.DeleteOnNilMapValue {
  31253. delete(v, mk)
  31254. } else {
  31255. v[mk] = ""
  31256. }
  31257. continue
  31258. }
  31259. mv = dd.DecodeString()
  31260. if v != nil {
  31261. v[mk] = mv
  31262. }
  31263. }
  31264. dd.ReadMapEnd()
  31265. return v, changed
  31266. }
  31267. func (d *Decoder) fastpathDecMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  31268. if rv.Kind() == reflect.Ptr {
  31269. vp := rv2i(rv).(*map[int32]uint)
  31270. v, changed := fastpathTV.DecMapInt32UintV(*vp, true, d)
  31271. if changed {
  31272. *vp = v
  31273. }
  31274. } else {
  31275. fastpathTV.DecMapInt32UintV(rv2i(rv).(map[int32]uint), false, d)
  31276. }
  31277. }
  31278. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, d *Decoder) {
  31279. v, changed := f.DecMapInt32UintV(*vp, true, d)
  31280. if changed {
  31281. *vp = v
  31282. }
  31283. }
  31284. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, canChange bool,
  31285. d *Decoder) (_ map[int32]uint, changed bool) {
  31286. dd, esep := d.d, d.hh.hasElemSeparators()
  31287. containerLen := dd.ReadMapStart()
  31288. if canChange && v == nil {
  31289. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31290. v = make(map[int32]uint, xlen)
  31291. changed = true
  31292. }
  31293. if containerLen == 0 {
  31294. dd.ReadMapEnd()
  31295. return v, changed
  31296. }
  31297. var mk int32
  31298. var mv uint
  31299. hasLen := containerLen > 0
  31300. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31301. if esep {
  31302. dd.ReadMapElemKey()
  31303. }
  31304. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31305. if esep {
  31306. dd.ReadMapElemValue()
  31307. }
  31308. if dd.TryDecodeAsNil() {
  31309. if v == nil {
  31310. } else if d.h.DeleteOnNilMapValue {
  31311. delete(v, mk)
  31312. } else {
  31313. v[mk] = 0
  31314. }
  31315. continue
  31316. }
  31317. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  31318. if v != nil {
  31319. v[mk] = mv
  31320. }
  31321. }
  31322. dd.ReadMapEnd()
  31323. return v, changed
  31324. }
  31325. func (d *Decoder) fastpathDecMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  31326. if rv.Kind() == reflect.Ptr {
  31327. vp := rv2i(rv).(*map[int32]uint8)
  31328. v, changed := fastpathTV.DecMapInt32Uint8V(*vp, true, d)
  31329. if changed {
  31330. *vp = v
  31331. }
  31332. } else {
  31333. fastpathTV.DecMapInt32Uint8V(rv2i(rv).(map[int32]uint8), false, d)
  31334. }
  31335. }
  31336. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, d *Decoder) {
  31337. v, changed := f.DecMapInt32Uint8V(*vp, true, d)
  31338. if changed {
  31339. *vp = v
  31340. }
  31341. }
  31342. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, canChange bool,
  31343. d *Decoder) (_ map[int32]uint8, changed bool) {
  31344. dd, esep := d.d, d.hh.hasElemSeparators()
  31345. containerLen := dd.ReadMapStart()
  31346. if canChange && v == nil {
  31347. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  31348. v = make(map[int32]uint8, xlen)
  31349. changed = true
  31350. }
  31351. if containerLen == 0 {
  31352. dd.ReadMapEnd()
  31353. return v, changed
  31354. }
  31355. var mk int32
  31356. var mv uint8
  31357. hasLen := containerLen > 0
  31358. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31359. if esep {
  31360. dd.ReadMapElemKey()
  31361. }
  31362. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31363. if esep {
  31364. dd.ReadMapElemValue()
  31365. }
  31366. if dd.TryDecodeAsNil() {
  31367. if v == nil {
  31368. } else if d.h.DeleteOnNilMapValue {
  31369. delete(v, mk)
  31370. } else {
  31371. v[mk] = 0
  31372. }
  31373. continue
  31374. }
  31375. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  31376. if v != nil {
  31377. v[mk] = mv
  31378. }
  31379. }
  31380. dd.ReadMapEnd()
  31381. return v, changed
  31382. }
  31383. func (d *Decoder) fastpathDecMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  31384. if rv.Kind() == reflect.Ptr {
  31385. vp := rv2i(rv).(*map[int32]uint16)
  31386. v, changed := fastpathTV.DecMapInt32Uint16V(*vp, true, d)
  31387. if changed {
  31388. *vp = v
  31389. }
  31390. } else {
  31391. fastpathTV.DecMapInt32Uint16V(rv2i(rv).(map[int32]uint16), false, d)
  31392. }
  31393. }
  31394. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, d *Decoder) {
  31395. v, changed := f.DecMapInt32Uint16V(*vp, true, d)
  31396. if changed {
  31397. *vp = v
  31398. }
  31399. }
  31400. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, canChange bool,
  31401. d *Decoder) (_ map[int32]uint16, changed bool) {
  31402. dd, esep := d.d, d.hh.hasElemSeparators()
  31403. containerLen := dd.ReadMapStart()
  31404. if canChange && v == nil {
  31405. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31406. v = make(map[int32]uint16, xlen)
  31407. changed = true
  31408. }
  31409. if containerLen == 0 {
  31410. dd.ReadMapEnd()
  31411. return v, changed
  31412. }
  31413. var mk int32
  31414. var mv uint16
  31415. hasLen := containerLen > 0
  31416. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31417. if esep {
  31418. dd.ReadMapElemKey()
  31419. }
  31420. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31421. if esep {
  31422. dd.ReadMapElemValue()
  31423. }
  31424. if dd.TryDecodeAsNil() {
  31425. if v == nil {
  31426. } else if d.h.DeleteOnNilMapValue {
  31427. delete(v, mk)
  31428. } else {
  31429. v[mk] = 0
  31430. }
  31431. continue
  31432. }
  31433. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  31434. if v != nil {
  31435. v[mk] = mv
  31436. }
  31437. }
  31438. dd.ReadMapEnd()
  31439. return v, changed
  31440. }
  31441. func (d *Decoder) fastpathDecMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  31442. if rv.Kind() == reflect.Ptr {
  31443. vp := rv2i(rv).(*map[int32]uint32)
  31444. v, changed := fastpathTV.DecMapInt32Uint32V(*vp, true, d)
  31445. if changed {
  31446. *vp = v
  31447. }
  31448. } else {
  31449. fastpathTV.DecMapInt32Uint32V(rv2i(rv).(map[int32]uint32), false, d)
  31450. }
  31451. }
  31452. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, d *Decoder) {
  31453. v, changed := f.DecMapInt32Uint32V(*vp, true, d)
  31454. if changed {
  31455. *vp = v
  31456. }
  31457. }
  31458. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, canChange bool,
  31459. d *Decoder) (_ map[int32]uint32, changed bool) {
  31460. dd, esep := d.d, d.hh.hasElemSeparators()
  31461. containerLen := dd.ReadMapStart()
  31462. if canChange && v == nil {
  31463. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  31464. v = make(map[int32]uint32, xlen)
  31465. changed = true
  31466. }
  31467. if containerLen == 0 {
  31468. dd.ReadMapEnd()
  31469. return v, changed
  31470. }
  31471. var mk int32
  31472. var mv uint32
  31473. hasLen := containerLen > 0
  31474. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31475. if esep {
  31476. dd.ReadMapElemKey()
  31477. }
  31478. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31479. if esep {
  31480. dd.ReadMapElemValue()
  31481. }
  31482. if dd.TryDecodeAsNil() {
  31483. if v == nil {
  31484. } else if d.h.DeleteOnNilMapValue {
  31485. delete(v, mk)
  31486. } else {
  31487. v[mk] = 0
  31488. }
  31489. continue
  31490. }
  31491. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  31492. if v != nil {
  31493. v[mk] = mv
  31494. }
  31495. }
  31496. dd.ReadMapEnd()
  31497. return v, changed
  31498. }
  31499. func (d *Decoder) fastpathDecMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  31500. if rv.Kind() == reflect.Ptr {
  31501. vp := rv2i(rv).(*map[int32]uint64)
  31502. v, changed := fastpathTV.DecMapInt32Uint64V(*vp, true, d)
  31503. if changed {
  31504. *vp = v
  31505. }
  31506. } else {
  31507. fastpathTV.DecMapInt32Uint64V(rv2i(rv).(map[int32]uint64), false, d)
  31508. }
  31509. }
  31510. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, d *Decoder) {
  31511. v, changed := f.DecMapInt32Uint64V(*vp, true, d)
  31512. if changed {
  31513. *vp = v
  31514. }
  31515. }
  31516. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, canChange bool,
  31517. d *Decoder) (_ map[int32]uint64, changed bool) {
  31518. dd, esep := d.d, d.hh.hasElemSeparators()
  31519. containerLen := dd.ReadMapStart()
  31520. if canChange && v == nil {
  31521. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31522. v = make(map[int32]uint64, xlen)
  31523. changed = true
  31524. }
  31525. if containerLen == 0 {
  31526. dd.ReadMapEnd()
  31527. return v, changed
  31528. }
  31529. var mk int32
  31530. var mv uint64
  31531. hasLen := containerLen > 0
  31532. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31533. if esep {
  31534. dd.ReadMapElemKey()
  31535. }
  31536. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31537. if esep {
  31538. dd.ReadMapElemValue()
  31539. }
  31540. if dd.TryDecodeAsNil() {
  31541. if v == nil {
  31542. } else if d.h.DeleteOnNilMapValue {
  31543. delete(v, mk)
  31544. } else {
  31545. v[mk] = 0
  31546. }
  31547. continue
  31548. }
  31549. mv = dd.DecodeUint64()
  31550. if v != nil {
  31551. v[mk] = mv
  31552. }
  31553. }
  31554. dd.ReadMapEnd()
  31555. return v, changed
  31556. }
  31557. func (d *Decoder) fastpathDecMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  31558. if rv.Kind() == reflect.Ptr {
  31559. vp := rv2i(rv).(*map[int32]uintptr)
  31560. v, changed := fastpathTV.DecMapInt32UintptrV(*vp, true, d)
  31561. if changed {
  31562. *vp = v
  31563. }
  31564. } else {
  31565. fastpathTV.DecMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), false, d)
  31566. }
  31567. }
  31568. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, d *Decoder) {
  31569. v, changed := f.DecMapInt32UintptrV(*vp, true, d)
  31570. if changed {
  31571. *vp = v
  31572. }
  31573. }
  31574. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, canChange bool,
  31575. d *Decoder) (_ map[int32]uintptr, 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, 12)
  31580. v = make(map[int32]uintptr, xlen)
  31581. changed = true
  31582. }
  31583. if containerLen == 0 {
  31584. dd.ReadMapEnd()
  31585. return v, changed
  31586. }
  31587. var mk int32
  31588. var mv uintptr
  31589. hasLen := containerLen > 0
  31590. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31591. if esep {
  31592. dd.ReadMapElemKey()
  31593. }
  31594. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  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] = 0
  31604. }
  31605. continue
  31606. }
  31607. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  31608. if v != nil {
  31609. v[mk] = mv
  31610. }
  31611. }
  31612. dd.ReadMapEnd()
  31613. return v, changed
  31614. }
  31615. func (d *Decoder) fastpathDecMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  31616. if rv.Kind() == reflect.Ptr {
  31617. vp := rv2i(rv).(*map[int32]int)
  31618. v, changed := fastpathTV.DecMapInt32IntV(*vp, true, d)
  31619. if changed {
  31620. *vp = v
  31621. }
  31622. } else {
  31623. fastpathTV.DecMapInt32IntV(rv2i(rv).(map[int32]int), false, d)
  31624. }
  31625. }
  31626. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, d *Decoder) {
  31627. v, changed := f.DecMapInt32IntV(*vp, true, d)
  31628. if changed {
  31629. *vp = v
  31630. }
  31631. }
  31632. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, canChange bool,
  31633. d *Decoder) (_ map[int32]int, 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, 12)
  31638. v = make(map[int32]int, xlen)
  31639. changed = true
  31640. }
  31641. if containerLen == 0 {
  31642. dd.ReadMapEnd()
  31643. return v, changed
  31644. }
  31645. var mk int32
  31646. var mv int
  31647. hasLen := containerLen > 0
  31648. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31649. if esep {
  31650. dd.ReadMapElemKey()
  31651. }
  31652. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  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 = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  31666. if v != nil {
  31667. v[mk] = mv
  31668. }
  31669. }
  31670. dd.ReadMapEnd()
  31671. return v, changed
  31672. }
  31673. func (d *Decoder) fastpathDecMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  31674. if rv.Kind() == reflect.Ptr {
  31675. vp := rv2i(rv).(*map[int32]int8)
  31676. v, changed := fastpathTV.DecMapInt32Int8V(*vp, true, d)
  31677. if changed {
  31678. *vp = v
  31679. }
  31680. } else {
  31681. fastpathTV.DecMapInt32Int8V(rv2i(rv).(map[int32]int8), false, d)
  31682. }
  31683. }
  31684. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, d *Decoder) {
  31685. v, changed := f.DecMapInt32Int8V(*vp, true, d)
  31686. if changed {
  31687. *vp = v
  31688. }
  31689. }
  31690. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, canChange bool,
  31691. d *Decoder) (_ map[int32]int8, 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, 5)
  31696. v = make(map[int32]int8, xlen)
  31697. changed = true
  31698. }
  31699. if containerLen == 0 {
  31700. dd.ReadMapEnd()
  31701. return v, changed
  31702. }
  31703. var mk int32
  31704. var mv int8
  31705. hasLen := containerLen > 0
  31706. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31707. if esep {
  31708. dd.ReadMapElemKey()
  31709. }
  31710. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  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 = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  31724. if v != nil {
  31725. v[mk] = mv
  31726. }
  31727. }
  31728. dd.ReadMapEnd()
  31729. return v, changed
  31730. }
  31731. func (d *Decoder) fastpathDecMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  31732. if rv.Kind() == reflect.Ptr {
  31733. vp := rv2i(rv).(*map[int32]int16)
  31734. v, changed := fastpathTV.DecMapInt32Int16V(*vp, true, d)
  31735. if changed {
  31736. *vp = v
  31737. }
  31738. } else {
  31739. fastpathTV.DecMapInt32Int16V(rv2i(rv).(map[int32]int16), false, d)
  31740. }
  31741. }
  31742. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, d *Decoder) {
  31743. v, changed := f.DecMapInt32Int16V(*vp, true, d)
  31744. if changed {
  31745. *vp = v
  31746. }
  31747. }
  31748. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, canChange bool,
  31749. d *Decoder) (_ map[int32]int16, 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, 6)
  31754. v = make(map[int32]int16, xlen)
  31755. changed = true
  31756. }
  31757. if containerLen == 0 {
  31758. dd.ReadMapEnd()
  31759. return v, changed
  31760. }
  31761. var mk int32
  31762. var mv int16
  31763. hasLen := containerLen > 0
  31764. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31765. if esep {
  31766. dd.ReadMapElemKey()
  31767. }
  31768. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  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 = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31782. if v != nil {
  31783. v[mk] = mv
  31784. }
  31785. }
  31786. dd.ReadMapEnd()
  31787. return v, changed
  31788. }
  31789. func (d *Decoder) fastpathDecMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  31790. if rv.Kind() == reflect.Ptr {
  31791. vp := rv2i(rv).(*map[int32]int32)
  31792. v, changed := fastpathTV.DecMapInt32Int32V(*vp, true, d)
  31793. if changed {
  31794. *vp = v
  31795. }
  31796. } else {
  31797. fastpathTV.DecMapInt32Int32V(rv2i(rv).(map[int32]int32), false, d)
  31798. }
  31799. }
  31800. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, d *Decoder) {
  31801. v, changed := f.DecMapInt32Int32V(*vp, true, d)
  31802. if changed {
  31803. *vp = v
  31804. }
  31805. }
  31806. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, canChange bool,
  31807. d *Decoder) (_ map[int32]int32, 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, 8)
  31812. v = make(map[int32]int32, xlen)
  31813. changed = true
  31814. }
  31815. if containerLen == 0 {
  31816. dd.ReadMapEnd()
  31817. return v, changed
  31818. }
  31819. var mk int32
  31820. var mv int32
  31821. hasLen := containerLen > 0
  31822. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31823. if esep {
  31824. dd.ReadMapElemKey()
  31825. }
  31826. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  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 = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31840. if v != nil {
  31841. v[mk] = mv
  31842. }
  31843. }
  31844. dd.ReadMapEnd()
  31845. return v, changed
  31846. }
  31847. func (d *Decoder) fastpathDecMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  31848. if rv.Kind() == reflect.Ptr {
  31849. vp := rv2i(rv).(*map[int32]int64)
  31850. v, changed := fastpathTV.DecMapInt32Int64V(*vp, true, d)
  31851. if changed {
  31852. *vp = v
  31853. }
  31854. } else {
  31855. fastpathTV.DecMapInt32Int64V(rv2i(rv).(map[int32]int64), false, d)
  31856. }
  31857. }
  31858. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, d *Decoder) {
  31859. v, changed := f.DecMapInt32Int64V(*vp, true, d)
  31860. if changed {
  31861. *vp = v
  31862. }
  31863. }
  31864. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, canChange bool,
  31865. d *Decoder) (_ map[int32]int64, 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, 12)
  31870. v = make(map[int32]int64, xlen)
  31871. changed = true
  31872. }
  31873. if containerLen == 0 {
  31874. dd.ReadMapEnd()
  31875. return v, changed
  31876. }
  31877. var mk int32
  31878. var mv int64
  31879. hasLen := containerLen > 0
  31880. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31881. if esep {
  31882. dd.ReadMapElemKey()
  31883. }
  31884. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  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.DecodeInt64()
  31898. if v != nil {
  31899. v[mk] = mv
  31900. }
  31901. }
  31902. dd.ReadMapEnd()
  31903. return v, changed
  31904. }
  31905. func (d *Decoder) fastpathDecMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  31906. if rv.Kind() == reflect.Ptr {
  31907. vp := rv2i(rv).(*map[int32]float32)
  31908. v, changed := fastpathTV.DecMapInt32Float32V(*vp, true, d)
  31909. if changed {
  31910. *vp = v
  31911. }
  31912. } else {
  31913. fastpathTV.DecMapInt32Float32V(rv2i(rv).(map[int32]float32), false, d)
  31914. }
  31915. }
  31916. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, d *Decoder) {
  31917. v, changed := f.DecMapInt32Float32V(*vp, true, d)
  31918. if changed {
  31919. *vp = v
  31920. }
  31921. }
  31922. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, canChange bool,
  31923. d *Decoder) (_ map[int32]float32, 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, 8)
  31928. v = make(map[int32]float32, xlen)
  31929. changed = true
  31930. }
  31931. if containerLen == 0 {
  31932. dd.ReadMapEnd()
  31933. return v, changed
  31934. }
  31935. var mk int32
  31936. var mv float32
  31937. hasLen := containerLen > 0
  31938. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31939. if esep {
  31940. dd.ReadMapElemKey()
  31941. }
  31942. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31943. if esep {
  31944. dd.ReadMapElemValue()
  31945. }
  31946. if dd.TryDecodeAsNil() {
  31947. if v == nil {
  31948. } else if d.h.DeleteOnNilMapValue {
  31949. delete(v, mk)
  31950. } else {
  31951. v[mk] = 0
  31952. }
  31953. continue
  31954. }
  31955. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  31956. if v != nil {
  31957. v[mk] = mv
  31958. }
  31959. }
  31960. dd.ReadMapEnd()
  31961. return v, changed
  31962. }
  31963. func (d *Decoder) fastpathDecMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  31964. if rv.Kind() == reflect.Ptr {
  31965. vp := rv2i(rv).(*map[int32]float64)
  31966. v, changed := fastpathTV.DecMapInt32Float64V(*vp, true, d)
  31967. if changed {
  31968. *vp = v
  31969. }
  31970. } else {
  31971. fastpathTV.DecMapInt32Float64V(rv2i(rv).(map[int32]float64), false, d)
  31972. }
  31973. }
  31974. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, d *Decoder) {
  31975. v, changed := f.DecMapInt32Float64V(*vp, true, d)
  31976. if changed {
  31977. *vp = v
  31978. }
  31979. }
  31980. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, canChange bool,
  31981. d *Decoder) (_ map[int32]float64, changed bool) {
  31982. dd, esep := d.d, d.hh.hasElemSeparators()
  31983. containerLen := dd.ReadMapStart()
  31984. if canChange && v == nil {
  31985. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31986. v = make(map[int32]float64, xlen)
  31987. changed = true
  31988. }
  31989. if containerLen == 0 {
  31990. dd.ReadMapEnd()
  31991. return v, changed
  31992. }
  31993. var mk int32
  31994. var mv float64
  31995. hasLen := containerLen > 0
  31996. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31997. if esep {
  31998. dd.ReadMapElemKey()
  31999. }
  32000. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  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 = dd.DecodeFloat64()
  32014. if v != nil {
  32015. v[mk] = mv
  32016. }
  32017. }
  32018. dd.ReadMapEnd()
  32019. return v, changed
  32020. }
  32021. func (d *Decoder) fastpathDecMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  32022. if rv.Kind() == reflect.Ptr {
  32023. vp := rv2i(rv).(*map[int32]bool)
  32024. v, changed := fastpathTV.DecMapInt32BoolV(*vp, true, d)
  32025. if changed {
  32026. *vp = v
  32027. }
  32028. } else {
  32029. fastpathTV.DecMapInt32BoolV(rv2i(rv).(map[int32]bool), false, d)
  32030. }
  32031. }
  32032. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, d *Decoder) {
  32033. v, changed := f.DecMapInt32BoolV(*vp, true, d)
  32034. if changed {
  32035. *vp = v
  32036. }
  32037. }
  32038. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, canChange bool,
  32039. d *Decoder) (_ map[int32]bool, 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, 5)
  32044. v = make(map[int32]bool, xlen)
  32045. changed = true
  32046. }
  32047. if containerLen == 0 {
  32048. dd.ReadMapEnd()
  32049. return v, changed
  32050. }
  32051. var mk int32
  32052. var mv bool
  32053. hasLen := containerLen > 0
  32054. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32055. if esep {
  32056. dd.ReadMapElemKey()
  32057. }
  32058. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  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] = false
  32068. }
  32069. continue
  32070. }
  32071. mv = dd.DecodeBool()
  32072. if v != nil {
  32073. v[mk] = mv
  32074. }
  32075. }
  32076. dd.ReadMapEnd()
  32077. return v, changed
  32078. }
  32079. func (d *Decoder) fastpathDecMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  32080. if rv.Kind() == reflect.Ptr {
  32081. vp := rv2i(rv).(*map[int64]interface{})
  32082. v, changed := fastpathTV.DecMapInt64IntfV(*vp, true, d)
  32083. if changed {
  32084. *vp = v
  32085. }
  32086. } else {
  32087. fastpathTV.DecMapInt64IntfV(rv2i(rv).(map[int64]interface{}), false, d)
  32088. }
  32089. }
  32090. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, d *Decoder) {
  32091. v, changed := f.DecMapInt64IntfV(*vp, true, d)
  32092. if changed {
  32093. *vp = v
  32094. }
  32095. }
  32096. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, canChange bool,
  32097. d *Decoder) (_ map[int64]interface{}, 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, 24)
  32102. v = make(map[int64]interface{}, xlen)
  32103. changed = true
  32104. }
  32105. if containerLen == 0 {
  32106. dd.ReadMapEnd()
  32107. return v, changed
  32108. }
  32109. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  32110. var mk int64
  32111. var mv interface{}
  32112. hasLen := containerLen > 0
  32113. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32114. if esep {
  32115. dd.ReadMapElemKey()
  32116. }
  32117. mk = dd.DecodeInt64()
  32118. if esep {
  32119. dd.ReadMapElemValue()
  32120. }
  32121. if dd.TryDecodeAsNil() {
  32122. if v == nil {
  32123. } else if d.h.DeleteOnNilMapValue {
  32124. delete(v, mk)
  32125. } else {
  32126. v[mk] = nil
  32127. }
  32128. continue
  32129. }
  32130. if mapGet {
  32131. mv = v[mk]
  32132. } else {
  32133. mv = nil
  32134. }
  32135. d.decode(&mv)
  32136. if v != nil {
  32137. v[mk] = mv
  32138. }
  32139. }
  32140. dd.ReadMapEnd()
  32141. return v, changed
  32142. }
  32143. func (d *Decoder) fastpathDecMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  32144. if rv.Kind() == reflect.Ptr {
  32145. vp := rv2i(rv).(*map[int64]string)
  32146. v, changed := fastpathTV.DecMapInt64StringV(*vp, true, d)
  32147. if changed {
  32148. *vp = v
  32149. }
  32150. } else {
  32151. fastpathTV.DecMapInt64StringV(rv2i(rv).(map[int64]string), false, d)
  32152. }
  32153. }
  32154. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, d *Decoder) {
  32155. v, changed := f.DecMapInt64StringV(*vp, true, d)
  32156. if changed {
  32157. *vp = v
  32158. }
  32159. }
  32160. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, canChange bool,
  32161. d *Decoder) (_ map[int64]string, changed bool) {
  32162. dd, esep := d.d, d.hh.hasElemSeparators()
  32163. containerLen := dd.ReadMapStart()
  32164. if canChange && v == nil {
  32165. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  32166. v = make(map[int64]string, xlen)
  32167. changed = true
  32168. }
  32169. if containerLen == 0 {
  32170. dd.ReadMapEnd()
  32171. return v, changed
  32172. }
  32173. var mk int64
  32174. var mv string
  32175. hasLen := containerLen > 0
  32176. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32177. if esep {
  32178. dd.ReadMapElemKey()
  32179. }
  32180. mk = dd.DecodeInt64()
  32181. if esep {
  32182. dd.ReadMapElemValue()
  32183. }
  32184. if dd.TryDecodeAsNil() {
  32185. if v == nil {
  32186. } else if d.h.DeleteOnNilMapValue {
  32187. delete(v, mk)
  32188. } else {
  32189. v[mk] = ""
  32190. }
  32191. continue
  32192. }
  32193. mv = dd.DecodeString()
  32194. if v != nil {
  32195. v[mk] = mv
  32196. }
  32197. }
  32198. dd.ReadMapEnd()
  32199. return v, changed
  32200. }
  32201. func (d *Decoder) fastpathDecMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  32202. if rv.Kind() == reflect.Ptr {
  32203. vp := rv2i(rv).(*map[int64]uint)
  32204. v, changed := fastpathTV.DecMapInt64UintV(*vp, true, d)
  32205. if changed {
  32206. *vp = v
  32207. }
  32208. } else {
  32209. fastpathTV.DecMapInt64UintV(rv2i(rv).(map[int64]uint), false, d)
  32210. }
  32211. }
  32212. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, d *Decoder) {
  32213. v, changed := f.DecMapInt64UintV(*vp, true, d)
  32214. if changed {
  32215. *vp = v
  32216. }
  32217. }
  32218. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, canChange bool,
  32219. d *Decoder) (_ map[int64]uint, changed bool) {
  32220. dd, esep := d.d, d.hh.hasElemSeparators()
  32221. containerLen := dd.ReadMapStart()
  32222. if canChange && v == nil {
  32223. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32224. v = make(map[int64]uint, xlen)
  32225. changed = true
  32226. }
  32227. if containerLen == 0 {
  32228. dd.ReadMapEnd()
  32229. return v, changed
  32230. }
  32231. var mk int64
  32232. var mv uint
  32233. hasLen := containerLen > 0
  32234. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32235. if esep {
  32236. dd.ReadMapElemKey()
  32237. }
  32238. mk = dd.DecodeInt64()
  32239. if esep {
  32240. dd.ReadMapElemValue()
  32241. }
  32242. if dd.TryDecodeAsNil() {
  32243. if v == nil {
  32244. } else if d.h.DeleteOnNilMapValue {
  32245. delete(v, mk)
  32246. } else {
  32247. v[mk] = 0
  32248. }
  32249. continue
  32250. }
  32251. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  32252. if v != nil {
  32253. v[mk] = mv
  32254. }
  32255. }
  32256. dd.ReadMapEnd()
  32257. return v, changed
  32258. }
  32259. func (d *Decoder) fastpathDecMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  32260. if rv.Kind() == reflect.Ptr {
  32261. vp := rv2i(rv).(*map[int64]uint8)
  32262. v, changed := fastpathTV.DecMapInt64Uint8V(*vp, true, d)
  32263. if changed {
  32264. *vp = v
  32265. }
  32266. } else {
  32267. fastpathTV.DecMapInt64Uint8V(rv2i(rv).(map[int64]uint8), false, d)
  32268. }
  32269. }
  32270. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, d *Decoder) {
  32271. v, changed := f.DecMapInt64Uint8V(*vp, true, d)
  32272. if changed {
  32273. *vp = v
  32274. }
  32275. }
  32276. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, canChange bool,
  32277. d *Decoder) (_ map[int64]uint8, changed bool) {
  32278. dd, esep := d.d, d.hh.hasElemSeparators()
  32279. containerLen := dd.ReadMapStart()
  32280. if canChange && v == nil {
  32281. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32282. v = make(map[int64]uint8, xlen)
  32283. changed = true
  32284. }
  32285. if containerLen == 0 {
  32286. dd.ReadMapEnd()
  32287. return v, changed
  32288. }
  32289. var mk int64
  32290. var mv uint8
  32291. hasLen := containerLen > 0
  32292. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32293. if esep {
  32294. dd.ReadMapElemKey()
  32295. }
  32296. mk = dd.DecodeInt64()
  32297. if esep {
  32298. dd.ReadMapElemValue()
  32299. }
  32300. if dd.TryDecodeAsNil() {
  32301. if v == nil {
  32302. } else if d.h.DeleteOnNilMapValue {
  32303. delete(v, mk)
  32304. } else {
  32305. v[mk] = 0
  32306. }
  32307. continue
  32308. }
  32309. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  32310. if v != nil {
  32311. v[mk] = mv
  32312. }
  32313. }
  32314. dd.ReadMapEnd()
  32315. return v, changed
  32316. }
  32317. func (d *Decoder) fastpathDecMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  32318. if rv.Kind() == reflect.Ptr {
  32319. vp := rv2i(rv).(*map[int64]uint16)
  32320. v, changed := fastpathTV.DecMapInt64Uint16V(*vp, true, d)
  32321. if changed {
  32322. *vp = v
  32323. }
  32324. } else {
  32325. fastpathTV.DecMapInt64Uint16V(rv2i(rv).(map[int64]uint16), false, d)
  32326. }
  32327. }
  32328. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, d *Decoder) {
  32329. v, changed := f.DecMapInt64Uint16V(*vp, true, d)
  32330. if changed {
  32331. *vp = v
  32332. }
  32333. }
  32334. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, canChange bool,
  32335. d *Decoder) (_ map[int64]uint16, changed bool) {
  32336. dd, esep := d.d, d.hh.hasElemSeparators()
  32337. containerLen := dd.ReadMapStart()
  32338. if canChange && v == nil {
  32339. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  32340. v = make(map[int64]uint16, xlen)
  32341. changed = true
  32342. }
  32343. if containerLen == 0 {
  32344. dd.ReadMapEnd()
  32345. return v, changed
  32346. }
  32347. var mk int64
  32348. var mv uint16
  32349. hasLen := containerLen > 0
  32350. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32351. if esep {
  32352. dd.ReadMapElemKey()
  32353. }
  32354. mk = dd.DecodeInt64()
  32355. if esep {
  32356. dd.ReadMapElemValue()
  32357. }
  32358. if dd.TryDecodeAsNil() {
  32359. if v == nil {
  32360. } else if d.h.DeleteOnNilMapValue {
  32361. delete(v, mk)
  32362. } else {
  32363. v[mk] = 0
  32364. }
  32365. continue
  32366. }
  32367. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  32368. if v != nil {
  32369. v[mk] = mv
  32370. }
  32371. }
  32372. dd.ReadMapEnd()
  32373. return v, changed
  32374. }
  32375. func (d *Decoder) fastpathDecMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  32376. if rv.Kind() == reflect.Ptr {
  32377. vp := rv2i(rv).(*map[int64]uint32)
  32378. v, changed := fastpathTV.DecMapInt64Uint32V(*vp, true, d)
  32379. if changed {
  32380. *vp = v
  32381. }
  32382. } else {
  32383. fastpathTV.DecMapInt64Uint32V(rv2i(rv).(map[int64]uint32), false, d)
  32384. }
  32385. }
  32386. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, d *Decoder) {
  32387. v, changed := f.DecMapInt64Uint32V(*vp, true, d)
  32388. if changed {
  32389. *vp = v
  32390. }
  32391. }
  32392. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, canChange bool,
  32393. d *Decoder) (_ map[int64]uint32, changed bool) {
  32394. dd, esep := d.d, d.hh.hasElemSeparators()
  32395. containerLen := dd.ReadMapStart()
  32396. if canChange && v == nil {
  32397. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32398. v = make(map[int64]uint32, xlen)
  32399. changed = true
  32400. }
  32401. if containerLen == 0 {
  32402. dd.ReadMapEnd()
  32403. return v, changed
  32404. }
  32405. var mk int64
  32406. var mv uint32
  32407. hasLen := containerLen > 0
  32408. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32409. if esep {
  32410. dd.ReadMapElemKey()
  32411. }
  32412. mk = dd.DecodeInt64()
  32413. if esep {
  32414. dd.ReadMapElemValue()
  32415. }
  32416. if dd.TryDecodeAsNil() {
  32417. if v == nil {
  32418. } else if d.h.DeleteOnNilMapValue {
  32419. delete(v, mk)
  32420. } else {
  32421. v[mk] = 0
  32422. }
  32423. continue
  32424. }
  32425. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  32426. if v != nil {
  32427. v[mk] = mv
  32428. }
  32429. }
  32430. dd.ReadMapEnd()
  32431. return v, changed
  32432. }
  32433. func (d *Decoder) fastpathDecMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  32434. if rv.Kind() == reflect.Ptr {
  32435. vp := rv2i(rv).(*map[int64]uint64)
  32436. v, changed := fastpathTV.DecMapInt64Uint64V(*vp, true, d)
  32437. if changed {
  32438. *vp = v
  32439. }
  32440. } else {
  32441. fastpathTV.DecMapInt64Uint64V(rv2i(rv).(map[int64]uint64), false, d)
  32442. }
  32443. }
  32444. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, d *Decoder) {
  32445. v, changed := f.DecMapInt64Uint64V(*vp, true, d)
  32446. if changed {
  32447. *vp = v
  32448. }
  32449. }
  32450. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, canChange bool,
  32451. d *Decoder) (_ map[int64]uint64, changed bool) {
  32452. dd, esep := d.d, d.hh.hasElemSeparators()
  32453. containerLen := dd.ReadMapStart()
  32454. if canChange && v == nil {
  32455. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32456. v = make(map[int64]uint64, xlen)
  32457. changed = true
  32458. }
  32459. if containerLen == 0 {
  32460. dd.ReadMapEnd()
  32461. return v, changed
  32462. }
  32463. var mk int64
  32464. var mv uint64
  32465. hasLen := containerLen > 0
  32466. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32467. if esep {
  32468. dd.ReadMapElemKey()
  32469. }
  32470. mk = dd.DecodeInt64()
  32471. if esep {
  32472. dd.ReadMapElemValue()
  32473. }
  32474. if dd.TryDecodeAsNil() {
  32475. if v == nil {
  32476. } else if d.h.DeleteOnNilMapValue {
  32477. delete(v, mk)
  32478. } else {
  32479. v[mk] = 0
  32480. }
  32481. continue
  32482. }
  32483. mv = dd.DecodeUint64()
  32484. if v != nil {
  32485. v[mk] = mv
  32486. }
  32487. }
  32488. dd.ReadMapEnd()
  32489. return v, changed
  32490. }
  32491. func (d *Decoder) fastpathDecMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  32492. if rv.Kind() == reflect.Ptr {
  32493. vp := rv2i(rv).(*map[int64]uintptr)
  32494. v, changed := fastpathTV.DecMapInt64UintptrV(*vp, true, d)
  32495. if changed {
  32496. *vp = v
  32497. }
  32498. } else {
  32499. fastpathTV.DecMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), false, d)
  32500. }
  32501. }
  32502. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, d *Decoder) {
  32503. v, changed := f.DecMapInt64UintptrV(*vp, true, d)
  32504. if changed {
  32505. *vp = v
  32506. }
  32507. }
  32508. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, canChange bool,
  32509. d *Decoder) (_ map[int64]uintptr, changed bool) {
  32510. dd, esep := d.d, d.hh.hasElemSeparators()
  32511. containerLen := dd.ReadMapStart()
  32512. if canChange && v == nil {
  32513. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32514. v = make(map[int64]uintptr, xlen)
  32515. changed = true
  32516. }
  32517. if containerLen == 0 {
  32518. dd.ReadMapEnd()
  32519. return v, changed
  32520. }
  32521. var mk int64
  32522. var mv uintptr
  32523. hasLen := containerLen > 0
  32524. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32525. if esep {
  32526. dd.ReadMapElemKey()
  32527. }
  32528. mk = dd.DecodeInt64()
  32529. if esep {
  32530. dd.ReadMapElemValue()
  32531. }
  32532. if dd.TryDecodeAsNil() {
  32533. if v == nil {
  32534. } else if d.h.DeleteOnNilMapValue {
  32535. delete(v, mk)
  32536. } else {
  32537. v[mk] = 0
  32538. }
  32539. continue
  32540. }
  32541. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  32542. if v != nil {
  32543. v[mk] = mv
  32544. }
  32545. }
  32546. dd.ReadMapEnd()
  32547. return v, changed
  32548. }
  32549. func (d *Decoder) fastpathDecMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  32550. if rv.Kind() == reflect.Ptr {
  32551. vp := rv2i(rv).(*map[int64]int)
  32552. v, changed := fastpathTV.DecMapInt64IntV(*vp, true, d)
  32553. if changed {
  32554. *vp = v
  32555. }
  32556. } else {
  32557. fastpathTV.DecMapInt64IntV(rv2i(rv).(map[int64]int), false, d)
  32558. }
  32559. }
  32560. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, d *Decoder) {
  32561. v, changed := f.DecMapInt64IntV(*vp, true, d)
  32562. if changed {
  32563. *vp = v
  32564. }
  32565. }
  32566. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, canChange bool,
  32567. d *Decoder) (_ map[int64]int, changed bool) {
  32568. dd, esep := d.d, d.hh.hasElemSeparators()
  32569. containerLen := dd.ReadMapStart()
  32570. if canChange && v == nil {
  32571. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32572. v = make(map[int64]int, xlen)
  32573. changed = true
  32574. }
  32575. if containerLen == 0 {
  32576. dd.ReadMapEnd()
  32577. return v, changed
  32578. }
  32579. var mk int64
  32580. var mv int
  32581. hasLen := containerLen > 0
  32582. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32583. if esep {
  32584. dd.ReadMapElemKey()
  32585. }
  32586. mk = dd.DecodeInt64()
  32587. if esep {
  32588. dd.ReadMapElemValue()
  32589. }
  32590. if dd.TryDecodeAsNil() {
  32591. if v == nil {
  32592. } else if d.h.DeleteOnNilMapValue {
  32593. delete(v, mk)
  32594. } else {
  32595. v[mk] = 0
  32596. }
  32597. continue
  32598. }
  32599. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  32600. if v != nil {
  32601. v[mk] = mv
  32602. }
  32603. }
  32604. dd.ReadMapEnd()
  32605. return v, changed
  32606. }
  32607. func (d *Decoder) fastpathDecMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  32608. if rv.Kind() == reflect.Ptr {
  32609. vp := rv2i(rv).(*map[int64]int8)
  32610. v, changed := fastpathTV.DecMapInt64Int8V(*vp, true, d)
  32611. if changed {
  32612. *vp = v
  32613. }
  32614. } else {
  32615. fastpathTV.DecMapInt64Int8V(rv2i(rv).(map[int64]int8), false, d)
  32616. }
  32617. }
  32618. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, d *Decoder) {
  32619. v, changed := f.DecMapInt64Int8V(*vp, true, d)
  32620. if changed {
  32621. *vp = v
  32622. }
  32623. }
  32624. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, canChange bool,
  32625. d *Decoder) (_ map[int64]int8, changed bool) {
  32626. dd, esep := d.d, d.hh.hasElemSeparators()
  32627. containerLen := dd.ReadMapStart()
  32628. if canChange && v == nil {
  32629. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32630. v = make(map[int64]int8, xlen)
  32631. changed = true
  32632. }
  32633. if containerLen == 0 {
  32634. dd.ReadMapEnd()
  32635. return v, changed
  32636. }
  32637. var mk int64
  32638. var mv int8
  32639. hasLen := containerLen > 0
  32640. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32641. if esep {
  32642. dd.ReadMapElemKey()
  32643. }
  32644. mk = dd.DecodeInt64()
  32645. if esep {
  32646. dd.ReadMapElemValue()
  32647. }
  32648. if dd.TryDecodeAsNil() {
  32649. if v == nil {
  32650. } else if d.h.DeleteOnNilMapValue {
  32651. delete(v, mk)
  32652. } else {
  32653. v[mk] = 0
  32654. }
  32655. continue
  32656. }
  32657. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  32658. if v != nil {
  32659. v[mk] = mv
  32660. }
  32661. }
  32662. dd.ReadMapEnd()
  32663. return v, changed
  32664. }
  32665. func (d *Decoder) fastpathDecMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  32666. if rv.Kind() == reflect.Ptr {
  32667. vp := rv2i(rv).(*map[int64]int16)
  32668. v, changed := fastpathTV.DecMapInt64Int16V(*vp, true, d)
  32669. if changed {
  32670. *vp = v
  32671. }
  32672. } else {
  32673. fastpathTV.DecMapInt64Int16V(rv2i(rv).(map[int64]int16), false, d)
  32674. }
  32675. }
  32676. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, d *Decoder) {
  32677. v, changed := f.DecMapInt64Int16V(*vp, true, d)
  32678. if changed {
  32679. *vp = v
  32680. }
  32681. }
  32682. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, canChange bool,
  32683. d *Decoder) (_ map[int64]int16, changed bool) {
  32684. dd, esep := d.d, d.hh.hasElemSeparators()
  32685. containerLen := dd.ReadMapStart()
  32686. if canChange && v == nil {
  32687. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  32688. v = make(map[int64]int16, xlen)
  32689. changed = true
  32690. }
  32691. if containerLen == 0 {
  32692. dd.ReadMapEnd()
  32693. return v, changed
  32694. }
  32695. var mk int64
  32696. var mv int16
  32697. hasLen := containerLen > 0
  32698. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32699. if esep {
  32700. dd.ReadMapElemKey()
  32701. }
  32702. mk = dd.DecodeInt64()
  32703. if esep {
  32704. dd.ReadMapElemValue()
  32705. }
  32706. if dd.TryDecodeAsNil() {
  32707. if v == nil {
  32708. } else if d.h.DeleteOnNilMapValue {
  32709. delete(v, mk)
  32710. } else {
  32711. v[mk] = 0
  32712. }
  32713. continue
  32714. }
  32715. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  32716. if v != nil {
  32717. v[mk] = mv
  32718. }
  32719. }
  32720. dd.ReadMapEnd()
  32721. return v, changed
  32722. }
  32723. func (d *Decoder) fastpathDecMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  32724. if rv.Kind() == reflect.Ptr {
  32725. vp := rv2i(rv).(*map[int64]int32)
  32726. v, changed := fastpathTV.DecMapInt64Int32V(*vp, true, d)
  32727. if changed {
  32728. *vp = v
  32729. }
  32730. } else {
  32731. fastpathTV.DecMapInt64Int32V(rv2i(rv).(map[int64]int32), false, d)
  32732. }
  32733. }
  32734. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, d *Decoder) {
  32735. v, changed := f.DecMapInt64Int32V(*vp, true, d)
  32736. if changed {
  32737. *vp = v
  32738. }
  32739. }
  32740. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, canChange bool,
  32741. d *Decoder) (_ map[int64]int32, changed bool) {
  32742. dd, esep := d.d, d.hh.hasElemSeparators()
  32743. containerLen := dd.ReadMapStart()
  32744. if canChange && v == nil {
  32745. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32746. v = make(map[int64]int32, xlen)
  32747. changed = true
  32748. }
  32749. if containerLen == 0 {
  32750. dd.ReadMapEnd()
  32751. return v, changed
  32752. }
  32753. var mk int64
  32754. var mv int32
  32755. hasLen := containerLen > 0
  32756. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32757. if esep {
  32758. dd.ReadMapElemKey()
  32759. }
  32760. mk = dd.DecodeInt64()
  32761. if esep {
  32762. dd.ReadMapElemValue()
  32763. }
  32764. if dd.TryDecodeAsNil() {
  32765. if v == nil {
  32766. } else if d.h.DeleteOnNilMapValue {
  32767. delete(v, mk)
  32768. } else {
  32769. v[mk] = 0
  32770. }
  32771. continue
  32772. }
  32773. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32774. if v != nil {
  32775. v[mk] = mv
  32776. }
  32777. }
  32778. dd.ReadMapEnd()
  32779. return v, changed
  32780. }
  32781. func (d *Decoder) fastpathDecMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  32782. if rv.Kind() == reflect.Ptr {
  32783. vp := rv2i(rv).(*map[int64]int64)
  32784. v, changed := fastpathTV.DecMapInt64Int64V(*vp, true, d)
  32785. if changed {
  32786. *vp = v
  32787. }
  32788. } else {
  32789. fastpathTV.DecMapInt64Int64V(rv2i(rv).(map[int64]int64), false, d)
  32790. }
  32791. }
  32792. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, d *Decoder) {
  32793. v, changed := f.DecMapInt64Int64V(*vp, true, d)
  32794. if changed {
  32795. *vp = v
  32796. }
  32797. }
  32798. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, canChange bool,
  32799. d *Decoder) (_ map[int64]int64, changed bool) {
  32800. dd, esep := d.d, d.hh.hasElemSeparators()
  32801. containerLen := dd.ReadMapStart()
  32802. if canChange && v == nil {
  32803. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32804. v = make(map[int64]int64, xlen)
  32805. changed = true
  32806. }
  32807. if containerLen == 0 {
  32808. dd.ReadMapEnd()
  32809. return v, changed
  32810. }
  32811. var mk int64
  32812. var mv int64
  32813. hasLen := containerLen > 0
  32814. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32815. if esep {
  32816. dd.ReadMapElemKey()
  32817. }
  32818. mk = dd.DecodeInt64()
  32819. if esep {
  32820. dd.ReadMapElemValue()
  32821. }
  32822. if dd.TryDecodeAsNil() {
  32823. if v == nil {
  32824. } else if d.h.DeleteOnNilMapValue {
  32825. delete(v, mk)
  32826. } else {
  32827. v[mk] = 0
  32828. }
  32829. continue
  32830. }
  32831. mv = dd.DecodeInt64()
  32832. if v != nil {
  32833. v[mk] = mv
  32834. }
  32835. }
  32836. dd.ReadMapEnd()
  32837. return v, changed
  32838. }
  32839. func (d *Decoder) fastpathDecMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  32840. if rv.Kind() == reflect.Ptr {
  32841. vp := rv2i(rv).(*map[int64]float32)
  32842. v, changed := fastpathTV.DecMapInt64Float32V(*vp, true, d)
  32843. if changed {
  32844. *vp = v
  32845. }
  32846. } else {
  32847. fastpathTV.DecMapInt64Float32V(rv2i(rv).(map[int64]float32), false, d)
  32848. }
  32849. }
  32850. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, d *Decoder) {
  32851. v, changed := f.DecMapInt64Float32V(*vp, true, d)
  32852. if changed {
  32853. *vp = v
  32854. }
  32855. }
  32856. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, canChange bool,
  32857. d *Decoder) (_ map[int64]float32, changed bool) {
  32858. dd, esep := d.d, d.hh.hasElemSeparators()
  32859. containerLen := dd.ReadMapStart()
  32860. if canChange && v == nil {
  32861. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32862. v = make(map[int64]float32, xlen)
  32863. changed = true
  32864. }
  32865. if containerLen == 0 {
  32866. dd.ReadMapEnd()
  32867. return v, changed
  32868. }
  32869. var mk int64
  32870. var mv float32
  32871. hasLen := containerLen > 0
  32872. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32873. if esep {
  32874. dd.ReadMapElemKey()
  32875. }
  32876. mk = dd.DecodeInt64()
  32877. if esep {
  32878. dd.ReadMapElemValue()
  32879. }
  32880. if dd.TryDecodeAsNil() {
  32881. if v == nil {
  32882. } else if d.h.DeleteOnNilMapValue {
  32883. delete(v, mk)
  32884. } else {
  32885. v[mk] = 0
  32886. }
  32887. continue
  32888. }
  32889. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  32890. if v != nil {
  32891. v[mk] = mv
  32892. }
  32893. }
  32894. dd.ReadMapEnd()
  32895. return v, changed
  32896. }
  32897. func (d *Decoder) fastpathDecMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  32898. if rv.Kind() == reflect.Ptr {
  32899. vp := rv2i(rv).(*map[int64]float64)
  32900. v, changed := fastpathTV.DecMapInt64Float64V(*vp, true, d)
  32901. if changed {
  32902. *vp = v
  32903. }
  32904. } else {
  32905. fastpathTV.DecMapInt64Float64V(rv2i(rv).(map[int64]float64), false, d)
  32906. }
  32907. }
  32908. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, d *Decoder) {
  32909. v, changed := f.DecMapInt64Float64V(*vp, true, d)
  32910. if changed {
  32911. *vp = v
  32912. }
  32913. }
  32914. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, canChange bool,
  32915. d *Decoder) (_ map[int64]float64, changed bool) {
  32916. dd, esep := d.d, d.hh.hasElemSeparators()
  32917. containerLen := dd.ReadMapStart()
  32918. if canChange && v == nil {
  32919. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32920. v = make(map[int64]float64, xlen)
  32921. changed = true
  32922. }
  32923. if containerLen == 0 {
  32924. dd.ReadMapEnd()
  32925. return v, changed
  32926. }
  32927. var mk int64
  32928. var mv float64
  32929. hasLen := containerLen > 0
  32930. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32931. if esep {
  32932. dd.ReadMapElemKey()
  32933. }
  32934. mk = dd.DecodeInt64()
  32935. if esep {
  32936. dd.ReadMapElemValue()
  32937. }
  32938. if dd.TryDecodeAsNil() {
  32939. if v == nil {
  32940. } else if d.h.DeleteOnNilMapValue {
  32941. delete(v, mk)
  32942. } else {
  32943. v[mk] = 0
  32944. }
  32945. continue
  32946. }
  32947. mv = dd.DecodeFloat64()
  32948. if v != nil {
  32949. v[mk] = mv
  32950. }
  32951. }
  32952. dd.ReadMapEnd()
  32953. return v, changed
  32954. }
  32955. func (d *Decoder) fastpathDecMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  32956. if rv.Kind() == reflect.Ptr {
  32957. vp := rv2i(rv).(*map[int64]bool)
  32958. v, changed := fastpathTV.DecMapInt64BoolV(*vp, true, d)
  32959. if changed {
  32960. *vp = v
  32961. }
  32962. } else {
  32963. fastpathTV.DecMapInt64BoolV(rv2i(rv).(map[int64]bool), false, d)
  32964. }
  32965. }
  32966. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, d *Decoder) {
  32967. v, changed := f.DecMapInt64BoolV(*vp, true, d)
  32968. if changed {
  32969. *vp = v
  32970. }
  32971. }
  32972. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, canChange bool,
  32973. d *Decoder) (_ map[int64]bool, changed bool) {
  32974. dd, esep := d.d, d.hh.hasElemSeparators()
  32975. containerLen := dd.ReadMapStart()
  32976. if canChange && v == nil {
  32977. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32978. v = make(map[int64]bool, xlen)
  32979. changed = true
  32980. }
  32981. if containerLen == 0 {
  32982. dd.ReadMapEnd()
  32983. return v, changed
  32984. }
  32985. var mk int64
  32986. var mv bool
  32987. hasLen := containerLen > 0
  32988. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32989. if esep {
  32990. dd.ReadMapElemKey()
  32991. }
  32992. mk = dd.DecodeInt64()
  32993. if esep {
  32994. dd.ReadMapElemValue()
  32995. }
  32996. if dd.TryDecodeAsNil() {
  32997. if v == nil {
  32998. } else if d.h.DeleteOnNilMapValue {
  32999. delete(v, mk)
  33000. } else {
  33001. v[mk] = false
  33002. }
  33003. continue
  33004. }
  33005. mv = dd.DecodeBool()
  33006. if v != nil {
  33007. v[mk] = mv
  33008. }
  33009. }
  33010. dd.ReadMapEnd()
  33011. return v, changed
  33012. }
  33013. func (d *Decoder) fastpathDecMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  33014. if rv.Kind() == reflect.Ptr {
  33015. vp := rv2i(rv).(*map[bool]interface{})
  33016. v, changed := fastpathTV.DecMapBoolIntfV(*vp, true, d)
  33017. if changed {
  33018. *vp = v
  33019. }
  33020. } else {
  33021. fastpathTV.DecMapBoolIntfV(rv2i(rv).(map[bool]interface{}), false, d)
  33022. }
  33023. }
  33024. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, d *Decoder) {
  33025. v, changed := f.DecMapBoolIntfV(*vp, true, d)
  33026. if changed {
  33027. *vp = v
  33028. }
  33029. }
  33030. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, canChange bool,
  33031. d *Decoder) (_ map[bool]interface{}, changed bool) {
  33032. dd, esep := d.d, d.hh.hasElemSeparators()
  33033. containerLen := dd.ReadMapStart()
  33034. if canChange && v == nil {
  33035. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  33036. v = make(map[bool]interface{}, xlen)
  33037. changed = true
  33038. }
  33039. if containerLen == 0 {
  33040. dd.ReadMapEnd()
  33041. return v, changed
  33042. }
  33043. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  33044. var mk bool
  33045. var mv interface{}
  33046. hasLen := containerLen > 0
  33047. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33048. if esep {
  33049. dd.ReadMapElemKey()
  33050. }
  33051. mk = dd.DecodeBool()
  33052. if esep {
  33053. dd.ReadMapElemValue()
  33054. }
  33055. if dd.TryDecodeAsNil() {
  33056. if v == nil {
  33057. } else if d.h.DeleteOnNilMapValue {
  33058. delete(v, mk)
  33059. } else {
  33060. v[mk] = nil
  33061. }
  33062. continue
  33063. }
  33064. if mapGet {
  33065. mv = v[mk]
  33066. } else {
  33067. mv = nil
  33068. }
  33069. d.decode(&mv)
  33070. if v != nil {
  33071. v[mk] = mv
  33072. }
  33073. }
  33074. dd.ReadMapEnd()
  33075. return v, changed
  33076. }
  33077. func (d *Decoder) fastpathDecMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  33078. if rv.Kind() == reflect.Ptr {
  33079. vp := rv2i(rv).(*map[bool]string)
  33080. v, changed := fastpathTV.DecMapBoolStringV(*vp, true, d)
  33081. if changed {
  33082. *vp = v
  33083. }
  33084. } else {
  33085. fastpathTV.DecMapBoolStringV(rv2i(rv).(map[bool]string), false, d)
  33086. }
  33087. }
  33088. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, d *Decoder) {
  33089. v, changed := f.DecMapBoolStringV(*vp, true, d)
  33090. if changed {
  33091. *vp = v
  33092. }
  33093. }
  33094. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, canChange bool,
  33095. d *Decoder) (_ map[bool]string, changed bool) {
  33096. dd, esep := d.d, d.hh.hasElemSeparators()
  33097. containerLen := dd.ReadMapStart()
  33098. if canChange && v == nil {
  33099. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  33100. v = make(map[bool]string, xlen)
  33101. changed = true
  33102. }
  33103. if containerLen == 0 {
  33104. dd.ReadMapEnd()
  33105. return v, changed
  33106. }
  33107. var mk bool
  33108. var mv string
  33109. hasLen := containerLen > 0
  33110. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33111. if esep {
  33112. dd.ReadMapElemKey()
  33113. }
  33114. mk = dd.DecodeBool()
  33115. if esep {
  33116. dd.ReadMapElemValue()
  33117. }
  33118. if dd.TryDecodeAsNil() {
  33119. if v == nil {
  33120. } else if d.h.DeleteOnNilMapValue {
  33121. delete(v, mk)
  33122. } else {
  33123. v[mk] = ""
  33124. }
  33125. continue
  33126. }
  33127. mv = dd.DecodeString()
  33128. if v != nil {
  33129. v[mk] = mv
  33130. }
  33131. }
  33132. dd.ReadMapEnd()
  33133. return v, changed
  33134. }
  33135. func (d *Decoder) fastpathDecMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  33136. if rv.Kind() == reflect.Ptr {
  33137. vp := rv2i(rv).(*map[bool]uint)
  33138. v, changed := fastpathTV.DecMapBoolUintV(*vp, true, d)
  33139. if changed {
  33140. *vp = v
  33141. }
  33142. } else {
  33143. fastpathTV.DecMapBoolUintV(rv2i(rv).(map[bool]uint), false, d)
  33144. }
  33145. }
  33146. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, d *Decoder) {
  33147. v, changed := f.DecMapBoolUintV(*vp, true, d)
  33148. if changed {
  33149. *vp = v
  33150. }
  33151. }
  33152. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, canChange bool,
  33153. d *Decoder) (_ map[bool]uint, changed bool) {
  33154. dd, esep := d.d, d.hh.hasElemSeparators()
  33155. containerLen := dd.ReadMapStart()
  33156. if canChange && v == nil {
  33157. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33158. v = make(map[bool]uint, xlen)
  33159. changed = true
  33160. }
  33161. if containerLen == 0 {
  33162. dd.ReadMapEnd()
  33163. return v, changed
  33164. }
  33165. var mk bool
  33166. var mv uint
  33167. hasLen := containerLen > 0
  33168. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33169. if esep {
  33170. dd.ReadMapElemKey()
  33171. }
  33172. mk = dd.DecodeBool()
  33173. if esep {
  33174. dd.ReadMapElemValue()
  33175. }
  33176. if dd.TryDecodeAsNil() {
  33177. if v == nil {
  33178. } else if d.h.DeleteOnNilMapValue {
  33179. delete(v, mk)
  33180. } else {
  33181. v[mk] = 0
  33182. }
  33183. continue
  33184. }
  33185. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  33186. if v != nil {
  33187. v[mk] = mv
  33188. }
  33189. }
  33190. dd.ReadMapEnd()
  33191. return v, changed
  33192. }
  33193. func (d *Decoder) fastpathDecMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  33194. if rv.Kind() == reflect.Ptr {
  33195. vp := rv2i(rv).(*map[bool]uint8)
  33196. v, changed := fastpathTV.DecMapBoolUint8V(*vp, true, d)
  33197. if changed {
  33198. *vp = v
  33199. }
  33200. } else {
  33201. fastpathTV.DecMapBoolUint8V(rv2i(rv).(map[bool]uint8), false, d)
  33202. }
  33203. }
  33204. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, d *Decoder) {
  33205. v, changed := f.DecMapBoolUint8V(*vp, true, d)
  33206. if changed {
  33207. *vp = v
  33208. }
  33209. }
  33210. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, canChange bool,
  33211. d *Decoder) (_ map[bool]uint8, changed bool) {
  33212. dd, esep := d.d, d.hh.hasElemSeparators()
  33213. containerLen := dd.ReadMapStart()
  33214. if canChange && v == nil {
  33215. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  33216. v = make(map[bool]uint8, xlen)
  33217. changed = true
  33218. }
  33219. if containerLen == 0 {
  33220. dd.ReadMapEnd()
  33221. return v, changed
  33222. }
  33223. var mk bool
  33224. var mv uint8
  33225. hasLen := containerLen > 0
  33226. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33227. if esep {
  33228. dd.ReadMapElemKey()
  33229. }
  33230. mk = dd.DecodeBool()
  33231. if esep {
  33232. dd.ReadMapElemValue()
  33233. }
  33234. if dd.TryDecodeAsNil() {
  33235. if v == nil {
  33236. } else if d.h.DeleteOnNilMapValue {
  33237. delete(v, mk)
  33238. } else {
  33239. v[mk] = 0
  33240. }
  33241. continue
  33242. }
  33243. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  33244. if v != nil {
  33245. v[mk] = mv
  33246. }
  33247. }
  33248. dd.ReadMapEnd()
  33249. return v, changed
  33250. }
  33251. func (d *Decoder) fastpathDecMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  33252. if rv.Kind() == reflect.Ptr {
  33253. vp := rv2i(rv).(*map[bool]uint16)
  33254. v, changed := fastpathTV.DecMapBoolUint16V(*vp, true, d)
  33255. if changed {
  33256. *vp = v
  33257. }
  33258. } else {
  33259. fastpathTV.DecMapBoolUint16V(rv2i(rv).(map[bool]uint16), false, d)
  33260. }
  33261. }
  33262. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, d *Decoder) {
  33263. v, changed := f.DecMapBoolUint16V(*vp, true, d)
  33264. if changed {
  33265. *vp = v
  33266. }
  33267. }
  33268. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, canChange bool,
  33269. d *Decoder) (_ map[bool]uint16, changed bool) {
  33270. dd, esep := d.d, d.hh.hasElemSeparators()
  33271. containerLen := dd.ReadMapStart()
  33272. if canChange && v == nil {
  33273. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  33274. v = make(map[bool]uint16, xlen)
  33275. changed = true
  33276. }
  33277. if containerLen == 0 {
  33278. dd.ReadMapEnd()
  33279. return v, changed
  33280. }
  33281. var mk bool
  33282. var mv uint16
  33283. hasLen := containerLen > 0
  33284. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33285. if esep {
  33286. dd.ReadMapElemKey()
  33287. }
  33288. mk = dd.DecodeBool()
  33289. if esep {
  33290. dd.ReadMapElemValue()
  33291. }
  33292. if dd.TryDecodeAsNil() {
  33293. if v == nil {
  33294. } else if d.h.DeleteOnNilMapValue {
  33295. delete(v, mk)
  33296. } else {
  33297. v[mk] = 0
  33298. }
  33299. continue
  33300. }
  33301. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  33302. if v != nil {
  33303. v[mk] = mv
  33304. }
  33305. }
  33306. dd.ReadMapEnd()
  33307. return v, changed
  33308. }
  33309. func (d *Decoder) fastpathDecMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  33310. if rv.Kind() == reflect.Ptr {
  33311. vp := rv2i(rv).(*map[bool]uint32)
  33312. v, changed := fastpathTV.DecMapBoolUint32V(*vp, true, d)
  33313. if changed {
  33314. *vp = v
  33315. }
  33316. } else {
  33317. fastpathTV.DecMapBoolUint32V(rv2i(rv).(map[bool]uint32), false, d)
  33318. }
  33319. }
  33320. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, d *Decoder) {
  33321. v, changed := f.DecMapBoolUint32V(*vp, true, d)
  33322. if changed {
  33323. *vp = v
  33324. }
  33325. }
  33326. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, canChange bool,
  33327. d *Decoder) (_ map[bool]uint32, changed bool) {
  33328. dd, esep := d.d, d.hh.hasElemSeparators()
  33329. containerLen := dd.ReadMapStart()
  33330. if canChange && v == nil {
  33331. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  33332. v = make(map[bool]uint32, xlen)
  33333. changed = true
  33334. }
  33335. if containerLen == 0 {
  33336. dd.ReadMapEnd()
  33337. return v, changed
  33338. }
  33339. var mk bool
  33340. var mv uint32
  33341. hasLen := containerLen > 0
  33342. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33343. if esep {
  33344. dd.ReadMapElemKey()
  33345. }
  33346. mk = dd.DecodeBool()
  33347. if esep {
  33348. dd.ReadMapElemValue()
  33349. }
  33350. if dd.TryDecodeAsNil() {
  33351. if v == nil {
  33352. } else if d.h.DeleteOnNilMapValue {
  33353. delete(v, mk)
  33354. } else {
  33355. v[mk] = 0
  33356. }
  33357. continue
  33358. }
  33359. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  33360. if v != nil {
  33361. v[mk] = mv
  33362. }
  33363. }
  33364. dd.ReadMapEnd()
  33365. return v, changed
  33366. }
  33367. func (d *Decoder) fastpathDecMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  33368. if rv.Kind() == reflect.Ptr {
  33369. vp := rv2i(rv).(*map[bool]uint64)
  33370. v, changed := fastpathTV.DecMapBoolUint64V(*vp, true, d)
  33371. if changed {
  33372. *vp = v
  33373. }
  33374. } else {
  33375. fastpathTV.DecMapBoolUint64V(rv2i(rv).(map[bool]uint64), false, d)
  33376. }
  33377. }
  33378. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, d *Decoder) {
  33379. v, changed := f.DecMapBoolUint64V(*vp, true, d)
  33380. if changed {
  33381. *vp = v
  33382. }
  33383. }
  33384. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, canChange bool,
  33385. d *Decoder) (_ map[bool]uint64, changed bool) {
  33386. dd, esep := d.d, d.hh.hasElemSeparators()
  33387. containerLen := dd.ReadMapStart()
  33388. if canChange && v == nil {
  33389. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33390. v = make(map[bool]uint64, xlen)
  33391. changed = true
  33392. }
  33393. if containerLen == 0 {
  33394. dd.ReadMapEnd()
  33395. return v, changed
  33396. }
  33397. var mk bool
  33398. var mv uint64
  33399. hasLen := containerLen > 0
  33400. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33401. if esep {
  33402. dd.ReadMapElemKey()
  33403. }
  33404. mk = dd.DecodeBool()
  33405. if esep {
  33406. dd.ReadMapElemValue()
  33407. }
  33408. if dd.TryDecodeAsNil() {
  33409. if v == nil {
  33410. } else if d.h.DeleteOnNilMapValue {
  33411. delete(v, mk)
  33412. } else {
  33413. v[mk] = 0
  33414. }
  33415. continue
  33416. }
  33417. mv = dd.DecodeUint64()
  33418. if v != nil {
  33419. v[mk] = mv
  33420. }
  33421. }
  33422. dd.ReadMapEnd()
  33423. return v, changed
  33424. }
  33425. func (d *Decoder) fastpathDecMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  33426. if rv.Kind() == reflect.Ptr {
  33427. vp := rv2i(rv).(*map[bool]uintptr)
  33428. v, changed := fastpathTV.DecMapBoolUintptrV(*vp, true, d)
  33429. if changed {
  33430. *vp = v
  33431. }
  33432. } else {
  33433. fastpathTV.DecMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), false, d)
  33434. }
  33435. }
  33436. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, d *Decoder) {
  33437. v, changed := f.DecMapBoolUintptrV(*vp, true, d)
  33438. if changed {
  33439. *vp = v
  33440. }
  33441. }
  33442. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, canChange bool,
  33443. d *Decoder) (_ map[bool]uintptr, changed bool) {
  33444. dd, esep := d.d, d.hh.hasElemSeparators()
  33445. containerLen := dd.ReadMapStart()
  33446. if canChange && v == nil {
  33447. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33448. v = make(map[bool]uintptr, xlen)
  33449. changed = true
  33450. }
  33451. if containerLen == 0 {
  33452. dd.ReadMapEnd()
  33453. return v, changed
  33454. }
  33455. var mk bool
  33456. var mv uintptr
  33457. hasLen := containerLen > 0
  33458. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33459. if esep {
  33460. dd.ReadMapElemKey()
  33461. }
  33462. mk = dd.DecodeBool()
  33463. if esep {
  33464. dd.ReadMapElemValue()
  33465. }
  33466. if dd.TryDecodeAsNil() {
  33467. if v == nil {
  33468. } else if d.h.DeleteOnNilMapValue {
  33469. delete(v, mk)
  33470. } else {
  33471. v[mk] = 0
  33472. }
  33473. continue
  33474. }
  33475. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  33476. if v != nil {
  33477. v[mk] = mv
  33478. }
  33479. }
  33480. dd.ReadMapEnd()
  33481. return v, changed
  33482. }
  33483. func (d *Decoder) fastpathDecMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  33484. if rv.Kind() == reflect.Ptr {
  33485. vp := rv2i(rv).(*map[bool]int)
  33486. v, changed := fastpathTV.DecMapBoolIntV(*vp, true, d)
  33487. if changed {
  33488. *vp = v
  33489. }
  33490. } else {
  33491. fastpathTV.DecMapBoolIntV(rv2i(rv).(map[bool]int), false, d)
  33492. }
  33493. }
  33494. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, d *Decoder) {
  33495. v, changed := f.DecMapBoolIntV(*vp, true, d)
  33496. if changed {
  33497. *vp = v
  33498. }
  33499. }
  33500. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, canChange bool,
  33501. d *Decoder) (_ map[bool]int, changed bool) {
  33502. dd, esep := d.d, d.hh.hasElemSeparators()
  33503. containerLen := dd.ReadMapStart()
  33504. if canChange && v == nil {
  33505. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33506. v = make(map[bool]int, xlen)
  33507. changed = true
  33508. }
  33509. if containerLen == 0 {
  33510. dd.ReadMapEnd()
  33511. return v, changed
  33512. }
  33513. var mk bool
  33514. var mv int
  33515. hasLen := containerLen > 0
  33516. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33517. if esep {
  33518. dd.ReadMapElemKey()
  33519. }
  33520. mk = dd.DecodeBool()
  33521. if esep {
  33522. dd.ReadMapElemValue()
  33523. }
  33524. if dd.TryDecodeAsNil() {
  33525. if v == nil {
  33526. } else if d.h.DeleteOnNilMapValue {
  33527. delete(v, mk)
  33528. } else {
  33529. v[mk] = 0
  33530. }
  33531. continue
  33532. }
  33533. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  33534. if v != nil {
  33535. v[mk] = mv
  33536. }
  33537. }
  33538. dd.ReadMapEnd()
  33539. return v, changed
  33540. }
  33541. func (d *Decoder) fastpathDecMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  33542. if rv.Kind() == reflect.Ptr {
  33543. vp := rv2i(rv).(*map[bool]int8)
  33544. v, changed := fastpathTV.DecMapBoolInt8V(*vp, true, d)
  33545. if changed {
  33546. *vp = v
  33547. }
  33548. } else {
  33549. fastpathTV.DecMapBoolInt8V(rv2i(rv).(map[bool]int8), false, d)
  33550. }
  33551. }
  33552. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, d *Decoder) {
  33553. v, changed := f.DecMapBoolInt8V(*vp, true, d)
  33554. if changed {
  33555. *vp = v
  33556. }
  33557. }
  33558. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, canChange bool,
  33559. d *Decoder) (_ map[bool]int8, changed bool) {
  33560. dd, esep := d.d, d.hh.hasElemSeparators()
  33561. containerLen := dd.ReadMapStart()
  33562. if canChange && v == nil {
  33563. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  33564. v = make(map[bool]int8, xlen)
  33565. changed = true
  33566. }
  33567. if containerLen == 0 {
  33568. dd.ReadMapEnd()
  33569. return v, changed
  33570. }
  33571. var mk bool
  33572. var mv int8
  33573. hasLen := containerLen > 0
  33574. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33575. if esep {
  33576. dd.ReadMapElemKey()
  33577. }
  33578. mk = dd.DecodeBool()
  33579. if esep {
  33580. dd.ReadMapElemValue()
  33581. }
  33582. if dd.TryDecodeAsNil() {
  33583. if v == nil {
  33584. } else if d.h.DeleteOnNilMapValue {
  33585. delete(v, mk)
  33586. } else {
  33587. v[mk] = 0
  33588. }
  33589. continue
  33590. }
  33591. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  33592. if v != nil {
  33593. v[mk] = mv
  33594. }
  33595. }
  33596. dd.ReadMapEnd()
  33597. return v, changed
  33598. }
  33599. func (d *Decoder) fastpathDecMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  33600. if rv.Kind() == reflect.Ptr {
  33601. vp := rv2i(rv).(*map[bool]int16)
  33602. v, changed := fastpathTV.DecMapBoolInt16V(*vp, true, d)
  33603. if changed {
  33604. *vp = v
  33605. }
  33606. } else {
  33607. fastpathTV.DecMapBoolInt16V(rv2i(rv).(map[bool]int16), false, d)
  33608. }
  33609. }
  33610. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, d *Decoder) {
  33611. v, changed := f.DecMapBoolInt16V(*vp, true, d)
  33612. if changed {
  33613. *vp = v
  33614. }
  33615. }
  33616. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, canChange bool,
  33617. d *Decoder) (_ map[bool]int16, changed bool) {
  33618. dd, esep := d.d, d.hh.hasElemSeparators()
  33619. containerLen := dd.ReadMapStart()
  33620. if canChange && v == nil {
  33621. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  33622. v = make(map[bool]int16, xlen)
  33623. changed = true
  33624. }
  33625. if containerLen == 0 {
  33626. dd.ReadMapEnd()
  33627. return v, changed
  33628. }
  33629. var mk bool
  33630. var mv int16
  33631. hasLen := containerLen > 0
  33632. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33633. if esep {
  33634. dd.ReadMapElemKey()
  33635. }
  33636. mk = dd.DecodeBool()
  33637. if esep {
  33638. dd.ReadMapElemValue()
  33639. }
  33640. if dd.TryDecodeAsNil() {
  33641. if v == nil {
  33642. } else if d.h.DeleteOnNilMapValue {
  33643. delete(v, mk)
  33644. } else {
  33645. v[mk] = 0
  33646. }
  33647. continue
  33648. }
  33649. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  33650. if v != nil {
  33651. v[mk] = mv
  33652. }
  33653. }
  33654. dd.ReadMapEnd()
  33655. return v, changed
  33656. }
  33657. func (d *Decoder) fastpathDecMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  33658. if rv.Kind() == reflect.Ptr {
  33659. vp := rv2i(rv).(*map[bool]int32)
  33660. v, changed := fastpathTV.DecMapBoolInt32V(*vp, true, d)
  33661. if changed {
  33662. *vp = v
  33663. }
  33664. } else {
  33665. fastpathTV.DecMapBoolInt32V(rv2i(rv).(map[bool]int32), false, d)
  33666. }
  33667. }
  33668. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, d *Decoder) {
  33669. v, changed := f.DecMapBoolInt32V(*vp, true, d)
  33670. if changed {
  33671. *vp = v
  33672. }
  33673. }
  33674. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, canChange bool,
  33675. d *Decoder) (_ map[bool]int32, changed bool) {
  33676. dd, esep := d.d, d.hh.hasElemSeparators()
  33677. containerLen := dd.ReadMapStart()
  33678. if canChange && v == nil {
  33679. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  33680. v = make(map[bool]int32, xlen)
  33681. changed = true
  33682. }
  33683. if containerLen == 0 {
  33684. dd.ReadMapEnd()
  33685. return v, changed
  33686. }
  33687. var mk bool
  33688. var mv int32
  33689. hasLen := containerLen > 0
  33690. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33691. if esep {
  33692. dd.ReadMapElemKey()
  33693. }
  33694. mk = dd.DecodeBool()
  33695. if esep {
  33696. dd.ReadMapElemValue()
  33697. }
  33698. if dd.TryDecodeAsNil() {
  33699. if v == nil {
  33700. } else if d.h.DeleteOnNilMapValue {
  33701. delete(v, mk)
  33702. } else {
  33703. v[mk] = 0
  33704. }
  33705. continue
  33706. }
  33707. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  33708. if v != nil {
  33709. v[mk] = mv
  33710. }
  33711. }
  33712. dd.ReadMapEnd()
  33713. return v, changed
  33714. }
  33715. func (d *Decoder) fastpathDecMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  33716. if rv.Kind() == reflect.Ptr {
  33717. vp := rv2i(rv).(*map[bool]int64)
  33718. v, changed := fastpathTV.DecMapBoolInt64V(*vp, true, d)
  33719. if changed {
  33720. *vp = v
  33721. }
  33722. } else {
  33723. fastpathTV.DecMapBoolInt64V(rv2i(rv).(map[bool]int64), false, d)
  33724. }
  33725. }
  33726. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, d *Decoder) {
  33727. v, changed := f.DecMapBoolInt64V(*vp, true, d)
  33728. if changed {
  33729. *vp = v
  33730. }
  33731. }
  33732. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, canChange bool,
  33733. d *Decoder) (_ map[bool]int64, changed bool) {
  33734. dd, esep := d.d, d.hh.hasElemSeparators()
  33735. containerLen := dd.ReadMapStart()
  33736. if canChange && v == nil {
  33737. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33738. v = make(map[bool]int64, xlen)
  33739. changed = true
  33740. }
  33741. if containerLen == 0 {
  33742. dd.ReadMapEnd()
  33743. return v, changed
  33744. }
  33745. var mk bool
  33746. var mv int64
  33747. hasLen := containerLen > 0
  33748. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33749. if esep {
  33750. dd.ReadMapElemKey()
  33751. }
  33752. mk = dd.DecodeBool()
  33753. if esep {
  33754. dd.ReadMapElemValue()
  33755. }
  33756. if dd.TryDecodeAsNil() {
  33757. if v == nil {
  33758. } else if d.h.DeleteOnNilMapValue {
  33759. delete(v, mk)
  33760. } else {
  33761. v[mk] = 0
  33762. }
  33763. continue
  33764. }
  33765. mv = dd.DecodeInt64()
  33766. if v != nil {
  33767. v[mk] = mv
  33768. }
  33769. }
  33770. dd.ReadMapEnd()
  33771. return v, changed
  33772. }
  33773. func (d *Decoder) fastpathDecMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  33774. if rv.Kind() == reflect.Ptr {
  33775. vp := rv2i(rv).(*map[bool]float32)
  33776. v, changed := fastpathTV.DecMapBoolFloat32V(*vp, true, d)
  33777. if changed {
  33778. *vp = v
  33779. }
  33780. } else {
  33781. fastpathTV.DecMapBoolFloat32V(rv2i(rv).(map[bool]float32), false, d)
  33782. }
  33783. }
  33784. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, d *Decoder) {
  33785. v, changed := f.DecMapBoolFloat32V(*vp, true, d)
  33786. if changed {
  33787. *vp = v
  33788. }
  33789. }
  33790. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, canChange bool,
  33791. d *Decoder) (_ map[bool]float32, changed bool) {
  33792. dd, esep := d.d, d.hh.hasElemSeparators()
  33793. containerLen := dd.ReadMapStart()
  33794. if canChange && v == nil {
  33795. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  33796. v = make(map[bool]float32, xlen)
  33797. changed = true
  33798. }
  33799. if containerLen == 0 {
  33800. dd.ReadMapEnd()
  33801. return v, changed
  33802. }
  33803. var mk bool
  33804. var mv float32
  33805. hasLen := containerLen > 0
  33806. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33807. if esep {
  33808. dd.ReadMapElemKey()
  33809. }
  33810. mk = dd.DecodeBool()
  33811. if esep {
  33812. dd.ReadMapElemValue()
  33813. }
  33814. if dd.TryDecodeAsNil() {
  33815. if v == nil {
  33816. } else if d.h.DeleteOnNilMapValue {
  33817. delete(v, mk)
  33818. } else {
  33819. v[mk] = 0
  33820. }
  33821. continue
  33822. }
  33823. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  33824. if v != nil {
  33825. v[mk] = mv
  33826. }
  33827. }
  33828. dd.ReadMapEnd()
  33829. return v, changed
  33830. }
  33831. func (d *Decoder) fastpathDecMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  33832. if rv.Kind() == reflect.Ptr {
  33833. vp := rv2i(rv).(*map[bool]float64)
  33834. v, changed := fastpathTV.DecMapBoolFloat64V(*vp, true, d)
  33835. if changed {
  33836. *vp = v
  33837. }
  33838. } else {
  33839. fastpathTV.DecMapBoolFloat64V(rv2i(rv).(map[bool]float64), false, d)
  33840. }
  33841. }
  33842. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, d *Decoder) {
  33843. v, changed := f.DecMapBoolFloat64V(*vp, true, d)
  33844. if changed {
  33845. *vp = v
  33846. }
  33847. }
  33848. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, canChange bool,
  33849. d *Decoder) (_ map[bool]float64, changed bool) {
  33850. dd, esep := d.d, d.hh.hasElemSeparators()
  33851. containerLen := dd.ReadMapStart()
  33852. if canChange && v == nil {
  33853. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33854. v = make(map[bool]float64, xlen)
  33855. changed = true
  33856. }
  33857. if containerLen == 0 {
  33858. dd.ReadMapEnd()
  33859. return v, changed
  33860. }
  33861. var mk bool
  33862. var mv float64
  33863. hasLen := containerLen > 0
  33864. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33865. if esep {
  33866. dd.ReadMapElemKey()
  33867. }
  33868. mk = dd.DecodeBool()
  33869. if esep {
  33870. dd.ReadMapElemValue()
  33871. }
  33872. if dd.TryDecodeAsNil() {
  33873. if v == nil {
  33874. } else if d.h.DeleteOnNilMapValue {
  33875. delete(v, mk)
  33876. } else {
  33877. v[mk] = 0
  33878. }
  33879. continue
  33880. }
  33881. mv = dd.DecodeFloat64()
  33882. if v != nil {
  33883. v[mk] = mv
  33884. }
  33885. }
  33886. dd.ReadMapEnd()
  33887. return v, changed
  33888. }
  33889. func (d *Decoder) fastpathDecMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  33890. if rv.Kind() == reflect.Ptr {
  33891. vp := rv2i(rv).(*map[bool]bool)
  33892. v, changed := fastpathTV.DecMapBoolBoolV(*vp, true, d)
  33893. if changed {
  33894. *vp = v
  33895. }
  33896. } else {
  33897. fastpathTV.DecMapBoolBoolV(rv2i(rv).(map[bool]bool), false, d)
  33898. }
  33899. }
  33900. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, d *Decoder) {
  33901. v, changed := f.DecMapBoolBoolV(*vp, true, d)
  33902. if changed {
  33903. *vp = v
  33904. }
  33905. }
  33906. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, canChange bool,
  33907. d *Decoder) (_ map[bool]bool, changed bool) {
  33908. dd, esep := d.d, d.hh.hasElemSeparators()
  33909. containerLen := dd.ReadMapStart()
  33910. if canChange && v == nil {
  33911. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  33912. v = make(map[bool]bool, xlen)
  33913. changed = true
  33914. }
  33915. if containerLen == 0 {
  33916. dd.ReadMapEnd()
  33917. return v, changed
  33918. }
  33919. var mk bool
  33920. var mv bool
  33921. hasLen := containerLen > 0
  33922. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33923. if esep {
  33924. dd.ReadMapElemKey()
  33925. }
  33926. mk = dd.DecodeBool()
  33927. if esep {
  33928. dd.ReadMapElemValue()
  33929. }
  33930. if dd.TryDecodeAsNil() {
  33931. if v == nil {
  33932. } else if d.h.DeleteOnNilMapValue {
  33933. delete(v, mk)
  33934. } else {
  33935. v[mk] = false
  33936. }
  33937. continue
  33938. }
  33939. mv = dd.DecodeBool()
  33940. if v != nil {
  33941. v[mk] = mv
  33942. }
  33943. }
  33944. dd.ReadMapEnd()
  33945. return v, changed
  33946. }