fast-path.generated.go 731 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724
  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. // ************************************************************
  5. // DO NOT EDIT.
  6. // THIS FILE IS AUTO-GENERATED from fast-path.go.tmpl
  7. // ************************************************************
  8. package codec
  9. // Fast path functions try to create a fast path encode or decode implementation
  10. // for common maps and slices.
  11. //
  12. // We define the functions and register then in this single file
  13. // so as not to pollute the encode.go and decode.go, and create a dependency in there.
  14. // This file can be omitted without causing a build failure.
  15. //
  16. // The advantage of fast paths is:
  17. // - Many calls bypass reflection altogether
  18. //
  19. // Currently support
  20. // - slice of all builtin types,
  21. // - map of all builtin types to string or interface value
  22. // - symmetrical maps of all builtin types (e.g. str-str, uint8-uint8)
  23. // This should provide adequate "typical" implementations.
  24. //
  25. // Note that fast track decode functions must handle values for which an address cannot be obtained.
  26. // For example:
  27. // m2 := map[string]int{}
  28. // p2 := []interface{}{m2}
  29. // // decoding into p2 will bomb if fast track functions do not treat like unaddressable.
  30. //
  31. import (
  32. "reflect"
  33. "sort"
  34. )
  35. const fastpathEnabled = true
  36. type fastpathT struct{}
  37. var fastpathTV fastpathT
  38. type fastpathE struct {
  39. rtid uintptr
  40. rt reflect.Type
  41. encfn func(*Encoder, *codecFnInfo, reflect.Value)
  42. decfn func(*Decoder, *codecFnInfo, reflect.Value)
  43. }
  44. type fastpathA [271]fastpathE
  45. func (x *fastpathA) index(rtid uintptr) int {
  46. // use binary search to grab the index (adapted from sort/search.go)
  47. h, i, j := 0, 0, 271 // len(x)
  48. for i < j {
  49. h = i + (j-i)/2
  50. if x[h].rtid < rtid {
  51. i = h + 1
  52. } else {
  53. j = h
  54. }
  55. }
  56. if i < 271 && x[i].rtid == rtid {
  57. return i
  58. }
  59. return -1
  60. }
  61. type fastpathAslice []fastpathE
  62. func (x fastpathAslice) Len() int { return len(x) }
  63. func (x fastpathAslice) Less(i, j int) bool { return x[i].rtid < x[j].rtid }
  64. func (x fastpathAslice) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
  65. var fastpathAV fastpathA
  66. // due to possible initialization loop error, make fastpath in an init()
  67. func init() {
  68. i := 0
  69. fn := func(v interface{},
  70. fe func(*Encoder, *codecFnInfo, reflect.Value),
  71. fd func(*Decoder, *codecFnInfo, reflect.Value)) (f fastpathE) {
  72. xrt := reflect.TypeOf(v)
  73. xptr := rt2id(xrt)
  74. fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
  75. i++
  76. return
  77. }
  78. fn([]interface{}(nil), (*Encoder).fastpathEncSliceIntfR, (*Decoder).fastpathDecSliceIntfR)
  79. fn([]string(nil), (*Encoder).fastpathEncSliceStringR, (*Decoder).fastpathDecSliceStringR)
  80. fn([]float32(nil), (*Encoder).fastpathEncSliceFloat32R, (*Decoder).fastpathDecSliceFloat32R)
  81. fn([]float64(nil), (*Encoder).fastpathEncSliceFloat64R, (*Decoder).fastpathDecSliceFloat64R)
  82. fn([]uint(nil), (*Encoder).fastpathEncSliceUintR, (*Decoder).fastpathDecSliceUintR)
  83. fn([]uint16(nil), (*Encoder).fastpathEncSliceUint16R, (*Decoder).fastpathDecSliceUint16R)
  84. fn([]uint32(nil), (*Encoder).fastpathEncSliceUint32R, (*Decoder).fastpathDecSliceUint32R)
  85. fn([]uint64(nil), (*Encoder).fastpathEncSliceUint64R, (*Decoder).fastpathDecSliceUint64R)
  86. fn([]uintptr(nil), (*Encoder).fastpathEncSliceUintptrR, (*Decoder).fastpathDecSliceUintptrR)
  87. fn([]int(nil), (*Encoder).fastpathEncSliceIntR, (*Decoder).fastpathDecSliceIntR)
  88. fn([]int8(nil), (*Encoder).fastpathEncSliceInt8R, (*Decoder).fastpathDecSliceInt8R)
  89. fn([]int16(nil), (*Encoder).fastpathEncSliceInt16R, (*Decoder).fastpathDecSliceInt16R)
  90. fn([]int32(nil), (*Encoder).fastpathEncSliceInt32R, (*Decoder).fastpathDecSliceInt32R)
  91. fn([]int64(nil), (*Encoder).fastpathEncSliceInt64R, (*Decoder).fastpathDecSliceInt64R)
  92. fn([]bool(nil), (*Encoder).fastpathEncSliceBoolR, (*Decoder).fastpathDecSliceBoolR)
  93. fn(map[interface{}]interface{}(nil), (*Encoder).fastpathEncMapIntfIntfR, (*Decoder).fastpathDecMapIntfIntfR)
  94. fn(map[interface{}]string(nil), (*Encoder).fastpathEncMapIntfStringR, (*Decoder).fastpathDecMapIntfStringR)
  95. fn(map[interface{}]uint(nil), (*Encoder).fastpathEncMapIntfUintR, (*Decoder).fastpathDecMapIntfUintR)
  96. fn(map[interface{}]uint8(nil), (*Encoder).fastpathEncMapIntfUint8R, (*Decoder).fastpathDecMapIntfUint8R)
  97. fn(map[interface{}]uint16(nil), (*Encoder).fastpathEncMapIntfUint16R, (*Decoder).fastpathDecMapIntfUint16R)
  98. fn(map[interface{}]uint32(nil), (*Encoder).fastpathEncMapIntfUint32R, (*Decoder).fastpathDecMapIntfUint32R)
  99. fn(map[interface{}]uint64(nil), (*Encoder).fastpathEncMapIntfUint64R, (*Decoder).fastpathDecMapIntfUint64R)
  100. fn(map[interface{}]uintptr(nil), (*Encoder).fastpathEncMapIntfUintptrR, (*Decoder).fastpathDecMapIntfUintptrR)
  101. fn(map[interface{}]int(nil), (*Encoder).fastpathEncMapIntfIntR, (*Decoder).fastpathDecMapIntfIntR)
  102. fn(map[interface{}]int8(nil), (*Encoder).fastpathEncMapIntfInt8R, (*Decoder).fastpathDecMapIntfInt8R)
  103. fn(map[interface{}]int16(nil), (*Encoder).fastpathEncMapIntfInt16R, (*Decoder).fastpathDecMapIntfInt16R)
  104. fn(map[interface{}]int32(nil), (*Encoder).fastpathEncMapIntfInt32R, (*Decoder).fastpathDecMapIntfInt32R)
  105. fn(map[interface{}]int64(nil), (*Encoder).fastpathEncMapIntfInt64R, (*Decoder).fastpathDecMapIntfInt64R)
  106. fn(map[interface{}]float32(nil), (*Encoder).fastpathEncMapIntfFloat32R, (*Decoder).fastpathDecMapIntfFloat32R)
  107. fn(map[interface{}]float64(nil), (*Encoder).fastpathEncMapIntfFloat64R, (*Decoder).fastpathDecMapIntfFloat64R)
  108. fn(map[interface{}]bool(nil), (*Encoder).fastpathEncMapIntfBoolR, (*Decoder).fastpathDecMapIntfBoolR)
  109. fn(map[string]interface{}(nil), (*Encoder).fastpathEncMapStringIntfR, (*Decoder).fastpathDecMapStringIntfR)
  110. fn(map[string]string(nil), (*Encoder).fastpathEncMapStringStringR, (*Decoder).fastpathDecMapStringStringR)
  111. fn(map[string]uint(nil), (*Encoder).fastpathEncMapStringUintR, (*Decoder).fastpathDecMapStringUintR)
  112. fn(map[string]uint8(nil), (*Encoder).fastpathEncMapStringUint8R, (*Decoder).fastpathDecMapStringUint8R)
  113. fn(map[string]uint16(nil), (*Encoder).fastpathEncMapStringUint16R, (*Decoder).fastpathDecMapStringUint16R)
  114. fn(map[string]uint32(nil), (*Encoder).fastpathEncMapStringUint32R, (*Decoder).fastpathDecMapStringUint32R)
  115. fn(map[string]uint64(nil), (*Encoder).fastpathEncMapStringUint64R, (*Decoder).fastpathDecMapStringUint64R)
  116. fn(map[string]uintptr(nil), (*Encoder).fastpathEncMapStringUintptrR, (*Decoder).fastpathDecMapStringUintptrR)
  117. fn(map[string]int(nil), (*Encoder).fastpathEncMapStringIntR, (*Decoder).fastpathDecMapStringIntR)
  118. fn(map[string]int8(nil), (*Encoder).fastpathEncMapStringInt8R, (*Decoder).fastpathDecMapStringInt8R)
  119. fn(map[string]int16(nil), (*Encoder).fastpathEncMapStringInt16R, (*Decoder).fastpathDecMapStringInt16R)
  120. fn(map[string]int32(nil), (*Encoder).fastpathEncMapStringInt32R, (*Decoder).fastpathDecMapStringInt32R)
  121. fn(map[string]int64(nil), (*Encoder).fastpathEncMapStringInt64R, (*Decoder).fastpathDecMapStringInt64R)
  122. fn(map[string]float32(nil), (*Encoder).fastpathEncMapStringFloat32R, (*Decoder).fastpathDecMapStringFloat32R)
  123. fn(map[string]float64(nil), (*Encoder).fastpathEncMapStringFloat64R, (*Decoder).fastpathDecMapStringFloat64R)
  124. fn(map[string]bool(nil), (*Encoder).fastpathEncMapStringBoolR, (*Decoder).fastpathDecMapStringBoolR)
  125. fn(map[float32]interface{}(nil), (*Encoder).fastpathEncMapFloat32IntfR, (*Decoder).fastpathDecMapFloat32IntfR)
  126. fn(map[float32]string(nil), (*Encoder).fastpathEncMapFloat32StringR, (*Decoder).fastpathDecMapFloat32StringR)
  127. fn(map[float32]uint(nil), (*Encoder).fastpathEncMapFloat32UintR, (*Decoder).fastpathDecMapFloat32UintR)
  128. fn(map[float32]uint8(nil), (*Encoder).fastpathEncMapFloat32Uint8R, (*Decoder).fastpathDecMapFloat32Uint8R)
  129. fn(map[float32]uint16(nil), (*Encoder).fastpathEncMapFloat32Uint16R, (*Decoder).fastpathDecMapFloat32Uint16R)
  130. fn(map[float32]uint32(nil), (*Encoder).fastpathEncMapFloat32Uint32R, (*Decoder).fastpathDecMapFloat32Uint32R)
  131. fn(map[float32]uint64(nil), (*Encoder).fastpathEncMapFloat32Uint64R, (*Decoder).fastpathDecMapFloat32Uint64R)
  132. fn(map[float32]uintptr(nil), (*Encoder).fastpathEncMapFloat32UintptrR, (*Decoder).fastpathDecMapFloat32UintptrR)
  133. fn(map[float32]int(nil), (*Encoder).fastpathEncMapFloat32IntR, (*Decoder).fastpathDecMapFloat32IntR)
  134. fn(map[float32]int8(nil), (*Encoder).fastpathEncMapFloat32Int8R, (*Decoder).fastpathDecMapFloat32Int8R)
  135. fn(map[float32]int16(nil), (*Encoder).fastpathEncMapFloat32Int16R, (*Decoder).fastpathDecMapFloat32Int16R)
  136. fn(map[float32]int32(nil), (*Encoder).fastpathEncMapFloat32Int32R, (*Decoder).fastpathDecMapFloat32Int32R)
  137. fn(map[float32]int64(nil), (*Encoder).fastpathEncMapFloat32Int64R, (*Decoder).fastpathDecMapFloat32Int64R)
  138. fn(map[float32]float32(nil), (*Encoder).fastpathEncMapFloat32Float32R, (*Decoder).fastpathDecMapFloat32Float32R)
  139. fn(map[float32]float64(nil), (*Encoder).fastpathEncMapFloat32Float64R, (*Decoder).fastpathDecMapFloat32Float64R)
  140. fn(map[float32]bool(nil), (*Encoder).fastpathEncMapFloat32BoolR, (*Decoder).fastpathDecMapFloat32BoolR)
  141. fn(map[float64]interface{}(nil), (*Encoder).fastpathEncMapFloat64IntfR, (*Decoder).fastpathDecMapFloat64IntfR)
  142. fn(map[float64]string(nil), (*Encoder).fastpathEncMapFloat64StringR, (*Decoder).fastpathDecMapFloat64StringR)
  143. fn(map[float64]uint(nil), (*Encoder).fastpathEncMapFloat64UintR, (*Decoder).fastpathDecMapFloat64UintR)
  144. fn(map[float64]uint8(nil), (*Encoder).fastpathEncMapFloat64Uint8R, (*Decoder).fastpathDecMapFloat64Uint8R)
  145. fn(map[float64]uint16(nil), (*Encoder).fastpathEncMapFloat64Uint16R, (*Decoder).fastpathDecMapFloat64Uint16R)
  146. fn(map[float64]uint32(nil), (*Encoder).fastpathEncMapFloat64Uint32R, (*Decoder).fastpathDecMapFloat64Uint32R)
  147. fn(map[float64]uint64(nil), (*Encoder).fastpathEncMapFloat64Uint64R, (*Decoder).fastpathDecMapFloat64Uint64R)
  148. fn(map[float64]uintptr(nil), (*Encoder).fastpathEncMapFloat64UintptrR, (*Decoder).fastpathDecMapFloat64UintptrR)
  149. fn(map[float64]int(nil), (*Encoder).fastpathEncMapFloat64IntR, (*Decoder).fastpathDecMapFloat64IntR)
  150. fn(map[float64]int8(nil), (*Encoder).fastpathEncMapFloat64Int8R, (*Decoder).fastpathDecMapFloat64Int8R)
  151. fn(map[float64]int16(nil), (*Encoder).fastpathEncMapFloat64Int16R, (*Decoder).fastpathDecMapFloat64Int16R)
  152. fn(map[float64]int32(nil), (*Encoder).fastpathEncMapFloat64Int32R, (*Decoder).fastpathDecMapFloat64Int32R)
  153. fn(map[float64]int64(nil), (*Encoder).fastpathEncMapFloat64Int64R, (*Decoder).fastpathDecMapFloat64Int64R)
  154. fn(map[float64]float32(nil), (*Encoder).fastpathEncMapFloat64Float32R, (*Decoder).fastpathDecMapFloat64Float32R)
  155. fn(map[float64]float64(nil), (*Encoder).fastpathEncMapFloat64Float64R, (*Decoder).fastpathDecMapFloat64Float64R)
  156. fn(map[float64]bool(nil), (*Encoder).fastpathEncMapFloat64BoolR, (*Decoder).fastpathDecMapFloat64BoolR)
  157. fn(map[uint]interface{}(nil), (*Encoder).fastpathEncMapUintIntfR, (*Decoder).fastpathDecMapUintIntfR)
  158. fn(map[uint]string(nil), (*Encoder).fastpathEncMapUintStringR, (*Decoder).fastpathDecMapUintStringR)
  159. fn(map[uint]uint(nil), (*Encoder).fastpathEncMapUintUintR, (*Decoder).fastpathDecMapUintUintR)
  160. fn(map[uint]uint8(nil), (*Encoder).fastpathEncMapUintUint8R, (*Decoder).fastpathDecMapUintUint8R)
  161. fn(map[uint]uint16(nil), (*Encoder).fastpathEncMapUintUint16R, (*Decoder).fastpathDecMapUintUint16R)
  162. fn(map[uint]uint32(nil), (*Encoder).fastpathEncMapUintUint32R, (*Decoder).fastpathDecMapUintUint32R)
  163. fn(map[uint]uint64(nil), (*Encoder).fastpathEncMapUintUint64R, (*Decoder).fastpathDecMapUintUint64R)
  164. fn(map[uint]uintptr(nil), (*Encoder).fastpathEncMapUintUintptrR, (*Decoder).fastpathDecMapUintUintptrR)
  165. fn(map[uint]int(nil), (*Encoder).fastpathEncMapUintIntR, (*Decoder).fastpathDecMapUintIntR)
  166. fn(map[uint]int8(nil), (*Encoder).fastpathEncMapUintInt8R, (*Decoder).fastpathDecMapUintInt8R)
  167. fn(map[uint]int16(nil), (*Encoder).fastpathEncMapUintInt16R, (*Decoder).fastpathDecMapUintInt16R)
  168. fn(map[uint]int32(nil), (*Encoder).fastpathEncMapUintInt32R, (*Decoder).fastpathDecMapUintInt32R)
  169. fn(map[uint]int64(nil), (*Encoder).fastpathEncMapUintInt64R, (*Decoder).fastpathDecMapUintInt64R)
  170. fn(map[uint]float32(nil), (*Encoder).fastpathEncMapUintFloat32R, (*Decoder).fastpathDecMapUintFloat32R)
  171. fn(map[uint]float64(nil), (*Encoder).fastpathEncMapUintFloat64R, (*Decoder).fastpathDecMapUintFloat64R)
  172. fn(map[uint]bool(nil), (*Encoder).fastpathEncMapUintBoolR, (*Decoder).fastpathDecMapUintBoolR)
  173. fn(map[uint8]interface{}(nil), (*Encoder).fastpathEncMapUint8IntfR, (*Decoder).fastpathDecMapUint8IntfR)
  174. fn(map[uint8]string(nil), (*Encoder).fastpathEncMapUint8StringR, (*Decoder).fastpathDecMapUint8StringR)
  175. fn(map[uint8]uint(nil), (*Encoder).fastpathEncMapUint8UintR, (*Decoder).fastpathDecMapUint8UintR)
  176. fn(map[uint8]uint8(nil), (*Encoder).fastpathEncMapUint8Uint8R, (*Decoder).fastpathDecMapUint8Uint8R)
  177. fn(map[uint8]uint16(nil), (*Encoder).fastpathEncMapUint8Uint16R, (*Decoder).fastpathDecMapUint8Uint16R)
  178. fn(map[uint8]uint32(nil), (*Encoder).fastpathEncMapUint8Uint32R, (*Decoder).fastpathDecMapUint8Uint32R)
  179. fn(map[uint8]uint64(nil), (*Encoder).fastpathEncMapUint8Uint64R, (*Decoder).fastpathDecMapUint8Uint64R)
  180. fn(map[uint8]uintptr(nil), (*Encoder).fastpathEncMapUint8UintptrR, (*Decoder).fastpathDecMapUint8UintptrR)
  181. fn(map[uint8]int(nil), (*Encoder).fastpathEncMapUint8IntR, (*Decoder).fastpathDecMapUint8IntR)
  182. fn(map[uint8]int8(nil), (*Encoder).fastpathEncMapUint8Int8R, (*Decoder).fastpathDecMapUint8Int8R)
  183. fn(map[uint8]int16(nil), (*Encoder).fastpathEncMapUint8Int16R, (*Decoder).fastpathDecMapUint8Int16R)
  184. fn(map[uint8]int32(nil), (*Encoder).fastpathEncMapUint8Int32R, (*Decoder).fastpathDecMapUint8Int32R)
  185. fn(map[uint8]int64(nil), (*Encoder).fastpathEncMapUint8Int64R, (*Decoder).fastpathDecMapUint8Int64R)
  186. fn(map[uint8]float32(nil), (*Encoder).fastpathEncMapUint8Float32R, (*Decoder).fastpathDecMapUint8Float32R)
  187. fn(map[uint8]float64(nil), (*Encoder).fastpathEncMapUint8Float64R, (*Decoder).fastpathDecMapUint8Float64R)
  188. fn(map[uint8]bool(nil), (*Encoder).fastpathEncMapUint8BoolR, (*Decoder).fastpathDecMapUint8BoolR)
  189. fn(map[uint16]interface{}(nil), (*Encoder).fastpathEncMapUint16IntfR, (*Decoder).fastpathDecMapUint16IntfR)
  190. fn(map[uint16]string(nil), (*Encoder).fastpathEncMapUint16StringR, (*Decoder).fastpathDecMapUint16StringR)
  191. fn(map[uint16]uint(nil), (*Encoder).fastpathEncMapUint16UintR, (*Decoder).fastpathDecMapUint16UintR)
  192. fn(map[uint16]uint8(nil), (*Encoder).fastpathEncMapUint16Uint8R, (*Decoder).fastpathDecMapUint16Uint8R)
  193. fn(map[uint16]uint16(nil), (*Encoder).fastpathEncMapUint16Uint16R, (*Decoder).fastpathDecMapUint16Uint16R)
  194. fn(map[uint16]uint32(nil), (*Encoder).fastpathEncMapUint16Uint32R, (*Decoder).fastpathDecMapUint16Uint32R)
  195. fn(map[uint16]uint64(nil), (*Encoder).fastpathEncMapUint16Uint64R, (*Decoder).fastpathDecMapUint16Uint64R)
  196. fn(map[uint16]uintptr(nil), (*Encoder).fastpathEncMapUint16UintptrR, (*Decoder).fastpathDecMapUint16UintptrR)
  197. fn(map[uint16]int(nil), (*Encoder).fastpathEncMapUint16IntR, (*Decoder).fastpathDecMapUint16IntR)
  198. fn(map[uint16]int8(nil), (*Encoder).fastpathEncMapUint16Int8R, (*Decoder).fastpathDecMapUint16Int8R)
  199. fn(map[uint16]int16(nil), (*Encoder).fastpathEncMapUint16Int16R, (*Decoder).fastpathDecMapUint16Int16R)
  200. fn(map[uint16]int32(nil), (*Encoder).fastpathEncMapUint16Int32R, (*Decoder).fastpathDecMapUint16Int32R)
  201. fn(map[uint16]int64(nil), (*Encoder).fastpathEncMapUint16Int64R, (*Decoder).fastpathDecMapUint16Int64R)
  202. fn(map[uint16]float32(nil), (*Encoder).fastpathEncMapUint16Float32R, (*Decoder).fastpathDecMapUint16Float32R)
  203. fn(map[uint16]float64(nil), (*Encoder).fastpathEncMapUint16Float64R, (*Decoder).fastpathDecMapUint16Float64R)
  204. fn(map[uint16]bool(nil), (*Encoder).fastpathEncMapUint16BoolR, (*Decoder).fastpathDecMapUint16BoolR)
  205. fn(map[uint32]interface{}(nil), (*Encoder).fastpathEncMapUint32IntfR, (*Decoder).fastpathDecMapUint32IntfR)
  206. fn(map[uint32]string(nil), (*Encoder).fastpathEncMapUint32StringR, (*Decoder).fastpathDecMapUint32StringR)
  207. fn(map[uint32]uint(nil), (*Encoder).fastpathEncMapUint32UintR, (*Decoder).fastpathDecMapUint32UintR)
  208. fn(map[uint32]uint8(nil), (*Encoder).fastpathEncMapUint32Uint8R, (*Decoder).fastpathDecMapUint32Uint8R)
  209. fn(map[uint32]uint16(nil), (*Encoder).fastpathEncMapUint32Uint16R, (*Decoder).fastpathDecMapUint32Uint16R)
  210. fn(map[uint32]uint32(nil), (*Encoder).fastpathEncMapUint32Uint32R, (*Decoder).fastpathDecMapUint32Uint32R)
  211. fn(map[uint32]uint64(nil), (*Encoder).fastpathEncMapUint32Uint64R, (*Decoder).fastpathDecMapUint32Uint64R)
  212. fn(map[uint32]uintptr(nil), (*Encoder).fastpathEncMapUint32UintptrR, (*Decoder).fastpathDecMapUint32UintptrR)
  213. fn(map[uint32]int(nil), (*Encoder).fastpathEncMapUint32IntR, (*Decoder).fastpathDecMapUint32IntR)
  214. fn(map[uint32]int8(nil), (*Encoder).fastpathEncMapUint32Int8R, (*Decoder).fastpathDecMapUint32Int8R)
  215. fn(map[uint32]int16(nil), (*Encoder).fastpathEncMapUint32Int16R, (*Decoder).fastpathDecMapUint32Int16R)
  216. fn(map[uint32]int32(nil), (*Encoder).fastpathEncMapUint32Int32R, (*Decoder).fastpathDecMapUint32Int32R)
  217. fn(map[uint32]int64(nil), (*Encoder).fastpathEncMapUint32Int64R, (*Decoder).fastpathDecMapUint32Int64R)
  218. fn(map[uint32]float32(nil), (*Encoder).fastpathEncMapUint32Float32R, (*Decoder).fastpathDecMapUint32Float32R)
  219. fn(map[uint32]float64(nil), (*Encoder).fastpathEncMapUint32Float64R, (*Decoder).fastpathDecMapUint32Float64R)
  220. fn(map[uint32]bool(nil), (*Encoder).fastpathEncMapUint32BoolR, (*Decoder).fastpathDecMapUint32BoolR)
  221. fn(map[uint64]interface{}(nil), (*Encoder).fastpathEncMapUint64IntfR, (*Decoder).fastpathDecMapUint64IntfR)
  222. fn(map[uint64]string(nil), (*Encoder).fastpathEncMapUint64StringR, (*Decoder).fastpathDecMapUint64StringR)
  223. fn(map[uint64]uint(nil), (*Encoder).fastpathEncMapUint64UintR, (*Decoder).fastpathDecMapUint64UintR)
  224. fn(map[uint64]uint8(nil), (*Encoder).fastpathEncMapUint64Uint8R, (*Decoder).fastpathDecMapUint64Uint8R)
  225. fn(map[uint64]uint16(nil), (*Encoder).fastpathEncMapUint64Uint16R, (*Decoder).fastpathDecMapUint64Uint16R)
  226. fn(map[uint64]uint32(nil), (*Encoder).fastpathEncMapUint64Uint32R, (*Decoder).fastpathDecMapUint64Uint32R)
  227. fn(map[uint64]uint64(nil), (*Encoder).fastpathEncMapUint64Uint64R, (*Decoder).fastpathDecMapUint64Uint64R)
  228. fn(map[uint64]uintptr(nil), (*Encoder).fastpathEncMapUint64UintptrR, (*Decoder).fastpathDecMapUint64UintptrR)
  229. fn(map[uint64]int(nil), (*Encoder).fastpathEncMapUint64IntR, (*Decoder).fastpathDecMapUint64IntR)
  230. fn(map[uint64]int8(nil), (*Encoder).fastpathEncMapUint64Int8R, (*Decoder).fastpathDecMapUint64Int8R)
  231. fn(map[uint64]int16(nil), (*Encoder).fastpathEncMapUint64Int16R, (*Decoder).fastpathDecMapUint64Int16R)
  232. fn(map[uint64]int32(nil), (*Encoder).fastpathEncMapUint64Int32R, (*Decoder).fastpathDecMapUint64Int32R)
  233. fn(map[uint64]int64(nil), (*Encoder).fastpathEncMapUint64Int64R, (*Decoder).fastpathDecMapUint64Int64R)
  234. fn(map[uint64]float32(nil), (*Encoder).fastpathEncMapUint64Float32R, (*Decoder).fastpathDecMapUint64Float32R)
  235. fn(map[uint64]float64(nil), (*Encoder).fastpathEncMapUint64Float64R, (*Decoder).fastpathDecMapUint64Float64R)
  236. fn(map[uint64]bool(nil), (*Encoder).fastpathEncMapUint64BoolR, (*Decoder).fastpathDecMapUint64BoolR)
  237. fn(map[uintptr]interface{}(nil), (*Encoder).fastpathEncMapUintptrIntfR, (*Decoder).fastpathDecMapUintptrIntfR)
  238. fn(map[uintptr]string(nil), (*Encoder).fastpathEncMapUintptrStringR, (*Decoder).fastpathDecMapUintptrStringR)
  239. fn(map[uintptr]uint(nil), (*Encoder).fastpathEncMapUintptrUintR, (*Decoder).fastpathDecMapUintptrUintR)
  240. fn(map[uintptr]uint8(nil), (*Encoder).fastpathEncMapUintptrUint8R, (*Decoder).fastpathDecMapUintptrUint8R)
  241. fn(map[uintptr]uint16(nil), (*Encoder).fastpathEncMapUintptrUint16R, (*Decoder).fastpathDecMapUintptrUint16R)
  242. fn(map[uintptr]uint32(nil), (*Encoder).fastpathEncMapUintptrUint32R, (*Decoder).fastpathDecMapUintptrUint32R)
  243. fn(map[uintptr]uint64(nil), (*Encoder).fastpathEncMapUintptrUint64R, (*Decoder).fastpathDecMapUintptrUint64R)
  244. fn(map[uintptr]uintptr(nil), (*Encoder).fastpathEncMapUintptrUintptrR, (*Decoder).fastpathDecMapUintptrUintptrR)
  245. fn(map[uintptr]int(nil), (*Encoder).fastpathEncMapUintptrIntR, (*Decoder).fastpathDecMapUintptrIntR)
  246. fn(map[uintptr]int8(nil), (*Encoder).fastpathEncMapUintptrInt8R, (*Decoder).fastpathDecMapUintptrInt8R)
  247. fn(map[uintptr]int16(nil), (*Encoder).fastpathEncMapUintptrInt16R, (*Decoder).fastpathDecMapUintptrInt16R)
  248. fn(map[uintptr]int32(nil), (*Encoder).fastpathEncMapUintptrInt32R, (*Decoder).fastpathDecMapUintptrInt32R)
  249. fn(map[uintptr]int64(nil), (*Encoder).fastpathEncMapUintptrInt64R, (*Decoder).fastpathDecMapUintptrInt64R)
  250. fn(map[uintptr]float32(nil), (*Encoder).fastpathEncMapUintptrFloat32R, (*Decoder).fastpathDecMapUintptrFloat32R)
  251. fn(map[uintptr]float64(nil), (*Encoder).fastpathEncMapUintptrFloat64R, (*Decoder).fastpathDecMapUintptrFloat64R)
  252. fn(map[uintptr]bool(nil), (*Encoder).fastpathEncMapUintptrBoolR, (*Decoder).fastpathDecMapUintptrBoolR)
  253. fn(map[int]interface{}(nil), (*Encoder).fastpathEncMapIntIntfR, (*Decoder).fastpathDecMapIntIntfR)
  254. fn(map[int]string(nil), (*Encoder).fastpathEncMapIntStringR, (*Decoder).fastpathDecMapIntStringR)
  255. fn(map[int]uint(nil), (*Encoder).fastpathEncMapIntUintR, (*Decoder).fastpathDecMapIntUintR)
  256. fn(map[int]uint8(nil), (*Encoder).fastpathEncMapIntUint8R, (*Decoder).fastpathDecMapIntUint8R)
  257. fn(map[int]uint16(nil), (*Encoder).fastpathEncMapIntUint16R, (*Decoder).fastpathDecMapIntUint16R)
  258. fn(map[int]uint32(nil), (*Encoder).fastpathEncMapIntUint32R, (*Decoder).fastpathDecMapIntUint32R)
  259. fn(map[int]uint64(nil), (*Encoder).fastpathEncMapIntUint64R, (*Decoder).fastpathDecMapIntUint64R)
  260. fn(map[int]uintptr(nil), (*Encoder).fastpathEncMapIntUintptrR, (*Decoder).fastpathDecMapIntUintptrR)
  261. fn(map[int]int(nil), (*Encoder).fastpathEncMapIntIntR, (*Decoder).fastpathDecMapIntIntR)
  262. fn(map[int]int8(nil), (*Encoder).fastpathEncMapIntInt8R, (*Decoder).fastpathDecMapIntInt8R)
  263. fn(map[int]int16(nil), (*Encoder).fastpathEncMapIntInt16R, (*Decoder).fastpathDecMapIntInt16R)
  264. fn(map[int]int32(nil), (*Encoder).fastpathEncMapIntInt32R, (*Decoder).fastpathDecMapIntInt32R)
  265. fn(map[int]int64(nil), (*Encoder).fastpathEncMapIntInt64R, (*Decoder).fastpathDecMapIntInt64R)
  266. fn(map[int]float32(nil), (*Encoder).fastpathEncMapIntFloat32R, (*Decoder).fastpathDecMapIntFloat32R)
  267. fn(map[int]float64(nil), (*Encoder).fastpathEncMapIntFloat64R, (*Decoder).fastpathDecMapIntFloat64R)
  268. fn(map[int]bool(nil), (*Encoder).fastpathEncMapIntBoolR, (*Decoder).fastpathDecMapIntBoolR)
  269. fn(map[int8]interface{}(nil), (*Encoder).fastpathEncMapInt8IntfR, (*Decoder).fastpathDecMapInt8IntfR)
  270. fn(map[int8]string(nil), (*Encoder).fastpathEncMapInt8StringR, (*Decoder).fastpathDecMapInt8StringR)
  271. fn(map[int8]uint(nil), (*Encoder).fastpathEncMapInt8UintR, (*Decoder).fastpathDecMapInt8UintR)
  272. fn(map[int8]uint8(nil), (*Encoder).fastpathEncMapInt8Uint8R, (*Decoder).fastpathDecMapInt8Uint8R)
  273. fn(map[int8]uint16(nil), (*Encoder).fastpathEncMapInt8Uint16R, (*Decoder).fastpathDecMapInt8Uint16R)
  274. fn(map[int8]uint32(nil), (*Encoder).fastpathEncMapInt8Uint32R, (*Decoder).fastpathDecMapInt8Uint32R)
  275. fn(map[int8]uint64(nil), (*Encoder).fastpathEncMapInt8Uint64R, (*Decoder).fastpathDecMapInt8Uint64R)
  276. fn(map[int8]uintptr(nil), (*Encoder).fastpathEncMapInt8UintptrR, (*Decoder).fastpathDecMapInt8UintptrR)
  277. fn(map[int8]int(nil), (*Encoder).fastpathEncMapInt8IntR, (*Decoder).fastpathDecMapInt8IntR)
  278. fn(map[int8]int8(nil), (*Encoder).fastpathEncMapInt8Int8R, (*Decoder).fastpathDecMapInt8Int8R)
  279. fn(map[int8]int16(nil), (*Encoder).fastpathEncMapInt8Int16R, (*Decoder).fastpathDecMapInt8Int16R)
  280. fn(map[int8]int32(nil), (*Encoder).fastpathEncMapInt8Int32R, (*Decoder).fastpathDecMapInt8Int32R)
  281. fn(map[int8]int64(nil), (*Encoder).fastpathEncMapInt8Int64R, (*Decoder).fastpathDecMapInt8Int64R)
  282. fn(map[int8]float32(nil), (*Encoder).fastpathEncMapInt8Float32R, (*Decoder).fastpathDecMapInt8Float32R)
  283. fn(map[int8]float64(nil), (*Encoder).fastpathEncMapInt8Float64R, (*Decoder).fastpathDecMapInt8Float64R)
  284. fn(map[int8]bool(nil), (*Encoder).fastpathEncMapInt8BoolR, (*Decoder).fastpathDecMapInt8BoolR)
  285. fn(map[int16]interface{}(nil), (*Encoder).fastpathEncMapInt16IntfR, (*Decoder).fastpathDecMapInt16IntfR)
  286. fn(map[int16]string(nil), (*Encoder).fastpathEncMapInt16StringR, (*Decoder).fastpathDecMapInt16StringR)
  287. fn(map[int16]uint(nil), (*Encoder).fastpathEncMapInt16UintR, (*Decoder).fastpathDecMapInt16UintR)
  288. fn(map[int16]uint8(nil), (*Encoder).fastpathEncMapInt16Uint8R, (*Decoder).fastpathDecMapInt16Uint8R)
  289. fn(map[int16]uint16(nil), (*Encoder).fastpathEncMapInt16Uint16R, (*Decoder).fastpathDecMapInt16Uint16R)
  290. fn(map[int16]uint32(nil), (*Encoder).fastpathEncMapInt16Uint32R, (*Decoder).fastpathDecMapInt16Uint32R)
  291. fn(map[int16]uint64(nil), (*Encoder).fastpathEncMapInt16Uint64R, (*Decoder).fastpathDecMapInt16Uint64R)
  292. fn(map[int16]uintptr(nil), (*Encoder).fastpathEncMapInt16UintptrR, (*Decoder).fastpathDecMapInt16UintptrR)
  293. fn(map[int16]int(nil), (*Encoder).fastpathEncMapInt16IntR, (*Decoder).fastpathDecMapInt16IntR)
  294. fn(map[int16]int8(nil), (*Encoder).fastpathEncMapInt16Int8R, (*Decoder).fastpathDecMapInt16Int8R)
  295. fn(map[int16]int16(nil), (*Encoder).fastpathEncMapInt16Int16R, (*Decoder).fastpathDecMapInt16Int16R)
  296. fn(map[int16]int32(nil), (*Encoder).fastpathEncMapInt16Int32R, (*Decoder).fastpathDecMapInt16Int32R)
  297. fn(map[int16]int64(nil), (*Encoder).fastpathEncMapInt16Int64R, (*Decoder).fastpathDecMapInt16Int64R)
  298. fn(map[int16]float32(nil), (*Encoder).fastpathEncMapInt16Float32R, (*Decoder).fastpathDecMapInt16Float32R)
  299. fn(map[int16]float64(nil), (*Encoder).fastpathEncMapInt16Float64R, (*Decoder).fastpathDecMapInt16Float64R)
  300. fn(map[int16]bool(nil), (*Encoder).fastpathEncMapInt16BoolR, (*Decoder).fastpathDecMapInt16BoolR)
  301. fn(map[int32]interface{}(nil), (*Encoder).fastpathEncMapInt32IntfR, (*Decoder).fastpathDecMapInt32IntfR)
  302. fn(map[int32]string(nil), (*Encoder).fastpathEncMapInt32StringR, (*Decoder).fastpathDecMapInt32StringR)
  303. fn(map[int32]uint(nil), (*Encoder).fastpathEncMapInt32UintR, (*Decoder).fastpathDecMapInt32UintR)
  304. fn(map[int32]uint8(nil), (*Encoder).fastpathEncMapInt32Uint8R, (*Decoder).fastpathDecMapInt32Uint8R)
  305. fn(map[int32]uint16(nil), (*Encoder).fastpathEncMapInt32Uint16R, (*Decoder).fastpathDecMapInt32Uint16R)
  306. fn(map[int32]uint32(nil), (*Encoder).fastpathEncMapInt32Uint32R, (*Decoder).fastpathDecMapInt32Uint32R)
  307. fn(map[int32]uint64(nil), (*Encoder).fastpathEncMapInt32Uint64R, (*Decoder).fastpathDecMapInt32Uint64R)
  308. fn(map[int32]uintptr(nil), (*Encoder).fastpathEncMapInt32UintptrR, (*Decoder).fastpathDecMapInt32UintptrR)
  309. fn(map[int32]int(nil), (*Encoder).fastpathEncMapInt32IntR, (*Decoder).fastpathDecMapInt32IntR)
  310. fn(map[int32]int8(nil), (*Encoder).fastpathEncMapInt32Int8R, (*Decoder).fastpathDecMapInt32Int8R)
  311. fn(map[int32]int16(nil), (*Encoder).fastpathEncMapInt32Int16R, (*Decoder).fastpathDecMapInt32Int16R)
  312. fn(map[int32]int32(nil), (*Encoder).fastpathEncMapInt32Int32R, (*Decoder).fastpathDecMapInt32Int32R)
  313. fn(map[int32]int64(nil), (*Encoder).fastpathEncMapInt32Int64R, (*Decoder).fastpathDecMapInt32Int64R)
  314. fn(map[int32]float32(nil), (*Encoder).fastpathEncMapInt32Float32R, (*Decoder).fastpathDecMapInt32Float32R)
  315. fn(map[int32]float64(nil), (*Encoder).fastpathEncMapInt32Float64R, (*Decoder).fastpathDecMapInt32Float64R)
  316. fn(map[int32]bool(nil), (*Encoder).fastpathEncMapInt32BoolR, (*Decoder).fastpathDecMapInt32BoolR)
  317. fn(map[int64]interface{}(nil), (*Encoder).fastpathEncMapInt64IntfR, (*Decoder).fastpathDecMapInt64IntfR)
  318. fn(map[int64]string(nil), (*Encoder).fastpathEncMapInt64StringR, (*Decoder).fastpathDecMapInt64StringR)
  319. fn(map[int64]uint(nil), (*Encoder).fastpathEncMapInt64UintR, (*Decoder).fastpathDecMapInt64UintR)
  320. fn(map[int64]uint8(nil), (*Encoder).fastpathEncMapInt64Uint8R, (*Decoder).fastpathDecMapInt64Uint8R)
  321. fn(map[int64]uint16(nil), (*Encoder).fastpathEncMapInt64Uint16R, (*Decoder).fastpathDecMapInt64Uint16R)
  322. fn(map[int64]uint32(nil), (*Encoder).fastpathEncMapInt64Uint32R, (*Decoder).fastpathDecMapInt64Uint32R)
  323. fn(map[int64]uint64(nil), (*Encoder).fastpathEncMapInt64Uint64R, (*Decoder).fastpathDecMapInt64Uint64R)
  324. fn(map[int64]uintptr(nil), (*Encoder).fastpathEncMapInt64UintptrR, (*Decoder).fastpathDecMapInt64UintptrR)
  325. fn(map[int64]int(nil), (*Encoder).fastpathEncMapInt64IntR, (*Decoder).fastpathDecMapInt64IntR)
  326. fn(map[int64]int8(nil), (*Encoder).fastpathEncMapInt64Int8R, (*Decoder).fastpathDecMapInt64Int8R)
  327. fn(map[int64]int16(nil), (*Encoder).fastpathEncMapInt64Int16R, (*Decoder).fastpathDecMapInt64Int16R)
  328. fn(map[int64]int32(nil), (*Encoder).fastpathEncMapInt64Int32R, (*Decoder).fastpathDecMapInt64Int32R)
  329. fn(map[int64]int64(nil), (*Encoder).fastpathEncMapInt64Int64R, (*Decoder).fastpathDecMapInt64Int64R)
  330. fn(map[int64]float32(nil), (*Encoder).fastpathEncMapInt64Float32R, (*Decoder).fastpathDecMapInt64Float32R)
  331. fn(map[int64]float64(nil), (*Encoder).fastpathEncMapInt64Float64R, (*Decoder).fastpathDecMapInt64Float64R)
  332. fn(map[int64]bool(nil), (*Encoder).fastpathEncMapInt64BoolR, (*Decoder).fastpathDecMapInt64BoolR)
  333. fn(map[bool]interface{}(nil), (*Encoder).fastpathEncMapBoolIntfR, (*Decoder).fastpathDecMapBoolIntfR)
  334. fn(map[bool]string(nil), (*Encoder).fastpathEncMapBoolStringR, (*Decoder).fastpathDecMapBoolStringR)
  335. fn(map[bool]uint(nil), (*Encoder).fastpathEncMapBoolUintR, (*Decoder).fastpathDecMapBoolUintR)
  336. fn(map[bool]uint8(nil), (*Encoder).fastpathEncMapBoolUint8R, (*Decoder).fastpathDecMapBoolUint8R)
  337. fn(map[bool]uint16(nil), (*Encoder).fastpathEncMapBoolUint16R, (*Decoder).fastpathDecMapBoolUint16R)
  338. fn(map[bool]uint32(nil), (*Encoder).fastpathEncMapBoolUint32R, (*Decoder).fastpathDecMapBoolUint32R)
  339. fn(map[bool]uint64(nil), (*Encoder).fastpathEncMapBoolUint64R, (*Decoder).fastpathDecMapBoolUint64R)
  340. fn(map[bool]uintptr(nil), (*Encoder).fastpathEncMapBoolUintptrR, (*Decoder).fastpathDecMapBoolUintptrR)
  341. fn(map[bool]int(nil), (*Encoder).fastpathEncMapBoolIntR, (*Decoder).fastpathDecMapBoolIntR)
  342. fn(map[bool]int8(nil), (*Encoder).fastpathEncMapBoolInt8R, (*Decoder).fastpathDecMapBoolInt8R)
  343. fn(map[bool]int16(nil), (*Encoder).fastpathEncMapBoolInt16R, (*Decoder).fastpathDecMapBoolInt16R)
  344. fn(map[bool]int32(nil), (*Encoder).fastpathEncMapBoolInt32R, (*Decoder).fastpathDecMapBoolInt32R)
  345. fn(map[bool]int64(nil), (*Encoder).fastpathEncMapBoolInt64R, (*Decoder).fastpathDecMapBoolInt64R)
  346. fn(map[bool]float32(nil), (*Encoder).fastpathEncMapBoolFloat32R, (*Decoder).fastpathDecMapBoolFloat32R)
  347. fn(map[bool]float64(nil), (*Encoder).fastpathEncMapBoolFloat64R, (*Decoder).fastpathDecMapBoolFloat64R)
  348. fn(map[bool]bool(nil), (*Encoder).fastpathEncMapBoolBoolR, (*Decoder).fastpathDecMapBoolBoolR)
  349. sort.Sort(fastpathAslice(fastpathAV[:]))
  350. }
  351. // -- encode
  352. // -- -- fast path type switch
  353. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  354. switch v := iv.(type) {
  355. case []interface{}:
  356. fastpathTV.EncSliceIntfV(v, e)
  357. case *[]interface{}:
  358. fastpathTV.EncSliceIntfV(*v, e)
  359. case map[interface{}]interface{}:
  360. fastpathTV.EncMapIntfIntfV(v, e)
  361. case *map[interface{}]interface{}:
  362. fastpathTV.EncMapIntfIntfV(*v, e)
  363. case map[interface{}]string:
  364. fastpathTV.EncMapIntfStringV(v, e)
  365. case *map[interface{}]string:
  366. fastpathTV.EncMapIntfStringV(*v, e)
  367. case map[interface{}]uint:
  368. fastpathTV.EncMapIntfUintV(v, e)
  369. case *map[interface{}]uint:
  370. fastpathTV.EncMapIntfUintV(*v, e)
  371. case map[interface{}]uint8:
  372. fastpathTV.EncMapIntfUint8V(v, e)
  373. case *map[interface{}]uint8:
  374. fastpathTV.EncMapIntfUint8V(*v, e)
  375. case map[interface{}]uint16:
  376. fastpathTV.EncMapIntfUint16V(v, e)
  377. case *map[interface{}]uint16:
  378. fastpathTV.EncMapIntfUint16V(*v, e)
  379. case map[interface{}]uint32:
  380. fastpathTV.EncMapIntfUint32V(v, e)
  381. case *map[interface{}]uint32:
  382. fastpathTV.EncMapIntfUint32V(*v, e)
  383. case map[interface{}]uint64:
  384. fastpathTV.EncMapIntfUint64V(v, e)
  385. case *map[interface{}]uint64:
  386. fastpathTV.EncMapIntfUint64V(*v, e)
  387. case map[interface{}]uintptr:
  388. fastpathTV.EncMapIntfUintptrV(v, e)
  389. case *map[interface{}]uintptr:
  390. fastpathTV.EncMapIntfUintptrV(*v, e)
  391. case map[interface{}]int:
  392. fastpathTV.EncMapIntfIntV(v, e)
  393. case *map[interface{}]int:
  394. fastpathTV.EncMapIntfIntV(*v, e)
  395. case map[interface{}]int8:
  396. fastpathTV.EncMapIntfInt8V(v, e)
  397. case *map[interface{}]int8:
  398. fastpathTV.EncMapIntfInt8V(*v, e)
  399. case map[interface{}]int16:
  400. fastpathTV.EncMapIntfInt16V(v, e)
  401. case *map[interface{}]int16:
  402. fastpathTV.EncMapIntfInt16V(*v, e)
  403. case map[interface{}]int32:
  404. fastpathTV.EncMapIntfInt32V(v, e)
  405. case *map[interface{}]int32:
  406. fastpathTV.EncMapIntfInt32V(*v, e)
  407. case map[interface{}]int64:
  408. fastpathTV.EncMapIntfInt64V(v, e)
  409. case *map[interface{}]int64:
  410. fastpathTV.EncMapIntfInt64V(*v, e)
  411. case map[interface{}]float32:
  412. fastpathTV.EncMapIntfFloat32V(v, e)
  413. case *map[interface{}]float32:
  414. fastpathTV.EncMapIntfFloat32V(*v, e)
  415. case map[interface{}]float64:
  416. fastpathTV.EncMapIntfFloat64V(v, e)
  417. case *map[interface{}]float64:
  418. fastpathTV.EncMapIntfFloat64V(*v, e)
  419. case map[interface{}]bool:
  420. fastpathTV.EncMapIntfBoolV(v, e)
  421. case *map[interface{}]bool:
  422. fastpathTV.EncMapIntfBoolV(*v, e)
  423. case []string:
  424. fastpathTV.EncSliceStringV(v, e)
  425. case *[]string:
  426. fastpathTV.EncSliceStringV(*v, e)
  427. case map[string]interface{}:
  428. fastpathTV.EncMapStringIntfV(v, e)
  429. case *map[string]interface{}:
  430. fastpathTV.EncMapStringIntfV(*v, e)
  431. case map[string]string:
  432. fastpathTV.EncMapStringStringV(v, e)
  433. case *map[string]string:
  434. fastpathTV.EncMapStringStringV(*v, e)
  435. case map[string]uint:
  436. fastpathTV.EncMapStringUintV(v, e)
  437. case *map[string]uint:
  438. fastpathTV.EncMapStringUintV(*v, e)
  439. case map[string]uint8:
  440. fastpathTV.EncMapStringUint8V(v, e)
  441. case *map[string]uint8:
  442. fastpathTV.EncMapStringUint8V(*v, e)
  443. case map[string]uint16:
  444. fastpathTV.EncMapStringUint16V(v, e)
  445. case *map[string]uint16:
  446. fastpathTV.EncMapStringUint16V(*v, e)
  447. case map[string]uint32:
  448. fastpathTV.EncMapStringUint32V(v, e)
  449. case *map[string]uint32:
  450. fastpathTV.EncMapStringUint32V(*v, e)
  451. case map[string]uint64:
  452. fastpathTV.EncMapStringUint64V(v, e)
  453. case *map[string]uint64:
  454. fastpathTV.EncMapStringUint64V(*v, e)
  455. case map[string]uintptr:
  456. fastpathTV.EncMapStringUintptrV(v, e)
  457. case *map[string]uintptr:
  458. fastpathTV.EncMapStringUintptrV(*v, e)
  459. case map[string]int:
  460. fastpathTV.EncMapStringIntV(v, e)
  461. case *map[string]int:
  462. fastpathTV.EncMapStringIntV(*v, e)
  463. case map[string]int8:
  464. fastpathTV.EncMapStringInt8V(v, e)
  465. case *map[string]int8:
  466. fastpathTV.EncMapStringInt8V(*v, e)
  467. case map[string]int16:
  468. fastpathTV.EncMapStringInt16V(v, e)
  469. case *map[string]int16:
  470. fastpathTV.EncMapStringInt16V(*v, e)
  471. case map[string]int32:
  472. fastpathTV.EncMapStringInt32V(v, e)
  473. case *map[string]int32:
  474. fastpathTV.EncMapStringInt32V(*v, e)
  475. case map[string]int64:
  476. fastpathTV.EncMapStringInt64V(v, e)
  477. case *map[string]int64:
  478. fastpathTV.EncMapStringInt64V(*v, e)
  479. case map[string]float32:
  480. fastpathTV.EncMapStringFloat32V(v, e)
  481. case *map[string]float32:
  482. fastpathTV.EncMapStringFloat32V(*v, e)
  483. case map[string]float64:
  484. fastpathTV.EncMapStringFloat64V(v, e)
  485. case *map[string]float64:
  486. fastpathTV.EncMapStringFloat64V(*v, e)
  487. case map[string]bool:
  488. fastpathTV.EncMapStringBoolV(v, e)
  489. case *map[string]bool:
  490. fastpathTV.EncMapStringBoolV(*v, e)
  491. case []float32:
  492. fastpathTV.EncSliceFloat32V(v, e)
  493. case *[]float32:
  494. fastpathTV.EncSliceFloat32V(*v, e)
  495. case map[float32]interface{}:
  496. fastpathTV.EncMapFloat32IntfV(v, e)
  497. case *map[float32]interface{}:
  498. fastpathTV.EncMapFloat32IntfV(*v, e)
  499. case map[float32]string:
  500. fastpathTV.EncMapFloat32StringV(v, e)
  501. case *map[float32]string:
  502. fastpathTV.EncMapFloat32StringV(*v, e)
  503. case map[float32]uint:
  504. fastpathTV.EncMapFloat32UintV(v, e)
  505. case *map[float32]uint:
  506. fastpathTV.EncMapFloat32UintV(*v, e)
  507. case map[float32]uint8:
  508. fastpathTV.EncMapFloat32Uint8V(v, e)
  509. case *map[float32]uint8:
  510. fastpathTV.EncMapFloat32Uint8V(*v, e)
  511. case map[float32]uint16:
  512. fastpathTV.EncMapFloat32Uint16V(v, e)
  513. case *map[float32]uint16:
  514. fastpathTV.EncMapFloat32Uint16V(*v, e)
  515. case map[float32]uint32:
  516. fastpathTV.EncMapFloat32Uint32V(v, e)
  517. case *map[float32]uint32:
  518. fastpathTV.EncMapFloat32Uint32V(*v, e)
  519. case map[float32]uint64:
  520. fastpathTV.EncMapFloat32Uint64V(v, e)
  521. case *map[float32]uint64:
  522. fastpathTV.EncMapFloat32Uint64V(*v, e)
  523. case map[float32]uintptr:
  524. fastpathTV.EncMapFloat32UintptrV(v, e)
  525. case *map[float32]uintptr:
  526. fastpathTV.EncMapFloat32UintptrV(*v, e)
  527. case map[float32]int:
  528. fastpathTV.EncMapFloat32IntV(v, e)
  529. case *map[float32]int:
  530. fastpathTV.EncMapFloat32IntV(*v, e)
  531. case map[float32]int8:
  532. fastpathTV.EncMapFloat32Int8V(v, e)
  533. case *map[float32]int8:
  534. fastpathTV.EncMapFloat32Int8V(*v, e)
  535. case map[float32]int16:
  536. fastpathTV.EncMapFloat32Int16V(v, e)
  537. case *map[float32]int16:
  538. fastpathTV.EncMapFloat32Int16V(*v, e)
  539. case map[float32]int32:
  540. fastpathTV.EncMapFloat32Int32V(v, e)
  541. case *map[float32]int32:
  542. fastpathTV.EncMapFloat32Int32V(*v, e)
  543. case map[float32]int64:
  544. fastpathTV.EncMapFloat32Int64V(v, e)
  545. case *map[float32]int64:
  546. fastpathTV.EncMapFloat32Int64V(*v, e)
  547. case map[float32]float32:
  548. fastpathTV.EncMapFloat32Float32V(v, e)
  549. case *map[float32]float32:
  550. fastpathTV.EncMapFloat32Float32V(*v, e)
  551. case map[float32]float64:
  552. fastpathTV.EncMapFloat32Float64V(v, e)
  553. case *map[float32]float64:
  554. fastpathTV.EncMapFloat32Float64V(*v, e)
  555. case map[float32]bool:
  556. fastpathTV.EncMapFloat32BoolV(v, e)
  557. case *map[float32]bool:
  558. fastpathTV.EncMapFloat32BoolV(*v, e)
  559. case []float64:
  560. fastpathTV.EncSliceFloat64V(v, e)
  561. case *[]float64:
  562. fastpathTV.EncSliceFloat64V(*v, e)
  563. case map[float64]interface{}:
  564. fastpathTV.EncMapFloat64IntfV(v, e)
  565. case *map[float64]interface{}:
  566. fastpathTV.EncMapFloat64IntfV(*v, e)
  567. case map[float64]string:
  568. fastpathTV.EncMapFloat64StringV(v, e)
  569. case *map[float64]string:
  570. fastpathTV.EncMapFloat64StringV(*v, e)
  571. case map[float64]uint:
  572. fastpathTV.EncMapFloat64UintV(v, e)
  573. case *map[float64]uint:
  574. fastpathTV.EncMapFloat64UintV(*v, e)
  575. case map[float64]uint8:
  576. fastpathTV.EncMapFloat64Uint8V(v, e)
  577. case *map[float64]uint8:
  578. fastpathTV.EncMapFloat64Uint8V(*v, e)
  579. case map[float64]uint16:
  580. fastpathTV.EncMapFloat64Uint16V(v, e)
  581. case *map[float64]uint16:
  582. fastpathTV.EncMapFloat64Uint16V(*v, e)
  583. case map[float64]uint32:
  584. fastpathTV.EncMapFloat64Uint32V(v, e)
  585. case *map[float64]uint32:
  586. fastpathTV.EncMapFloat64Uint32V(*v, e)
  587. case map[float64]uint64:
  588. fastpathTV.EncMapFloat64Uint64V(v, e)
  589. case *map[float64]uint64:
  590. fastpathTV.EncMapFloat64Uint64V(*v, e)
  591. case map[float64]uintptr:
  592. fastpathTV.EncMapFloat64UintptrV(v, e)
  593. case *map[float64]uintptr:
  594. fastpathTV.EncMapFloat64UintptrV(*v, e)
  595. case map[float64]int:
  596. fastpathTV.EncMapFloat64IntV(v, e)
  597. case *map[float64]int:
  598. fastpathTV.EncMapFloat64IntV(*v, e)
  599. case map[float64]int8:
  600. fastpathTV.EncMapFloat64Int8V(v, e)
  601. case *map[float64]int8:
  602. fastpathTV.EncMapFloat64Int8V(*v, e)
  603. case map[float64]int16:
  604. fastpathTV.EncMapFloat64Int16V(v, e)
  605. case *map[float64]int16:
  606. fastpathTV.EncMapFloat64Int16V(*v, e)
  607. case map[float64]int32:
  608. fastpathTV.EncMapFloat64Int32V(v, e)
  609. case *map[float64]int32:
  610. fastpathTV.EncMapFloat64Int32V(*v, e)
  611. case map[float64]int64:
  612. fastpathTV.EncMapFloat64Int64V(v, e)
  613. case *map[float64]int64:
  614. fastpathTV.EncMapFloat64Int64V(*v, e)
  615. case map[float64]float32:
  616. fastpathTV.EncMapFloat64Float32V(v, e)
  617. case *map[float64]float32:
  618. fastpathTV.EncMapFloat64Float32V(*v, e)
  619. case map[float64]float64:
  620. fastpathTV.EncMapFloat64Float64V(v, e)
  621. case *map[float64]float64:
  622. fastpathTV.EncMapFloat64Float64V(*v, e)
  623. case map[float64]bool:
  624. fastpathTV.EncMapFloat64BoolV(v, e)
  625. case *map[float64]bool:
  626. fastpathTV.EncMapFloat64BoolV(*v, e)
  627. case []uint:
  628. fastpathTV.EncSliceUintV(v, e)
  629. case *[]uint:
  630. fastpathTV.EncSliceUintV(*v, e)
  631. case map[uint]interface{}:
  632. fastpathTV.EncMapUintIntfV(v, e)
  633. case *map[uint]interface{}:
  634. fastpathTV.EncMapUintIntfV(*v, e)
  635. case map[uint]string:
  636. fastpathTV.EncMapUintStringV(v, e)
  637. case *map[uint]string:
  638. fastpathTV.EncMapUintStringV(*v, e)
  639. case map[uint]uint:
  640. fastpathTV.EncMapUintUintV(v, e)
  641. case *map[uint]uint:
  642. fastpathTV.EncMapUintUintV(*v, e)
  643. case map[uint]uint8:
  644. fastpathTV.EncMapUintUint8V(v, e)
  645. case *map[uint]uint8:
  646. fastpathTV.EncMapUintUint8V(*v, e)
  647. case map[uint]uint16:
  648. fastpathTV.EncMapUintUint16V(v, e)
  649. case *map[uint]uint16:
  650. fastpathTV.EncMapUintUint16V(*v, e)
  651. case map[uint]uint32:
  652. fastpathTV.EncMapUintUint32V(v, e)
  653. case *map[uint]uint32:
  654. fastpathTV.EncMapUintUint32V(*v, e)
  655. case map[uint]uint64:
  656. fastpathTV.EncMapUintUint64V(v, e)
  657. case *map[uint]uint64:
  658. fastpathTV.EncMapUintUint64V(*v, e)
  659. case map[uint]uintptr:
  660. fastpathTV.EncMapUintUintptrV(v, e)
  661. case *map[uint]uintptr:
  662. fastpathTV.EncMapUintUintptrV(*v, e)
  663. case map[uint]int:
  664. fastpathTV.EncMapUintIntV(v, e)
  665. case *map[uint]int:
  666. fastpathTV.EncMapUintIntV(*v, e)
  667. case map[uint]int8:
  668. fastpathTV.EncMapUintInt8V(v, e)
  669. case *map[uint]int8:
  670. fastpathTV.EncMapUintInt8V(*v, e)
  671. case map[uint]int16:
  672. fastpathTV.EncMapUintInt16V(v, e)
  673. case *map[uint]int16:
  674. fastpathTV.EncMapUintInt16V(*v, e)
  675. case map[uint]int32:
  676. fastpathTV.EncMapUintInt32V(v, e)
  677. case *map[uint]int32:
  678. fastpathTV.EncMapUintInt32V(*v, e)
  679. case map[uint]int64:
  680. fastpathTV.EncMapUintInt64V(v, e)
  681. case *map[uint]int64:
  682. fastpathTV.EncMapUintInt64V(*v, e)
  683. case map[uint]float32:
  684. fastpathTV.EncMapUintFloat32V(v, e)
  685. case *map[uint]float32:
  686. fastpathTV.EncMapUintFloat32V(*v, e)
  687. case map[uint]float64:
  688. fastpathTV.EncMapUintFloat64V(v, e)
  689. case *map[uint]float64:
  690. fastpathTV.EncMapUintFloat64V(*v, e)
  691. case map[uint]bool:
  692. fastpathTV.EncMapUintBoolV(v, e)
  693. case *map[uint]bool:
  694. fastpathTV.EncMapUintBoolV(*v, e)
  695. case map[uint8]interface{}:
  696. fastpathTV.EncMapUint8IntfV(v, e)
  697. case *map[uint8]interface{}:
  698. fastpathTV.EncMapUint8IntfV(*v, e)
  699. case map[uint8]string:
  700. fastpathTV.EncMapUint8StringV(v, e)
  701. case *map[uint8]string:
  702. fastpathTV.EncMapUint8StringV(*v, e)
  703. case map[uint8]uint:
  704. fastpathTV.EncMapUint8UintV(v, e)
  705. case *map[uint8]uint:
  706. fastpathTV.EncMapUint8UintV(*v, e)
  707. case map[uint8]uint8:
  708. fastpathTV.EncMapUint8Uint8V(v, e)
  709. case *map[uint8]uint8:
  710. fastpathTV.EncMapUint8Uint8V(*v, e)
  711. case map[uint8]uint16:
  712. fastpathTV.EncMapUint8Uint16V(v, e)
  713. case *map[uint8]uint16:
  714. fastpathTV.EncMapUint8Uint16V(*v, e)
  715. case map[uint8]uint32:
  716. fastpathTV.EncMapUint8Uint32V(v, e)
  717. case *map[uint8]uint32:
  718. fastpathTV.EncMapUint8Uint32V(*v, e)
  719. case map[uint8]uint64:
  720. fastpathTV.EncMapUint8Uint64V(v, e)
  721. case *map[uint8]uint64:
  722. fastpathTV.EncMapUint8Uint64V(*v, e)
  723. case map[uint8]uintptr:
  724. fastpathTV.EncMapUint8UintptrV(v, e)
  725. case *map[uint8]uintptr:
  726. fastpathTV.EncMapUint8UintptrV(*v, e)
  727. case map[uint8]int:
  728. fastpathTV.EncMapUint8IntV(v, e)
  729. case *map[uint8]int:
  730. fastpathTV.EncMapUint8IntV(*v, e)
  731. case map[uint8]int8:
  732. fastpathTV.EncMapUint8Int8V(v, e)
  733. case *map[uint8]int8:
  734. fastpathTV.EncMapUint8Int8V(*v, e)
  735. case map[uint8]int16:
  736. fastpathTV.EncMapUint8Int16V(v, e)
  737. case *map[uint8]int16:
  738. fastpathTV.EncMapUint8Int16V(*v, e)
  739. case map[uint8]int32:
  740. fastpathTV.EncMapUint8Int32V(v, e)
  741. case *map[uint8]int32:
  742. fastpathTV.EncMapUint8Int32V(*v, e)
  743. case map[uint8]int64:
  744. fastpathTV.EncMapUint8Int64V(v, e)
  745. case *map[uint8]int64:
  746. fastpathTV.EncMapUint8Int64V(*v, e)
  747. case map[uint8]float32:
  748. fastpathTV.EncMapUint8Float32V(v, e)
  749. case *map[uint8]float32:
  750. fastpathTV.EncMapUint8Float32V(*v, e)
  751. case map[uint8]float64:
  752. fastpathTV.EncMapUint8Float64V(v, e)
  753. case *map[uint8]float64:
  754. fastpathTV.EncMapUint8Float64V(*v, e)
  755. case map[uint8]bool:
  756. fastpathTV.EncMapUint8BoolV(v, e)
  757. case *map[uint8]bool:
  758. fastpathTV.EncMapUint8BoolV(*v, e)
  759. case []uint16:
  760. fastpathTV.EncSliceUint16V(v, e)
  761. case *[]uint16:
  762. fastpathTV.EncSliceUint16V(*v, e)
  763. case map[uint16]interface{}:
  764. fastpathTV.EncMapUint16IntfV(v, e)
  765. case *map[uint16]interface{}:
  766. fastpathTV.EncMapUint16IntfV(*v, e)
  767. case map[uint16]string:
  768. fastpathTV.EncMapUint16StringV(v, e)
  769. case *map[uint16]string:
  770. fastpathTV.EncMapUint16StringV(*v, e)
  771. case map[uint16]uint:
  772. fastpathTV.EncMapUint16UintV(v, e)
  773. case *map[uint16]uint:
  774. fastpathTV.EncMapUint16UintV(*v, e)
  775. case map[uint16]uint8:
  776. fastpathTV.EncMapUint16Uint8V(v, e)
  777. case *map[uint16]uint8:
  778. fastpathTV.EncMapUint16Uint8V(*v, e)
  779. case map[uint16]uint16:
  780. fastpathTV.EncMapUint16Uint16V(v, e)
  781. case *map[uint16]uint16:
  782. fastpathTV.EncMapUint16Uint16V(*v, e)
  783. case map[uint16]uint32:
  784. fastpathTV.EncMapUint16Uint32V(v, e)
  785. case *map[uint16]uint32:
  786. fastpathTV.EncMapUint16Uint32V(*v, e)
  787. case map[uint16]uint64:
  788. fastpathTV.EncMapUint16Uint64V(v, e)
  789. case *map[uint16]uint64:
  790. fastpathTV.EncMapUint16Uint64V(*v, e)
  791. case map[uint16]uintptr:
  792. fastpathTV.EncMapUint16UintptrV(v, e)
  793. case *map[uint16]uintptr:
  794. fastpathTV.EncMapUint16UintptrV(*v, e)
  795. case map[uint16]int:
  796. fastpathTV.EncMapUint16IntV(v, e)
  797. case *map[uint16]int:
  798. fastpathTV.EncMapUint16IntV(*v, e)
  799. case map[uint16]int8:
  800. fastpathTV.EncMapUint16Int8V(v, e)
  801. case *map[uint16]int8:
  802. fastpathTV.EncMapUint16Int8V(*v, e)
  803. case map[uint16]int16:
  804. fastpathTV.EncMapUint16Int16V(v, e)
  805. case *map[uint16]int16:
  806. fastpathTV.EncMapUint16Int16V(*v, e)
  807. case map[uint16]int32:
  808. fastpathTV.EncMapUint16Int32V(v, e)
  809. case *map[uint16]int32:
  810. fastpathTV.EncMapUint16Int32V(*v, e)
  811. case map[uint16]int64:
  812. fastpathTV.EncMapUint16Int64V(v, e)
  813. case *map[uint16]int64:
  814. fastpathTV.EncMapUint16Int64V(*v, e)
  815. case map[uint16]float32:
  816. fastpathTV.EncMapUint16Float32V(v, e)
  817. case *map[uint16]float32:
  818. fastpathTV.EncMapUint16Float32V(*v, e)
  819. case map[uint16]float64:
  820. fastpathTV.EncMapUint16Float64V(v, e)
  821. case *map[uint16]float64:
  822. fastpathTV.EncMapUint16Float64V(*v, e)
  823. case map[uint16]bool:
  824. fastpathTV.EncMapUint16BoolV(v, e)
  825. case *map[uint16]bool:
  826. fastpathTV.EncMapUint16BoolV(*v, e)
  827. case []uint32:
  828. fastpathTV.EncSliceUint32V(v, e)
  829. case *[]uint32:
  830. fastpathTV.EncSliceUint32V(*v, e)
  831. case map[uint32]interface{}:
  832. fastpathTV.EncMapUint32IntfV(v, e)
  833. case *map[uint32]interface{}:
  834. fastpathTV.EncMapUint32IntfV(*v, e)
  835. case map[uint32]string:
  836. fastpathTV.EncMapUint32StringV(v, e)
  837. case *map[uint32]string:
  838. fastpathTV.EncMapUint32StringV(*v, e)
  839. case map[uint32]uint:
  840. fastpathTV.EncMapUint32UintV(v, e)
  841. case *map[uint32]uint:
  842. fastpathTV.EncMapUint32UintV(*v, e)
  843. case map[uint32]uint8:
  844. fastpathTV.EncMapUint32Uint8V(v, e)
  845. case *map[uint32]uint8:
  846. fastpathTV.EncMapUint32Uint8V(*v, e)
  847. case map[uint32]uint16:
  848. fastpathTV.EncMapUint32Uint16V(v, e)
  849. case *map[uint32]uint16:
  850. fastpathTV.EncMapUint32Uint16V(*v, e)
  851. case map[uint32]uint32:
  852. fastpathTV.EncMapUint32Uint32V(v, e)
  853. case *map[uint32]uint32:
  854. fastpathTV.EncMapUint32Uint32V(*v, e)
  855. case map[uint32]uint64:
  856. fastpathTV.EncMapUint32Uint64V(v, e)
  857. case *map[uint32]uint64:
  858. fastpathTV.EncMapUint32Uint64V(*v, e)
  859. case map[uint32]uintptr:
  860. fastpathTV.EncMapUint32UintptrV(v, e)
  861. case *map[uint32]uintptr:
  862. fastpathTV.EncMapUint32UintptrV(*v, e)
  863. case map[uint32]int:
  864. fastpathTV.EncMapUint32IntV(v, e)
  865. case *map[uint32]int:
  866. fastpathTV.EncMapUint32IntV(*v, e)
  867. case map[uint32]int8:
  868. fastpathTV.EncMapUint32Int8V(v, e)
  869. case *map[uint32]int8:
  870. fastpathTV.EncMapUint32Int8V(*v, e)
  871. case map[uint32]int16:
  872. fastpathTV.EncMapUint32Int16V(v, e)
  873. case *map[uint32]int16:
  874. fastpathTV.EncMapUint32Int16V(*v, e)
  875. case map[uint32]int32:
  876. fastpathTV.EncMapUint32Int32V(v, e)
  877. case *map[uint32]int32:
  878. fastpathTV.EncMapUint32Int32V(*v, e)
  879. case map[uint32]int64:
  880. fastpathTV.EncMapUint32Int64V(v, e)
  881. case *map[uint32]int64:
  882. fastpathTV.EncMapUint32Int64V(*v, e)
  883. case map[uint32]float32:
  884. fastpathTV.EncMapUint32Float32V(v, e)
  885. case *map[uint32]float32:
  886. fastpathTV.EncMapUint32Float32V(*v, e)
  887. case map[uint32]float64:
  888. fastpathTV.EncMapUint32Float64V(v, e)
  889. case *map[uint32]float64:
  890. fastpathTV.EncMapUint32Float64V(*v, e)
  891. case map[uint32]bool:
  892. fastpathTV.EncMapUint32BoolV(v, e)
  893. case *map[uint32]bool:
  894. fastpathTV.EncMapUint32BoolV(*v, e)
  895. case []uint64:
  896. fastpathTV.EncSliceUint64V(v, e)
  897. case *[]uint64:
  898. fastpathTV.EncSliceUint64V(*v, e)
  899. case map[uint64]interface{}:
  900. fastpathTV.EncMapUint64IntfV(v, e)
  901. case *map[uint64]interface{}:
  902. fastpathTV.EncMapUint64IntfV(*v, e)
  903. case map[uint64]string:
  904. fastpathTV.EncMapUint64StringV(v, e)
  905. case *map[uint64]string:
  906. fastpathTV.EncMapUint64StringV(*v, e)
  907. case map[uint64]uint:
  908. fastpathTV.EncMapUint64UintV(v, e)
  909. case *map[uint64]uint:
  910. fastpathTV.EncMapUint64UintV(*v, e)
  911. case map[uint64]uint8:
  912. fastpathTV.EncMapUint64Uint8V(v, e)
  913. case *map[uint64]uint8:
  914. fastpathTV.EncMapUint64Uint8V(*v, e)
  915. case map[uint64]uint16:
  916. fastpathTV.EncMapUint64Uint16V(v, e)
  917. case *map[uint64]uint16:
  918. fastpathTV.EncMapUint64Uint16V(*v, e)
  919. case map[uint64]uint32:
  920. fastpathTV.EncMapUint64Uint32V(v, e)
  921. case *map[uint64]uint32:
  922. fastpathTV.EncMapUint64Uint32V(*v, e)
  923. case map[uint64]uint64:
  924. fastpathTV.EncMapUint64Uint64V(v, e)
  925. case *map[uint64]uint64:
  926. fastpathTV.EncMapUint64Uint64V(*v, e)
  927. case map[uint64]uintptr:
  928. fastpathTV.EncMapUint64UintptrV(v, e)
  929. case *map[uint64]uintptr:
  930. fastpathTV.EncMapUint64UintptrV(*v, e)
  931. case map[uint64]int:
  932. fastpathTV.EncMapUint64IntV(v, e)
  933. case *map[uint64]int:
  934. fastpathTV.EncMapUint64IntV(*v, e)
  935. case map[uint64]int8:
  936. fastpathTV.EncMapUint64Int8V(v, e)
  937. case *map[uint64]int8:
  938. fastpathTV.EncMapUint64Int8V(*v, e)
  939. case map[uint64]int16:
  940. fastpathTV.EncMapUint64Int16V(v, e)
  941. case *map[uint64]int16:
  942. fastpathTV.EncMapUint64Int16V(*v, e)
  943. case map[uint64]int32:
  944. fastpathTV.EncMapUint64Int32V(v, e)
  945. case *map[uint64]int32:
  946. fastpathTV.EncMapUint64Int32V(*v, e)
  947. case map[uint64]int64:
  948. fastpathTV.EncMapUint64Int64V(v, e)
  949. case *map[uint64]int64:
  950. fastpathTV.EncMapUint64Int64V(*v, e)
  951. case map[uint64]float32:
  952. fastpathTV.EncMapUint64Float32V(v, e)
  953. case *map[uint64]float32:
  954. fastpathTV.EncMapUint64Float32V(*v, e)
  955. case map[uint64]float64:
  956. fastpathTV.EncMapUint64Float64V(v, e)
  957. case *map[uint64]float64:
  958. fastpathTV.EncMapUint64Float64V(*v, e)
  959. case map[uint64]bool:
  960. fastpathTV.EncMapUint64BoolV(v, e)
  961. case *map[uint64]bool:
  962. fastpathTV.EncMapUint64BoolV(*v, e)
  963. case []uintptr:
  964. fastpathTV.EncSliceUintptrV(v, e)
  965. case *[]uintptr:
  966. fastpathTV.EncSliceUintptrV(*v, e)
  967. case map[uintptr]interface{}:
  968. fastpathTV.EncMapUintptrIntfV(v, e)
  969. case *map[uintptr]interface{}:
  970. fastpathTV.EncMapUintptrIntfV(*v, e)
  971. case map[uintptr]string:
  972. fastpathTV.EncMapUintptrStringV(v, e)
  973. case *map[uintptr]string:
  974. fastpathTV.EncMapUintptrStringV(*v, e)
  975. case map[uintptr]uint:
  976. fastpathTV.EncMapUintptrUintV(v, e)
  977. case *map[uintptr]uint:
  978. fastpathTV.EncMapUintptrUintV(*v, e)
  979. case map[uintptr]uint8:
  980. fastpathTV.EncMapUintptrUint8V(v, e)
  981. case *map[uintptr]uint8:
  982. fastpathTV.EncMapUintptrUint8V(*v, e)
  983. case map[uintptr]uint16:
  984. fastpathTV.EncMapUintptrUint16V(v, e)
  985. case *map[uintptr]uint16:
  986. fastpathTV.EncMapUintptrUint16V(*v, e)
  987. case map[uintptr]uint32:
  988. fastpathTV.EncMapUintptrUint32V(v, e)
  989. case *map[uintptr]uint32:
  990. fastpathTV.EncMapUintptrUint32V(*v, e)
  991. case map[uintptr]uint64:
  992. fastpathTV.EncMapUintptrUint64V(v, e)
  993. case *map[uintptr]uint64:
  994. fastpathTV.EncMapUintptrUint64V(*v, e)
  995. case map[uintptr]uintptr:
  996. fastpathTV.EncMapUintptrUintptrV(v, e)
  997. case *map[uintptr]uintptr:
  998. fastpathTV.EncMapUintptrUintptrV(*v, e)
  999. case map[uintptr]int:
  1000. fastpathTV.EncMapUintptrIntV(v, e)
  1001. case *map[uintptr]int:
  1002. fastpathTV.EncMapUintptrIntV(*v, e)
  1003. case map[uintptr]int8:
  1004. fastpathTV.EncMapUintptrInt8V(v, e)
  1005. case *map[uintptr]int8:
  1006. fastpathTV.EncMapUintptrInt8V(*v, e)
  1007. case map[uintptr]int16:
  1008. fastpathTV.EncMapUintptrInt16V(v, e)
  1009. case *map[uintptr]int16:
  1010. fastpathTV.EncMapUintptrInt16V(*v, e)
  1011. case map[uintptr]int32:
  1012. fastpathTV.EncMapUintptrInt32V(v, e)
  1013. case *map[uintptr]int32:
  1014. fastpathTV.EncMapUintptrInt32V(*v, e)
  1015. case map[uintptr]int64:
  1016. fastpathTV.EncMapUintptrInt64V(v, e)
  1017. case *map[uintptr]int64:
  1018. fastpathTV.EncMapUintptrInt64V(*v, e)
  1019. case map[uintptr]float32:
  1020. fastpathTV.EncMapUintptrFloat32V(v, e)
  1021. case *map[uintptr]float32:
  1022. fastpathTV.EncMapUintptrFloat32V(*v, e)
  1023. case map[uintptr]float64:
  1024. fastpathTV.EncMapUintptrFloat64V(v, e)
  1025. case *map[uintptr]float64:
  1026. fastpathTV.EncMapUintptrFloat64V(*v, e)
  1027. case map[uintptr]bool:
  1028. fastpathTV.EncMapUintptrBoolV(v, e)
  1029. case *map[uintptr]bool:
  1030. fastpathTV.EncMapUintptrBoolV(*v, e)
  1031. case []int:
  1032. fastpathTV.EncSliceIntV(v, e)
  1033. case *[]int:
  1034. fastpathTV.EncSliceIntV(*v, e)
  1035. case map[int]interface{}:
  1036. fastpathTV.EncMapIntIntfV(v, e)
  1037. case *map[int]interface{}:
  1038. fastpathTV.EncMapIntIntfV(*v, e)
  1039. case map[int]string:
  1040. fastpathTV.EncMapIntStringV(v, e)
  1041. case *map[int]string:
  1042. fastpathTV.EncMapIntStringV(*v, e)
  1043. case map[int]uint:
  1044. fastpathTV.EncMapIntUintV(v, e)
  1045. case *map[int]uint:
  1046. fastpathTV.EncMapIntUintV(*v, e)
  1047. case map[int]uint8:
  1048. fastpathTV.EncMapIntUint8V(v, e)
  1049. case *map[int]uint8:
  1050. fastpathTV.EncMapIntUint8V(*v, e)
  1051. case map[int]uint16:
  1052. fastpathTV.EncMapIntUint16V(v, e)
  1053. case *map[int]uint16:
  1054. fastpathTV.EncMapIntUint16V(*v, e)
  1055. case map[int]uint32:
  1056. fastpathTV.EncMapIntUint32V(v, e)
  1057. case *map[int]uint32:
  1058. fastpathTV.EncMapIntUint32V(*v, e)
  1059. case map[int]uint64:
  1060. fastpathTV.EncMapIntUint64V(v, e)
  1061. case *map[int]uint64:
  1062. fastpathTV.EncMapIntUint64V(*v, e)
  1063. case map[int]uintptr:
  1064. fastpathTV.EncMapIntUintptrV(v, e)
  1065. case *map[int]uintptr:
  1066. fastpathTV.EncMapIntUintptrV(*v, e)
  1067. case map[int]int:
  1068. fastpathTV.EncMapIntIntV(v, e)
  1069. case *map[int]int:
  1070. fastpathTV.EncMapIntIntV(*v, e)
  1071. case map[int]int8:
  1072. fastpathTV.EncMapIntInt8V(v, e)
  1073. case *map[int]int8:
  1074. fastpathTV.EncMapIntInt8V(*v, e)
  1075. case map[int]int16:
  1076. fastpathTV.EncMapIntInt16V(v, e)
  1077. case *map[int]int16:
  1078. fastpathTV.EncMapIntInt16V(*v, e)
  1079. case map[int]int32:
  1080. fastpathTV.EncMapIntInt32V(v, e)
  1081. case *map[int]int32:
  1082. fastpathTV.EncMapIntInt32V(*v, e)
  1083. case map[int]int64:
  1084. fastpathTV.EncMapIntInt64V(v, e)
  1085. case *map[int]int64:
  1086. fastpathTV.EncMapIntInt64V(*v, e)
  1087. case map[int]float32:
  1088. fastpathTV.EncMapIntFloat32V(v, e)
  1089. case *map[int]float32:
  1090. fastpathTV.EncMapIntFloat32V(*v, e)
  1091. case map[int]float64:
  1092. fastpathTV.EncMapIntFloat64V(v, e)
  1093. case *map[int]float64:
  1094. fastpathTV.EncMapIntFloat64V(*v, e)
  1095. case map[int]bool:
  1096. fastpathTV.EncMapIntBoolV(v, e)
  1097. case *map[int]bool:
  1098. fastpathTV.EncMapIntBoolV(*v, e)
  1099. case []int8:
  1100. fastpathTV.EncSliceInt8V(v, e)
  1101. case *[]int8:
  1102. fastpathTV.EncSliceInt8V(*v, e)
  1103. case map[int8]interface{}:
  1104. fastpathTV.EncMapInt8IntfV(v, e)
  1105. case *map[int8]interface{}:
  1106. fastpathTV.EncMapInt8IntfV(*v, e)
  1107. case map[int8]string:
  1108. fastpathTV.EncMapInt8StringV(v, e)
  1109. case *map[int8]string:
  1110. fastpathTV.EncMapInt8StringV(*v, e)
  1111. case map[int8]uint:
  1112. fastpathTV.EncMapInt8UintV(v, e)
  1113. case *map[int8]uint:
  1114. fastpathTV.EncMapInt8UintV(*v, e)
  1115. case map[int8]uint8:
  1116. fastpathTV.EncMapInt8Uint8V(v, e)
  1117. case *map[int8]uint8:
  1118. fastpathTV.EncMapInt8Uint8V(*v, e)
  1119. case map[int8]uint16:
  1120. fastpathTV.EncMapInt8Uint16V(v, e)
  1121. case *map[int8]uint16:
  1122. fastpathTV.EncMapInt8Uint16V(*v, e)
  1123. case map[int8]uint32:
  1124. fastpathTV.EncMapInt8Uint32V(v, e)
  1125. case *map[int8]uint32:
  1126. fastpathTV.EncMapInt8Uint32V(*v, e)
  1127. case map[int8]uint64:
  1128. fastpathTV.EncMapInt8Uint64V(v, e)
  1129. case *map[int8]uint64:
  1130. fastpathTV.EncMapInt8Uint64V(*v, e)
  1131. case map[int8]uintptr:
  1132. fastpathTV.EncMapInt8UintptrV(v, e)
  1133. case *map[int8]uintptr:
  1134. fastpathTV.EncMapInt8UintptrV(*v, e)
  1135. case map[int8]int:
  1136. fastpathTV.EncMapInt8IntV(v, e)
  1137. case *map[int8]int:
  1138. fastpathTV.EncMapInt8IntV(*v, e)
  1139. case map[int8]int8:
  1140. fastpathTV.EncMapInt8Int8V(v, e)
  1141. case *map[int8]int8:
  1142. fastpathTV.EncMapInt8Int8V(*v, e)
  1143. case map[int8]int16:
  1144. fastpathTV.EncMapInt8Int16V(v, e)
  1145. case *map[int8]int16:
  1146. fastpathTV.EncMapInt8Int16V(*v, e)
  1147. case map[int8]int32:
  1148. fastpathTV.EncMapInt8Int32V(v, e)
  1149. case *map[int8]int32:
  1150. fastpathTV.EncMapInt8Int32V(*v, e)
  1151. case map[int8]int64:
  1152. fastpathTV.EncMapInt8Int64V(v, e)
  1153. case *map[int8]int64:
  1154. fastpathTV.EncMapInt8Int64V(*v, e)
  1155. case map[int8]float32:
  1156. fastpathTV.EncMapInt8Float32V(v, e)
  1157. case *map[int8]float32:
  1158. fastpathTV.EncMapInt8Float32V(*v, e)
  1159. case map[int8]float64:
  1160. fastpathTV.EncMapInt8Float64V(v, e)
  1161. case *map[int8]float64:
  1162. fastpathTV.EncMapInt8Float64V(*v, e)
  1163. case map[int8]bool:
  1164. fastpathTV.EncMapInt8BoolV(v, e)
  1165. case *map[int8]bool:
  1166. fastpathTV.EncMapInt8BoolV(*v, e)
  1167. case []int16:
  1168. fastpathTV.EncSliceInt16V(v, e)
  1169. case *[]int16:
  1170. fastpathTV.EncSliceInt16V(*v, e)
  1171. case map[int16]interface{}:
  1172. fastpathTV.EncMapInt16IntfV(v, e)
  1173. case *map[int16]interface{}:
  1174. fastpathTV.EncMapInt16IntfV(*v, e)
  1175. case map[int16]string:
  1176. fastpathTV.EncMapInt16StringV(v, e)
  1177. case *map[int16]string:
  1178. fastpathTV.EncMapInt16StringV(*v, e)
  1179. case map[int16]uint:
  1180. fastpathTV.EncMapInt16UintV(v, e)
  1181. case *map[int16]uint:
  1182. fastpathTV.EncMapInt16UintV(*v, e)
  1183. case map[int16]uint8:
  1184. fastpathTV.EncMapInt16Uint8V(v, e)
  1185. case *map[int16]uint8:
  1186. fastpathTV.EncMapInt16Uint8V(*v, e)
  1187. case map[int16]uint16:
  1188. fastpathTV.EncMapInt16Uint16V(v, e)
  1189. case *map[int16]uint16:
  1190. fastpathTV.EncMapInt16Uint16V(*v, e)
  1191. case map[int16]uint32:
  1192. fastpathTV.EncMapInt16Uint32V(v, e)
  1193. case *map[int16]uint32:
  1194. fastpathTV.EncMapInt16Uint32V(*v, e)
  1195. case map[int16]uint64:
  1196. fastpathTV.EncMapInt16Uint64V(v, e)
  1197. case *map[int16]uint64:
  1198. fastpathTV.EncMapInt16Uint64V(*v, e)
  1199. case map[int16]uintptr:
  1200. fastpathTV.EncMapInt16UintptrV(v, e)
  1201. case *map[int16]uintptr:
  1202. fastpathTV.EncMapInt16UintptrV(*v, e)
  1203. case map[int16]int:
  1204. fastpathTV.EncMapInt16IntV(v, e)
  1205. case *map[int16]int:
  1206. fastpathTV.EncMapInt16IntV(*v, e)
  1207. case map[int16]int8:
  1208. fastpathTV.EncMapInt16Int8V(v, e)
  1209. case *map[int16]int8:
  1210. fastpathTV.EncMapInt16Int8V(*v, e)
  1211. case map[int16]int16:
  1212. fastpathTV.EncMapInt16Int16V(v, e)
  1213. case *map[int16]int16:
  1214. fastpathTV.EncMapInt16Int16V(*v, e)
  1215. case map[int16]int32:
  1216. fastpathTV.EncMapInt16Int32V(v, e)
  1217. case *map[int16]int32:
  1218. fastpathTV.EncMapInt16Int32V(*v, e)
  1219. case map[int16]int64:
  1220. fastpathTV.EncMapInt16Int64V(v, e)
  1221. case *map[int16]int64:
  1222. fastpathTV.EncMapInt16Int64V(*v, e)
  1223. case map[int16]float32:
  1224. fastpathTV.EncMapInt16Float32V(v, e)
  1225. case *map[int16]float32:
  1226. fastpathTV.EncMapInt16Float32V(*v, e)
  1227. case map[int16]float64:
  1228. fastpathTV.EncMapInt16Float64V(v, e)
  1229. case *map[int16]float64:
  1230. fastpathTV.EncMapInt16Float64V(*v, e)
  1231. case map[int16]bool:
  1232. fastpathTV.EncMapInt16BoolV(v, e)
  1233. case *map[int16]bool:
  1234. fastpathTV.EncMapInt16BoolV(*v, e)
  1235. case []int32:
  1236. fastpathTV.EncSliceInt32V(v, e)
  1237. case *[]int32:
  1238. fastpathTV.EncSliceInt32V(*v, e)
  1239. case map[int32]interface{}:
  1240. fastpathTV.EncMapInt32IntfV(v, e)
  1241. case *map[int32]interface{}:
  1242. fastpathTV.EncMapInt32IntfV(*v, e)
  1243. case map[int32]string:
  1244. fastpathTV.EncMapInt32StringV(v, e)
  1245. case *map[int32]string:
  1246. fastpathTV.EncMapInt32StringV(*v, e)
  1247. case map[int32]uint:
  1248. fastpathTV.EncMapInt32UintV(v, e)
  1249. case *map[int32]uint:
  1250. fastpathTV.EncMapInt32UintV(*v, e)
  1251. case map[int32]uint8:
  1252. fastpathTV.EncMapInt32Uint8V(v, e)
  1253. case *map[int32]uint8:
  1254. fastpathTV.EncMapInt32Uint8V(*v, e)
  1255. case map[int32]uint16:
  1256. fastpathTV.EncMapInt32Uint16V(v, e)
  1257. case *map[int32]uint16:
  1258. fastpathTV.EncMapInt32Uint16V(*v, e)
  1259. case map[int32]uint32:
  1260. fastpathTV.EncMapInt32Uint32V(v, e)
  1261. case *map[int32]uint32:
  1262. fastpathTV.EncMapInt32Uint32V(*v, e)
  1263. case map[int32]uint64:
  1264. fastpathTV.EncMapInt32Uint64V(v, e)
  1265. case *map[int32]uint64:
  1266. fastpathTV.EncMapInt32Uint64V(*v, e)
  1267. case map[int32]uintptr:
  1268. fastpathTV.EncMapInt32UintptrV(v, e)
  1269. case *map[int32]uintptr:
  1270. fastpathTV.EncMapInt32UintptrV(*v, e)
  1271. case map[int32]int:
  1272. fastpathTV.EncMapInt32IntV(v, e)
  1273. case *map[int32]int:
  1274. fastpathTV.EncMapInt32IntV(*v, e)
  1275. case map[int32]int8:
  1276. fastpathTV.EncMapInt32Int8V(v, e)
  1277. case *map[int32]int8:
  1278. fastpathTV.EncMapInt32Int8V(*v, e)
  1279. case map[int32]int16:
  1280. fastpathTV.EncMapInt32Int16V(v, e)
  1281. case *map[int32]int16:
  1282. fastpathTV.EncMapInt32Int16V(*v, e)
  1283. case map[int32]int32:
  1284. fastpathTV.EncMapInt32Int32V(v, e)
  1285. case *map[int32]int32:
  1286. fastpathTV.EncMapInt32Int32V(*v, e)
  1287. case map[int32]int64:
  1288. fastpathTV.EncMapInt32Int64V(v, e)
  1289. case *map[int32]int64:
  1290. fastpathTV.EncMapInt32Int64V(*v, e)
  1291. case map[int32]float32:
  1292. fastpathTV.EncMapInt32Float32V(v, e)
  1293. case *map[int32]float32:
  1294. fastpathTV.EncMapInt32Float32V(*v, e)
  1295. case map[int32]float64:
  1296. fastpathTV.EncMapInt32Float64V(v, e)
  1297. case *map[int32]float64:
  1298. fastpathTV.EncMapInt32Float64V(*v, e)
  1299. case map[int32]bool:
  1300. fastpathTV.EncMapInt32BoolV(v, e)
  1301. case *map[int32]bool:
  1302. fastpathTV.EncMapInt32BoolV(*v, e)
  1303. case []int64:
  1304. fastpathTV.EncSliceInt64V(v, e)
  1305. case *[]int64:
  1306. fastpathTV.EncSliceInt64V(*v, e)
  1307. case map[int64]interface{}:
  1308. fastpathTV.EncMapInt64IntfV(v, e)
  1309. case *map[int64]interface{}:
  1310. fastpathTV.EncMapInt64IntfV(*v, e)
  1311. case map[int64]string:
  1312. fastpathTV.EncMapInt64StringV(v, e)
  1313. case *map[int64]string:
  1314. fastpathTV.EncMapInt64StringV(*v, e)
  1315. case map[int64]uint:
  1316. fastpathTV.EncMapInt64UintV(v, e)
  1317. case *map[int64]uint:
  1318. fastpathTV.EncMapInt64UintV(*v, e)
  1319. case map[int64]uint8:
  1320. fastpathTV.EncMapInt64Uint8V(v, e)
  1321. case *map[int64]uint8:
  1322. fastpathTV.EncMapInt64Uint8V(*v, e)
  1323. case map[int64]uint16:
  1324. fastpathTV.EncMapInt64Uint16V(v, e)
  1325. case *map[int64]uint16:
  1326. fastpathTV.EncMapInt64Uint16V(*v, e)
  1327. case map[int64]uint32:
  1328. fastpathTV.EncMapInt64Uint32V(v, e)
  1329. case *map[int64]uint32:
  1330. fastpathTV.EncMapInt64Uint32V(*v, e)
  1331. case map[int64]uint64:
  1332. fastpathTV.EncMapInt64Uint64V(v, e)
  1333. case *map[int64]uint64:
  1334. fastpathTV.EncMapInt64Uint64V(*v, e)
  1335. case map[int64]uintptr:
  1336. fastpathTV.EncMapInt64UintptrV(v, e)
  1337. case *map[int64]uintptr:
  1338. fastpathTV.EncMapInt64UintptrV(*v, e)
  1339. case map[int64]int:
  1340. fastpathTV.EncMapInt64IntV(v, e)
  1341. case *map[int64]int:
  1342. fastpathTV.EncMapInt64IntV(*v, e)
  1343. case map[int64]int8:
  1344. fastpathTV.EncMapInt64Int8V(v, e)
  1345. case *map[int64]int8:
  1346. fastpathTV.EncMapInt64Int8V(*v, e)
  1347. case map[int64]int16:
  1348. fastpathTV.EncMapInt64Int16V(v, e)
  1349. case *map[int64]int16:
  1350. fastpathTV.EncMapInt64Int16V(*v, e)
  1351. case map[int64]int32:
  1352. fastpathTV.EncMapInt64Int32V(v, e)
  1353. case *map[int64]int32:
  1354. fastpathTV.EncMapInt64Int32V(*v, e)
  1355. case map[int64]int64:
  1356. fastpathTV.EncMapInt64Int64V(v, e)
  1357. case *map[int64]int64:
  1358. fastpathTV.EncMapInt64Int64V(*v, e)
  1359. case map[int64]float32:
  1360. fastpathTV.EncMapInt64Float32V(v, e)
  1361. case *map[int64]float32:
  1362. fastpathTV.EncMapInt64Float32V(*v, e)
  1363. case map[int64]float64:
  1364. fastpathTV.EncMapInt64Float64V(v, e)
  1365. case *map[int64]float64:
  1366. fastpathTV.EncMapInt64Float64V(*v, e)
  1367. case map[int64]bool:
  1368. fastpathTV.EncMapInt64BoolV(v, e)
  1369. case *map[int64]bool:
  1370. fastpathTV.EncMapInt64BoolV(*v, e)
  1371. case []bool:
  1372. fastpathTV.EncSliceBoolV(v, e)
  1373. case *[]bool:
  1374. fastpathTV.EncSliceBoolV(*v, e)
  1375. case map[bool]interface{}:
  1376. fastpathTV.EncMapBoolIntfV(v, e)
  1377. case *map[bool]interface{}:
  1378. fastpathTV.EncMapBoolIntfV(*v, e)
  1379. case map[bool]string:
  1380. fastpathTV.EncMapBoolStringV(v, e)
  1381. case *map[bool]string:
  1382. fastpathTV.EncMapBoolStringV(*v, e)
  1383. case map[bool]uint:
  1384. fastpathTV.EncMapBoolUintV(v, e)
  1385. case *map[bool]uint:
  1386. fastpathTV.EncMapBoolUintV(*v, e)
  1387. case map[bool]uint8:
  1388. fastpathTV.EncMapBoolUint8V(v, e)
  1389. case *map[bool]uint8:
  1390. fastpathTV.EncMapBoolUint8V(*v, e)
  1391. case map[bool]uint16:
  1392. fastpathTV.EncMapBoolUint16V(v, e)
  1393. case *map[bool]uint16:
  1394. fastpathTV.EncMapBoolUint16V(*v, e)
  1395. case map[bool]uint32:
  1396. fastpathTV.EncMapBoolUint32V(v, e)
  1397. case *map[bool]uint32:
  1398. fastpathTV.EncMapBoolUint32V(*v, e)
  1399. case map[bool]uint64:
  1400. fastpathTV.EncMapBoolUint64V(v, e)
  1401. case *map[bool]uint64:
  1402. fastpathTV.EncMapBoolUint64V(*v, e)
  1403. case map[bool]uintptr:
  1404. fastpathTV.EncMapBoolUintptrV(v, e)
  1405. case *map[bool]uintptr:
  1406. fastpathTV.EncMapBoolUintptrV(*v, e)
  1407. case map[bool]int:
  1408. fastpathTV.EncMapBoolIntV(v, e)
  1409. case *map[bool]int:
  1410. fastpathTV.EncMapBoolIntV(*v, e)
  1411. case map[bool]int8:
  1412. fastpathTV.EncMapBoolInt8V(v, e)
  1413. case *map[bool]int8:
  1414. fastpathTV.EncMapBoolInt8V(*v, e)
  1415. case map[bool]int16:
  1416. fastpathTV.EncMapBoolInt16V(v, e)
  1417. case *map[bool]int16:
  1418. fastpathTV.EncMapBoolInt16V(*v, e)
  1419. case map[bool]int32:
  1420. fastpathTV.EncMapBoolInt32V(v, e)
  1421. case *map[bool]int32:
  1422. fastpathTV.EncMapBoolInt32V(*v, e)
  1423. case map[bool]int64:
  1424. fastpathTV.EncMapBoolInt64V(v, e)
  1425. case *map[bool]int64:
  1426. fastpathTV.EncMapBoolInt64V(*v, e)
  1427. case map[bool]float32:
  1428. fastpathTV.EncMapBoolFloat32V(v, e)
  1429. case *map[bool]float32:
  1430. fastpathTV.EncMapBoolFloat32V(*v, e)
  1431. case map[bool]float64:
  1432. fastpathTV.EncMapBoolFloat64V(v, e)
  1433. case *map[bool]float64:
  1434. fastpathTV.EncMapBoolFloat64V(*v, e)
  1435. case map[bool]bool:
  1436. fastpathTV.EncMapBoolBoolV(v, e)
  1437. case *map[bool]bool:
  1438. fastpathTV.EncMapBoolBoolV(*v, e)
  1439. default:
  1440. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  1441. return false
  1442. }
  1443. return true
  1444. }
  1445. // -- -- fast path functions
  1446. func (e *Encoder) fastpathEncSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  1447. if f.ti.mbs {
  1448. fastpathTV.EncAsMapSliceIntfV(rv2i(rv).([]interface{}), e)
  1449. } else {
  1450. fastpathTV.EncSliceIntfV(rv2i(rv).([]interface{}), e)
  1451. }
  1452. }
  1453. func (_ fastpathT) EncSliceIntfV(v []interface{}, e *Encoder) {
  1454. if v == nil {
  1455. e.e.EncodeNil()
  1456. return
  1457. }
  1458. ee, esep := e.e, e.hh.hasElemSeparators()
  1459. ee.WriteArrayStart(len(v))
  1460. for _, v2 := range v {
  1461. if esep {
  1462. ee.WriteArrayElem()
  1463. }
  1464. e.encode(v2)
  1465. }
  1466. ee.WriteArrayEnd()
  1467. }
  1468. func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, e *Encoder) {
  1469. ee, esep := e.e, e.hh.hasElemSeparators()
  1470. if len(v)%2 == 1 {
  1471. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1472. return
  1473. }
  1474. ee.WriteMapStart(len(v) / 2)
  1475. for j, v2 := range v {
  1476. if esep {
  1477. if j%2 == 0 {
  1478. ee.WriteMapElemKey()
  1479. } else {
  1480. ee.WriteMapElemValue()
  1481. }
  1482. }
  1483. e.encode(v2)
  1484. }
  1485. ee.WriteMapEnd()
  1486. }
  1487. func (e *Encoder) fastpathEncSliceStringR(f *codecFnInfo, rv reflect.Value) {
  1488. if f.ti.mbs {
  1489. fastpathTV.EncAsMapSliceStringV(rv2i(rv).([]string), e)
  1490. } else {
  1491. fastpathTV.EncSliceStringV(rv2i(rv).([]string), e)
  1492. }
  1493. }
  1494. func (_ fastpathT) EncSliceStringV(v []string, e *Encoder) {
  1495. if v == nil {
  1496. e.e.EncodeNil()
  1497. return
  1498. }
  1499. ee, esep := e.e, e.hh.hasElemSeparators()
  1500. ee.WriteArrayStart(len(v))
  1501. for _, v2 := range v {
  1502. if esep {
  1503. ee.WriteArrayElem()
  1504. }
  1505. ee.EncodeString(c_UTF8, v2)
  1506. }
  1507. ee.WriteArrayEnd()
  1508. }
  1509. func (_ fastpathT) EncAsMapSliceStringV(v []string, e *Encoder) {
  1510. ee, esep := e.e, e.hh.hasElemSeparators()
  1511. if len(v)%2 == 1 {
  1512. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1513. return
  1514. }
  1515. ee.WriteMapStart(len(v) / 2)
  1516. for j, v2 := range v {
  1517. if esep {
  1518. if j%2 == 0 {
  1519. ee.WriteMapElemKey()
  1520. } else {
  1521. ee.WriteMapElemValue()
  1522. }
  1523. }
  1524. ee.EncodeString(c_UTF8, v2)
  1525. }
  1526. ee.WriteMapEnd()
  1527. }
  1528. func (e *Encoder) fastpathEncSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  1529. if f.ti.mbs {
  1530. fastpathTV.EncAsMapSliceFloat32V(rv2i(rv).([]float32), e)
  1531. } else {
  1532. fastpathTV.EncSliceFloat32V(rv2i(rv).([]float32), e)
  1533. }
  1534. }
  1535. func (_ fastpathT) EncSliceFloat32V(v []float32, e *Encoder) {
  1536. if v == nil {
  1537. e.e.EncodeNil()
  1538. return
  1539. }
  1540. ee, esep := e.e, e.hh.hasElemSeparators()
  1541. ee.WriteArrayStart(len(v))
  1542. for _, v2 := range v {
  1543. if esep {
  1544. ee.WriteArrayElem()
  1545. }
  1546. ee.EncodeFloat32(v2)
  1547. }
  1548. ee.WriteArrayEnd()
  1549. }
  1550. func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, e *Encoder) {
  1551. ee, esep := e.e, e.hh.hasElemSeparators()
  1552. if len(v)%2 == 1 {
  1553. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1554. return
  1555. }
  1556. ee.WriteMapStart(len(v) / 2)
  1557. for j, v2 := range v {
  1558. if esep {
  1559. if j%2 == 0 {
  1560. ee.WriteMapElemKey()
  1561. } else {
  1562. ee.WriteMapElemValue()
  1563. }
  1564. }
  1565. ee.EncodeFloat32(v2)
  1566. }
  1567. ee.WriteMapEnd()
  1568. }
  1569. func (e *Encoder) fastpathEncSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  1570. if f.ti.mbs {
  1571. fastpathTV.EncAsMapSliceFloat64V(rv2i(rv).([]float64), e)
  1572. } else {
  1573. fastpathTV.EncSliceFloat64V(rv2i(rv).([]float64), e)
  1574. }
  1575. }
  1576. func (_ fastpathT) EncSliceFloat64V(v []float64, e *Encoder) {
  1577. if v == nil {
  1578. e.e.EncodeNil()
  1579. return
  1580. }
  1581. ee, esep := e.e, e.hh.hasElemSeparators()
  1582. ee.WriteArrayStart(len(v))
  1583. for _, v2 := range v {
  1584. if esep {
  1585. ee.WriteArrayElem()
  1586. }
  1587. ee.EncodeFloat64(v2)
  1588. }
  1589. ee.WriteArrayEnd()
  1590. }
  1591. func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, e *Encoder) {
  1592. ee, esep := e.e, e.hh.hasElemSeparators()
  1593. if len(v)%2 == 1 {
  1594. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1595. return
  1596. }
  1597. ee.WriteMapStart(len(v) / 2)
  1598. for j, v2 := range v {
  1599. if esep {
  1600. if j%2 == 0 {
  1601. ee.WriteMapElemKey()
  1602. } else {
  1603. ee.WriteMapElemValue()
  1604. }
  1605. }
  1606. ee.EncodeFloat64(v2)
  1607. }
  1608. ee.WriteMapEnd()
  1609. }
  1610. func (e *Encoder) fastpathEncSliceUintR(f *codecFnInfo, rv reflect.Value) {
  1611. if f.ti.mbs {
  1612. fastpathTV.EncAsMapSliceUintV(rv2i(rv).([]uint), e)
  1613. } else {
  1614. fastpathTV.EncSliceUintV(rv2i(rv).([]uint), e)
  1615. }
  1616. }
  1617. func (_ fastpathT) EncSliceUintV(v []uint, e *Encoder) {
  1618. if v == nil {
  1619. e.e.EncodeNil()
  1620. return
  1621. }
  1622. ee, esep := e.e, e.hh.hasElemSeparators()
  1623. ee.WriteArrayStart(len(v))
  1624. for _, v2 := range v {
  1625. if esep {
  1626. ee.WriteArrayElem()
  1627. }
  1628. ee.EncodeUint(uint64(v2))
  1629. }
  1630. ee.WriteArrayEnd()
  1631. }
  1632. func (_ fastpathT) EncAsMapSliceUintV(v []uint, e *Encoder) {
  1633. ee, esep := e.e, e.hh.hasElemSeparators()
  1634. if len(v)%2 == 1 {
  1635. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1636. return
  1637. }
  1638. ee.WriteMapStart(len(v) / 2)
  1639. for j, v2 := range v {
  1640. if esep {
  1641. if j%2 == 0 {
  1642. ee.WriteMapElemKey()
  1643. } else {
  1644. ee.WriteMapElemValue()
  1645. }
  1646. }
  1647. ee.EncodeUint(uint64(v2))
  1648. }
  1649. ee.WriteMapEnd()
  1650. }
  1651. func (e *Encoder) fastpathEncSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  1652. if f.ti.mbs {
  1653. fastpathTV.EncAsMapSliceUint16V(rv2i(rv).([]uint16), e)
  1654. } else {
  1655. fastpathTV.EncSliceUint16V(rv2i(rv).([]uint16), e)
  1656. }
  1657. }
  1658. func (_ fastpathT) EncSliceUint16V(v []uint16, e *Encoder) {
  1659. if v == nil {
  1660. e.e.EncodeNil()
  1661. return
  1662. }
  1663. ee, esep := e.e, e.hh.hasElemSeparators()
  1664. ee.WriteArrayStart(len(v))
  1665. for _, v2 := range v {
  1666. if esep {
  1667. ee.WriteArrayElem()
  1668. }
  1669. ee.EncodeUint(uint64(v2))
  1670. }
  1671. ee.WriteArrayEnd()
  1672. }
  1673. func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, e *Encoder) {
  1674. ee, esep := e.e, e.hh.hasElemSeparators()
  1675. if len(v)%2 == 1 {
  1676. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1677. return
  1678. }
  1679. ee.WriteMapStart(len(v) / 2)
  1680. for j, v2 := range v {
  1681. if esep {
  1682. if j%2 == 0 {
  1683. ee.WriteMapElemKey()
  1684. } else {
  1685. ee.WriteMapElemValue()
  1686. }
  1687. }
  1688. ee.EncodeUint(uint64(v2))
  1689. }
  1690. ee.WriteMapEnd()
  1691. }
  1692. func (e *Encoder) fastpathEncSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  1693. if f.ti.mbs {
  1694. fastpathTV.EncAsMapSliceUint32V(rv2i(rv).([]uint32), e)
  1695. } else {
  1696. fastpathTV.EncSliceUint32V(rv2i(rv).([]uint32), e)
  1697. }
  1698. }
  1699. func (_ fastpathT) EncSliceUint32V(v []uint32, e *Encoder) {
  1700. if v == nil {
  1701. e.e.EncodeNil()
  1702. return
  1703. }
  1704. ee, esep := e.e, e.hh.hasElemSeparators()
  1705. ee.WriteArrayStart(len(v))
  1706. for _, v2 := range v {
  1707. if esep {
  1708. ee.WriteArrayElem()
  1709. }
  1710. ee.EncodeUint(uint64(v2))
  1711. }
  1712. ee.WriteArrayEnd()
  1713. }
  1714. func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, 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. for j, v2 := range v {
  1722. if esep {
  1723. if j%2 == 0 {
  1724. ee.WriteMapElemKey()
  1725. } else {
  1726. ee.WriteMapElemValue()
  1727. }
  1728. }
  1729. ee.EncodeUint(uint64(v2))
  1730. }
  1731. ee.WriteMapEnd()
  1732. }
  1733. func (e *Encoder) fastpathEncSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  1734. if f.ti.mbs {
  1735. fastpathTV.EncAsMapSliceUint64V(rv2i(rv).([]uint64), e)
  1736. } else {
  1737. fastpathTV.EncSliceUint64V(rv2i(rv).([]uint64), e)
  1738. }
  1739. }
  1740. func (_ fastpathT) EncSliceUint64V(v []uint64, e *Encoder) {
  1741. if v == nil {
  1742. e.e.EncodeNil()
  1743. return
  1744. }
  1745. ee, esep := e.e, e.hh.hasElemSeparators()
  1746. ee.WriteArrayStart(len(v))
  1747. for _, v2 := range v {
  1748. if esep {
  1749. ee.WriteArrayElem()
  1750. }
  1751. ee.EncodeUint(uint64(v2))
  1752. }
  1753. ee.WriteArrayEnd()
  1754. }
  1755. func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, e *Encoder) {
  1756. ee, esep := e.e, e.hh.hasElemSeparators()
  1757. if len(v)%2 == 1 {
  1758. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1759. return
  1760. }
  1761. ee.WriteMapStart(len(v) / 2)
  1762. for j, v2 := range v {
  1763. if esep {
  1764. if j%2 == 0 {
  1765. ee.WriteMapElemKey()
  1766. } else {
  1767. ee.WriteMapElemValue()
  1768. }
  1769. }
  1770. ee.EncodeUint(uint64(v2))
  1771. }
  1772. ee.WriteMapEnd()
  1773. }
  1774. func (e *Encoder) fastpathEncSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  1775. if f.ti.mbs {
  1776. fastpathTV.EncAsMapSliceUintptrV(rv2i(rv).([]uintptr), e)
  1777. } else {
  1778. fastpathTV.EncSliceUintptrV(rv2i(rv).([]uintptr), e)
  1779. }
  1780. }
  1781. func (_ fastpathT) EncSliceUintptrV(v []uintptr, e *Encoder) {
  1782. if v == nil {
  1783. e.e.EncodeNil()
  1784. return
  1785. }
  1786. ee, esep := e.e, e.hh.hasElemSeparators()
  1787. ee.WriteArrayStart(len(v))
  1788. for _, v2 := range v {
  1789. if esep {
  1790. ee.WriteArrayElem()
  1791. }
  1792. e.encode(v2)
  1793. }
  1794. ee.WriteArrayEnd()
  1795. }
  1796. func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, e *Encoder) {
  1797. ee, esep := e.e, e.hh.hasElemSeparators()
  1798. if len(v)%2 == 1 {
  1799. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1800. return
  1801. }
  1802. ee.WriteMapStart(len(v) / 2)
  1803. for j, v2 := range v {
  1804. if esep {
  1805. if j%2 == 0 {
  1806. ee.WriteMapElemKey()
  1807. } else {
  1808. ee.WriteMapElemValue()
  1809. }
  1810. }
  1811. e.encode(v2)
  1812. }
  1813. ee.WriteMapEnd()
  1814. }
  1815. func (e *Encoder) fastpathEncSliceIntR(f *codecFnInfo, rv reflect.Value) {
  1816. if f.ti.mbs {
  1817. fastpathTV.EncAsMapSliceIntV(rv2i(rv).([]int), e)
  1818. } else {
  1819. fastpathTV.EncSliceIntV(rv2i(rv).([]int), e)
  1820. }
  1821. }
  1822. func (_ fastpathT) EncSliceIntV(v []int, e *Encoder) {
  1823. if v == nil {
  1824. e.e.EncodeNil()
  1825. return
  1826. }
  1827. ee, esep := e.e, e.hh.hasElemSeparators()
  1828. ee.WriteArrayStart(len(v))
  1829. for _, v2 := range v {
  1830. if esep {
  1831. ee.WriteArrayElem()
  1832. }
  1833. ee.EncodeInt(int64(v2))
  1834. }
  1835. ee.WriteArrayEnd()
  1836. }
  1837. func (_ fastpathT) EncAsMapSliceIntV(v []int, e *Encoder) {
  1838. ee, esep := e.e, e.hh.hasElemSeparators()
  1839. if len(v)%2 == 1 {
  1840. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1841. return
  1842. }
  1843. ee.WriteMapStart(len(v) / 2)
  1844. for j, v2 := range v {
  1845. if esep {
  1846. if j%2 == 0 {
  1847. ee.WriteMapElemKey()
  1848. } else {
  1849. ee.WriteMapElemValue()
  1850. }
  1851. }
  1852. ee.EncodeInt(int64(v2))
  1853. }
  1854. ee.WriteMapEnd()
  1855. }
  1856. func (e *Encoder) fastpathEncSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  1857. if f.ti.mbs {
  1858. fastpathTV.EncAsMapSliceInt8V(rv2i(rv).([]int8), e)
  1859. } else {
  1860. fastpathTV.EncSliceInt8V(rv2i(rv).([]int8), e)
  1861. }
  1862. }
  1863. func (_ fastpathT) EncSliceInt8V(v []int8, e *Encoder) {
  1864. if v == nil {
  1865. e.e.EncodeNil()
  1866. return
  1867. }
  1868. ee, esep := e.e, e.hh.hasElemSeparators()
  1869. ee.WriteArrayStart(len(v))
  1870. for _, v2 := range v {
  1871. if esep {
  1872. ee.WriteArrayElem()
  1873. }
  1874. ee.EncodeInt(int64(v2))
  1875. }
  1876. ee.WriteArrayEnd()
  1877. }
  1878. func (_ fastpathT) EncAsMapSliceInt8V(v []int8, e *Encoder) {
  1879. ee, esep := e.e, e.hh.hasElemSeparators()
  1880. if len(v)%2 == 1 {
  1881. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1882. return
  1883. }
  1884. ee.WriteMapStart(len(v) / 2)
  1885. for j, v2 := range v {
  1886. if esep {
  1887. if j%2 == 0 {
  1888. ee.WriteMapElemKey()
  1889. } else {
  1890. ee.WriteMapElemValue()
  1891. }
  1892. }
  1893. ee.EncodeInt(int64(v2))
  1894. }
  1895. ee.WriteMapEnd()
  1896. }
  1897. func (e *Encoder) fastpathEncSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  1898. if f.ti.mbs {
  1899. fastpathTV.EncAsMapSliceInt16V(rv2i(rv).([]int16), e)
  1900. } else {
  1901. fastpathTV.EncSliceInt16V(rv2i(rv).([]int16), e)
  1902. }
  1903. }
  1904. func (_ fastpathT) EncSliceInt16V(v []int16, e *Encoder) {
  1905. if v == nil {
  1906. e.e.EncodeNil()
  1907. return
  1908. }
  1909. ee, esep := e.e, e.hh.hasElemSeparators()
  1910. ee.WriteArrayStart(len(v))
  1911. for _, v2 := range v {
  1912. if esep {
  1913. ee.WriteArrayElem()
  1914. }
  1915. ee.EncodeInt(int64(v2))
  1916. }
  1917. ee.WriteArrayEnd()
  1918. }
  1919. func (_ fastpathT) EncAsMapSliceInt16V(v []int16, e *Encoder) {
  1920. ee, esep := e.e, e.hh.hasElemSeparators()
  1921. if len(v)%2 == 1 {
  1922. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1923. return
  1924. }
  1925. ee.WriteMapStart(len(v) / 2)
  1926. for j, v2 := range v {
  1927. if esep {
  1928. if j%2 == 0 {
  1929. ee.WriteMapElemKey()
  1930. } else {
  1931. ee.WriteMapElemValue()
  1932. }
  1933. }
  1934. ee.EncodeInt(int64(v2))
  1935. }
  1936. ee.WriteMapEnd()
  1937. }
  1938. func (e *Encoder) fastpathEncSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  1939. if f.ti.mbs {
  1940. fastpathTV.EncAsMapSliceInt32V(rv2i(rv).([]int32), e)
  1941. } else {
  1942. fastpathTV.EncSliceInt32V(rv2i(rv).([]int32), e)
  1943. }
  1944. }
  1945. func (_ fastpathT) EncSliceInt32V(v []int32, e *Encoder) {
  1946. if v == nil {
  1947. e.e.EncodeNil()
  1948. return
  1949. }
  1950. ee, esep := e.e, e.hh.hasElemSeparators()
  1951. ee.WriteArrayStart(len(v))
  1952. for _, v2 := range v {
  1953. if esep {
  1954. ee.WriteArrayElem()
  1955. }
  1956. ee.EncodeInt(int64(v2))
  1957. }
  1958. ee.WriteArrayEnd()
  1959. }
  1960. func (_ fastpathT) EncAsMapSliceInt32V(v []int32, e *Encoder) {
  1961. ee, esep := e.e, e.hh.hasElemSeparators()
  1962. if len(v)%2 == 1 {
  1963. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1964. return
  1965. }
  1966. ee.WriteMapStart(len(v) / 2)
  1967. for j, v2 := range v {
  1968. if esep {
  1969. if j%2 == 0 {
  1970. ee.WriteMapElemKey()
  1971. } else {
  1972. ee.WriteMapElemValue()
  1973. }
  1974. }
  1975. ee.EncodeInt(int64(v2))
  1976. }
  1977. ee.WriteMapEnd()
  1978. }
  1979. func (e *Encoder) fastpathEncSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  1980. if f.ti.mbs {
  1981. fastpathTV.EncAsMapSliceInt64V(rv2i(rv).([]int64), e)
  1982. } else {
  1983. fastpathTV.EncSliceInt64V(rv2i(rv).([]int64), e)
  1984. }
  1985. }
  1986. func (_ fastpathT) EncSliceInt64V(v []int64, e *Encoder) {
  1987. if v == nil {
  1988. e.e.EncodeNil()
  1989. return
  1990. }
  1991. ee, esep := e.e, e.hh.hasElemSeparators()
  1992. ee.WriteArrayStart(len(v))
  1993. for _, v2 := range v {
  1994. if esep {
  1995. ee.WriteArrayElem()
  1996. }
  1997. ee.EncodeInt(int64(v2))
  1998. }
  1999. ee.WriteArrayEnd()
  2000. }
  2001. func (_ fastpathT) EncAsMapSliceInt64V(v []int64, e *Encoder) {
  2002. ee, esep := e.e, e.hh.hasElemSeparators()
  2003. if len(v)%2 == 1 {
  2004. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2005. return
  2006. }
  2007. ee.WriteMapStart(len(v) / 2)
  2008. for j, v2 := range v {
  2009. if esep {
  2010. if j%2 == 0 {
  2011. ee.WriteMapElemKey()
  2012. } else {
  2013. ee.WriteMapElemValue()
  2014. }
  2015. }
  2016. ee.EncodeInt(int64(v2))
  2017. }
  2018. ee.WriteMapEnd()
  2019. }
  2020. func (e *Encoder) fastpathEncSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  2021. if f.ti.mbs {
  2022. fastpathTV.EncAsMapSliceBoolV(rv2i(rv).([]bool), e)
  2023. } else {
  2024. fastpathTV.EncSliceBoolV(rv2i(rv).([]bool), e)
  2025. }
  2026. }
  2027. func (_ fastpathT) EncSliceBoolV(v []bool, e *Encoder) {
  2028. if v == nil {
  2029. e.e.EncodeNil()
  2030. return
  2031. }
  2032. ee, esep := e.e, e.hh.hasElemSeparators()
  2033. ee.WriteArrayStart(len(v))
  2034. for _, v2 := range v {
  2035. if esep {
  2036. ee.WriteArrayElem()
  2037. }
  2038. ee.EncodeBool(v2)
  2039. }
  2040. ee.WriteArrayEnd()
  2041. }
  2042. func (_ fastpathT) EncAsMapSliceBoolV(v []bool, e *Encoder) {
  2043. ee, esep := e.e, e.hh.hasElemSeparators()
  2044. if len(v)%2 == 1 {
  2045. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2046. return
  2047. }
  2048. ee.WriteMapStart(len(v) / 2)
  2049. for j, v2 := range v {
  2050. if esep {
  2051. if j%2 == 0 {
  2052. ee.WriteMapElemKey()
  2053. } else {
  2054. ee.WriteMapElemValue()
  2055. }
  2056. }
  2057. ee.EncodeBool(v2)
  2058. }
  2059. ee.WriteMapEnd()
  2060. }
  2061. func (e *Encoder) fastpathEncMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  2062. fastpathTV.EncMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), e)
  2063. }
  2064. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, e *Encoder) {
  2065. if v == nil {
  2066. e.e.EncodeNil()
  2067. return
  2068. }
  2069. ee, esep := e.e, e.hh.hasElemSeparators()
  2070. ee.WriteMapStart(len(v))
  2071. if e.h.Canonical {
  2072. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2073. e2 := NewEncoderBytes(&mksv, e.hh)
  2074. v2 := make([]bytesI, len(v))
  2075. var i, l int
  2076. var vp *bytesI
  2077. for k2, _ := range v {
  2078. l = len(mksv)
  2079. e2.MustEncode(k2)
  2080. vp = &v2[i]
  2081. vp.v = mksv[l:]
  2082. vp.i = k2
  2083. i++
  2084. }
  2085. sort.Sort(bytesISlice(v2))
  2086. for j := range v2 {
  2087. if esep {
  2088. ee.WriteMapElemKey()
  2089. }
  2090. e.asis(v2[j].v)
  2091. if esep {
  2092. ee.WriteMapElemValue()
  2093. }
  2094. e.encode(v[v2[j].i])
  2095. }
  2096. } else {
  2097. for k2, v2 := range v {
  2098. if esep {
  2099. ee.WriteMapElemKey()
  2100. }
  2101. e.encode(k2)
  2102. if esep {
  2103. ee.WriteMapElemValue()
  2104. }
  2105. e.encode(v2)
  2106. }
  2107. }
  2108. ee.WriteMapEnd()
  2109. }
  2110. func (e *Encoder) fastpathEncMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  2111. fastpathTV.EncMapIntfStringV(rv2i(rv).(map[interface{}]string), e)
  2112. }
  2113. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, e *Encoder) {
  2114. if v == nil {
  2115. e.e.EncodeNil()
  2116. return
  2117. }
  2118. ee, esep := e.e, e.hh.hasElemSeparators()
  2119. ee.WriteMapStart(len(v))
  2120. if e.h.Canonical {
  2121. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2122. e2 := NewEncoderBytes(&mksv, e.hh)
  2123. v2 := make([]bytesI, len(v))
  2124. var i, l int
  2125. var vp *bytesI
  2126. for k2, _ := range v {
  2127. l = len(mksv)
  2128. e2.MustEncode(k2)
  2129. vp = &v2[i]
  2130. vp.v = mksv[l:]
  2131. vp.i = k2
  2132. i++
  2133. }
  2134. sort.Sort(bytesISlice(v2))
  2135. for j := range v2 {
  2136. if esep {
  2137. ee.WriteMapElemKey()
  2138. }
  2139. e.asis(v2[j].v)
  2140. if esep {
  2141. ee.WriteMapElemValue()
  2142. }
  2143. e.encode(v[v2[j].i])
  2144. }
  2145. } else {
  2146. for k2, v2 := range v {
  2147. if esep {
  2148. ee.WriteMapElemKey()
  2149. }
  2150. e.encode(k2)
  2151. if esep {
  2152. ee.WriteMapElemValue()
  2153. }
  2154. ee.EncodeString(c_UTF8, v2)
  2155. }
  2156. }
  2157. ee.WriteMapEnd()
  2158. }
  2159. func (e *Encoder) fastpathEncMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  2160. fastpathTV.EncMapIntfUintV(rv2i(rv).(map[interface{}]uint), e)
  2161. }
  2162. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, e *Encoder) {
  2163. if v == nil {
  2164. e.e.EncodeNil()
  2165. return
  2166. }
  2167. ee, esep := e.e, e.hh.hasElemSeparators()
  2168. ee.WriteMapStart(len(v))
  2169. if e.h.Canonical {
  2170. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2171. e2 := NewEncoderBytes(&mksv, e.hh)
  2172. v2 := make([]bytesI, len(v))
  2173. var i, l int
  2174. var vp *bytesI
  2175. for k2, _ := range v {
  2176. l = len(mksv)
  2177. e2.MustEncode(k2)
  2178. vp = &v2[i]
  2179. vp.v = mksv[l:]
  2180. vp.i = k2
  2181. i++
  2182. }
  2183. sort.Sort(bytesISlice(v2))
  2184. for j := range v2 {
  2185. if esep {
  2186. ee.WriteMapElemKey()
  2187. }
  2188. e.asis(v2[j].v)
  2189. if esep {
  2190. ee.WriteMapElemValue()
  2191. }
  2192. e.encode(v[v2[j].i])
  2193. }
  2194. } else {
  2195. for k2, v2 := range v {
  2196. if esep {
  2197. ee.WriteMapElemKey()
  2198. }
  2199. e.encode(k2)
  2200. if esep {
  2201. ee.WriteMapElemValue()
  2202. }
  2203. ee.EncodeUint(uint64(v2))
  2204. }
  2205. }
  2206. ee.WriteMapEnd()
  2207. }
  2208. func (e *Encoder) fastpathEncMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  2209. fastpathTV.EncMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), e)
  2210. }
  2211. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, e *Encoder) {
  2212. if v == nil {
  2213. e.e.EncodeNil()
  2214. return
  2215. }
  2216. ee, esep := e.e, e.hh.hasElemSeparators()
  2217. ee.WriteMapStart(len(v))
  2218. if e.h.Canonical {
  2219. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2220. e2 := NewEncoderBytes(&mksv, e.hh)
  2221. v2 := make([]bytesI, len(v))
  2222. var i, l int
  2223. var vp *bytesI
  2224. for k2, _ := range v {
  2225. l = len(mksv)
  2226. e2.MustEncode(k2)
  2227. vp = &v2[i]
  2228. vp.v = mksv[l:]
  2229. vp.i = k2
  2230. i++
  2231. }
  2232. sort.Sort(bytesISlice(v2))
  2233. for j := range v2 {
  2234. if esep {
  2235. ee.WriteMapElemKey()
  2236. }
  2237. e.asis(v2[j].v)
  2238. if esep {
  2239. ee.WriteMapElemValue()
  2240. }
  2241. e.encode(v[v2[j].i])
  2242. }
  2243. } else {
  2244. for k2, v2 := range v {
  2245. if esep {
  2246. ee.WriteMapElemKey()
  2247. }
  2248. e.encode(k2)
  2249. if esep {
  2250. ee.WriteMapElemValue()
  2251. }
  2252. ee.EncodeUint(uint64(v2))
  2253. }
  2254. }
  2255. ee.WriteMapEnd()
  2256. }
  2257. func (e *Encoder) fastpathEncMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  2258. fastpathTV.EncMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), e)
  2259. }
  2260. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, e *Encoder) {
  2261. if v == nil {
  2262. e.e.EncodeNil()
  2263. return
  2264. }
  2265. ee, esep := e.e, e.hh.hasElemSeparators()
  2266. ee.WriteMapStart(len(v))
  2267. if e.h.Canonical {
  2268. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2269. e2 := NewEncoderBytes(&mksv, e.hh)
  2270. v2 := make([]bytesI, len(v))
  2271. var i, l int
  2272. var vp *bytesI
  2273. for k2, _ := range v {
  2274. l = len(mksv)
  2275. e2.MustEncode(k2)
  2276. vp = &v2[i]
  2277. vp.v = mksv[l:]
  2278. vp.i = k2
  2279. i++
  2280. }
  2281. sort.Sort(bytesISlice(v2))
  2282. for j := range v2 {
  2283. if esep {
  2284. ee.WriteMapElemKey()
  2285. }
  2286. e.asis(v2[j].v)
  2287. if esep {
  2288. ee.WriteMapElemValue()
  2289. }
  2290. e.encode(v[v2[j].i])
  2291. }
  2292. } else {
  2293. for k2, v2 := range v {
  2294. if esep {
  2295. ee.WriteMapElemKey()
  2296. }
  2297. e.encode(k2)
  2298. if esep {
  2299. ee.WriteMapElemValue()
  2300. }
  2301. ee.EncodeUint(uint64(v2))
  2302. }
  2303. }
  2304. ee.WriteMapEnd()
  2305. }
  2306. func (e *Encoder) fastpathEncMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  2307. fastpathTV.EncMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), e)
  2308. }
  2309. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, e *Encoder) {
  2310. if v == nil {
  2311. e.e.EncodeNil()
  2312. return
  2313. }
  2314. ee, esep := e.e, e.hh.hasElemSeparators()
  2315. ee.WriteMapStart(len(v))
  2316. if e.h.Canonical {
  2317. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2318. e2 := NewEncoderBytes(&mksv, e.hh)
  2319. v2 := make([]bytesI, len(v))
  2320. var i, l int
  2321. var vp *bytesI
  2322. for k2, _ := range v {
  2323. l = len(mksv)
  2324. e2.MustEncode(k2)
  2325. vp = &v2[i]
  2326. vp.v = mksv[l:]
  2327. vp.i = k2
  2328. i++
  2329. }
  2330. sort.Sort(bytesISlice(v2))
  2331. for j := range v2 {
  2332. if esep {
  2333. ee.WriteMapElemKey()
  2334. }
  2335. e.asis(v2[j].v)
  2336. if esep {
  2337. ee.WriteMapElemValue()
  2338. }
  2339. e.encode(v[v2[j].i])
  2340. }
  2341. } else {
  2342. for k2, v2 := range v {
  2343. if esep {
  2344. ee.WriteMapElemKey()
  2345. }
  2346. e.encode(k2)
  2347. if esep {
  2348. ee.WriteMapElemValue()
  2349. }
  2350. ee.EncodeUint(uint64(v2))
  2351. }
  2352. }
  2353. ee.WriteMapEnd()
  2354. }
  2355. func (e *Encoder) fastpathEncMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  2356. fastpathTV.EncMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), e)
  2357. }
  2358. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, e *Encoder) {
  2359. if v == nil {
  2360. e.e.EncodeNil()
  2361. return
  2362. }
  2363. ee, esep := e.e, e.hh.hasElemSeparators()
  2364. ee.WriteMapStart(len(v))
  2365. if e.h.Canonical {
  2366. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2367. e2 := NewEncoderBytes(&mksv, e.hh)
  2368. v2 := make([]bytesI, len(v))
  2369. var i, l int
  2370. var vp *bytesI
  2371. for k2, _ := range v {
  2372. l = len(mksv)
  2373. e2.MustEncode(k2)
  2374. vp = &v2[i]
  2375. vp.v = mksv[l:]
  2376. vp.i = k2
  2377. i++
  2378. }
  2379. sort.Sort(bytesISlice(v2))
  2380. for j := range v2 {
  2381. if esep {
  2382. ee.WriteMapElemKey()
  2383. }
  2384. e.asis(v2[j].v)
  2385. if esep {
  2386. ee.WriteMapElemValue()
  2387. }
  2388. e.encode(v[v2[j].i])
  2389. }
  2390. } else {
  2391. for k2, v2 := range v {
  2392. if esep {
  2393. ee.WriteMapElemKey()
  2394. }
  2395. e.encode(k2)
  2396. if esep {
  2397. ee.WriteMapElemValue()
  2398. }
  2399. ee.EncodeUint(uint64(v2))
  2400. }
  2401. }
  2402. ee.WriteMapEnd()
  2403. }
  2404. func (e *Encoder) fastpathEncMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  2405. fastpathTV.EncMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), e)
  2406. }
  2407. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, e *Encoder) {
  2408. if v == nil {
  2409. e.e.EncodeNil()
  2410. return
  2411. }
  2412. ee, esep := e.e, e.hh.hasElemSeparators()
  2413. ee.WriteMapStart(len(v))
  2414. if e.h.Canonical {
  2415. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2416. e2 := NewEncoderBytes(&mksv, e.hh)
  2417. v2 := make([]bytesI, len(v))
  2418. var i, l int
  2419. var vp *bytesI
  2420. for k2, _ := range v {
  2421. l = len(mksv)
  2422. e2.MustEncode(k2)
  2423. vp = &v2[i]
  2424. vp.v = mksv[l:]
  2425. vp.i = k2
  2426. i++
  2427. }
  2428. sort.Sort(bytesISlice(v2))
  2429. for j := range v2 {
  2430. if esep {
  2431. ee.WriteMapElemKey()
  2432. }
  2433. e.asis(v2[j].v)
  2434. if esep {
  2435. ee.WriteMapElemValue()
  2436. }
  2437. e.encode(v[v2[j].i])
  2438. }
  2439. } else {
  2440. for k2, v2 := range v {
  2441. if esep {
  2442. ee.WriteMapElemKey()
  2443. }
  2444. e.encode(k2)
  2445. if esep {
  2446. ee.WriteMapElemValue()
  2447. }
  2448. e.encode(v2)
  2449. }
  2450. }
  2451. ee.WriteMapEnd()
  2452. }
  2453. func (e *Encoder) fastpathEncMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  2454. fastpathTV.EncMapIntfIntV(rv2i(rv).(map[interface{}]int), e)
  2455. }
  2456. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, e *Encoder) {
  2457. if v == nil {
  2458. e.e.EncodeNil()
  2459. return
  2460. }
  2461. ee, esep := e.e, e.hh.hasElemSeparators()
  2462. ee.WriteMapStart(len(v))
  2463. if e.h.Canonical {
  2464. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2465. e2 := NewEncoderBytes(&mksv, e.hh)
  2466. v2 := make([]bytesI, len(v))
  2467. var i, l int
  2468. var vp *bytesI
  2469. for k2, _ := range v {
  2470. l = len(mksv)
  2471. e2.MustEncode(k2)
  2472. vp = &v2[i]
  2473. vp.v = mksv[l:]
  2474. vp.i = k2
  2475. i++
  2476. }
  2477. sort.Sort(bytesISlice(v2))
  2478. for j := range v2 {
  2479. if esep {
  2480. ee.WriteMapElemKey()
  2481. }
  2482. e.asis(v2[j].v)
  2483. if esep {
  2484. ee.WriteMapElemValue()
  2485. }
  2486. e.encode(v[v2[j].i])
  2487. }
  2488. } else {
  2489. for k2, v2 := range v {
  2490. if esep {
  2491. ee.WriteMapElemKey()
  2492. }
  2493. e.encode(k2)
  2494. if esep {
  2495. ee.WriteMapElemValue()
  2496. }
  2497. ee.EncodeInt(int64(v2))
  2498. }
  2499. }
  2500. ee.WriteMapEnd()
  2501. }
  2502. func (e *Encoder) fastpathEncMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  2503. fastpathTV.EncMapIntfInt8V(rv2i(rv).(map[interface{}]int8), e)
  2504. }
  2505. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, 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. for j := range v2 {
  2528. if esep {
  2529. ee.WriteMapElemKey()
  2530. }
  2531. e.asis(v2[j].v)
  2532. if esep {
  2533. ee.WriteMapElemValue()
  2534. }
  2535. e.encode(v[v2[j].i])
  2536. }
  2537. } else {
  2538. for k2, v2 := range v {
  2539. if esep {
  2540. ee.WriteMapElemKey()
  2541. }
  2542. e.encode(k2)
  2543. if esep {
  2544. ee.WriteMapElemValue()
  2545. }
  2546. ee.EncodeInt(int64(v2))
  2547. }
  2548. }
  2549. ee.WriteMapEnd()
  2550. }
  2551. func (e *Encoder) fastpathEncMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  2552. fastpathTV.EncMapIntfInt16V(rv2i(rv).(map[interface{}]int16), e)
  2553. }
  2554. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, e *Encoder) {
  2555. if v == nil {
  2556. e.e.EncodeNil()
  2557. return
  2558. }
  2559. ee, esep := e.e, e.hh.hasElemSeparators()
  2560. ee.WriteMapStart(len(v))
  2561. if e.h.Canonical {
  2562. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2563. e2 := NewEncoderBytes(&mksv, e.hh)
  2564. v2 := make([]bytesI, len(v))
  2565. var i, l int
  2566. var vp *bytesI
  2567. for k2, _ := range v {
  2568. l = len(mksv)
  2569. e2.MustEncode(k2)
  2570. vp = &v2[i]
  2571. vp.v = mksv[l:]
  2572. vp.i = k2
  2573. i++
  2574. }
  2575. sort.Sort(bytesISlice(v2))
  2576. for j := range v2 {
  2577. if esep {
  2578. ee.WriteMapElemKey()
  2579. }
  2580. e.asis(v2[j].v)
  2581. if esep {
  2582. ee.WriteMapElemValue()
  2583. }
  2584. e.encode(v[v2[j].i])
  2585. }
  2586. } else {
  2587. for k2, v2 := range v {
  2588. if esep {
  2589. ee.WriteMapElemKey()
  2590. }
  2591. e.encode(k2)
  2592. if esep {
  2593. ee.WriteMapElemValue()
  2594. }
  2595. ee.EncodeInt(int64(v2))
  2596. }
  2597. }
  2598. ee.WriteMapEnd()
  2599. }
  2600. func (e *Encoder) fastpathEncMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  2601. fastpathTV.EncMapIntfInt32V(rv2i(rv).(map[interface{}]int32), e)
  2602. }
  2603. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, e *Encoder) {
  2604. if v == nil {
  2605. e.e.EncodeNil()
  2606. return
  2607. }
  2608. ee, esep := e.e, e.hh.hasElemSeparators()
  2609. ee.WriteMapStart(len(v))
  2610. if e.h.Canonical {
  2611. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2612. e2 := NewEncoderBytes(&mksv, e.hh)
  2613. v2 := make([]bytesI, len(v))
  2614. var i, l int
  2615. var vp *bytesI
  2616. for k2, _ := range v {
  2617. l = len(mksv)
  2618. e2.MustEncode(k2)
  2619. vp = &v2[i]
  2620. vp.v = mksv[l:]
  2621. vp.i = k2
  2622. i++
  2623. }
  2624. sort.Sort(bytesISlice(v2))
  2625. for j := range v2 {
  2626. if esep {
  2627. ee.WriteMapElemKey()
  2628. }
  2629. e.asis(v2[j].v)
  2630. if esep {
  2631. ee.WriteMapElemValue()
  2632. }
  2633. e.encode(v[v2[j].i])
  2634. }
  2635. } else {
  2636. for k2, v2 := range v {
  2637. if esep {
  2638. ee.WriteMapElemKey()
  2639. }
  2640. e.encode(k2)
  2641. if esep {
  2642. ee.WriteMapElemValue()
  2643. }
  2644. ee.EncodeInt(int64(v2))
  2645. }
  2646. }
  2647. ee.WriteMapEnd()
  2648. }
  2649. func (e *Encoder) fastpathEncMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  2650. fastpathTV.EncMapIntfInt64V(rv2i(rv).(map[interface{}]int64), e)
  2651. }
  2652. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, e *Encoder) {
  2653. if v == nil {
  2654. e.e.EncodeNil()
  2655. return
  2656. }
  2657. ee, esep := e.e, e.hh.hasElemSeparators()
  2658. ee.WriteMapStart(len(v))
  2659. if e.h.Canonical {
  2660. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2661. e2 := NewEncoderBytes(&mksv, e.hh)
  2662. v2 := make([]bytesI, len(v))
  2663. var i, l int
  2664. var vp *bytesI
  2665. for k2, _ := range v {
  2666. l = len(mksv)
  2667. e2.MustEncode(k2)
  2668. vp = &v2[i]
  2669. vp.v = mksv[l:]
  2670. vp.i = k2
  2671. i++
  2672. }
  2673. sort.Sort(bytesISlice(v2))
  2674. for j := range v2 {
  2675. if esep {
  2676. ee.WriteMapElemKey()
  2677. }
  2678. e.asis(v2[j].v)
  2679. if esep {
  2680. ee.WriteMapElemValue()
  2681. }
  2682. e.encode(v[v2[j].i])
  2683. }
  2684. } else {
  2685. for k2, v2 := range v {
  2686. if esep {
  2687. ee.WriteMapElemKey()
  2688. }
  2689. e.encode(k2)
  2690. if esep {
  2691. ee.WriteMapElemValue()
  2692. }
  2693. ee.EncodeInt(int64(v2))
  2694. }
  2695. }
  2696. ee.WriteMapEnd()
  2697. }
  2698. func (e *Encoder) fastpathEncMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  2699. fastpathTV.EncMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), e)
  2700. }
  2701. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, e *Encoder) {
  2702. if v == nil {
  2703. e.e.EncodeNil()
  2704. return
  2705. }
  2706. ee, esep := e.e, e.hh.hasElemSeparators()
  2707. ee.WriteMapStart(len(v))
  2708. if e.h.Canonical {
  2709. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2710. e2 := NewEncoderBytes(&mksv, e.hh)
  2711. v2 := make([]bytesI, len(v))
  2712. var i, l int
  2713. var vp *bytesI
  2714. for k2, _ := range v {
  2715. l = len(mksv)
  2716. e2.MustEncode(k2)
  2717. vp = &v2[i]
  2718. vp.v = mksv[l:]
  2719. vp.i = k2
  2720. i++
  2721. }
  2722. sort.Sort(bytesISlice(v2))
  2723. for j := range v2 {
  2724. if esep {
  2725. ee.WriteMapElemKey()
  2726. }
  2727. e.asis(v2[j].v)
  2728. if esep {
  2729. ee.WriteMapElemValue()
  2730. }
  2731. e.encode(v[v2[j].i])
  2732. }
  2733. } else {
  2734. for k2, v2 := range v {
  2735. if esep {
  2736. ee.WriteMapElemKey()
  2737. }
  2738. e.encode(k2)
  2739. if esep {
  2740. ee.WriteMapElemValue()
  2741. }
  2742. ee.EncodeFloat32(v2)
  2743. }
  2744. }
  2745. ee.WriteMapEnd()
  2746. }
  2747. func (e *Encoder) fastpathEncMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  2748. fastpathTV.EncMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), e)
  2749. }
  2750. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, e *Encoder) {
  2751. if v == nil {
  2752. e.e.EncodeNil()
  2753. return
  2754. }
  2755. ee, esep := e.e, e.hh.hasElemSeparators()
  2756. ee.WriteMapStart(len(v))
  2757. if e.h.Canonical {
  2758. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2759. e2 := NewEncoderBytes(&mksv, e.hh)
  2760. v2 := make([]bytesI, len(v))
  2761. var i, l int
  2762. var vp *bytesI
  2763. for k2, _ := range v {
  2764. l = len(mksv)
  2765. e2.MustEncode(k2)
  2766. vp = &v2[i]
  2767. vp.v = mksv[l:]
  2768. vp.i = k2
  2769. i++
  2770. }
  2771. sort.Sort(bytesISlice(v2))
  2772. for j := range v2 {
  2773. if esep {
  2774. ee.WriteMapElemKey()
  2775. }
  2776. e.asis(v2[j].v)
  2777. if esep {
  2778. ee.WriteMapElemValue()
  2779. }
  2780. e.encode(v[v2[j].i])
  2781. }
  2782. } else {
  2783. for k2, v2 := range v {
  2784. if esep {
  2785. ee.WriteMapElemKey()
  2786. }
  2787. e.encode(k2)
  2788. if esep {
  2789. ee.WriteMapElemValue()
  2790. }
  2791. ee.EncodeFloat64(v2)
  2792. }
  2793. }
  2794. ee.WriteMapEnd()
  2795. }
  2796. func (e *Encoder) fastpathEncMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  2797. fastpathTV.EncMapIntfBoolV(rv2i(rv).(map[interface{}]bool), e)
  2798. }
  2799. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, e *Encoder) {
  2800. if v == nil {
  2801. e.e.EncodeNil()
  2802. return
  2803. }
  2804. ee, esep := e.e, e.hh.hasElemSeparators()
  2805. ee.WriteMapStart(len(v))
  2806. if e.h.Canonical {
  2807. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2808. e2 := NewEncoderBytes(&mksv, e.hh)
  2809. v2 := make([]bytesI, len(v))
  2810. var i, l int
  2811. var vp *bytesI
  2812. for k2, _ := range v {
  2813. l = len(mksv)
  2814. e2.MustEncode(k2)
  2815. vp = &v2[i]
  2816. vp.v = mksv[l:]
  2817. vp.i = k2
  2818. i++
  2819. }
  2820. sort.Sort(bytesISlice(v2))
  2821. for j := range v2 {
  2822. if esep {
  2823. ee.WriteMapElemKey()
  2824. }
  2825. e.asis(v2[j].v)
  2826. if esep {
  2827. ee.WriteMapElemValue()
  2828. }
  2829. e.encode(v[v2[j].i])
  2830. }
  2831. } else {
  2832. for k2, v2 := range v {
  2833. if esep {
  2834. ee.WriteMapElemKey()
  2835. }
  2836. e.encode(k2)
  2837. if esep {
  2838. ee.WriteMapElemValue()
  2839. }
  2840. ee.EncodeBool(v2)
  2841. }
  2842. }
  2843. ee.WriteMapEnd()
  2844. }
  2845. func (e *Encoder) fastpathEncMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  2846. fastpathTV.EncMapStringIntfV(rv2i(rv).(map[string]interface{}), e)
  2847. }
  2848. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, e *Encoder) {
  2849. if v == nil {
  2850. e.e.EncodeNil()
  2851. return
  2852. }
  2853. ee, esep := e.e, e.hh.hasElemSeparators()
  2854. ee.WriteMapStart(len(v))
  2855. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2856. if e.h.Canonical {
  2857. v2 := make([]string, len(v))
  2858. var i int
  2859. for k, _ := range v {
  2860. v2[i] = string(k)
  2861. i++
  2862. }
  2863. sort.Sort(stringSlice(v2))
  2864. for _, k2 := range v2 {
  2865. if esep {
  2866. ee.WriteMapElemKey()
  2867. }
  2868. if asSymbols {
  2869. ee.EncodeSymbol(k2)
  2870. } else {
  2871. ee.EncodeString(c_UTF8, k2)
  2872. }
  2873. if esep {
  2874. ee.WriteMapElemValue()
  2875. }
  2876. e.encode(v[string(k2)])
  2877. }
  2878. } else {
  2879. for k2, v2 := range v {
  2880. if esep {
  2881. ee.WriteMapElemKey()
  2882. }
  2883. if asSymbols {
  2884. ee.EncodeSymbol(k2)
  2885. } else {
  2886. ee.EncodeString(c_UTF8, k2)
  2887. }
  2888. if esep {
  2889. ee.WriteMapElemValue()
  2890. }
  2891. e.encode(v2)
  2892. }
  2893. }
  2894. ee.WriteMapEnd()
  2895. }
  2896. func (e *Encoder) fastpathEncMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  2897. fastpathTV.EncMapStringStringV(rv2i(rv).(map[string]string), e)
  2898. }
  2899. func (_ fastpathT) EncMapStringStringV(v map[string]string, e *Encoder) {
  2900. if v == nil {
  2901. e.e.EncodeNil()
  2902. return
  2903. }
  2904. ee, esep := e.e, e.hh.hasElemSeparators()
  2905. ee.WriteMapStart(len(v))
  2906. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2907. if e.h.Canonical {
  2908. v2 := make([]string, len(v))
  2909. var i int
  2910. for k, _ := range v {
  2911. v2[i] = string(k)
  2912. i++
  2913. }
  2914. sort.Sort(stringSlice(v2))
  2915. for _, k2 := range v2 {
  2916. if esep {
  2917. ee.WriteMapElemKey()
  2918. }
  2919. if asSymbols {
  2920. ee.EncodeSymbol(k2)
  2921. } else {
  2922. ee.EncodeString(c_UTF8, k2)
  2923. }
  2924. if esep {
  2925. ee.WriteMapElemValue()
  2926. }
  2927. ee.EncodeString(c_UTF8, v[string(k2)])
  2928. }
  2929. } else {
  2930. for k2, v2 := range v {
  2931. if esep {
  2932. ee.WriteMapElemKey()
  2933. }
  2934. if asSymbols {
  2935. ee.EncodeSymbol(k2)
  2936. } else {
  2937. ee.EncodeString(c_UTF8, k2)
  2938. }
  2939. if esep {
  2940. ee.WriteMapElemValue()
  2941. }
  2942. ee.EncodeString(c_UTF8, v2)
  2943. }
  2944. }
  2945. ee.WriteMapEnd()
  2946. }
  2947. func (e *Encoder) fastpathEncMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  2948. fastpathTV.EncMapStringUintV(rv2i(rv).(map[string]uint), e)
  2949. }
  2950. func (_ fastpathT) EncMapStringUintV(v map[string]uint, e *Encoder) {
  2951. if v == nil {
  2952. e.e.EncodeNil()
  2953. return
  2954. }
  2955. ee, esep := e.e, e.hh.hasElemSeparators()
  2956. ee.WriteMapStart(len(v))
  2957. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2958. if e.h.Canonical {
  2959. v2 := make([]string, len(v))
  2960. var i int
  2961. for k, _ := range v {
  2962. v2[i] = string(k)
  2963. i++
  2964. }
  2965. sort.Sort(stringSlice(v2))
  2966. for _, k2 := range v2 {
  2967. if esep {
  2968. ee.WriteMapElemKey()
  2969. }
  2970. if asSymbols {
  2971. ee.EncodeSymbol(k2)
  2972. } else {
  2973. ee.EncodeString(c_UTF8, k2)
  2974. }
  2975. if esep {
  2976. ee.WriteMapElemValue()
  2977. }
  2978. ee.EncodeUint(uint64(v[string(k2)]))
  2979. }
  2980. } else {
  2981. for k2, v2 := range v {
  2982. if esep {
  2983. ee.WriteMapElemKey()
  2984. }
  2985. if asSymbols {
  2986. ee.EncodeSymbol(k2)
  2987. } else {
  2988. ee.EncodeString(c_UTF8, k2)
  2989. }
  2990. if esep {
  2991. ee.WriteMapElemValue()
  2992. }
  2993. ee.EncodeUint(uint64(v2))
  2994. }
  2995. }
  2996. ee.WriteMapEnd()
  2997. }
  2998. func (e *Encoder) fastpathEncMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  2999. fastpathTV.EncMapStringUint8V(rv2i(rv).(map[string]uint8), e)
  3000. }
  3001. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, e *Encoder) {
  3002. if v == nil {
  3003. e.e.EncodeNil()
  3004. return
  3005. }
  3006. ee, esep := e.e, e.hh.hasElemSeparators()
  3007. ee.WriteMapStart(len(v))
  3008. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3009. if e.h.Canonical {
  3010. v2 := make([]string, len(v))
  3011. var i int
  3012. for k, _ := range v {
  3013. v2[i] = string(k)
  3014. i++
  3015. }
  3016. sort.Sort(stringSlice(v2))
  3017. for _, k2 := range v2 {
  3018. if esep {
  3019. ee.WriteMapElemKey()
  3020. }
  3021. if asSymbols {
  3022. ee.EncodeSymbol(k2)
  3023. } else {
  3024. ee.EncodeString(c_UTF8, k2)
  3025. }
  3026. if esep {
  3027. ee.WriteMapElemValue()
  3028. }
  3029. ee.EncodeUint(uint64(v[string(k2)]))
  3030. }
  3031. } else {
  3032. for k2, v2 := range v {
  3033. if esep {
  3034. ee.WriteMapElemKey()
  3035. }
  3036. if asSymbols {
  3037. ee.EncodeSymbol(k2)
  3038. } else {
  3039. ee.EncodeString(c_UTF8, k2)
  3040. }
  3041. if esep {
  3042. ee.WriteMapElemValue()
  3043. }
  3044. ee.EncodeUint(uint64(v2))
  3045. }
  3046. }
  3047. ee.WriteMapEnd()
  3048. }
  3049. func (e *Encoder) fastpathEncMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  3050. fastpathTV.EncMapStringUint16V(rv2i(rv).(map[string]uint16), e)
  3051. }
  3052. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, e *Encoder) {
  3053. if v == nil {
  3054. e.e.EncodeNil()
  3055. return
  3056. }
  3057. ee, esep := e.e, e.hh.hasElemSeparators()
  3058. ee.WriteMapStart(len(v))
  3059. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3060. if e.h.Canonical {
  3061. v2 := make([]string, len(v))
  3062. var i int
  3063. for k, _ := range v {
  3064. v2[i] = string(k)
  3065. i++
  3066. }
  3067. sort.Sort(stringSlice(v2))
  3068. for _, k2 := range v2 {
  3069. if esep {
  3070. ee.WriteMapElemKey()
  3071. }
  3072. if asSymbols {
  3073. ee.EncodeSymbol(k2)
  3074. } else {
  3075. ee.EncodeString(c_UTF8, k2)
  3076. }
  3077. if esep {
  3078. ee.WriteMapElemValue()
  3079. }
  3080. ee.EncodeUint(uint64(v[string(k2)]))
  3081. }
  3082. } else {
  3083. for k2, v2 := range v {
  3084. if esep {
  3085. ee.WriteMapElemKey()
  3086. }
  3087. if asSymbols {
  3088. ee.EncodeSymbol(k2)
  3089. } else {
  3090. ee.EncodeString(c_UTF8, k2)
  3091. }
  3092. if esep {
  3093. ee.WriteMapElemValue()
  3094. }
  3095. ee.EncodeUint(uint64(v2))
  3096. }
  3097. }
  3098. ee.WriteMapEnd()
  3099. }
  3100. func (e *Encoder) fastpathEncMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  3101. fastpathTV.EncMapStringUint32V(rv2i(rv).(map[string]uint32), e)
  3102. }
  3103. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, e *Encoder) {
  3104. if v == nil {
  3105. e.e.EncodeNil()
  3106. return
  3107. }
  3108. ee, esep := e.e, e.hh.hasElemSeparators()
  3109. ee.WriteMapStart(len(v))
  3110. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3111. if e.h.Canonical {
  3112. v2 := make([]string, len(v))
  3113. var i int
  3114. for k, _ := range v {
  3115. v2[i] = string(k)
  3116. i++
  3117. }
  3118. sort.Sort(stringSlice(v2))
  3119. for _, k2 := range v2 {
  3120. if esep {
  3121. ee.WriteMapElemKey()
  3122. }
  3123. if asSymbols {
  3124. ee.EncodeSymbol(k2)
  3125. } else {
  3126. ee.EncodeString(c_UTF8, k2)
  3127. }
  3128. if esep {
  3129. ee.WriteMapElemValue()
  3130. }
  3131. ee.EncodeUint(uint64(v[string(k2)]))
  3132. }
  3133. } else {
  3134. for k2, v2 := range v {
  3135. if esep {
  3136. ee.WriteMapElemKey()
  3137. }
  3138. if asSymbols {
  3139. ee.EncodeSymbol(k2)
  3140. } else {
  3141. ee.EncodeString(c_UTF8, k2)
  3142. }
  3143. if esep {
  3144. ee.WriteMapElemValue()
  3145. }
  3146. ee.EncodeUint(uint64(v2))
  3147. }
  3148. }
  3149. ee.WriteMapEnd()
  3150. }
  3151. func (e *Encoder) fastpathEncMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  3152. fastpathTV.EncMapStringUint64V(rv2i(rv).(map[string]uint64), e)
  3153. }
  3154. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, e *Encoder) {
  3155. if v == nil {
  3156. e.e.EncodeNil()
  3157. return
  3158. }
  3159. ee, esep := e.e, e.hh.hasElemSeparators()
  3160. ee.WriteMapStart(len(v))
  3161. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3162. if e.h.Canonical {
  3163. v2 := make([]string, len(v))
  3164. var i int
  3165. for k, _ := range v {
  3166. v2[i] = string(k)
  3167. i++
  3168. }
  3169. sort.Sort(stringSlice(v2))
  3170. for _, k2 := range v2 {
  3171. if esep {
  3172. ee.WriteMapElemKey()
  3173. }
  3174. if asSymbols {
  3175. ee.EncodeSymbol(k2)
  3176. } else {
  3177. ee.EncodeString(c_UTF8, k2)
  3178. }
  3179. if esep {
  3180. ee.WriteMapElemValue()
  3181. }
  3182. ee.EncodeUint(uint64(v[string(k2)]))
  3183. }
  3184. } else {
  3185. for k2, v2 := range v {
  3186. if esep {
  3187. ee.WriteMapElemKey()
  3188. }
  3189. if asSymbols {
  3190. ee.EncodeSymbol(k2)
  3191. } else {
  3192. ee.EncodeString(c_UTF8, k2)
  3193. }
  3194. if esep {
  3195. ee.WriteMapElemValue()
  3196. }
  3197. ee.EncodeUint(uint64(v2))
  3198. }
  3199. }
  3200. ee.WriteMapEnd()
  3201. }
  3202. func (e *Encoder) fastpathEncMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  3203. fastpathTV.EncMapStringUintptrV(rv2i(rv).(map[string]uintptr), e)
  3204. }
  3205. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, e *Encoder) {
  3206. if v == nil {
  3207. e.e.EncodeNil()
  3208. return
  3209. }
  3210. ee, esep := e.e, e.hh.hasElemSeparators()
  3211. ee.WriteMapStart(len(v))
  3212. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  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. for _, k2 := range v2 {
  3222. if esep {
  3223. ee.WriteMapElemKey()
  3224. }
  3225. if asSymbols {
  3226. ee.EncodeSymbol(k2)
  3227. } else {
  3228. ee.EncodeString(c_UTF8, k2)
  3229. }
  3230. if esep {
  3231. ee.WriteMapElemValue()
  3232. }
  3233. e.encode(v[string(k2)])
  3234. }
  3235. } else {
  3236. for k2, v2 := range v {
  3237. if esep {
  3238. ee.WriteMapElemKey()
  3239. }
  3240. if asSymbols {
  3241. ee.EncodeSymbol(k2)
  3242. } else {
  3243. ee.EncodeString(c_UTF8, k2)
  3244. }
  3245. if esep {
  3246. ee.WriteMapElemValue()
  3247. }
  3248. e.encode(v2)
  3249. }
  3250. }
  3251. ee.WriteMapEnd()
  3252. }
  3253. func (e *Encoder) fastpathEncMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  3254. fastpathTV.EncMapStringIntV(rv2i(rv).(map[string]int), e)
  3255. }
  3256. func (_ fastpathT) EncMapStringIntV(v map[string]int, e *Encoder) {
  3257. if v == nil {
  3258. e.e.EncodeNil()
  3259. return
  3260. }
  3261. ee, esep := e.e, e.hh.hasElemSeparators()
  3262. ee.WriteMapStart(len(v))
  3263. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3264. if e.h.Canonical {
  3265. v2 := make([]string, len(v))
  3266. var i int
  3267. for k, _ := range v {
  3268. v2[i] = string(k)
  3269. i++
  3270. }
  3271. sort.Sort(stringSlice(v2))
  3272. for _, k2 := range v2 {
  3273. if esep {
  3274. ee.WriteMapElemKey()
  3275. }
  3276. if asSymbols {
  3277. ee.EncodeSymbol(k2)
  3278. } else {
  3279. ee.EncodeString(c_UTF8, k2)
  3280. }
  3281. if esep {
  3282. ee.WriteMapElemValue()
  3283. }
  3284. ee.EncodeInt(int64(v[string(k2)]))
  3285. }
  3286. } else {
  3287. for k2, v2 := range v {
  3288. if esep {
  3289. ee.WriteMapElemKey()
  3290. }
  3291. if asSymbols {
  3292. ee.EncodeSymbol(k2)
  3293. } else {
  3294. ee.EncodeString(c_UTF8, k2)
  3295. }
  3296. if esep {
  3297. ee.WriteMapElemValue()
  3298. }
  3299. ee.EncodeInt(int64(v2))
  3300. }
  3301. }
  3302. ee.WriteMapEnd()
  3303. }
  3304. func (e *Encoder) fastpathEncMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  3305. fastpathTV.EncMapStringInt8V(rv2i(rv).(map[string]int8), e)
  3306. }
  3307. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, e *Encoder) {
  3308. if v == nil {
  3309. e.e.EncodeNil()
  3310. return
  3311. }
  3312. ee, esep := e.e, e.hh.hasElemSeparators()
  3313. ee.WriteMapStart(len(v))
  3314. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3315. if e.h.Canonical {
  3316. v2 := make([]string, len(v))
  3317. var i int
  3318. for k, _ := range v {
  3319. v2[i] = string(k)
  3320. i++
  3321. }
  3322. sort.Sort(stringSlice(v2))
  3323. for _, k2 := range v2 {
  3324. if esep {
  3325. ee.WriteMapElemKey()
  3326. }
  3327. if asSymbols {
  3328. ee.EncodeSymbol(k2)
  3329. } else {
  3330. ee.EncodeString(c_UTF8, k2)
  3331. }
  3332. if esep {
  3333. ee.WriteMapElemValue()
  3334. }
  3335. ee.EncodeInt(int64(v[string(k2)]))
  3336. }
  3337. } else {
  3338. for k2, v2 := range v {
  3339. if esep {
  3340. ee.WriteMapElemKey()
  3341. }
  3342. if asSymbols {
  3343. ee.EncodeSymbol(k2)
  3344. } else {
  3345. ee.EncodeString(c_UTF8, k2)
  3346. }
  3347. if esep {
  3348. ee.WriteMapElemValue()
  3349. }
  3350. ee.EncodeInt(int64(v2))
  3351. }
  3352. }
  3353. ee.WriteMapEnd()
  3354. }
  3355. func (e *Encoder) fastpathEncMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  3356. fastpathTV.EncMapStringInt16V(rv2i(rv).(map[string]int16), e)
  3357. }
  3358. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, e *Encoder) {
  3359. if v == nil {
  3360. e.e.EncodeNil()
  3361. return
  3362. }
  3363. ee, esep := e.e, e.hh.hasElemSeparators()
  3364. ee.WriteMapStart(len(v))
  3365. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3366. if e.h.Canonical {
  3367. v2 := make([]string, len(v))
  3368. var i int
  3369. for k, _ := range v {
  3370. v2[i] = string(k)
  3371. i++
  3372. }
  3373. sort.Sort(stringSlice(v2))
  3374. for _, k2 := range v2 {
  3375. if esep {
  3376. ee.WriteMapElemKey()
  3377. }
  3378. if asSymbols {
  3379. ee.EncodeSymbol(k2)
  3380. } else {
  3381. ee.EncodeString(c_UTF8, k2)
  3382. }
  3383. if esep {
  3384. ee.WriteMapElemValue()
  3385. }
  3386. ee.EncodeInt(int64(v[string(k2)]))
  3387. }
  3388. } else {
  3389. for k2, v2 := range v {
  3390. if esep {
  3391. ee.WriteMapElemKey()
  3392. }
  3393. if asSymbols {
  3394. ee.EncodeSymbol(k2)
  3395. } else {
  3396. ee.EncodeString(c_UTF8, k2)
  3397. }
  3398. if esep {
  3399. ee.WriteMapElemValue()
  3400. }
  3401. ee.EncodeInt(int64(v2))
  3402. }
  3403. }
  3404. ee.WriteMapEnd()
  3405. }
  3406. func (e *Encoder) fastpathEncMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  3407. fastpathTV.EncMapStringInt32V(rv2i(rv).(map[string]int32), e)
  3408. }
  3409. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, e *Encoder) {
  3410. if v == nil {
  3411. e.e.EncodeNil()
  3412. return
  3413. }
  3414. ee, esep := e.e, e.hh.hasElemSeparators()
  3415. ee.WriteMapStart(len(v))
  3416. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3417. if e.h.Canonical {
  3418. v2 := make([]string, len(v))
  3419. var i int
  3420. for k, _ := range v {
  3421. v2[i] = string(k)
  3422. i++
  3423. }
  3424. sort.Sort(stringSlice(v2))
  3425. for _, k2 := range v2 {
  3426. if esep {
  3427. ee.WriteMapElemKey()
  3428. }
  3429. if asSymbols {
  3430. ee.EncodeSymbol(k2)
  3431. } else {
  3432. ee.EncodeString(c_UTF8, k2)
  3433. }
  3434. if esep {
  3435. ee.WriteMapElemValue()
  3436. }
  3437. ee.EncodeInt(int64(v[string(k2)]))
  3438. }
  3439. } else {
  3440. for k2, v2 := range v {
  3441. if esep {
  3442. ee.WriteMapElemKey()
  3443. }
  3444. if asSymbols {
  3445. ee.EncodeSymbol(k2)
  3446. } else {
  3447. ee.EncodeString(c_UTF8, k2)
  3448. }
  3449. if esep {
  3450. ee.WriteMapElemValue()
  3451. }
  3452. ee.EncodeInt(int64(v2))
  3453. }
  3454. }
  3455. ee.WriteMapEnd()
  3456. }
  3457. func (e *Encoder) fastpathEncMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  3458. fastpathTV.EncMapStringInt64V(rv2i(rv).(map[string]int64), e)
  3459. }
  3460. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, e *Encoder) {
  3461. if v == nil {
  3462. e.e.EncodeNil()
  3463. return
  3464. }
  3465. ee, esep := e.e, e.hh.hasElemSeparators()
  3466. ee.WriteMapStart(len(v))
  3467. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3468. if e.h.Canonical {
  3469. v2 := make([]string, len(v))
  3470. var i int
  3471. for k, _ := range v {
  3472. v2[i] = string(k)
  3473. i++
  3474. }
  3475. sort.Sort(stringSlice(v2))
  3476. for _, k2 := range v2 {
  3477. if esep {
  3478. ee.WriteMapElemKey()
  3479. }
  3480. if asSymbols {
  3481. ee.EncodeSymbol(k2)
  3482. } else {
  3483. ee.EncodeString(c_UTF8, k2)
  3484. }
  3485. if esep {
  3486. ee.WriteMapElemValue()
  3487. }
  3488. ee.EncodeInt(int64(v[string(k2)]))
  3489. }
  3490. } else {
  3491. for k2, v2 := range v {
  3492. if esep {
  3493. ee.WriteMapElemKey()
  3494. }
  3495. if asSymbols {
  3496. ee.EncodeSymbol(k2)
  3497. } else {
  3498. ee.EncodeString(c_UTF8, k2)
  3499. }
  3500. if esep {
  3501. ee.WriteMapElemValue()
  3502. }
  3503. ee.EncodeInt(int64(v2))
  3504. }
  3505. }
  3506. ee.WriteMapEnd()
  3507. }
  3508. func (e *Encoder) fastpathEncMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  3509. fastpathTV.EncMapStringFloat32V(rv2i(rv).(map[string]float32), e)
  3510. }
  3511. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, e *Encoder) {
  3512. if v == nil {
  3513. e.e.EncodeNil()
  3514. return
  3515. }
  3516. ee, esep := e.e, e.hh.hasElemSeparators()
  3517. ee.WriteMapStart(len(v))
  3518. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3519. if e.h.Canonical {
  3520. v2 := make([]string, len(v))
  3521. var i int
  3522. for k, _ := range v {
  3523. v2[i] = string(k)
  3524. i++
  3525. }
  3526. sort.Sort(stringSlice(v2))
  3527. for _, k2 := range v2 {
  3528. if esep {
  3529. ee.WriteMapElemKey()
  3530. }
  3531. if asSymbols {
  3532. ee.EncodeSymbol(k2)
  3533. } else {
  3534. ee.EncodeString(c_UTF8, k2)
  3535. }
  3536. if esep {
  3537. ee.WriteMapElemValue()
  3538. }
  3539. ee.EncodeFloat32(v[string(k2)])
  3540. }
  3541. } else {
  3542. for k2, v2 := range v {
  3543. if esep {
  3544. ee.WriteMapElemKey()
  3545. }
  3546. if asSymbols {
  3547. ee.EncodeSymbol(k2)
  3548. } else {
  3549. ee.EncodeString(c_UTF8, k2)
  3550. }
  3551. if esep {
  3552. ee.WriteMapElemValue()
  3553. }
  3554. ee.EncodeFloat32(v2)
  3555. }
  3556. }
  3557. ee.WriteMapEnd()
  3558. }
  3559. func (e *Encoder) fastpathEncMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  3560. fastpathTV.EncMapStringFloat64V(rv2i(rv).(map[string]float64), e)
  3561. }
  3562. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, e *Encoder) {
  3563. if v == nil {
  3564. e.e.EncodeNil()
  3565. return
  3566. }
  3567. ee, esep := e.e, e.hh.hasElemSeparators()
  3568. ee.WriteMapStart(len(v))
  3569. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3570. if e.h.Canonical {
  3571. v2 := make([]string, len(v))
  3572. var i int
  3573. for k, _ := range v {
  3574. v2[i] = string(k)
  3575. i++
  3576. }
  3577. sort.Sort(stringSlice(v2))
  3578. for _, k2 := range v2 {
  3579. if esep {
  3580. ee.WriteMapElemKey()
  3581. }
  3582. if asSymbols {
  3583. ee.EncodeSymbol(k2)
  3584. } else {
  3585. ee.EncodeString(c_UTF8, k2)
  3586. }
  3587. if esep {
  3588. ee.WriteMapElemValue()
  3589. }
  3590. ee.EncodeFloat64(v[string(k2)])
  3591. }
  3592. } else {
  3593. for k2, v2 := range v {
  3594. if esep {
  3595. ee.WriteMapElemKey()
  3596. }
  3597. if asSymbols {
  3598. ee.EncodeSymbol(k2)
  3599. } else {
  3600. ee.EncodeString(c_UTF8, k2)
  3601. }
  3602. if esep {
  3603. ee.WriteMapElemValue()
  3604. }
  3605. ee.EncodeFloat64(v2)
  3606. }
  3607. }
  3608. ee.WriteMapEnd()
  3609. }
  3610. func (e *Encoder) fastpathEncMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  3611. fastpathTV.EncMapStringBoolV(rv2i(rv).(map[string]bool), e)
  3612. }
  3613. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, e *Encoder) {
  3614. if v == nil {
  3615. e.e.EncodeNil()
  3616. return
  3617. }
  3618. ee, esep := e.e, e.hh.hasElemSeparators()
  3619. ee.WriteMapStart(len(v))
  3620. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3621. if e.h.Canonical {
  3622. v2 := make([]string, len(v))
  3623. var i int
  3624. for k, _ := range v {
  3625. v2[i] = string(k)
  3626. i++
  3627. }
  3628. sort.Sort(stringSlice(v2))
  3629. for _, k2 := range v2 {
  3630. if esep {
  3631. ee.WriteMapElemKey()
  3632. }
  3633. if asSymbols {
  3634. ee.EncodeSymbol(k2)
  3635. } else {
  3636. ee.EncodeString(c_UTF8, k2)
  3637. }
  3638. if esep {
  3639. ee.WriteMapElemValue()
  3640. }
  3641. ee.EncodeBool(v[string(k2)])
  3642. }
  3643. } else {
  3644. for k2, v2 := range v {
  3645. if esep {
  3646. ee.WriteMapElemKey()
  3647. }
  3648. if asSymbols {
  3649. ee.EncodeSymbol(k2)
  3650. } else {
  3651. ee.EncodeString(c_UTF8, k2)
  3652. }
  3653. if esep {
  3654. ee.WriteMapElemValue()
  3655. }
  3656. ee.EncodeBool(v2)
  3657. }
  3658. }
  3659. ee.WriteMapEnd()
  3660. }
  3661. func (e *Encoder) fastpathEncMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  3662. fastpathTV.EncMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), e)
  3663. }
  3664. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, e *Encoder) {
  3665. if v == nil {
  3666. e.e.EncodeNil()
  3667. return
  3668. }
  3669. ee, esep := e.e, e.hh.hasElemSeparators()
  3670. ee.WriteMapStart(len(v))
  3671. if e.h.Canonical {
  3672. v2 := make([]float64, len(v))
  3673. var i int
  3674. for k, _ := range v {
  3675. v2[i] = float64(k)
  3676. i++
  3677. }
  3678. sort.Sort(floatSlice(v2))
  3679. for _, k2 := range v2 {
  3680. if esep {
  3681. ee.WriteMapElemKey()
  3682. }
  3683. ee.EncodeFloat32(float32(k2))
  3684. if esep {
  3685. ee.WriteMapElemValue()
  3686. }
  3687. e.encode(v[float32(k2)])
  3688. }
  3689. } else {
  3690. for k2, v2 := range v {
  3691. if esep {
  3692. ee.WriteMapElemKey()
  3693. }
  3694. ee.EncodeFloat32(k2)
  3695. if esep {
  3696. ee.WriteMapElemValue()
  3697. }
  3698. e.encode(v2)
  3699. }
  3700. }
  3701. ee.WriteMapEnd()
  3702. }
  3703. func (e *Encoder) fastpathEncMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  3704. fastpathTV.EncMapFloat32StringV(rv2i(rv).(map[float32]string), e)
  3705. }
  3706. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, e *Encoder) {
  3707. if v == nil {
  3708. e.e.EncodeNil()
  3709. return
  3710. }
  3711. ee, esep := e.e, e.hh.hasElemSeparators()
  3712. ee.WriteMapStart(len(v))
  3713. if e.h.Canonical {
  3714. v2 := make([]float64, len(v))
  3715. var i int
  3716. for k, _ := range v {
  3717. v2[i] = float64(k)
  3718. i++
  3719. }
  3720. sort.Sort(floatSlice(v2))
  3721. for _, k2 := range v2 {
  3722. if esep {
  3723. ee.WriteMapElemKey()
  3724. }
  3725. ee.EncodeFloat32(float32(k2))
  3726. if esep {
  3727. ee.WriteMapElemValue()
  3728. }
  3729. ee.EncodeString(c_UTF8, v[float32(k2)])
  3730. }
  3731. } else {
  3732. for k2, v2 := range v {
  3733. if esep {
  3734. ee.WriteMapElemKey()
  3735. }
  3736. ee.EncodeFloat32(k2)
  3737. if esep {
  3738. ee.WriteMapElemValue()
  3739. }
  3740. ee.EncodeString(c_UTF8, v2)
  3741. }
  3742. }
  3743. ee.WriteMapEnd()
  3744. }
  3745. func (e *Encoder) fastpathEncMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  3746. fastpathTV.EncMapFloat32UintV(rv2i(rv).(map[float32]uint), e)
  3747. }
  3748. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, e *Encoder) {
  3749. if v == nil {
  3750. e.e.EncodeNil()
  3751. return
  3752. }
  3753. ee, esep := e.e, e.hh.hasElemSeparators()
  3754. ee.WriteMapStart(len(v))
  3755. if e.h.Canonical {
  3756. v2 := make([]float64, len(v))
  3757. var i int
  3758. for k, _ := range v {
  3759. v2[i] = float64(k)
  3760. i++
  3761. }
  3762. sort.Sort(floatSlice(v2))
  3763. for _, k2 := range v2 {
  3764. if esep {
  3765. ee.WriteMapElemKey()
  3766. }
  3767. ee.EncodeFloat32(float32(k2))
  3768. if esep {
  3769. ee.WriteMapElemValue()
  3770. }
  3771. ee.EncodeUint(uint64(v[float32(k2)]))
  3772. }
  3773. } else {
  3774. for k2, v2 := range v {
  3775. if esep {
  3776. ee.WriteMapElemKey()
  3777. }
  3778. ee.EncodeFloat32(k2)
  3779. if esep {
  3780. ee.WriteMapElemValue()
  3781. }
  3782. ee.EncodeUint(uint64(v2))
  3783. }
  3784. }
  3785. ee.WriteMapEnd()
  3786. }
  3787. func (e *Encoder) fastpathEncMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  3788. fastpathTV.EncMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), e)
  3789. }
  3790. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, e *Encoder) {
  3791. if v == nil {
  3792. e.e.EncodeNil()
  3793. return
  3794. }
  3795. ee, esep := e.e, e.hh.hasElemSeparators()
  3796. ee.WriteMapStart(len(v))
  3797. if e.h.Canonical {
  3798. v2 := make([]float64, len(v))
  3799. var i int
  3800. for k, _ := range v {
  3801. v2[i] = float64(k)
  3802. i++
  3803. }
  3804. sort.Sort(floatSlice(v2))
  3805. for _, k2 := range v2 {
  3806. if esep {
  3807. ee.WriteMapElemKey()
  3808. }
  3809. ee.EncodeFloat32(float32(k2))
  3810. if esep {
  3811. ee.WriteMapElemValue()
  3812. }
  3813. ee.EncodeUint(uint64(v[float32(k2)]))
  3814. }
  3815. } else {
  3816. for k2, v2 := range v {
  3817. if esep {
  3818. ee.WriteMapElemKey()
  3819. }
  3820. ee.EncodeFloat32(k2)
  3821. if esep {
  3822. ee.WriteMapElemValue()
  3823. }
  3824. ee.EncodeUint(uint64(v2))
  3825. }
  3826. }
  3827. ee.WriteMapEnd()
  3828. }
  3829. func (e *Encoder) fastpathEncMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  3830. fastpathTV.EncMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), e)
  3831. }
  3832. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, e *Encoder) {
  3833. if v == nil {
  3834. e.e.EncodeNil()
  3835. return
  3836. }
  3837. ee, esep := e.e, e.hh.hasElemSeparators()
  3838. ee.WriteMapStart(len(v))
  3839. if e.h.Canonical {
  3840. v2 := make([]float64, len(v))
  3841. var i int
  3842. for k, _ := range v {
  3843. v2[i] = float64(k)
  3844. i++
  3845. }
  3846. sort.Sort(floatSlice(v2))
  3847. for _, k2 := range v2 {
  3848. if esep {
  3849. ee.WriteMapElemKey()
  3850. }
  3851. ee.EncodeFloat32(float32(k2))
  3852. if esep {
  3853. ee.WriteMapElemValue()
  3854. }
  3855. ee.EncodeUint(uint64(v[float32(k2)]))
  3856. }
  3857. } else {
  3858. for k2, v2 := range v {
  3859. if esep {
  3860. ee.WriteMapElemKey()
  3861. }
  3862. ee.EncodeFloat32(k2)
  3863. if esep {
  3864. ee.WriteMapElemValue()
  3865. }
  3866. ee.EncodeUint(uint64(v2))
  3867. }
  3868. }
  3869. ee.WriteMapEnd()
  3870. }
  3871. func (e *Encoder) fastpathEncMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  3872. fastpathTV.EncMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), e)
  3873. }
  3874. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, e *Encoder) {
  3875. if v == nil {
  3876. e.e.EncodeNil()
  3877. return
  3878. }
  3879. ee, esep := e.e, e.hh.hasElemSeparators()
  3880. ee.WriteMapStart(len(v))
  3881. if e.h.Canonical {
  3882. v2 := make([]float64, len(v))
  3883. var i int
  3884. for k, _ := range v {
  3885. v2[i] = float64(k)
  3886. i++
  3887. }
  3888. sort.Sort(floatSlice(v2))
  3889. for _, k2 := range v2 {
  3890. if esep {
  3891. ee.WriteMapElemKey()
  3892. }
  3893. ee.EncodeFloat32(float32(k2))
  3894. if esep {
  3895. ee.WriteMapElemValue()
  3896. }
  3897. ee.EncodeUint(uint64(v[float32(k2)]))
  3898. }
  3899. } else {
  3900. for k2, v2 := range v {
  3901. if esep {
  3902. ee.WriteMapElemKey()
  3903. }
  3904. ee.EncodeFloat32(k2)
  3905. if esep {
  3906. ee.WriteMapElemValue()
  3907. }
  3908. ee.EncodeUint(uint64(v2))
  3909. }
  3910. }
  3911. ee.WriteMapEnd()
  3912. }
  3913. func (e *Encoder) fastpathEncMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  3914. fastpathTV.EncMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), e)
  3915. }
  3916. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, e *Encoder) {
  3917. if v == nil {
  3918. e.e.EncodeNil()
  3919. return
  3920. }
  3921. ee, esep := e.e, e.hh.hasElemSeparators()
  3922. ee.WriteMapStart(len(v))
  3923. if e.h.Canonical {
  3924. v2 := make([]float64, len(v))
  3925. var i int
  3926. for k, _ := range v {
  3927. v2[i] = float64(k)
  3928. i++
  3929. }
  3930. sort.Sort(floatSlice(v2))
  3931. for _, k2 := range v2 {
  3932. if esep {
  3933. ee.WriteMapElemKey()
  3934. }
  3935. ee.EncodeFloat32(float32(k2))
  3936. if esep {
  3937. ee.WriteMapElemValue()
  3938. }
  3939. ee.EncodeUint(uint64(v[float32(k2)]))
  3940. }
  3941. } else {
  3942. for k2, v2 := range v {
  3943. if esep {
  3944. ee.WriteMapElemKey()
  3945. }
  3946. ee.EncodeFloat32(k2)
  3947. if esep {
  3948. ee.WriteMapElemValue()
  3949. }
  3950. ee.EncodeUint(uint64(v2))
  3951. }
  3952. }
  3953. ee.WriteMapEnd()
  3954. }
  3955. func (e *Encoder) fastpathEncMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  3956. fastpathTV.EncMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), e)
  3957. }
  3958. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, e *Encoder) {
  3959. if v == nil {
  3960. e.e.EncodeNil()
  3961. return
  3962. }
  3963. ee, esep := e.e, e.hh.hasElemSeparators()
  3964. ee.WriteMapStart(len(v))
  3965. if e.h.Canonical {
  3966. v2 := make([]float64, len(v))
  3967. var i int
  3968. for k, _ := range v {
  3969. v2[i] = float64(k)
  3970. i++
  3971. }
  3972. sort.Sort(floatSlice(v2))
  3973. for _, k2 := range v2 {
  3974. if esep {
  3975. ee.WriteMapElemKey()
  3976. }
  3977. ee.EncodeFloat32(float32(k2))
  3978. if esep {
  3979. ee.WriteMapElemValue()
  3980. }
  3981. e.encode(v[float32(k2)])
  3982. }
  3983. } else {
  3984. for k2, v2 := range v {
  3985. if esep {
  3986. ee.WriteMapElemKey()
  3987. }
  3988. ee.EncodeFloat32(k2)
  3989. if esep {
  3990. ee.WriteMapElemValue()
  3991. }
  3992. e.encode(v2)
  3993. }
  3994. }
  3995. ee.WriteMapEnd()
  3996. }
  3997. func (e *Encoder) fastpathEncMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  3998. fastpathTV.EncMapFloat32IntV(rv2i(rv).(map[float32]int), e)
  3999. }
  4000. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, e *Encoder) {
  4001. if v == nil {
  4002. e.e.EncodeNil()
  4003. return
  4004. }
  4005. ee, esep := e.e, e.hh.hasElemSeparators()
  4006. ee.WriteMapStart(len(v))
  4007. if e.h.Canonical {
  4008. v2 := make([]float64, len(v))
  4009. var i int
  4010. for k, _ := range v {
  4011. v2[i] = float64(k)
  4012. i++
  4013. }
  4014. sort.Sort(floatSlice(v2))
  4015. for _, k2 := range v2 {
  4016. if esep {
  4017. ee.WriteMapElemKey()
  4018. }
  4019. ee.EncodeFloat32(float32(k2))
  4020. if esep {
  4021. ee.WriteMapElemValue()
  4022. }
  4023. ee.EncodeInt(int64(v[float32(k2)]))
  4024. }
  4025. } else {
  4026. for k2, v2 := range v {
  4027. if esep {
  4028. ee.WriteMapElemKey()
  4029. }
  4030. ee.EncodeFloat32(k2)
  4031. if esep {
  4032. ee.WriteMapElemValue()
  4033. }
  4034. ee.EncodeInt(int64(v2))
  4035. }
  4036. }
  4037. ee.WriteMapEnd()
  4038. }
  4039. func (e *Encoder) fastpathEncMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  4040. fastpathTV.EncMapFloat32Int8V(rv2i(rv).(map[float32]int8), e)
  4041. }
  4042. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, e *Encoder) {
  4043. if v == nil {
  4044. e.e.EncodeNil()
  4045. return
  4046. }
  4047. ee, esep := e.e, e.hh.hasElemSeparators()
  4048. ee.WriteMapStart(len(v))
  4049. if e.h.Canonical {
  4050. v2 := make([]float64, len(v))
  4051. var i int
  4052. for k, _ := range v {
  4053. v2[i] = float64(k)
  4054. i++
  4055. }
  4056. sort.Sort(floatSlice(v2))
  4057. for _, k2 := range v2 {
  4058. if esep {
  4059. ee.WriteMapElemKey()
  4060. }
  4061. ee.EncodeFloat32(float32(k2))
  4062. if esep {
  4063. ee.WriteMapElemValue()
  4064. }
  4065. ee.EncodeInt(int64(v[float32(k2)]))
  4066. }
  4067. } else {
  4068. for k2, v2 := range v {
  4069. if esep {
  4070. ee.WriteMapElemKey()
  4071. }
  4072. ee.EncodeFloat32(k2)
  4073. if esep {
  4074. ee.WriteMapElemValue()
  4075. }
  4076. ee.EncodeInt(int64(v2))
  4077. }
  4078. }
  4079. ee.WriteMapEnd()
  4080. }
  4081. func (e *Encoder) fastpathEncMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  4082. fastpathTV.EncMapFloat32Int16V(rv2i(rv).(map[float32]int16), e)
  4083. }
  4084. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, e *Encoder) {
  4085. if v == nil {
  4086. e.e.EncodeNil()
  4087. return
  4088. }
  4089. ee, esep := e.e, e.hh.hasElemSeparators()
  4090. ee.WriteMapStart(len(v))
  4091. if e.h.Canonical {
  4092. v2 := make([]float64, len(v))
  4093. var i int
  4094. for k, _ := range v {
  4095. v2[i] = float64(k)
  4096. i++
  4097. }
  4098. sort.Sort(floatSlice(v2))
  4099. for _, k2 := range v2 {
  4100. if esep {
  4101. ee.WriteMapElemKey()
  4102. }
  4103. ee.EncodeFloat32(float32(k2))
  4104. if esep {
  4105. ee.WriteMapElemValue()
  4106. }
  4107. ee.EncodeInt(int64(v[float32(k2)]))
  4108. }
  4109. } else {
  4110. for k2, v2 := range v {
  4111. if esep {
  4112. ee.WriteMapElemKey()
  4113. }
  4114. ee.EncodeFloat32(k2)
  4115. if esep {
  4116. ee.WriteMapElemValue()
  4117. }
  4118. ee.EncodeInt(int64(v2))
  4119. }
  4120. }
  4121. ee.WriteMapEnd()
  4122. }
  4123. func (e *Encoder) fastpathEncMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  4124. fastpathTV.EncMapFloat32Int32V(rv2i(rv).(map[float32]int32), e)
  4125. }
  4126. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, e *Encoder) {
  4127. if v == nil {
  4128. e.e.EncodeNil()
  4129. return
  4130. }
  4131. ee, esep := e.e, e.hh.hasElemSeparators()
  4132. ee.WriteMapStart(len(v))
  4133. if e.h.Canonical {
  4134. v2 := make([]float64, len(v))
  4135. var i int
  4136. for k, _ := range v {
  4137. v2[i] = float64(k)
  4138. i++
  4139. }
  4140. sort.Sort(floatSlice(v2))
  4141. for _, k2 := range v2 {
  4142. if esep {
  4143. ee.WriteMapElemKey()
  4144. }
  4145. ee.EncodeFloat32(float32(k2))
  4146. if esep {
  4147. ee.WriteMapElemValue()
  4148. }
  4149. ee.EncodeInt(int64(v[float32(k2)]))
  4150. }
  4151. } else {
  4152. for k2, v2 := range v {
  4153. if esep {
  4154. ee.WriteMapElemKey()
  4155. }
  4156. ee.EncodeFloat32(k2)
  4157. if esep {
  4158. ee.WriteMapElemValue()
  4159. }
  4160. ee.EncodeInt(int64(v2))
  4161. }
  4162. }
  4163. ee.WriteMapEnd()
  4164. }
  4165. func (e *Encoder) fastpathEncMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  4166. fastpathTV.EncMapFloat32Int64V(rv2i(rv).(map[float32]int64), e)
  4167. }
  4168. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, e *Encoder) {
  4169. if v == nil {
  4170. e.e.EncodeNil()
  4171. return
  4172. }
  4173. ee, esep := e.e, e.hh.hasElemSeparators()
  4174. ee.WriteMapStart(len(v))
  4175. if e.h.Canonical {
  4176. v2 := make([]float64, len(v))
  4177. var i int
  4178. for k, _ := range v {
  4179. v2[i] = float64(k)
  4180. i++
  4181. }
  4182. sort.Sort(floatSlice(v2))
  4183. for _, k2 := range v2 {
  4184. if esep {
  4185. ee.WriteMapElemKey()
  4186. }
  4187. ee.EncodeFloat32(float32(k2))
  4188. if esep {
  4189. ee.WriteMapElemValue()
  4190. }
  4191. ee.EncodeInt(int64(v[float32(k2)]))
  4192. }
  4193. } else {
  4194. for k2, v2 := range v {
  4195. if esep {
  4196. ee.WriteMapElemKey()
  4197. }
  4198. ee.EncodeFloat32(k2)
  4199. if esep {
  4200. ee.WriteMapElemValue()
  4201. }
  4202. ee.EncodeInt(int64(v2))
  4203. }
  4204. }
  4205. ee.WriteMapEnd()
  4206. }
  4207. func (e *Encoder) fastpathEncMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  4208. fastpathTV.EncMapFloat32Float32V(rv2i(rv).(map[float32]float32), e)
  4209. }
  4210. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, e *Encoder) {
  4211. if v == nil {
  4212. e.e.EncodeNil()
  4213. return
  4214. }
  4215. ee, esep := e.e, e.hh.hasElemSeparators()
  4216. ee.WriteMapStart(len(v))
  4217. if e.h.Canonical {
  4218. v2 := make([]float64, len(v))
  4219. var i int
  4220. for k, _ := range v {
  4221. v2[i] = float64(k)
  4222. i++
  4223. }
  4224. sort.Sort(floatSlice(v2))
  4225. for _, k2 := range v2 {
  4226. if esep {
  4227. ee.WriteMapElemKey()
  4228. }
  4229. ee.EncodeFloat32(float32(k2))
  4230. if esep {
  4231. ee.WriteMapElemValue()
  4232. }
  4233. ee.EncodeFloat32(v[float32(k2)])
  4234. }
  4235. } else {
  4236. for k2, v2 := range v {
  4237. if esep {
  4238. ee.WriteMapElemKey()
  4239. }
  4240. ee.EncodeFloat32(k2)
  4241. if esep {
  4242. ee.WriteMapElemValue()
  4243. }
  4244. ee.EncodeFloat32(v2)
  4245. }
  4246. }
  4247. ee.WriteMapEnd()
  4248. }
  4249. func (e *Encoder) fastpathEncMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  4250. fastpathTV.EncMapFloat32Float64V(rv2i(rv).(map[float32]float64), e)
  4251. }
  4252. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, e *Encoder) {
  4253. if v == nil {
  4254. e.e.EncodeNil()
  4255. return
  4256. }
  4257. ee, esep := e.e, e.hh.hasElemSeparators()
  4258. ee.WriteMapStart(len(v))
  4259. if e.h.Canonical {
  4260. v2 := make([]float64, len(v))
  4261. var i int
  4262. for k, _ := range v {
  4263. v2[i] = float64(k)
  4264. i++
  4265. }
  4266. sort.Sort(floatSlice(v2))
  4267. for _, k2 := range v2 {
  4268. if esep {
  4269. ee.WriteMapElemKey()
  4270. }
  4271. ee.EncodeFloat32(float32(k2))
  4272. if esep {
  4273. ee.WriteMapElemValue()
  4274. }
  4275. ee.EncodeFloat64(v[float32(k2)])
  4276. }
  4277. } else {
  4278. for k2, v2 := range v {
  4279. if esep {
  4280. ee.WriteMapElemKey()
  4281. }
  4282. ee.EncodeFloat32(k2)
  4283. if esep {
  4284. ee.WriteMapElemValue()
  4285. }
  4286. ee.EncodeFloat64(v2)
  4287. }
  4288. }
  4289. ee.WriteMapEnd()
  4290. }
  4291. func (e *Encoder) fastpathEncMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  4292. fastpathTV.EncMapFloat32BoolV(rv2i(rv).(map[float32]bool), e)
  4293. }
  4294. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, e *Encoder) {
  4295. if v == nil {
  4296. e.e.EncodeNil()
  4297. return
  4298. }
  4299. ee, esep := e.e, e.hh.hasElemSeparators()
  4300. ee.WriteMapStart(len(v))
  4301. if e.h.Canonical {
  4302. v2 := make([]float64, len(v))
  4303. var i int
  4304. for k, _ := range v {
  4305. v2[i] = float64(k)
  4306. i++
  4307. }
  4308. sort.Sort(floatSlice(v2))
  4309. for _, k2 := range v2 {
  4310. if esep {
  4311. ee.WriteMapElemKey()
  4312. }
  4313. ee.EncodeFloat32(float32(k2))
  4314. if esep {
  4315. ee.WriteMapElemValue()
  4316. }
  4317. ee.EncodeBool(v[float32(k2)])
  4318. }
  4319. } else {
  4320. for k2, v2 := range v {
  4321. if esep {
  4322. ee.WriteMapElemKey()
  4323. }
  4324. ee.EncodeFloat32(k2)
  4325. if esep {
  4326. ee.WriteMapElemValue()
  4327. }
  4328. ee.EncodeBool(v2)
  4329. }
  4330. }
  4331. ee.WriteMapEnd()
  4332. }
  4333. func (e *Encoder) fastpathEncMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  4334. fastpathTV.EncMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), e)
  4335. }
  4336. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, e *Encoder) {
  4337. if v == nil {
  4338. e.e.EncodeNil()
  4339. return
  4340. }
  4341. ee, esep := e.e, e.hh.hasElemSeparators()
  4342. ee.WriteMapStart(len(v))
  4343. if e.h.Canonical {
  4344. v2 := make([]float64, len(v))
  4345. var i int
  4346. for k, _ := range v {
  4347. v2[i] = float64(k)
  4348. i++
  4349. }
  4350. sort.Sort(floatSlice(v2))
  4351. for _, k2 := range v2 {
  4352. if esep {
  4353. ee.WriteMapElemKey()
  4354. }
  4355. ee.EncodeFloat64(float64(k2))
  4356. if esep {
  4357. ee.WriteMapElemValue()
  4358. }
  4359. e.encode(v[float64(k2)])
  4360. }
  4361. } else {
  4362. for k2, v2 := range v {
  4363. if esep {
  4364. ee.WriteMapElemKey()
  4365. }
  4366. ee.EncodeFloat64(k2)
  4367. if esep {
  4368. ee.WriteMapElemValue()
  4369. }
  4370. e.encode(v2)
  4371. }
  4372. }
  4373. ee.WriteMapEnd()
  4374. }
  4375. func (e *Encoder) fastpathEncMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  4376. fastpathTV.EncMapFloat64StringV(rv2i(rv).(map[float64]string), e)
  4377. }
  4378. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, e *Encoder) {
  4379. if v == nil {
  4380. e.e.EncodeNil()
  4381. return
  4382. }
  4383. ee, esep := e.e, e.hh.hasElemSeparators()
  4384. ee.WriteMapStart(len(v))
  4385. if e.h.Canonical {
  4386. v2 := make([]float64, len(v))
  4387. var i int
  4388. for k, _ := range v {
  4389. v2[i] = float64(k)
  4390. i++
  4391. }
  4392. sort.Sort(floatSlice(v2))
  4393. for _, k2 := range v2 {
  4394. if esep {
  4395. ee.WriteMapElemKey()
  4396. }
  4397. ee.EncodeFloat64(float64(k2))
  4398. if esep {
  4399. ee.WriteMapElemValue()
  4400. }
  4401. ee.EncodeString(c_UTF8, v[float64(k2)])
  4402. }
  4403. } else {
  4404. for k2, v2 := range v {
  4405. if esep {
  4406. ee.WriteMapElemKey()
  4407. }
  4408. ee.EncodeFloat64(k2)
  4409. if esep {
  4410. ee.WriteMapElemValue()
  4411. }
  4412. ee.EncodeString(c_UTF8, v2)
  4413. }
  4414. }
  4415. ee.WriteMapEnd()
  4416. }
  4417. func (e *Encoder) fastpathEncMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  4418. fastpathTV.EncMapFloat64UintV(rv2i(rv).(map[float64]uint), e)
  4419. }
  4420. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, e *Encoder) {
  4421. if v == nil {
  4422. e.e.EncodeNil()
  4423. return
  4424. }
  4425. ee, esep := e.e, e.hh.hasElemSeparators()
  4426. ee.WriteMapStart(len(v))
  4427. if e.h.Canonical {
  4428. v2 := make([]float64, len(v))
  4429. var i int
  4430. for k, _ := range v {
  4431. v2[i] = float64(k)
  4432. i++
  4433. }
  4434. sort.Sort(floatSlice(v2))
  4435. for _, k2 := range v2 {
  4436. if esep {
  4437. ee.WriteMapElemKey()
  4438. }
  4439. ee.EncodeFloat64(float64(k2))
  4440. if esep {
  4441. ee.WriteMapElemValue()
  4442. }
  4443. ee.EncodeUint(uint64(v[float64(k2)]))
  4444. }
  4445. } else {
  4446. for k2, v2 := range v {
  4447. if esep {
  4448. ee.WriteMapElemKey()
  4449. }
  4450. ee.EncodeFloat64(k2)
  4451. if esep {
  4452. ee.WriteMapElemValue()
  4453. }
  4454. ee.EncodeUint(uint64(v2))
  4455. }
  4456. }
  4457. ee.WriteMapEnd()
  4458. }
  4459. func (e *Encoder) fastpathEncMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  4460. fastpathTV.EncMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), e)
  4461. }
  4462. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, e *Encoder) {
  4463. if v == nil {
  4464. e.e.EncodeNil()
  4465. return
  4466. }
  4467. ee, esep := e.e, e.hh.hasElemSeparators()
  4468. ee.WriteMapStart(len(v))
  4469. if e.h.Canonical {
  4470. v2 := make([]float64, len(v))
  4471. var i int
  4472. for k, _ := range v {
  4473. v2[i] = float64(k)
  4474. i++
  4475. }
  4476. sort.Sort(floatSlice(v2))
  4477. for _, k2 := range v2 {
  4478. if esep {
  4479. ee.WriteMapElemKey()
  4480. }
  4481. ee.EncodeFloat64(float64(k2))
  4482. if esep {
  4483. ee.WriteMapElemValue()
  4484. }
  4485. ee.EncodeUint(uint64(v[float64(k2)]))
  4486. }
  4487. } else {
  4488. for k2, v2 := range v {
  4489. if esep {
  4490. ee.WriteMapElemKey()
  4491. }
  4492. ee.EncodeFloat64(k2)
  4493. if esep {
  4494. ee.WriteMapElemValue()
  4495. }
  4496. ee.EncodeUint(uint64(v2))
  4497. }
  4498. }
  4499. ee.WriteMapEnd()
  4500. }
  4501. func (e *Encoder) fastpathEncMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  4502. fastpathTV.EncMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), e)
  4503. }
  4504. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, e *Encoder) {
  4505. if v == nil {
  4506. e.e.EncodeNil()
  4507. return
  4508. }
  4509. ee, esep := e.e, e.hh.hasElemSeparators()
  4510. ee.WriteMapStart(len(v))
  4511. if e.h.Canonical {
  4512. v2 := make([]float64, len(v))
  4513. var i int
  4514. for k, _ := range v {
  4515. v2[i] = float64(k)
  4516. i++
  4517. }
  4518. sort.Sort(floatSlice(v2))
  4519. for _, k2 := range v2 {
  4520. if esep {
  4521. ee.WriteMapElemKey()
  4522. }
  4523. ee.EncodeFloat64(float64(k2))
  4524. if esep {
  4525. ee.WriteMapElemValue()
  4526. }
  4527. ee.EncodeUint(uint64(v[float64(k2)]))
  4528. }
  4529. } else {
  4530. for k2, v2 := range v {
  4531. if esep {
  4532. ee.WriteMapElemKey()
  4533. }
  4534. ee.EncodeFloat64(k2)
  4535. if esep {
  4536. ee.WriteMapElemValue()
  4537. }
  4538. ee.EncodeUint(uint64(v2))
  4539. }
  4540. }
  4541. ee.WriteMapEnd()
  4542. }
  4543. func (e *Encoder) fastpathEncMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  4544. fastpathTV.EncMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), e)
  4545. }
  4546. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, e *Encoder) {
  4547. if v == nil {
  4548. e.e.EncodeNil()
  4549. return
  4550. }
  4551. ee, esep := e.e, e.hh.hasElemSeparators()
  4552. ee.WriteMapStart(len(v))
  4553. if e.h.Canonical {
  4554. v2 := make([]float64, len(v))
  4555. var i int
  4556. for k, _ := range v {
  4557. v2[i] = float64(k)
  4558. i++
  4559. }
  4560. sort.Sort(floatSlice(v2))
  4561. for _, k2 := range v2 {
  4562. if esep {
  4563. ee.WriteMapElemKey()
  4564. }
  4565. ee.EncodeFloat64(float64(k2))
  4566. if esep {
  4567. ee.WriteMapElemValue()
  4568. }
  4569. ee.EncodeUint(uint64(v[float64(k2)]))
  4570. }
  4571. } else {
  4572. for k2, v2 := range v {
  4573. if esep {
  4574. ee.WriteMapElemKey()
  4575. }
  4576. ee.EncodeFloat64(k2)
  4577. if esep {
  4578. ee.WriteMapElemValue()
  4579. }
  4580. ee.EncodeUint(uint64(v2))
  4581. }
  4582. }
  4583. ee.WriteMapEnd()
  4584. }
  4585. func (e *Encoder) fastpathEncMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  4586. fastpathTV.EncMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), e)
  4587. }
  4588. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, e *Encoder) {
  4589. if v == nil {
  4590. e.e.EncodeNil()
  4591. return
  4592. }
  4593. ee, esep := e.e, e.hh.hasElemSeparators()
  4594. ee.WriteMapStart(len(v))
  4595. if e.h.Canonical {
  4596. v2 := make([]float64, len(v))
  4597. var i int
  4598. for k, _ := range v {
  4599. v2[i] = float64(k)
  4600. i++
  4601. }
  4602. sort.Sort(floatSlice(v2))
  4603. for _, k2 := range v2 {
  4604. if esep {
  4605. ee.WriteMapElemKey()
  4606. }
  4607. ee.EncodeFloat64(float64(k2))
  4608. if esep {
  4609. ee.WriteMapElemValue()
  4610. }
  4611. ee.EncodeUint(uint64(v[float64(k2)]))
  4612. }
  4613. } else {
  4614. for k2, v2 := range v {
  4615. if esep {
  4616. ee.WriteMapElemKey()
  4617. }
  4618. ee.EncodeFloat64(k2)
  4619. if esep {
  4620. ee.WriteMapElemValue()
  4621. }
  4622. ee.EncodeUint(uint64(v2))
  4623. }
  4624. }
  4625. ee.WriteMapEnd()
  4626. }
  4627. func (e *Encoder) fastpathEncMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  4628. fastpathTV.EncMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), e)
  4629. }
  4630. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, e *Encoder) {
  4631. if v == nil {
  4632. e.e.EncodeNil()
  4633. return
  4634. }
  4635. ee, esep := e.e, e.hh.hasElemSeparators()
  4636. ee.WriteMapStart(len(v))
  4637. if e.h.Canonical {
  4638. v2 := make([]float64, len(v))
  4639. var i int
  4640. for k, _ := range v {
  4641. v2[i] = float64(k)
  4642. i++
  4643. }
  4644. sort.Sort(floatSlice(v2))
  4645. for _, k2 := range v2 {
  4646. if esep {
  4647. ee.WriteMapElemKey()
  4648. }
  4649. ee.EncodeFloat64(float64(k2))
  4650. if esep {
  4651. ee.WriteMapElemValue()
  4652. }
  4653. e.encode(v[float64(k2)])
  4654. }
  4655. } else {
  4656. for k2, v2 := range v {
  4657. if esep {
  4658. ee.WriteMapElemKey()
  4659. }
  4660. ee.EncodeFloat64(k2)
  4661. if esep {
  4662. ee.WriteMapElemValue()
  4663. }
  4664. e.encode(v2)
  4665. }
  4666. }
  4667. ee.WriteMapEnd()
  4668. }
  4669. func (e *Encoder) fastpathEncMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  4670. fastpathTV.EncMapFloat64IntV(rv2i(rv).(map[float64]int), e)
  4671. }
  4672. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, e *Encoder) {
  4673. if v == nil {
  4674. e.e.EncodeNil()
  4675. return
  4676. }
  4677. ee, esep := e.e, e.hh.hasElemSeparators()
  4678. ee.WriteMapStart(len(v))
  4679. if e.h.Canonical {
  4680. v2 := make([]float64, len(v))
  4681. var i int
  4682. for k, _ := range v {
  4683. v2[i] = float64(k)
  4684. i++
  4685. }
  4686. sort.Sort(floatSlice(v2))
  4687. for _, k2 := range v2 {
  4688. if esep {
  4689. ee.WriteMapElemKey()
  4690. }
  4691. ee.EncodeFloat64(float64(k2))
  4692. if esep {
  4693. ee.WriteMapElemValue()
  4694. }
  4695. ee.EncodeInt(int64(v[float64(k2)]))
  4696. }
  4697. } else {
  4698. for k2, v2 := range v {
  4699. if esep {
  4700. ee.WriteMapElemKey()
  4701. }
  4702. ee.EncodeFloat64(k2)
  4703. if esep {
  4704. ee.WriteMapElemValue()
  4705. }
  4706. ee.EncodeInt(int64(v2))
  4707. }
  4708. }
  4709. ee.WriteMapEnd()
  4710. }
  4711. func (e *Encoder) fastpathEncMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  4712. fastpathTV.EncMapFloat64Int8V(rv2i(rv).(map[float64]int8), e)
  4713. }
  4714. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, e *Encoder) {
  4715. if v == nil {
  4716. e.e.EncodeNil()
  4717. return
  4718. }
  4719. ee, esep := e.e, e.hh.hasElemSeparators()
  4720. ee.WriteMapStart(len(v))
  4721. if e.h.Canonical {
  4722. v2 := make([]float64, len(v))
  4723. var i int
  4724. for k, _ := range v {
  4725. v2[i] = float64(k)
  4726. i++
  4727. }
  4728. sort.Sort(floatSlice(v2))
  4729. for _, k2 := range v2 {
  4730. if esep {
  4731. ee.WriteMapElemKey()
  4732. }
  4733. ee.EncodeFloat64(float64(k2))
  4734. if esep {
  4735. ee.WriteMapElemValue()
  4736. }
  4737. ee.EncodeInt(int64(v[float64(k2)]))
  4738. }
  4739. } else {
  4740. for k2, v2 := range v {
  4741. if esep {
  4742. ee.WriteMapElemKey()
  4743. }
  4744. ee.EncodeFloat64(k2)
  4745. if esep {
  4746. ee.WriteMapElemValue()
  4747. }
  4748. ee.EncodeInt(int64(v2))
  4749. }
  4750. }
  4751. ee.WriteMapEnd()
  4752. }
  4753. func (e *Encoder) fastpathEncMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  4754. fastpathTV.EncMapFloat64Int16V(rv2i(rv).(map[float64]int16), e)
  4755. }
  4756. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, e *Encoder) {
  4757. if v == nil {
  4758. e.e.EncodeNil()
  4759. return
  4760. }
  4761. ee, esep := e.e, e.hh.hasElemSeparators()
  4762. ee.WriteMapStart(len(v))
  4763. if e.h.Canonical {
  4764. v2 := make([]float64, len(v))
  4765. var i int
  4766. for k, _ := range v {
  4767. v2[i] = float64(k)
  4768. i++
  4769. }
  4770. sort.Sort(floatSlice(v2))
  4771. for _, k2 := range v2 {
  4772. if esep {
  4773. ee.WriteMapElemKey()
  4774. }
  4775. ee.EncodeFloat64(float64(k2))
  4776. if esep {
  4777. ee.WriteMapElemValue()
  4778. }
  4779. ee.EncodeInt(int64(v[float64(k2)]))
  4780. }
  4781. } else {
  4782. for k2, v2 := range v {
  4783. if esep {
  4784. ee.WriteMapElemKey()
  4785. }
  4786. ee.EncodeFloat64(k2)
  4787. if esep {
  4788. ee.WriteMapElemValue()
  4789. }
  4790. ee.EncodeInt(int64(v2))
  4791. }
  4792. }
  4793. ee.WriteMapEnd()
  4794. }
  4795. func (e *Encoder) fastpathEncMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  4796. fastpathTV.EncMapFloat64Int32V(rv2i(rv).(map[float64]int32), e)
  4797. }
  4798. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, e *Encoder) {
  4799. if v == nil {
  4800. e.e.EncodeNil()
  4801. return
  4802. }
  4803. ee, esep := e.e, e.hh.hasElemSeparators()
  4804. ee.WriteMapStart(len(v))
  4805. if e.h.Canonical {
  4806. v2 := make([]float64, len(v))
  4807. var i int
  4808. for k, _ := range v {
  4809. v2[i] = float64(k)
  4810. i++
  4811. }
  4812. sort.Sort(floatSlice(v2))
  4813. for _, k2 := range v2 {
  4814. if esep {
  4815. ee.WriteMapElemKey()
  4816. }
  4817. ee.EncodeFloat64(float64(k2))
  4818. if esep {
  4819. ee.WriteMapElemValue()
  4820. }
  4821. ee.EncodeInt(int64(v[float64(k2)]))
  4822. }
  4823. } else {
  4824. for k2, v2 := range v {
  4825. if esep {
  4826. ee.WriteMapElemKey()
  4827. }
  4828. ee.EncodeFloat64(k2)
  4829. if esep {
  4830. ee.WriteMapElemValue()
  4831. }
  4832. ee.EncodeInt(int64(v2))
  4833. }
  4834. }
  4835. ee.WriteMapEnd()
  4836. }
  4837. func (e *Encoder) fastpathEncMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  4838. fastpathTV.EncMapFloat64Int64V(rv2i(rv).(map[float64]int64), e)
  4839. }
  4840. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, e *Encoder) {
  4841. if v == nil {
  4842. e.e.EncodeNil()
  4843. return
  4844. }
  4845. ee, esep := e.e, e.hh.hasElemSeparators()
  4846. ee.WriteMapStart(len(v))
  4847. if e.h.Canonical {
  4848. v2 := make([]float64, len(v))
  4849. var i int
  4850. for k, _ := range v {
  4851. v2[i] = float64(k)
  4852. i++
  4853. }
  4854. sort.Sort(floatSlice(v2))
  4855. for _, k2 := range v2 {
  4856. if esep {
  4857. ee.WriteMapElemKey()
  4858. }
  4859. ee.EncodeFloat64(float64(k2))
  4860. if esep {
  4861. ee.WriteMapElemValue()
  4862. }
  4863. ee.EncodeInt(int64(v[float64(k2)]))
  4864. }
  4865. } else {
  4866. for k2, v2 := range v {
  4867. if esep {
  4868. ee.WriteMapElemKey()
  4869. }
  4870. ee.EncodeFloat64(k2)
  4871. if esep {
  4872. ee.WriteMapElemValue()
  4873. }
  4874. ee.EncodeInt(int64(v2))
  4875. }
  4876. }
  4877. ee.WriteMapEnd()
  4878. }
  4879. func (e *Encoder) fastpathEncMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  4880. fastpathTV.EncMapFloat64Float32V(rv2i(rv).(map[float64]float32), e)
  4881. }
  4882. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, e *Encoder) {
  4883. if v == nil {
  4884. e.e.EncodeNil()
  4885. return
  4886. }
  4887. ee, esep := e.e, e.hh.hasElemSeparators()
  4888. ee.WriteMapStart(len(v))
  4889. if e.h.Canonical {
  4890. v2 := make([]float64, len(v))
  4891. var i int
  4892. for k, _ := range v {
  4893. v2[i] = float64(k)
  4894. i++
  4895. }
  4896. sort.Sort(floatSlice(v2))
  4897. for _, k2 := range v2 {
  4898. if esep {
  4899. ee.WriteMapElemKey()
  4900. }
  4901. ee.EncodeFloat64(float64(k2))
  4902. if esep {
  4903. ee.WriteMapElemValue()
  4904. }
  4905. ee.EncodeFloat32(v[float64(k2)])
  4906. }
  4907. } else {
  4908. for k2, v2 := range v {
  4909. if esep {
  4910. ee.WriteMapElemKey()
  4911. }
  4912. ee.EncodeFloat64(k2)
  4913. if esep {
  4914. ee.WriteMapElemValue()
  4915. }
  4916. ee.EncodeFloat32(v2)
  4917. }
  4918. }
  4919. ee.WriteMapEnd()
  4920. }
  4921. func (e *Encoder) fastpathEncMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  4922. fastpathTV.EncMapFloat64Float64V(rv2i(rv).(map[float64]float64), e)
  4923. }
  4924. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, e *Encoder) {
  4925. if v == nil {
  4926. e.e.EncodeNil()
  4927. return
  4928. }
  4929. ee, esep := e.e, e.hh.hasElemSeparators()
  4930. ee.WriteMapStart(len(v))
  4931. if e.h.Canonical {
  4932. v2 := make([]float64, len(v))
  4933. var i int
  4934. for k, _ := range v {
  4935. v2[i] = float64(k)
  4936. i++
  4937. }
  4938. sort.Sort(floatSlice(v2))
  4939. for _, k2 := range v2 {
  4940. if esep {
  4941. ee.WriteMapElemKey()
  4942. }
  4943. ee.EncodeFloat64(float64(k2))
  4944. if esep {
  4945. ee.WriteMapElemValue()
  4946. }
  4947. ee.EncodeFloat64(v[float64(k2)])
  4948. }
  4949. } else {
  4950. for k2, v2 := range v {
  4951. if esep {
  4952. ee.WriteMapElemKey()
  4953. }
  4954. ee.EncodeFloat64(k2)
  4955. if esep {
  4956. ee.WriteMapElemValue()
  4957. }
  4958. ee.EncodeFloat64(v2)
  4959. }
  4960. }
  4961. ee.WriteMapEnd()
  4962. }
  4963. func (e *Encoder) fastpathEncMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  4964. fastpathTV.EncMapFloat64BoolV(rv2i(rv).(map[float64]bool), e)
  4965. }
  4966. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, e *Encoder) {
  4967. if v == nil {
  4968. e.e.EncodeNil()
  4969. return
  4970. }
  4971. ee, esep := e.e, e.hh.hasElemSeparators()
  4972. ee.WriteMapStart(len(v))
  4973. if e.h.Canonical {
  4974. v2 := make([]float64, len(v))
  4975. var i int
  4976. for k, _ := range v {
  4977. v2[i] = float64(k)
  4978. i++
  4979. }
  4980. sort.Sort(floatSlice(v2))
  4981. for _, k2 := range v2 {
  4982. if esep {
  4983. ee.WriteMapElemKey()
  4984. }
  4985. ee.EncodeFloat64(float64(k2))
  4986. if esep {
  4987. ee.WriteMapElemValue()
  4988. }
  4989. ee.EncodeBool(v[float64(k2)])
  4990. }
  4991. } else {
  4992. for k2, v2 := range v {
  4993. if esep {
  4994. ee.WriteMapElemKey()
  4995. }
  4996. ee.EncodeFloat64(k2)
  4997. if esep {
  4998. ee.WriteMapElemValue()
  4999. }
  5000. ee.EncodeBool(v2)
  5001. }
  5002. }
  5003. ee.WriteMapEnd()
  5004. }
  5005. func (e *Encoder) fastpathEncMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  5006. fastpathTV.EncMapUintIntfV(rv2i(rv).(map[uint]interface{}), e)
  5007. }
  5008. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, e *Encoder) {
  5009. if v == nil {
  5010. e.e.EncodeNil()
  5011. return
  5012. }
  5013. ee, esep := e.e, e.hh.hasElemSeparators()
  5014. ee.WriteMapStart(len(v))
  5015. if e.h.Canonical {
  5016. v2 := make([]uint64, len(v))
  5017. var i int
  5018. for k, _ := range v {
  5019. v2[i] = uint64(k)
  5020. i++
  5021. }
  5022. sort.Sort(uintSlice(v2))
  5023. for _, k2 := range v2 {
  5024. if esep {
  5025. ee.WriteMapElemKey()
  5026. }
  5027. ee.EncodeUint(uint64(uint(k2)))
  5028. if esep {
  5029. ee.WriteMapElemValue()
  5030. }
  5031. e.encode(v[uint(k2)])
  5032. }
  5033. } else {
  5034. for k2, v2 := range v {
  5035. if esep {
  5036. ee.WriteMapElemKey()
  5037. }
  5038. ee.EncodeUint(uint64(k2))
  5039. if esep {
  5040. ee.WriteMapElemValue()
  5041. }
  5042. e.encode(v2)
  5043. }
  5044. }
  5045. ee.WriteMapEnd()
  5046. }
  5047. func (e *Encoder) fastpathEncMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  5048. fastpathTV.EncMapUintStringV(rv2i(rv).(map[uint]string), e)
  5049. }
  5050. func (_ fastpathT) EncMapUintStringV(v map[uint]string, e *Encoder) {
  5051. if v == nil {
  5052. e.e.EncodeNil()
  5053. return
  5054. }
  5055. ee, esep := e.e, e.hh.hasElemSeparators()
  5056. ee.WriteMapStart(len(v))
  5057. if e.h.Canonical {
  5058. v2 := make([]uint64, len(v))
  5059. var i int
  5060. for k, _ := range v {
  5061. v2[i] = uint64(k)
  5062. i++
  5063. }
  5064. sort.Sort(uintSlice(v2))
  5065. for _, k2 := range v2 {
  5066. if esep {
  5067. ee.WriteMapElemKey()
  5068. }
  5069. ee.EncodeUint(uint64(uint(k2)))
  5070. if esep {
  5071. ee.WriteMapElemValue()
  5072. }
  5073. ee.EncodeString(c_UTF8, v[uint(k2)])
  5074. }
  5075. } else {
  5076. for k2, v2 := range v {
  5077. if esep {
  5078. ee.WriteMapElemKey()
  5079. }
  5080. ee.EncodeUint(uint64(k2))
  5081. if esep {
  5082. ee.WriteMapElemValue()
  5083. }
  5084. ee.EncodeString(c_UTF8, v2)
  5085. }
  5086. }
  5087. ee.WriteMapEnd()
  5088. }
  5089. func (e *Encoder) fastpathEncMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  5090. fastpathTV.EncMapUintUintV(rv2i(rv).(map[uint]uint), e)
  5091. }
  5092. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, e *Encoder) {
  5093. if v == nil {
  5094. e.e.EncodeNil()
  5095. return
  5096. }
  5097. ee, esep := e.e, e.hh.hasElemSeparators()
  5098. ee.WriteMapStart(len(v))
  5099. if e.h.Canonical {
  5100. v2 := make([]uint64, len(v))
  5101. var i int
  5102. for k, _ := range v {
  5103. v2[i] = uint64(k)
  5104. i++
  5105. }
  5106. sort.Sort(uintSlice(v2))
  5107. for _, k2 := range v2 {
  5108. if esep {
  5109. ee.WriteMapElemKey()
  5110. }
  5111. ee.EncodeUint(uint64(uint(k2)))
  5112. if esep {
  5113. ee.WriteMapElemValue()
  5114. }
  5115. ee.EncodeUint(uint64(v[uint(k2)]))
  5116. }
  5117. } else {
  5118. for k2, v2 := range v {
  5119. if esep {
  5120. ee.WriteMapElemKey()
  5121. }
  5122. ee.EncodeUint(uint64(k2))
  5123. if esep {
  5124. ee.WriteMapElemValue()
  5125. }
  5126. ee.EncodeUint(uint64(v2))
  5127. }
  5128. }
  5129. ee.WriteMapEnd()
  5130. }
  5131. func (e *Encoder) fastpathEncMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  5132. fastpathTV.EncMapUintUint8V(rv2i(rv).(map[uint]uint8), e)
  5133. }
  5134. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, e *Encoder) {
  5135. if v == nil {
  5136. e.e.EncodeNil()
  5137. return
  5138. }
  5139. ee, esep := e.e, e.hh.hasElemSeparators()
  5140. ee.WriteMapStart(len(v))
  5141. if e.h.Canonical {
  5142. v2 := make([]uint64, len(v))
  5143. var i int
  5144. for k, _ := range v {
  5145. v2[i] = uint64(k)
  5146. i++
  5147. }
  5148. sort.Sort(uintSlice(v2))
  5149. for _, k2 := range v2 {
  5150. if esep {
  5151. ee.WriteMapElemKey()
  5152. }
  5153. ee.EncodeUint(uint64(uint(k2)))
  5154. if esep {
  5155. ee.WriteMapElemValue()
  5156. }
  5157. ee.EncodeUint(uint64(v[uint(k2)]))
  5158. }
  5159. } else {
  5160. for k2, v2 := range v {
  5161. if esep {
  5162. ee.WriteMapElemKey()
  5163. }
  5164. ee.EncodeUint(uint64(k2))
  5165. if esep {
  5166. ee.WriteMapElemValue()
  5167. }
  5168. ee.EncodeUint(uint64(v2))
  5169. }
  5170. }
  5171. ee.WriteMapEnd()
  5172. }
  5173. func (e *Encoder) fastpathEncMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  5174. fastpathTV.EncMapUintUint16V(rv2i(rv).(map[uint]uint16), e)
  5175. }
  5176. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, e *Encoder) {
  5177. if v == nil {
  5178. e.e.EncodeNil()
  5179. return
  5180. }
  5181. ee, esep := e.e, e.hh.hasElemSeparators()
  5182. ee.WriteMapStart(len(v))
  5183. if e.h.Canonical {
  5184. v2 := make([]uint64, len(v))
  5185. var i int
  5186. for k, _ := range v {
  5187. v2[i] = uint64(k)
  5188. i++
  5189. }
  5190. sort.Sort(uintSlice(v2))
  5191. for _, k2 := range v2 {
  5192. if esep {
  5193. ee.WriteMapElemKey()
  5194. }
  5195. ee.EncodeUint(uint64(uint(k2)))
  5196. if esep {
  5197. ee.WriteMapElemValue()
  5198. }
  5199. ee.EncodeUint(uint64(v[uint(k2)]))
  5200. }
  5201. } else {
  5202. for k2, v2 := range v {
  5203. if esep {
  5204. ee.WriteMapElemKey()
  5205. }
  5206. ee.EncodeUint(uint64(k2))
  5207. if esep {
  5208. ee.WriteMapElemValue()
  5209. }
  5210. ee.EncodeUint(uint64(v2))
  5211. }
  5212. }
  5213. ee.WriteMapEnd()
  5214. }
  5215. func (e *Encoder) fastpathEncMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  5216. fastpathTV.EncMapUintUint32V(rv2i(rv).(map[uint]uint32), e)
  5217. }
  5218. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, e *Encoder) {
  5219. if v == nil {
  5220. e.e.EncodeNil()
  5221. return
  5222. }
  5223. ee, esep := e.e, e.hh.hasElemSeparators()
  5224. ee.WriteMapStart(len(v))
  5225. if e.h.Canonical {
  5226. v2 := make([]uint64, len(v))
  5227. var i int
  5228. for k, _ := range v {
  5229. v2[i] = uint64(k)
  5230. i++
  5231. }
  5232. sort.Sort(uintSlice(v2))
  5233. for _, k2 := range v2 {
  5234. if esep {
  5235. ee.WriteMapElemKey()
  5236. }
  5237. ee.EncodeUint(uint64(uint(k2)))
  5238. if esep {
  5239. ee.WriteMapElemValue()
  5240. }
  5241. ee.EncodeUint(uint64(v[uint(k2)]))
  5242. }
  5243. } else {
  5244. for k2, v2 := range v {
  5245. if esep {
  5246. ee.WriteMapElemKey()
  5247. }
  5248. ee.EncodeUint(uint64(k2))
  5249. if esep {
  5250. ee.WriteMapElemValue()
  5251. }
  5252. ee.EncodeUint(uint64(v2))
  5253. }
  5254. }
  5255. ee.WriteMapEnd()
  5256. }
  5257. func (e *Encoder) fastpathEncMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  5258. fastpathTV.EncMapUintUint64V(rv2i(rv).(map[uint]uint64), e)
  5259. }
  5260. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, e *Encoder) {
  5261. if v == nil {
  5262. e.e.EncodeNil()
  5263. return
  5264. }
  5265. ee, esep := e.e, e.hh.hasElemSeparators()
  5266. ee.WriteMapStart(len(v))
  5267. if e.h.Canonical {
  5268. v2 := make([]uint64, len(v))
  5269. var i int
  5270. for k, _ := range v {
  5271. v2[i] = uint64(k)
  5272. i++
  5273. }
  5274. sort.Sort(uintSlice(v2))
  5275. for _, k2 := range v2 {
  5276. if esep {
  5277. ee.WriteMapElemKey()
  5278. }
  5279. ee.EncodeUint(uint64(uint(k2)))
  5280. if esep {
  5281. ee.WriteMapElemValue()
  5282. }
  5283. ee.EncodeUint(uint64(v[uint(k2)]))
  5284. }
  5285. } else {
  5286. for k2, v2 := range v {
  5287. if esep {
  5288. ee.WriteMapElemKey()
  5289. }
  5290. ee.EncodeUint(uint64(k2))
  5291. if esep {
  5292. ee.WriteMapElemValue()
  5293. }
  5294. ee.EncodeUint(uint64(v2))
  5295. }
  5296. }
  5297. ee.WriteMapEnd()
  5298. }
  5299. func (e *Encoder) fastpathEncMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  5300. fastpathTV.EncMapUintUintptrV(rv2i(rv).(map[uint]uintptr), e)
  5301. }
  5302. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, e *Encoder) {
  5303. if v == nil {
  5304. e.e.EncodeNil()
  5305. return
  5306. }
  5307. ee, esep := e.e, e.hh.hasElemSeparators()
  5308. ee.WriteMapStart(len(v))
  5309. if e.h.Canonical {
  5310. v2 := make([]uint64, len(v))
  5311. var i int
  5312. for k, _ := range v {
  5313. v2[i] = uint64(k)
  5314. i++
  5315. }
  5316. sort.Sort(uintSlice(v2))
  5317. for _, k2 := range v2 {
  5318. if esep {
  5319. ee.WriteMapElemKey()
  5320. }
  5321. ee.EncodeUint(uint64(uint(k2)))
  5322. if esep {
  5323. ee.WriteMapElemValue()
  5324. }
  5325. e.encode(v[uint(k2)])
  5326. }
  5327. } else {
  5328. for k2, v2 := range v {
  5329. if esep {
  5330. ee.WriteMapElemKey()
  5331. }
  5332. ee.EncodeUint(uint64(k2))
  5333. if esep {
  5334. ee.WriteMapElemValue()
  5335. }
  5336. e.encode(v2)
  5337. }
  5338. }
  5339. ee.WriteMapEnd()
  5340. }
  5341. func (e *Encoder) fastpathEncMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  5342. fastpathTV.EncMapUintIntV(rv2i(rv).(map[uint]int), e)
  5343. }
  5344. func (_ fastpathT) EncMapUintIntV(v map[uint]int, e *Encoder) {
  5345. if v == nil {
  5346. e.e.EncodeNil()
  5347. return
  5348. }
  5349. ee, esep := e.e, e.hh.hasElemSeparators()
  5350. ee.WriteMapStart(len(v))
  5351. if e.h.Canonical {
  5352. v2 := make([]uint64, len(v))
  5353. var i int
  5354. for k, _ := range v {
  5355. v2[i] = uint64(k)
  5356. i++
  5357. }
  5358. sort.Sort(uintSlice(v2))
  5359. for _, k2 := range v2 {
  5360. if esep {
  5361. ee.WriteMapElemKey()
  5362. }
  5363. ee.EncodeUint(uint64(uint(k2)))
  5364. if esep {
  5365. ee.WriteMapElemValue()
  5366. }
  5367. ee.EncodeInt(int64(v[uint(k2)]))
  5368. }
  5369. } else {
  5370. for k2, v2 := range v {
  5371. if esep {
  5372. ee.WriteMapElemKey()
  5373. }
  5374. ee.EncodeUint(uint64(k2))
  5375. if esep {
  5376. ee.WriteMapElemValue()
  5377. }
  5378. ee.EncodeInt(int64(v2))
  5379. }
  5380. }
  5381. ee.WriteMapEnd()
  5382. }
  5383. func (e *Encoder) fastpathEncMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  5384. fastpathTV.EncMapUintInt8V(rv2i(rv).(map[uint]int8), e)
  5385. }
  5386. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, e *Encoder) {
  5387. if v == nil {
  5388. e.e.EncodeNil()
  5389. return
  5390. }
  5391. ee, esep := e.e, e.hh.hasElemSeparators()
  5392. ee.WriteMapStart(len(v))
  5393. if e.h.Canonical {
  5394. v2 := make([]uint64, len(v))
  5395. var i int
  5396. for k, _ := range v {
  5397. v2[i] = uint64(k)
  5398. i++
  5399. }
  5400. sort.Sort(uintSlice(v2))
  5401. for _, k2 := range v2 {
  5402. if esep {
  5403. ee.WriteMapElemKey()
  5404. }
  5405. ee.EncodeUint(uint64(uint(k2)))
  5406. if esep {
  5407. ee.WriteMapElemValue()
  5408. }
  5409. ee.EncodeInt(int64(v[uint(k2)]))
  5410. }
  5411. } else {
  5412. for k2, v2 := range v {
  5413. if esep {
  5414. ee.WriteMapElemKey()
  5415. }
  5416. ee.EncodeUint(uint64(k2))
  5417. if esep {
  5418. ee.WriteMapElemValue()
  5419. }
  5420. ee.EncodeInt(int64(v2))
  5421. }
  5422. }
  5423. ee.WriteMapEnd()
  5424. }
  5425. func (e *Encoder) fastpathEncMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  5426. fastpathTV.EncMapUintInt16V(rv2i(rv).(map[uint]int16), e)
  5427. }
  5428. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, e *Encoder) {
  5429. if v == nil {
  5430. e.e.EncodeNil()
  5431. return
  5432. }
  5433. ee, esep := e.e, e.hh.hasElemSeparators()
  5434. ee.WriteMapStart(len(v))
  5435. if e.h.Canonical {
  5436. v2 := make([]uint64, len(v))
  5437. var i int
  5438. for k, _ := range v {
  5439. v2[i] = uint64(k)
  5440. i++
  5441. }
  5442. sort.Sort(uintSlice(v2))
  5443. for _, k2 := range v2 {
  5444. if esep {
  5445. ee.WriteMapElemKey()
  5446. }
  5447. ee.EncodeUint(uint64(uint(k2)))
  5448. if esep {
  5449. ee.WriteMapElemValue()
  5450. }
  5451. ee.EncodeInt(int64(v[uint(k2)]))
  5452. }
  5453. } else {
  5454. for k2, v2 := range v {
  5455. if esep {
  5456. ee.WriteMapElemKey()
  5457. }
  5458. ee.EncodeUint(uint64(k2))
  5459. if esep {
  5460. ee.WriteMapElemValue()
  5461. }
  5462. ee.EncodeInt(int64(v2))
  5463. }
  5464. }
  5465. ee.WriteMapEnd()
  5466. }
  5467. func (e *Encoder) fastpathEncMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  5468. fastpathTV.EncMapUintInt32V(rv2i(rv).(map[uint]int32), e)
  5469. }
  5470. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, e *Encoder) {
  5471. if v == nil {
  5472. e.e.EncodeNil()
  5473. return
  5474. }
  5475. ee, esep := e.e, e.hh.hasElemSeparators()
  5476. ee.WriteMapStart(len(v))
  5477. if e.h.Canonical {
  5478. v2 := make([]uint64, len(v))
  5479. var i int
  5480. for k, _ := range v {
  5481. v2[i] = uint64(k)
  5482. i++
  5483. }
  5484. sort.Sort(uintSlice(v2))
  5485. for _, k2 := range v2 {
  5486. if esep {
  5487. ee.WriteMapElemKey()
  5488. }
  5489. ee.EncodeUint(uint64(uint(k2)))
  5490. if esep {
  5491. ee.WriteMapElemValue()
  5492. }
  5493. ee.EncodeInt(int64(v[uint(k2)]))
  5494. }
  5495. } else {
  5496. for k2, v2 := range v {
  5497. if esep {
  5498. ee.WriteMapElemKey()
  5499. }
  5500. ee.EncodeUint(uint64(k2))
  5501. if esep {
  5502. ee.WriteMapElemValue()
  5503. }
  5504. ee.EncodeInt(int64(v2))
  5505. }
  5506. }
  5507. ee.WriteMapEnd()
  5508. }
  5509. func (e *Encoder) fastpathEncMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  5510. fastpathTV.EncMapUintInt64V(rv2i(rv).(map[uint]int64), e)
  5511. }
  5512. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, e *Encoder) {
  5513. if v == nil {
  5514. e.e.EncodeNil()
  5515. return
  5516. }
  5517. ee, esep := e.e, e.hh.hasElemSeparators()
  5518. ee.WriteMapStart(len(v))
  5519. if e.h.Canonical {
  5520. v2 := make([]uint64, len(v))
  5521. var i int
  5522. for k, _ := range v {
  5523. v2[i] = uint64(k)
  5524. i++
  5525. }
  5526. sort.Sort(uintSlice(v2))
  5527. for _, k2 := range v2 {
  5528. if esep {
  5529. ee.WriteMapElemKey()
  5530. }
  5531. ee.EncodeUint(uint64(uint(k2)))
  5532. if esep {
  5533. ee.WriteMapElemValue()
  5534. }
  5535. ee.EncodeInt(int64(v[uint(k2)]))
  5536. }
  5537. } else {
  5538. for k2, v2 := range v {
  5539. if esep {
  5540. ee.WriteMapElemKey()
  5541. }
  5542. ee.EncodeUint(uint64(k2))
  5543. if esep {
  5544. ee.WriteMapElemValue()
  5545. }
  5546. ee.EncodeInt(int64(v2))
  5547. }
  5548. }
  5549. ee.WriteMapEnd()
  5550. }
  5551. func (e *Encoder) fastpathEncMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  5552. fastpathTV.EncMapUintFloat32V(rv2i(rv).(map[uint]float32), e)
  5553. }
  5554. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, e *Encoder) {
  5555. if v == nil {
  5556. e.e.EncodeNil()
  5557. return
  5558. }
  5559. ee, esep := e.e, e.hh.hasElemSeparators()
  5560. ee.WriteMapStart(len(v))
  5561. if e.h.Canonical {
  5562. v2 := make([]uint64, len(v))
  5563. var i int
  5564. for k, _ := range v {
  5565. v2[i] = uint64(k)
  5566. i++
  5567. }
  5568. sort.Sort(uintSlice(v2))
  5569. for _, k2 := range v2 {
  5570. if esep {
  5571. ee.WriteMapElemKey()
  5572. }
  5573. ee.EncodeUint(uint64(uint(k2)))
  5574. if esep {
  5575. ee.WriteMapElemValue()
  5576. }
  5577. ee.EncodeFloat32(v[uint(k2)])
  5578. }
  5579. } else {
  5580. for k2, v2 := range v {
  5581. if esep {
  5582. ee.WriteMapElemKey()
  5583. }
  5584. ee.EncodeUint(uint64(k2))
  5585. if esep {
  5586. ee.WriteMapElemValue()
  5587. }
  5588. ee.EncodeFloat32(v2)
  5589. }
  5590. }
  5591. ee.WriteMapEnd()
  5592. }
  5593. func (e *Encoder) fastpathEncMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  5594. fastpathTV.EncMapUintFloat64V(rv2i(rv).(map[uint]float64), e)
  5595. }
  5596. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, e *Encoder) {
  5597. if v == nil {
  5598. e.e.EncodeNil()
  5599. return
  5600. }
  5601. ee, esep := e.e, e.hh.hasElemSeparators()
  5602. ee.WriteMapStart(len(v))
  5603. if e.h.Canonical {
  5604. v2 := make([]uint64, len(v))
  5605. var i int
  5606. for k, _ := range v {
  5607. v2[i] = uint64(k)
  5608. i++
  5609. }
  5610. sort.Sort(uintSlice(v2))
  5611. for _, k2 := range v2 {
  5612. if esep {
  5613. ee.WriteMapElemKey()
  5614. }
  5615. ee.EncodeUint(uint64(uint(k2)))
  5616. if esep {
  5617. ee.WriteMapElemValue()
  5618. }
  5619. ee.EncodeFloat64(v[uint(k2)])
  5620. }
  5621. } else {
  5622. for k2, v2 := range v {
  5623. if esep {
  5624. ee.WriteMapElemKey()
  5625. }
  5626. ee.EncodeUint(uint64(k2))
  5627. if esep {
  5628. ee.WriteMapElemValue()
  5629. }
  5630. ee.EncodeFloat64(v2)
  5631. }
  5632. }
  5633. ee.WriteMapEnd()
  5634. }
  5635. func (e *Encoder) fastpathEncMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  5636. fastpathTV.EncMapUintBoolV(rv2i(rv).(map[uint]bool), e)
  5637. }
  5638. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, e *Encoder) {
  5639. if v == nil {
  5640. e.e.EncodeNil()
  5641. return
  5642. }
  5643. ee, esep := e.e, e.hh.hasElemSeparators()
  5644. ee.WriteMapStart(len(v))
  5645. if e.h.Canonical {
  5646. v2 := make([]uint64, len(v))
  5647. var i int
  5648. for k, _ := range v {
  5649. v2[i] = uint64(k)
  5650. i++
  5651. }
  5652. sort.Sort(uintSlice(v2))
  5653. for _, k2 := range v2 {
  5654. if esep {
  5655. ee.WriteMapElemKey()
  5656. }
  5657. ee.EncodeUint(uint64(uint(k2)))
  5658. if esep {
  5659. ee.WriteMapElemValue()
  5660. }
  5661. ee.EncodeBool(v[uint(k2)])
  5662. }
  5663. } else {
  5664. for k2, v2 := range v {
  5665. if esep {
  5666. ee.WriteMapElemKey()
  5667. }
  5668. ee.EncodeUint(uint64(k2))
  5669. if esep {
  5670. ee.WriteMapElemValue()
  5671. }
  5672. ee.EncodeBool(v2)
  5673. }
  5674. }
  5675. ee.WriteMapEnd()
  5676. }
  5677. func (e *Encoder) fastpathEncMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  5678. fastpathTV.EncMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), e)
  5679. }
  5680. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, e *Encoder) {
  5681. if v == nil {
  5682. e.e.EncodeNil()
  5683. return
  5684. }
  5685. ee, esep := e.e, e.hh.hasElemSeparators()
  5686. ee.WriteMapStart(len(v))
  5687. if e.h.Canonical {
  5688. v2 := make([]uint64, len(v))
  5689. var i int
  5690. for k, _ := range v {
  5691. v2[i] = uint64(k)
  5692. i++
  5693. }
  5694. sort.Sort(uintSlice(v2))
  5695. for _, k2 := range v2 {
  5696. if esep {
  5697. ee.WriteMapElemKey()
  5698. }
  5699. ee.EncodeUint(uint64(uint8(k2)))
  5700. if esep {
  5701. ee.WriteMapElemValue()
  5702. }
  5703. e.encode(v[uint8(k2)])
  5704. }
  5705. } else {
  5706. for k2, v2 := range v {
  5707. if esep {
  5708. ee.WriteMapElemKey()
  5709. }
  5710. ee.EncodeUint(uint64(k2))
  5711. if esep {
  5712. ee.WriteMapElemValue()
  5713. }
  5714. e.encode(v2)
  5715. }
  5716. }
  5717. ee.WriteMapEnd()
  5718. }
  5719. func (e *Encoder) fastpathEncMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  5720. fastpathTV.EncMapUint8StringV(rv2i(rv).(map[uint8]string), e)
  5721. }
  5722. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, e *Encoder) {
  5723. if v == nil {
  5724. e.e.EncodeNil()
  5725. return
  5726. }
  5727. ee, esep := e.e, e.hh.hasElemSeparators()
  5728. ee.WriteMapStart(len(v))
  5729. if e.h.Canonical {
  5730. v2 := make([]uint64, len(v))
  5731. var i int
  5732. for k, _ := range v {
  5733. v2[i] = uint64(k)
  5734. i++
  5735. }
  5736. sort.Sort(uintSlice(v2))
  5737. for _, k2 := range v2 {
  5738. if esep {
  5739. ee.WriteMapElemKey()
  5740. }
  5741. ee.EncodeUint(uint64(uint8(k2)))
  5742. if esep {
  5743. ee.WriteMapElemValue()
  5744. }
  5745. ee.EncodeString(c_UTF8, v[uint8(k2)])
  5746. }
  5747. } else {
  5748. for k2, v2 := range v {
  5749. if esep {
  5750. ee.WriteMapElemKey()
  5751. }
  5752. ee.EncodeUint(uint64(k2))
  5753. if esep {
  5754. ee.WriteMapElemValue()
  5755. }
  5756. ee.EncodeString(c_UTF8, v2)
  5757. }
  5758. }
  5759. ee.WriteMapEnd()
  5760. }
  5761. func (e *Encoder) fastpathEncMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  5762. fastpathTV.EncMapUint8UintV(rv2i(rv).(map[uint8]uint), e)
  5763. }
  5764. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, e *Encoder) {
  5765. if v == nil {
  5766. e.e.EncodeNil()
  5767. return
  5768. }
  5769. ee, esep := e.e, e.hh.hasElemSeparators()
  5770. ee.WriteMapStart(len(v))
  5771. if e.h.Canonical {
  5772. v2 := make([]uint64, len(v))
  5773. var i int
  5774. for k, _ := range v {
  5775. v2[i] = uint64(k)
  5776. i++
  5777. }
  5778. sort.Sort(uintSlice(v2))
  5779. for _, k2 := range v2 {
  5780. if esep {
  5781. ee.WriteMapElemKey()
  5782. }
  5783. ee.EncodeUint(uint64(uint8(k2)))
  5784. if esep {
  5785. ee.WriteMapElemValue()
  5786. }
  5787. ee.EncodeUint(uint64(v[uint8(k2)]))
  5788. }
  5789. } else {
  5790. for k2, v2 := range v {
  5791. if esep {
  5792. ee.WriteMapElemKey()
  5793. }
  5794. ee.EncodeUint(uint64(k2))
  5795. if esep {
  5796. ee.WriteMapElemValue()
  5797. }
  5798. ee.EncodeUint(uint64(v2))
  5799. }
  5800. }
  5801. ee.WriteMapEnd()
  5802. }
  5803. func (e *Encoder) fastpathEncMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  5804. fastpathTV.EncMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), e)
  5805. }
  5806. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, e *Encoder) {
  5807. if v == nil {
  5808. e.e.EncodeNil()
  5809. return
  5810. }
  5811. ee, esep := e.e, e.hh.hasElemSeparators()
  5812. ee.WriteMapStart(len(v))
  5813. if e.h.Canonical {
  5814. v2 := make([]uint64, len(v))
  5815. var i int
  5816. for k, _ := range v {
  5817. v2[i] = uint64(k)
  5818. i++
  5819. }
  5820. sort.Sort(uintSlice(v2))
  5821. for _, k2 := range v2 {
  5822. if esep {
  5823. ee.WriteMapElemKey()
  5824. }
  5825. ee.EncodeUint(uint64(uint8(k2)))
  5826. if esep {
  5827. ee.WriteMapElemValue()
  5828. }
  5829. ee.EncodeUint(uint64(v[uint8(k2)]))
  5830. }
  5831. } else {
  5832. for k2, v2 := range v {
  5833. if esep {
  5834. ee.WriteMapElemKey()
  5835. }
  5836. ee.EncodeUint(uint64(k2))
  5837. if esep {
  5838. ee.WriteMapElemValue()
  5839. }
  5840. ee.EncodeUint(uint64(v2))
  5841. }
  5842. }
  5843. ee.WriteMapEnd()
  5844. }
  5845. func (e *Encoder) fastpathEncMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  5846. fastpathTV.EncMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), e)
  5847. }
  5848. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, e *Encoder) {
  5849. if v == nil {
  5850. e.e.EncodeNil()
  5851. return
  5852. }
  5853. ee, esep := e.e, e.hh.hasElemSeparators()
  5854. ee.WriteMapStart(len(v))
  5855. if e.h.Canonical {
  5856. v2 := make([]uint64, len(v))
  5857. var i int
  5858. for k, _ := range v {
  5859. v2[i] = uint64(k)
  5860. i++
  5861. }
  5862. sort.Sort(uintSlice(v2))
  5863. for _, k2 := range v2 {
  5864. if esep {
  5865. ee.WriteMapElemKey()
  5866. }
  5867. ee.EncodeUint(uint64(uint8(k2)))
  5868. if esep {
  5869. ee.WriteMapElemValue()
  5870. }
  5871. ee.EncodeUint(uint64(v[uint8(k2)]))
  5872. }
  5873. } else {
  5874. for k2, v2 := range v {
  5875. if esep {
  5876. ee.WriteMapElemKey()
  5877. }
  5878. ee.EncodeUint(uint64(k2))
  5879. if esep {
  5880. ee.WriteMapElemValue()
  5881. }
  5882. ee.EncodeUint(uint64(v2))
  5883. }
  5884. }
  5885. ee.WriteMapEnd()
  5886. }
  5887. func (e *Encoder) fastpathEncMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  5888. fastpathTV.EncMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), e)
  5889. }
  5890. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, e *Encoder) {
  5891. if v == nil {
  5892. e.e.EncodeNil()
  5893. return
  5894. }
  5895. ee, esep := e.e, e.hh.hasElemSeparators()
  5896. ee.WriteMapStart(len(v))
  5897. if e.h.Canonical {
  5898. v2 := make([]uint64, len(v))
  5899. var i int
  5900. for k, _ := range v {
  5901. v2[i] = uint64(k)
  5902. i++
  5903. }
  5904. sort.Sort(uintSlice(v2))
  5905. for _, k2 := range v2 {
  5906. if esep {
  5907. ee.WriteMapElemKey()
  5908. }
  5909. ee.EncodeUint(uint64(uint8(k2)))
  5910. if esep {
  5911. ee.WriteMapElemValue()
  5912. }
  5913. ee.EncodeUint(uint64(v[uint8(k2)]))
  5914. }
  5915. } else {
  5916. for k2, v2 := range v {
  5917. if esep {
  5918. ee.WriteMapElemKey()
  5919. }
  5920. ee.EncodeUint(uint64(k2))
  5921. if esep {
  5922. ee.WriteMapElemValue()
  5923. }
  5924. ee.EncodeUint(uint64(v2))
  5925. }
  5926. }
  5927. ee.WriteMapEnd()
  5928. }
  5929. func (e *Encoder) fastpathEncMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  5930. fastpathTV.EncMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), e)
  5931. }
  5932. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, e *Encoder) {
  5933. if v == nil {
  5934. e.e.EncodeNil()
  5935. return
  5936. }
  5937. ee, esep := e.e, e.hh.hasElemSeparators()
  5938. ee.WriteMapStart(len(v))
  5939. if e.h.Canonical {
  5940. v2 := make([]uint64, len(v))
  5941. var i int
  5942. for k, _ := range v {
  5943. v2[i] = uint64(k)
  5944. i++
  5945. }
  5946. sort.Sort(uintSlice(v2))
  5947. for _, k2 := range v2 {
  5948. if esep {
  5949. ee.WriteMapElemKey()
  5950. }
  5951. ee.EncodeUint(uint64(uint8(k2)))
  5952. if esep {
  5953. ee.WriteMapElemValue()
  5954. }
  5955. ee.EncodeUint(uint64(v[uint8(k2)]))
  5956. }
  5957. } else {
  5958. for k2, v2 := range v {
  5959. if esep {
  5960. ee.WriteMapElemKey()
  5961. }
  5962. ee.EncodeUint(uint64(k2))
  5963. if esep {
  5964. ee.WriteMapElemValue()
  5965. }
  5966. ee.EncodeUint(uint64(v2))
  5967. }
  5968. }
  5969. ee.WriteMapEnd()
  5970. }
  5971. func (e *Encoder) fastpathEncMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  5972. fastpathTV.EncMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), e)
  5973. }
  5974. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, e *Encoder) {
  5975. if v == nil {
  5976. e.e.EncodeNil()
  5977. return
  5978. }
  5979. ee, esep := e.e, e.hh.hasElemSeparators()
  5980. ee.WriteMapStart(len(v))
  5981. if e.h.Canonical {
  5982. v2 := make([]uint64, len(v))
  5983. var i int
  5984. for k, _ := range v {
  5985. v2[i] = uint64(k)
  5986. i++
  5987. }
  5988. sort.Sort(uintSlice(v2))
  5989. for _, k2 := range v2 {
  5990. if esep {
  5991. ee.WriteMapElemKey()
  5992. }
  5993. ee.EncodeUint(uint64(uint8(k2)))
  5994. if esep {
  5995. ee.WriteMapElemValue()
  5996. }
  5997. e.encode(v[uint8(k2)])
  5998. }
  5999. } else {
  6000. for k2, v2 := range v {
  6001. if esep {
  6002. ee.WriteMapElemKey()
  6003. }
  6004. ee.EncodeUint(uint64(k2))
  6005. if esep {
  6006. ee.WriteMapElemValue()
  6007. }
  6008. e.encode(v2)
  6009. }
  6010. }
  6011. ee.WriteMapEnd()
  6012. }
  6013. func (e *Encoder) fastpathEncMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  6014. fastpathTV.EncMapUint8IntV(rv2i(rv).(map[uint8]int), e)
  6015. }
  6016. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, e *Encoder) {
  6017. if v == nil {
  6018. e.e.EncodeNil()
  6019. return
  6020. }
  6021. ee, esep := e.e, e.hh.hasElemSeparators()
  6022. ee.WriteMapStart(len(v))
  6023. if e.h.Canonical {
  6024. v2 := make([]uint64, len(v))
  6025. var i int
  6026. for k, _ := range v {
  6027. v2[i] = uint64(k)
  6028. i++
  6029. }
  6030. sort.Sort(uintSlice(v2))
  6031. for _, k2 := range v2 {
  6032. if esep {
  6033. ee.WriteMapElemKey()
  6034. }
  6035. ee.EncodeUint(uint64(uint8(k2)))
  6036. if esep {
  6037. ee.WriteMapElemValue()
  6038. }
  6039. ee.EncodeInt(int64(v[uint8(k2)]))
  6040. }
  6041. } else {
  6042. for k2, v2 := range v {
  6043. if esep {
  6044. ee.WriteMapElemKey()
  6045. }
  6046. ee.EncodeUint(uint64(k2))
  6047. if esep {
  6048. ee.WriteMapElemValue()
  6049. }
  6050. ee.EncodeInt(int64(v2))
  6051. }
  6052. }
  6053. ee.WriteMapEnd()
  6054. }
  6055. func (e *Encoder) fastpathEncMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  6056. fastpathTV.EncMapUint8Int8V(rv2i(rv).(map[uint8]int8), e)
  6057. }
  6058. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, e *Encoder) {
  6059. if v == nil {
  6060. e.e.EncodeNil()
  6061. return
  6062. }
  6063. ee, esep := e.e, e.hh.hasElemSeparators()
  6064. ee.WriteMapStart(len(v))
  6065. if e.h.Canonical {
  6066. v2 := make([]uint64, len(v))
  6067. var i int
  6068. for k, _ := range v {
  6069. v2[i] = uint64(k)
  6070. i++
  6071. }
  6072. sort.Sort(uintSlice(v2))
  6073. for _, k2 := range v2 {
  6074. if esep {
  6075. ee.WriteMapElemKey()
  6076. }
  6077. ee.EncodeUint(uint64(uint8(k2)))
  6078. if esep {
  6079. ee.WriteMapElemValue()
  6080. }
  6081. ee.EncodeInt(int64(v[uint8(k2)]))
  6082. }
  6083. } else {
  6084. for k2, v2 := range v {
  6085. if esep {
  6086. ee.WriteMapElemKey()
  6087. }
  6088. ee.EncodeUint(uint64(k2))
  6089. if esep {
  6090. ee.WriteMapElemValue()
  6091. }
  6092. ee.EncodeInt(int64(v2))
  6093. }
  6094. }
  6095. ee.WriteMapEnd()
  6096. }
  6097. func (e *Encoder) fastpathEncMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  6098. fastpathTV.EncMapUint8Int16V(rv2i(rv).(map[uint8]int16), e)
  6099. }
  6100. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, e *Encoder) {
  6101. if v == nil {
  6102. e.e.EncodeNil()
  6103. return
  6104. }
  6105. ee, esep := e.e, e.hh.hasElemSeparators()
  6106. ee.WriteMapStart(len(v))
  6107. if e.h.Canonical {
  6108. v2 := make([]uint64, len(v))
  6109. var i int
  6110. for k, _ := range v {
  6111. v2[i] = uint64(k)
  6112. i++
  6113. }
  6114. sort.Sort(uintSlice(v2))
  6115. for _, k2 := range v2 {
  6116. if esep {
  6117. ee.WriteMapElemKey()
  6118. }
  6119. ee.EncodeUint(uint64(uint8(k2)))
  6120. if esep {
  6121. ee.WriteMapElemValue()
  6122. }
  6123. ee.EncodeInt(int64(v[uint8(k2)]))
  6124. }
  6125. } else {
  6126. for k2, v2 := range v {
  6127. if esep {
  6128. ee.WriteMapElemKey()
  6129. }
  6130. ee.EncodeUint(uint64(k2))
  6131. if esep {
  6132. ee.WriteMapElemValue()
  6133. }
  6134. ee.EncodeInt(int64(v2))
  6135. }
  6136. }
  6137. ee.WriteMapEnd()
  6138. }
  6139. func (e *Encoder) fastpathEncMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  6140. fastpathTV.EncMapUint8Int32V(rv2i(rv).(map[uint8]int32), e)
  6141. }
  6142. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, e *Encoder) {
  6143. if v == nil {
  6144. e.e.EncodeNil()
  6145. return
  6146. }
  6147. ee, esep := e.e, e.hh.hasElemSeparators()
  6148. ee.WriteMapStart(len(v))
  6149. if e.h.Canonical {
  6150. v2 := make([]uint64, len(v))
  6151. var i int
  6152. for k, _ := range v {
  6153. v2[i] = uint64(k)
  6154. i++
  6155. }
  6156. sort.Sort(uintSlice(v2))
  6157. for _, k2 := range v2 {
  6158. if esep {
  6159. ee.WriteMapElemKey()
  6160. }
  6161. ee.EncodeUint(uint64(uint8(k2)))
  6162. if esep {
  6163. ee.WriteMapElemValue()
  6164. }
  6165. ee.EncodeInt(int64(v[uint8(k2)]))
  6166. }
  6167. } else {
  6168. for k2, v2 := range v {
  6169. if esep {
  6170. ee.WriteMapElemKey()
  6171. }
  6172. ee.EncodeUint(uint64(k2))
  6173. if esep {
  6174. ee.WriteMapElemValue()
  6175. }
  6176. ee.EncodeInt(int64(v2))
  6177. }
  6178. }
  6179. ee.WriteMapEnd()
  6180. }
  6181. func (e *Encoder) fastpathEncMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  6182. fastpathTV.EncMapUint8Int64V(rv2i(rv).(map[uint8]int64), e)
  6183. }
  6184. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, e *Encoder) {
  6185. if v == nil {
  6186. e.e.EncodeNil()
  6187. return
  6188. }
  6189. ee, esep := e.e, e.hh.hasElemSeparators()
  6190. ee.WriteMapStart(len(v))
  6191. if e.h.Canonical {
  6192. v2 := make([]uint64, len(v))
  6193. var i int
  6194. for k, _ := range v {
  6195. v2[i] = uint64(k)
  6196. i++
  6197. }
  6198. sort.Sort(uintSlice(v2))
  6199. for _, k2 := range v2 {
  6200. if esep {
  6201. ee.WriteMapElemKey()
  6202. }
  6203. ee.EncodeUint(uint64(uint8(k2)))
  6204. if esep {
  6205. ee.WriteMapElemValue()
  6206. }
  6207. ee.EncodeInt(int64(v[uint8(k2)]))
  6208. }
  6209. } else {
  6210. for k2, v2 := range v {
  6211. if esep {
  6212. ee.WriteMapElemKey()
  6213. }
  6214. ee.EncodeUint(uint64(k2))
  6215. if esep {
  6216. ee.WriteMapElemValue()
  6217. }
  6218. ee.EncodeInt(int64(v2))
  6219. }
  6220. }
  6221. ee.WriteMapEnd()
  6222. }
  6223. func (e *Encoder) fastpathEncMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  6224. fastpathTV.EncMapUint8Float32V(rv2i(rv).(map[uint8]float32), e)
  6225. }
  6226. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, e *Encoder) {
  6227. if v == nil {
  6228. e.e.EncodeNil()
  6229. return
  6230. }
  6231. ee, esep := e.e, e.hh.hasElemSeparators()
  6232. ee.WriteMapStart(len(v))
  6233. if e.h.Canonical {
  6234. v2 := make([]uint64, len(v))
  6235. var i int
  6236. for k, _ := range v {
  6237. v2[i] = uint64(k)
  6238. i++
  6239. }
  6240. sort.Sort(uintSlice(v2))
  6241. for _, k2 := range v2 {
  6242. if esep {
  6243. ee.WriteMapElemKey()
  6244. }
  6245. ee.EncodeUint(uint64(uint8(k2)))
  6246. if esep {
  6247. ee.WriteMapElemValue()
  6248. }
  6249. ee.EncodeFloat32(v[uint8(k2)])
  6250. }
  6251. } else {
  6252. for k2, v2 := range v {
  6253. if esep {
  6254. ee.WriteMapElemKey()
  6255. }
  6256. ee.EncodeUint(uint64(k2))
  6257. if esep {
  6258. ee.WriteMapElemValue()
  6259. }
  6260. ee.EncodeFloat32(v2)
  6261. }
  6262. }
  6263. ee.WriteMapEnd()
  6264. }
  6265. func (e *Encoder) fastpathEncMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  6266. fastpathTV.EncMapUint8Float64V(rv2i(rv).(map[uint8]float64), e)
  6267. }
  6268. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, e *Encoder) {
  6269. if v == nil {
  6270. e.e.EncodeNil()
  6271. return
  6272. }
  6273. ee, esep := e.e, e.hh.hasElemSeparators()
  6274. ee.WriteMapStart(len(v))
  6275. if e.h.Canonical {
  6276. v2 := make([]uint64, len(v))
  6277. var i int
  6278. for k, _ := range v {
  6279. v2[i] = uint64(k)
  6280. i++
  6281. }
  6282. sort.Sort(uintSlice(v2))
  6283. for _, k2 := range v2 {
  6284. if esep {
  6285. ee.WriteMapElemKey()
  6286. }
  6287. ee.EncodeUint(uint64(uint8(k2)))
  6288. if esep {
  6289. ee.WriteMapElemValue()
  6290. }
  6291. ee.EncodeFloat64(v[uint8(k2)])
  6292. }
  6293. } else {
  6294. for k2, v2 := range v {
  6295. if esep {
  6296. ee.WriteMapElemKey()
  6297. }
  6298. ee.EncodeUint(uint64(k2))
  6299. if esep {
  6300. ee.WriteMapElemValue()
  6301. }
  6302. ee.EncodeFloat64(v2)
  6303. }
  6304. }
  6305. ee.WriteMapEnd()
  6306. }
  6307. func (e *Encoder) fastpathEncMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  6308. fastpathTV.EncMapUint8BoolV(rv2i(rv).(map[uint8]bool), e)
  6309. }
  6310. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, e *Encoder) {
  6311. if v == nil {
  6312. e.e.EncodeNil()
  6313. return
  6314. }
  6315. ee, esep := e.e, e.hh.hasElemSeparators()
  6316. ee.WriteMapStart(len(v))
  6317. if e.h.Canonical {
  6318. v2 := make([]uint64, len(v))
  6319. var i int
  6320. for k, _ := range v {
  6321. v2[i] = uint64(k)
  6322. i++
  6323. }
  6324. sort.Sort(uintSlice(v2))
  6325. for _, k2 := range v2 {
  6326. if esep {
  6327. ee.WriteMapElemKey()
  6328. }
  6329. ee.EncodeUint(uint64(uint8(k2)))
  6330. if esep {
  6331. ee.WriteMapElemValue()
  6332. }
  6333. ee.EncodeBool(v[uint8(k2)])
  6334. }
  6335. } else {
  6336. for k2, v2 := range v {
  6337. if esep {
  6338. ee.WriteMapElemKey()
  6339. }
  6340. ee.EncodeUint(uint64(k2))
  6341. if esep {
  6342. ee.WriteMapElemValue()
  6343. }
  6344. ee.EncodeBool(v2)
  6345. }
  6346. }
  6347. ee.WriteMapEnd()
  6348. }
  6349. func (e *Encoder) fastpathEncMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  6350. fastpathTV.EncMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), e)
  6351. }
  6352. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, e *Encoder) {
  6353. if v == nil {
  6354. e.e.EncodeNil()
  6355. return
  6356. }
  6357. ee, esep := e.e, e.hh.hasElemSeparators()
  6358. ee.WriteMapStart(len(v))
  6359. if e.h.Canonical {
  6360. v2 := make([]uint64, len(v))
  6361. var i int
  6362. for k, _ := range v {
  6363. v2[i] = uint64(k)
  6364. i++
  6365. }
  6366. sort.Sort(uintSlice(v2))
  6367. for _, k2 := range v2 {
  6368. if esep {
  6369. ee.WriteMapElemKey()
  6370. }
  6371. ee.EncodeUint(uint64(uint16(k2)))
  6372. if esep {
  6373. ee.WriteMapElemValue()
  6374. }
  6375. e.encode(v[uint16(k2)])
  6376. }
  6377. } else {
  6378. for k2, v2 := range v {
  6379. if esep {
  6380. ee.WriteMapElemKey()
  6381. }
  6382. ee.EncodeUint(uint64(k2))
  6383. if esep {
  6384. ee.WriteMapElemValue()
  6385. }
  6386. e.encode(v2)
  6387. }
  6388. }
  6389. ee.WriteMapEnd()
  6390. }
  6391. func (e *Encoder) fastpathEncMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  6392. fastpathTV.EncMapUint16StringV(rv2i(rv).(map[uint16]string), e)
  6393. }
  6394. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, e *Encoder) {
  6395. if v == nil {
  6396. e.e.EncodeNil()
  6397. return
  6398. }
  6399. ee, esep := e.e, e.hh.hasElemSeparators()
  6400. ee.WriteMapStart(len(v))
  6401. if e.h.Canonical {
  6402. v2 := make([]uint64, len(v))
  6403. var i int
  6404. for k, _ := range v {
  6405. v2[i] = uint64(k)
  6406. i++
  6407. }
  6408. sort.Sort(uintSlice(v2))
  6409. for _, k2 := range v2 {
  6410. if esep {
  6411. ee.WriteMapElemKey()
  6412. }
  6413. ee.EncodeUint(uint64(uint16(k2)))
  6414. if esep {
  6415. ee.WriteMapElemValue()
  6416. }
  6417. ee.EncodeString(c_UTF8, v[uint16(k2)])
  6418. }
  6419. } else {
  6420. for k2, v2 := range v {
  6421. if esep {
  6422. ee.WriteMapElemKey()
  6423. }
  6424. ee.EncodeUint(uint64(k2))
  6425. if esep {
  6426. ee.WriteMapElemValue()
  6427. }
  6428. ee.EncodeString(c_UTF8, v2)
  6429. }
  6430. }
  6431. ee.WriteMapEnd()
  6432. }
  6433. func (e *Encoder) fastpathEncMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  6434. fastpathTV.EncMapUint16UintV(rv2i(rv).(map[uint16]uint), e)
  6435. }
  6436. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, e *Encoder) {
  6437. if v == nil {
  6438. e.e.EncodeNil()
  6439. return
  6440. }
  6441. ee, esep := e.e, e.hh.hasElemSeparators()
  6442. ee.WriteMapStart(len(v))
  6443. if e.h.Canonical {
  6444. v2 := make([]uint64, len(v))
  6445. var i int
  6446. for k, _ := range v {
  6447. v2[i] = uint64(k)
  6448. i++
  6449. }
  6450. sort.Sort(uintSlice(v2))
  6451. for _, k2 := range v2 {
  6452. if esep {
  6453. ee.WriteMapElemKey()
  6454. }
  6455. ee.EncodeUint(uint64(uint16(k2)))
  6456. if esep {
  6457. ee.WriteMapElemValue()
  6458. }
  6459. ee.EncodeUint(uint64(v[uint16(k2)]))
  6460. }
  6461. } else {
  6462. for k2, v2 := range v {
  6463. if esep {
  6464. ee.WriteMapElemKey()
  6465. }
  6466. ee.EncodeUint(uint64(k2))
  6467. if esep {
  6468. ee.WriteMapElemValue()
  6469. }
  6470. ee.EncodeUint(uint64(v2))
  6471. }
  6472. }
  6473. ee.WriteMapEnd()
  6474. }
  6475. func (e *Encoder) fastpathEncMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  6476. fastpathTV.EncMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), e)
  6477. }
  6478. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, e *Encoder) {
  6479. if v == nil {
  6480. e.e.EncodeNil()
  6481. return
  6482. }
  6483. ee, esep := e.e, e.hh.hasElemSeparators()
  6484. ee.WriteMapStart(len(v))
  6485. if e.h.Canonical {
  6486. v2 := make([]uint64, len(v))
  6487. var i int
  6488. for k, _ := range v {
  6489. v2[i] = uint64(k)
  6490. i++
  6491. }
  6492. sort.Sort(uintSlice(v2))
  6493. for _, k2 := range v2 {
  6494. if esep {
  6495. ee.WriteMapElemKey()
  6496. }
  6497. ee.EncodeUint(uint64(uint16(k2)))
  6498. if esep {
  6499. ee.WriteMapElemValue()
  6500. }
  6501. ee.EncodeUint(uint64(v[uint16(k2)]))
  6502. }
  6503. } else {
  6504. for k2, v2 := range v {
  6505. if esep {
  6506. ee.WriteMapElemKey()
  6507. }
  6508. ee.EncodeUint(uint64(k2))
  6509. if esep {
  6510. ee.WriteMapElemValue()
  6511. }
  6512. ee.EncodeUint(uint64(v2))
  6513. }
  6514. }
  6515. ee.WriteMapEnd()
  6516. }
  6517. func (e *Encoder) fastpathEncMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  6518. fastpathTV.EncMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), e)
  6519. }
  6520. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, e *Encoder) {
  6521. if v == nil {
  6522. e.e.EncodeNil()
  6523. return
  6524. }
  6525. ee, esep := e.e, e.hh.hasElemSeparators()
  6526. ee.WriteMapStart(len(v))
  6527. if e.h.Canonical {
  6528. v2 := make([]uint64, len(v))
  6529. var i int
  6530. for k, _ := range v {
  6531. v2[i] = uint64(k)
  6532. i++
  6533. }
  6534. sort.Sort(uintSlice(v2))
  6535. for _, k2 := range v2 {
  6536. if esep {
  6537. ee.WriteMapElemKey()
  6538. }
  6539. ee.EncodeUint(uint64(uint16(k2)))
  6540. if esep {
  6541. ee.WriteMapElemValue()
  6542. }
  6543. ee.EncodeUint(uint64(v[uint16(k2)]))
  6544. }
  6545. } else {
  6546. for k2, v2 := range v {
  6547. if esep {
  6548. ee.WriteMapElemKey()
  6549. }
  6550. ee.EncodeUint(uint64(k2))
  6551. if esep {
  6552. ee.WriteMapElemValue()
  6553. }
  6554. ee.EncodeUint(uint64(v2))
  6555. }
  6556. }
  6557. ee.WriteMapEnd()
  6558. }
  6559. func (e *Encoder) fastpathEncMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  6560. fastpathTV.EncMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), e)
  6561. }
  6562. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, e *Encoder) {
  6563. if v == nil {
  6564. e.e.EncodeNil()
  6565. return
  6566. }
  6567. ee, esep := e.e, e.hh.hasElemSeparators()
  6568. ee.WriteMapStart(len(v))
  6569. if e.h.Canonical {
  6570. v2 := make([]uint64, len(v))
  6571. var i int
  6572. for k, _ := range v {
  6573. v2[i] = uint64(k)
  6574. i++
  6575. }
  6576. sort.Sort(uintSlice(v2))
  6577. for _, k2 := range v2 {
  6578. if esep {
  6579. ee.WriteMapElemKey()
  6580. }
  6581. ee.EncodeUint(uint64(uint16(k2)))
  6582. if esep {
  6583. ee.WriteMapElemValue()
  6584. }
  6585. ee.EncodeUint(uint64(v[uint16(k2)]))
  6586. }
  6587. } else {
  6588. for k2, v2 := range v {
  6589. if esep {
  6590. ee.WriteMapElemKey()
  6591. }
  6592. ee.EncodeUint(uint64(k2))
  6593. if esep {
  6594. ee.WriteMapElemValue()
  6595. }
  6596. ee.EncodeUint(uint64(v2))
  6597. }
  6598. }
  6599. ee.WriteMapEnd()
  6600. }
  6601. func (e *Encoder) fastpathEncMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  6602. fastpathTV.EncMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), e)
  6603. }
  6604. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, e *Encoder) {
  6605. if v == nil {
  6606. e.e.EncodeNil()
  6607. return
  6608. }
  6609. ee, esep := e.e, e.hh.hasElemSeparators()
  6610. ee.WriteMapStart(len(v))
  6611. if e.h.Canonical {
  6612. v2 := make([]uint64, len(v))
  6613. var i int
  6614. for k, _ := range v {
  6615. v2[i] = uint64(k)
  6616. i++
  6617. }
  6618. sort.Sort(uintSlice(v2))
  6619. for _, k2 := range v2 {
  6620. if esep {
  6621. ee.WriteMapElemKey()
  6622. }
  6623. ee.EncodeUint(uint64(uint16(k2)))
  6624. if esep {
  6625. ee.WriteMapElemValue()
  6626. }
  6627. ee.EncodeUint(uint64(v[uint16(k2)]))
  6628. }
  6629. } else {
  6630. for k2, v2 := range v {
  6631. if esep {
  6632. ee.WriteMapElemKey()
  6633. }
  6634. ee.EncodeUint(uint64(k2))
  6635. if esep {
  6636. ee.WriteMapElemValue()
  6637. }
  6638. ee.EncodeUint(uint64(v2))
  6639. }
  6640. }
  6641. ee.WriteMapEnd()
  6642. }
  6643. func (e *Encoder) fastpathEncMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  6644. fastpathTV.EncMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), e)
  6645. }
  6646. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, e *Encoder) {
  6647. if v == nil {
  6648. e.e.EncodeNil()
  6649. return
  6650. }
  6651. ee, esep := e.e, e.hh.hasElemSeparators()
  6652. ee.WriteMapStart(len(v))
  6653. if e.h.Canonical {
  6654. v2 := make([]uint64, len(v))
  6655. var i int
  6656. for k, _ := range v {
  6657. v2[i] = uint64(k)
  6658. i++
  6659. }
  6660. sort.Sort(uintSlice(v2))
  6661. for _, k2 := range v2 {
  6662. if esep {
  6663. ee.WriteMapElemKey()
  6664. }
  6665. ee.EncodeUint(uint64(uint16(k2)))
  6666. if esep {
  6667. ee.WriteMapElemValue()
  6668. }
  6669. e.encode(v[uint16(k2)])
  6670. }
  6671. } else {
  6672. for k2, v2 := range v {
  6673. if esep {
  6674. ee.WriteMapElemKey()
  6675. }
  6676. ee.EncodeUint(uint64(k2))
  6677. if esep {
  6678. ee.WriteMapElemValue()
  6679. }
  6680. e.encode(v2)
  6681. }
  6682. }
  6683. ee.WriteMapEnd()
  6684. }
  6685. func (e *Encoder) fastpathEncMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  6686. fastpathTV.EncMapUint16IntV(rv2i(rv).(map[uint16]int), e)
  6687. }
  6688. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, e *Encoder) {
  6689. if v == nil {
  6690. e.e.EncodeNil()
  6691. return
  6692. }
  6693. ee, esep := e.e, e.hh.hasElemSeparators()
  6694. ee.WriteMapStart(len(v))
  6695. if e.h.Canonical {
  6696. v2 := make([]uint64, len(v))
  6697. var i int
  6698. for k, _ := range v {
  6699. v2[i] = uint64(k)
  6700. i++
  6701. }
  6702. sort.Sort(uintSlice(v2))
  6703. for _, k2 := range v2 {
  6704. if esep {
  6705. ee.WriteMapElemKey()
  6706. }
  6707. ee.EncodeUint(uint64(uint16(k2)))
  6708. if esep {
  6709. ee.WriteMapElemValue()
  6710. }
  6711. ee.EncodeInt(int64(v[uint16(k2)]))
  6712. }
  6713. } else {
  6714. for k2, v2 := range v {
  6715. if esep {
  6716. ee.WriteMapElemKey()
  6717. }
  6718. ee.EncodeUint(uint64(k2))
  6719. if esep {
  6720. ee.WriteMapElemValue()
  6721. }
  6722. ee.EncodeInt(int64(v2))
  6723. }
  6724. }
  6725. ee.WriteMapEnd()
  6726. }
  6727. func (e *Encoder) fastpathEncMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  6728. fastpathTV.EncMapUint16Int8V(rv2i(rv).(map[uint16]int8), e)
  6729. }
  6730. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, e *Encoder) {
  6731. if v == nil {
  6732. e.e.EncodeNil()
  6733. return
  6734. }
  6735. ee, esep := e.e, e.hh.hasElemSeparators()
  6736. ee.WriteMapStart(len(v))
  6737. if e.h.Canonical {
  6738. v2 := make([]uint64, len(v))
  6739. var i int
  6740. for k, _ := range v {
  6741. v2[i] = uint64(k)
  6742. i++
  6743. }
  6744. sort.Sort(uintSlice(v2))
  6745. for _, k2 := range v2 {
  6746. if esep {
  6747. ee.WriteMapElemKey()
  6748. }
  6749. ee.EncodeUint(uint64(uint16(k2)))
  6750. if esep {
  6751. ee.WriteMapElemValue()
  6752. }
  6753. ee.EncodeInt(int64(v[uint16(k2)]))
  6754. }
  6755. } else {
  6756. for k2, v2 := range v {
  6757. if esep {
  6758. ee.WriteMapElemKey()
  6759. }
  6760. ee.EncodeUint(uint64(k2))
  6761. if esep {
  6762. ee.WriteMapElemValue()
  6763. }
  6764. ee.EncodeInt(int64(v2))
  6765. }
  6766. }
  6767. ee.WriteMapEnd()
  6768. }
  6769. func (e *Encoder) fastpathEncMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  6770. fastpathTV.EncMapUint16Int16V(rv2i(rv).(map[uint16]int16), e)
  6771. }
  6772. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, e *Encoder) {
  6773. if v == nil {
  6774. e.e.EncodeNil()
  6775. return
  6776. }
  6777. ee, esep := e.e, e.hh.hasElemSeparators()
  6778. ee.WriteMapStart(len(v))
  6779. if e.h.Canonical {
  6780. v2 := make([]uint64, len(v))
  6781. var i int
  6782. for k, _ := range v {
  6783. v2[i] = uint64(k)
  6784. i++
  6785. }
  6786. sort.Sort(uintSlice(v2))
  6787. for _, k2 := range v2 {
  6788. if esep {
  6789. ee.WriteMapElemKey()
  6790. }
  6791. ee.EncodeUint(uint64(uint16(k2)))
  6792. if esep {
  6793. ee.WriteMapElemValue()
  6794. }
  6795. ee.EncodeInt(int64(v[uint16(k2)]))
  6796. }
  6797. } else {
  6798. for k2, v2 := range v {
  6799. if esep {
  6800. ee.WriteMapElemKey()
  6801. }
  6802. ee.EncodeUint(uint64(k2))
  6803. if esep {
  6804. ee.WriteMapElemValue()
  6805. }
  6806. ee.EncodeInt(int64(v2))
  6807. }
  6808. }
  6809. ee.WriteMapEnd()
  6810. }
  6811. func (e *Encoder) fastpathEncMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  6812. fastpathTV.EncMapUint16Int32V(rv2i(rv).(map[uint16]int32), e)
  6813. }
  6814. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, e *Encoder) {
  6815. if v == nil {
  6816. e.e.EncodeNil()
  6817. return
  6818. }
  6819. ee, esep := e.e, e.hh.hasElemSeparators()
  6820. ee.WriteMapStart(len(v))
  6821. if e.h.Canonical {
  6822. v2 := make([]uint64, len(v))
  6823. var i int
  6824. for k, _ := range v {
  6825. v2[i] = uint64(k)
  6826. i++
  6827. }
  6828. sort.Sort(uintSlice(v2))
  6829. for _, k2 := range v2 {
  6830. if esep {
  6831. ee.WriteMapElemKey()
  6832. }
  6833. ee.EncodeUint(uint64(uint16(k2)))
  6834. if esep {
  6835. ee.WriteMapElemValue()
  6836. }
  6837. ee.EncodeInt(int64(v[uint16(k2)]))
  6838. }
  6839. } else {
  6840. for k2, v2 := range v {
  6841. if esep {
  6842. ee.WriteMapElemKey()
  6843. }
  6844. ee.EncodeUint(uint64(k2))
  6845. if esep {
  6846. ee.WriteMapElemValue()
  6847. }
  6848. ee.EncodeInt(int64(v2))
  6849. }
  6850. }
  6851. ee.WriteMapEnd()
  6852. }
  6853. func (e *Encoder) fastpathEncMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  6854. fastpathTV.EncMapUint16Int64V(rv2i(rv).(map[uint16]int64), e)
  6855. }
  6856. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, e *Encoder) {
  6857. if v == nil {
  6858. e.e.EncodeNil()
  6859. return
  6860. }
  6861. ee, esep := e.e, e.hh.hasElemSeparators()
  6862. ee.WriteMapStart(len(v))
  6863. if e.h.Canonical {
  6864. v2 := make([]uint64, len(v))
  6865. var i int
  6866. for k, _ := range v {
  6867. v2[i] = uint64(k)
  6868. i++
  6869. }
  6870. sort.Sort(uintSlice(v2))
  6871. for _, k2 := range v2 {
  6872. if esep {
  6873. ee.WriteMapElemKey()
  6874. }
  6875. ee.EncodeUint(uint64(uint16(k2)))
  6876. if esep {
  6877. ee.WriteMapElemValue()
  6878. }
  6879. ee.EncodeInt(int64(v[uint16(k2)]))
  6880. }
  6881. } else {
  6882. for k2, v2 := range v {
  6883. if esep {
  6884. ee.WriteMapElemKey()
  6885. }
  6886. ee.EncodeUint(uint64(k2))
  6887. if esep {
  6888. ee.WriteMapElemValue()
  6889. }
  6890. ee.EncodeInt(int64(v2))
  6891. }
  6892. }
  6893. ee.WriteMapEnd()
  6894. }
  6895. func (e *Encoder) fastpathEncMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  6896. fastpathTV.EncMapUint16Float32V(rv2i(rv).(map[uint16]float32), e)
  6897. }
  6898. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, e *Encoder) {
  6899. if v == nil {
  6900. e.e.EncodeNil()
  6901. return
  6902. }
  6903. ee, esep := e.e, e.hh.hasElemSeparators()
  6904. ee.WriteMapStart(len(v))
  6905. if e.h.Canonical {
  6906. v2 := make([]uint64, len(v))
  6907. var i int
  6908. for k, _ := range v {
  6909. v2[i] = uint64(k)
  6910. i++
  6911. }
  6912. sort.Sort(uintSlice(v2))
  6913. for _, k2 := range v2 {
  6914. if esep {
  6915. ee.WriteMapElemKey()
  6916. }
  6917. ee.EncodeUint(uint64(uint16(k2)))
  6918. if esep {
  6919. ee.WriteMapElemValue()
  6920. }
  6921. ee.EncodeFloat32(v[uint16(k2)])
  6922. }
  6923. } else {
  6924. for k2, v2 := range v {
  6925. if esep {
  6926. ee.WriteMapElemKey()
  6927. }
  6928. ee.EncodeUint(uint64(k2))
  6929. if esep {
  6930. ee.WriteMapElemValue()
  6931. }
  6932. ee.EncodeFloat32(v2)
  6933. }
  6934. }
  6935. ee.WriteMapEnd()
  6936. }
  6937. func (e *Encoder) fastpathEncMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  6938. fastpathTV.EncMapUint16Float64V(rv2i(rv).(map[uint16]float64), e)
  6939. }
  6940. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, e *Encoder) {
  6941. if v == nil {
  6942. e.e.EncodeNil()
  6943. return
  6944. }
  6945. ee, esep := e.e, e.hh.hasElemSeparators()
  6946. ee.WriteMapStart(len(v))
  6947. if e.h.Canonical {
  6948. v2 := make([]uint64, len(v))
  6949. var i int
  6950. for k, _ := range v {
  6951. v2[i] = uint64(k)
  6952. i++
  6953. }
  6954. sort.Sort(uintSlice(v2))
  6955. for _, k2 := range v2 {
  6956. if esep {
  6957. ee.WriteMapElemKey()
  6958. }
  6959. ee.EncodeUint(uint64(uint16(k2)))
  6960. if esep {
  6961. ee.WriteMapElemValue()
  6962. }
  6963. ee.EncodeFloat64(v[uint16(k2)])
  6964. }
  6965. } else {
  6966. for k2, v2 := range v {
  6967. if esep {
  6968. ee.WriteMapElemKey()
  6969. }
  6970. ee.EncodeUint(uint64(k2))
  6971. if esep {
  6972. ee.WriteMapElemValue()
  6973. }
  6974. ee.EncodeFloat64(v2)
  6975. }
  6976. }
  6977. ee.WriteMapEnd()
  6978. }
  6979. func (e *Encoder) fastpathEncMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  6980. fastpathTV.EncMapUint16BoolV(rv2i(rv).(map[uint16]bool), e)
  6981. }
  6982. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, e *Encoder) {
  6983. if v == nil {
  6984. e.e.EncodeNil()
  6985. return
  6986. }
  6987. ee, esep := e.e, e.hh.hasElemSeparators()
  6988. ee.WriteMapStart(len(v))
  6989. if e.h.Canonical {
  6990. v2 := make([]uint64, len(v))
  6991. var i int
  6992. for k, _ := range v {
  6993. v2[i] = uint64(k)
  6994. i++
  6995. }
  6996. sort.Sort(uintSlice(v2))
  6997. for _, k2 := range v2 {
  6998. if esep {
  6999. ee.WriteMapElemKey()
  7000. }
  7001. ee.EncodeUint(uint64(uint16(k2)))
  7002. if esep {
  7003. ee.WriteMapElemValue()
  7004. }
  7005. ee.EncodeBool(v[uint16(k2)])
  7006. }
  7007. } else {
  7008. for k2, v2 := range v {
  7009. if esep {
  7010. ee.WriteMapElemKey()
  7011. }
  7012. ee.EncodeUint(uint64(k2))
  7013. if esep {
  7014. ee.WriteMapElemValue()
  7015. }
  7016. ee.EncodeBool(v2)
  7017. }
  7018. }
  7019. ee.WriteMapEnd()
  7020. }
  7021. func (e *Encoder) fastpathEncMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  7022. fastpathTV.EncMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), e)
  7023. }
  7024. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, e *Encoder) {
  7025. if v == nil {
  7026. e.e.EncodeNil()
  7027. return
  7028. }
  7029. ee, esep := e.e, e.hh.hasElemSeparators()
  7030. ee.WriteMapStart(len(v))
  7031. if e.h.Canonical {
  7032. v2 := make([]uint64, len(v))
  7033. var i int
  7034. for k, _ := range v {
  7035. v2[i] = uint64(k)
  7036. i++
  7037. }
  7038. sort.Sort(uintSlice(v2))
  7039. for _, k2 := range v2 {
  7040. if esep {
  7041. ee.WriteMapElemKey()
  7042. }
  7043. ee.EncodeUint(uint64(uint32(k2)))
  7044. if esep {
  7045. ee.WriteMapElemValue()
  7046. }
  7047. e.encode(v[uint32(k2)])
  7048. }
  7049. } else {
  7050. for k2, v2 := range v {
  7051. if esep {
  7052. ee.WriteMapElemKey()
  7053. }
  7054. ee.EncodeUint(uint64(k2))
  7055. if esep {
  7056. ee.WriteMapElemValue()
  7057. }
  7058. e.encode(v2)
  7059. }
  7060. }
  7061. ee.WriteMapEnd()
  7062. }
  7063. func (e *Encoder) fastpathEncMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  7064. fastpathTV.EncMapUint32StringV(rv2i(rv).(map[uint32]string), e)
  7065. }
  7066. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, e *Encoder) {
  7067. if v == nil {
  7068. e.e.EncodeNil()
  7069. return
  7070. }
  7071. ee, esep := e.e, e.hh.hasElemSeparators()
  7072. ee.WriteMapStart(len(v))
  7073. if e.h.Canonical {
  7074. v2 := make([]uint64, len(v))
  7075. var i int
  7076. for k, _ := range v {
  7077. v2[i] = uint64(k)
  7078. i++
  7079. }
  7080. sort.Sort(uintSlice(v2))
  7081. for _, k2 := range v2 {
  7082. if esep {
  7083. ee.WriteMapElemKey()
  7084. }
  7085. ee.EncodeUint(uint64(uint32(k2)))
  7086. if esep {
  7087. ee.WriteMapElemValue()
  7088. }
  7089. ee.EncodeString(c_UTF8, v[uint32(k2)])
  7090. }
  7091. } else {
  7092. for k2, v2 := range v {
  7093. if esep {
  7094. ee.WriteMapElemKey()
  7095. }
  7096. ee.EncodeUint(uint64(k2))
  7097. if esep {
  7098. ee.WriteMapElemValue()
  7099. }
  7100. ee.EncodeString(c_UTF8, v2)
  7101. }
  7102. }
  7103. ee.WriteMapEnd()
  7104. }
  7105. func (e *Encoder) fastpathEncMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  7106. fastpathTV.EncMapUint32UintV(rv2i(rv).(map[uint32]uint), e)
  7107. }
  7108. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, e *Encoder) {
  7109. if v == nil {
  7110. e.e.EncodeNil()
  7111. return
  7112. }
  7113. ee, esep := e.e, e.hh.hasElemSeparators()
  7114. ee.WriteMapStart(len(v))
  7115. if e.h.Canonical {
  7116. v2 := make([]uint64, len(v))
  7117. var i int
  7118. for k, _ := range v {
  7119. v2[i] = uint64(k)
  7120. i++
  7121. }
  7122. sort.Sort(uintSlice(v2))
  7123. for _, k2 := range v2 {
  7124. if esep {
  7125. ee.WriteMapElemKey()
  7126. }
  7127. ee.EncodeUint(uint64(uint32(k2)))
  7128. if esep {
  7129. ee.WriteMapElemValue()
  7130. }
  7131. ee.EncodeUint(uint64(v[uint32(k2)]))
  7132. }
  7133. } else {
  7134. for k2, v2 := range v {
  7135. if esep {
  7136. ee.WriteMapElemKey()
  7137. }
  7138. ee.EncodeUint(uint64(k2))
  7139. if esep {
  7140. ee.WriteMapElemValue()
  7141. }
  7142. ee.EncodeUint(uint64(v2))
  7143. }
  7144. }
  7145. ee.WriteMapEnd()
  7146. }
  7147. func (e *Encoder) fastpathEncMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  7148. fastpathTV.EncMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), e)
  7149. }
  7150. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, e *Encoder) {
  7151. if v == nil {
  7152. e.e.EncodeNil()
  7153. return
  7154. }
  7155. ee, esep := e.e, e.hh.hasElemSeparators()
  7156. ee.WriteMapStart(len(v))
  7157. if e.h.Canonical {
  7158. v2 := make([]uint64, len(v))
  7159. var i int
  7160. for k, _ := range v {
  7161. v2[i] = uint64(k)
  7162. i++
  7163. }
  7164. sort.Sort(uintSlice(v2))
  7165. for _, k2 := range v2 {
  7166. if esep {
  7167. ee.WriteMapElemKey()
  7168. }
  7169. ee.EncodeUint(uint64(uint32(k2)))
  7170. if esep {
  7171. ee.WriteMapElemValue()
  7172. }
  7173. ee.EncodeUint(uint64(v[uint32(k2)]))
  7174. }
  7175. } else {
  7176. for k2, v2 := range v {
  7177. if esep {
  7178. ee.WriteMapElemKey()
  7179. }
  7180. ee.EncodeUint(uint64(k2))
  7181. if esep {
  7182. ee.WriteMapElemValue()
  7183. }
  7184. ee.EncodeUint(uint64(v2))
  7185. }
  7186. }
  7187. ee.WriteMapEnd()
  7188. }
  7189. func (e *Encoder) fastpathEncMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  7190. fastpathTV.EncMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), e)
  7191. }
  7192. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, e *Encoder) {
  7193. if v == nil {
  7194. e.e.EncodeNil()
  7195. return
  7196. }
  7197. ee, esep := e.e, e.hh.hasElemSeparators()
  7198. ee.WriteMapStart(len(v))
  7199. if e.h.Canonical {
  7200. v2 := make([]uint64, len(v))
  7201. var i int
  7202. for k, _ := range v {
  7203. v2[i] = uint64(k)
  7204. i++
  7205. }
  7206. sort.Sort(uintSlice(v2))
  7207. for _, k2 := range v2 {
  7208. if esep {
  7209. ee.WriteMapElemKey()
  7210. }
  7211. ee.EncodeUint(uint64(uint32(k2)))
  7212. if esep {
  7213. ee.WriteMapElemValue()
  7214. }
  7215. ee.EncodeUint(uint64(v[uint32(k2)]))
  7216. }
  7217. } else {
  7218. for k2, v2 := range v {
  7219. if esep {
  7220. ee.WriteMapElemKey()
  7221. }
  7222. ee.EncodeUint(uint64(k2))
  7223. if esep {
  7224. ee.WriteMapElemValue()
  7225. }
  7226. ee.EncodeUint(uint64(v2))
  7227. }
  7228. }
  7229. ee.WriteMapEnd()
  7230. }
  7231. func (e *Encoder) fastpathEncMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  7232. fastpathTV.EncMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), e)
  7233. }
  7234. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, e *Encoder) {
  7235. if v == nil {
  7236. e.e.EncodeNil()
  7237. return
  7238. }
  7239. ee, esep := e.e, e.hh.hasElemSeparators()
  7240. ee.WriteMapStart(len(v))
  7241. if e.h.Canonical {
  7242. v2 := make([]uint64, len(v))
  7243. var i int
  7244. for k, _ := range v {
  7245. v2[i] = uint64(k)
  7246. i++
  7247. }
  7248. sort.Sort(uintSlice(v2))
  7249. for _, k2 := range v2 {
  7250. if esep {
  7251. ee.WriteMapElemKey()
  7252. }
  7253. ee.EncodeUint(uint64(uint32(k2)))
  7254. if esep {
  7255. ee.WriteMapElemValue()
  7256. }
  7257. ee.EncodeUint(uint64(v[uint32(k2)]))
  7258. }
  7259. } else {
  7260. for k2, v2 := range v {
  7261. if esep {
  7262. ee.WriteMapElemKey()
  7263. }
  7264. ee.EncodeUint(uint64(k2))
  7265. if esep {
  7266. ee.WriteMapElemValue()
  7267. }
  7268. ee.EncodeUint(uint64(v2))
  7269. }
  7270. }
  7271. ee.WriteMapEnd()
  7272. }
  7273. func (e *Encoder) fastpathEncMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  7274. fastpathTV.EncMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), e)
  7275. }
  7276. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, e *Encoder) {
  7277. if v == nil {
  7278. e.e.EncodeNil()
  7279. return
  7280. }
  7281. ee, esep := e.e, e.hh.hasElemSeparators()
  7282. ee.WriteMapStart(len(v))
  7283. if e.h.Canonical {
  7284. v2 := make([]uint64, len(v))
  7285. var i int
  7286. for k, _ := range v {
  7287. v2[i] = uint64(k)
  7288. i++
  7289. }
  7290. sort.Sort(uintSlice(v2))
  7291. for _, k2 := range v2 {
  7292. if esep {
  7293. ee.WriteMapElemKey()
  7294. }
  7295. ee.EncodeUint(uint64(uint32(k2)))
  7296. if esep {
  7297. ee.WriteMapElemValue()
  7298. }
  7299. ee.EncodeUint(uint64(v[uint32(k2)]))
  7300. }
  7301. } else {
  7302. for k2, v2 := range v {
  7303. if esep {
  7304. ee.WriteMapElemKey()
  7305. }
  7306. ee.EncodeUint(uint64(k2))
  7307. if esep {
  7308. ee.WriteMapElemValue()
  7309. }
  7310. ee.EncodeUint(uint64(v2))
  7311. }
  7312. }
  7313. ee.WriteMapEnd()
  7314. }
  7315. func (e *Encoder) fastpathEncMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  7316. fastpathTV.EncMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), e)
  7317. }
  7318. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, e *Encoder) {
  7319. if v == nil {
  7320. e.e.EncodeNil()
  7321. return
  7322. }
  7323. ee, esep := e.e, e.hh.hasElemSeparators()
  7324. ee.WriteMapStart(len(v))
  7325. if e.h.Canonical {
  7326. v2 := make([]uint64, len(v))
  7327. var i int
  7328. for k, _ := range v {
  7329. v2[i] = uint64(k)
  7330. i++
  7331. }
  7332. sort.Sort(uintSlice(v2))
  7333. for _, k2 := range v2 {
  7334. if esep {
  7335. ee.WriteMapElemKey()
  7336. }
  7337. ee.EncodeUint(uint64(uint32(k2)))
  7338. if esep {
  7339. ee.WriteMapElemValue()
  7340. }
  7341. e.encode(v[uint32(k2)])
  7342. }
  7343. } else {
  7344. for k2, v2 := range v {
  7345. if esep {
  7346. ee.WriteMapElemKey()
  7347. }
  7348. ee.EncodeUint(uint64(k2))
  7349. if esep {
  7350. ee.WriteMapElemValue()
  7351. }
  7352. e.encode(v2)
  7353. }
  7354. }
  7355. ee.WriteMapEnd()
  7356. }
  7357. func (e *Encoder) fastpathEncMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  7358. fastpathTV.EncMapUint32IntV(rv2i(rv).(map[uint32]int), e)
  7359. }
  7360. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, e *Encoder) {
  7361. if v == nil {
  7362. e.e.EncodeNil()
  7363. return
  7364. }
  7365. ee, esep := e.e, e.hh.hasElemSeparators()
  7366. ee.WriteMapStart(len(v))
  7367. if e.h.Canonical {
  7368. v2 := make([]uint64, len(v))
  7369. var i int
  7370. for k, _ := range v {
  7371. v2[i] = uint64(k)
  7372. i++
  7373. }
  7374. sort.Sort(uintSlice(v2))
  7375. for _, k2 := range v2 {
  7376. if esep {
  7377. ee.WriteMapElemKey()
  7378. }
  7379. ee.EncodeUint(uint64(uint32(k2)))
  7380. if esep {
  7381. ee.WriteMapElemValue()
  7382. }
  7383. ee.EncodeInt(int64(v[uint32(k2)]))
  7384. }
  7385. } else {
  7386. for k2, v2 := range v {
  7387. if esep {
  7388. ee.WriteMapElemKey()
  7389. }
  7390. ee.EncodeUint(uint64(k2))
  7391. if esep {
  7392. ee.WriteMapElemValue()
  7393. }
  7394. ee.EncodeInt(int64(v2))
  7395. }
  7396. }
  7397. ee.WriteMapEnd()
  7398. }
  7399. func (e *Encoder) fastpathEncMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  7400. fastpathTV.EncMapUint32Int8V(rv2i(rv).(map[uint32]int8), e)
  7401. }
  7402. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, e *Encoder) {
  7403. if v == nil {
  7404. e.e.EncodeNil()
  7405. return
  7406. }
  7407. ee, esep := e.e, e.hh.hasElemSeparators()
  7408. ee.WriteMapStart(len(v))
  7409. if e.h.Canonical {
  7410. v2 := make([]uint64, len(v))
  7411. var i int
  7412. for k, _ := range v {
  7413. v2[i] = uint64(k)
  7414. i++
  7415. }
  7416. sort.Sort(uintSlice(v2))
  7417. for _, k2 := range v2 {
  7418. if esep {
  7419. ee.WriteMapElemKey()
  7420. }
  7421. ee.EncodeUint(uint64(uint32(k2)))
  7422. if esep {
  7423. ee.WriteMapElemValue()
  7424. }
  7425. ee.EncodeInt(int64(v[uint32(k2)]))
  7426. }
  7427. } else {
  7428. for k2, v2 := range v {
  7429. if esep {
  7430. ee.WriteMapElemKey()
  7431. }
  7432. ee.EncodeUint(uint64(k2))
  7433. if esep {
  7434. ee.WriteMapElemValue()
  7435. }
  7436. ee.EncodeInt(int64(v2))
  7437. }
  7438. }
  7439. ee.WriteMapEnd()
  7440. }
  7441. func (e *Encoder) fastpathEncMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  7442. fastpathTV.EncMapUint32Int16V(rv2i(rv).(map[uint32]int16), e)
  7443. }
  7444. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, e *Encoder) {
  7445. if v == nil {
  7446. e.e.EncodeNil()
  7447. return
  7448. }
  7449. ee, esep := e.e, e.hh.hasElemSeparators()
  7450. ee.WriteMapStart(len(v))
  7451. if e.h.Canonical {
  7452. v2 := make([]uint64, len(v))
  7453. var i int
  7454. for k, _ := range v {
  7455. v2[i] = uint64(k)
  7456. i++
  7457. }
  7458. sort.Sort(uintSlice(v2))
  7459. for _, k2 := range v2 {
  7460. if esep {
  7461. ee.WriteMapElemKey()
  7462. }
  7463. ee.EncodeUint(uint64(uint32(k2)))
  7464. if esep {
  7465. ee.WriteMapElemValue()
  7466. }
  7467. ee.EncodeInt(int64(v[uint32(k2)]))
  7468. }
  7469. } else {
  7470. for k2, v2 := range v {
  7471. if esep {
  7472. ee.WriteMapElemKey()
  7473. }
  7474. ee.EncodeUint(uint64(k2))
  7475. if esep {
  7476. ee.WriteMapElemValue()
  7477. }
  7478. ee.EncodeInt(int64(v2))
  7479. }
  7480. }
  7481. ee.WriteMapEnd()
  7482. }
  7483. func (e *Encoder) fastpathEncMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  7484. fastpathTV.EncMapUint32Int32V(rv2i(rv).(map[uint32]int32), e)
  7485. }
  7486. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, e *Encoder) {
  7487. if v == nil {
  7488. e.e.EncodeNil()
  7489. return
  7490. }
  7491. ee, esep := e.e, e.hh.hasElemSeparators()
  7492. ee.WriteMapStart(len(v))
  7493. if e.h.Canonical {
  7494. v2 := make([]uint64, len(v))
  7495. var i int
  7496. for k, _ := range v {
  7497. v2[i] = uint64(k)
  7498. i++
  7499. }
  7500. sort.Sort(uintSlice(v2))
  7501. for _, k2 := range v2 {
  7502. if esep {
  7503. ee.WriteMapElemKey()
  7504. }
  7505. ee.EncodeUint(uint64(uint32(k2)))
  7506. if esep {
  7507. ee.WriteMapElemValue()
  7508. }
  7509. ee.EncodeInt(int64(v[uint32(k2)]))
  7510. }
  7511. } else {
  7512. for k2, v2 := range v {
  7513. if esep {
  7514. ee.WriteMapElemKey()
  7515. }
  7516. ee.EncodeUint(uint64(k2))
  7517. if esep {
  7518. ee.WriteMapElemValue()
  7519. }
  7520. ee.EncodeInt(int64(v2))
  7521. }
  7522. }
  7523. ee.WriteMapEnd()
  7524. }
  7525. func (e *Encoder) fastpathEncMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  7526. fastpathTV.EncMapUint32Int64V(rv2i(rv).(map[uint32]int64), e)
  7527. }
  7528. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, e *Encoder) {
  7529. if v == nil {
  7530. e.e.EncodeNil()
  7531. return
  7532. }
  7533. ee, esep := e.e, e.hh.hasElemSeparators()
  7534. ee.WriteMapStart(len(v))
  7535. if e.h.Canonical {
  7536. v2 := make([]uint64, len(v))
  7537. var i int
  7538. for k, _ := range v {
  7539. v2[i] = uint64(k)
  7540. i++
  7541. }
  7542. sort.Sort(uintSlice(v2))
  7543. for _, k2 := range v2 {
  7544. if esep {
  7545. ee.WriteMapElemKey()
  7546. }
  7547. ee.EncodeUint(uint64(uint32(k2)))
  7548. if esep {
  7549. ee.WriteMapElemValue()
  7550. }
  7551. ee.EncodeInt(int64(v[uint32(k2)]))
  7552. }
  7553. } else {
  7554. for k2, v2 := range v {
  7555. if esep {
  7556. ee.WriteMapElemKey()
  7557. }
  7558. ee.EncodeUint(uint64(k2))
  7559. if esep {
  7560. ee.WriteMapElemValue()
  7561. }
  7562. ee.EncodeInt(int64(v2))
  7563. }
  7564. }
  7565. ee.WriteMapEnd()
  7566. }
  7567. func (e *Encoder) fastpathEncMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  7568. fastpathTV.EncMapUint32Float32V(rv2i(rv).(map[uint32]float32), e)
  7569. }
  7570. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, e *Encoder) {
  7571. if v == nil {
  7572. e.e.EncodeNil()
  7573. return
  7574. }
  7575. ee, esep := e.e, e.hh.hasElemSeparators()
  7576. ee.WriteMapStart(len(v))
  7577. if e.h.Canonical {
  7578. v2 := make([]uint64, len(v))
  7579. var i int
  7580. for k, _ := range v {
  7581. v2[i] = uint64(k)
  7582. i++
  7583. }
  7584. sort.Sort(uintSlice(v2))
  7585. for _, k2 := range v2 {
  7586. if esep {
  7587. ee.WriteMapElemKey()
  7588. }
  7589. ee.EncodeUint(uint64(uint32(k2)))
  7590. if esep {
  7591. ee.WriteMapElemValue()
  7592. }
  7593. ee.EncodeFloat32(v[uint32(k2)])
  7594. }
  7595. } else {
  7596. for k2, v2 := range v {
  7597. if esep {
  7598. ee.WriteMapElemKey()
  7599. }
  7600. ee.EncodeUint(uint64(k2))
  7601. if esep {
  7602. ee.WriteMapElemValue()
  7603. }
  7604. ee.EncodeFloat32(v2)
  7605. }
  7606. }
  7607. ee.WriteMapEnd()
  7608. }
  7609. func (e *Encoder) fastpathEncMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  7610. fastpathTV.EncMapUint32Float64V(rv2i(rv).(map[uint32]float64), e)
  7611. }
  7612. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, e *Encoder) {
  7613. if v == nil {
  7614. e.e.EncodeNil()
  7615. return
  7616. }
  7617. ee, esep := e.e, e.hh.hasElemSeparators()
  7618. ee.WriteMapStart(len(v))
  7619. if e.h.Canonical {
  7620. v2 := make([]uint64, len(v))
  7621. var i int
  7622. for k, _ := range v {
  7623. v2[i] = uint64(k)
  7624. i++
  7625. }
  7626. sort.Sort(uintSlice(v2))
  7627. for _, k2 := range v2 {
  7628. if esep {
  7629. ee.WriteMapElemKey()
  7630. }
  7631. ee.EncodeUint(uint64(uint32(k2)))
  7632. if esep {
  7633. ee.WriteMapElemValue()
  7634. }
  7635. ee.EncodeFloat64(v[uint32(k2)])
  7636. }
  7637. } else {
  7638. for k2, v2 := range v {
  7639. if esep {
  7640. ee.WriteMapElemKey()
  7641. }
  7642. ee.EncodeUint(uint64(k2))
  7643. if esep {
  7644. ee.WriteMapElemValue()
  7645. }
  7646. ee.EncodeFloat64(v2)
  7647. }
  7648. }
  7649. ee.WriteMapEnd()
  7650. }
  7651. func (e *Encoder) fastpathEncMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  7652. fastpathTV.EncMapUint32BoolV(rv2i(rv).(map[uint32]bool), e)
  7653. }
  7654. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, e *Encoder) {
  7655. if v == nil {
  7656. e.e.EncodeNil()
  7657. return
  7658. }
  7659. ee, esep := e.e, e.hh.hasElemSeparators()
  7660. ee.WriteMapStart(len(v))
  7661. if e.h.Canonical {
  7662. v2 := make([]uint64, len(v))
  7663. var i int
  7664. for k, _ := range v {
  7665. v2[i] = uint64(k)
  7666. i++
  7667. }
  7668. sort.Sort(uintSlice(v2))
  7669. for _, k2 := range v2 {
  7670. if esep {
  7671. ee.WriteMapElemKey()
  7672. }
  7673. ee.EncodeUint(uint64(uint32(k2)))
  7674. if esep {
  7675. ee.WriteMapElemValue()
  7676. }
  7677. ee.EncodeBool(v[uint32(k2)])
  7678. }
  7679. } else {
  7680. for k2, v2 := range v {
  7681. if esep {
  7682. ee.WriteMapElemKey()
  7683. }
  7684. ee.EncodeUint(uint64(k2))
  7685. if esep {
  7686. ee.WriteMapElemValue()
  7687. }
  7688. ee.EncodeBool(v2)
  7689. }
  7690. }
  7691. ee.WriteMapEnd()
  7692. }
  7693. func (e *Encoder) fastpathEncMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  7694. fastpathTV.EncMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), e)
  7695. }
  7696. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, e *Encoder) {
  7697. if v == nil {
  7698. e.e.EncodeNil()
  7699. return
  7700. }
  7701. ee, esep := e.e, e.hh.hasElemSeparators()
  7702. ee.WriteMapStart(len(v))
  7703. if e.h.Canonical {
  7704. v2 := make([]uint64, len(v))
  7705. var i int
  7706. for k, _ := range v {
  7707. v2[i] = uint64(k)
  7708. i++
  7709. }
  7710. sort.Sort(uintSlice(v2))
  7711. for _, k2 := range v2 {
  7712. if esep {
  7713. ee.WriteMapElemKey()
  7714. }
  7715. ee.EncodeUint(uint64(uint64(k2)))
  7716. if esep {
  7717. ee.WriteMapElemValue()
  7718. }
  7719. e.encode(v[uint64(k2)])
  7720. }
  7721. } else {
  7722. for k2, v2 := range v {
  7723. if esep {
  7724. ee.WriteMapElemKey()
  7725. }
  7726. ee.EncodeUint(uint64(k2))
  7727. if esep {
  7728. ee.WriteMapElemValue()
  7729. }
  7730. e.encode(v2)
  7731. }
  7732. }
  7733. ee.WriteMapEnd()
  7734. }
  7735. func (e *Encoder) fastpathEncMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  7736. fastpathTV.EncMapUint64StringV(rv2i(rv).(map[uint64]string), e)
  7737. }
  7738. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, e *Encoder) {
  7739. if v == nil {
  7740. e.e.EncodeNil()
  7741. return
  7742. }
  7743. ee, esep := e.e, e.hh.hasElemSeparators()
  7744. ee.WriteMapStart(len(v))
  7745. if e.h.Canonical {
  7746. v2 := make([]uint64, len(v))
  7747. var i int
  7748. for k, _ := range v {
  7749. v2[i] = uint64(k)
  7750. i++
  7751. }
  7752. sort.Sort(uintSlice(v2))
  7753. for _, k2 := range v2 {
  7754. if esep {
  7755. ee.WriteMapElemKey()
  7756. }
  7757. ee.EncodeUint(uint64(uint64(k2)))
  7758. if esep {
  7759. ee.WriteMapElemValue()
  7760. }
  7761. ee.EncodeString(c_UTF8, v[uint64(k2)])
  7762. }
  7763. } else {
  7764. for k2, v2 := range v {
  7765. if esep {
  7766. ee.WriteMapElemKey()
  7767. }
  7768. ee.EncodeUint(uint64(k2))
  7769. if esep {
  7770. ee.WriteMapElemValue()
  7771. }
  7772. ee.EncodeString(c_UTF8, v2)
  7773. }
  7774. }
  7775. ee.WriteMapEnd()
  7776. }
  7777. func (e *Encoder) fastpathEncMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  7778. fastpathTV.EncMapUint64UintV(rv2i(rv).(map[uint64]uint), e)
  7779. }
  7780. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, e *Encoder) {
  7781. if v == nil {
  7782. e.e.EncodeNil()
  7783. return
  7784. }
  7785. ee, esep := e.e, e.hh.hasElemSeparators()
  7786. ee.WriteMapStart(len(v))
  7787. if e.h.Canonical {
  7788. v2 := make([]uint64, len(v))
  7789. var i int
  7790. for k, _ := range v {
  7791. v2[i] = uint64(k)
  7792. i++
  7793. }
  7794. sort.Sort(uintSlice(v2))
  7795. for _, k2 := range v2 {
  7796. if esep {
  7797. ee.WriteMapElemKey()
  7798. }
  7799. ee.EncodeUint(uint64(uint64(k2)))
  7800. if esep {
  7801. ee.WriteMapElemValue()
  7802. }
  7803. ee.EncodeUint(uint64(v[uint64(k2)]))
  7804. }
  7805. } else {
  7806. for k2, v2 := range v {
  7807. if esep {
  7808. ee.WriteMapElemKey()
  7809. }
  7810. ee.EncodeUint(uint64(k2))
  7811. if esep {
  7812. ee.WriteMapElemValue()
  7813. }
  7814. ee.EncodeUint(uint64(v2))
  7815. }
  7816. }
  7817. ee.WriteMapEnd()
  7818. }
  7819. func (e *Encoder) fastpathEncMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  7820. fastpathTV.EncMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), e)
  7821. }
  7822. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, e *Encoder) {
  7823. if v == nil {
  7824. e.e.EncodeNil()
  7825. return
  7826. }
  7827. ee, esep := e.e, e.hh.hasElemSeparators()
  7828. ee.WriteMapStart(len(v))
  7829. if e.h.Canonical {
  7830. v2 := make([]uint64, len(v))
  7831. var i int
  7832. for k, _ := range v {
  7833. v2[i] = uint64(k)
  7834. i++
  7835. }
  7836. sort.Sort(uintSlice(v2))
  7837. for _, k2 := range v2 {
  7838. if esep {
  7839. ee.WriteMapElemKey()
  7840. }
  7841. ee.EncodeUint(uint64(uint64(k2)))
  7842. if esep {
  7843. ee.WriteMapElemValue()
  7844. }
  7845. ee.EncodeUint(uint64(v[uint64(k2)]))
  7846. }
  7847. } else {
  7848. for k2, v2 := range v {
  7849. if esep {
  7850. ee.WriteMapElemKey()
  7851. }
  7852. ee.EncodeUint(uint64(k2))
  7853. if esep {
  7854. ee.WriteMapElemValue()
  7855. }
  7856. ee.EncodeUint(uint64(v2))
  7857. }
  7858. }
  7859. ee.WriteMapEnd()
  7860. }
  7861. func (e *Encoder) fastpathEncMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  7862. fastpathTV.EncMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), e)
  7863. }
  7864. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, e *Encoder) {
  7865. if v == nil {
  7866. e.e.EncodeNil()
  7867. return
  7868. }
  7869. ee, esep := e.e, e.hh.hasElemSeparators()
  7870. ee.WriteMapStart(len(v))
  7871. if e.h.Canonical {
  7872. v2 := make([]uint64, len(v))
  7873. var i int
  7874. for k, _ := range v {
  7875. v2[i] = uint64(k)
  7876. i++
  7877. }
  7878. sort.Sort(uintSlice(v2))
  7879. for _, k2 := range v2 {
  7880. if esep {
  7881. ee.WriteMapElemKey()
  7882. }
  7883. ee.EncodeUint(uint64(uint64(k2)))
  7884. if esep {
  7885. ee.WriteMapElemValue()
  7886. }
  7887. ee.EncodeUint(uint64(v[uint64(k2)]))
  7888. }
  7889. } else {
  7890. for k2, v2 := range v {
  7891. if esep {
  7892. ee.WriteMapElemKey()
  7893. }
  7894. ee.EncodeUint(uint64(k2))
  7895. if esep {
  7896. ee.WriteMapElemValue()
  7897. }
  7898. ee.EncodeUint(uint64(v2))
  7899. }
  7900. }
  7901. ee.WriteMapEnd()
  7902. }
  7903. func (e *Encoder) fastpathEncMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  7904. fastpathTV.EncMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), e)
  7905. }
  7906. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, e *Encoder) {
  7907. if v == nil {
  7908. e.e.EncodeNil()
  7909. return
  7910. }
  7911. ee, esep := e.e, e.hh.hasElemSeparators()
  7912. ee.WriteMapStart(len(v))
  7913. if e.h.Canonical {
  7914. v2 := make([]uint64, len(v))
  7915. var i int
  7916. for k, _ := range v {
  7917. v2[i] = uint64(k)
  7918. i++
  7919. }
  7920. sort.Sort(uintSlice(v2))
  7921. for _, k2 := range v2 {
  7922. if esep {
  7923. ee.WriteMapElemKey()
  7924. }
  7925. ee.EncodeUint(uint64(uint64(k2)))
  7926. if esep {
  7927. ee.WriteMapElemValue()
  7928. }
  7929. ee.EncodeUint(uint64(v[uint64(k2)]))
  7930. }
  7931. } else {
  7932. for k2, v2 := range v {
  7933. if esep {
  7934. ee.WriteMapElemKey()
  7935. }
  7936. ee.EncodeUint(uint64(k2))
  7937. if esep {
  7938. ee.WriteMapElemValue()
  7939. }
  7940. ee.EncodeUint(uint64(v2))
  7941. }
  7942. }
  7943. ee.WriteMapEnd()
  7944. }
  7945. func (e *Encoder) fastpathEncMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  7946. fastpathTV.EncMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), e)
  7947. }
  7948. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, e *Encoder) {
  7949. if v == nil {
  7950. e.e.EncodeNil()
  7951. return
  7952. }
  7953. ee, esep := e.e, e.hh.hasElemSeparators()
  7954. ee.WriteMapStart(len(v))
  7955. if e.h.Canonical {
  7956. v2 := make([]uint64, len(v))
  7957. var i int
  7958. for k, _ := range v {
  7959. v2[i] = uint64(k)
  7960. i++
  7961. }
  7962. sort.Sort(uintSlice(v2))
  7963. for _, k2 := range v2 {
  7964. if esep {
  7965. ee.WriteMapElemKey()
  7966. }
  7967. ee.EncodeUint(uint64(uint64(k2)))
  7968. if esep {
  7969. ee.WriteMapElemValue()
  7970. }
  7971. ee.EncodeUint(uint64(v[uint64(k2)]))
  7972. }
  7973. } else {
  7974. for k2, v2 := range v {
  7975. if esep {
  7976. ee.WriteMapElemKey()
  7977. }
  7978. ee.EncodeUint(uint64(k2))
  7979. if esep {
  7980. ee.WriteMapElemValue()
  7981. }
  7982. ee.EncodeUint(uint64(v2))
  7983. }
  7984. }
  7985. ee.WriteMapEnd()
  7986. }
  7987. func (e *Encoder) fastpathEncMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  7988. fastpathTV.EncMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), e)
  7989. }
  7990. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, e *Encoder) {
  7991. if v == nil {
  7992. e.e.EncodeNil()
  7993. return
  7994. }
  7995. ee, esep := e.e, e.hh.hasElemSeparators()
  7996. ee.WriteMapStart(len(v))
  7997. if e.h.Canonical {
  7998. v2 := make([]uint64, len(v))
  7999. var i int
  8000. for k, _ := range v {
  8001. v2[i] = uint64(k)
  8002. i++
  8003. }
  8004. sort.Sort(uintSlice(v2))
  8005. for _, k2 := range v2 {
  8006. if esep {
  8007. ee.WriteMapElemKey()
  8008. }
  8009. ee.EncodeUint(uint64(uint64(k2)))
  8010. if esep {
  8011. ee.WriteMapElemValue()
  8012. }
  8013. e.encode(v[uint64(k2)])
  8014. }
  8015. } else {
  8016. for k2, v2 := range v {
  8017. if esep {
  8018. ee.WriteMapElemKey()
  8019. }
  8020. ee.EncodeUint(uint64(k2))
  8021. if esep {
  8022. ee.WriteMapElemValue()
  8023. }
  8024. e.encode(v2)
  8025. }
  8026. }
  8027. ee.WriteMapEnd()
  8028. }
  8029. func (e *Encoder) fastpathEncMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  8030. fastpathTV.EncMapUint64IntV(rv2i(rv).(map[uint64]int), e)
  8031. }
  8032. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, e *Encoder) {
  8033. if v == nil {
  8034. e.e.EncodeNil()
  8035. return
  8036. }
  8037. ee, esep := e.e, e.hh.hasElemSeparators()
  8038. ee.WriteMapStart(len(v))
  8039. if e.h.Canonical {
  8040. v2 := make([]uint64, len(v))
  8041. var i int
  8042. for k, _ := range v {
  8043. v2[i] = uint64(k)
  8044. i++
  8045. }
  8046. sort.Sort(uintSlice(v2))
  8047. for _, k2 := range v2 {
  8048. if esep {
  8049. ee.WriteMapElemKey()
  8050. }
  8051. ee.EncodeUint(uint64(uint64(k2)))
  8052. if esep {
  8053. ee.WriteMapElemValue()
  8054. }
  8055. ee.EncodeInt(int64(v[uint64(k2)]))
  8056. }
  8057. } else {
  8058. for k2, v2 := range v {
  8059. if esep {
  8060. ee.WriteMapElemKey()
  8061. }
  8062. ee.EncodeUint(uint64(k2))
  8063. if esep {
  8064. ee.WriteMapElemValue()
  8065. }
  8066. ee.EncodeInt(int64(v2))
  8067. }
  8068. }
  8069. ee.WriteMapEnd()
  8070. }
  8071. func (e *Encoder) fastpathEncMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  8072. fastpathTV.EncMapUint64Int8V(rv2i(rv).(map[uint64]int8), e)
  8073. }
  8074. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, e *Encoder) {
  8075. if v == nil {
  8076. e.e.EncodeNil()
  8077. return
  8078. }
  8079. ee, esep := e.e, e.hh.hasElemSeparators()
  8080. ee.WriteMapStart(len(v))
  8081. if e.h.Canonical {
  8082. v2 := make([]uint64, len(v))
  8083. var i int
  8084. for k, _ := range v {
  8085. v2[i] = uint64(k)
  8086. i++
  8087. }
  8088. sort.Sort(uintSlice(v2))
  8089. for _, k2 := range v2 {
  8090. if esep {
  8091. ee.WriteMapElemKey()
  8092. }
  8093. ee.EncodeUint(uint64(uint64(k2)))
  8094. if esep {
  8095. ee.WriteMapElemValue()
  8096. }
  8097. ee.EncodeInt(int64(v[uint64(k2)]))
  8098. }
  8099. } else {
  8100. for k2, v2 := range v {
  8101. if esep {
  8102. ee.WriteMapElemKey()
  8103. }
  8104. ee.EncodeUint(uint64(k2))
  8105. if esep {
  8106. ee.WriteMapElemValue()
  8107. }
  8108. ee.EncodeInt(int64(v2))
  8109. }
  8110. }
  8111. ee.WriteMapEnd()
  8112. }
  8113. func (e *Encoder) fastpathEncMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  8114. fastpathTV.EncMapUint64Int16V(rv2i(rv).(map[uint64]int16), e)
  8115. }
  8116. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, e *Encoder) {
  8117. if v == nil {
  8118. e.e.EncodeNil()
  8119. return
  8120. }
  8121. ee, esep := e.e, e.hh.hasElemSeparators()
  8122. ee.WriteMapStart(len(v))
  8123. if e.h.Canonical {
  8124. v2 := make([]uint64, len(v))
  8125. var i int
  8126. for k, _ := range v {
  8127. v2[i] = uint64(k)
  8128. i++
  8129. }
  8130. sort.Sort(uintSlice(v2))
  8131. for _, k2 := range v2 {
  8132. if esep {
  8133. ee.WriteMapElemKey()
  8134. }
  8135. ee.EncodeUint(uint64(uint64(k2)))
  8136. if esep {
  8137. ee.WriteMapElemValue()
  8138. }
  8139. ee.EncodeInt(int64(v[uint64(k2)]))
  8140. }
  8141. } else {
  8142. for k2, v2 := range v {
  8143. if esep {
  8144. ee.WriteMapElemKey()
  8145. }
  8146. ee.EncodeUint(uint64(k2))
  8147. if esep {
  8148. ee.WriteMapElemValue()
  8149. }
  8150. ee.EncodeInt(int64(v2))
  8151. }
  8152. }
  8153. ee.WriteMapEnd()
  8154. }
  8155. func (e *Encoder) fastpathEncMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  8156. fastpathTV.EncMapUint64Int32V(rv2i(rv).(map[uint64]int32), e)
  8157. }
  8158. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, e *Encoder) {
  8159. if v == nil {
  8160. e.e.EncodeNil()
  8161. return
  8162. }
  8163. ee, esep := e.e, e.hh.hasElemSeparators()
  8164. ee.WriteMapStart(len(v))
  8165. if e.h.Canonical {
  8166. v2 := make([]uint64, len(v))
  8167. var i int
  8168. for k, _ := range v {
  8169. v2[i] = uint64(k)
  8170. i++
  8171. }
  8172. sort.Sort(uintSlice(v2))
  8173. for _, k2 := range v2 {
  8174. if esep {
  8175. ee.WriteMapElemKey()
  8176. }
  8177. ee.EncodeUint(uint64(uint64(k2)))
  8178. if esep {
  8179. ee.WriteMapElemValue()
  8180. }
  8181. ee.EncodeInt(int64(v[uint64(k2)]))
  8182. }
  8183. } else {
  8184. for k2, v2 := range v {
  8185. if esep {
  8186. ee.WriteMapElemKey()
  8187. }
  8188. ee.EncodeUint(uint64(k2))
  8189. if esep {
  8190. ee.WriteMapElemValue()
  8191. }
  8192. ee.EncodeInt(int64(v2))
  8193. }
  8194. }
  8195. ee.WriteMapEnd()
  8196. }
  8197. func (e *Encoder) fastpathEncMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  8198. fastpathTV.EncMapUint64Int64V(rv2i(rv).(map[uint64]int64), e)
  8199. }
  8200. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, e *Encoder) {
  8201. if v == nil {
  8202. e.e.EncodeNil()
  8203. return
  8204. }
  8205. ee, esep := e.e, e.hh.hasElemSeparators()
  8206. ee.WriteMapStart(len(v))
  8207. if e.h.Canonical {
  8208. v2 := make([]uint64, len(v))
  8209. var i int
  8210. for k, _ := range v {
  8211. v2[i] = uint64(k)
  8212. i++
  8213. }
  8214. sort.Sort(uintSlice(v2))
  8215. for _, k2 := range v2 {
  8216. if esep {
  8217. ee.WriteMapElemKey()
  8218. }
  8219. ee.EncodeUint(uint64(uint64(k2)))
  8220. if esep {
  8221. ee.WriteMapElemValue()
  8222. }
  8223. ee.EncodeInt(int64(v[uint64(k2)]))
  8224. }
  8225. } else {
  8226. for k2, v2 := range v {
  8227. if esep {
  8228. ee.WriteMapElemKey()
  8229. }
  8230. ee.EncodeUint(uint64(k2))
  8231. if esep {
  8232. ee.WriteMapElemValue()
  8233. }
  8234. ee.EncodeInt(int64(v2))
  8235. }
  8236. }
  8237. ee.WriteMapEnd()
  8238. }
  8239. func (e *Encoder) fastpathEncMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  8240. fastpathTV.EncMapUint64Float32V(rv2i(rv).(map[uint64]float32), e)
  8241. }
  8242. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, e *Encoder) {
  8243. if v == nil {
  8244. e.e.EncodeNil()
  8245. return
  8246. }
  8247. ee, esep := e.e, e.hh.hasElemSeparators()
  8248. ee.WriteMapStart(len(v))
  8249. if e.h.Canonical {
  8250. v2 := make([]uint64, len(v))
  8251. var i int
  8252. for k, _ := range v {
  8253. v2[i] = uint64(k)
  8254. i++
  8255. }
  8256. sort.Sort(uintSlice(v2))
  8257. for _, k2 := range v2 {
  8258. if esep {
  8259. ee.WriteMapElemKey()
  8260. }
  8261. ee.EncodeUint(uint64(uint64(k2)))
  8262. if esep {
  8263. ee.WriteMapElemValue()
  8264. }
  8265. ee.EncodeFloat32(v[uint64(k2)])
  8266. }
  8267. } else {
  8268. for k2, v2 := range v {
  8269. if esep {
  8270. ee.WriteMapElemKey()
  8271. }
  8272. ee.EncodeUint(uint64(k2))
  8273. if esep {
  8274. ee.WriteMapElemValue()
  8275. }
  8276. ee.EncodeFloat32(v2)
  8277. }
  8278. }
  8279. ee.WriteMapEnd()
  8280. }
  8281. func (e *Encoder) fastpathEncMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  8282. fastpathTV.EncMapUint64Float64V(rv2i(rv).(map[uint64]float64), e)
  8283. }
  8284. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, e *Encoder) {
  8285. if v == nil {
  8286. e.e.EncodeNil()
  8287. return
  8288. }
  8289. ee, esep := e.e, e.hh.hasElemSeparators()
  8290. ee.WriteMapStart(len(v))
  8291. if e.h.Canonical {
  8292. v2 := make([]uint64, len(v))
  8293. var i int
  8294. for k, _ := range v {
  8295. v2[i] = uint64(k)
  8296. i++
  8297. }
  8298. sort.Sort(uintSlice(v2))
  8299. for _, k2 := range v2 {
  8300. if esep {
  8301. ee.WriteMapElemKey()
  8302. }
  8303. ee.EncodeUint(uint64(uint64(k2)))
  8304. if esep {
  8305. ee.WriteMapElemValue()
  8306. }
  8307. ee.EncodeFloat64(v[uint64(k2)])
  8308. }
  8309. } else {
  8310. for k2, v2 := range v {
  8311. if esep {
  8312. ee.WriteMapElemKey()
  8313. }
  8314. ee.EncodeUint(uint64(k2))
  8315. if esep {
  8316. ee.WriteMapElemValue()
  8317. }
  8318. ee.EncodeFloat64(v2)
  8319. }
  8320. }
  8321. ee.WriteMapEnd()
  8322. }
  8323. func (e *Encoder) fastpathEncMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  8324. fastpathTV.EncMapUint64BoolV(rv2i(rv).(map[uint64]bool), e)
  8325. }
  8326. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, e *Encoder) {
  8327. if v == nil {
  8328. e.e.EncodeNil()
  8329. return
  8330. }
  8331. ee, esep := e.e, e.hh.hasElemSeparators()
  8332. ee.WriteMapStart(len(v))
  8333. if e.h.Canonical {
  8334. v2 := make([]uint64, len(v))
  8335. var i int
  8336. for k, _ := range v {
  8337. v2[i] = uint64(k)
  8338. i++
  8339. }
  8340. sort.Sort(uintSlice(v2))
  8341. for _, k2 := range v2 {
  8342. if esep {
  8343. ee.WriteMapElemKey()
  8344. }
  8345. ee.EncodeUint(uint64(uint64(k2)))
  8346. if esep {
  8347. ee.WriteMapElemValue()
  8348. }
  8349. ee.EncodeBool(v[uint64(k2)])
  8350. }
  8351. } else {
  8352. for k2, v2 := range v {
  8353. if esep {
  8354. ee.WriteMapElemKey()
  8355. }
  8356. ee.EncodeUint(uint64(k2))
  8357. if esep {
  8358. ee.WriteMapElemValue()
  8359. }
  8360. ee.EncodeBool(v2)
  8361. }
  8362. }
  8363. ee.WriteMapEnd()
  8364. }
  8365. func (e *Encoder) fastpathEncMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  8366. fastpathTV.EncMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), e)
  8367. }
  8368. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, e *Encoder) {
  8369. if v == nil {
  8370. e.e.EncodeNil()
  8371. return
  8372. }
  8373. ee, esep := e.e, e.hh.hasElemSeparators()
  8374. ee.WriteMapStart(len(v))
  8375. if e.h.Canonical {
  8376. v2 := make([]uint64, len(v))
  8377. var i int
  8378. for k, _ := range v {
  8379. v2[i] = uint64(k)
  8380. i++
  8381. }
  8382. sort.Sort(uintSlice(v2))
  8383. for _, k2 := range v2 {
  8384. if esep {
  8385. ee.WriteMapElemKey()
  8386. }
  8387. e.encode(uintptr(k2))
  8388. if esep {
  8389. ee.WriteMapElemValue()
  8390. }
  8391. e.encode(v[uintptr(k2)])
  8392. }
  8393. } else {
  8394. for k2, v2 := range v {
  8395. if esep {
  8396. ee.WriteMapElemKey()
  8397. }
  8398. e.encode(k2)
  8399. if esep {
  8400. ee.WriteMapElemValue()
  8401. }
  8402. e.encode(v2)
  8403. }
  8404. }
  8405. ee.WriteMapEnd()
  8406. }
  8407. func (e *Encoder) fastpathEncMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  8408. fastpathTV.EncMapUintptrStringV(rv2i(rv).(map[uintptr]string), e)
  8409. }
  8410. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, e *Encoder) {
  8411. if v == nil {
  8412. e.e.EncodeNil()
  8413. return
  8414. }
  8415. ee, esep := e.e, e.hh.hasElemSeparators()
  8416. ee.WriteMapStart(len(v))
  8417. if e.h.Canonical {
  8418. v2 := make([]uint64, len(v))
  8419. var i int
  8420. for k, _ := range v {
  8421. v2[i] = uint64(k)
  8422. i++
  8423. }
  8424. sort.Sort(uintSlice(v2))
  8425. for _, k2 := range v2 {
  8426. if esep {
  8427. ee.WriteMapElemKey()
  8428. }
  8429. e.encode(uintptr(k2))
  8430. if esep {
  8431. ee.WriteMapElemValue()
  8432. }
  8433. ee.EncodeString(c_UTF8, v[uintptr(k2)])
  8434. }
  8435. } else {
  8436. for k2, v2 := range v {
  8437. if esep {
  8438. ee.WriteMapElemKey()
  8439. }
  8440. e.encode(k2)
  8441. if esep {
  8442. ee.WriteMapElemValue()
  8443. }
  8444. ee.EncodeString(c_UTF8, v2)
  8445. }
  8446. }
  8447. ee.WriteMapEnd()
  8448. }
  8449. func (e *Encoder) fastpathEncMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  8450. fastpathTV.EncMapUintptrUintV(rv2i(rv).(map[uintptr]uint), e)
  8451. }
  8452. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, e *Encoder) {
  8453. if v == nil {
  8454. e.e.EncodeNil()
  8455. return
  8456. }
  8457. ee, esep := e.e, e.hh.hasElemSeparators()
  8458. ee.WriteMapStart(len(v))
  8459. if e.h.Canonical {
  8460. v2 := make([]uint64, len(v))
  8461. var i int
  8462. for k, _ := range v {
  8463. v2[i] = uint64(k)
  8464. i++
  8465. }
  8466. sort.Sort(uintSlice(v2))
  8467. for _, k2 := range v2 {
  8468. if esep {
  8469. ee.WriteMapElemKey()
  8470. }
  8471. e.encode(uintptr(k2))
  8472. if esep {
  8473. ee.WriteMapElemValue()
  8474. }
  8475. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8476. }
  8477. } else {
  8478. for k2, v2 := range v {
  8479. if esep {
  8480. ee.WriteMapElemKey()
  8481. }
  8482. e.encode(k2)
  8483. if esep {
  8484. ee.WriteMapElemValue()
  8485. }
  8486. ee.EncodeUint(uint64(v2))
  8487. }
  8488. }
  8489. ee.WriteMapEnd()
  8490. }
  8491. func (e *Encoder) fastpathEncMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  8492. fastpathTV.EncMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), e)
  8493. }
  8494. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, e *Encoder) {
  8495. if v == nil {
  8496. e.e.EncodeNil()
  8497. return
  8498. }
  8499. ee, esep := e.e, e.hh.hasElemSeparators()
  8500. ee.WriteMapStart(len(v))
  8501. if e.h.Canonical {
  8502. v2 := make([]uint64, len(v))
  8503. var i int
  8504. for k, _ := range v {
  8505. v2[i] = uint64(k)
  8506. i++
  8507. }
  8508. sort.Sort(uintSlice(v2))
  8509. for _, k2 := range v2 {
  8510. if esep {
  8511. ee.WriteMapElemKey()
  8512. }
  8513. e.encode(uintptr(k2))
  8514. if esep {
  8515. ee.WriteMapElemValue()
  8516. }
  8517. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8518. }
  8519. } else {
  8520. for k2, v2 := range v {
  8521. if esep {
  8522. ee.WriteMapElemKey()
  8523. }
  8524. e.encode(k2)
  8525. if esep {
  8526. ee.WriteMapElemValue()
  8527. }
  8528. ee.EncodeUint(uint64(v2))
  8529. }
  8530. }
  8531. ee.WriteMapEnd()
  8532. }
  8533. func (e *Encoder) fastpathEncMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  8534. fastpathTV.EncMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), e)
  8535. }
  8536. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, e *Encoder) {
  8537. if v == nil {
  8538. e.e.EncodeNil()
  8539. return
  8540. }
  8541. ee, esep := e.e, e.hh.hasElemSeparators()
  8542. ee.WriteMapStart(len(v))
  8543. if e.h.Canonical {
  8544. v2 := make([]uint64, len(v))
  8545. var i int
  8546. for k, _ := range v {
  8547. v2[i] = uint64(k)
  8548. i++
  8549. }
  8550. sort.Sort(uintSlice(v2))
  8551. for _, k2 := range v2 {
  8552. if esep {
  8553. ee.WriteMapElemKey()
  8554. }
  8555. e.encode(uintptr(k2))
  8556. if esep {
  8557. ee.WriteMapElemValue()
  8558. }
  8559. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8560. }
  8561. } else {
  8562. for k2, v2 := range v {
  8563. if esep {
  8564. ee.WriteMapElemKey()
  8565. }
  8566. e.encode(k2)
  8567. if esep {
  8568. ee.WriteMapElemValue()
  8569. }
  8570. ee.EncodeUint(uint64(v2))
  8571. }
  8572. }
  8573. ee.WriteMapEnd()
  8574. }
  8575. func (e *Encoder) fastpathEncMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  8576. fastpathTV.EncMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), e)
  8577. }
  8578. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, e *Encoder) {
  8579. if v == nil {
  8580. e.e.EncodeNil()
  8581. return
  8582. }
  8583. ee, esep := e.e, e.hh.hasElemSeparators()
  8584. ee.WriteMapStart(len(v))
  8585. if e.h.Canonical {
  8586. v2 := make([]uint64, len(v))
  8587. var i int
  8588. for k, _ := range v {
  8589. v2[i] = uint64(k)
  8590. i++
  8591. }
  8592. sort.Sort(uintSlice(v2))
  8593. for _, k2 := range v2 {
  8594. if esep {
  8595. ee.WriteMapElemKey()
  8596. }
  8597. e.encode(uintptr(k2))
  8598. if esep {
  8599. ee.WriteMapElemValue()
  8600. }
  8601. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8602. }
  8603. } else {
  8604. for k2, v2 := range v {
  8605. if esep {
  8606. ee.WriteMapElemKey()
  8607. }
  8608. e.encode(k2)
  8609. if esep {
  8610. ee.WriteMapElemValue()
  8611. }
  8612. ee.EncodeUint(uint64(v2))
  8613. }
  8614. }
  8615. ee.WriteMapEnd()
  8616. }
  8617. func (e *Encoder) fastpathEncMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  8618. fastpathTV.EncMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), e)
  8619. }
  8620. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, e *Encoder) {
  8621. if v == nil {
  8622. e.e.EncodeNil()
  8623. return
  8624. }
  8625. ee, esep := e.e, e.hh.hasElemSeparators()
  8626. ee.WriteMapStart(len(v))
  8627. if e.h.Canonical {
  8628. v2 := make([]uint64, len(v))
  8629. var i int
  8630. for k, _ := range v {
  8631. v2[i] = uint64(k)
  8632. i++
  8633. }
  8634. sort.Sort(uintSlice(v2))
  8635. for _, k2 := range v2 {
  8636. if esep {
  8637. ee.WriteMapElemKey()
  8638. }
  8639. e.encode(uintptr(k2))
  8640. if esep {
  8641. ee.WriteMapElemValue()
  8642. }
  8643. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8644. }
  8645. } else {
  8646. for k2, v2 := range v {
  8647. if esep {
  8648. ee.WriteMapElemKey()
  8649. }
  8650. e.encode(k2)
  8651. if esep {
  8652. ee.WriteMapElemValue()
  8653. }
  8654. ee.EncodeUint(uint64(v2))
  8655. }
  8656. }
  8657. ee.WriteMapEnd()
  8658. }
  8659. func (e *Encoder) fastpathEncMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  8660. fastpathTV.EncMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), e)
  8661. }
  8662. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, e *Encoder) {
  8663. if v == nil {
  8664. e.e.EncodeNil()
  8665. return
  8666. }
  8667. ee, esep := e.e, e.hh.hasElemSeparators()
  8668. ee.WriteMapStart(len(v))
  8669. if e.h.Canonical {
  8670. v2 := make([]uint64, len(v))
  8671. var i int
  8672. for k, _ := range v {
  8673. v2[i] = uint64(k)
  8674. i++
  8675. }
  8676. sort.Sort(uintSlice(v2))
  8677. for _, k2 := range v2 {
  8678. if esep {
  8679. ee.WriteMapElemKey()
  8680. }
  8681. e.encode(uintptr(k2))
  8682. if esep {
  8683. ee.WriteMapElemValue()
  8684. }
  8685. e.encode(v[uintptr(k2)])
  8686. }
  8687. } else {
  8688. for k2, v2 := range v {
  8689. if esep {
  8690. ee.WriteMapElemKey()
  8691. }
  8692. e.encode(k2)
  8693. if esep {
  8694. ee.WriteMapElemValue()
  8695. }
  8696. e.encode(v2)
  8697. }
  8698. }
  8699. ee.WriteMapEnd()
  8700. }
  8701. func (e *Encoder) fastpathEncMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  8702. fastpathTV.EncMapUintptrIntV(rv2i(rv).(map[uintptr]int), e)
  8703. }
  8704. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, e *Encoder) {
  8705. if v == nil {
  8706. e.e.EncodeNil()
  8707. return
  8708. }
  8709. ee, esep := e.e, e.hh.hasElemSeparators()
  8710. ee.WriteMapStart(len(v))
  8711. if e.h.Canonical {
  8712. v2 := make([]uint64, len(v))
  8713. var i int
  8714. for k, _ := range v {
  8715. v2[i] = uint64(k)
  8716. i++
  8717. }
  8718. sort.Sort(uintSlice(v2))
  8719. for _, k2 := range v2 {
  8720. if esep {
  8721. ee.WriteMapElemKey()
  8722. }
  8723. e.encode(uintptr(k2))
  8724. if esep {
  8725. ee.WriteMapElemValue()
  8726. }
  8727. ee.EncodeInt(int64(v[uintptr(k2)]))
  8728. }
  8729. } else {
  8730. for k2, v2 := range v {
  8731. if esep {
  8732. ee.WriteMapElemKey()
  8733. }
  8734. e.encode(k2)
  8735. if esep {
  8736. ee.WriteMapElemValue()
  8737. }
  8738. ee.EncodeInt(int64(v2))
  8739. }
  8740. }
  8741. ee.WriteMapEnd()
  8742. }
  8743. func (e *Encoder) fastpathEncMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  8744. fastpathTV.EncMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), e)
  8745. }
  8746. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, e *Encoder) {
  8747. if v == nil {
  8748. e.e.EncodeNil()
  8749. return
  8750. }
  8751. ee, esep := e.e, e.hh.hasElemSeparators()
  8752. ee.WriteMapStart(len(v))
  8753. if e.h.Canonical {
  8754. v2 := make([]uint64, len(v))
  8755. var i int
  8756. for k, _ := range v {
  8757. v2[i] = uint64(k)
  8758. i++
  8759. }
  8760. sort.Sort(uintSlice(v2))
  8761. for _, k2 := range v2 {
  8762. if esep {
  8763. ee.WriteMapElemKey()
  8764. }
  8765. e.encode(uintptr(k2))
  8766. if esep {
  8767. ee.WriteMapElemValue()
  8768. }
  8769. ee.EncodeInt(int64(v[uintptr(k2)]))
  8770. }
  8771. } else {
  8772. for k2, v2 := range v {
  8773. if esep {
  8774. ee.WriteMapElemKey()
  8775. }
  8776. e.encode(k2)
  8777. if esep {
  8778. ee.WriteMapElemValue()
  8779. }
  8780. ee.EncodeInt(int64(v2))
  8781. }
  8782. }
  8783. ee.WriteMapEnd()
  8784. }
  8785. func (e *Encoder) fastpathEncMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  8786. fastpathTV.EncMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), e)
  8787. }
  8788. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, e *Encoder) {
  8789. if v == nil {
  8790. e.e.EncodeNil()
  8791. return
  8792. }
  8793. ee, esep := e.e, e.hh.hasElemSeparators()
  8794. ee.WriteMapStart(len(v))
  8795. if e.h.Canonical {
  8796. v2 := make([]uint64, len(v))
  8797. var i int
  8798. for k, _ := range v {
  8799. v2[i] = uint64(k)
  8800. i++
  8801. }
  8802. sort.Sort(uintSlice(v2))
  8803. for _, k2 := range v2 {
  8804. if esep {
  8805. ee.WriteMapElemKey()
  8806. }
  8807. e.encode(uintptr(k2))
  8808. if esep {
  8809. ee.WriteMapElemValue()
  8810. }
  8811. ee.EncodeInt(int64(v[uintptr(k2)]))
  8812. }
  8813. } else {
  8814. for k2, v2 := range v {
  8815. if esep {
  8816. ee.WriteMapElemKey()
  8817. }
  8818. e.encode(k2)
  8819. if esep {
  8820. ee.WriteMapElemValue()
  8821. }
  8822. ee.EncodeInt(int64(v2))
  8823. }
  8824. }
  8825. ee.WriteMapEnd()
  8826. }
  8827. func (e *Encoder) fastpathEncMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  8828. fastpathTV.EncMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), e)
  8829. }
  8830. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, e *Encoder) {
  8831. if v == nil {
  8832. e.e.EncodeNil()
  8833. return
  8834. }
  8835. ee, esep := e.e, e.hh.hasElemSeparators()
  8836. ee.WriteMapStart(len(v))
  8837. if e.h.Canonical {
  8838. v2 := make([]uint64, len(v))
  8839. var i int
  8840. for k, _ := range v {
  8841. v2[i] = uint64(k)
  8842. i++
  8843. }
  8844. sort.Sort(uintSlice(v2))
  8845. for _, k2 := range v2 {
  8846. if esep {
  8847. ee.WriteMapElemKey()
  8848. }
  8849. e.encode(uintptr(k2))
  8850. if esep {
  8851. ee.WriteMapElemValue()
  8852. }
  8853. ee.EncodeInt(int64(v[uintptr(k2)]))
  8854. }
  8855. } else {
  8856. for k2, v2 := range v {
  8857. if esep {
  8858. ee.WriteMapElemKey()
  8859. }
  8860. e.encode(k2)
  8861. if esep {
  8862. ee.WriteMapElemValue()
  8863. }
  8864. ee.EncodeInt(int64(v2))
  8865. }
  8866. }
  8867. ee.WriteMapEnd()
  8868. }
  8869. func (e *Encoder) fastpathEncMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  8870. fastpathTV.EncMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), e)
  8871. }
  8872. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, e *Encoder) {
  8873. if v == nil {
  8874. e.e.EncodeNil()
  8875. return
  8876. }
  8877. ee, esep := e.e, e.hh.hasElemSeparators()
  8878. ee.WriteMapStart(len(v))
  8879. if e.h.Canonical {
  8880. v2 := make([]uint64, len(v))
  8881. var i int
  8882. for k, _ := range v {
  8883. v2[i] = uint64(k)
  8884. i++
  8885. }
  8886. sort.Sort(uintSlice(v2))
  8887. for _, k2 := range v2 {
  8888. if esep {
  8889. ee.WriteMapElemKey()
  8890. }
  8891. e.encode(uintptr(k2))
  8892. if esep {
  8893. ee.WriteMapElemValue()
  8894. }
  8895. ee.EncodeInt(int64(v[uintptr(k2)]))
  8896. }
  8897. } else {
  8898. for k2, v2 := range v {
  8899. if esep {
  8900. ee.WriteMapElemKey()
  8901. }
  8902. e.encode(k2)
  8903. if esep {
  8904. ee.WriteMapElemValue()
  8905. }
  8906. ee.EncodeInt(int64(v2))
  8907. }
  8908. }
  8909. ee.WriteMapEnd()
  8910. }
  8911. func (e *Encoder) fastpathEncMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  8912. fastpathTV.EncMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), e)
  8913. }
  8914. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, e *Encoder) {
  8915. if v == nil {
  8916. e.e.EncodeNil()
  8917. return
  8918. }
  8919. ee, esep := e.e, e.hh.hasElemSeparators()
  8920. ee.WriteMapStart(len(v))
  8921. if e.h.Canonical {
  8922. v2 := make([]uint64, len(v))
  8923. var i int
  8924. for k, _ := range v {
  8925. v2[i] = uint64(k)
  8926. i++
  8927. }
  8928. sort.Sort(uintSlice(v2))
  8929. for _, k2 := range v2 {
  8930. if esep {
  8931. ee.WriteMapElemKey()
  8932. }
  8933. e.encode(uintptr(k2))
  8934. if esep {
  8935. ee.WriteMapElemValue()
  8936. }
  8937. ee.EncodeFloat32(v[uintptr(k2)])
  8938. }
  8939. } else {
  8940. for k2, v2 := range v {
  8941. if esep {
  8942. ee.WriteMapElemKey()
  8943. }
  8944. e.encode(k2)
  8945. if esep {
  8946. ee.WriteMapElemValue()
  8947. }
  8948. ee.EncodeFloat32(v2)
  8949. }
  8950. }
  8951. ee.WriteMapEnd()
  8952. }
  8953. func (e *Encoder) fastpathEncMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  8954. fastpathTV.EncMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), e)
  8955. }
  8956. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, e *Encoder) {
  8957. if v == nil {
  8958. e.e.EncodeNil()
  8959. return
  8960. }
  8961. ee, esep := e.e, e.hh.hasElemSeparators()
  8962. ee.WriteMapStart(len(v))
  8963. if e.h.Canonical {
  8964. v2 := make([]uint64, len(v))
  8965. var i int
  8966. for k, _ := range v {
  8967. v2[i] = uint64(k)
  8968. i++
  8969. }
  8970. sort.Sort(uintSlice(v2))
  8971. for _, k2 := range v2 {
  8972. if esep {
  8973. ee.WriteMapElemKey()
  8974. }
  8975. e.encode(uintptr(k2))
  8976. if esep {
  8977. ee.WriteMapElemValue()
  8978. }
  8979. ee.EncodeFloat64(v[uintptr(k2)])
  8980. }
  8981. } else {
  8982. for k2, v2 := range v {
  8983. if esep {
  8984. ee.WriteMapElemKey()
  8985. }
  8986. e.encode(k2)
  8987. if esep {
  8988. ee.WriteMapElemValue()
  8989. }
  8990. ee.EncodeFloat64(v2)
  8991. }
  8992. }
  8993. ee.WriteMapEnd()
  8994. }
  8995. func (e *Encoder) fastpathEncMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  8996. fastpathTV.EncMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), e)
  8997. }
  8998. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, e *Encoder) {
  8999. if v == nil {
  9000. e.e.EncodeNil()
  9001. return
  9002. }
  9003. ee, esep := e.e, e.hh.hasElemSeparators()
  9004. ee.WriteMapStart(len(v))
  9005. if e.h.Canonical {
  9006. v2 := make([]uint64, len(v))
  9007. var i int
  9008. for k, _ := range v {
  9009. v2[i] = uint64(k)
  9010. i++
  9011. }
  9012. sort.Sort(uintSlice(v2))
  9013. for _, k2 := range v2 {
  9014. if esep {
  9015. ee.WriteMapElemKey()
  9016. }
  9017. e.encode(uintptr(k2))
  9018. if esep {
  9019. ee.WriteMapElemValue()
  9020. }
  9021. ee.EncodeBool(v[uintptr(k2)])
  9022. }
  9023. } else {
  9024. for k2, v2 := range v {
  9025. if esep {
  9026. ee.WriteMapElemKey()
  9027. }
  9028. e.encode(k2)
  9029. if esep {
  9030. ee.WriteMapElemValue()
  9031. }
  9032. ee.EncodeBool(v2)
  9033. }
  9034. }
  9035. ee.WriteMapEnd()
  9036. }
  9037. func (e *Encoder) fastpathEncMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  9038. fastpathTV.EncMapIntIntfV(rv2i(rv).(map[int]interface{}), e)
  9039. }
  9040. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, e *Encoder) {
  9041. if v == nil {
  9042. e.e.EncodeNil()
  9043. return
  9044. }
  9045. ee, esep := e.e, e.hh.hasElemSeparators()
  9046. ee.WriteMapStart(len(v))
  9047. if e.h.Canonical {
  9048. v2 := make([]int64, len(v))
  9049. var i int
  9050. for k, _ := range v {
  9051. v2[i] = int64(k)
  9052. i++
  9053. }
  9054. sort.Sort(intSlice(v2))
  9055. for _, k2 := range v2 {
  9056. if esep {
  9057. ee.WriteMapElemKey()
  9058. }
  9059. ee.EncodeInt(int64(int(k2)))
  9060. if esep {
  9061. ee.WriteMapElemValue()
  9062. }
  9063. e.encode(v[int(k2)])
  9064. }
  9065. } else {
  9066. for k2, v2 := range v {
  9067. if esep {
  9068. ee.WriteMapElemKey()
  9069. }
  9070. ee.EncodeInt(int64(k2))
  9071. if esep {
  9072. ee.WriteMapElemValue()
  9073. }
  9074. e.encode(v2)
  9075. }
  9076. }
  9077. ee.WriteMapEnd()
  9078. }
  9079. func (e *Encoder) fastpathEncMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  9080. fastpathTV.EncMapIntStringV(rv2i(rv).(map[int]string), e)
  9081. }
  9082. func (_ fastpathT) EncMapIntStringV(v map[int]string, e *Encoder) {
  9083. if v == nil {
  9084. e.e.EncodeNil()
  9085. return
  9086. }
  9087. ee, esep := e.e, e.hh.hasElemSeparators()
  9088. ee.WriteMapStart(len(v))
  9089. if e.h.Canonical {
  9090. v2 := make([]int64, len(v))
  9091. var i int
  9092. for k, _ := range v {
  9093. v2[i] = int64(k)
  9094. i++
  9095. }
  9096. sort.Sort(intSlice(v2))
  9097. for _, k2 := range v2 {
  9098. if esep {
  9099. ee.WriteMapElemKey()
  9100. }
  9101. ee.EncodeInt(int64(int(k2)))
  9102. if esep {
  9103. ee.WriteMapElemValue()
  9104. }
  9105. ee.EncodeString(c_UTF8, v[int(k2)])
  9106. }
  9107. } else {
  9108. for k2, v2 := range v {
  9109. if esep {
  9110. ee.WriteMapElemKey()
  9111. }
  9112. ee.EncodeInt(int64(k2))
  9113. if esep {
  9114. ee.WriteMapElemValue()
  9115. }
  9116. ee.EncodeString(c_UTF8, v2)
  9117. }
  9118. }
  9119. ee.WriteMapEnd()
  9120. }
  9121. func (e *Encoder) fastpathEncMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  9122. fastpathTV.EncMapIntUintV(rv2i(rv).(map[int]uint), e)
  9123. }
  9124. func (_ fastpathT) EncMapIntUintV(v map[int]uint, e *Encoder) {
  9125. if v == nil {
  9126. e.e.EncodeNil()
  9127. return
  9128. }
  9129. ee, esep := e.e, e.hh.hasElemSeparators()
  9130. ee.WriteMapStart(len(v))
  9131. if e.h.Canonical {
  9132. v2 := make([]int64, len(v))
  9133. var i int
  9134. for k, _ := range v {
  9135. v2[i] = int64(k)
  9136. i++
  9137. }
  9138. sort.Sort(intSlice(v2))
  9139. for _, k2 := range v2 {
  9140. if esep {
  9141. ee.WriteMapElemKey()
  9142. }
  9143. ee.EncodeInt(int64(int(k2)))
  9144. if esep {
  9145. ee.WriteMapElemValue()
  9146. }
  9147. ee.EncodeUint(uint64(v[int(k2)]))
  9148. }
  9149. } else {
  9150. for k2, v2 := range v {
  9151. if esep {
  9152. ee.WriteMapElemKey()
  9153. }
  9154. ee.EncodeInt(int64(k2))
  9155. if esep {
  9156. ee.WriteMapElemValue()
  9157. }
  9158. ee.EncodeUint(uint64(v2))
  9159. }
  9160. }
  9161. ee.WriteMapEnd()
  9162. }
  9163. func (e *Encoder) fastpathEncMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  9164. fastpathTV.EncMapIntUint8V(rv2i(rv).(map[int]uint8), e)
  9165. }
  9166. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, e *Encoder) {
  9167. if v == nil {
  9168. e.e.EncodeNil()
  9169. return
  9170. }
  9171. ee, esep := e.e, e.hh.hasElemSeparators()
  9172. ee.WriteMapStart(len(v))
  9173. if e.h.Canonical {
  9174. v2 := make([]int64, len(v))
  9175. var i int
  9176. for k, _ := range v {
  9177. v2[i] = int64(k)
  9178. i++
  9179. }
  9180. sort.Sort(intSlice(v2))
  9181. for _, k2 := range v2 {
  9182. if esep {
  9183. ee.WriteMapElemKey()
  9184. }
  9185. ee.EncodeInt(int64(int(k2)))
  9186. if esep {
  9187. ee.WriteMapElemValue()
  9188. }
  9189. ee.EncodeUint(uint64(v[int(k2)]))
  9190. }
  9191. } else {
  9192. for k2, v2 := range v {
  9193. if esep {
  9194. ee.WriteMapElemKey()
  9195. }
  9196. ee.EncodeInt(int64(k2))
  9197. if esep {
  9198. ee.WriteMapElemValue()
  9199. }
  9200. ee.EncodeUint(uint64(v2))
  9201. }
  9202. }
  9203. ee.WriteMapEnd()
  9204. }
  9205. func (e *Encoder) fastpathEncMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  9206. fastpathTV.EncMapIntUint16V(rv2i(rv).(map[int]uint16), e)
  9207. }
  9208. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, e *Encoder) {
  9209. if v == nil {
  9210. e.e.EncodeNil()
  9211. return
  9212. }
  9213. ee, esep := e.e, e.hh.hasElemSeparators()
  9214. ee.WriteMapStart(len(v))
  9215. if e.h.Canonical {
  9216. v2 := make([]int64, len(v))
  9217. var i int
  9218. for k, _ := range v {
  9219. v2[i] = int64(k)
  9220. i++
  9221. }
  9222. sort.Sort(intSlice(v2))
  9223. for _, k2 := range v2 {
  9224. if esep {
  9225. ee.WriteMapElemKey()
  9226. }
  9227. ee.EncodeInt(int64(int(k2)))
  9228. if esep {
  9229. ee.WriteMapElemValue()
  9230. }
  9231. ee.EncodeUint(uint64(v[int(k2)]))
  9232. }
  9233. } else {
  9234. for k2, v2 := range v {
  9235. if esep {
  9236. ee.WriteMapElemKey()
  9237. }
  9238. ee.EncodeInt(int64(k2))
  9239. if esep {
  9240. ee.WriteMapElemValue()
  9241. }
  9242. ee.EncodeUint(uint64(v2))
  9243. }
  9244. }
  9245. ee.WriteMapEnd()
  9246. }
  9247. func (e *Encoder) fastpathEncMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  9248. fastpathTV.EncMapIntUint32V(rv2i(rv).(map[int]uint32), e)
  9249. }
  9250. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, e *Encoder) {
  9251. if v == nil {
  9252. e.e.EncodeNil()
  9253. return
  9254. }
  9255. ee, esep := e.e, e.hh.hasElemSeparators()
  9256. ee.WriteMapStart(len(v))
  9257. if e.h.Canonical {
  9258. v2 := make([]int64, len(v))
  9259. var i int
  9260. for k, _ := range v {
  9261. v2[i] = int64(k)
  9262. i++
  9263. }
  9264. sort.Sort(intSlice(v2))
  9265. for _, k2 := range v2 {
  9266. if esep {
  9267. ee.WriteMapElemKey()
  9268. }
  9269. ee.EncodeInt(int64(int(k2)))
  9270. if esep {
  9271. ee.WriteMapElemValue()
  9272. }
  9273. ee.EncodeUint(uint64(v[int(k2)]))
  9274. }
  9275. } else {
  9276. for k2, v2 := range v {
  9277. if esep {
  9278. ee.WriteMapElemKey()
  9279. }
  9280. ee.EncodeInt(int64(k2))
  9281. if esep {
  9282. ee.WriteMapElemValue()
  9283. }
  9284. ee.EncodeUint(uint64(v2))
  9285. }
  9286. }
  9287. ee.WriteMapEnd()
  9288. }
  9289. func (e *Encoder) fastpathEncMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  9290. fastpathTV.EncMapIntUint64V(rv2i(rv).(map[int]uint64), e)
  9291. }
  9292. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, e *Encoder) {
  9293. if v == nil {
  9294. e.e.EncodeNil()
  9295. return
  9296. }
  9297. ee, esep := e.e, e.hh.hasElemSeparators()
  9298. ee.WriteMapStart(len(v))
  9299. if e.h.Canonical {
  9300. v2 := make([]int64, len(v))
  9301. var i int
  9302. for k, _ := range v {
  9303. v2[i] = int64(k)
  9304. i++
  9305. }
  9306. sort.Sort(intSlice(v2))
  9307. for _, k2 := range v2 {
  9308. if esep {
  9309. ee.WriteMapElemKey()
  9310. }
  9311. ee.EncodeInt(int64(int(k2)))
  9312. if esep {
  9313. ee.WriteMapElemValue()
  9314. }
  9315. ee.EncodeUint(uint64(v[int(k2)]))
  9316. }
  9317. } else {
  9318. for k2, v2 := range v {
  9319. if esep {
  9320. ee.WriteMapElemKey()
  9321. }
  9322. ee.EncodeInt(int64(k2))
  9323. if esep {
  9324. ee.WriteMapElemValue()
  9325. }
  9326. ee.EncodeUint(uint64(v2))
  9327. }
  9328. }
  9329. ee.WriteMapEnd()
  9330. }
  9331. func (e *Encoder) fastpathEncMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  9332. fastpathTV.EncMapIntUintptrV(rv2i(rv).(map[int]uintptr), e)
  9333. }
  9334. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, e *Encoder) {
  9335. if v == nil {
  9336. e.e.EncodeNil()
  9337. return
  9338. }
  9339. ee, esep := e.e, e.hh.hasElemSeparators()
  9340. ee.WriteMapStart(len(v))
  9341. if e.h.Canonical {
  9342. v2 := make([]int64, len(v))
  9343. var i int
  9344. for k, _ := range v {
  9345. v2[i] = int64(k)
  9346. i++
  9347. }
  9348. sort.Sort(intSlice(v2))
  9349. for _, k2 := range v2 {
  9350. if esep {
  9351. ee.WriteMapElemKey()
  9352. }
  9353. ee.EncodeInt(int64(int(k2)))
  9354. if esep {
  9355. ee.WriteMapElemValue()
  9356. }
  9357. e.encode(v[int(k2)])
  9358. }
  9359. } else {
  9360. for k2, v2 := range v {
  9361. if esep {
  9362. ee.WriteMapElemKey()
  9363. }
  9364. ee.EncodeInt(int64(k2))
  9365. if esep {
  9366. ee.WriteMapElemValue()
  9367. }
  9368. e.encode(v2)
  9369. }
  9370. }
  9371. ee.WriteMapEnd()
  9372. }
  9373. func (e *Encoder) fastpathEncMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  9374. fastpathTV.EncMapIntIntV(rv2i(rv).(map[int]int), e)
  9375. }
  9376. func (_ fastpathT) EncMapIntIntV(v map[int]int, e *Encoder) {
  9377. if v == nil {
  9378. e.e.EncodeNil()
  9379. return
  9380. }
  9381. ee, esep := e.e, e.hh.hasElemSeparators()
  9382. ee.WriteMapStart(len(v))
  9383. if e.h.Canonical {
  9384. v2 := make([]int64, len(v))
  9385. var i int
  9386. for k, _ := range v {
  9387. v2[i] = int64(k)
  9388. i++
  9389. }
  9390. sort.Sort(intSlice(v2))
  9391. for _, k2 := range v2 {
  9392. if esep {
  9393. ee.WriteMapElemKey()
  9394. }
  9395. ee.EncodeInt(int64(int(k2)))
  9396. if esep {
  9397. ee.WriteMapElemValue()
  9398. }
  9399. ee.EncodeInt(int64(v[int(k2)]))
  9400. }
  9401. } else {
  9402. for k2, v2 := range v {
  9403. if esep {
  9404. ee.WriteMapElemKey()
  9405. }
  9406. ee.EncodeInt(int64(k2))
  9407. if esep {
  9408. ee.WriteMapElemValue()
  9409. }
  9410. ee.EncodeInt(int64(v2))
  9411. }
  9412. }
  9413. ee.WriteMapEnd()
  9414. }
  9415. func (e *Encoder) fastpathEncMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  9416. fastpathTV.EncMapIntInt8V(rv2i(rv).(map[int]int8), e)
  9417. }
  9418. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, e *Encoder) {
  9419. if v == nil {
  9420. e.e.EncodeNil()
  9421. return
  9422. }
  9423. ee, esep := e.e, e.hh.hasElemSeparators()
  9424. ee.WriteMapStart(len(v))
  9425. if e.h.Canonical {
  9426. v2 := make([]int64, len(v))
  9427. var i int
  9428. for k, _ := range v {
  9429. v2[i] = int64(k)
  9430. i++
  9431. }
  9432. sort.Sort(intSlice(v2))
  9433. for _, k2 := range v2 {
  9434. if esep {
  9435. ee.WriteMapElemKey()
  9436. }
  9437. ee.EncodeInt(int64(int(k2)))
  9438. if esep {
  9439. ee.WriteMapElemValue()
  9440. }
  9441. ee.EncodeInt(int64(v[int(k2)]))
  9442. }
  9443. } else {
  9444. for k2, v2 := range v {
  9445. if esep {
  9446. ee.WriteMapElemKey()
  9447. }
  9448. ee.EncodeInt(int64(k2))
  9449. if esep {
  9450. ee.WriteMapElemValue()
  9451. }
  9452. ee.EncodeInt(int64(v2))
  9453. }
  9454. }
  9455. ee.WriteMapEnd()
  9456. }
  9457. func (e *Encoder) fastpathEncMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  9458. fastpathTV.EncMapIntInt16V(rv2i(rv).(map[int]int16), e)
  9459. }
  9460. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, e *Encoder) {
  9461. if v == nil {
  9462. e.e.EncodeNil()
  9463. return
  9464. }
  9465. ee, esep := e.e, e.hh.hasElemSeparators()
  9466. ee.WriteMapStart(len(v))
  9467. if e.h.Canonical {
  9468. v2 := make([]int64, len(v))
  9469. var i int
  9470. for k, _ := range v {
  9471. v2[i] = int64(k)
  9472. i++
  9473. }
  9474. sort.Sort(intSlice(v2))
  9475. for _, k2 := range v2 {
  9476. if esep {
  9477. ee.WriteMapElemKey()
  9478. }
  9479. ee.EncodeInt(int64(int(k2)))
  9480. if esep {
  9481. ee.WriteMapElemValue()
  9482. }
  9483. ee.EncodeInt(int64(v[int(k2)]))
  9484. }
  9485. } else {
  9486. for k2, v2 := range v {
  9487. if esep {
  9488. ee.WriteMapElemKey()
  9489. }
  9490. ee.EncodeInt(int64(k2))
  9491. if esep {
  9492. ee.WriteMapElemValue()
  9493. }
  9494. ee.EncodeInt(int64(v2))
  9495. }
  9496. }
  9497. ee.WriteMapEnd()
  9498. }
  9499. func (e *Encoder) fastpathEncMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  9500. fastpathTV.EncMapIntInt32V(rv2i(rv).(map[int]int32), e)
  9501. }
  9502. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, e *Encoder) {
  9503. if v == nil {
  9504. e.e.EncodeNil()
  9505. return
  9506. }
  9507. ee, esep := e.e, e.hh.hasElemSeparators()
  9508. ee.WriteMapStart(len(v))
  9509. if e.h.Canonical {
  9510. v2 := make([]int64, len(v))
  9511. var i int
  9512. for k, _ := range v {
  9513. v2[i] = int64(k)
  9514. i++
  9515. }
  9516. sort.Sort(intSlice(v2))
  9517. for _, k2 := range v2 {
  9518. if esep {
  9519. ee.WriteMapElemKey()
  9520. }
  9521. ee.EncodeInt(int64(int(k2)))
  9522. if esep {
  9523. ee.WriteMapElemValue()
  9524. }
  9525. ee.EncodeInt(int64(v[int(k2)]))
  9526. }
  9527. } else {
  9528. for k2, v2 := range v {
  9529. if esep {
  9530. ee.WriteMapElemKey()
  9531. }
  9532. ee.EncodeInt(int64(k2))
  9533. if esep {
  9534. ee.WriteMapElemValue()
  9535. }
  9536. ee.EncodeInt(int64(v2))
  9537. }
  9538. }
  9539. ee.WriteMapEnd()
  9540. }
  9541. func (e *Encoder) fastpathEncMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  9542. fastpathTV.EncMapIntInt64V(rv2i(rv).(map[int]int64), e)
  9543. }
  9544. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, e *Encoder) {
  9545. if v == nil {
  9546. e.e.EncodeNil()
  9547. return
  9548. }
  9549. ee, esep := e.e, e.hh.hasElemSeparators()
  9550. ee.WriteMapStart(len(v))
  9551. if e.h.Canonical {
  9552. v2 := make([]int64, len(v))
  9553. var i int
  9554. for k, _ := range v {
  9555. v2[i] = int64(k)
  9556. i++
  9557. }
  9558. sort.Sort(intSlice(v2))
  9559. for _, k2 := range v2 {
  9560. if esep {
  9561. ee.WriteMapElemKey()
  9562. }
  9563. ee.EncodeInt(int64(int(k2)))
  9564. if esep {
  9565. ee.WriteMapElemValue()
  9566. }
  9567. ee.EncodeInt(int64(v[int(k2)]))
  9568. }
  9569. } else {
  9570. for k2, v2 := range v {
  9571. if esep {
  9572. ee.WriteMapElemKey()
  9573. }
  9574. ee.EncodeInt(int64(k2))
  9575. if esep {
  9576. ee.WriteMapElemValue()
  9577. }
  9578. ee.EncodeInt(int64(v2))
  9579. }
  9580. }
  9581. ee.WriteMapEnd()
  9582. }
  9583. func (e *Encoder) fastpathEncMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  9584. fastpathTV.EncMapIntFloat32V(rv2i(rv).(map[int]float32), e)
  9585. }
  9586. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, e *Encoder) {
  9587. if v == nil {
  9588. e.e.EncodeNil()
  9589. return
  9590. }
  9591. ee, esep := e.e, e.hh.hasElemSeparators()
  9592. ee.WriteMapStart(len(v))
  9593. if e.h.Canonical {
  9594. v2 := make([]int64, len(v))
  9595. var i int
  9596. for k, _ := range v {
  9597. v2[i] = int64(k)
  9598. i++
  9599. }
  9600. sort.Sort(intSlice(v2))
  9601. for _, k2 := range v2 {
  9602. if esep {
  9603. ee.WriteMapElemKey()
  9604. }
  9605. ee.EncodeInt(int64(int(k2)))
  9606. if esep {
  9607. ee.WriteMapElemValue()
  9608. }
  9609. ee.EncodeFloat32(v[int(k2)])
  9610. }
  9611. } else {
  9612. for k2, v2 := range v {
  9613. if esep {
  9614. ee.WriteMapElemKey()
  9615. }
  9616. ee.EncodeInt(int64(k2))
  9617. if esep {
  9618. ee.WriteMapElemValue()
  9619. }
  9620. ee.EncodeFloat32(v2)
  9621. }
  9622. }
  9623. ee.WriteMapEnd()
  9624. }
  9625. func (e *Encoder) fastpathEncMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  9626. fastpathTV.EncMapIntFloat64V(rv2i(rv).(map[int]float64), e)
  9627. }
  9628. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, e *Encoder) {
  9629. if v == nil {
  9630. e.e.EncodeNil()
  9631. return
  9632. }
  9633. ee, esep := e.e, e.hh.hasElemSeparators()
  9634. ee.WriteMapStart(len(v))
  9635. if e.h.Canonical {
  9636. v2 := make([]int64, len(v))
  9637. var i int
  9638. for k, _ := range v {
  9639. v2[i] = int64(k)
  9640. i++
  9641. }
  9642. sort.Sort(intSlice(v2))
  9643. for _, k2 := range v2 {
  9644. if esep {
  9645. ee.WriteMapElemKey()
  9646. }
  9647. ee.EncodeInt(int64(int(k2)))
  9648. if esep {
  9649. ee.WriteMapElemValue()
  9650. }
  9651. ee.EncodeFloat64(v[int(k2)])
  9652. }
  9653. } else {
  9654. for k2, v2 := range v {
  9655. if esep {
  9656. ee.WriteMapElemKey()
  9657. }
  9658. ee.EncodeInt(int64(k2))
  9659. if esep {
  9660. ee.WriteMapElemValue()
  9661. }
  9662. ee.EncodeFloat64(v2)
  9663. }
  9664. }
  9665. ee.WriteMapEnd()
  9666. }
  9667. func (e *Encoder) fastpathEncMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  9668. fastpathTV.EncMapIntBoolV(rv2i(rv).(map[int]bool), e)
  9669. }
  9670. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, e *Encoder) {
  9671. if v == nil {
  9672. e.e.EncodeNil()
  9673. return
  9674. }
  9675. ee, esep := e.e, e.hh.hasElemSeparators()
  9676. ee.WriteMapStart(len(v))
  9677. if e.h.Canonical {
  9678. v2 := make([]int64, len(v))
  9679. var i int
  9680. for k, _ := range v {
  9681. v2[i] = int64(k)
  9682. i++
  9683. }
  9684. sort.Sort(intSlice(v2))
  9685. for _, k2 := range v2 {
  9686. if esep {
  9687. ee.WriteMapElemKey()
  9688. }
  9689. ee.EncodeInt(int64(int(k2)))
  9690. if esep {
  9691. ee.WriteMapElemValue()
  9692. }
  9693. ee.EncodeBool(v[int(k2)])
  9694. }
  9695. } else {
  9696. for k2, v2 := range v {
  9697. if esep {
  9698. ee.WriteMapElemKey()
  9699. }
  9700. ee.EncodeInt(int64(k2))
  9701. if esep {
  9702. ee.WriteMapElemValue()
  9703. }
  9704. ee.EncodeBool(v2)
  9705. }
  9706. }
  9707. ee.WriteMapEnd()
  9708. }
  9709. func (e *Encoder) fastpathEncMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  9710. fastpathTV.EncMapInt8IntfV(rv2i(rv).(map[int8]interface{}), e)
  9711. }
  9712. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, e *Encoder) {
  9713. if v == nil {
  9714. e.e.EncodeNil()
  9715. return
  9716. }
  9717. ee, esep := e.e, e.hh.hasElemSeparators()
  9718. ee.WriteMapStart(len(v))
  9719. if e.h.Canonical {
  9720. v2 := make([]int64, len(v))
  9721. var i int
  9722. for k, _ := range v {
  9723. v2[i] = int64(k)
  9724. i++
  9725. }
  9726. sort.Sort(intSlice(v2))
  9727. for _, k2 := range v2 {
  9728. if esep {
  9729. ee.WriteMapElemKey()
  9730. }
  9731. ee.EncodeInt(int64(int8(k2)))
  9732. if esep {
  9733. ee.WriteMapElemValue()
  9734. }
  9735. e.encode(v[int8(k2)])
  9736. }
  9737. } else {
  9738. for k2, v2 := range v {
  9739. if esep {
  9740. ee.WriteMapElemKey()
  9741. }
  9742. ee.EncodeInt(int64(k2))
  9743. if esep {
  9744. ee.WriteMapElemValue()
  9745. }
  9746. e.encode(v2)
  9747. }
  9748. }
  9749. ee.WriteMapEnd()
  9750. }
  9751. func (e *Encoder) fastpathEncMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  9752. fastpathTV.EncMapInt8StringV(rv2i(rv).(map[int8]string), e)
  9753. }
  9754. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, e *Encoder) {
  9755. if v == nil {
  9756. e.e.EncodeNil()
  9757. return
  9758. }
  9759. ee, esep := e.e, e.hh.hasElemSeparators()
  9760. ee.WriteMapStart(len(v))
  9761. if e.h.Canonical {
  9762. v2 := make([]int64, len(v))
  9763. var i int
  9764. for k, _ := range v {
  9765. v2[i] = int64(k)
  9766. i++
  9767. }
  9768. sort.Sort(intSlice(v2))
  9769. for _, k2 := range v2 {
  9770. if esep {
  9771. ee.WriteMapElemKey()
  9772. }
  9773. ee.EncodeInt(int64(int8(k2)))
  9774. if esep {
  9775. ee.WriteMapElemValue()
  9776. }
  9777. ee.EncodeString(c_UTF8, v[int8(k2)])
  9778. }
  9779. } else {
  9780. for k2, v2 := range v {
  9781. if esep {
  9782. ee.WriteMapElemKey()
  9783. }
  9784. ee.EncodeInt(int64(k2))
  9785. if esep {
  9786. ee.WriteMapElemValue()
  9787. }
  9788. ee.EncodeString(c_UTF8, v2)
  9789. }
  9790. }
  9791. ee.WriteMapEnd()
  9792. }
  9793. func (e *Encoder) fastpathEncMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  9794. fastpathTV.EncMapInt8UintV(rv2i(rv).(map[int8]uint), e)
  9795. }
  9796. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, e *Encoder) {
  9797. if v == nil {
  9798. e.e.EncodeNil()
  9799. return
  9800. }
  9801. ee, esep := e.e, e.hh.hasElemSeparators()
  9802. ee.WriteMapStart(len(v))
  9803. if e.h.Canonical {
  9804. v2 := make([]int64, len(v))
  9805. var i int
  9806. for k, _ := range v {
  9807. v2[i] = int64(k)
  9808. i++
  9809. }
  9810. sort.Sort(intSlice(v2))
  9811. for _, k2 := range v2 {
  9812. if esep {
  9813. ee.WriteMapElemKey()
  9814. }
  9815. ee.EncodeInt(int64(int8(k2)))
  9816. if esep {
  9817. ee.WriteMapElemValue()
  9818. }
  9819. ee.EncodeUint(uint64(v[int8(k2)]))
  9820. }
  9821. } else {
  9822. for k2, v2 := range v {
  9823. if esep {
  9824. ee.WriteMapElemKey()
  9825. }
  9826. ee.EncodeInt(int64(k2))
  9827. if esep {
  9828. ee.WriteMapElemValue()
  9829. }
  9830. ee.EncodeUint(uint64(v2))
  9831. }
  9832. }
  9833. ee.WriteMapEnd()
  9834. }
  9835. func (e *Encoder) fastpathEncMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  9836. fastpathTV.EncMapInt8Uint8V(rv2i(rv).(map[int8]uint8), e)
  9837. }
  9838. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, e *Encoder) {
  9839. if v == nil {
  9840. e.e.EncodeNil()
  9841. return
  9842. }
  9843. ee, esep := e.e, e.hh.hasElemSeparators()
  9844. ee.WriteMapStart(len(v))
  9845. if e.h.Canonical {
  9846. v2 := make([]int64, len(v))
  9847. var i int
  9848. for k, _ := range v {
  9849. v2[i] = int64(k)
  9850. i++
  9851. }
  9852. sort.Sort(intSlice(v2))
  9853. for _, k2 := range v2 {
  9854. if esep {
  9855. ee.WriteMapElemKey()
  9856. }
  9857. ee.EncodeInt(int64(int8(k2)))
  9858. if esep {
  9859. ee.WriteMapElemValue()
  9860. }
  9861. ee.EncodeUint(uint64(v[int8(k2)]))
  9862. }
  9863. } else {
  9864. for k2, v2 := range v {
  9865. if esep {
  9866. ee.WriteMapElemKey()
  9867. }
  9868. ee.EncodeInt(int64(k2))
  9869. if esep {
  9870. ee.WriteMapElemValue()
  9871. }
  9872. ee.EncodeUint(uint64(v2))
  9873. }
  9874. }
  9875. ee.WriteMapEnd()
  9876. }
  9877. func (e *Encoder) fastpathEncMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  9878. fastpathTV.EncMapInt8Uint16V(rv2i(rv).(map[int8]uint16), e)
  9879. }
  9880. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, e *Encoder) {
  9881. if v == nil {
  9882. e.e.EncodeNil()
  9883. return
  9884. }
  9885. ee, esep := e.e, e.hh.hasElemSeparators()
  9886. ee.WriteMapStart(len(v))
  9887. if e.h.Canonical {
  9888. v2 := make([]int64, len(v))
  9889. var i int
  9890. for k, _ := range v {
  9891. v2[i] = int64(k)
  9892. i++
  9893. }
  9894. sort.Sort(intSlice(v2))
  9895. for _, k2 := range v2 {
  9896. if esep {
  9897. ee.WriteMapElemKey()
  9898. }
  9899. ee.EncodeInt(int64(int8(k2)))
  9900. if esep {
  9901. ee.WriteMapElemValue()
  9902. }
  9903. ee.EncodeUint(uint64(v[int8(k2)]))
  9904. }
  9905. } else {
  9906. for k2, v2 := range v {
  9907. if esep {
  9908. ee.WriteMapElemKey()
  9909. }
  9910. ee.EncodeInt(int64(k2))
  9911. if esep {
  9912. ee.WriteMapElemValue()
  9913. }
  9914. ee.EncodeUint(uint64(v2))
  9915. }
  9916. }
  9917. ee.WriteMapEnd()
  9918. }
  9919. func (e *Encoder) fastpathEncMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  9920. fastpathTV.EncMapInt8Uint32V(rv2i(rv).(map[int8]uint32), e)
  9921. }
  9922. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, e *Encoder) {
  9923. if v == nil {
  9924. e.e.EncodeNil()
  9925. return
  9926. }
  9927. ee, esep := e.e, e.hh.hasElemSeparators()
  9928. ee.WriteMapStart(len(v))
  9929. if e.h.Canonical {
  9930. v2 := make([]int64, len(v))
  9931. var i int
  9932. for k, _ := range v {
  9933. v2[i] = int64(k)
  9934. i++
  9935. }
  9936. sort.Sort(intSlice(v2))
  9937. for _, k2 := range v2 {
  9938. if esep {
  9939. ee.WriteMapElemKey()
  9940. }
  9941. ee.EncodeInt(int64(int8(k2)))
  9942. if esep {
  9943. ee.WriteMapElemValue()
  9944. }
  9945. ee.EncodeUint(uint64(v[int8(k2)]))
  9946. }
  9947. } else {
  9948. for k2, v2 := range v {
  9949. if esep {
  9950. ee.WriteMapElemKey()
  9951. }
  9952. ee.EncodeInt(int64(k2))
  9953. if esep {
  9954. ee.WriteMapElemValue()
  9955. }
  9956. ee.EncodeUint(uint64(v2))
  9957. }
  9958. }
  9959. ee.WriteMapEnd()
  9960. }
  9961. func (e *Encoder) fastpathEncMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  9962. fastpathTV.EncMapInt8Uint64V(rv2i(rv).(map[int8]uint64), e)
  9963. }
  9964. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, e *Encoder) {
  9965. if v == nil {
  9966. e.e.EncodeNil()
  9967. return
  9968. }
  9969. ee, esep := e.e, e.hh.hasElemSeparators()
  9970. ee.WriteMapStart(len(v))
  9971. if e.h.Canonical {
  9972. v2 := make([]int64, len(v))
  9973. var i int
  9974. for k, _ := range v {
  9975. v2[i] = int64(k)
  9976. i++
  9977. }
  9978. sort.Sort(intSlice(v2))
  9979. for _, k2 := range v2 {
  9980. if esep {
  9981. ee.WriteMapElemKey()
  9982. }
  9983. ee.EncodeInt(int64(int8(k2)))
  9984. if esep {
  9985. ee.WriteMapElemValue()
  9986. }
  9987. ee.EncodeUint(uint64(v[int8(k2)]))
  9988. }
  9989. } else {
  9990. for k2, v2 := range v {
  9991. if esep {
  9992. ee.WriteMapElemKey()
  9993. }
  9994. ee.EncodeInt(int64(k2))
  9995. if esep {
  9996. ee.WriteMapElemValue()
  9997. }
  9998. ee.EncodeUint(uint64(v2))
  9999. }
  10000. }
  10001. ee.WriteMapEnd()
  10002. }
  10003. func (e *Encoder) fastpathEncMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  10004. fastpathTV.EncMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), e)
  10005. }
  10006. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, e *Encoder) {
  10007. if v == nil {
  10008. e.e.EncodeNil()
  10009. return
  10010. }
  10011. ee, esep := e.e, e.hh.hasElemSeparators()
  10012. ee.WriteMapStart(len(v))
  10013. if e.h.Canonical {
  10014. v2 := make([]int64, len(v))
  10015. var i int
  10016. for k, _ := range v {
  10017. v2[i] = int64(k)
  10018. i++
  10019. }
  10020. sort.Sort(intSlice(v2))
  10021. for _, k2 := range v2 {
  10022. if esep {
  10023. ee.WriteMapElemKey()
  10024. }
  10025. ee.EncodeInt(int64(int8(k2)))
  10026. if esep {
  10027. ee.WriteMapElemValue()
  10028. }
  10029. e.encode(v[int8(k2)])
  10030. }
  10031. } else {
  10032. for k2, v2 := range v {
  10033. if esep {
  10034. ee.WriteMapElemKey()
  10035. }
  10036. ee.EncodeInt(int64(k2))
  10037. if esep {
  10038. ee.WriteMapElemValue()
  10039. }
  10040. e.encode(v2)
  10041. }
  10042. }
  10043. ee.WriteMapEnd()
  10044. }
  10045. func (e *Encoder) fastpathEncMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  10046. fastpathTV.EncMapInt8IntV(rv2i(rv).(map[int8]int), e)
  10047. }
  10048. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, e *Encoder) {
  10049. if v == nil {
  10050. e.e.EncodeNil()
  10051. return
  10052. }
  10053. ee, esep := e.e, e.hh.hasElemSeparators()
  10054. ee.WriteMapStart(len(v))
  10055. if e.h.Canonical {
  10056. v2 := make([]int64, len(v))
  10057. var i int
  10058. for k, _ := range v {
  10059. v2[i] = int64(k)
  10060. i++
  10061. }
  10062. sort.Sort(intSlice(v2))
  10063. for _, k2 := range v2 {
  10064. if esep {
  10065. ee.WriteMapElemKey()
  10066. }
  10067. ee.EncodeInt(int64(int8(k2)))
  10068. if esep {
  10069. ee.WriteMapElemValue()
  10070. }
  10071. ee.EncodeInt(int64(v[int8(k2)]))
  10072. }
  10073. } else {
  10074. for k2, v2 := range v {
  10075. if esep {
  10076. ee.WriteMapElemKey()
  10077. }
  10078. ee.EncodeInt(int64(k2))
  10079. if esep {
  10080. ee.WriteMapElemValue()
  10081. }
  10082. ee.EncodeInt(int64(v2))
  10083. }
  10084. }
  10085. ee.WriteMapEnd()
  10086. }
  10087. func (e *Encoder) fastpathEncMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  10088. fastpathTV.EncMapInt8Int8V(rv2i(rv).(map[int8]int8), e)
  10089. }
  10090. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, e *Encoder) {
  10091. if v == nil {
  10092. e.e.EncodeNil()
  10093. return
  10094. }
  10095. ee, esep := e.e, e.hh.hasElemSeparators()
  10096. ee.WriteMapStart(len(v))
  10097. if e.h.Canonical {
  10098. v2 := make([]int64, len(v))
  10099. var i int
  10100. for k, _ := range v {
  10101. v2[i] = int64(k)
  10102. i++
  10103. }
  10104. sort.Sort(intSlice(v2))
  10105. for _, k2 := range v2 {
  10106. if esep {
  10107. ee.WriteMapElemKey()
  10108. }
  10109. ee.EncodeInt(int64(int8(k2)))
  10110. if esep {
  10111. ee.WriteMapElemValue()
  10112. }
  10113. ee.EncodeInt(int64(v[int8(k2)]))
  10114. }
  10115. } else {
  10116. for k2, v2 := range v {
  10117. if esep {
  10118. ee.WriteMapElemKey()
  10119. }
  10120. ee.EncodeInt(int64(k2))
  10121. if esep {
  10122. ee.WriteMapElemValue()
  10123. }
  10124. ee.EncodeInt(int64(v2))
  10125. }
  10126. }
  10127. ee.WriteMapEnd()
  10128. }
  10129. func (e *Encoder) fastpathEncMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  10130. fastpathTV.EncMapInt8Int16V(rv2i(rv).(map[int8]int16), e)
  10131. }
  10132. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, e *Encoder) {
  10133. if v == nil {
  10134. e.e.EncodeNil()
  10135. return
  10136. }
  10137. ee, esep := e.e, e.hh.hasElemSeparators()
  10138. ee.WriteMapStart(len(v))
  10139. if e.h.Canonical {
  10140. v2 := make([]int64, len(v))
  10141. var i int
  10142. for k, _ := range v {
  10143. v2[i] = int64(k)
  10144. i++
  10145. }
  10146. sort.Sort(intSlice(v2))
  10147. for _, k2 := range v2 {
  10148. if esep {
  10149. ee.WriteMapElemKey()
  10150. }
  10151. ee.EncodeInt(int64(int8(k2)))
  10152. if esep {
  10153. ee.WriteMapElemValue()
  10154. }
  10155. ee.EncodeInt(int64(v[int8(k2)]))
  10156. }
  10157. } else {
  10158. for k2, v2 := range v {
  10159. if esep {
  10160. ee.WriteMapElemKey()
  10161. }
  10162. ee.EncodeInt(int64(k2))
  10163. if esep {
  10164. ee.WriteMapElemValue()
  10165. }
  10166. ee.EncodeInt(int64(v2))
  10167. }
  10168. }
  10169. ee.WriteMapEnd()
  10170. }
  10171. func (e *Encoder) fastpathEncMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  10172. fastpathTV.EncMapInt8Int32V(rv2i(rv).(map[int8]int32), e)
  10173. }
  10174. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, e *Encoder) {
  10175. if v == nil {
  10176. e.e.EncodeNil()
  10177. return
  10178. }
  10179. ee, esep := e.e, e.hh.hasElemSeparators()
  10180. ee.WriteMapStart(len(v))
  10181. if e.h.Canonical {
  10182. v2 := make([]int64, len(v))
  10183. var i int
  10184. for k, _ := range v {
  10185. v2[i] = int64(k)
  10186. i++
  10187. }
  10188. sort.Sort(intSlice(v2))
  10189. for _, k2 := range v2 {
  10190. if esep {
  10191. ee.WriteMapElemKey()
  10192. }
  10193. ee.EncodeInt(int64(int8(k2)))
  10194. if esep {
  10195. ee.WriteMapElemValue()
  10196. }
  10197. ee.EncodeInt(int64(v[int8(k2)]))
  10198. }
  10199. } else {
  10200. for k2, v2 := range v {
  10201. if esep {
  10202. ee.WriteMapElemKey()
  10203. }
  10204. ee.EncodeInt(int64(k2))
  10205. if esep {
  10206. ee.WriteMapElemValue()
  10207. }
  10208. ee.EncodeInt(int64(v2))
  10209. }
  10210. }
  10211. ee.WriteMapEnd()
  10212. }
  10213. func (e *Encoder) fastpathEncMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  10214. fastpathTV.EncMapInt8Int64V(rv2i(rv).(map[int8]int64), e)
  10215. }
  10216. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, e *Encoder) {
  10217. if v == nil {
  10218. e.e.EncodeNil()
  10219. return
  10220. }
  10221. ee, esep := e.e, e.hh.hasElemSeparators()
  10222. ee.WriteMapStart(len(v))
  10223. if e.h.Canonical {
  10224. v2 := make([]int64, len(v))
  10225. var i int
  10226. for k, _ := range v {
  10227. v2[i] = int64(k)
  10228. i++
  10229. }
  10230. sort.Sort(intSlice(v2))
  10231. for _, k2 := range v2 {
  10232. if esep {
  10233. ee.WriteMapElemKey()
  10234. }
  10235. ee.EncodeInt(int64(int8(k2)))
  10236. if esep {
  10237. ee.WriteMapElemValue()
  10238. }
  10239. ee.EncodeInt(int64(v[int8(k2)]))
  10240. }
  10241. } else {
  10242. for k2, v2 := range v {
  10243. if esep {
  10244. ee.WriteMapElemKey()
  10245. }
  10246. ee.EncodeInt(int64(k2))
  10247. if esep {
  10248. ee.WriteMapElemValue()
  10249. }
  10250. ee.EncodeInt(int64(v2))
  10251. }
  10252. }
  10253. ee.WriteMapEnd()
  10254. }
  10255. func (e *Encoder) fastpathEncMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  10256. fastpathTV.EncMapInt8Float32V(rv2i(rv).(map[int8]float32), e)
  10257. }
  10258. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, e *Encoder) {
  10259. if v == nil {
  10260. e.e.EncodeNil()
  10261. return
  10262. }
  10263. ee, esep := e.e, e.hh.hasElemSeparators()
  10264. ee.WriteMapStart(len(v))
  10265. if e.h.Canonical {
  10266. v2 := make([]int64, len(v))
  10267. var i int
  10268. for k, _ := range v {
  10269. v2[i] = int64(k)
  10270. i++
  10271. }
  10272. sort.Sort(intSlice(v2))
  10273. for _, k2 := range v2 {
  10274. if esep {
  10275. ee.WriteMapElemKey()
  10276. }
  10277. ee.EncodeInt(int64(int8(k2)))
  10278. if esep {
  10279. ee.WriteMapElemValue()
  10280. }
  10281. ee.EncodeFloat32(v[int8(k2)])
  10282. }
  10283. } else {
  10284. for k2, v2 := range v {
  10285. if esep {
  10286. ee.WriteMapElemKey()
  10287. }
  10288. ee.EncodeInt(int64(k2))
  10289. if esep {
  10290. ee.WriteMapElemValue()
  10291. }
  10292. ee.EncodeFloat32(v2)
  10293. }
  10294. }
  10295. ee.WriteMapEnd()
  10296. }
  10297. func (e *Encoder) fastpathEncMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  10298. fastpathTV.EncMapInt8Float64V(rv2i(rv).(map[int8]float64), e)
  10299. }
  10300. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, e *Encoder) {
  10301. if v == nil {
  10302. e.e.EncodeNil()
  10303. return
  10304. }
  10305. ee, esep := e.e, e.hh.hasElemSeparators()
  10306. ee.WriteMapStart(len(v))
  10307. if e.h.Canonical {
  10308. v2 := make([]int64, len(v))
  10309. var i int
  10310. for k, _ := range v {
  10311. v2[i] = int64(k)
  10312. i++
  10313. }
  10314. sort.Sort(intSlice(v2))
  10315. for _, k2 := range v2 {
  10316. if esep {
  10317. ee.WriteMapElemKey()
  10318. }
  10319. ee.EncodeInt(int64(int8(k2)))
  10320. if esep {
  10321. ee.WriteMapElemValue()
  10322. }
  10323. ee.EncodeFloat64(v[int8(k2)])
  10324. }
  10325. } else {
  10326. for k2, v2 := range v {
  10327. if esep {
  10328. ee.WriteMapElemKey()
  10329. }
  10330. ee.EncodeInt(int64(k2))
  10331. if esep {
  10332. ee.WriteMapElemValue()
  10333. }
  10334. ee.EncodeFloat64(v2)
  10335. }
  10336. }
  10337. ee.WriteMapEnd()
  10338. }
  10339. func (e *Encoder) fastpathEncMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  10340. fastpathTV.EncMapInt8BoolV(rv2i(rv).(map[int8]bool), e)
  10341. }
  10342. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, e *Encoder) {
  10343. if v == nil {
  10344. e.e.EncodeNil()
  10345. return
  10346. }
  10347. ee, esep := e.e, e.hh.hasElemSeparators()
  10348. ee.WriteMapStart(len(v))
  10349. if e.h.Canonical {
  10350. v2 := make([]int64, len(v))
  10351. var i int
  10352. for k, _ := range v {
  10353. v2[i] = int64(k)
  10354. i++
  10355. }
  10356. sort.Sort(intSlice(v2))
  10357. for _, k2 := range v2 {
  10358. if esep {
  10359. ee.WriteMapElemKey()
  10360. }
  10361. ee.EncodeInt(int64(int8(k2)))
  10362. if esep {
  10363. ee.WriteMapElemValue()
  10364. }
  10365. ee.EncodeBool(v[int8(k2)])
  10366. }
  10367. } else {
  10368. for k2, v2 := range v {
  10369. if esep {
  10370. ee.WriteMapElemKey()
  10371. }
  10372. ee.EncodeInt(int64(k2))
  10373. if esep {
  10374. ee.WriteMapElemValue()
  10375. }
  10376. ee.EncodeBool(v2)
  10377. }
  10378. }
  10379. ee.WriteMapEnd()
  10380. }
  10381. func (e *Encoder) fastpathEncMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  10382. fastpathTV.EncMapInt16IntfV(rv2i(rv).(map[int16]interface{}), e)
  10383. }
  10384. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, e *Encoder) {
  10385. if v == nil {
  10386. e.e.EncodeNil()
  10387. return
  10388. }
  10389. ee, esep := e.e, e.hh.hasElemSeparators()
  10390. ee.WriteMapStart(len(v))
  10391. if e.h.Canonical {
  10392. v2 := make([]int64, len(v))
  10393. var i int
  10394. for k, _ := range v {
  10395. v2[i] = int64(k)
  10396. i++
  10397. }
  10398. sort.Sort(intSlice(v2))
  10399. for _, k2 := range v2 {
  10400. if esep {
  10401. ee.WriteMapElemKey()
  10402. }
  10403. ee.EncodeInt(int64(int16(k2)))
  10404. if esep {
  10405. ee.WriteMapElemValue()
  10406. }
  10407. e.encode(v[int16(k2)])
  10408. }
  10409. } else {
  10410. for k2, v2 := range v {
  10411. if esep {
  10412. ee.WriteMapElemKey()
  10413. }
  10414. ee.EncodeInt(int64(k2))
  10415. if esep {
  10416. ee.WriteMapElemValue()
  10417. }
  10418. e.encode(v2)
  10419. }
  10420. }
  10421. ee.WriteMapEnd()
  10422. }
  10423. func (e *Encoder) fastpathEncMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  10424. fastpathTV.EncMapInt16StringV(rv2i(rv).(map[int16]string), e)
  10425. }
  10426. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, e *Encoder) {
  10427. if v == nil {
  10428. e.e.EncodeNil()
  10429. return
  10430. }
  10431. ee, esep := e.e, e.hh.hasElemSeparators()
  10432. ee.WriteMapStart(len(v))
  10433. if e.h.Canonical {
  10434. v2 := make([]int64, len(v))
  10435. var i int
  10436. for k, _ := range v {
  10437. v2[i] = int64(k)
  10438. i++
  10439. }
  10440. sort.Sort(intSlice(v2))
  10441. for _, k2 := range v2 {
  10442. if esep {
  10443. ee.WriteMapElemKey()
  10444. }
  10445. ee.EncodeInt(int64(int16(k2)))
  10446. if esep {
  10447. ee.WriteMapElemValue()
  10448. }
  10449. ee.EncodeString(c_UTF8, v[int16(k2)])
  10450. }
  10451. } else {
  10452. for k2, v2 := range v {
  10453. if esep {
  10454. ee.WriteMapElemKey()
  10455. }
  10456. ee.EncodeInt(int64(k2))
  10457. if esep {
  10458. ee.WriteMapElemValue()
  10459. }
  10460. ee.EncodeString(c_UTF8, v2)
  10461. }
  10462. }
  10463. ee.WriteMapEnd()
  10464. }
  10465. func (e *Encoder) fastpathEncMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  10466. fastpathTV.EncMapInt16UintV(rv2i(rv).(map[int16]uint), e)
  10467. }
  10468. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, e *Encoder) {
  10469. if v == nil {
  10470. e.e.EncodeNil()
  10471. return
  10472. }
  10473. ee, esep := e.e, e.hh.hasElemSeparators()
  10474. ee.WriteMapStart(len(v))
  10475. if e.h.Canonical {
  10476. v2 := make([]int64, len(v))
  10477. var i int
  10478. for k, _ := range v {
  10479. v2[i] = int64(k)
  10480. i++
  10481. }
  10482. sort.Sort(intSlice(v2))
  10483. for _, k2 := range v2 {
  10484. if esep {
  10485. ee.WriteMapElemKey()
  10486. }
  10487. ee.EncodeInt(int64(int16(k2)))
  10488. if esep {
  10489. ee.WriteMapElemValue()
  10490. }
  10491. ee.EncodeUint(uint64(v[int16(k2)]))
  10492. }
  10493. } else {
  10494. for k2, v2 := range v {
  10495. if esep {
  10496. ee.WriteMapElemKey()
  10497. }
  10498. ee.EncodeInt(int64(k2))
  10499. if esep {
  10500. ee.WriteMapElemValue()
  10501. }
  10502. ee.EncodeUint(uint64(v2))
  10503. }
  10504. }
  10505. ee.WriteMapEnd()
  10506. }
  10507. func (e *Encoder) fastpathEncMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  10508. fastpathTV.EncMapInt16Uint8V(rv2i(rv).(map[int16]uint8), e)
  10509. }
  10510. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, e *Encoder) {
  10511. if v == nil {
  10512. e.e.EncodeNil()
  10513. return
  10514. }
  10515. ee, esep := e.e, e.hh.hasElemSeparators()
  10516. ee.WriteMapStart(len(v))
  10517. if e.h.Canonical {
  10518. v2 := make([]int64, len(v))
  10519. var i int
  10520. for k, _ := range v {
  10521. v2[i] = int64(k)
  10522. i++
  10523. }
  10524. sort.Sort(intSlice(v2))
  10525. for _, k2 := range v2 {
  10526. if esep {
  10527. ee.WriteMapElemKey()
  10528. }
  10529. ee.EncodeInt(int64(int16(k2)))
  10530. if esep {
  10531. ee.WriteMapElemValue()
  10532. }
  10533. ee.EncodeUint(uint64(v[int16(k2)]))
  10534. }
  10535. } else {
  10536. for k2, v2 := range v {
  10537. if esep {
  10538. ee.WriteMapElemKey()
  10539. }
  10540. ee.EncodeInt(int64(k2))
  10541. if esep {
  10542. ee.WriteMapElemValue()
  10543. }
  10544. ee.EncodeUint(uint64(v2))
  10545. }
  10546. }
  10547. ee.WriteMapEnd()
  10548. }
  10549. func (e *Encoder) fastpathEncMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  10550. fastpathTV.EncMapInt16Uint16V(rv2i(rv).(map[int16]uint16), e)
  10551. }
  10552. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, e *Encoder) {
  10553. if v == nil {
  10554. e.e.EncodeNil()
  10555. return
  10556. }
  10557. ee, esep := e.e, e.hh.hasElemSeparators()
  10558. ee.WriteMapStart(len(v))
  10559. if e.h.Canonical {
  10560. v2 := make([]int64, len(v))
  10561. var i int
  10562. for k, _ := range v {
  10563. v2[i] = int64(k)
  10564. i++
  10565. }
  10566. sort.Sort(intSlice(v2))
  10567. for _, k2 := range v2 {
  10568. if esep {
  10569. ee.WriteMapElemKey()
  10570. }
  10571. ee.EncodeInt(int64(int16(k2)))
  10572. if esep {
  10573. ee.WriteMapElemValue()
  10574. }
  10575. ee.EncodeUint(uint64(v[int16(k2)]))
  10576. }
  10577. } else {
  10578. for k2, v2 := range v {
  10579. if esep {
  10580. ee.WriteMapElemKey()
  10581. }
  10582. ee.EncodeInt(int64(k2))
  10583. if esep {
  10584. ee.WriteMapElemValue()
  10585. }
  10586. ee.EncodeUint(uint64(v2))
  10587. }
  10588. }
  10589. ee.WriteMapEnd()
  10590. }
  10591. func (e *Encoder) fastpathEncMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  10592. fastpathTV.EncMapInt16Uint32V(rv2i(rv).(map[int16]uint32), e)
  10593. }
  10594. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, e *Encoder) {
  10595. if v == nil {
  10596. e.e.EncodeNil()
  10597. return
  10598. }
  10599. ee, esep := e.e, e.hh.hasElemSeparators()
  10600. ee.WriteMapStart(len(v))
  10601. if e.h.Canonical {
  10602. v2 := make([]int64, len(v))
  10603. var i int
  10604. for k, _ := range v {
  10605. v2[i] = int64(k)
  10606. i++
  10607. }
  10608. sort.Sort(intSlice(v2))
  10609. for _, k2 := range v2 {
  10610. if esep {
  10611. ee.WriteMapElemKey()
  10612. }
  10613. ee.EncodeInt(int64(int16(k2)))
  10614. if esep {
  10615. ee.WriteMapElemValue()
  10616. }
  10617. ee.EncodeUint(uint64(v[int16(k2)]))
  10618. }
  10619. } else {
  10620. for k2, v2 := range v {
  10621. if esep {
  10622. ee.WriteMapElemKey()
  10623. }
  10624. ee.EncodeInt(int64(k2))
  10625. if esep {
  10626. ee.WriteMapElemValue()
  10627. }
  10628. ee.EncodeUint(uint64(v2))
  10629. }
  10630. }
  10631. ee.WriteMapEnd()
  10632. }
  10633. func (e *Encoder) fastpathEncMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  10634. fastpathTV.EncMapInt16Uint64V(rv2i(rv).(map[int16]uint64), e)
  10635. }
  10636. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, e *Encoder) {
  10637. if v == nil {
  10638. e.e.EncodeNil()
  10639. return
  10640. }
  10641. ee, esep := e.e, e.hh.hasElemSeparators()
  10642. ee.WriteMapStart(len(v))
  10643. if e.h.Canonical {
  10644. v2 := make([]int64, len(v))
  10645. var i int
  10646. for k, _ := range v {
  10647. v2[i] = int64(k)
  10648. i++
  10649. }
  10650. sort.Sort(intSlice(v2))
  10651. for _, k2 := range v2 {
  10652. if esep {
  10653. ee.WriteMapElemKey()
  10654. }
  10655. ee.EncodeInt(int64(int16(k2)))
  10656. if esep {
  10657. ee.WriteMapElemValue()
  10658. }
  10659. ee.EncodeUint(uint64(v[int16(k2)]))
  10660. }
  10661. } else {
  10662. for k2, v2 := range v {
  10663. if esep {
  10664. ee.WriteMapElemKey()
  10665. }
  10666. ee.EncodeInt(int64(k2))
  10667. if esep {
  10668. ee.WriteMapElemValue()
  10669. }
  10670. ee.EncodeUint(uint64(v2))
  10671. }
  10672. }
  10673. ee.WriteMapEnd()
  10674. }
  10675. func (e *Encoder) fastpathEncMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  10676. fastpathTV.EncMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), e)
  10677. }
  10678. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, e *Encoder) {
  10679. if v == nil {
  10680. e.e.EncodeNil()
  10681. return
  10682. }
  10683. ee, esep := e.e, e.hh.hasElemSeparators()
  10684. ee.WriteMapStart(len(v))
  10685. if e.h.Canonical {
  10686. v2 := make([]int64, len(v))
  10687. var i int
  10688. for k, _ := range v {
  10689. v2[i] = int64(k)
  10690. i++
  10691. }
  10692. sort.Sort(intSlice(v2))
  10693. for _, k2 := range v2 {
  10694. if esep {
  10695. ee.WriteMapElemKey()
  10696. }
  10697. ee.EncodeInt(int64(int16(k2)))
  10698. if esep {
  10699. ee.WriteMapElemValue()
  10700. }
  10701. e.encode(v[int16(k2)])
  10702. }
  10703. } else {
  10704. for k2, v2 := range v {
  10705. if esep {
  10706. ee.WriteMapElemKey()
  10707. }
  10708. ee.EncodeInt(int64(k2))
  10709. if esep {
  10710. ee.WriteMapElemValue()
  10711. }
  10712. e.encode(v2)
  10713. }
  10714. }
  10715. ee.WriteMapEnd()
  10716. }
  10717. func (e *Encoder) fastpathEncMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  10718. fastpathTV.EncMapInt16IntV(rv2i(rv).(map[int16]int), e)
  10719. }
  10720. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, e *Encoder) {
  10721. if v == nil {
  10722. e.e.EncodeNil()
  10723. return
  10724. }
  10725. ee, esep := e.e, e.hh.hasElemSeparators()
  10726. ee.WriteMapStart(len(v))
  10727. if e.h.Canonical {
  10728. v2 := make([]int64, len(v))
  10729. var i int
  10730. for k, _ := range v {
  10731. v2[i] = int64(k)
  10732. i++
  10733. }
  10734. sort.Sort(intSlice(v2))
  10735. for _, k2 := range v2 {
  10736. if esep {
  10737. ee.WriteMapElemKey()
  10738. }
  10739. ee.EncodeInt(int64(int16(k2)))
  10740. if esep {
  10741. ee.WriteMapElemValue()
  10742. }
  10743. ee.EncodeInt(int64(v[int16(k2)]))
  10744. }
  10745. } else {
  10746. for k2, v2 := range v {
  10747. if esep {
  10748. ee.WriteMapElemKey()
  10749. }
  10750. ee.EncodeInt(int64(k2))
  10751. if esep {
  10752. ee.WriteMapElemValue()
  10753. }
  10754. ee.EncodeInt(int64(v2))
  10755. }
  10756. }
  10757. ee.WriteMapEnd()
  10758. }
  10759. func (e *Encoder) fastpathEncMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  10760. fastpathTV.EncMapInt16Int8V(rv2i(rv).(map[int16]int8), e)
  10761. }
  10762. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, e *Encoder) {
  10763. if v == nil {
  10764. e.e.EncodeNil()
  10765. return
  10766. }
  10767. ee, esep := e.e, e.hh.hasElemSeparators()
  10768. ee.WriteMapStart(len(v))
  10769. if e.h.Canonical {
  10770. v2 := make([]int64, len(v))
  10771. var i int
  10772. for k, _ := range v {
  10773. v2[i] = int64(k)
  10774. i++
  10775. }
  10776. sort.Sort(intSlice(v2))
  10777. for _, k2 := range v2 {
  10778. if esep {
  10779. ee.WriteMapElemKey()
  10780. }
  10781. ee.EncodeInt(int64(int16(k2)))
  10782. if esep {
  10783. ee.WriteMapElemValue()
  10784. }
  10785. ee.EncodeInt(int64(v[int16(k2)]))
  10786. }
  10787. } else {
  10788. for k2, v2 := range v {
  10789. if esep {
  10790. ee.WriteMapElemKey()
  10791. }
  10792. ee.EncodeInt(int64(k2))
  10793. if esep {
  10794. ee.WriteMapElemValue()
  10795. }
  10796. ee.EncodeInt(int64(v2))
  10797. }
  10798. }
  10799. ee.WriteMapEnd()
  10800. }
  10801. func (e *Encoder) fastpathEncMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  10802. fastpathTV.EncMapInt16Int16V(rv2i(rv).(map[int16]int16), e)
  10803. }
  10804. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, e *Encoder) {
  10805. if v == nil {
  10806. e.e.EncodeNil()
  10807. return
  10808. }
  10809. ee, esep := e.e, e.hh.hasElemSeparators()
  10810. ee.WriteMapStart(len(v))
  10811. if e.h.Canonical {
  10812. v2 := make([]int64, len(v))
  10813. var i int
  10814. for k, _ := range v {
  10815. v2[i] = int64(k)
  10816. i++
  10817. }
  10818. sort.Sort(intSlice(v2))
  10819. for _, k2 := range v2 {
  10820. if esep {
  10821. ee.WriteMapElemKey()
  10822. }
  10823. ee.EncodeInt(int64(int16(k2)))
  10824. if esep {
  10825. ee.WriteMapElemValue()
  10826. }
  10827. ee.EncodeInt(int64(v[int16(k2)]))
  10828. }
  10829. } else {
  10830. for k2, v2 := range v {
  10831. if esep {
  10832. ee.WriteMapElemKey()
  10833. }
  10834. ee.EncodeInt(int64(k2))
  10835. if esep {
  10836. ee.WriteMapElemValue()
  10837. }
  10838. ee.EncodeInt(int64(v2))
  10839. }
  10840. }
  10841. ee.WriteMapEnd()
  10842. }
  10843. func (e *Encoder) fastpathEncMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  10844. fastpathTV.EncMapInt16Int32V(rv2i(rv).(map[int16]int32), e)
  10845. }
  10846. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, e *Encoder) {
  10847. if v == nil {
  10848. e.e.EncodeNil()
  10849. return
  10850. }
  10851. ee, esep := e.e, e.hh.hasElemSeparators()
  10852. ee.WriteMapStart(len(v))
  10853. if e.h.Canonical {
  10854. v2 := make([]int64, len(v))
  10855. var i int
  10856. for k, _ := range v {
  10857. v2[i] = int64(k)
  10858. i++
  10859. }
  10860. sort.Sort(intSlice(v2))
  10861. for _, k2 := range v2 {
  10862. if esep {
  10863. ee.WriteMapElemKey()
  10864. }
  10865. ee.EncodeInt(int64(int16(k2)))
  10866. if esep {
  10867. ee.WriteMapElemValue()
  10868. }
  10869. ee.EncodeInt(int64(v[int16(k2)]))
  10870. }
  10871. } else {
  10872. for k2, v2 := range v {
  10873. if esep {
  10874. ee.WriteMapElemKey()
  10875. }
  10876. ee.EncodeInt(int64(k2))
  10877. if esep {
  10878. ee.WriteMapElemValue()
  10879. }
  10880. ee.EncodeInt(int64(v2))
  10881. }
  10882. }
  10883. ee.WriteMapEnd()
  10884. }
  10885. func (e *Encoder) fastpathEncMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  10886. fastpathTV.EncMapInt16Int64V(rv2i(rv).(map[int16]int64), e)
  10887. }
  10888. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, e *Encoder) {
  10889. if v == nil {
  10890. e.e.EncodeNil()
  10891. return
  10892. }
  10893. ee, esep := e.e, e.hh.hasElemSeparators()
  10894. ee.WriteMapStart(len(v))
  10895. if e.h.Canonical {
  10896. v2 := make([]int64, len(v))
  10897. var i int
  10898. for k, _ := range v {
  10899. v2[i] = int64(k)
  10900. i++
  10901. }
  10902. sort.Sort(intSlice(v2))
  10903. for _, k2 := range v2 {
  10904. if esep {
  10905. ee.WriteMapElemKey()
  10906. }
  10907. ee.EncodeInt(int64(int16(k2)))
  10908. if esep {
  10909. ee.WriteMapElemValue()
  10910. }
  10911. ee.EncodeInt(int64(v[int16(k2)]))
  10912. }
  10913. } else {
  10914. for k2, v2 := range v {
  10915. if esep {
  10916. ee.WriteMapElemKey()
  10917. }
  10918. ee.EncodeInt(int64(k2))
  10919. if esep {
  10920. ee.WriteMapElemValue()
  10921. }
  10922. ee.EncodeInt(int64(v2))
  10923. }
  10924. }
  10925. ee.WriteMapEnd()
  10926. }
  10927. func (e *Encoder) fastpathEncMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  10928. fastpathTV.EncMapInt16Float32V(rv2i(rv).(map[int16]float32), e)
  10929. }
  10930. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, e *Encoder) {
  10931. if v == nil {
  10932. e.e.EncodeNil()
  10933. return
  10934. }
  10935. ee, esep := e.e, e.hh.hasElemSeparators()
  10936. ee.WriteMapStart(len(v))
  10937. if e.h.Canonical {
  10938. v2 := make([]int64, len(v))
  10939. var i int
  10940. for k, _ := range v {
  10941. v2[i] = int64(k)
  10942. i++
  10943. }
  10944. sort.Sort(intSlice(v2))
  10945. for _, k2 := range v2 {
  10946. if esep {
  10947. ee.WriteMapElemKey()
  10948. }
  10949. ee.EncodeInt(int64(int16(k2)))
  10950. if esep {
  10951. ee.WriteMapElemValue()
  10952. }
  10953. ee.EncodeFloat32(v[int16(k2)])
  10954. }
  10955. } else {
  10956. for k2, v2 := range v {
  10957. if esep {
  10958. ee.WriteMapElemKey()
  10959. }
  10960. ee.EncodeInt(int64(k2))
  10961. if esep {
  10962. ee.WriteMapElemValue()
  10963. }
  10964. ee.EncodeFloat32(v2)
  10965. }
  10966. }
  10967. ee.WriteMapEnd()
  10968. }
  10969. func (e *Encoder) fastpathEncMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  10970. fastpathTV.EncMapInt16Float64V(rv2i(rv).(map[int16]float64), e)
  10971. }
  10972. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, e *Encoder) {
  10973. if v == nil {
  10974. e.e.EncodeNil()
  10975. return
  10976. }
  10977. ee, esep := e.e, e.hh.hasElemSeparators()
  10978. ee.WriteMapStart(len(v))
  10979. if e.h.Canonical {
  10980. v2 := make([]int64, len(v))
  10981. var i int
  10982. for k, _ := range v {
  10983. v2[i] = int64(k)
  10984. i++
  10985. }
  10986. sort.Sort(intSlice(v2))
  10987. for _, k2 := range v2 {
  10988. if esep {
  10989. ee.WriteMapElemKey()
  10990. }
  10991. ee.EncodeInt(int64(int16(k2)))
  10992. if esep {
  10993. ee.WriteMapElemValue()
  10994. }
  10995. ee.EncodeFloat64(v[int16(k2)])
  10996. }
  10997. } else {
  10998. for k2, v2 := range v {
  10999. if esep {
  11000. ee.WriteMapElemKey()
  11001. }
  11002. ee.EncodeInt(int64(k2))
  11003. if esep {
  11004. ee.WriteMapElemValue()
  11005. }
  11006. ee.EncodeFloat64(v2)
  11007. }
  11008. }
  11009. ee.WriteMapEnd()
  11010. }
  11011. func (e *Encoder) fastpathEncMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  11012. fastpathTV.EncMapInt16BoolV(rv2i(rv).(map[int16]bool), e)
  11013. }
  11014. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, e *Encoder) {
  11015. if v == nil {
  11016. e.e.EncodeNil()
  11017. return
  11018. }
  11019. ee, esep := e.e, e.hh.hasElemSeparators()
  11020. ee.WriteMapStart(len(v))
  11021. if e.h.Canonical {
  11022. v2 := make([]int64, len(v))
  11023. var i int
  11024. for k, _ := range v {
  11025. v2[i] = int64(k)
  11026. i++
  11027. }
  11028. sort.Sort(intSlice(v2))
  11029. for _, k2 := range v2 {
  11030. if esep {
  11031. ee.WriteMapElemKey()
  11032. }
  11033. ee.EncodeInt(int64(int16(k2)))
  11034. if esep {
  11035. ee.WriteMapElemValue()
  11036. }
  11037. ee.EncodeBool(v[int16(k2)])
  11038. }
  11039. } else {
  11040. for k2, v2 := range v {
  11041. if esep {
  11042. ee.WriteMapElemKey()
  11043. }
  11044. ee.EncodeInt(int64(k2))
  11045. if esep {
  11046. ee.WriteMapElemValue()
  11047. }
  11048. ee.EncodeBool(v2)
  11049. }
  11050. }
  11051. ee.WriteMapEnd()
  11052. }
  11053. func (e *Encoder) fastpathEncMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  11054. fastpathTV.EncMapInt32IntfV(rv2i(rv).(map[int32]interface{}), e)
  11055. }
  11056. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, e *Encoder) {
  11057. if v == nil {
  11058. e.e.EncodeNil()
  11059. return
  11060. }
  11061. ee, esep := e.e, e.hh.hasElemSeparators()
  11062. ee.WriteMapStart(len(v))
  11063. if e.h.Canonical {
  11064. v2 := make([]int64, len(v))
  11065. var i int
  11066. for k, _ := range v {
  11067. v2[i] = int64(k)
  11068. i++
  11069. }
  11070. sort.Sort(intSlice(v2))
  11071. for _, k2 := range v2 {
  11072. if esep {
  11073. ee.WriteMapElemKey()
  11074. }
  11075. ee.EncodeInt(int64(int32(k2)))
  11076. if esep {
  11077. ee.WriteMapElemValue()
  11078. }
  11079. e.encode(v[int32(k2)])
  11080. }
  11081. } else {
  11082. for k2, v2 := range v {
  11083. if esep {
  11084. ee.WriteMapElemKey()
  11085. }
  11086. ee.EncodeInt(int64(k2))
  11087. if esep {
  11088. ee.WriteMapElemValue()
  11089. }
  11090. e.encode(v2)
  11091. }
  11092. }
  11093. ee.WriteMapEnd()
  11094. }
  11095. func (e *Encoder) fastpathEncMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  11096. fastpathTV.EncMapInt32StringV(rv2i(rv).(map[int32]string), e)
  11097. }
  11098. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, e *Encoder) {
  11099. if v == nil {
  11100. e.e.EncodeNil()
  11101. return
  11102. }
  11103. ee, esep := e.e, e.hh.hasElemSeparators()
  11104. ee.WriteMapStart(len(v))
  11105. if e.h.Canonical {
  11106. v2 := make([]int64, len(v))
  11107. var i int
  11108. for k, _ := range v {
  11109. v2[i] = int64(k)
  11110. i++
  11111. }
  11112. sort.Sort(intSlice(v2))
  11113. for _, k2 := range v2 {
  11114. if esep {
  11115. ee.WriteMapElemKey()
  11116. }
  11117. ee.EncodeInt(int64(int32(k2)))
  11118. if esep {
  11119. ee.WriteMapElemValue()
  11120. }
  11121. ee.EncodeString(c_UTF8, v[int32(k2)])
  11122. }
  11123. } else {
  11124. for k2, v2 := range v {
  11125. if esep {
  11126. ee.WriteMapElemKey()
  11127. }
  11128. ee.EncodeInt(int64(k2))
  11129. if esep {
  11130. ee.WriteMapElemValue()
  11131. }
  11132. ee.EncodeString(c_UTF8, v2)
  11133. }
  11134. }
  11135. ee.WriteMapEnd()
  11136. }
  11137. func (e *Encoder) fastpathEncMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  11138. fastpathTV.EncMapInt32UintV(rv2i(rv).(map[int32]uint), e)
  11139. }
  11140. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, e *Encoder) {
  11141. if v == nil {
  11142. e.e.EncodeNil()
  11143. return
  11144. }
  11145. ee, esep := e.e, e.hh.hasElemSeparators()
  11146. ee.WriteMapStart(len(v))
  11147. if e.h.Canonical {
  11148. v2 := make([]int64, len(v))
  11149. var i int
  11150. for k, _ := range v {
  11151. v2[i] = int64(k)
  11152. i++
  11153. }
  11154. sort.Sort(intSlice(v2))
  11155. for _, k2 := range v2 {
  11156. if esep {
  11157. ee.WriteMapElemKey()
  11158. }
  11159. ee.EncodeInt(int64(int32(k2)))
  11160. if esep {
  11161. ee.WriteMapElemValue()
  11162. }
  11163. ee.EncodeUint(uint64(v[int32(k2)]))
  11164. }
  11165. } else {
  11166. for k2, v2 := range v {
  11167. if esep {
  11168. ee.WriteMapElemKey()
  11169. }
  11170. ee.EncodeInt(int64(k2))
  11171. if esep {
  11172. ee.WriteMapElemValue()
  11173. }
  11174. ee.EncodeUint(uint64(v2))
  11175. }
  11176. }
  11177. ee.WriteMapEnd()
  11178. }
  11179. func (e *Encoder) fastpathEncMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  11180. fastpathTV.EncMapInt32Uint8V(rv2i(rv).(map[int32]uint8), e)
  11181. }
  11182. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, e *Encoder) {
  11183. if v == nil {
  11184. e.e.EncodeNil()
  11185. return
  11186. }
  11187. ee, esep := e.e, e.hh.hasElemSeparators()
  11188. ee.WriteMapStart(len(v))
  11189. if e.h.Canonical {
  11190. v2 := make([]int64, len(v))
  11191. var i int
  11192. for k, _ := range v {
  11193. v2[i] = int64(k)
  11194. i++
  11195. }
  11196. sort.Sort(intSlice(v2))
  11197. for _, k2 := range v2 {
  11198. if esep {
  11199. ee.WriteMapElemKey()
  11200. }
  11201. ee.EncodeInt(int64(int32(k2)))
  11202. if esep {
  11203. ee.WriteMapElemValue()
  11204. }
  11205. ee.EncodeUint(uint64(v[int32(k2)]))
  11206. }
  11207. } else {
  11208. for k2, v2 := range v {
  11209. if esep {
  11210. ee.WriteMapElemKey()
  11211. }
  11212. ee.EncodeInt(int64(k2))
  11213. if esep {
  11214. ee.WriteMapElemValue()
  11215. }
  11216. ee.EncodeUint(uint64(v2))
  11217. }
  11218. }
  11219. ee.WriteMapEnd()
  11220. }
  11221. func (e *Encoder) fastpathEncMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  11222. fastpathTV.EncMapInt32Uint16V(rv2i(rv).(map[int32]uint16), e)
  11223. }
  11224. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, e *Encoder) {
  11225. if v == nil {
  11226. e.e.EncodeNil()
  11227. return
  11228. }
  11229. ee, esep := e.e, e.hh.hasElemSeparators()
  11230. ee.WriteMapStart(len(v))
  11231. if e.h.Canonical {
  11232. v2 := make([]int64, len(v))
  11233. var i int
  11234. for k, _ := range v {
  11235. v2[i] = int64(k)
  11236. i++
  11237. }
  11238. sort.Sort(intSlice(v2))
  11239. for _, k2 := range v2 {
  11240. if esep {
  11241. ee.WriteMapElemKey()
  11242. }
  11243. ee.EncodeInt(int64(int32(k2)))
  11244. if esep {
  11245. ee.WriteMapElemValue()
  11246. }
  11247. ee.EncodeUint(uint64(v[int32(k2)]))
  11248. }
  11249. } else {
  11250. for k2, v2 := range v {
  11251. if esep {
  11252. ee.WriteMapElemKey()
  11253. }
  11254. ee.EncodeInt(int64(k2))
  11255. if esep {
  11256. ee.WriteMapElemValue()
  11257. }
  11258. ee.EncodeUint(uint64(v2))
  11259. }
  11260. }
  11261. ee.WriteMapEnd()
  11262. }
  11263. func (e *Encoder) fastpathEncMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  11264. fastpathTV.EncMapInt32Uint32V(rv2i(rv).(map[int32]uint32), e)
  11265. }
  11266. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, e *Encoder) {
  11267. if v == nil {
  11268. e.e.EncodeNil()
  11269. return
  11270. }
  11271. ee, esep := e.e, e.hh.hasElemSeparators()
  11272. ee.WriteMapStart(len(v))
  11273. if e.h.Canonical {
  11274. v2 := make([]int64, len(v))
  11275. var i int
  11276. for k, _ := range v {
  11277. v2[i] = int64(k)
  11278. i++
  11279. }
  11280. sort.Sort(intSlice(v2))
  11281. for _, k2 := range v2 {
  11282. if esep {
  11283. ee.WriteMapElemKey()
  11284. }
  11285. ee.EncodeInt(int64(int32(k2)))
  11286. if esep {
  11287. ee.WriteMapElemValue()
  11288. }
  11289. ee.EncodeUint(uint64(v[int32(k2)]))
  11290. }
  11291. } else {
  11292. for k2, v2 := range v {
  11293. if esep {
  11294. ee.WriteMapElemKey()
  11295. }
  11296. ee.EncodeInt(int64(k2))
  11297. if esep {
  11298. ee.WriteMapElemValue()
  11299. }
  11300. ee.EncodeUint(uint64(v2))
  11301. }
  11302. }
  11303. ee.WriteMapEnd()
  11304. }
  11305. func (e *Encoder) fastpathEncMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  11306. fastpathTV.EncMapInt32Uint64V(rv2i(rv).(map[int32]uint64), e)
  11307. }
  11308. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, e *Encoder) {
  11309. if v == nil {
  11310. e.e.EncodeNil()
  11311. return
  11312. }
  11313. ee, esep := e.e, e.hh.hasElemSeparators()
  11314. ee.WriteMapStart(len(v))
  11315. if e.h.Canonical {
  11316. v2 := make([]int64, len(v))
  11317. var i int
  11318. for k, _ := range v {
  11319. v2[i] = int64(k)
  11320. i++
  11321. }
  11322. sort.Sort(intSlice(v2))
  11323. for _, k2 := range v2 {
  11324. if esep {
  11325. ee.WriteMapElemKey()
  11326. }
  11327. ee.EncodeInt(int64(int32(k2)))
  11328. if esep {
  11329. ee.WriteMapElemValue()
  11330. }
  11331. ee.EncodeUint(uint64(v[int32(k2)]))
  11332. }
  11333. } else {
  11334. for k2, v2 := range v {
  11335. if esep {
  11336. ee.WriteMapElemKey()
  11337. }
  11338. ee.EncodeInt(int64(k2))
  11339. if esep {
  11340. ee.WriteMapElemValue()
  11341. }
  11342. ee.EncodeUint(uint64(v2))
  11343. }
  11344. }
  11345. ee.WriteMapEnd()
  11346. }
  11347. func (e *Encoder) fastpathEncMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  11348. fastpathTV.EncMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), e)
  11349. }
  11350. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, e *Encoder) {
  11351. if v == nil {
  11352. e.e.EncodeNil()
  11353. return
  11354. }
  11355. ee, esep := e.e, e.hh.hasElemSeparators()
  11356. ee.WriteMapStart(len(v))
  11357. if e.h.Canonical {
  11358. v2 := make([]int64, len(v))
  11359. var i int
  11360. for k, _ := range v {
  11361. v2[i] = int64(k)
  11362. i++
  11363. }
  11364. sort.Sort(intSlice(v2))
  11365. for _, k2 := range v2 {
  11366. if esep {
  11367. ee.WriteMapElemKey()
  11368. }
  11369. ee.EncodeInt(int64(int32(k2)))
  11370. if esep {
  11371. ee.WriteMapElemValue()
  11372. }
  11373. e.encode(v[int32(k2)])
  11374. }
  11375. } else {
  11376. for k2, v2 := range v {
  11377. if esep {
  11378. ee.WriteMapElemKey()
  11379. }
  11380. ee.EncodeInt(int64(k2))
  11381. if esep {
  11382. ee.WriteMapElemValue()
  11383. }
  11384. e.encode(v2)
  11385. }
  11386. }
  11387. ee.WriteMapEnd()
  11388. }
  11389. func (e *Encoder) fastpathEncMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  11390. fastpathTV.EncMapInt32IntV(rv2i(rv).(map[int32]int), e)
  11391. }
  11392. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, e *Encoder) {
  11393. if v == nil {
  11394. e.e.EncodeNil()
  11395. return
  11396. }
  11397. ee, esep := e.e, e.hh.hasElemSeparators()
  11398. ee.WriteMapStart(len(v))
  11399. if e.h.Canonical {
  11400. v2 := make([]int64, len(v))
  11401. var i int
  11402. for k, _ := range v {
  11403. v2[i] = int64(k)
  11404. i++
  11405. }
  11406. sort.Sort(intSlice(v2))
  11407. for _, k2 := range v2 {
  11408. if esep {
  11409. ee.WriteMapElemKey()
  11410. }
  11411. ee.EncodeInt(int64(int32(k2)))
  11412. if esep {
  11413. ee.WriteMapElemValue()
  11414. }
  11415. ee.EncodeInt(int64(v[int32(k2)]))
  11416. }
  11417. } else {
  11418. for k2, v2 := range v {
  11419. if esep {
  11420. ee.WriteMapElemKey()
  11421. }
  11422. ee.EncodeInt(int64(k2))
  11423. if esep {
  11424. ee.WriteMapElemValue()
  11425. }
  11426. ee.EncodeInt(int64(v2))
  11427. }
  11428. }
  11429. ee.WriteMapEnd()
  11430. }
  11431. func (e *Encoder) fastpathEncMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  11432. fastpathTV.EncMapInt32Int8V(rv2i(rv).(map[int32]int8), e)
  11433. }
  11434. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, e *Encoder) {
  11435. if v == nil {
  11436. e.e.EncodeNil()
  11437. return
  11438. }
  11439. ee, esep := e.e, e.hh.hasElemSeparators()
  11440. ee.WriteMapStart(len(v))
  11441. if e.h.Canonical {
  11442. v2 := make([]int64, len(v))
  11443. var i int
  11444. for k, _ := range v {
  11445. v2[i] = int64(k)
  11446. i++
  11447. }
  11448. sort.Sort(intSlice(v2))
  11449. for _, k2 := range v2 {
  11450. if esep {
  11451. ee.WriteMapElemKey()
  11452. }
  11453. ee.EncodeInt(int64(int32(k2)))
  11454. if esep {
  11455. ee.WriteMapElemValue()
  11456. }
  11457. ee.EncodeInt(int64(v[int32(k2)]))
  11458. }
  11459. } else {
  11460. for k2, v2 := range v {
  11461. if esep {
  11462. ee.WriteMapElemKey()
  11463. }
  11464. ee.EncodeInt(int64(k2))
  11465. if esep {
  11466. ee.WriteMapElemValue()
  11467. }
  11468. ee.EncodeInt(int64(v2))
  11469. }
  11470. }
  11471. ee.WriteMapEnd()
  11472. }
  11473. func (e *Encoder) fastpathEncMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  11474. fastpathTV.EncMapInt32Int16V(rv2i(rv).(map[int32]int16), e)
  11475. }
  11476. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, e *Encoder) {
  11477. if v == nil {
  11478. e.e.EncodeNil()
  11479. return
  11480. }
  11481. ee, esep := e.e, e.hh.hasElemSeparators()
  11482. ee.WriteMapStart(len(v))
  11483. if e.h.Canonical {
  11484. v2 := make([]int64, len(v))
  11485. var i int
  11486. for k, _ := range v {
  11487. v2[i] = int64(k)
  11488. i++
  11489. }
  11490. sort.Sort(intSlice(v2))
  11491. for _, k2 := range v2 {
  11492. if esep {
  11493. ee.WriteMapElemKey()
  11494. }
  11495. ee.EncodeInt(int64(int32(k2)))
  11496. if esep {
  11497. ee.WriteMapElemValue()
  11498. }
  11499. ee.EncodeInt(int64(v[int32(k2)]))
  11500. }
  11501. } else {
  11502. for k2, v2 := range v {
  11503. if esep {
  11504. ee.WriteMapElemKey()
  11505. }
  11506. ee.EncodeInt(int64(k2))
  11507. if esep {
  11508. ee.WriteMapElemValue()
  11509. }
  11510. ee.EncodeInt(int64(v2))
  11511. }
  11512. }
  11513. ee.WriteMapEnd()
  11514. }
  11515. func (e *Encoder) fastpathEncMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  11516. fastpathTV.EncMapInt32Int32V(rv2i(rv).(map[int32]int32), e)
  11517. }
  11518. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, e *Encoder) {
  11519. if v == nil {
  11520. e.e.EncodeNil()
  11521. return
  11522. }
  11523. ee, esep := e.e, e.hh.hasElemSeparators()
  11524. ee.WriteMapStart(len(v))
  11525. if e.h.Canonical {
  11526. v2 := make([]int64, len(v))
  11527. var i int
  11528. for k, _ := range v {
  11529. v2[i] = int64(k)
  11530. i++
  11531. }
  11532. sort.Sort(intSlice(v2))
  11533. for _, k2 := range v2 {
  11534. if esep {
  11535. ee.WriteMapElemKey()
  11536. }
  11537. ee.EncodeInt(int64(int32(k2)))
  11538. if esep {
  11539. ee.WriteMapElemValue()
  11540. }
  11541. ee.EncodeInt(int64(v[int32(k2)]))
  11542. }
  11543. } else {
  11544. for k2, v2 := range v {
  11545. if esep {
  11546. ee.WriteMapElemKey()
  11547. }
  11548. ee.EncodeInt(int64(k2))
  11549. if esep {
  11550. ee.WriteMapElemValue()
  11551. }
  11552. ee.EncodeInt(int64(v2))
  11553. }
  11554. }
  11555. ee.WriteMapEnd()
  11556. }
  11557. func (e *Encoder) fastpathEncMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  11558. fastpathTV.EncMapInt32Int64V(rv2i(rv).(map[int32]int64), e)
  11559. }
  11560. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, e *Encoder) {
  11561. if v == nil {
  11562. e.e.EncodeNil()
  11563. return
  11564. }
  11565. ee, esep := e.e, e.hh.hasElemSeparators()
  11566. ee.WriteMapStart(len(v))
  11567. if e.h.Canonical {
  11568. v2 := make([]int64, len(v))
  11569. var i int
  11570. for k, _ := range v {
  11571. v2[i] = int64(k)
  11572. i++
  11573. }
  11574. sort.Sort(intSlice(v2))
  11575. for _, k2 := range v2 {
  11576. if esep {
  11577. ee.WriteMapElemKey()
  11578. }
  11579. ee.EncodeInt(int64(int32(k2)))
  11580. if esep {
  11581. ee.WriteMapElemValue()
  11582. }
  11583. ee.EncodeInt(int64(v[int32(k2)]))
  11584. }
  11585. } else {
  11586. for k2, v2 := range v {
  11587. if esep {
  11588. ee.WriteMapElemKey()
  11589. }
  11590. ee.EncodeInt(int64(k2))
  11591. if esep {
  11592. ee.WriteMapElemValue()
  11593. }
  11594. ee.EncodeInt(int64(v2))
  11595. }
  11596. }
  11597. ee.WriteMapEnd()
  11598. }
  11599. func (e *Encoder) fastpathEncMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  11600. fastpathTV.EncMapInt32Float32V(rv2i(rv).(map[int32]float32), e)
  11601. }
  11602. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, e *Encoder) {
  11603. if v == nil {
  11604. e.e.EncodeNil()
  11605. return
  11606. }
  11607. ee, esep := e.e, e.hh.hasElemSeparators()
  11608. ee.WriteMapStart(len(v))
  11609. if e.h.Canonical {
  11610. v2 := make([]int64, len(v))
  11611. var i int
  11612. for k, _ := range v {
  11613. v2[i] = int64(k)
  11614. i++
  11615. }
  11616. sort.Sort(intSlice(v2))
  11617. for _, k2 := range v2 {
  11618. if esep {
  11619. ee.WriteMapElemKey()
  11620. }
  11621. ee.EncodeInt(int64(int32(k2)))
  11622. if esep {
  11623. ee.WriteMapElemValue()
  11624. }
  11625. ee.EncodeFloat32(v[int32(k2)])
  11626. }
  11627. } else {
  11628. for k2, v2 := range v {
  11629. if esep {
  11630. ee.WriteMapElemKey()
  11631. }
  11632. ee.EncodeInt(int64(k2))
  11633. if esep {
  11634. ee.WriteMapElemValue()
  11635. }
  11636. ee.EncodeFloat32(v2)
  11637. }
  11638. }
  11639. ee.WriteMapEnd()
  11640. }
  11641. func (e *Encoder) fastpathEncMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  11642. fastpathTV.EncMapInt32Float64V(rv2i(rv).(map[int32]float64), e)
  11643. }
  11644. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, e *Encoder) {
  11645. if v == nil {
  11646. e.e.EncodeNil()
  11647. return
  11648. }
  11649. ee, esep := e.e, e.hh.hasElemSeparators()
  11650. ee.WriteMapStart(len(v))
  11651. if e.h.Canonical {
  11652. v2 := make([]int64, len(v))
  11653. var i int
  11654. for k, _ := range v {
  11655. v2[i] = int64(k)
  11656. i++
  11657. }
  11658. sort.Sort(intSlice(v2))
  11659. for _, k2 := range v2 {
  11660. if esep {
  11661. ee.WriteMapElemKey()
  11662. }
  11663. ee.EncodeInt(int64(int32(k2)))
  11664. if esep {
  11665. ee.WriteMapElemValue()
  11666. }
  11667. ee.EncodeFloat64(v[int32(k2)])
  11668. }
  11669. } else {
  11670. for k2, v2 := range v {
  11671. if esep {
  11672. ee.WriteMapElemKey()
  11673. }
  11674. ee.EncodeInt(int64(k2))
  11675. if esep {
  11676. ee.WriteMapElemValue()
  11677. }
  11678. ee.EncodeFloat64(v2)
  11679. }
  11680. }
  11681. ee.WriteMapEnd()
  11682. }
  11683. func (e *Encoder) fastpathEncMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  11684. fastpathTV.EncMapInt32BoolV(rv2i(rv).(map[int32]bool), e)
  11685. }
  11686. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, e *Encoder) {
  11687. if v == nil {
  11688. e.e.EncodeNil()
  11689. return
  11690. }
  11691. ee, esep := e.e, e.hh.hasElemSeparators()
  11692. ee.WriteMapStart(len(v))
  11693. if e.h.Canonical {
  11694. v2 := make([]int64, len(v))
  11695. var i int
  11696. for k, _ := range v {
  11697. v2[i] = int64(k)
  11698. i++
  11699. }
  11700. sort.Sort(intSlice(v2))
  11701. for _, k2 := range v2 {
  11702. if esep {
  11703. ee.WriteMapElemKey()
  11704. }
  11705. ee.EncodeInt(int64(int32(k2)))
  11706. if esep {
  11707. ee.WriteMapElemValue()
  11708. }
  11709. ee.EncodeBool(v[int32(k2)])
  11710. }
  11711. } else {
  11712. for k2, v2 := range v {
  11713. if esep {
  11714. ee.WriteMapElemKey()
  11715. }
  11716. ee.EncodeInt(int64(k2))
  11717. if esep {
  11718. ee.WriteMapElemValue()
  11719. }
  11720. ee.EncodeBool(v2)
  11721. }
  11722. }
  11723. ee.WriteMapEnd()
  11724. }
  11725. func (e *Encoder) fastpathEncMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  11726. fastpathTV.EncMapInt64IntfV(rv2i(rv).(map[int64]interface{}), e)
  11727. }
  11728. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, e *Encoder) {
  11729. if v == nil {
  11730. e.e.EncodeNil()
  11731. return
  11732. }
  11733. ee, esep := e.e, e.hh.hasElemSeparators()
  11734. ee.WriteMapStart(len(v))
  11735. if e.h.Canonical {
  11736. v2 := make([]int64, len(v))
  11737. var i int
  11738. for k, _ := range v {
  11739. v2[i] = int64(k)
  11740. i++
  11741. }
  11742. sort.Sort(intSlice(v2))
  11743. for _, k2 := range v2 {
  11744. if esep {
  11745. ee.WriteMapElemKey()
  11746. }
  11747. ee.EncodeInt(int64(int64(k2)))
  11748. if esep {
  11749. ee.WriteMapElemValue()
  11750. }
  11751. e.encode(v[int64(k2)])
  11752. }
  11753. } else {
  11754. for k2, v2 := range v {
  11755. if esep {
  11756. ee.WriteMapElemKey()
  11757. }
  11758. ee.EncodeInt(int64(k2))
  11759. if esep {
  11760. ee.WriteMapElemValue()
  11761. }
  11762. e.encode(v2)
  11763. }
  11764. }
  11765. ee.WriteMapEnd()
  11766. }
  11767. func (e *Encoder) fastpathEncMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  11768. fastpathTV.EncMapInt64StringV(rv2i(rv).(map[int64]string), e)
  11769. }
  11770. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, e *Encoder) {
  11771. if v == nil {
  11772. e.e.EncodeNil()
  11773. return
  11774. }
  11775. ee, esep := e.e, e.hh.hasElemSeparators()
  11776. ee.WriteMapStart(len(v))
  11777. if e.h.Canonical {
  11778. v2 := make([]int64, len(v))
  11779. var i int
  11780. for k, _ := range v {
  11781. v2[i] = int64(k)
  11782. i++
  11783. }
  11784. sort.Sort(intSlice(v2))
  11785. for _, k2 := range v2 {
  11786. if esep {
  11787. ee.WriteMapElemKey()
  11788. }
  11789. ee.EncodeInt(int64(int64(k2)))
  11790. if esep {
  11791. ee.WriteMapElemValue()
  11792. }
  11793. ee.EncodeString(c_UTF8, v[int64(k2)])
  11794. }
  11795. } else {
  11796. for k2, v2 := range v {
  11797. if esep {
  11798. ee.WriteMapElemKey()
  11799. }
  11800. ee.EncodeInt(int64(k2))
  11801. if esep {
  11802. ee.WriteMapElemValue()
  11803. }
  11804. ee.EncodeString(c_UTF8, v2)
  11805. }
  11806. }
  11807. ee.WriteMapEnd()
  11808. }
  11809. func (e *Encoder) fastpathEncMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  11810. fastpathTV.EncMapInt64UintV(rv2i(rv).(map[int64]uint), e)
  11811. }
  11812. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, e *Encoder) {
  11813. if v == nil {
  11814. e.e.EncodeNil()
  11815. return
  11816. }
  11817. ee, esep := e.e, e.hh.hasElemSeparators()
  11818. ee.WriteMapStart(len(v))
  11819. if e.h.Canonical {
  11820. v2 := make([]int64, len(v))
  11821. var i int
  11822. for k, _ := range v {
  11823. v2[i] = int64(k)
  11824. i++
  11825. }
  11826. sort.Sort(intSlice(v2))
  11827. for _, k2 := range v2 {
  11828. if esep {
  11829. ee.WriteMapElemKey()
  11830. }
  11831. ee.EncodeInt(int64(int64(k2)))
  11832. if esep {
  11833. ee.WriteMapElemValue()
  11834. }
  11835. ee.EncodeUint(uint64(v[int64(k2)]))
  11836. }
  11837. } else {
  11838. for k2, v2 := range v {
  11839. if esep {
  11840. ee.WriteMapElemKey()
  11841. }
  11842. ee.EncodeInt(int64(k2))
  11843. if esep {
  11844. ee.WriteMapElemValue()
  11845. }
  11846. ee.EncodeUint(uint64(v2))
  11847. }
  11848. }
  11849. ee.WriteMapEnd()
  11850. }
  11851. func (e *Encoder) fastpathEncMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  11852. fastpathTV.EncMapInt64Uint8V(rv2i(rv).(map[int64]uint8), e)
  11853. }
  11854. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, e *Encoder) {
  11855. if v == nil {
  11856. e.e.EncodeNil()
  11857. return
  11858. }
  11859. ee, esep := e.e, e.hh.hasElemSeparators()
  11860. ee.WriteMapStart(len(v))
  11861. if e.h.Canonical {
  11862. v2 := make([]int64, len(v))
  11863. var i int
  11864. for k, _ := range v {
  11865. v2[i] = int64(k)
  11866. i++
  11867. }
  11868. sort.Sort(intSlice(v2))
  11869. for _, k2 := range v2 {
  11870. if esep {
  11871. ee.WriteMapElemKey()
  11872. }
  11873. ee.EncodeInt(int64(int64(k2)))
  11874. if esep {
  11875. ee.WriteMapElemValue()
  11876. }
  11877. ee.EncodeUint(uint64(v[int64(k2)]))
  11878. }
  11879. } else {
  11880. for k2, v2 := range v {
  11881. if esep {
  11882. ee.WriteMapElemKey()
  11883. }
  11884. ee.EncodeInt(int64(k2))
  11885. if esep {
  11886. ee.WriteMapElemValue()
  11887. }
  11888. ee.EncodeUint(uint64(v2))
  11889. }
  11890. }
  11891. ee.WriteMapEnd()
  11892. }
  11893. func (e *Encoder) fastpathEncMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  11894. fastpathTV.EncMapInt64Uint16V(rv2i(rv).(map[int64]uint16), e)
  11895. }
  11896. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, e *Encoder) {
  11897. if v == nil {
  11898. e.e.EncodeNil()
  11899. return
  11900. }
  11901. ee, esep := e.e, e.hh.hasElemSeparators()
  11902. ee.WriteMapStart(len(v))
  11903. if e.h.Canonical {
  11904. v2 := make([]int64, len(v))
  11905. var i int
  11906. for k, _ := range v {
  11907. v2[i] = int64(k)
  11908. i++
  11909. }
  11910. sort.Sort(intSlice(v2))
  11911. for _, k2 := range v2 {
  11912. if esep {
  11913. ee.WriteMapElemKey()
  11914. }
  11915. ee.EncodeInt(int64(int64(k2)))
  11916. if esep {
  11917. ee.WriteMapElemValue()
  11918. }
  11919. ee.EncodeUint(uint64(v[int64(k2)]))
  11920. }
  11921. } else {
  11922. for k2, v2 := range v {
  11923. if esep {
  11924. ee.WriteMapElemKey()
  11925. }
  11926. ee.EncodeInt(int64(k2))
  11927. if esep {
  11928. ee.WriteMapElemValue()
  11929. }
  11930. ee.EncodeUint(uint64(v2))
  11931. }
  11932. }
  11933. ee.WriteMapEnd()
  11934. }
  11935. func (e *Encoder) fastpathEncMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  11936. fastpathTV.EncMapInt64Uint32V(rv2i(rv).(map[int64]uint32), e)
  11937. }
  11938. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, e *Encoder) {
  11939. if v == nil {
  11940. e.e.EncodeNil()
  11941. return
  11942. }
  11943. ee, esep := e.e, e.hh.hasElemSeparators()
  11944. ee.WriteMapStart(len(v))
  11945. if e.h.Canonical {
  11946. v2 := make([]int64, len(v))
  11947. var i int
  11948. for k, _ := range v {
  11949. v2[i] = int64(k)
  11950. i++
  11951. }
  11952. sort.Sort(intSlice(v2))
  11953. for _, k2 := range v2 {
  11954. if esep {
  11955. ee.WriteMapElemKey()
  11956. }
  11957. ee.EncodeInt(int64(int64(k2)))
  11958. if esep {
  11959. ee.WriteMapElemValue()
  11960. }
  11961. ee.EncodeUint(uint64(v[int64(k2)]))
  11962. }
  11963. } else {
  11964. for k2, v2 := range v {
  11965. if esep {
  11966. ee.WriteMapElemKey()
  11967. }
  11968. ee.EncodeInt(int64(k2))
  11969. if esep {
  11970. ee.WriteMapElemValue()
  11971. }
  11972. ee.EncodeUint(uint64(v2))
  11973. }
  11974. }
  11975. ee.WriteMapEnd()
  11976. }
  11977. func (e *Encoder) fastpathEncMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  11978. fastpathTV.EncMapInt64Uint64V(rv2i(rv).(map[int64]uint64), e)
  11979. }
  11980. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, e *Encoder) {
  11981. if v == nil {
  11982. e.e.EncodeNil()
  11983. return
  11984. }
  11985. ee, esep := e.e, e.hh.hasElemSeparators()
  11986. ee.WriteMapStart(len(v))
  11987. if e.h.Canonical {
  11988. v2 := make([]int64, len(v))
  11989. var i int
  11990. for k, _ := range v {
  11991. v2[i] = int64(k)
  11992. i++
  11993. }
  11994. sort.Sort(intSlice(v2))
  11995. for _, k2 := range v2 {
  11996. if esep {
  11997. ee.WriteMapElemKey()
  11998. }
  11999. ee.EncodeInt(int64(int64(k2)))
  12000. if esep {
  12001. ee.WriteMapElemValue()
  12002. }
  12003. ee.EncodeUint(uint64(v[int64(k2)]))
  12004. }
  12005. } else {
  12006. for k2, v2 := range v {
  12007. if esep {
  12008. ee.WriteMapElemKey()
  12009. }
  12010. ee.EncodeInt(int64(k2))
  12011. if esep {
  12012. ee.WriteMapElemValue()
  12013. }
  12014. ee.EncodeUint(uint64(v2))
  12015. }
  12016. }
  12017. ee.WriteMapEnd()
  12018. }
  12019. func (e *Encoder) fastpathEncMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  12020. fastpathTV.EncMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), e)
  12021. }
  12022. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, e *Encoder) {
  12023. if v == nil {
  12024. e.e.EncodeNil()
  12025. return
  12026. }
  12027. ee, esep := e.e, e.hh.hasElemSeparators()
  12028. ee.WriteMapStart(len(v))
  12029. if e.h.Canonical {
  12030. v2 := make([]int64, len(v))
  12031. var i int
  12032. for k, _ := range v {
  12033. v2[i] = int64(k)
  12034. i++
  12035. }
  12036. sort.Sort(intSlice(v2))
  12037. for _, k2 := range v2 {
  12038. if esep {
  12039. ee.WriteMapElemKey()
  12040. }
  12041. ee.EncodeInt(int64(int64(k2)))
  12042. if esep {
  12043. ee.WriteMapElemValue()
  12044. }
  12045. e.encode(v[int64(k2)])
  12046. }
  12047. } else {
  12048. for k2, v2 := range v {
  12049. if esep {
  12050. ee.WriteMapElemKey()
  12051. }
  12052. ee.EncodeInt(int64(k2))
  12053. if esep {
  12054. ee.WriteMapElemValue()
  12055. }
  12056. e.encode(v2)
  12057. }
  12058. }
  12059. ee.WriteMapEnd()
  12060. }
  12061. func (e *Encoder) fastpathEncMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  12062. fastpathTV.EncMapInt64IntV(rv2i(rv).(map[int64]int), e)
  12063. }
  12064. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, e *Encoder) {
  12065. if v == nil {
  12066. e.e.EncodeNil()
  12067. return
  12068. }
  12069. ee, esep := e.e, e.hh.hasElemSeparators()
  12070. ee.WriteMapStart(len(v))
  12071. if e.h.Canonical {
  12072. v2 := make([]int64, len(v))
  12073. var i int
  12074. for k, _ := range v {
  12075. v2[i] = int64(k)
  12076. i++
  12077. }
  12078. sort.Sort(intSlice(v2))
  12079. for _, k2 := range v2 {
  12080. if esep {
  12081. ee.WriteMapElemKey()
  12082. }
  12083. ee.EncodeInt(int64(int64(k2)))
  12084. if esep {
  12085. ee.WriteMapElemValue()
  12086. }
  12087. ee.EncodeInt(int64(v[int64(k2)]))
  12088. }
  12089. } else {
  12090. for k2, v2 := range v {
  12091. if esep {
  12092. ee.WriteMapElemKey()
  12093. }
  12094. ee.EncodeInt(int64(k2))
  12095. if esep {
  12096. ee.WriteMapElemValue()
  12097. }
  12098. ee.EncodeInt(int64(v2))
  12099. }
  12100. }
  12101. ee.WriteMapEnd()
  12102. }
  12103. func (e *Encoder) fastpathEncMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  12104. fastpathTV.EncMapInt64Int8V(rv2i(rv).(map[int64]int8), e)
  12105. }
  12106. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, e *Encoder) {
  12107. if v == nil {
  12108. e.e.EncodeNil()
  12109. return
  12110. }
  12111. ee, esep := e.e, e.hh.hasElemSeparators()
  12112. ee.WriteMapStart(len(v))
  12113. if e.h.Canonical {
  12114. v2 := make([]int64, len(v))
  12115. var i int
  12116. for k, _ := range v {
  12117. v2[i] = int64(k)
  12118. i++
  12119. }
  12120. sort.Sort(intSlice(v2))
  12121. for _, k2 := range v2 {
  12122. if esep {
  12123. ee.WriteMapElemKey()
  12124. }
  12125. ee.EncodeInt(int64(int64(k2)))
  12126. if esep {
  12127. ee.WriteMapElemValue()
  12128. }
  12129. ee.EncodeInt(int64(v[int64(k2)]))
  12130. }
  12131. } else {
  12132. for k2, v2 := range v {
  12133. if esep {
  12134. ee.WriteMapElemKey()
  12135. }
  12136. ee.EncodeInt(int64(k2))
  12137. if esep {
  12138. ee.WriteMapElemValue()
  12139. }
  12140. ee.EncodeInt(int64(v2))
  12141. }
  12142. }
  12143. ee.WriteMapEnd()
  12144. }
  12145. func (e *Encoder) fastpathEncMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  12146. fastpathTV.EncMapInt64Int16V(rv2i(rv).(map[int64]int16), e)
  12147. }
  12148. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, e *Encoder) {
  12149. if v == nil {
  12150. e.e.EncodeNil()
  12151. return
  12152. }
  12153. ee, esep := e.e, e.hh.hasElemSeparators()
  12154. ee.WriteMapStart(len(v))
  12155. if e.h.Canonical {
  12156. v2 := make([]int64, len(v))
  12157. var i int
  12158. for k, _ := range v {
  12159. v2[i] = int64(k)
  12160. i++
  12161. }
  12162. sort.Sort(intSlice(v2))
  12163. for _, k2 := range v2 {
  12164. if esep {
  12165. ee.WriteMapElemKey()
  12166. }
  12167. ee.EncodeInt(int64(int64(k2)))
  12168. if esep {
  12169. ee.WriteMapElemValue()
  12170. }
  12171. ee.EncodeInt(int64(v[int64(k2)]))
  12172. }
  12173. } else {
  12174. for k2, v2 := range v {
  12175. if esep {
  12176. ee.WriteMapElemKey()
  12177. }
  12178. ee.EncodeInt(int64(k2))
  12179. if esep {
  12180. ee.WriteMapElemValue()
  12181. }
  12182. ee.EncodeInt(int64(v2))
  12183. }
  12184. }
  12185. ee.WriteMapEnd()
  12186. }
  12187. func (e *Encoder) fastpathEncMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  12188. fastpathTV.EncMapInt64Int32V(rv2i(rv).(map[int64]int32), e)
  12189. }
  12190. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, e *Encoder) {
  12191. if v == nil {
  12192. e.e.EncodeNil()
  12193. return
  12194. }
  12195. ee, esep := e.e, e.hh.hasElemSeparators()
  12196. ee.WriteMapStart(len(v))
  12197. if e.h.Canonical {
  12198. v2 := make([]int64, len(v))
  12199. var i int
  12200. for k, _ := range v {
  12201. v2[i] = int64(k)
  12202. i++
  12203. }
  12204. sort.Sort(intSlice(v2))
  12205. for _, k2 := range v2 {
  12206. if esep {
  12207. ee.WriteMapElemKey()
  12208. }
  12209. ee.EncodeInt(int64(int64(k2)))
  12210. if esep {
  12211. ee.WriteMapElemValue()
  12212. }
  12213. ee.EncodeInt(int64(v[int64(k2)]))
  12214. }
  12215. } else {
  12216. for k2, v2 := range v {
  12217. if esep {
  12218. ee.WriteMapElemKey()
  12219. }
  12220. ee.EncodeInt(int64(k2))
  12221. if esep {
  12222. ee.WriteMapElemValue()
  12223. }
  12224. ee.EncodeInt(int64(v2))
  12225. }
  12226. }
  12227. ee.WriteMapEnd()
  12228. }
  12229. func (e *Encoder) fastpathEncMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  12230. fastpathTV.EncMapInt64Int64V(rv2i(rv).(map[int64]int64), e)
  12231. }
  12232. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, e *Encoder) {
  12233. if v == nil {
  12234. e.e.EncodeNil()
  12235. return
  12236. }
  12237. ee, esep := e.e, e.hh.hasElemSeparators()
  12238. ee.WriteMapStart(len(v))
  12239. if e.h.Canonical {
  12240. v2 := make([]int64, len(v))
  12241. var i int
  12242. for k, _ := range v {
  12243. v2[i] = int64(k)
  12244. i++
  12245. }
  12246. sort.Sort(intSlice(v2))
  12247. for _, k2 := range v2 {
  12248. if esep {
  12249. ee.WriteMapElemKey()
  12250. }
  12251. ee.EncodeInt(int64(int64(k2)))
  12252. if esep {
  12253. ee.WriteMapElemValue()
  12254. }
  12255. ee.EncodeInt(int64(v[int64(k2)]))
  12256. }
  12257. } else {
  12258. for k2, v2 := range v {
  12259. if esep {
  12260. ee.WriteMapElemKey()
  12261. }
  12262. ee.EncodeInt(int64(k2))
  12263. if esep {
  12264. ee.WriteMapElemValue()
  12265. }
  12266. ee.EncodeInt(int64(v2))
  12267. }
  12268. }
  12269. ee.WriteMapEnd()
  12270. }
  12271. func (e *Encoder) fastpathEncMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  12272. fastpathTV.EncMapInt64Float32V(rv2i(rv).(map[int64]float32), e)
  12273. }
  12274. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, e *Encoder) {
  12275. if v == nil {
  12276. e.e.EncodeNil()
  12277. return
  12278. }
  12279. ee, esep := e.e, e.hh.hasElemSeparators()
  12280. ee.WriteMapStart(len(v))
  12281. if e.h.Canonical {
  12282. v2 := make([]int64, len(v))
  12283. var i int
  12284. for k, _ := range v {
  12285. v2[i] = int64(k)
  12286. i++
  12287. }
  12288. sort.Sort(intSlice(v2))
  12289. for _, k2 := range v2 {
  12290. if esep {
  12291. ee.WriteMapElemKey()
  12292. }
  12293. ee.EncodeInt(int64(int64(k2)))
  12294. if esep {
  12295. ee.WriteMapElemValue()
  12296. }
  12297. ee.EncodeFloat32(v[int64(k2)])
  12298. }
  12299. } else {
  12300. for k2, v2 := range v {
  12301. if esep {
  12302. ee.WriteMapElemKey()
  12303. }
  12304. ee.EncodeInt(int64(k2))
  12305. if esep {
  12306. ee.WriteMapElemValue()
  12307. }
  12308. ee.EncodeFloat32(v2)
  12309. }
  12310. }
  12311. ee.WriteMapEnd()
  12312. }
  12313. func (e *Encoder) fastpathEncMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  12314. fastpathTV.EncMapInt64Float64V(rv2i(rv).(map[int64]float64), e)
  12315. }
  12316. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, e *Encoder) {
  12317. if v == nil {
  12318. e.e.EncodeNil()
  12319. return
  12320. }
  12321. ee, esep := e.e, e.hh.hasElemSeparators()
  12322. ee.WriteMapStart(len(v))
  12323. if e.h.Canonical {
  12324. v2 := make([]int64, len(v))
  12325. var i int
  12326. for k, _ := range v {
  12327. v2[i] = int64(k)
  12328. i++
  12329. }
  12330. sort.Sort(intSlice(v2))
  12331. for _, k2 := range v2 {
  12332. if esep {
  12333. ee.WriteMapElemKey()
  12334. }
  12335. ee.EncodeInt(int64(int64(k2)))
  12336. if esep {
  12337. ee.WriteMapElemValue()
  12338. }
  12339. ee.EncodeFloat64(v[int64(k2)])
  12340. }
  12341. } else {
  12342. for k2, v2 := range v {
  12343. if esep {
  12344. ee.WriteMapElemKey()
  12345. }
  12346. ee.EncodeInt(int64(k2))
  12347. if esep {
  12348. ee.WriteMapElemValue()
  12349. }
  12350. ee.EncodeFloat64(v2)
  12351. }
  12352. }
  12353. ee.WriteMapEnd()
  12354. }
  12355. func (e *Encoder) fastpathEncMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  12356. fastpathTV.EncMapInt64BoolV(rv2i(rv).(map[int64]bool), e)
  12357. }
  12358. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, e *Encoder) {
  12359. if v == nil {
  12360. e.e.EncodeNil()
  12361. return
  12362. }
  12363. ee, esep := e.e, e.hh.hasElemSeparators()
  12364. ee.WriteMapStart(len(v))
  12365. if e.h.Canonical {
  12366. v2 := make([]int64, len(v))
  12367. var i int
  12368. for k, _ := range v {
  12369. v2[i] = int64(k)
  12370. i++
  12371. }
  12372. sort.Sort(intSlice(v2))
  12373. for _, k2 := range v2 {
  12374. if esep {
  12375. ee.WriteMapElemKey()
  12376. }
  12377. ee.EncodeInt(int64(int64(k2)))
  12378. if esep {
  12379. ee.WriteMapElemValue()
  12380. }
  12381. ee.EncodeBool(v[int64(k2)])
  12382. }
  12383. } else {
  12384. for k2, v2 := range v {
  12385. if esep {
  12386. ee.WriteMapElemKey()
  12387. }
  12388. ee.EncodeInt(int64(k2))
  12389. if esep {
  12390. ee.WriteMapElemValue()
  12391. }
  12392. ee.EncodeBool(v2)
  12393. }
  12394. }
  12395. ee.WriteMapEnd()
  12396. }
  12397. func (e *Encoder) fastpathEncMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  12398. fastpathTV.EncMapBoolIntfV(rv2i(rv).(map[bool]interface{}), e)
  12399. }
  12400. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, e *Encoder) {
  12401. if v == nil {
  12402. e.e.EncodeNil()
  12403. return
  12404. }
  12405. ee, esep := e.e, e.hh.hasElemSeparators()
  12406. ee.WriteMapStart(len(v))
  12407. if e.h.Canonical {
  12408. v2 := make([]bool, len(v))
  12409. var i int
  12410. for k, _ := range v {
  12411. v2[i] = bool(k)
  12412. i++
  12413. }
  12414. sort.Sort(boolSlice(v2))
  12415. for _, k2 := range v2 {
  12416. if esep {
  12417. ee.WriteMapElemKey()
  12418. }
  12419. ee.EncodeBool(bool(k2))
  12420. if esep {
  12421. ee.WriteMapElemValue()
  12422. }
  12423. e.encode(v[bool(k2)])
  12424. }
  12425. } else {
  12426. for k2, v2 := range v {
  12427. if esep {
  12428. ee.WriteMapElemKey()
  12429. }
  12430. ee.EncodeBool(k2)
  12431. if esep {
  12432. ee.WriteMapElemValue()
  12433. }
  12434. e.encode(v2)
  12435. }
  12436. }
  12437. ee.WriteMapEnd()
  12438. }
  12439. func (e *Encoder) fastpathEncMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  12440. fastpathTV.EncMapBoolStringV(rv2i(rv).(map[bool]string), e)
  12441. }
  12442. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, e *Encoder) {
  12443. if v == nil {
  12444. e.e.EncodeNil()
  12445. return
  12446. }
  12447. ee, esep := e.e, e.hh.hasElemSeparators()
  12448. ee.WriteMapStart(len(v))
  12449. if e.h.Canonical {
  12450. v2 := make([]bool, len(v))
  12451. var i int
  12452. for k, _ := range v {
  12453. v2[i] = bool(k)
  12454. i++
  12455. }
  12456. sort.Sort(boolSlice(v2))
  12457. for _, k2 := range v2 {
  12458. if esep {
  12459. ee.WriteMapElemKey()
  12460. }
  12461. ee.EncodeBool(bool(k2))
  12462. if esep {
  12463. ee.WriteMapElemValue()
  12464. }
  12465. ee.EncodeString(c_UTF8, v[bool(k2)])
  12466. }
  12467. } else {
  12468. for k2, v2 := range v {
  12469. if esep {
  12470. ee.WriteMapElemKey()
  12471. }
  12472. ee.EncodeBool(k2)
  12473. if esep {
  12474. ee.WriteMapElemValue()
  12475. }
  12476. ee.EncodeString(c_UTF8, v2)
  12477. }
  12478. }
  12479. ee.WriteMapEnd()
  12480. }
  12481. func (e *Encoder) fastpathEncMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  12482. fastpathTV.EncMapBoolUintV(rv2i(rv).(map[bool]uint), e)
  12483. }
  12484. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, e *Encoder) {
  12485. if v == nil {
  12486. e.e.EncodeNil()
  12487. return
  12488. }
  12489. ee, esep := e.e, e.hh.hasElemSeparators()
  12490. ee.WriteMapStart(len(v))
  12491. if e.h.Canonical {
  12492. v2 := make([]bool, len(v))
  12493. var i int
  12494. for k, _ := range v {
  12495. v2[i] = bool(k)
  12496. i++
  12497. }
  12498. sort.Sort(boolSlice(v2))
  12499. for _, k2 := range v2 {
  12500. if esep {
  12501. ee.WriteMapElemKey()
  12502. }
  12503. ee.EncodeBool(bool(k2))
  12504. if esep {
  12505. ee.WriteMapElemValue()
  12506. }
  12507. ee.EncodeUint(uint64(v[bool(k2)]))
  12508. }
  12509. } else {
  12510. for k2, v2 := range v {
  12511. if esep {
  12512. ee.WriteMapElemKey()
  12513. }
  12514. ee.EncodeBool(k2)
  12515. if esep {
  12516. ee.WriteMapElemValue()
  12517. }
  12518. ee.EncodeUint(uint64(v2))
  12519. }
  12520. }
  12521. ee.WriteMapEnd()
  12522. }
  12523. func (e *Encoder) fastpathEncMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  12524. fastpathTV.EncMapBoolUint8V(rv2i(rv).(map[bool]uint8), e)
  12525. }
  12526. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, e *Encoder) {
  12527. if v == nil {
  12528. e.e.EncodeNil()
  12529. return
  12530. }
  12531. ee, esep := e.e, e.hh.hasElemSeparators()
  12532. ee.WriteMapStart(len(v))
  12533. if e.h.Canonical {
  12534. v2 := make([]bool, len(v))
  12535. var i int
  12536. for k, _ := range v {
  12537. v2[i] = bool(k)
  12538. i++
  12539. }
  12540. sort.Sort(boolSlice(v2))
  12541. for _, k2 := range v2 {
  12542. if esep {
  12543. ee.WriteMapElemKey()
  12544. }
  12545. ee.EncodeBool(bool(k2))
  12546. if esep {
  12547. ee.WriteMapElemValue()
  12548. }
  12549. ee.EncodeUint(uint64(v[bool(k2)]))
  12550. }
  12551. } else {
  12552. for k2, v2 := range v {
  12553. if esep {
  12554. ee.WriteMapElemKey()
  12555. }
  12556. ee.EncodeBool(k2)
  12557. if esep {
  12558. ee.WriteMapElemValue()
  12559. }
  12560. ee.EncodeUint(uint64(v2))
  12561. }
  12562. }
  12563. ee.WriteMapEnd()
  12564. }
  12565. func (e *Encoder) fastpathEncMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  12566. fastpathTV.EncMapBoolUint16V(rv2i(rv).(map[bool]uint16), e)
  12567. }
  12568. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, e *Encoder) {
  12569. if v == nil {
  12570. e.e.EncodeNil()
  12571. return
  12572. }
  12573. ee, esep := e.e, e.hh.hasElemSeparators()
  12574. ee.WriteMapStart(len(v))
  12575. if e.h.Canonical {
  12576. v2 := make([]bool, len(v))
  12577. var i int
  12578. for k, _ := range v {
  12579. v2[i] = bool(k)
  12580. i++
  12581. }
  12582. sort.Sort(boolSlice(v2))
  12583. for _, k2 := range v2 {
  12584. if esep {
  12585. ee.WriteMapElemKey()
  12586. }
  12587. ee.EncodeBool(bool(k2))
  12588. if esep {
  12589. ee.WriteMapElemValue()
  12590. }
  12591. ee.EncodeUint(uint64(v[bool(k2)]))
  12592. }
  12593. } else {
  12594. for k2, v2 := range v {
  12595. if esep {
  12596. ee.WriteMapElemKey()
  12597. }
  12598. ee.EncodeBool(k2)
  12599. if esep {
  12600. ee.WriteMapElemValue()
  12601. }
  12602. ee.EncodeUint(uint64(v2))
  12603. }
  12604. }
  12605. ee.WriteMapEnd()
  12606. }
  12607. func (e *Encoder) fastpathEncMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  12608. fastpathTV.EncMapBoolUint32V(rv2i(rv).(map[bool]uint32), e)
  12609. }
  12610. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, e *Encoder) {
  12611. if v == nil {
  12612. e.e.EncodeNil()
  12613. return
  12614. }
  12615. ee, esep := e.e, e.hh.hasElemSeparators()
  12616. ee.WriteMapStart(len(v))
  12617. if e.h.Canonical {
  12618. v2 := make([]bool, len(v))
  12619. var i int
  12620. for k, _ := range v {
  12621. v2[i] = bool(k)
  12622. i++
  12623. }
  12624. sort.Sort(boolSlice(v2))
  12625. for _, k2 := range v2 {
  12626. if esep {
  12627. ee.WriteMapElemKey()
  12628. }
  12629. ee.EncodeBool(bool(k2))
  12630. if esep {
  12631. ee.WriteMapElemValue()
  12632. }
  12633. ee.EncodeUint(uint64(v[bool(k2)]))
  12634. }
  12635. } else {
  12636. for k2, v2 := range v {
  12637. if esep {
  12638. ee.WriteMapElemKey()
  12639. }
  12640. ee.EncodeBool(k2)
  12641. if esep {
  12642. ee.WriteMapElemValue()
  12643. }
  12644. ee.EncodeUint(uint64(v2))
  12645. }
  12646. }
  12647. ee.WriteMapEnd()
  12648. }
  12649. func (e *Encoder) fastpathEncMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  12650. fastpathTV.EncMapBoolUint64V(rv2i(rv).(map[bool]uint64), e)
  12651. }
  12652. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, e *Encoder) {
  12653. if v == nil {
  12654. e.e.EncodeNil()
  12655. return
  12656. }
  12657. ee, esep := e.e, e.hh.hasElemSeparators()
  12658. ee.WriteMapStart(len(v))
  12659. if e.h.Canonical {
  12660. v2 := make([]bool, len(v))
  12661. var i int
  12662. for k, _ := range v {
  12663. v2[i] = bool(k)
  12664. i++
  12665. }
  12666. sort.Sort(boolSlice(v2))
  12667. for _, k2 := range v2 {
  12668. if esep {
  12669. ee.WriteMapElemKey()
  12670. }
  12671. ee.EncodeBool(bool(k2))
  12672. if esep {
  12673. ee.WriteMapElemValue()
  12674. }
  12675. ee.EncodeUint(uint64(v[bool(k2)]))
  12676. }
  12677. } else {
  12678. for k2, v2 := range v {
  12679. if esep {
  12680. ee.WriteMapElemKey()
  12681. }
  12682. ee.EncodeBool(k2)
  12683. if esep {
  12684. ee.WriteMapElemValue()
  12685. }
  12686. ee.EncodeUint(uint64(v2))
  12687. }
  12688. }
  12689. ee.WriteMapEnd()
  12690. }
  12691. func (e *Encoder) fastpathEncMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  12692. fastpathTV.EncMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), e)
  12693. }
  12694. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, e *Encoder) {
  12695. if v == nil {
  12696. e.e.EncodeNil()
  12697. return
  12698. }
  12699. ee, esep := e.e, e.hh.hasElemSeparators()
  12700. ee.WriteMapStart(len(v))
  12701. if e.h.Canonical {
  12702. v2 := make([]bool, len(v))
  12703. var i int
  12704. for k, _ := range v {
  12705. v2[i] = bool(k)
  12706. i++
  12707. }
  12708. sort.Sort(boolSlice(v2))
  12709. for _, k2 := range v2 {
  12710. if esep {
  12711. ee.WriteMapElemKey()
  12712. }
  12713. ee.EncodeBool(bool(k2))
  12714. if esep {
  12715. ee.WriteMapElemValue()
  12716. }
  12717. e.encode(v[bool(k2)])
  12718. }
  12719. } else {
  12720. for k2, v2 := range v {
  12721. if esep {
  12722. ee.WriteMapElemKey()
  12723. }
  12724. ee.EncodeBool(k2)
  12725. if esep {
  12726. ee.WriteMapElemValue()
  12727. }
  12728. e.encode(v2)
  12729. }
  12730. }
  12731. ee.WriteMapEnd()
  12732. }
  12733. func (e *Encoder) fastpathEncMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  12734. fastpathTV.EncMapBoolIntV(rv2i(rv).(map[bool]int), e)
  12735. }
  12736. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, e *Encoder) {
  12737. if v == nil {
  12738. e.e.EncodeNil()
  12739. return
  12740. }
  12741. ee, esep := e.e, e.hh.hasElemSeparators()
  12742. ee.WriteMapStart(len(v))
  12743. if e.h.Canonical {
  12744. v2 := make([]bool, len(v))
  12745. var i int
  12746. for k, _ := range v {
  12747. v2[i] = bool(k)
  12748. i++
  12749. }
  12750. sort.Sort(boolSlice(v2))
  12751. for _, k2 := range v2 {
  12752. if esep {
  12753. ee.WriteMapElemKey()
  12754. }
  12755. ee.EncodeBool(bool(k2))
  12756. if esep {
  12757. ee.WriteMapElemValue()
  12758. }
  12759. ee.EncodeInt(int64(v[bool(k2)]))
  12760. }
  12761. } else {
  12762. for k2, v2 := range v {
  12763. if esep {
  12764. ee.WriteMapElemKey()
  12765. }
  12766. ee.EncodeBool(k2)
  12767. if esep {
  12768. ee.WriteMapElemValue()
  12769. }
  12770. ee.EncodeInt(int64(v2))
  12771. }
  12772. }
  12773. ee.WriteMapEnd()
  12774. }
  12775. func (e *Encoder) fastpathEncMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  12776. fastpathTV.EncMapBoolInt8V(rv2i(rv).(map[bool]int8), e)
  12777. }
  12778. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, e *Encoder) {
  12779. if v == nil {
  12780. e.e.EncodeNil()
  12781. return
  12782. }
  12783. ee, esep := e.e, e.hh.hasElemSeparators()
  12784. ee.WriteMapStart(len(v))
  12785. if e.h.Canonical {
  12786. v2 := make([]bool, len(v))
  12787. var i int
  12788. for k, _ := range v {
  12789. v2[i] = bool(k)
  12790. i++
  12791. }
  12792. sort.Sort(boolSlice(v2))
  12793. for _, k2 := range v2 {
  12794. if esep {
  12795. ee.WriteMapElemKey()
  12796. }
  12797. ee.EncodeBool(bool(k2))
  12798. if esep {
  12799. ee.WriteMapElemValue()
  12800. }
  12801. ee.EncodeInt(int64(v[bool(k2)]))
  12802. }
  12803. } else {
  12804. for k2, v2 := range v {
  12805. if esep {
  12806. ee.WriteMapElemKey()
  12807. }
  12808. ee.EncodeBool(k2)
  12809. if esep {
  12810. ee.WriteMapElemValue()
  12811. }
  12812. ee.EncodeInt(int64(v2))
  12813. }
  12814. }
  12815. ee.WriteMapEnd()
  12816. }
  12817. func (e *Encoder) fastpathEncMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  12818. fastpathTV.EncMapBoolInt16V(rv2i(rv).(map[bool]int16), e)
  12819. }
  12820. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, e *Encoder) {
  12821. if v == nil {
  12822. e.e.EncodeNil()
  12823. return
  12824. }
  12825. ee, esep := e.e, e.hh.hasElemSeparators()
  12826. ee.WriteMapStart(len(v))
  12827. if e.h.Canonical {
  12828. v2 := make([]bool, len(v))
  12829. var i int
  12830. for k, _ := range v {
  12831. v2[i] = bool(k)
  12832. i++
  12833. }
  12834. sort.Sort(boolSlice(v2))
  12835. for _, k2 := range v2 {
  12836. if esep {
  12837. ee.WriteMapElemKey()
  12838. }
  12839. ee.EncodeBool(bool(k2))
  12840. if esep {
  12841. ee.WriteMapElemValue()
  12842. }
  12843. ee.EncodeInt(int64(v[bool(k2)]))
  12844. }
  12845. } else {
  12846. for k2, v2 := range v {
  12847. if esep {
  12848. ee.WriteMapElemKey()
  12849. }
  12850. ee.EncodeBool(k2)
  12851. if esep {
  12852. ee.WriteMapElemValue()
  12853. }
  12854. ee.EncodeInt(int64(v2))
  12855. }
  12856. }
  12857. ee.WriteMapEnd()
  12858. }
  12859. func (e *Encoder) fastpathEncMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  12860. fastpathTV.EncMapBoolInt32V(rv2i(rv).(map[bool]int32), e)
  12861. }
  12862. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, e *Encoder) {
  12863. if v == nil {
  12864. e.e.EncodeNil()
  12865. return
  12866. }
  12867. ee, esep := e.e, e.hh.hasElemSeparators()
  12868. ee.WriteMapStart(len(v))
  12869. if e.h.Canonical {
  12870. v2 := make([]bool, len(v))
  12871. var i int
  12872. for k, _ := range v {
  12873. v2[i] = bool(k)
  12874. i++
  12875. }
  12876. sort.Sort(boolSlice(v2))
  12877. for _, k2 := range v2 {
  12878. if esep {
  12879. ee.WriteMapElemKey()
  12880. }
  12881. ee.EncodeBool(bool(k2))
  12882. if esep {
  12883. ee.WriteMapElemValue()
  12884. }
  12885. ee.EncodeInt(int64(v[bool(k2)]))
  12886. }
  12887. } else {
  12888. for k2, v2 := range v {
  12889. if esep {
  12890. ee.WriteMapElemKey()
  12891. }
  12892. ee.EncodeBool(k2)
  12893. if esep {
  12894. ee.WriteMapElemValue()
  12895. }
  12896. ee.EncodeInt(int64(v2))
  12897. }
  12898. }
  12899. ee.WriteMapEnd()
  12900. }
  12901. func (e *Encoder) fastpathEncMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  12902. fastpathTV.EncMapBoolInt64V(rv2i(rv).(map[bool]int64), e)
  12903. }
  12904. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, e *Encoder) {
  12905. if v == nil {
  12906. e.e.EncodeNil()
  12907. return
  12908. }
  12909. ee, esep := e.e, e.hh.hasElemSeparators()
  12910. ee.WriteMapStart(len(v))
  12911. if e.h.Canonical {
  12912. v2 := make([]bool, len(v))
  12913. var i int
  12914. for k, _ := range v {
  12915. v2[i] = bool(k)
  12916. i++
  12917. }
  12918. sort.Sort(boolSlice(v2))
  12919. for _, k2 := range v2 {
  12920. if esep {
  12921. ee.WriteMapElemKey()
  12922. }
  12923. ee.EncodeBool(bool(k2))
  12924. if esep {
  12925. ee.WriteMapElemValue()
  12926. }
  12927. ee.EncodeInt(int64(v[bool(k2)]))
  12928. }
  12929. } else {
  12930. for k2, v2 := range v {
  12931. if esep {
  12932. ee.WriteMapElemKey()
  12933. }
  12934. ee.EncodeBool(k2)
  12935. if esep {
  12936. ee.WriteMapElemValue()
  12937. }
  12938. ee.EncodeInt(int64(v2))
  12939. }
  12940. }
  12941. ee.WriteMapEnd()
  12942. }
  12943. func (e *Encoder) fastpathEncMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  12944. fastpathTV.EncMapBoolFloat32V(rv2i(rv).(map[bool]float32), e)
  12945. }
  12946. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, e *Encoder) {
  12947. if v == nil {
  12948. e.e.EncodeNil()
  12949. return
  12950. }
  12951. ee, esep := e.e, e.hh.hasElemSeparators()
  12952. ee.WriteMapStart(len(v))
  12953. if e.h.Canonical {
  12954. v2 := make([]bool, len(v))
  12955. var i int
  12956. for k, _ := range v {
  12957. v2[i] = bool(k)
  12958. i++
  12959. }
  12960. sort.Sort(boolSlice(v2))
  12961. for _, k2 := range v2 {
  12962. if esep {
  12963. ee.WriteMapElemKey()
  12964. }
  12965. ee.EncodeBool(bool(k2))
  12966. if esep {
  12967. ee.WriteMapElemValue()
  12968. }
  12969. ee.EncodeFloat32(v[bool(k2)])
  12970. }
  12971. } else {
  12972. for k2, v2 := range v {
  12973. if esep {
  12974. ee.WriteMapElemKey()
  12975. }
  12976. ee.EncodeBool(k2)
  12977. if esep {
  12978. ee.WriteMapElemValue()
  12979. }
  12980. ee.EncodeFloat32(v2)
  12981. }
  12982. }
  12983. ee.WriteMapEnd()
  12984. }
  12985. func (e *Encoder) fastpathEncMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  12986. fastpathTV.EncMapBoolFloat64V(rv2i(rv).(map[bool]float64), e)
  12987. }
  12988. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, e *Encoder) {
  12989. if v == nil {
  12990. e.e.EncodeNil()
  12991. return
  12992. }
  12993. ee, esep := e.e, e.hh.hasElemSeparators()
  12994. ee.WriteMapStart(len(v))
  12995. if e.h.Canonical {
  12996. v2 := make([]bool, len(v))
  12997. var i int
  12998. for k, _ := range v {
  12999. v2[i] = bool(k)
  13000. i++
  13001. }
  13002. sort.Sort(boolSlice(v2))
  13003. for _, k2 := range v2 {
  13004. if esep {
  13005. ee.WriteMapElemKey()
  13006. }
  13007. ee.EncodeBool(bool(k2))
  13008. if esep {
  13009. ee.WriteMapElemValue()
  13010. }
  13011. ee.EncodeFloat64(v[bool(k2)])
  13012. }
  13013. } else {
  13014. for k2, v2 := range v {
  13015. if esep {
  13016. ee.WriteMapElemKey()
  13017. }
  13018. ee.EncodeBool(k2)
  13019. if esep {
  13020. ee.WriteMapElemValue()
  13021. }
  13022. ee.EncodeFloat64(v2)
  13023. }
  13024. }
  13025. ee.WriteMapEnd()
  13026. }
  13027. func (e *Encoder) fastpathEncMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  13028. fastpathTV.EncMapBoolBoolV(rv2i(rv).(map[bool]bool), e)
  13029. }
  13030. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, e *Encoder) {
  13031. if v == nil {
  13032. e.e.EncodeNil()
  13033. return
  13034. }
  13035. ee, esep := e.e, e.hh.hasElemSeparators()
  13036. ee.WriteMapStart(len(v))
  13037. if e.h.Canonical {
  13038. v2 := make([]bool, len(v))
  13039. var i int
  13040. for k, _ := range v {
  13041. v2[i] = bool(k)
  13042. i++
  13043. }
  13044. sort.Sort(boolSlice(v2))
  13045. for _, k2 := range v2 {
  13046. if esep {
  13047. ee.WriteMapElemKey()
  13048. }
  13049. ee.EncodeBool(bool(k2))
  13050. if esep {
  13051. ee.WriteMapElemValue()
  13052. }
  13053. ee.EncodeBool(v[bool(k2)])
  13054. }
  13055. } else {
  13056. for k2, v2 := range v {
  13057. if esep {
  13058. ee.WriteMapElemKey()
  13059. }
  13060. ee.EncodeBool(k2)
  13061. if esep {
  13062. ee.WriteMapElemValue()
  13063. }
  13064. ee.EncodeBool(v2)
  13065. }
  13066. }
  13067. ee.WriteMapEnd()
  13068. }
  13069. // -- decode
  13070. // -- -- fast path type switch
  13071. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  13072. switch v := iv.(type) {
  13073. case []interface{}:
  13074. fastpathTV.DecSliceIntfV(v, false, d)
  13075. case *[]interface{}:
  13076. if v2, changed2 := fastpathTV.DecSliceIntfV(*v, true, d); changed2 {
  13077. *v = v2
  13078. }
  13079. case map[interface{}]interface{}:
  13080. fastpathTV.DecMapIntfIntfV(v, false, d)
  13081. case *map[interface{}]interface{}:
  13082. if v2, changed2 := fastpathTV.DecMapIntfIntfV(*v, true, d); changed2 {
  13083. *v = v2
  13084. }
  13085. case map[interface{}]string:
  13086. fastpathTV.DecMapIntfStringV(v, false, d)
  13087. case *map[interface{}]string:
  13088. if v2, changed2 := fastpathTV.DecMapIntfStringV(*v, true, d); changed2 {
  13089. *v = v2
  13090. }
  13091. case map[interface{}]uint:
  13092. fastpathTV.DecMapIntfUintV(v, false, d)
  13093. case *map[interface{}]uint:
  13094. if v2, changed2 := fastpathTV.DecMapIntfUintV(*v, true, d); changed2 {
  13095. *v = v2
  13096. }
  13097. case map[interface{}]uint8:
  13098. fastpathTV.DecMapIntfUint8V(v, false, d)
  13099. case *map[interface{}]uint8:
  13100. if v2, changed2 := fastpathTV.DecMapIntfUint8V(*v, true, d); changed2 {
  13101. *v = v2
  13102. }
  13103. case map[interface{}]uint16:
  13104. fastpathTV.DecMapIntfUint16V(v, false, d)
  13105. case *map[interface{}]uint16:
  13106. if v2, changed2 := fastpathTV.DecMapIntfUint16V(*v, true, d); changed2 {
  13107. *v = v2
  13108. }
  13109. case map[interface{}]uint32:
  13110. fastpathTV.DecMapIntfUint32V(v, false, d)
  13111. case *map[interface{}]uint32:
  13112. if v2, changed2 := fastpathTV.DecMapIntfUint32V(*v, true, d); changed2 {
  13113. *v = v2
  13114. }
  13115. case map[interface{}]uint64:
  13116. fastpathTV.DecMapIntfUint64V(v, false, d)
  13117. case *map[interface{}]uint64:
  13118. if v2, changed2 := fastpathTV.DecMapIntfUint64V(*v, true, d); changed2 {
  13119. *v = v2
  13120. }
  13121. case map[interface{}]uintptr:
  13122. fastpathTV.DecMapIntfUintptrV(v, false, d)
  13123. case *map[interface{}]uintptr:
  13124. if v2, changed2 := fastpathTV.DecMapIntfUintptrV(*v, true, d); changed2 {
  13125. *v = v2
  13126. }
  13127. case map[interface{}]int:
  13128. fastpathTV.DecMapIntfIntV(v, false, d)
  13129. case *map[interface{}]int:
  13130. if v2, changed2 := fastpathTV.DecMapIntfIntV(*v, true, d); changed2 {
  13131. *v = v2
  13132. }
  13133. case map[interface{}]int8:
  13134. fastpathTV.DecMapIntfInt8V(v, false, d)
  13135. case *map[interface{}]int8:
  13136. if v2, changed2 := fastpathTV.DecMapIntfInt8V(*v, true, d); changed2 {
  13137. *v = v2
  13138. }
  13139. case map[interface{}]int16:
  13140. fastpathTV.DecMapIntfInt16V(v, false, d)
  13141. case *map[interface{}]int16:
  13142. if v2, changed2 := fastpathTV.DecMapIntfInt16V(*v, true, d); changed2 {
  13143. *v = v2
  13144. }
  13145. case map[interface{}]int32:
  13146. fastpathTV.DecMapIntfInt32V(v, false, d)
  13147. case *map[interface{}]int32:
  13148. if v2, changed2 := fastpathTV.DecMapIntfInt32V(*v, true, d); changed2 {
  13149. *v = v2
  13150. }
  13151. case map[interface{}]int64:
  13152. fastpathTV.DecMapIntfInt64V(v, false, d)
  13153. case *map[interface{}]int64:
  13154. if v2, changed2 := fastpathTV.DecMapIntfInt64V(*v, true, d); changed2 {
  13155. *v = v2
  13156. }
  13157. case map[interface{}]float32:
  13158. fastpathTV.DecMapIntfFloat32V(v, false, d)
  13159. case *map[interface{}]float32:
  13160. if v2, changed2 := fastpathTV.DecMapIntfFloat32V(*v, true, d); changed2 {
  13161. *v = v2
  13162. }
  13163. case map[interface{}]float64:
  13164. fastpathTV.DecMapIntfFloat64V(v, false, d)
  13165. case *map[interface{}]float64:
  13166. if v2, changed2 := fastpathTV.DecMapIntfFloat64V(*v, true, d); changed2 {
  13167. *v = v2
  13168. }
  13169. case map[interface{}]bool:
  13170. fastpathTV.DecMapIntfBoolV(v, false, d)
  13171. case *map[interface{}]bool:
  13172. if v2, changed2 := fastpathTV.DecMapIntfBoolV(*v, true, d); changed2 {
  13173. *v = v2
  13174. }
  13175. case []string:
  13176. fastpathTV.DecSliceStringV(v, false, d)
  13177. case *[]string:
  13178. if v2, changed2 := fastpathTV.DecSliceStringV(*v, true, d); changed2 {
  13179. *v = v2
  13180. }
  13181. case map[string]interface{}:
  13182. fastpathTV.DecMapStringIntfV(v, false, d)
  13183. case *map[string]interface{}:
  13184. if v2, changed2 := fastpathTV.DecMapStringIntfV(*v, true, d); changed2 {
  13185. *v = v2
  13186. }
  13187. case map[string]string:
  13188. fastpathTV.DecMapStringStringV(v, false, d)
  13189. case *map[string]string:
  13190. if v2, changed2 := fastpathTV.DecMapStringStringV(*v, true, d); changed2 {
  13191. *v = v2
  13192. }
  13193. case map[string]uint:
  13194. fastpathTV.DecMapStringUintV(v, false, d)
  13195. case *map[string]uint:
  13196. if v2, changed2 := fastpathTV.DecMapStringUintV(*v, true, d); changed2 {
  13197. *v = v2
  13198. }
  13199. case map[string]uint8:
  13200. fastpathTV.DecMapStringUint8V(v, false, d)
  13201. case *map[string]uint8:
  13202. if v2, changed2 := fastpathTV.DecMapStringUint8V(*v, true, d); changed2 {
  13203. *v = v2
  13204. }
  13205. case map[string]uint16:
  13206. fastpathTV.DecMapStringUint16V(v, false, d)
  13207. case *map[string]uint16:
  13208. if v2, changed2 := fastpathTV.DecMapStringUint16V(*v, true, d); changed2 {
  13209. *v = v2
  13210. }
  13211. case map[string]uint32:
  13212. fastpathTV.DecMapStringUint32V(v, false, d)
  13213. case *map[string]uint32:
  13214. if v2, changed2 := fastpathTV.DecMapStringUint32V(*v, true, d); changed2 {
  13215. *v = v2
  13216. }
  13217. case map[string]uint64:
  13218. fastpathTV.DecMapStringUint64V(v, false, d)
  13219. case *map[string]uint64:
  13220. if v2, changed2 := fastpathTV.DecMapStringUint64V(*v, true, d); changed2 {
  13221. *v = v2
  13222. }
  13223. case map[string]uintptr:
  13224. fastpathTV.DecMapStringUintptrV(v, false, d)
  13225. case *map[string]uintptr:
  13226. if v2, changed2 := fastpathTV.DecMapStringUintptrV(*v, true, d); changed2 {
  13227. *v = v2
  13228. }
  13229. case map[string]int:
  13230. fastpathTV.DecMapStringIntV(v, false, d)
  13231. case *map[string]int:
  13232. if v2, changed2 := fastpathTV.DecMapStringIntV(*v, true, d); changed2 {
  13233. *v = v2
  13234. }
  13235. case map[string]int8:
  13236. fastpathTV.DecMapStringInt8V(v, false, d)
  13237. case *map[string]int8:
  13238. if v2, changed2 := fastpathTV.DecMapStringInt8V(*v, true, d); changed2 {
  13239. *v = v2
  13240. }
  13241. case map[string]int16:
  13242. fastpathTV.DecMapStringInt16V(v, false, d)
  13243. case *map[string]int16:
  13244. if v2, changed2 := fastpathTV.DecMapStringInt16V(*v, true, d); changed2 {
  13245. *v = v2
  13246. }
  13247. case map[string]int32:
  13248. fastpathTV.DecMapStringInt32V(v, false, d)
  13249. case *map[string]int32:
  13250. if v2, changed2 := fastpathTV.DecMapStringInt32V(*v, true, d); changed2 {
  13251. *v = v2
  13252. }
  13253. case map[string]int64:
  13254. fastpathTV.DecMapStringInt64V(v, false, d)
  13255. case *map[string]int64:
  13256. if v2, changed2 := fastpathTV.DecMapStringInt64V(*v, true, d); changed2 {
  13257. *v = v2
  13258. }
  13259. case map[string]float32:
  13260. fastpathTV.DecMapStringFloat32V(v, false, d)
  13261. case *map[string]float32:
  13262. if v2, changed2 := fastpathTV.DecMapStringFloat32V(*v, true, d); changed2 {
  13263. *v = v2
  13264. }
  13265. case map[string]float64:
  13266. fastpathTV.DecMapStringFloat64V(v, false, d)
  13267. case *map[string]float64:
  13268. if v2, changed2 := fastpathTV.DecMapStringFloat64V(*v, true, d); changed2 {
  13269. *v = v2
  13270. }
  13271. case map[string]bool:
  13272. fastpathTV.DecMapStringBoolV(v, false, d)
  13273. case *map[string]bool:
  13274. if v2, changed2 := fastpathTV.DecMapStringBoolV(*v, true, d); changed2 {
  13275. *v = v2
  13276. }
  13277. case []float32:
  13278. fastpathTV.DecSliceFloat32V(v, false, d)
  13279. case *[]float32:
  13280. if v2, changed2 := fastpathTV.DecSliceFloat32V(*v, true, d); changed2 {
  13281. *v = v2
  13282. }
  13283. case map[float32]interface{}:
  13284. fastpathTV.DecMapFloat32IntfV(v, false, d)
  13285. case *map[float32]interface{}:
  13286. if v2, changed2 := fastpathTV.DecMapFloat32IntfV(*v, true, d); changed2 {
  13287. *v = v2
  13288. }
  13289. case map[float32]string:
  13290. fastpathTV.DecMapFloat32StringV(v, false, d)
  13291. case *map[float32]string:
  13292. if v2, changed2 := fastpathTV.DecMapFloat32StringV(*v, true, d); changed2 {
  13293. *v = v2
  13294. }
  13295. case map[float32]uint:
  13296. fastpathTV.DecMapFloat32UintV(v, false, d)
  13297. case *map[float32]uint:
  13298. if v2, changed2 := fastpathTV.DecMapFloat32UintV(*v, true, d); changed2 {
  13299. *v = v2
  13300. }
  13301. case map[float32]uint8:
  13302. fastpathTV.DecMapFloat32Uint8V(v, false, d)
  13303. case *map[float32]uint8:
  13304. if v2, changed2 := fastpathTV.DecMapFloat32Uint8V(*v, true, d); changed2 {
  13305. *v = v2
  13306. }
  13307. case map[float32]uint16:
  13308. fastpathTV.DecMapFloat32Uint16V(v, false, d)
  13309. case *map[float32]uint16:
  13310. if v2, changed2 := fastpathTV.DecMapFloat32Uint16V(*v, true, d); changed2 {
  13311. *v = v2
  13312. }
  13313. case map[float32]uint32:
  13314. fastpathTV.DecMapFloat32Uint32V(v, false, d)
  13315. case *map[float32]uint32:
  13316. if v2, changed2 := fastpathTV.DecMapFloat32Uint32V(*v, true, d); changed2 {
  13317. *v = v2
  13318. }
  13319. case map[float32]uint64:
  13320. fastpathTV.DecMapFloat32Uint64V(v, false, d)
  13321. case *map[float32]uint64:
  13322. if v2, changed2 := fastpathTV.DecMapFloat32Uint64V(*v, true, d); changed2 {
  13323. *v = v2
  13324. }
  13325. case map[float32]uintptr:
  13326. fastpathTV.DecMapFloat32UintptrV(v, false, d)
  13327. case *map[float32]uintptr:
  13328. if v2, changed2 := fastpathTV.DecMapFloat32UintptrV(*v, true, d); changed2 {
  13329. *v = v2
  13330. }
  13331. case map[float32]int:
  13332. fastpathTV.DecMapFloat32IntV(v, false, d)
  13333. case *map[float32]int:
  13334. if v2, changed2 := fastpathTV.DecMapFloat32IntV(*v, true, d); changed2 {
  13335. *v = v2
  13336. }
  13337. case map[float32]int8:
  13338. fastpathTV.DecMapFloat32Int8V(v, false, d)
  13339. case *map[float32]int8:
  13340. if v2, changed2 := fastpathTV.DecMapFloat32Int8V(*v, true, d); changed2 {
  13341. *v = v2
  13342. }
  13343. case map[float32]int16:
  13344. fastpathTV.DecMapFloat32Int16V(v, false, d)
  13345. case *map[float32]int16:
  13346. if v2, changed2 := fastpathTV.DecMapFloat32Int16V(*v, true, d); changed2 {
  13347. *v = v2
  13348. }
  13349. case map[float32]int32:
  13350. fastpathTV.DecMapFloat32Int32V(v, false, d)
  13351. case *map[float32]int32:
  13352. if v2, changed2 := fastpathTV.DecMapFloat32Int32V(*v, true, d); changed2 {
  13353. *v = v2
  13354. }
  13355. case map[float32]int64:
  13356. fastpathTV.DecMapFloat32Int64V(v, false, d)
  13357. case *map[float32]int64:
  13358. if v2, changed2 := fastpathTV.DecMapFloat32Int64V(*v, true, d); changed2 {
  13359. *v = v2
  13360. }
  13361. case map[float32]float32:
  13362. fastpathTV.DecMapFloat32Float32V(v, false, d)
  13363. case *map[float32]float32:
  13364. if v2, changed2 := fastpathTV.DecMapFloat32Float32V(*v, true, d); changed2 {
  13365. *v = v2
  13366. }
  13367. case map[float32]float64:
  13368. fastpathTV.DecMapFloat32Float64V(v, false, d)
  13369. case *map[float32]float64:
  13370. if v2, changed2 := fastpathTV.DecMapFloat32Float64V(*v, true, d); changed2 {
  13371. *v = v2
  13372. }
  13373. case map[float32]bool:
  13374. fastpathTV.DecMapFloat32BoolV(v, false, d)
  13375. case *map[float32]bool:
  13376. if v2, changed2 := fastpathTV.DecMapFloat32BoolV(*v, true, d); changed2 {
  13377. *v = v2
  13378. }
  13379. case []float64:
  13380. fastpathTV.DecSliceFloat64V(v, false, d)
  13381. case *[]float64:
  13382. if v2, changed2 := fastpathTV.DecSliceFloat64V(*v, true, d); changed2 {
  13383. *v = v2
  13384. }
  13385. case map[float64]interface{}:
  13386. fastpathTV.DecMapFloat64IntfV(v, false, d)
  13387. case *map[float64]interface{}:
  13388. if v2, changed2 := fastpathTV.DecMapFloat64IntfV(*v, true, d); changed2 {
  13389. *v = v2
  13390. }
  13391. case map[float64]string:
  13392. fastpathTV.DecMapFloat64StringV(v, false, d)
  13393. case *map[float64]string:
  13394. if v2, changed2 := fastpathTV.DecMapFloat64StringV(*v, true, d); changed2 {
  13395. *v = v2
  13396. }
  13397. case map[float64]uint:
  13398. fastpathTV.DecMapFloat64UintV(v, false, d)
  13399. case *map[float64]uint:
  13400. if v2, changed2 := fastpathTV.DecMapFloat64UintV(*v, true, d); changed2 {
  13401. *v = v2
  13402. }
  13403. case map[float64]uint8:
  13404. fastpathTV.DecMapFloat64Uint8V(v, false, d)
  13405. case *map[float64]uint8:
  13406. if v2, changed2 := fastpathTV.DecMapFloat64Uint8V(*v, true, d); changed2 {
  13407. *v = v2
  13408. }
  13409. case map[float64]uint16:
  13410. fastpathTV.DecMapFloat64Uint16V(v, false, d)
  13411. case *map[float64]uint16:
  13412. if v2, changed2 := fastpathTV.DecMapFloat64Uint16V(*v, true, d); changed2 {
  13413. *v = v2
  13414. }
  13415. case map[float64]uint32:
  13416. fastpathTV.DecMapFloat64Uint32V(v, false, d)
  13417. case *map[float64]uint32:
  13418. if v2, changed2 := fastpathTV.DecMapFloat64Uint32V(*v, true, d); changed2 {
  13419. *v = v2
  13420. }
  13421. case map[float64]uint64:
  13422. fastpathTV.DecMapFloat64Uint64V(v, false, d)
  13423. case *map[float64]uint64:
  13424. if v2, changed2 := fastpathTV.DecMapFloat64Uint64V(*v, true, d); changed2 {
  13425. *v = v2
  13426. }
  13427. case map[float64]uintptr:
  13428. fastpathTV.DecMapFloat64UintptrV(v, false, d)
  13429. case *map[float64]uintptr:
  13430. if v2, changed2 := fastpathTV.DecMapFloat64UintptrV(*v, true, d); changed2 {
  13431. *v = v2
  13432. }
  13433. case map[float64]int:
  13434. fastpathTV.DecMapFloat64IntV(v, false, d)
  13435. case *map[float64]int:
  13436. if v2, changed2 := fastpathTV.DecMapFloat64IntV(*v, true, d); changed2 {
  13437. *v = v2
  13438. }
  13439. case map[float64]int8:
  13440. fastpathTV.DecMapFloat64Int8V(v, false, d)
  13441. case *map[float64]int8:
  13442. if v2, changed2 := fastpathTV.DecMapFloat64Int8V(*v, true, d); changed2 {
  13443. *v = v2
  13444. }
  13445. case map[float64]int16:
  13446. fastpathTV.DecMapFloat64Int16V(v, false, d)
  13447. case *map[float64]int16:
  13448. if v2, changed2 := fastpathTV.DecMapFloat64Int16V(*v, true, d); changed2 {
  13449. *v = v2
  13450. }
  13451. case map[float64]int32:
  13452. fastpathTV.DecMapFloat64Int32V(v, false, d)
  13453. case *map[float64]int32:
  13454. if v2, changed2 := fastpathTV.DecMapFloat64Int32V(*v, true, d); changed2 {
  13455. *v = v2
  13456. }
  13457. case map[float64]int64:
  13458. fastpathTV.DecMapFloat64Int64V(v, false, d)
  13459. case *map[float64]int64:
  13460. if v2, changed2 := fastpathTV.DecMapFloat64Int64V(*v, true, d); changed2 {
  13461. *v = v2
  13462. }
  13463. case map[float64]float32:
  13464. fastpathTV.DecMapFloat64Float32V(v, false, d)
  13465. case *map[float64]float32:
  13466. if v2, changed2 := fastpathTV.DecMapFloat64Float32V(*v, true, d); changed2 {
  13467. *v = v2
  13468. }
  13469. case map[float64]float64:
  13470. fastpathTV.DecMapFloat64Float64V(v, false, d)
  13471. case *map[float64]float64:
  13472. if v2, changed2 := fastpathTV.DecMapFloat64Float64V(*v, true, d); changed2 {
  13473. *v = v2
  13474. }
  13475. case map[float64]bool:
  13476. fastpathTV.DecMapFloat64BoolV(v, false, d)
  13477. case *map[float64]bool:
  13478. if v2, changed2 := fastpathTV.DecMapFloat64BoolV(*v, true, d); changed2 {
  13479. *v = v2
  13480. }
  13481. case []uint:
  13482. fastpathTV.DecSliceUintV(v, false, d)
  13483. case *[]uint:
  13484. if v2, changed2 := fastpathTV.DecSliceUintV(*v, true, d); changed2 {
  13485. *v = v2
  13486. }
  13487. case map[uint]interface{}:
  13488. fastpathTV.DecMapUintIntfV(v, false, d)
  13489. case *map[uint]interface{}:
  13490. if v2, changed2 := fastpathTV.DecMapUintIntfV(*v, true, d); changed2 {
  13491. *v = v2
  13492. }
  13493. case map[uint]string:
  13494. fastpathTV.DecMapUintStringV(v, false, d)
  13495. case *map[uint]string:
  13496. if v2, changed2 := fastpathTV.DecMapUintStringV(*v, true, d); changed2 {
  13497. *v = v2
  13498. }
  13499. case map[uint]uint:
  13500. fastpathTV.DecMapUintUintV(v, false, d)
  13501. case *map[uint]uint:
  13502. if v2, changed2 := fastpathTV.DecMapUintUintV(*v, true, d); changed2 {
  13503. *v = v2
  13504. }
  13505. case map[uint]uint8:
  13506. fastpathTV.DecMapUintUint8V(v, false, d)
  13507. case *map[uint]uint8:
  13508. if v2, changed2 := fastpathTV.DecMapUintUint8V(*v, true, d); changed2 {
  13509. *v = v2
  13510. }
  13511. case map[uint]uint16:
  13512. fastpathTV.DecMapUintUint16V(v, false, d)
  13513. case *map[uint]uint16:
  13514. if v2, changed2 := fastpathTV.DecMapUintUint16V(*v, true, d); changed2 {
  13515. *v = v2
  13516. }
  13517. case map[uint]uint32:
  13518. fastpathTV.DecMapUintUint32V(v, false, d)
  13519. case *map[uint]uint32:
  13520. if v2, changed2 := fastpathTV.DecMapUintUint32V(*v, true, d); changed2 {
  13521. *v = v2
  13522. }
  13523. case map[uint]uint64:
  13524. fastpathTV.DecMapUintUint64V(v, false, d)
  13525. case *map[uint]uint64:
  13526. if v2, changed2 := fastpathTV.DecMapUintUint64V(*v, true, d); changed2 {
  13527. *v = v2
  13528. }
  13529. case map[uint]uintptr:
  13530. fastpathTV.DecMapUintUintptrV(v, false, d)
  13531. case *map[uint]uintptr:
  13532. if v2, changed2 := fastpathTV.DecMapUintUintptrV(*v, true, d); changed2 {
  13533. *v = v2
  13534. }
  13535. case map[uint]int:
  13536. fastpathTV.DecMapUintIntV(v, false, d)
  13537. case *map[uint]int:
  13538. if v2, changed2 := fastpathTV.DecMapUintIntV(*v, true, d); changed2 {
  13539. *v = v2
  13540. }
  13541. case map[uint]int8:
  13542. fastpathTV.DecMapUintInt8V(v, false, d)
  13543. case *map[uint]int8:
  13544. if v2, changed2 := fastpathTV.DecMapUintInt8V(*v, true, d); changed2 {
  13545. *v = v2
  13546. }
  13547. case map[uint]int16:
  13548. fastpathTV.DecMapUintInt16V(v, false, d)
  13549. case *map[uint]int16:
  13550. if v2, changed2 := fastpathTV.DecMapUintInt16V(*v, true, d); changed2 {
  13551. *v = v2
  13552. }
  13553. case map[uint]int32:
  13554. fastpathTV.DecMapUintInt32V(v, false, d)
  13555. case *map[uint]int32:
  13556. if v2, changed2 := fastpathTV.DecMapUintInt32V(*v, true, d); changed2 {
  13557. *v = v2
  13558. }
  13559. case map[uint]int64:
  13560. fastpathTV.DecMapUintInt64V(v, false, d)
  13561. case *map[uint]int64:
  13562. if v2, changed2 := fastpathTV.DecMapUintInt64V(*v, true, d); changed2 {
  13563. *v = v2
  13564. }
  13565. case map[uint]float32:
  13566. fastpathTV.DecMapUintFloat32V(v, false, d)
  13567. case *map[uint]float32:
  13568. if v2, changed2 := fastpathTV.DecMapUintFloat32V(*v, true, d); changed2 {
  13569. *v = v2
  13570. }
  13571. case map[uint]float64:
  13572. fastpathTV.DecMapUintFloat64V(v, false, d)
  13573. case *map[uint]float64:
  13574. if v2, changed2 := fastpathTV.DecMapUintFloat64V(*v, true, d); changed2 {
  13575. *v = v2
  13576. }
  13577. case map[uint]bool:
  13578. fastpathTV.DecMapUintBoolV(v, false, d)
  13579. case *map[uint]bool:
  13580. if v2, changed2 := fastpathTV.DecMapUintBoolV(*v, true, d); changed2 {
  13581. *v = v2
  13582. }
  13583. case map[uint8]interface{}:
  13584. fastpathTV.DecMapUint8IntfV(v, false, d)
  13585. case *map[uint8]interface{}:
  13586. if v2, changed2 := fastpathTV.DecMapUint8IntfV(*v, true, d); changed2 {
  13587. *v = v2
  13588. }
  13589. case map[uint8]string:
  13590. fastpathTV.DecMapUint8StringV(v, false, d)
  13591. case *map[uint8]string:
  13592. if v2, changed2 := fastpathTV.DecMapUint8StringV(*v, true, d); changed2 {
  13593. *v = v2
  13594. }
  13595. case map[uint8]uint:
  13596. fastpathTV.DecMapUint8UintV(v, false, d)
  13597. case *map[uint8]uint:
  13598. if v2, changed2 := fastpathTV.DecMapUint8UintV(*v, true, d); changed2 {
  13599. *v = v2
  13600. }
  13601. case map[uint8]uint8:
  13602. fastpathTV.DecMapUint8Uint8V(v, false, d)
  13603. case *map[uint8]uint8:
  13604. if v2, changed2 := fastpathTV.DecMapUint8Uint8V(*v, true, d); changed2 {
  13605. *v = v2
  13606. }
  13607. case map[uint8]uint16:
  13608. fastpathTV.DecMapUint8Uint16V(v, false, d)
  13609. case *map[uint8]uint16:
  13610. if v2, changed2 := fastpathTV.DecMapUint8Uint16V(*v, true, d); changed2 {
  13611. *v = v2
  13612. }
  13613. case map[uint8]uint32:
  13614. fastpathTV.DecMapUint8Uint32V(v, false, d)
  13615. case *map[uint8]uint32:
  13616. if v2, changed2 := fastpathTV.DecMapUint8Uint32V(*v, true, d); changed2 {
  13617. *v = v2
  13618. }
  13619. case map[uint8]uint64:
  13620. fastpathTV.DecMapUint8Uint64V(v, false, d)
  13621. case *map[uint8]uint64:
  13622. if v2, changed2 := fastpathTV.DecMapUint8Uint64V(*v, true, d); changed2 {
  13623. *v = v2
  13624. }
  13625. case map[uint8]uintptr:
  13626. fastpathTV.DecMapUint8UintptrV(v, false, d)
  13627. case *map[uint8]uintptr:
  13628. if v2, changed2 := fastpathTV.DecMapUint8UintptrV(*v, true, d); changed2 {
  13629. *v = v2
  13630. }
  13631. case map[uint8]int:
  13632. fastpathTV.DecMapUint8IntV(v, false, d)
  13633. case *map[uint8]int:
  13634. if v2, changed2 := fastpathTV.DecMapUint8IntV(*v, true, d); changed2 {
  13635. *v = v2
  13636. }
  13637. case map[uint8]int8:
  13638. fastpathTV.DecMapUint8Int8V(v, false, d)
  13639. case *map[uint8]int8:
  13640. if v2, changed2 := fastpathTV.DecMapUint8Int8V(*v, true, d); changed2 {
  13641. *v = v2
  13642. }
  13643. case map[uint8]int16:
  13644. fastpathTV.DecMapUint8Int16V(v, false, d)
  13645. case *map[uint8]int16:
  13646. if v2, changed2 := fastpathTV.DecMapUint8Int16V(*v, true, d); changed2 {
  13647. *v = v2
  13648. }
  13649. case map[uint8]int32:
  13650. fastpathTV.DecMapUint8Int32V(v, false, d)
  13651. case *map[uint8]int32:
  13652. if v2, changed2 := fastpathTV.DecMapUint8Int32V(*v, true, d); changed2 {
  13653. *v = v2
  13654. }
  13655. case map[uint8]int64:
  13656. fastpathTV.DecMapUint8Int64V(v, false, d)
  13657. case *map[uint8]int64:
  13658. if v2, changed2 := fastpathTV.DecMapUint8Int64V(*v, true, d); changed2 {
  13659. *v = v2
  13660. }
  13661. case map[uint8]float32:
  13662. fastpathTV.DecMapUint8Float32V(v, false, d)
  13663. case *map[uint8]float32:
  13664. if v2, changed2 := fastpathTV.DecMapUint8Float32V(*v, true, d); changed2 {
  13665. *v = v2
  13666. }
  13667. case map[uint8]float64:
  13668. fastpathTV.DecMapUint8Float64V(v, false, d)
  13669. case *map[uint8]float64:
  13670. if v2, changed2 := fastpathTV.DecMapUint8Float64V(*v, true, d); changed2 {
  13671. *v = v2
  13672. }
  13673. case map[uint8]bool:
  13674. fastpathTV.DecMapUint8BoolV(v, false, d)
  13675. case *map[uint8]bool:
  13676. if v2, changed2 := fastpathTV.DecMapUint8BoolV(*v, true, d); changed2 {
  13677. *v = v2
  13678. }
  13679. case []uint16:
  13680. fastpathTV.DecSliceUint16V(v, false, d)
  13681. case *[]uint16:
  13682. if v2, changed2 := fastpathTV.DecSliceUint16V(*v, true, d); changed2 {
  13683. *v = v2
  13684. }
  13685. case map[uint16]interface{}:
  13686. fastpathTV.DecMapUint16IntfV(v, false, d)
  13687. case *map[uint16]interface{}:
  13688. if v2, changed2 := fastpathTV.DecMapUint16IntfV(*v, true, d); changed2 {
  13689. *v = v2
  13690. }
  13691. case map[uint16]string:
  13692. fastpathTV.DecMapUint16StringV(v, false, d)
  13693. case *map[uint16]string:
  13694. if v2, changed2 := fastpathTV.DecMapUint16StringV(*v, true, d); changed2 {
  13695. *v = v2
  13696. }
  13697. case map[uint16]uint:
  13698. fastpathTV.DecMapUint16UintV(v, false, d)
  13699. case *map[uint16]uint:
  13700. if v2, changed2 := fastpathTV.DecMapUint16UintV(*v, true, d); changed2 {
  13701. *v = v2
  13702. }
  13703. case map[uint16]uint8:
  13704. fastpathTV.DecMapUint16Uint8V(v, false, d)
  13705. case *map[uint16]uint8:
  13706. if v2, changed2 := fastpathTV.DecMapUint16Uint8V(*v, true, d); changed2 {
  13707. *v = v2
  13708. }
  13709. case map[uint16]uint16:
  13710. fastpathTV.DecMapUint16Uint16V(v, false, d)
  13711. case *map[uint16]uint16:
  13712. if v2, changed2 := fastpathTV.DecMapUint16Uint16V(*v, true, d); changed2 {
  13713. *v = v2
  13714. }
  13715. case map[uint16]uint32:
  13716. fastpathTV.DecMapUint16Uint32V(v, false, d)
  13717. case *map[uint16]uint32:
  13718. if v2, changed2 := fastpathTV.DecMapUint16Uint32V(*v, true, d); changed2 {
  13719. *v = v2
  13720. }
  13721. case map[uint16]uint64:
  13722. fastpathTV.DecMapUint16Uint64V(v, false, d)
  13723. case *map[uint16]uint64:
  13724. if v2, changed2 := fastpathTV.DecMapUint16Uint64V(*v, true, d); changed2 {
  13725. *v = v2
  13726. }
  13727. case map[uint16]uintptr:
  13728. fastpathTV.DecMapUint16UintptrV(v, false, d)
  13729. case *map[uint16]uintptr:
  13730. if v2, changed2 := fastpathTV.DecMapUint16UintptrV(*v, true, d); changed2 {
  13731. *v = v2
  13732. }
  13733. case map[uint16]int:
  13734. fastpathTV.DecMapUint16IntV(v, false, d)
  13735. case *map[uint16]int:
  13736. if v2, changed2 := fastpathTV.DecMapUint16IntV(*v, true, d); changed2 {
  13737. *v = v2
  13738. }
  13739. case map[uint16]int8:
  13740. fastpathTV.DecMapUint16Int8V(v, false, d)
  13741. case *map[uint16]int8:
  13742. if v2, changed2 := fastpathTV.DecMapUint16Int8V(*v, true, d); changed2 {
  13743. *v = v2
  13744. }
  13745. case map[uint16]int16:
  13746. fastpathTV.DecMapUint16Int16V(v, false, d)
  13747. case *map[uint16]int16:
  13748. if v2, changed2 := fastpathTV.DecMapUint16Int16V(*v, true, d); changed2 {
  13749. *v = v2
  13750. }
  13751. case map[uint16]int32:
  13752. fastpathTV.DecMapUint16Int32V(v, false, d)
  13753. case *map[uint16]int32:
  13754. if v2, changed2 := fastpathTV.DecMapUint16Int32V(*v, true, d); changed2 {
  13755. *v = v2
  13756. }
  13757. case map[uint16]int64:
  13758. fastpathTV.DecMapUint16Int64V(v, false, d)
  13759. case *map[uint16]int64:
  13760. if v2, changed2 := fastpathTV.DecMapUint16Int64V(*v, true, d); changed2 {
  13761. *v = v2
  13762. }
  13763. case map[uint16]float32:
  13764. fastpathTV.DecMapUint16Float32V(v, false, d)
  13765. case *map[uint16]float32:
  13766. if v2, changed2 := fastpathTV.DecMapUint16Float32V(*v, true, d); changed2 {
  13767. *v = v2
  13768. }
  13769. case map[uint16]float64:
  13770. fastpathTV.DecMapUint16Float64V(v, false, d)
  13771. case *map[uint16]float64:
  13772. if v2, changed2 := fastpathTV.DecMapUint16Float64V(*v, true, d); changed2 {
  13773. *v = v2
  13774. }
  13775. case map[uint16]bool:
  13776. fastpathTV.DecMapUint16BoolV(v, false, d)
  13777. case *map[uint16]bool:
  13778. if v2, changed2 := fastpathTV.DecMapUint16BoolV(*v, true, d); changed2 {
  13779. *v = v2
  13780. }
  13781. case []uint32:
  13782. fastpathTV.DecSliceUint32V(v, false, d)
  13783. case *[]uint32:
  13784. if v2, changed2 := fastpathTV.DecSliceUint32V(*v, true, d); changed2 {
  13785. *v = v2
  13786. }
  13787. case map[uint32]interface{}:
  13788. fastpathTV.DecMapUint32IntfV(v, false, d)
  13789. case *map[uint32]interface{}:
  13790. if v2, changed2 := fastpathTV.DecMapUint32IntfV(*v, true, d); changed2 {
  13791. *v = v2
  13792. }
  13793. case map[uint32]string:
  13794. fastpathTV.DecMapUint32StringV(v, false, d)
  13795. case *map[uint32]string:
  13796. if v2, changed2 := fastpathTV.DecMapUint32StringV(*v, true, d); changed2 {
  13797. *v = v2
  13798. }
  13799. case map[uint32]uint:
  13800. fastpathTV.DecMapUint32UintV(v, false, d)
  13801. case *map[uint32]uint:
  13802. if v2, changed2 := fastpathTV.DecMapUint32UintV(*v, true, d); changed2 {
  13803. *v = v2
  13804. }
  13805. case map[uint32]uint8:
  13806. fastpathTV.DecMapUint32Uint8V(v, false, d)
  13807. case *map[uint32]uint8:
  13808. if v2, changed2 := fastpathTV.DecMapUint32Uint8V(*v, true, d); changed2 {
  13809. *v = v2
  13810. }
  13811. case map[uint32]uint16:
  13812. fastpathTV.DecMapUint32Uint16V(v, false, d)
  13813. case *map[uint32]uint16:
  13814. if v2, changed2 := fastpathTV.DecMapUint32Uint16V(*v, true, d); changed2 {
  13815. *v = v2
  13816. }
  13817. case map[uint32]uint32:
  13818. fastpathTV.DecMapUint32Uint32V(v, false, d)
  13819. case *map[uint32]uint32:
  13820. if v2, changed2 := fastpathTV.DecMapUint32Uint32V(*v, true, d); changed2 {
  13821. *v = v2
  13822. }
  13823. case map[uint32]uint64:
  13824. fastpathTV.DecMapUint32Uint64V(v, false, d)
  13825. case *map[uint32]uint64:
  13826. if v2, changed2 := fastpathTV.DecMapUint32Uint64V(*v, true, d); changed2 {
  13827. *v = v2
  13828. }
  13829. case map[uint32]uintptr:
  13830. fastpathTV.DecMapUint32UintptrV(v, false, d)
  13831. case *map[uint32]uintptr:
  13832. if v2, changed2 := fastpathTV.DecMapUint32UintptrV(*v, true, d); changed2 {
  13833. *v = v2
  13834. }
  13835. case map[uint32]int:
  13836. fastpathTV.DecMapUint32IntV(v, false, d)
  13837. case *map[uint32]int:
  13838. if v2, changed2 := fastpathTV.DecMapUint32IntV(*v, true, d); changed2 {
  13839. *v = v2
  13840. }
  13841. case map[uint32]int8:
  13842. fastpathTV.DecMapUint32Int8V(v, false, d)
  13843. case *map[uint32]int8:
  13844. if v2, changed2 := fastpathTV.DecMapUint32Int8V(*v, true, d); changed2 {
  13845. *v = v2
  13846. }
  13847. case map[uint32]int16:
  13848. fastpathTV.DecMapUint32Int16V(v, false, d)
  13849. case *map[uint32]int16:
  13850. if v2, changed2 := fastpathTV.DecMapUint32Int16V(*v, true, d); changed2 {
  13851. *v = v2
  13852. }
  13853. case map[uint32]int32:
  13854. fastpathTV.DecMapUint32Int32V(v, false, d)
  13855. case *map[uint32]int32:
  13856. if v2, changed2 := fastpathTV.DecMapUint32Int32V(*v, true, d); changed2 {
  13857. *v = v2
  13858. }
  13859. case map[uint32]int64:
  13860. fastpathTV.DecMapUint32Int64V(v, false, d)
  13861. case *map[uint32]int64:
  13862. if v2, changed2 := fastpathTV.DecMapUint32Int64V(*v, true, d); changed2 {
  13863. *v = v2
  13864. }
  13865. case map[uint32]float32:
  13866. fastpathTV.DecMapUint32Float32V(v, false, d)
  13867. case *map[uint32]float32:
  13868. if v2, changed2 := fastpathTV.DecMapUint32Float32V(*v, true, d); changed2 {
  13869. *v = v2
  13870. }
  13871. case map[uint32]float64:
  13872. fastpathTV.DecMapUint32Float64V(v, false, d)
  13873. case *map[uint32]float64:
  13874. if v2, changed2 := fastpathTV.DecMapUint32Float64V(*v, true, d); changed2 {
  13875. *v = v2
  13876. }
  13877. case map[uint32]bool:
  13878. fastpathTV.DecMapUint32BoolV(v, false, d)
  13879. case *map[uint32]bool:
  13880. if v2, changed2 := fastpathTV.DecMapUint32BoolV(*v, true, d); changed2 {
  13881. *v = v2
  13882. }
  13883. case []uint64:
  13884. fastpathTV.DecSliceUint64V(v, false, d)
  13885. case *[]uint64:
  13886. if v2, changed2 := fastpathTV.DecSliceUint64V(*v, true, d); changed2 {
  13887. *v = v2
  13888. }
  13889. case map[uint64]interface{}:
  13890. fastpathTV.DecMapUint64IntfV(v, false, d)
  13891. case *map[uint64]interface{}:
  13892. if v2, changed2 := fastpathTV.DecMapUint64IntfV(*v, true, d); changed2 {
  13893. *v = v2
  13894. }
  13895. case map[uint64]string:
  13896. fastpathTV.DecMapUint64StringV(v, false, d)
  13897. case *map[uint64]string:
  13898. if v2, changed2 := fastpathTV.DecMapUint64StringV(*v, true, d); changed2 {
  13899. *v = v2
  13900. }
  13901. case map[uint64]uint:
  13902. fastpathTV.DecMapUint64UintV(v, false, d)
  13903. case *map[uint64]uint:
  13904. if v2, changed2 := fastpathTV.DecMapUint64UintV(*v, true, d); changed2 {
  13905. *v = v2
  13906. }
  13907. case map[uint64]uint8:
  13908. fastpathTV.DecMapUint64Uint8V(v, false, d)
  13909. case *map[uint64]uint8:
  13910. if v2, changed2 := fastpathTV.DecMapUint64Uint8V(*v, true, d); changed2 {
  13911. *v = v2
  13912. }
  13913. case map[uint64]uint16:
  13914. fastpathTV.DecMapUint64Uint16V(v, false, d)
  13915. case *map[uint64]uint16:
  13916. if v2, changed2 := fastpathTV.DecMapUint64Uint16V(*v, true, d); changed2 {
  13917. *v = v2
  13918. }
  13919. case map[uint64]uint32:
  13920. fastpathTV.DecMapUint64Uint32V(v, false, d)
  13921. case *map[uint64]uint32:
  13922. if v2, changed2 := fastpathTV.DecMapUint64Uint32V(*v, true, d); changed2 {
  13923. *v = v2
  13924. }
  13925. case map[uint64]uint64:
  13926. fastpathTV.DecMapUint64Uint64V(v, false, d)
  13927. case *map[uint64]uint64:
  13928. if v2, changed2 := fastpathTV.DecMapUint64Uint64V(*v, true, d); changed2 {
  13929. *v = v2
  13930. }
  13931. case map[uint64]uintptr:
  13932. fastpathTV.DecMapUint64UintptrV(v, false, d)
  13933. case *map[uint64]uintptr:
  13934. if v2, changed2 := fastpathTV.DecMapUint64UintptrV(*v, true, d); changed2 {
  13935. *v = v2
  13936. }
  13937. case map[uint64]int:
  13938. fastpathTV.DecMapUint64IntV(v, false, d)
  13939. case *map[uint64]int:
  13940. if v2, changed2 := fastpathTV.DecMapUint64IntV(*v, true, d); changed2 {
  13941. *v = v2
  13942. }
  13943. case map[uint64]int8:
  13944. fastpathTV.DecMapUint64Int8V(v, false, d)
  13945. case *map[uint64]int8:
  13946. if v2, changed2 := fastpathTV.DecMapUint64Int8V(*v, true, d); changed2 {
  13947. *v = v2
  13948. }
  13949. case map[uint64]int16:
  13950. fastpathTV.DecMapUint64Int16V(v, false, d)
  13951. case *map[uint64]int16:
  13952. if v2, changed2 := fastpathTV.DecMapUint64Int16V(*v, true, d); changed2 {
  13953. *v = v2
  13954. }
  13955. case map[uint64]int32:
  13956. fastpathTV.DecMapUint64Int32V(v, false, d)
  13957. case *map[uint64]int32:
  13958. if v2, changed2 := fastpathTV.DecMapUint64Int32V(*v, true, d); changed2 {
  13959. *v = v2
  13960. }
  13961. case map[uint64]int64:
  13962. fastpathTV.DecMapUint64Int64V(v, false, d)
  13963. case *map[uint64]int64:
  13964. if v2, changed2 := fastpathTV.DecMapUint64Int64V(*v, true, d); changed2 {
  13965. *v = v2
  13966. }
  13967. case map[uint64]float32:
  13968. fastpathTV.DecMapUint64Float32V(v, false, d)
  13969. case *map[uint64]float32:
  13970. if v2, changed2 := fastpathTV.DecMapUint64Float32V(*v, true, d); changed2 {
  13971. *v = v2
  13972. }
  13973. case map[uint64]float64:
  13974. fastpathTV.DecMapUint64Float64V(v, false, d)
  13975. case *map[uint64]float64:
  13976. if v2, changed2 := fastpathTV.DecMapUint64Float64V(*v, true, d); changed2 {
  13977. *v = v2
  13978. }
  13979. case map[uint64]bool:
  13980. fastpathTV.DecMapUint64BoolV(v, false, d)
  13981. case *map[uint64]bool:
  13982. if v2, changed2 := fastpathTV.DecMapUint64BoolV(*v, true, d); changed2 {
  13983. *v = v2
  13984. }
  13985. case []uintptr:
  13986. fastpathTV.DecSliceUintptrV(v, false, d)
  13987. case *[]uintptr:
  13988. if v2, changed2 := fastpathTV.DecSliceUintptrV(*v, true, d); changed2 {
  13989. *v = v2
  13990. }
  13991. case map[uintptr]interface{}:
  13992. fastpathTV.DecMapUintptrIntfV(v, false, d)
  13993. case *map[uintptr]interface{}:
  13994. if v2, changed2 := fastpathTV.DecMapUintptrIntfV(*v, true, d); changed2 {
  13995. *v = v2
  13996. }
  13997. case map[uintptr]string:
  13998. fastpathTV.DecMapUintptrStringV(v, false, d)
  13999. case *map[uintptr]string:
  14000. if v2, changed2 := fastpathTV.DecMapUintptrStringV(*v, true, d); changed2 {
  14001. *v = v2
  14002. }
  14003. case map[uintptr]uint:
  14004. fastpathTV.DecMapUintptrUintV(v, false, d)
  14005. case *map[uintptr]uint:
  14006. if v2, changed2 := fastpathTV.DecMapUintptrUintV(*v, true, d); changed2 {
  14007. *v = v2
  14008. }
  14009. case map[uintptr]uint8:
  14010. fastpathTV.DecMapUintptrUint8V(v, false, d)
  14011. case *map[uintptr]uint8:
  14012. if v2, changed2 := fastpathTV.DecMapUintptrUint8V(*v, true, d); changed2 {
  14013. *v = v2
  14014. }
  14015. case map[uintptr]uint16:
  14016. fastpathTV.DecMapUintptrUint16V(v, false, d)
  14017. case *map[uintptr]uint16:
  14018. if v2, changed2 := fastpathTV.DecMapUintptrUint16V(*v, true, d); changed2 {
  14019. *v = v2
  14020. }
  14021. case map[uintptr]uint32:
  14022. fastpathTV.DecMapUintptrUint32V(v, false, d)
  14023. case *map[uintptr]uint32:
  14024. if v2, changed2 := fastpathTV.DecMapUintptrUint32V(*v, true, d); changed2 {
  14025. *v = v2
  14026. }
  14027. case map[uintptr]uint64:
  14028. fastpathTV.DecMapUintptrUint64V(v, false, d)
  14029. case *map[uintptr]uint64:
  14030. if v2, changed2 := fastpathTV.DecMapUintptrUint64V(*v, true, d); changed2 {
  14031. *v = v2
  14032. }
  14033. case map[uintptr]uintptr:
  14034. fastpathTV.DecMapUintptrUintptrV(v, false, d)
  14035. case *map[uintptr]uintptr:
  14036. if v2, changed2 := fastpathTV.DecMapUintptrUintptrV(*v, true, d); changed2 {
  14037. *v = v2
  14038. }
  14039. case map[uintptr]int:
  14040. fastpathTV.DecMapUintptrIntV(v, false, d)
  14041. case *map[uintptr]int:
  14042. if v2, changed2 := fastpathTV.DecMapUintptrIntV(*v, true, d); changed2 {
  14043. *v = v2
  14044. }
  14045. case map[uintptr]int8:
  14046. fastpathTV.DecMapUintptrInt8V(v, false, d)
  14047. case *map[uintptr]int8:
  14048. if v2, changed2 := fastpathTV.DecMapUintptrInt8V(*v, true, d); changed2 {
  14049. *v = v2
  14050. }
  14051. case map[uintptr]int16:
  14052. fastpathTV.DecMapUintptrInt16V(v, false, d)
  14053. case *map[uintptr]int16:
  14054. if v2, changed2 := fastpathTV.DecMapUintptrInt16V(*v, true, d); changed2 {
  14055. *v = v2
  14056. }
  14057. case map[uintptr]int32:
  14058. fastpathTV.DecMapUintptrInt32V(v, false, d)
  14059. case *map[uintptr]int32:
  14060. if v2, changed2 := fastpathTV.DecMapUintptrInt32V(*v, true, d); changed2 {
  14061. *v = v2
  14062. }
  14063. case map[uintptr]int64:
  14064. fastpathTV.DecMapUintptrInt64V(v, false, d)
  14065. case *map[uintptr]int64:
  14066. if v2, changed2 := fastpathTV.DecMapUintptrInt64V(*v, true, d); changed2 {
  14067. *v = v2
  14068. }
  14069. case map[uintptr]float32:
  14070. fastpathTV.DecMapUintptrFloat32V(v, false, d)
  14071. case *map[uintptr]float32:
  14072. if v2, changed2 := fastpathTV.DecMapUintptrFloat32V(*v, true, d); changed2 {
  14073. *v = v2
  14074. }
  14075. case map[uintptr]float64:
  14076. fastpathTV.DecMapUintptrFloat64V(v, false, d)
  14077. case *map[uintptr]float64:
  14078. if v2, changed2 := fastpathTV.DecMapUintptrFloat64V(*v, true, d); changed2 {
  14079. *v = v2
  14080. }
  14081. case map[uintptr]bool:
  14082. fastpathTV.DecMapUintptrBoolV(v, false, d)
  14083. case *map[uintptr]bool:
  14084. if v2, changed2 := fastpathTV.DecMapUintptrBoolV(*v, true, d); changed2 {
  14085. *v = v2
  14086. }
  14087. case []int:
  14088. fastpathTV.DecSliceIntV(v, false, d)
  14089. case *[]int:
  14090. if v2, changed2 := fastpathTV.DecSliceIntV(*v, true, d); changed2 {
  14091. *v = v2
  14092. }
  14093. case map[int]interface{}:
  14094. fastpathTV.DecMapIntIntfV(v, false, d)
  14095. case *map[int]interface{}:
  14096. if v2, changed2 := fastpathTV.DecMapIntIntfV(*v, true, d); changed2 {
  14097. *v = v2
  14098. }
  14099. case map[int]string:
  14100. fastpathTV.DecMapIntStringV(v, false, d)
  14101. case *map[int]string:
  14102. if v2, changed2 := fastpathTV.DecMapIntStringV(*v, true, d); changed2 {
  14103. *v = v2
  14104. }
  14105. case map[int]uint:
  14106. fastpathTV.DecMapIntUintV(v, false, d)
  14107. case *map[int]uint:
  14108. if v2, changed2 := fastpathTV.DecMapIntUintV(*v, true, d); changed2 {
  14109. *v = v2
  14110. }
  14111. case map[int]uint8:
  14112. fastpathTV.DecMapIntUint8V(v, false, d)
  14113. case *map[int]uint8:
  14114. if v2, changed2 := fastpathTV.DecMapIntUint8V(*v, true, d); changed2 {
  14115. *v = v2
  14116. }
  14117. case map[int]uint16:
  14118. fastpathTV.DecMapIntUint16V(v, false, d)
  14119. case *map[int]uint16:
  14120. if v2, changed2 := fastpathTV.DecMapIntUint16V(*v, true, d); changed2 {
  14121. *v = v2
  14122. }
  14123. case map[int]uint32:
  14124. fastpathTV.DecMapIntUint32V(v, false, d)
  14125. case *map[int]uint32:
  14126. if v2, changed2 := fastpathTV.DecMapIntUint32V(*v, true, d); changed2 {
  14127. *v = v2
  14128. }
  14129. case map[int]uint64:
  14130. fastpathTV.DecMapIntUint64V(v, false, d)
  14131. case *map[int]uint64:
  14132. if v2, changed2 := fastpathTV.DecMapIntUint64V(*v, true, d); changed2 {
  14133. *v = v2
  14134. }
  14135. case map[int]uintptr:
  14136. fastpathTV.DecMapIntUintptrV(v, false, d)
  14137. case *map[int]uintptr:
  14138. if v2, changed2 := fastpathTV.DecMapIntUintptrV(*v, true, d); changed2 {
  14139. *v = v2
  14140. }
  14141. case map[int]int:
  14142. fastpathTV.DecMapIntIntV(v, false, d)
  14143. case *map[int]int:
  14144. if v2, changed2 := fastpathTV.DecMapIntIntV(*v, true, d); changed2 {
  14145. *v = v2
  14146. }
  14147. case map[int]int8:
  14148. fastpathTV.DecMapIntInt8V(v, false, d)
  14149. case *map[int]int8:
  14150. if v2, changed2 := fastpathTV.DecMapIntInt8V(*v, true, d); changed2 {
  14151. *v = v2
  14152. }
  14153. case map[int]int16:
  14154. fastpathTV.DecMapIntInt16V(v, false, d)
  14155. case *map[int]int16:
  14156. if v2, changed2 := fastpathTV.DecMapIntInt16V(*v, true, d); changed2 {
  14157. *v = v2
  14158. }
  14159. case map[int]int32:
  14160. fastpathTV.DecMapIntInt32V(v, false, d)
  14161. case *map[int]int32:
  14162. if v2, changed2 := fastpathTV.DecMapIntInt32V(*v, true, d); changed2 {
  14163. *v = v2
  14164. }
  14165. case map[int]int64:
  14166. fastpathTV.DecMapIntInt64V(v, false, d)
  14167. case *map[int]int64:
  14168. if v2, changed2 := fastpathTV.DecMapIntInt64V(*v, true, d); changed2 {
  14169. *v = v2
  14170. }
  14171. case map[int]float32:
  14172. fastpathTV.DecMapIntFloat32V(v, false, d)
  14173. case *map[int]float32:
  14174. if v2, changed2 := fastpathTV.DecMapIntFloat32V(*v, true, d); changed2 {
  14175. *v = v2
  14176. }
  14177. case map[int]float64:
  14178. fastpathTV.DecMapIntFloat64V(v, false, d)
  14179. case *map[int]float64:
  14180. if v2, changed2 := fastpathTV.DecMapIntFloat64V(*v, true, d); changed2 {
  14181. *v = v2
  14182. }
  14183. case map[int]bool:
  14184. fastpathTV.DecMapIntBoolV(v, false, d)
  14185. case *map[int]bool:
  14186. if v2, changed2 := fastpathTV.DecMapIntBoolV(*v, true, d); changed2 {
  14187. *v = v2
  14188. }
  14189. case []int8:
  14190. fastpathTV.DecSliceInt8V(v, false, d)
  14191. case *[]int8:
  14192. if v2, changed2 := fastpathTV.DecSliceInt8V(*v, true, d); changed2 {
  14193. *v = v2
  14194. }
  14195. case map[int8]interface{}:
  14196. fastpathTV.DecMapInt8IntfV(v, false, d)
  14197. case *map[int8]interface{}:
  14198. if v2, changed2 := fastpathTV.DecMapInt8IntfV(*v, true, d); changed2 {
  14199. *v = v2
  14200. }
  14201. case map[int8]string:
  14202. fastpathTV.DecMapInt8StringV(v, false, d)
  14203. case *map[int8]string:
  14204. if v2, changed2 := fastpathTV.DecMapInt8StringV(*v, true, d); changed2 {
  14205. *v = v2
  14206. }
  14207. case map[int8]uint:
  14208. fastpathTV.DecMapInt8UintV(v, false, d)
  14209. case *map[int8]uint:
  14210. if v2, changed2 := fastpathTV.DecMapInt8UintV(*v, true, d); changed2 {
  14211. *v = v2
  14212. }
  14213. case map[int8]uint8:
  14214. fastpathTV.DecMapInt8Uint8V(v, false, d)
  14215. case *map[int8]uint8:
  14216. if v2, changed2 := fastpathTV.DecMapInt8Uint8V(*v, true, d); changed2 {
  14217. *v = v2
  14218. }
  14219. case map[int8]uint16:
  14220. fastpathTV.DecMapInt8Uint16V(v, false, d)
  14221. case *map[int8]uint16:
  14222. if v2, changed2 := fastpathTV.DecMapInt8Uint16V(*v, true, d); changed2 {
  14223. *v = v2
  14224. }
  14225. case map[int8]uint32:
  14226. fastpathTV.DecMapInt8Uint32V(v, false, d)
  14227. case *map[int8]uint32:
  14228. if v2, changed2 := fastpathTV.DecMapInt8Uint32V(*v, true, d); changed2 {
  14229. *v = v2
  14230. }
  14231. case map[int8]uint64:
  14232. fastpathTV.DecMapInt8Uint64V(v, false, d)
  14233. case *map[int8]uint64:
  14234. if v2, changed2 := fastpathTV.DecMapInt8Uint64V(*v, true, d); changed2 {
  14235. *v = v2
  14236. }
  14237. case map[int8]uintptr:
  14238. fastpathTV.DecMapInt8UintptrV(v, false, d)
  14239. case *map[int8]uintptr:
  14240. if v2, changed2 := fastpathTV.DecMapInt8UintptrV(*v, true, d); changed2 {
  14241. *v = v2
  14242. }
  14243. case map[int8]int:
  14244. fastpathTV.DecMapInt8IntV(v, false, d)
  14245. case *map[int8]int:
  14246. if v2, changed2 := fastpathTV.DecMapInt8IntV(*v, true, d); changed2 {
  14247. *v = v2
  14248. }
  14249. case map[int8]int8:
  14250. fastpathTV.DecMapInt8Int8V(v, false, d)
  14251. case *map[int8]int8:
  14252. if v2, changed2 := fastpathTV.DecMapInt8Int8V(*v, true, d); changed2 {
  14253. *v = v2
  14254. }
  14255. case map[int8]int16:
  14256. fastpathTV.DecMapInt8Int16V(v, false, d)
  14257. case *map[int8]int16:
  14258. if v2, changed2 := fastpathTV.DecMapInt8Int16V(*v, true, d); changed2 {
  14259. *v = v2
  14260. }
  14261. case map[int8]int32:
  14262. fastpathTV.DecMapInt8Int32V(v, false, d)
  14263. case *map[int8]int32:
  14264. if v2, changed2 := fastpathTV.DecMapInt8Int32V(*v, true, d); changed2 {
  14265. *v = v2
  14266. }
  14267. case map[int8]int64:
  14268. fastpathTV.DecMapInt8Int64V(v, false, d)
  14269. case *map[int8]int64:
  14270. if v2, changed2 := fastpathTV.DecMapInt8Int64V(*v, true, d); changed2 {
  14271. *v = v2
  14272. }
  14273. case map[int8]float32:
  14274. fastpathTV.DecMapInt8Float32V(v, false, d)
  14275. case *map[int8]float32:
  14276. if v2, changed2 := fastpathTV.DecMapInt8Float32V(*v, true, d); changed2 {
  14277. *v = v2
  14278. }
  14279. case map[int8]float64:
  14280. fastpathTV.DecMapInt8Float64V(v, false, d)
  14281. case *map[int8]float64:
  14282. if v2, changed2 := fastpathTV.DecMapInt8Float64V(*v, true, d); changed2 {
  14283. *v = v2
  14284. }
  14285. case map[int8]bool:
  14286. fastpathTV.DecMapInt8BoolV(v, false, d)
  14287. case *map[int8]bool:
  14288. if v2, changed2 := fastpathTV.DecMapInt8BoolV(*v, true, d); changed2 {
  14289. *v = v2
  14290. }
  14291. case []int16:
  14292. fastpathTV.DecSliceInt16V(v, false, d)
  14293. case *[]int16:
  14294. if v2, changed2 := fastpathTV.DecSliceInt16V(*v, true, d); changed2 {
  14295. *v = v2
  14296. }
  14297. case map[int16]interface{}:
  14298. fastpathTV.DecMapInt16IntfV(v, false, d)
  14299. case *map[int16]interface{}:
  14300. if v2, changed2 := fastpathTV.DecMapInt16IntfV(*v, true, d); changed2 {
  14301. *v = v2
  14302. }
  14303. case map[int16]string:
  14304. fastpathTV.DecMapInt16StringV(v, false, d)
  14305. case *map[int16]string:
  14306. if v2, changed2 := fastpathTV.DecMapInt16StringV(*v, true, d); changed2 {
  14307. *v = v2
  14308. }
  14309. case map[int16]uint:
  14310. fastpathTV.DecMapInt16UintV(v, false, d)
  14311. case *map[int16]uint:
  14312. if v2, changed2 := fastpathTV.DecMapInt16UintV(*v, true, d); changed2 {
  14313. *v = v2
  14314. }
  14315. case map[int16]uint8:
  14316. fastpathTV.DecMapInt16Uint8V(v, false, d)
  14317. case *map[int16]uint8:
  14318. if v2, changed2 := fastpathTV.DecMapInt16Uint8V(*v, true, d); changed2 {
  14319. *v = v2
  14320. }
  14321. case map[int16]uint16:
  14322. fastpathTV.DecMapInt16Uint16V(v, false, d)
  14323. case *map[int16]uint16:
  14324. if v2, changed2 := fastpathTV.DecMapInt16Uint16V(*v, true, d); changed2 {
  14325. *v = v2
  14326. }
  14327. case map[int16]uint32:
  14328. fastpathTV.DecMapInt16Uint32V(v, false, d)
  14329. case *map[int16]uint32:
  14330. if v2, changed2 := fastpathTV.DecMapInt16Uint32V(*v, true, d); changed2 {
  14331. *v = v2
  14332. }
  14333. case map[int16]uint64:
  14334. fastpathTV.DecMapInt16Uint64V(v, false, d)
  14335. case *map[int16]uint64:
  14336. if v2, changed2 := fastpathTV.DecMapInt16Uint64V(*v, true, d); changed2 {
  14337. *v = v2
  14338. }
  14339. case map[int16]uintptr:
  14340. fastpathTV.DecMapInt16UintptrV(v, false, d)
  14341. case *map[int16]uintptr:
  14342. if v2, changed2 := fastpathTV.DecMapInt16UintptrV(*v, true, d); changed2 {
  14343. *v = v2
  14344. }
  14345. case map[int16]int:
  14346. fastpathTV.DecMapInt16IntV(v, false, d)
  14347. case *map[int16]int:
  14348. if v2, changed2 := fastpathTV.DecMapInt16IntV(*v, true, d); changed2 {
  14349. *v = v2
  14350. }
  14351. case map[int16]int8:
  14352. fastpathTV.DecMapInt16Int8V(v, false, d)
  14353. case *map[int16]int8:
  14354. if v2, changed2 := fastpathTV.DecMapInt16Int8V(*v, true, d); changed2 {
  14355. *v = v2
  14356. }
  14357. case map[int16]int16:
  14358. fastpathTV.DecMapInt16Int16V(v, false, d)
  14359. case *map[int16]int16:
  14360. if v2, changed2 := fastpathTV.DecMapInt16Int16V(*v, true, d); changed2 {
  14361. *v = v2
  14362. }
  14363. case map[int16]int32:
  14364. fastpathTV.DecMapInt16Int32V(v, false, d)
  14365. case *map[int16]int32:
  14366. if v2, changed2 := fastpathTV.DecMapInt16Int32V(*v, true, d); changed2 {
  14367. *v = v2
  14368. }
  14369. case map[int16]int64:
  14370. fastpathTV.DecMapInt16Int64V(v, false, d)
  14371. case *map[int16]int64:
  14372. if v2, changed2 := fastpathTV.DecMapInt16Int64V(*v, true, d); changed2 {
  14373. *v = v2
  14374. }
  14375. case map[int16]float32:
  14376. fastpathTV.DecMapInt16Float32V(v, false, d)
  14377. case *map[int16]float32:
  14378. if v2, changed2 := fastpathTV.DecMapInt16Float32V(*v, true, d); changed2 {
  14379. *v = v2
  14380. }
  14381. case map[int16]float64:
  14382. fastpathTV.DecMapInt16Float64V(v, false, d)
  14383. case *map[int16]float64:
  14384. if v2, changed2 := fastpathTV.DecMapInt16Float64V(*v, true, d); changed2 {
  14385. *v = v2
  14386. }
  14387. case map[int16]bool:
  14388. fastpathTV.DecMapInt16BoolV(v, false, d)
  14389. case *map[int16]bool:
  14390. if v2, changed2 := fastpathTV.DecMapInt16BoolV(*v, true, d); changed2 {
  14391. *v = v2
  14392. }
  14393. case []int32:
  14394. fastpathTV.DecSliceInt32V(v, false, d)
  14395. case *[]int32:
  14396. if v2, changed2 := fastpathTV.DecSliceInt32V(*v, true, d); changed2 {
  14397. *v = v2
  14398. }
  14399. case map[int32]interface{}:
  14400. fastpathTV.DecMapInt32IntfV(v, false, d)
  14401. case *map[int32]interface{}:
  14402. if v2, changed2 := fastpathTV.DecMapInt32IntfV(*v, true, d); changed2 {
  14403. *v = v2
  14404. }
  14405. case map[int32]string:
  14406. fastpathTV.DecMapInt32StringV(v, false, d)
  14407. case *map[int32]string:
  14408. if v2, changed2 := fastpathTV.DecMapInt32StringV(*v, true, d); changed2 {
  14409. *v = v2
  14410. }
  14411. case map[int32]uint:
  14412. fastpathTV.DecMapInt32UintV(v, false, d)
  14413. case *map[int32]uint:
  14414. if v2, changed2 := fastpathTV.DecMapInt32UintV(*v, true, d); changed2 {
  14415. *v = v2
  14416. }
  14417. case map[int32]uint8:
  14418. fastpathTV.DecMapInt32Uint8V(v, false, d)
  14419. case *map[int32]uint8:
  14420. if v2, changed2 := fastpathTV.DecMapInt32Uint8V(*v, true, d); changed2 {
  14421. *v = v2
  14422. }
  14423. case map[int32]uint16:
  14424. fastpathTV.DecMapInt32Uint16V(v, false, d)
  14425. case *map[int32]uint16:
  14426. if v2, changed2 := fastpathTV.DecMapInt32Uint16V(*v, true, d); changed2 {
  14427. *v = v2
  14428. }
  14429. case map[int32]uint32:
  14430. fastpathTV.DecMapInt32Uint32V(v, false, d)
  14431. case *map[int32]uint32:
  14432. if v2, changed2 := fastpathTV.DecMapInt32Uint32V(*v, true, d); changed2 {
  14433. *v = v2
  14434. }
  14435. case map[int32]uint64:
  14436. fastpathTV.DecMapInt32Uint64V(v, false, d)
  14437. case *map[int32]uint64:
  14438. if v2, changed2 := fastpathTV.DecMapInt32Uint64V(*v, true, d); changed2 {
  14439. *v = v2
  14440. }
  14441. case map[int32]uintptr:
  14442. fastpathTV.DecMapInt32UintptrV(v, false, d)
  14443. case *map[int32]uintptr:
  14444. if v2, changed2 := fastpathTV.DecMapInt32UintptrV(*v, true, d); changed2 {
  14445. *v = v2
  14446. }
  14447. case map[int32]int:
  14448. fastpathTV.DecMapInt32IntV(v, false, d)
  14449. case *map[int32]int:
  14450. if v2, changed2 := fastpathTV.DecMapInt32IntV(*v, true, d); changed2 {
  14451. *v = v2
  14452. }
  14453. case map[int32]int8:
  14454. fastpathTV.DecMapInt32Int8V(v, false, d)
  14455. case *map[int32]int8:
  14456. if v2, changed2 := fastpathTV.DecMapInt32Int8V(*v, true, d); changed2 {
  14457. *v = v2
  14458. }
  14459. case map[int32]int16:
  14460. fastpathTV.DecMapInt32Int16V(v, false, d)
  14461. case *map[int32]int16:
  14462. if v2, changed2 := fastpathTV.DecMapInt32Int16V(*v, true, d); changed2 {
  14463. *v = v2
  14464. }
  14465. case map[int32]int32:
  14466. fastpathTV.DecMapInt32Int32V(v, false, d)
  14467. case *map[int32]int32:
  14468. if v2, changed2 := fastpathTV.DecMapInt32Int32V(*v, true, d); changed2 {
  14469. *v = v2
  14470. }
  14471. case map[int32]int64:
  14472. fastpathTV.DecMapInt32Int64V(v, false, d)
  14473. case *map[int32]int64:
  14474. if v2, changed2 := fastpathTV.DecMapInt32Int64V(*v, true, d); changed2 {
  14475. *v = v2
  14476. }
  14477. case map[int32]float32:
  14478. fastpathTV.DecMapInt32Float32V(v, false, d)
  14479. case *map[int32]float32:
  14480. if v2, changed2 := fastpathTV.DecMapInt32Float32V(*v, true, d); changed2 {
  14481. *v = v2
  14482. }
  14483. case map[int32]float64:
  14484. fastpathTV.DecMapInt32Float64V(v, false, d)
  14485. case *map[int32]float64:
  14486. if v2, changed2 := fastpathTV.DecMapInt32Float64V(*v, true, d); changed2 {
  14487. *v = v2
  14488. }
  14489. case map[int32]bool:
  14490. fastpathTV.DecMapInt32BoolV(v, false, d)
  14491. case *map[int32]bool:
  14492. if v2, changed2 := fastpathTV.DecMapInt32BoolV(*v, true, d); changed2 {
  14493. *v = v2
  14494. }
  14495. case []int64:
  14496. fastpathTV.DecSliceInt64V(v, false, d)
  14497. case *[]int64:
  14498. if v2, changed2 := fastpathTV.DecSliceInt64V(*v, true, d); changed2 {
  14499. *v = v2
  14500. }
  14501. case map[int64]interface{}:
  14502. fastpathTV.DecMapInt64IntfV(v, false, d)
  14503. case *map[int64]interface{}:
  14504. if v2, changed2 := fastpathTV.DecMapInt64IntfV(*v, true, d); changed2 {
  14505. *v = v2
  14506. }
  14507. case map[int64]string:
  14508. fastpathTV.DecMapInt64StringV(v, false, d)
  14509. case *map[int64]string:
  14510. if v2, changed2 := fastpathTV.DecMapInt64StringV(*v, true, d); changed2 {
  14511. *v = v2
  14512. }
  14513. case map[int64]uint:
  14514. fastpathTV.DecMapInt64UintV(v, false, d)
  14515. case *map[int64]uint:
  14516. if v2, changed2 := fastpathTV.DecMapInt64UintV(*v, true, d); changed2 {
  14517. *v = v2
  14518. }
  14519. case map[int64]uint8:
  14520. fastpathTV.DecMapInt64Uint8V(v, false, d)
  14521. case *map[int64]uint8:
  14522. if v2, changed2 := fastpathTV.DecMapInt64Uint8V(*v, true, d); changed2 {
  14523. *v = v2
  14524. }
  14525. case map[int64]uint16:
  14526. fastpathTV.DecMapInt64Uint16V(v, false, d)
  14527. case *map[int64]uint16:
  14528. if v2, changed2 := fastpathTV.DecMapInt64Uint16V(*v, true, d); changed2 {
  14529. *v = v2
  14530. }
  14531. case map[int64]uint32:
  14532. fastpathTV.DecMapInt64Uint32V(v, false, d)
  14533. case *map[int64]uint32:
  14534. if v2, changed2 := fastpathTV.DecMapInt64Uint32V(*v, true, d); changed2 {
  14535. *v = v2
  14536. }
  14537. case map[int64]uint64:
  14538. fastpathTV.DecMapInt64Uint64V(v, false, d)
  14539. case *map[int64]uint64:
  14540. if v2, changed2 := fastpathTV.DecMapInt64Uint64V(*v, true, d); changed2 {
  14541. *v = v2
  14542. }
  14543. case map[int64]uintptr:
  14544. fastpathTV.DecMapInt64UintptrV(v, false, d)
  14545. case *map[int64]uintptr:
  14546. if v2, changed2 := fastpathTV.DecMapInt64UintptrV(*v, true, d); changed2 {
  14547. *v = v2
  14548. }
  14549. case map[int64]int:
  14550. fastpathTV.DecMapInt64IntV(v, false, d)
  14551. case *map[int64]int:
  14552. if v2, changed2 := fastpathTV.DecMapInt64IntV(*v, true, d); changed2 {
  14553. *v = v2
  14554. }
  14555. case map[int64]int8:
  14556. fastpathTV.DecMapInt64Int8V(v, false, d)
  14557. case *map[int64]int8:
  14558. if v2, changed2 := fastpathTV.DecMapInt64Int8V(*v, true, d); changed2 {
  14559. *v = v2
  14560. }
  14561. case map[int64]int16:
  14562. fastpathTV.DecMapInt64Int16V(v, false, d)
  14563. case *map[int64]int16:
  14564. if v2, changed2 := fastpathTV.DecMapInt64Int16V(*v, true, d); changed2 {
  14565. *v = v2
  14566. }
  14567. case map[int64]int32:
  14568. fastpathTV.DecMapInt64Int32V(v, false, d)
  14569. case *map[int64]int32:
  14570. if v2, changed2 := fastpathTV.DecMapInt64Int32V(*v, true, d); changed2 {
  14571. *v = v2
  14572. }
  14573. case map[int64]int64:
  14574. fastpathTV.DecMapInt64Int64V(v, false, d)
  14575. case *map[int64]int64:
  14576. if v2, changed2 := fastpathTV.DecMapInt64Int64V(*v, true, d); changed2 {
  14577. *v = v2
  14578. }
  14579. case map[int64]float32:
  14580. fastpathTV.DecMapInt64Float32V(v, false, d)
  14581. case *map[int64]float32:
  14582. if v2, changed2 := fastpathTV.DecMapInt64Float32V(*v, true, d); changed2 {
  14583. *v = v2
  14584. }
  14585. case map[int64]float64:
  14586. fastpathTV.DecMapInt64Float64V(v, false, d)
  14587. case *map[int64]float64:
  14588. if v2, changed2 := fastpathTV.DecMapInt64Float64V(*v, true, d); changed2 {
  14589. *v = v2
  14590. }
  14591. case map[int64]bool:
  14592. fastpathTV.DecMapInt64BoolV(v, false, d)
  14593. case *map[int64]bool:
  14594. if v2, changed2 := fastpathTV.DecMapInt64BoolV(*v, true, d); changed2 {
  14595. *v = v2
  14596. }
  14597. case []bool:
  14598. fastpathTV.DecSliceBoolV(v, false, d)
  14599. case *[]bool:
  14600. if v2, changed2 := fastpathTV.DecSliceBoolV(*v, true, d); changed2 {
  14601. *v = v2
  14602. }
  14603. case map[bool]interface{}:
  14604. fastpathTV.DecMapBoolIntfV(v, false, d)
  14605. case *map[bool]interface{}:
  14606. if v2, changed2 := fastpathTV.DecMapBoolIntfV(*v, true, d); changed2 {
  14607. *v = v2
  14608. }
  14609. case map[bool]string:
  14610. fastpathTV.DecMapBoolStringV(v, false, d)
  14611. case *map[bool]string:
  14612. if v2, changed2 := fastpathTV.DecMapBoolStringV(*v, true, d); changed2 {
  14613. *v = v2
  14614. }
  14615. case map[bool]uint:
  14616. fastpathTV.DecMapBoolUintV(v, false, d)
  14617. case *map[bool]uint:
  14618. if v2, changed2 := fastpathTV.DecMapBoolUintV(*v, true, d); changed2 {
  14619. *v = v2
  14620. }
  14621. case map[bool]uint8:
  14622. fastpathTV.DecMapBoolUint8V(v, false, d)
  14623. case *map[bool]uint8:
  14624. if v2, changed2 := fastpathTV.DecMapBoolUint8V(*v, true, d); changed2 {
  14625. *v = v2
  14626. }
  14627. case map[bool]uint16:
  14628. fastpathTV.DecMapBoolUint16V(v, false, d)
  14629. case *map[bool]uint16:
  14630. if v2, changed2 := fastpathTV.DecMapBoolUint16V(*v, true, d); changed2 {
  14631. *v = v2
  14632. }
  14633. case map[bool]uint32:
  14634. fastpathTV.DecMapBoolUint32V(v, false, d)
  14635. case *map[bool]uint32:
  14636. if v2, changed2 := fastpathTV.DecMapBoolUint32V(*v, true, d); changed2 {
  14637. *v = v2
  14638. }
  14639. case map[bool]uint64:
  14640. fastpathTV.DecMapBoolUint64V(v, false, d)
  14641. case *map[bool]uint64:
  14642. if v2, changed2 := fastpathTV.DecMapBoolUint64V(*v, true, d); changed2 {
  14643. *v = v2
  14644. }
  14645. case map[bool]uintptr:
  14646. fastpathTV.DecMapBoolUintptrV(v, false, d)
  14647. case *map[bool]uintptr:
  14648. if v2, changed2 := fastpathTV.DecMapBoolUintptrV(*v, true, d); changed2 {
  14649. *v = v2
  14650. }
  14651. case map[bool]int:
  14652. fastpathTV.DecMapBoolIntV(v, false, d)
  14653. case *map[bool]int:
  14654. if v2, changed2 := fastpathTV.DecMapBoolIntV(*v, true, d); changed2 {
  14655. *v = v2
  14656. }
  14657. case map[bool]int8:
  14658. fastpathTV.DecMapBoolInt8V(v, false, d)
  14659. case *map[bool]int8:
  14660. if v2, changed2 := fastpathTV.DecMapBoolInt8V(*v, true, d); changed2 {
  14661. *v = v2
  14662. }
  14663. case map[bool]int16:
  14664. fastpathTV.DecMapBoolInt16V(v, false, d)
  14665. case *map[bool]int16:
  14666. if v2, changed2 := fastpathTV.DecMapBoolInt16V(*v, true, d); changed2 {
  14667. *v = v2
  14668. }
  14669. case map[bool]int32:
  14670. fastpathTV.DecMapBoolInt32V(v, false, d)
  14671. case *map[bool]int32:
  14672. if v2, changed2 := fastpathTV.DecMapBoolInt32V(*v, true, d); changed2 {
  14673. *v = v2
  14674. }
  14675. case map[bool]int64:
  14676. fastpathTV.DecMapBoolInt64V(v, false, d)
  14677. case *map[bool]int64:
  14678. if v2, changed2 := fastpathTV.DecMapBoolInt64V(*v, true, d); changed2 {
  14679. *v = v2
  14680. }
  14681. case map[bool]float32:
  14682. fastpathTV.DecMapBoolFloat32V(v, false, d)
  14683. case *map[bool]float32:
  14684. if v2, changed2 := fastpathTV.DecMapBoolFloat32V(*v, true, d); changed2 {
  14685. *v = v2
  14686. }
  14687. case map[bool]float64:
  14688. fastpathTV.DecMapBoolFloat64V(v, false, d)
  14689. case *map[bool]float64:
  14690. if v2, changed2 := fastpathTV.DecMapBoolFloat64V(*v, true, d); changed2 {
  14691. *v = v2
  14692. }
  14693. case map[bool]bool:
  14694. fastpathTV.DecMapBoolBoolV(v, false, d)
  14695. case *map[bool]bool:
  14696. if v2, changed2 := fastpathTV.DecMapBoolBoolV(*v, true, d); changed2 {
  14697. *v = v2
  14698. }
  14699. default:
  14700. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  14701. return false
  14702. }
  14703. return true
  14704. }
  14705. func fastpathDecodeSetZeroTypeSwitch(iv interface{}) bool {
  14706. switch v := iv.(type) {
  14707. case *[]interface{}:
  14708. *v = nil
  14709. case *map[interface{}]interface{}:
  14710. *v = nil
  14711. case *map[interface{}]string:
  14712. *v = nil
  14713. case *map[interface{}]uint:
  14714. *v = nil
  14715. case *map[interface{}]uint8:
  14716. *v = nil
  14717. case *map[interface{}]uint16:
  14718. *v = nil
  14719. case *map[interface{}]uint32:
  14720. *v = nil
  14721. case *map[interface{}]uint64:
  14722. *v = nil
  14723. case *map[interface{}]uintptr:
  14724. *v = nil
  14725. case *map[interface{}]int:
  14726. *v = nil
  14727. case *map[interface{}]int8:
  14728. *v = nil
  14729. case *map[interface{}]int16:
  14730. *v = nil
  14731. case *map[interface{}]int32:
  14732. *v = nil
  14733. case *map[interface{}]int64:
  14734. *v = nil
  14735. case *map[interface{}]float32:
  14736. *v = nil
  14737. case *map[interface{}]float64:
  14738. *v = nil
  14739. case *map[interface{}]bool:
  14740. *v = nil
  14741. case *[]string:
  14742. *v = nil
  14743. case *map[string]interface{}:
  14744. *v = nil
  14745. case *map[string]string:
  14746. *v = nil
  14747. case *map[string]uint:
  14748. *v = nil
  14749. case *map[string]uint8:
  14750. *v = nil
  14751. case *map[string]uint16:
  14752. *v = nil
  14753. case *map[string]uint32:
  14754. *v = nil
  14755. case *map[string]uint64:
  14756. *v = nil
  14757. case *map[string]uintptr:
  14758. *v = nil
  14759. case *map[string]int:
  14760. *v = nil
  14761. case *map[string]int8:
  14762. *v = nil
  14763. case *map[string]int16:
  14764. *v = nil
  14765. case *map[string]int32:
  14766. *v = nil
  14767. case *map[string]int64:
  14768. *v = nil
  14769. case *map[string]float32:
  14770. *v = nil
  14771. case *map[string]float64:
  14772. *v = nil
  14773. case *map[string]bool:
  14774. *v = nil
  14775. case *[]float32:
  14776. *v = nil
  14777. case *map[float32]interface{}:
  14778. *v = nil
  14779. case *map[float32]string:
  14780. *v = nil
  14781. case *map[float32]uint:
  14782. *v = nil
  14783. case *map[float32]uint8:
  14784. *v = nil
  14785. case *map[float32]uint16:
  14786. *v = nil
  14787. case *map[float32]uint32:
  14788. *v = nil
  14789. case *map[float32]uint64:
  14790. *v = nil
  14791. case *map[float32]uintptr:
  14792. *v = nil
  14793. case *map[float32]int:
  14794. *v = nil
  14795. case *map[float32]int8:
  14796. *v = nil
  14797. case *map[float32]int16:
  14798. *v = nil
  14799. case *map[float32]int32:
  14800. *v = nil
  14801. case *map[float32]int64:
  14802. *v = nil
  14803. case *map[float32]float32:
  14804. *v = nil
  14805. case *map[float32]float64:
  14806. *v = nil
  14807. case *map[float32]bool:
  14808. *v = nil
  14809. case *[]float64:
  14810. *v = nil
  14811. case *map[float64]interface{}:
  14812. *v = nil
  14813. case *map[float64]string:
  14814. *v = nil
  14815. case *map[float64]uint:
  14816. *v = nil
  14817. case *map[float64]uint8:
  14818. *v = nil
  14819. case *map[float64]uint16:
  14820. *v = nil
  14821. case *map[float64]uint32:
  14822. *v = nil
  14823. case *map[float64]uint64:
  14824. *v = nil
  14825. case *map[float64]uintptr:
  14826. *v = nil
  14827. case *map[float64]int:
  14828. *v = nil
  14829. case *map[float64]int8:
  14830. *v = nil
  14831. case *map[float64]int16:
  14832. *v = nil
  14833. case *map[float64]int32:
  14834. *v = nil
  14835. case *map[float64]int64:
  14836. *v = nil
  14837. case *map[float64]float32:
  14838. *v = nil
  14839. case *map[float64]float64:
  14840. *v = nil
  14841. case *map[float64]bool:
  14842. *v = nil
  14843. case *[]uint:
  14844. *v = nil
  14845. case *map[uint]interface{}:
  14846. *v = nil
  14847. case *map[uint]string:
  14848. *v = nil
  14849. case *map[uint]uint:
  14850. *v = nil
  14851. case *map[uint]uint8:
  14852. *v = nil
  14853. case *map[uint]uint16:
  14854. *v = nil
  14855. case *map[uint]uint32:
  14856. *v = nil
  14857. case *map[uint]uint64:
  14858. *v = nil
  14859. case *map[uint]uintptr:
  14860. *v = nil
  14861. case *map[uint]int:
  14862. *v = nil
  14863. case *map[uint]int8:
  14864. *v = nil
  14865. case *map[uint]int16:
  14866. *v = nil
  14867. case *map[uint]int32:
  14868. *v = nil
  14869. case *map[uint]int64:
  14870. *v = nil
  14871. case *map[uint]float32:
  14872. *v = nil
  14873. case *map[uint]float64:
  14874. *v = nil
  14875. case *map[uint]bool:
  14876. *v = nil
  14877. case *map[uint8]interface{}:
  14878. *v = nil
  14879. case *map[uint8]string:
  14880. *v = nil
  14881. case *map[uint8]uint:
  14882. *v = nil
  14883. case *map[uint8]uint8:
  14884. *v = nil
  14885. case *map[uint8]uint16:
  14886. *v = nil
  14887. case *map[uint8]uint32:
  14888. *v = nil
  14889. case *map[uint8]uint64:
  14890. *v = nil
  14891. case *map[uint8]uintptr:
  14892. *v = nil
  14893. case *map[uint8]int:
  14894. *v = nil
  14895. case *map[uint8]int8:
  14896. *v = nil
  14897. case *map[uint8]int16:
  14898. *v = nil
  14899. case *map[uint8]int32:
  14900. *v = nil
  14901. case *map[uint8]int64:
  14902. *v = nil
  14903. case *map[uint8]float32:
  14904. *v = nil
  14905. case *map[uint8]float64:
  14906. *v = nil
  14907. case *map[uint8]bool:
  14908. *v = nil
  14909. case *[]uint16:
  14910. *v = nil
  14911. case *map[uint16]interface{}:
  14912. *v = nil
  14913. case *map[uint16]string:
  14914. *v = nil
  14915. case *map[uint16]uint:
  14916. *v = nil
  14917. case *map[uint16]uint8:
  14918. *v = nil
  14919. case *map[uint16]uint16:
  14920. *v = nil
  14921. case *map[uint16]uint32:
  14922. *v = nil
  14923. case *map[uint16]uint64:
  14924. *v = nil
  14925. case *map[uint16]uintptr:
  14926. *v = nil
  14927. case *map[uint16]int:
  14928. *v = nil
  14929. case *map[uint16]int8:
  14930. *v = nil
  14931. case *map[uint16]int16:
  14932. *v = nil
  14933. case *map[uint16]int32:
  14934. *v = nil
  14935. case *map[uint16]int64:
  14936. *v = nil
  14937. case *map[uint16]float32:
  14938. *v = nil
  14939. case *map[uint16]float64:
  14940. *v = nil
  14941. case *map[uint16]bool:
  14942. *v = nil
  14943. case *[]uint32:
  14944. *v = nil
  14945. case *map[uint32]interface{}:
  14946. *v = nil
  14947. case *map[uint32]string:
  14948. *v = nil
  14949. case *map[uint32]uint:
  14950. *v = nil
  14951. case *map[uint32]uint8:
  14952. *v = nil
  14953. case *map[uint32]uint16:
  14954. *v = nil
  14955. case *map[uint32]uint32:
  14956. *v = nil
  14957. case *map[uint32]uint64:
  14958. *v = nil
  14959. case *map[uint32]uintptr:
  14960. *v = nil
  14961. case *map[uint32]int:
  14962. *v = nil
  14963. case *map[uint32]int8:
  14964. *v = nil
  14965. case *map[uint32]int16:
  14966. *v = nil
  14967. case *map[uint32]int32:
  14968. *v = nil
  14969. case *map[uint32]int64:
  14970. *v = nil
  14971. case *map[uint32]float32:
  14972. *v = nil
  14973. case *map[uint32]float64:
  14974. *v = nil
  14975. case *map[uint32]bool:
  14976. *v = nil
  14977. case *[]uint64:
  14978. *v = nil
  14979. case *map[uint64]interface{}:
  14980. *v = nil
  14981. case *map[uint64]string:
  14982. *v = nil
  14983. case *map[uint64]uint:
  14984. *v = nil
  14985. case *map[uint64]uint8:
  14986. *v = nil
  14987. case *map[uint64]uint16:
  14988. *v = nil
  14989. case *map[uint64]uint32:
  14990. *v = nil
  14991. case *map[uint64]uint64:
  14992. *v = nil
  14993. case *map[uint64]uintptr:
  14994. *v = nil
  14995. case *map[uint64]int:
  14996. *v = nil
  14997. case *map[uint64]int8:
  14998. *v = nil
  14999. case *map[uint64]int16:
  15000. *v = nil
  15001. case *map[uint64]int32:
  15002. *v = nil
  15003. case *map[uint64]int64:
  15004. *v = nil
  15005. case *map[uint64]float32:
  15006. *v = nil
  15007. case *map[uint64]float64:
  15008. *v = nil
  15009. case *map[uint64]bool:
  15010. *v = nil
  15011. case *[]uintptr:
  15012. *v = nil
  15013. case *map[uintptr]interface{}:
  15014. *v = nil
  15015. case *map[uintptr]string:
  15016. *v = nil
  15017. case *map[uintptr]uint:
  15018. *v = nil
  15019. case *map[uintptr]uint8:
  15020. *v = nil
  15021. case *map[uintptr]uint16:
  15022. *v = nil
  15023. case *map[uintptr]uint32:
  15024. *v = nil
  15025. case *map[uintptr]uint64:
  15026. *v = nil
  15027. case *map[uintptr]uintptr:
  15028. *v = nil
  15029. case *map[uintptr]int:
  15030. *v = nil
  15031. case *map[uintptr]int8:
  15032. *v = nil
  15033. case *map[uintptr]int16:
  15034. *v = nil
  15035. case *map[uintptr]int32:
  15036. *v = nil
  15037. case *map[uintptr]int64:
  15038. *v = nil
  15039. case *map[uintptr]float32:
  15040. *v = nil
  15041. case *map[uintptr]float64:
  15042. *v = nil
  15043. case *map[uintptr]bool:
  15044. *v = nil
  15045. case *[]int:
  15046. *v = nil
  15047. case *map[int]interface{}:
  15048. *v = nil
  15049. case *map[int]string:
  15050. *v = nil
  15051. case *map[int]uint:
  15052. *v = nil
  15053. case *map[int]uint8:
  15054. *v = nil
  15055. case *map[int]uint16:
  15056. *v = nil
  15057. case *map[int]uint32:
  15058. *v = nil
  15059. case *map[int]uint64:
  15060. *v = nil
  15061. case *map[int]uintptr:
  15062. *v = nil
  15063. case *map[int]int:
  15064. *v = nil
  15065. case *map[int]int8:
  15066. *v = nil
  15067. case *map[int]int16:
  15068. *v = nil
  15069. case *map[int]int32:
  15070. *v = nil
  15071. case *map[int]int64:
  15072. *v = nil
  15073. case *map[int]float32:
  15074. *v = nil
  15075. case *map[int]float64:
  15076. *v = nil
  15077. case *map[int]bool:
  15078. *v = nil
  15079. case *[]int8:
  15080. *v = nil
  15081. case *map[int8]interface{}:
  15082. *v = nil
  15083. case *map[int8]string:
  15084. *v = nil
  15085. case *map[int8]uint:
  15086. *v = nil
  15087. case *map[int8]uint8:
  15088. *v = nil
  15089. case *map[int8]uint16:
  15090. *v = nil
  15091. case *map[int8]uint32:
  15092. *v = nil
  15093. case *map[int8]uint64:
  15094. *v = nil
  15095. case *map[int8]uintptr:
  15096. *v = nil
  15097. case *map[int8]int:
  15098. *v = nil
  15099. case *map[int8]int8:
  15100. *v = nil
  15101. case *map[int8]int16:
  15102. *v = nil
  15103. case *map[int8]int32:
  15104. *v = nil
  15105. case *map[int8]int64:
  15106. *v = nil
  15107. case *map[int8]float32:
  15108. *v = nil
  15109. case *map[int8]float64:
  15110. *v = nil
  15111. case *map[int8]bool:
  15112. *v = nil
  15113. case *[]int16:
  15114. *v = nil
  15115. case *map[int16]interface{}:
  15116. *v = nil
  15117. case *map[int16]string:
  15118. *v = nil
  15119. case *map[int16]uint:
  15120. *v = nil
  15121. case *map[int16]uint8:
  15122. *v = nil
  15123. case *map[int16]uint16:
  15124. *v = nil
  15125. case *map[int16]uint32:
  15126. *v = nil
  15127. case *map[int16]uint64:
  15128. *v = nil
  15129. case *map[int16]uintptr:
  15130. *v = nil
  15131. case *map[int16]int:
  15132. *v = nil
  15133. case *map[int16]int8:
  15134. *v = nil
  15135. case *map[int16]int16:
  15136. *v = nil
  15137. case *map[int16]int32:
  15138. *v = nil
  15139. case *map[int16]int64:
  15140. *v = nil
  15141. case *map[int16]float32:
  15142. *v = nil
  15143. case *map[int16]float64:
  15144. *v = nil
  15145. case *map[int16]bool:
  15146. *v = nil
  15147. case *[]int32:
  15148. *v = nil
  15149. case *map[int32]interface{}:
  15150. *v = nil
  15151. case *map[int32]string:
  15152. *v = nil
  15153. case *map[int32]uint:
  15154. *v = nil
  15155. case *map[int32]uint8:
  15156. *v = nil
  15157. case *map[int32]uint16:
  15158. *v = nil
  15159. case *map[int32]uint32:
  15160. *v = nil
  15161. case *map[int32]uint64:
  15162. *v = nil
  15163. case *map[int32]uintptr:
  15164. *v = nil
  15165. case *map[int32]int:
  15166. *v = nil
  15167. case *map[int32]int8:
  15168. *v = nil
  15169. case *map[int32]int16:
  15170. *v = nil
  15171. case *map[int32]int32:
  15172. *v = nil
  15173. case *map[int32]int64:
  15174. *v = nil
  15175. case *map[int32]float32:
  15176. *v = nil
  15177. case *map[int32]float64:
  15178. *v = nil
  15179. case *map[int32]bool:
  15180. *v = nil
  15181. case *[]int64:
  15182. *v = nil
  15183. case *map[int64]interface{}:
  15184. *v = nil
  15185. case *map[int64]string:
  15186. *v = nil
  15187. case *map[int64]uint:
  15188. *v = nil
  15189. case *map[int64]uint8:
  15190. *v = nil
  15191. case *map[int64]uint16:
  15192. *v = nil
  15193. case *map[int64]uint32:
  15194. *v = nil
  15195. case *map[int64]uint64:
  15196. *v = nil
  15197. case *map[int64]uintptr:
  15198. *v = nil
  15199. case *map[int64]int:
  15200. *v = nil
  15201. case *map[int64]int8:
  15202. *v = nil
  15203. case *map[int64]int16:
  15204. *v = nil
  15205. case *map[int64]int32:
  15206. *v = nil
  15207. case *map[int64]int64:
  15208. *v = nil
  15209. case *map[int64]float32:
  15210. *v = nil
  15211. case *map[int64]float64:
  15212. *v = nil
  15213. case *map[int64]bool:
  15214. *v = nil
  15215. case *[]bool:
  15216. *v = nil
  15217. case *map[bool]interface{}:
  15218. *v = nil
  15219. case *map[bool]string:
  15220. *v = nil
  15221. case *map[bool]uint:
  15222. *v = nil
  15223. case *map[bool]uint8:
  15224. *v = nil
  15225. case *map[bool]uint16:
  15226. *v = nil
  15227. case *map[bool]uint32:
  15228. *v = nil
  15229. case *map[bool]uint64:
  15230. *v = nil
  15231. case *map[bool]uintptr:
  15232. *v = nil
  15233. case *map[bool]int:
  15234. *v = nil
  15235. case *map[bool]int8:
  15236. *v = nil
  15237. case *map[bool]int16:
  15238. *v = nil
  15239. case *map[bool]int32:
  15240. *v = nil
  15241. case *map[bool]int64:
  15242. *v = nil
  15243. case *map[bool]float32:
  15244. *v = nil
  15245. case *map[bool]float64:
  15246. *v = nil
  15247. case *map[bool]bool:
  15248. *v = nil
  15249. default:
  15250. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  15251. return false
  15252. }
  15253. return true
  15254. }
  15255. // -- -- fast path functions
  15256. func (d *Decoder) fastpathDecSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  15257. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15258. var vp = rv2i(rv).(*[]interface{})
  15259. if v, changed := fastpathTV.DecSliceIntfV(*vp, !array, d); changed {
  15260. *vp = v
  15261. }
  15262. } else {
  15263. fastpathTV.DecSliceIntfV(rv2i(rv).([]interface{}), !array, d)
  15264. }
  15265. }
  15266. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, d *Decoder) {
  15267. if v, changed := f.DecSliceIntfV(*vp, true, d); changed {
  15268. *vp = v
  15269. }
  15270. }
  15271. func (_ fastpathT) DecSliceIntfV(v []interface{}, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  15272. dd := d.d
  15273. slh, containerLenS := d.decSliceHelperStart()
  15274. if containerLenS == 0 {
  15275. if canChange {
  15276. if v == nil {
  15277. v = []interface{}{}
  15278. } else if len(v) != 0 {
  15279. v = v[:0]
  15280. }
  15281. changed = true
  15282. }
  15283. slh.End()
  15284. return v, changed
  15285. }
  15286. hasLen := containerLenS > 0
  15287. var xlen int
  15288. if hasLen && canChange {
  15289. if containerLenS > cap(v) {
  15290. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  15291. if xlen <= cap(v) {
  15292. v = v[:xlen]
  15293. } else {
  15294. v = make([]interface{}, xlen)
  15295. }
  15296. changed = true
  15297. } else if containerLenS != len(v) {
  15298. v = v[:containerLenS]
  15299. changed = true
  15300. }
  15301. }
  15302. j := 0
  15303. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15304. if j == 0 && len(v) == 0 {
  15305. if hasLen {
  15306. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  15307. } else {
  15308. xlen = 8
  15309. }
  15310. v = make([]interface{}, xlen)
  15311. changed = true
  15312. }
  15313. // if indefinite, etc, then expand the slice if necessary
  15314. var decodeIntoBlank bool
  15315. if j >= len(v) {
  15316. if canChange {
  15317. v = append(v, nil)
  15318. changed = true
  15319. } else {
  15320. d.arrayCannotExpand(len(v), j+1)
  15321. decodeIntoBlank = true
  15322. }
  15323. }
  15324. slh.ElemContainerState(j)
  15325. if decodeIntoBlank {
  15326. d.swallow()
  15327. } else {
  15328. d.decode(&v[j])
  15329. }
  15330. }
  15331. if canChange {
  15332. if j < len(v) {
  15333. v = v[:j]
  15334. changed = true
  15335. } else if j == 0 && v == nil {
  15336. v = make([]interface{}, 0)
  15337. changed = true
  15338. }
  15339. }
  15340. slh.End()
  15341. return v, changed
  15342. }
  15343. func (d *Decoder) fastpathDecSliceStringR(f *codecFnInfo, rv reflect.Value) {
  15344. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15345. var vp = rv2i(rv).(*[]string)
  15346. if v, changed := fastpathTV.DecSliceStringV(*vp, !array, d); changed {
  15347. *vp = v
  15348. }
  15349. } else {
  15350. fastpathTV.DecSliceStringV(rv2i(rv).([]string), !array, d)
  15351. }
  15352. }
  15353. func (f fastpathT) DecSliceStringX(vp *[]string, d *Decoder) {
  15354. if v, changed := f.DecSliceStringV(*vp, true, d); changed {
  15355. *vp = v
  15356. }
  15357. }
  15358. func (_ fastpathT) DecSliceStringV(v []string, canChange bool, d *Decoder) (_ []string, changed bool) {
  15359. dd := d.d
  15360. slh, containerLenS := d.decSliceHelperStart()
  15361. if containerLenS == 0 {
  15362. if canChange {
  15363. if v == nil {
  15364. v = []string{}
  15365. } else if len(v) != 0 {
  15366. v = v[:0]
  15367. }
  15368. changed = true
  15369. }
  15370. slh.End()
  15371. return v, changed
  15372. }
  15373. hasLen := containerLenS > 0
  15374. var xlen int
  15375. if hasLen && canChange {
  15376. if containerLenS > cap(v) {
  15377. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  15378. if xlen <= cap(v) {
  15379. v = v[:xlen]
  15380. } else {
  15381. v = make([]string, xlen)
  15382. }
  15383. changed = true
  15384. } else if containerLenS != len(v) {
  15385. v = v[:containerLenS]
  15386. changed = true
  15387. }
  15388. }
  15389. j := 0
  15390. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15391. if j == 0 && len(v) == 0 {
  15392. if hasLen {
  15393. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  15394. } else {
  15395. xlen = 8
  15396. }
  15397. v = make([]string, xlen)
  15398. changed = true
  15399. }
  15400. // if indefinite, etc, then expand the slice if necessary
  15401. var decodeIntoBlank bool
  15402. if j >= len(v) {
  15403. if canChange {
  15404. v = append(v, "")
  15405. changed = true
  15406. } else {
  15407. d.arrayCannotExpand(len(v), j+1)
  15408. decodeIntoBlank = true
  15409. }
  15410. }
  15411. slh.ElemContainerState(j)
  15412. if decodeIntoBlank {
  15413. d.swallow()
  15414. } else {
  15415. v[j] = dd.DecodeString()
  15416. }
  15417. }
  15418. if canChange {
  15419. if j < len(v) {
  15420. v = v[:j]
  15421. changed = true
  15422. } else if j == 0 && v == nil {
  15423. v = make([]string, 0)
  15424. changed = true
  15425. }
  15426. }
  15427. slh.End()
  15428. return v, changed
  15429. }
  15430. func (d *Decoder) fastpathDecSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  15431. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15432. var vp = rv2i(rv).(*[]float32)
  15433. if v, changed := fastpathTV.DecSliceFloat32V(*vp, !array, d); changed {
  15434. *vp = v
  15435. }
  15436. } else {
  15437. fastpathTV.DecSliceFloat32V(rv2i(rv).([]float32), !array, d)
  15438. }
  15439. }
  15440. func (f fastpathT) DecSliceFloat32X(vp *[]float32, d *Decoder) {
  15441. if v, changed := f.DecSliceFloat32V(*vp, true, d); changed {
  15442. *vp = v
  15443. }
  15444. }
  15445. func (_ fastpathT) DecSliceFloat32V(v []float32, canChange bool, d *Decoder) (_ []float32, changed bool) {
  15446. dd := d.d
  15447. slh, containerLenS := d.decSliceHelperStart()
  15448. if containerLenS == 0 {
  15449. if canChange {
  15450. if v == nil {
  15451. v = []float32{}
  15452. } else if len(v) != 0 {
  15453. v = v[:0]
  15454. }
  15455. changed = true
  15456. }
  15457. slh.End()
  15458. return v, changed
  15459. }
  15460. hasLen := containerLenS > 0
  15461. var xlen int
  15462. if hasLen && canChange {
  15463. if containerLenS > cap(v) {
  15464. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  15465. if xlen <= cap(v) {
  15466. v = v[:xlen]
  15467. } else {
  15468. v = make([]float32, xlen)
  15469. }
  15470. changed = true
  15471. } else if containerLenS != len(v) {
  15472. v = v[:containerLenS]
  15473. changed = true
  15474. }
  15475. }
  15476. j := 0
  15477. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15478. if j == 0 && len(v) == 0 {
  15479. if hasLen {
  15480. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  15481. } else {
  15482. xlen = 8
  15483. }
  15484. v = make([]float32, xlen)
  15485. changed = true
  15486. }
  15487. // if indefinite, etc, then expand the slice if necessary
  15488. var decodeIntoBlank bool
  15489. if j >= len(v) {
  15490. if canChange {
  15491. v = append(v, 0)
  15492. changed = true
  15493. } else {
  15494. d.arrayCannotExpand(len(v), j+1)
  15495. decodeIntoBlank = true
  15496. }
  15497. }
  15498. slh.ElemContainerState(j)
  15499. if decodeIntoBlank {
  15500. d.swallow()
  15501. } else {
  15502. v[j] = float32(dd.DecodeFloat(true))
  15503. }
  15504. }
  15505. if canChange {
  15506. if j < len(v) {
  15507. v = v[:j]
  15508. changed = true
  15509. } else if j == 0 && v == nil {
  15510. v = make([]float32, 0)
  15511. changed = true
  15512. }
  15513. }
  15514. slh.End()
  15515. return v, changed
  15516. }
  15517. func (d *Decoder) fastpathDecSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  15518. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15519. var vp = rv2i(rv).(*[]float64)
  15520. if v, changed := fastpathTV.DecSliceFloat64V(*vp, !array, d); changed {
  15521. *vp = v
  15522. }
  15523. } else {
  15524. fastpathTV.DecSliceFloat64V(rv2i(rv).([]float64), !array, d)
  15525. }
  15526. }
  15527. func (f fastpathT) DecSliceFloat64X(vp *[]float64, d *Decoder) {
  15528. if v, changed := f.DecSliceFloat64V(*vp, true, d); changed {
  15529. *vp = v
  15530. }
  15531. }
  15532. func (_ fastpathT) DecSliceFloat64V(v []float64, canChange bool, d *Decoder) (_ []float64, changed bool) {
  15533. dd := d.d
  15534. slh, containerLenS := d.decSliceHelperStart()
  15535. if containerLenS == 0 {
  15536. if canChange {
  15537. if v == nil {
  15538. v = []float64{}
  15539. } else if len(v) != 0 {
  15540. v = v[:0]
  15541. }
  15542. changed = true
  15543. }
  15544. slh.End()
  15545. return v, changed
  15546. }
  15547. hasLen := containerLenS > 0
  15548. var xlen int
  15549. if hasLen && canChange {
  15550. if containerLenS > cap(v) {
  15551. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15552. if xlen <= cap(v) {
  15553. v = v[:xlen]
  15554. } else {
  15555. v = make([]float64, xlen)
  15556. }
  15557. changed = true
  15558. } else if containerLenS != len(v) {
  15559. v = v[:containerLenS]
  15560. changed = true
  15561. }
  15562. }
  15563. j := 0
  15564. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15565. if j == 0 && len(v) == 0 {
  15566. if hasLen {
  15567. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15568. } else {
  15569. xlen = 8
  15570. }
  15571. v = make([]float64, xlen)
  15572. changed = true
  15573. }
  15574. // if indefinite, etc, then expand the slice if necessary
  15575. var decodeIntoBlank bool
  15576. if j >= len(v) {
  15577. if canChange {
  15578. v = append(v, 0)
  15579. changed = true
  15580. } else {
  15581. d.arrayCannotExpand(len(v), j+1)
  15582. decodeIntoBlank = true
  15583. }
  15584. }
  15585. slh.ElemContainerState(j)
  15586. if decodeIntoBlank {
  15587. d.swallow()
  15588. } else {
  15589. v[j] = dd.DecodeFloat(false)
  15590. }
  15591. }
  15592. if canChange {
  15593. if j < len(v) {
  15594. v = v[:j]
  15595. changed = true
  15596. } else if j == 0 && v == nil {
  15597. v = make([]float64, 0)
  15598. changed = true
  15599. }
  15600. }
  15601. slh.End()
  15602. return v, changed
  15603. }
  15604. func (d *Decoder) fastpathDecSliceUintR(f *codecFnInfo, rv reflect.Value) {
  15605. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15606. var vp = rv2i(rv).(*[]uint)
  15607. if v, changed := fastpathTV.DecSliceUintV(*vp, !array, d); changed {
  15608. *vp = v
  15609. }
  15610. } else {
  15611. fastpathTV.DecSliceUintV(rv2i(rv).([]uint), !array, d)
  15612. }
  15613. }
  15614. func (f fastpathT) DecSliceUintX(vp *[]uint, d *Decoder) {
  15615. if v, changed := f.DecSliceUintV(*vp, true, d); changed {
  15616. *vp = v
  15617. }
  15618. }
  15619. func (_ fastpathT) DecSliceUintV(v []uint, canChange bool, d *Decoder) (_ []uint, changed bool) {
  15620. dd := d.d
  15621. slh, containerLenS := d.decSliceHelperStart()
  15622. if containerLenS == 0 {
  15623. if canChange {
  15624. if v == nil {
  15625. v = []uint{}
  15626. } else if len(v) != 0 {
  15627. v = v[:0]
  15628. }
  15629. changed = true
  15630. }
  15631. slh.End()
  15632. return v, changed
  15633. }
  15634. hasLen := containerLenS > 0
  15635. var xlen int
  15636. if hasLen && canChange {
  15637. if containerLenS > cap(v) {
  15638. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15639. if xlen <= cap(v) {
  15640. v = v[:xlen]
  15641. } else {
  15642. v = make([]uint, xlen)
  15643. }
  15644. changed = true
  15645. } else if containerLenS != len(v) {
  15646. v = v[:containerLenS]
  15647. changed = true
  15648. }
  15649. }
  15650. j := 0
  15651. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15652. if j == 0 && len(v) == 0 {
  15653. if hasLen {
  15654. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15655. } else {
  15656. xlen = 8
  15657. }
  15658. v = make([]uint, xlen)
  15659. changed = true
  15660. }
  15661. // if indefinite, etc, then expand the slice if necessary
  15662. var decodeIntoBlank bool
  15663. if j >= len(v) {
  15664. if canChange {
  15665. v = append(v, 0)
  15666. changed = true
  15667. } else {
  15668. d.arrayCannotExpand(len(v), j+1)
  15669. decodeIntoBlank = true
  15670. }
  15671. }
  15672. slh.ElemContainerState(j)
  15673. if decodeIntoBlank {
  15674. d.swallow()
  15675. } else {
  15676. v[j] = uint(dd.DecodeUint(uintBitsize))
  15677. }
  15678. }
  15679. if canChange {
  15680. if j < len(v) {
  15681. v = v[:j]
  15682. changed = true
  15683. } else if j == 0 && v == nil {
  15684. v = make([]uint, 0)
  15685. changed = true
  15686. }
  15687. }
  15688. slh.End()
  15689. return v, changed
  15690. }
  15691. func (d *Decoder) fastpathDecSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  15692. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15693. var vp = rv2i(rv).(*[]uint16)
  15694. if v, changed := fastpathTV.DecSliceUint16V(*vp, !array, d); changed {
  15695. *vp = v
  15696. }
  15697. } else {
  15698. fastpathTV.DecSliceUint16V(rv2i(rv).([]uint16), !array, d)
  15699. }
  15700. }
  15701. func (f fastpathT) DecSliceUint16X(vp *[]uint16, d *Decoder) {
  15702. if v, changed := f.DecSliceUint16V(*vp, true, d); changed {
  15703. *vp = v
  15704. }
  15705. }
  15706. func (_ fastpathT) DecSliceUint16V(v []uint16, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  15707. dd := d.d
  15708. slh, containerLenS := d.decSliceHelperStart()
  15709. if containerLenS == 0 {
  15710. if canChange {
  15711. if v == nil {
  15712. v = []uint16{}
  15713. } else if len(v) != 0 {
  15714. v = v[:0]
  15715. }
  15716. changed = true
  15717. }
  15718. slh.End()
  15719. return v, changed
  15720. }
  15721. hasLen := containerLenS > 0
  15722. var xlen int
  15723. if hasLen && canChange {
  15724. if containerLenS > cap(v) {
  15725. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  15726. if xlen <= cap(v) {
  15727. v = v[:xlen]
  15728. } else {
  15729. v = make([]uint16, xlen)
  15730. }
  15731. changed = true
  15732. } else if containerLenS != len(v) {
  15733. v = v[:containerLenS]
  15734. changed = true
  15735. }
  15736. }
  15737. j := 0
  15738. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15739. if j == 0 && len(v) == 0 {
  15740. if hasLen {
  15741. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  15742. } else {
  15743. xlen = 8
  15744. }
  15745. v = make([]uint16, xlen)
  15746. changed = true
  15747. }
  15748. // if indefinite, etc, then expand the slice if necessary
  15749. var decodeIntoBlank bool
  15750. if j >= len(v) {
  15751. if canChange {
  15752. v = append(v, 0)
  15753. changed = true
  15754. } else {
  15755. d.arrayCannotExpand(len(v), j+1)
  15756. decodeIntoBlank = true
  15757. }
  15758. }
  15759. slh.ElemContainerState(j)
  15760. if decodeIntoBlank {
  15761. d.swallow()
  15762. } else {
  15763. v[j] = uint16(dd.DecodeUint(16))
  15764. }
  15765. }
  15766. if canChange {
  15767. if j < len(v) {
  15768. v = v[:j]
  15769. changed = true
  15770. } else if j == 0 && v == nil {
  15771. v = make([]uint16, 0)
  15772. changed = true
  15773. }
  15774. }
  15775. slh.End()
  15776. return v, changed
  15777. }
  15778. func (d *Decoder) fastpathDecSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  15779. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15780. var vp = rv2i(rv).(*[]uint32)
  15781. if v, changed := fastpathTV.DecSliceUint32V(*vp, !array, d); changed {
  15782. *vp = v
  15783. }
  15784. } else {
  15785. fastpathTV.DecSliceUint32V(rv2i(rv).([]uint32), !array, d)
  15786. }
  15787. }
  15788. func (f fastpathT) DecSliceUint32X(vp *[]uint32, d *Decoder) {
  15789. if v, changed := f.DecSliceUint32V(*vp, true, d); changed {
  15790. *vp = v
  15791. }
  15792. }
  15793. func (_ fastpathT) DecSliceUint32V(v []uint32, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  15794. dd := d.d
  15795. slh, containerLenS := d.decSliceHelperStart()
  15796. if containerLenS == 0 {
  15797. if canChange {
  15798. if v == nil {
  15799. v = []uint32{}
  15800. } else if len(v) != 0 {
  15801. v = v[:0]
  15802. }
  15803. changed = true
  15804. }
  15805. slh.End()
  15806. return v, changed
  15807. }
  15808. hasLen := containerLenS > 0
  15809. var xlen int
  15810. if hasLen && canChange {
  15811. if containerLenS > cap(v) {
  15812. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  15813. if xlen <= cap(v) {
  15814. v = v[:xlen]
  15815. } else {
  15816. v = make([]uint32, xlen)
  15817. }
  15818. changed = true
  15819. } else if containerLenS != len(v) {
  15820. v = v[:containerLenS]
  15821. changed = true
  15822. }
  15823. }
  15824. j := 0
  15825. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15826. if j == 0 && len(v) == 0 {
  15827. if hasLen {
  15828. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  15829. } else {
  15830. xlen = 8
  15831. }
  15832. v = make([]uint32, xlen)
  15833. changed = true
  15834. }
  15835. // if indefinite, etc, then expand the slice if necessary
  15836. var decodeIntoBlank bool
  15837. if j >= len(v) {
  15838. if canChange {
  15839. v = append(v, 0)
  15840. changed = true
  15841. } else {
  15842. d.arrayCannotExpand(len(v), j+1)
  15843. decodeIntoBlank = true
  15844. }
  15845. }
  15846. slh.ElemContainerState(j)
  15847. if decodeIntoBlank {
  15848. d.swallow()
  15849. } else {
  15850. v[j] = uint32(dd.DecodeUint(32))
  15851. }
  15852. }
  15853. if canChange {
  15854. if j < len(v) {
  15855. v = v[:j]
  15856. changed = true
  15857. } else if j == 0 && v == nil {
  15858. v = make([]uint32, 0)
  15859. changed = true
  15860. }
  15861. }
  15862. slh.End()
  15863. return v, changed
  15864. }
  15865. func (d *Decoder) fastpathDecSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  15866. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15867. var vp = rv2i(rv).(*[]uint64)
  15868. if v, changed := fastpathTV.DecSliceUint64V(*vp, !array, d); changed {
  15869. *vp = v
  15870. }
  15871. } else {
  15872. fastpathTV.DecSliceUint64V(rv2i(rv).([]uint64), !array, d)
  15873. }
  15874. }
  15875. func (f fastpathT) DecSliceUint64X(vp *[]uint64, d *Decoder) {
  15876. if v, changed := f.DecSliceUint64V(*vp, true, d); changed {
  15877. *vp = v
  15878. }
  15879. }
  15880. func (_ fastpathT) DecSliceUint64V(v []uint64, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  15881. dd := d.d
  15882. slh, containerLenS := d.decSliceHelperStart()
  15883. if containerLenS == 0 {
  15884. if canChange {
  15885. if v == nil {
  15886. v = []uint64{}
  15887. } else if len(v) != 0 {
  15888. v = v[:0]
  15889. }
  15890. changed = true
  15891. }
  15892. slh.End()
  15893. return v, changed
  15894. }
  15895. hasLen := containerLenS > 0
  15896. var xlen int
  15897. if hasLen && canChange {
  15898. if containerLenS > cap(v) {
  15899. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15900. if xlen <= cap(v) {
  15901. v = v[:xlen]
  15902. } else {
  15903. v = make([]uint64, xlen)
  15904. }
  15905. changed = true
  15906. } else if containerLenS != len(v) {
  15907. v = v[:containerLenS]
  15908. changed = true
  15909. }
  15910. }
  15911. j := 0
  15912. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15913. if j == 0 && len(v) == 0 {
  15914. if hasLen {
  15915. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15916. } else {
  15917. xlen = 8
  15918. }
  15919. v = make([]uint64, xlen)
  15920. changed = true
  15921. }
  15922. // if indefinite, etc, then expand the slice if necessary
  15923. var decodeIntoBlank bool
  15924. if j >= len(v) {
  15925. if canChange {
  15926. v = append(v, 0)
  15927. changed = true
  15928. } else {
  15929. d.arrayCannotExpand(len(v), j+1)
  15930. decodeIntoBlank = true
  15931. }
  15932. }
  15933. slh.ElemContainerState(j)
  15934. if decodeIntoBlank {
  15935. d.swallow()
  15936. } else {
  15937. v[j] = dd.DecodeUint(64)
  15938. }
  15939. }
  15940. if canChange {
  15941. if j < len(v) {
  15942. v = v[:j]
  15943. changed = true
  15944. } else if j == 0 && v == nil {
  15945. v = make([]uint64, 0)
  15946. changed = true
  15947. }
  15948. }
  15949. slh.End()
  15950. return v, changed
  15951. }
  15952. func (d *Decoder) fastpathDecSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  15953. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15954. var vp = rv2i(rv).(*[]uintptr)
  15955. if v, changed := fastpathTV.DecSliceUintptrV(*vp, !array, d); changed {
  15956. *vp = v
  15957. }
  15958. } else {
  15959. fastpathTV.DecSliceUintptrV(rv2i(rv).([]uintptr), !array, d)
  15960. }
  15961. }
  15962. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, d *Decoder) {
  15963. if v, changed := f.DecSliceUintptrV(*vp, true, d); changed {
  15964. *vp = v
  15965. }
  15966. }
  15967. func (_ fastpathT) DecSliceUintptrV(v []uintptr, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  15968. dd := d.d
  15969. slh, containerLenS := d.decSliceHelperStart()
  15970. if containerLenS == 0 {
  15971. if canChange {
  15972. if v == nil {
  15973. v = []uintptr{}
  15974. } else if len(v) != 0 {
  15975. v = v[:0]
  15976. }
  15977. changed = true
  15978. }
  15979. slh.End()
  15980. return v, changed
  15981. }
  15982. hasLen := containerLenS > 0
  15983. var xlen int
  15984. if hasLen && canChange {
  15985. if containerLenS > cap(v) {
  15986. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15987. if xlen <= cap(v) {
  15988. v = v[:xlen]
  15989. } else {
  15990. v = make([]uintptr, xlen)
  15991. }
  15992. changed = true
  15993. } else if containerLenS != len(v) {
  15994. v = v[:containerLenS]
  15995. changed = true
  15996. }
  15997. }
  15998. j := 0
  15999. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16000. if j == 0 && len(v) == 0 {
  16001. if hasLen {
  16002. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16003. } else {
  16004. xlen = 8
  16005. }
  16006. v = make([]uintptr, xlen)
  16007. changed = true
  16008. }
  16009. // if indefinite, etc, then expand the slice if necessary
  16010. var decodeIntoBlank bool
  16011. if j >= len(v) {
  16012. if canChange {
  16013. v = append(v, 0)
  16014. changed = true
  16015. } else {
  16016. d.arrayCannotExpand(len(v), j+1)
  16017. decodeIntoBlank = true
  16018. }
  16019. }
  16020. slh.ElemContainerState(j)
  16021. if decodeIntoBlank {
  16022. d.swallow()
  16023. } else {
  16024. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  16025. }
  16026. }
  16027. if canChange {
  16028. if j < len(v) {
  16029. v = v[:j]
  16030. changed = true
  16031. } else if j == 0 && v == nil {
  16032. v = make([]uintptr, 0)
  16033. changed = true
  16034. }
  16035. }
  16036. slh.End()
  16037. return v, changed
  16038. }
  16039. func (d *Decoder) fastpathDecSliceIntR(f *codecFnInfo, rv reflect.Value) {
  16040. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16041. var vp = rv2i(rv).(*[]int)
  16042. if v, changed := fastpathTV.DecSliceIntV(*vp, !array, d); changed {
  16043. *vp = v
  16044. }
  16045. } else {
  16046. fastpathTV.DecSliceIntV(rv2i(rv).([]int), !array, d)
  16047. }
  16048. }
  16049. func (f fastpathT) DecSliceIntX(vp *[]int, d *Decoder) {
  16050. if v, changed := f.DecSliceIntV(*vp, true, d); changed {
  16051. *vp = v
  16052. }
  16053. }
  16054. func (_ fastpathT) DecSliceIntV(v []int, canChange bool, d *Decoder) (_ []int, changed bool) {
  16055. dd := d.d
  16056. slh, containerLenS := d.decSliceHelperStart()
  16057. if containerLenS == 0 {
  16058. if canChange {
  16059. if v == nil {
  16060. v = []int{}
  16061. } else if len(v) != 0 {
  16062. v = v[:0]
  16063. }
  16064. changed = true
  16065. }
  16066. slh.End()
  16067. return v, changed
  16068. }
  16069. hasLen := containerLenS > 0
  16070. var xlen int
  16071. if hasLen && canChange {
  16072. if containerLenS > cap(v) {
  16073. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16074. if xlen <= cap(v) {
  16075. v = v[:xlen]
  16076. } else {
  16077. v = make([]int, xlen)
  16078. }
  16079. changed = true
  16080. } else if containerLenS != len(v) {
  16081. v = v[:containerLenS]
  16082. changed = true
  16083. }
  16084. }
  16085. j := 0
  16086. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16087. if j == 0 && len(v) == 0 {
  16088. if hasLen {
  16089. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16090. } else {
  16091. xlen = 8
  16092. }
  16093. v = make([]int, xlen)
  16094. changed = true
  16095. }
  16096. // if indefinite, etc, then expand the slice if necessary
  16097. var decodeIntoBlank bool
  16098. if j >= len(v) {
  16099. if canChange {
  16100. v = append(v, 0)
  16101. changed = true
  16102. } else {
  16103. d.arrayCannotExpand(len(v), j+1)
  16104. decodeIntoBlank = true
  16105. }
  16106. }
  16107. slh.ElemContainerState(j)
  16108. if decodeIntoBlank {
  16109. d.swallow()
  16110. } else {
  16111. v[j] = int(dd.DecodeInt(intBitsize))
  16112. }
  16113. }
  16114. if canChange {
  16115. if j < len(v) {
  16116. v = v[:j]
  16117. changed = true
  16118. } else if j == 0 && v == nil {
  16119. v = make([]int, 0)
  16120. changed = true
  16121. }
  16122. }
  16123. slh.End()
  16124. return v, changed
  16125. }
  16126. func (d *Decoder) fastpathDecSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  16127. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16128. var vp = rv2i(rv).(*[]int8)
  16129. if v, changed := fastpathTV.DecSliceInt8V(*vp, !array, d); changed {
  16130. *vp = v
  16131. }
  16132. } else {
  16133. fastpathTV.DecSliceInt8V(rv2i(rv).([]int8), !array, d)
  16134. }
  16135. }
  16136. func (f fastpathT) DecSliceInt8X(vp *[]int8, d *Decoder) {
  16137. if v, changed := f.DecSliceInt8V(*vp, true, d); changed {
  16138. *vp = v
  16139. }
  16140. }
  16141. func (_ fastpathT) DecSliceInt8V(v []int8, canChange bool, d *Decoder) (_ []int8, changed bool) {
  16142. dd := d.d
  16143. slh, containerLenS := d.decSliceHelperStart()
  16144. if containerLenS == 0 {
  16145. if canChange {
  16146. if v == nil {
  16147. v = []int8{}
  16148. } else if len(v) != 0 {
  16149. v = v[:0]
  16150. }
  16151. changed = true
  16152. }
  16153. slh.End()
  16154. return v, changed
  16155. }
  16156. hasLen := containerLenS > 0
  16157. var xlen int
  16158. if hasLen && canChange {
  16159. if containerLenS > cap(v) {
  16160. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16161. if xlen <= cap(v) {
  16162. v = v[:xlen]
  16163. } else {
  16164. v = make([]int8, xlen)
  16165. }
  16166. changed = true
  16167. } else if containerLenS != len(v) {
  16168. v = v[:containerLenS]
  16169. changed = true
  16170. }
  16171. }
  16172. j := 0
  16173. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16174. if j == 0 && len(v) == 0 {
  16175. if hasLen {
  16176. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16177. } else {
  16178. xlen = 8
  16179. }
  16180. v = make([]int8, xlen)
  16181. changed = true
  16182. }
  16183. // if indefinite, etc, then expand the slice if necessary
  16184. var decodeIntoBlank bool
  16185. if j >= len(v) {
  16186. if canChange {
  16187. v = append(v, 0)
  16188. changed = true
  16189. } else {
  16190. d.arrayCannotExpand(len(v), j+1)
  16191. decodeIntoBlank = true
  16192. }
  16193. }
  16194. slh.ElemContainerState(j)
  16195. if decodeIntoBlank {
  16196. d.swallow()
  16197. } else {
  16198. v[j] = int8(dd.DecodeInt(8))
  16199. }
  16200. }
  16201. if canChange {
  16202. if j < len(v) {
  16203. v = v[:j]
  16204. changed = true
  16205. } else if j == 0 && v == nil {
  16206. v = make([]int8, 0)
  16207. changed = true
  16208. }
  16209. }
  16210. slh.End()
  16211. return v, changed
  16212. }
  16213. func (d *Decoder) fastpathDecSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  16214. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16215. var vp = rv2i(rv).(*[]int16)
  16216. if v, changed := fastpathTV.DecSliceInt16V(*vp, !array, d); changed {
  16217. *vp = v
  16218. }
  16219. } else {
  16220. fastpathTV.DecSliceInt16V(rv2i(rv).([]int16), !array, d)
  16221. }
  16222. }
  16223. func (f fastpathT) DecSliceInt16X(vp *[]int16, d *Decoder) {
  16224. if v, changed := f.DecSliceInt16V(*vp, true, d); changed {
  16225. *vp = v
  16226. }
  16227. }
  16228. func (_ fastpathT) DecSliceInt16V(v []int16, canChange bool, d *Decoder) (_ []int16, changed bool) {
  16229. dd := d.d
  16230. slh, containerLenS := d.decSliceHelperStart()
  16231. if containerLenS == 0 {
  16232. if canChange {
  16233. if v == nil {
  16234. v = []int16{}
  16235. } else if len(v) != 0 {
  16236. v = v[:0]
  16237. }
  16238. changed = true
  16239. }
  16240. slh.End()
  16241. return v, changed
  16242. }
  16243. hasLen := containerLenS > 0
  16244. var xlen int
  16245. if hasLen && canChange {
  16246. if containerLenS > cap(v) {
  16247. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  16248. if xlen <= cap(v) {
  16249. v = v[:xlen]
  16250. } else {
  16251. v = make([]int16, xlen)
  16252. }
  16253. changed = true
  16254. } else if containerLenS != len(v) {
  16255. v = v[:containerLenS]
  16256. changed = true
  16257. }
  16258. }
  16259. j := 0
  16260. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16261. if j == 0 && len(v) == 0 {
  16262. if hasLen {
  16263. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  16264. } else {
  16265. xlen = 8
  16266. }
  16267. v = make([]int16, xlen)
  16268. changed = true
  16269. }
  16270. // if indefinite, etc, then expand the slice if necessary
  16271. var decodeIntoBlank bool
  16272. if j >= len(v) {
  16273. if canChange {
  16274. v = append(v, 0)
  16275. changed = true
  16276. } else {
  16277. d.arrayCannotExpand(len(v), j+1)
  16278. decodeIntoBlank = true
  16279. }
  16280. }
  16281. slh.ElemContainerState(j)
  16282. if decodeIntoBlank {
  16283. d.swallow()
  16284. } else {
  16285. v[j] = int16(dd.DecodeInt(16))
  16286. }
  16287. }
  16288. if canChange {
  16289. if j < len(v) {
  16290. v = v[:j]
  16291. changed = true
  16292. } else if j == 0 && v == nil {
  16293. v = make([]int16, 0)
  16294. changed = true
  16295. }
  16296. }
  16297. slh.End()
  16298. return v, changed
  16299. }
  16300. func (d *Decoder) fastpathDecSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  16301. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16302. var vp = rv2i(rv).(*[]int32)
  16303. if v, changed := fastpathTV.DecSliceInt32V(*vp, !array, d); changed {
  16304. *vp = v
  16305. }
  16306. } else {
  16307. fastpathTV.DecSliceInt32V(rv2i(rv).([]int32), !array, d)
  16308. }
  16309. }
  16310. func (f fastpathT) DecSliceInt32X(vp *[]int32, d *Decoder) {
  16311. if v, changed := f.DecSliceInt32V(*vp, true, d); changed {
  16312. *vp = v
  16313. }
  16314. }
  16315. func (_ fastpathT) DecSliceInt32V(v []int32, canChange bool, d *Decoder) (_ []int32, changed bool) {
  16316. dd := d.d
  16317. slh, containerLenS := d.decSliceHelperStart()
  16318. if containerLenS == 0 {
  16319. if canChange {
  16320. if v == nil {
  16321. v = []int32{}
  16322. } else if len(v) != 0 {
  16323. v = v[:0]
  16324. }
  16325. changed = true
  16326. }
  16327. slh.End()
  16328. return v, changed
  16329. }
  16330. hasLen := containerLenS > 0
  16331. var xlen int
  16332. if hasLen && canChange {
  16333. if containerLenS > cap(v) {
  16334. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16335. if xlen <= cap(v) {
  16336. v = v[:xlen]
  16337. } else {
  16338. v = make([]int32, xlen)
  16339. }
  16340. changed = true
  16341. } else if containerLenS != len(v) {
  16342. v = v[:containerLenS]
  16343. changed = true
  16344. }
  16345. }
  16346. j := 0
  16347. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16348. if j == 0 && len(v) == 0 {
  16349. if hasLen {
  16350. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16351. } else {
  16352. xlen = 8
  16353. }
  16354. v = make([]int32, xlen)
  16355. changed = true
  16356. }
  16357. // if indefinite, etc, then expand the slice if necessary
  16358. var decodeIntoBlank bool
  16359. if j >= len(v) {
  16360. if canChange {
  16361. v = append(v, 0)
  16362. changed = true
  16363. } else {
  16364. d.arrayCannotExpand(len(v), j+1)
  16365. decodeIntoBlank = true
  16366. }
  16367. }
  16368. slh.ElemContainerState(j)
  16369. if decodeIntoBlank {
  16370. d.swallow()
  16371. } else {
  16372. v[j] = int32(dd.DecodeInt(32))
  16373. }
  16374. }
  16375. if canChange {
  16376. if j < len(v) {
  16377. v = v[:j]
  16378. changed = true
  16379. } else if j == 0 && v == nil {
  16380. v = make([]int32, 0)
  16381. changed = true
  16382. }
  16383. }
  16384. slh.End()
  16385. return v, changed
  16386. }
  16387. func (d *Decoder) fastpathDecSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  16388. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16389. var vp = rv2i(rv).(*[]int64)
  16390. if v, changed := fastpathTV.DecSliceInt64V(*vp, !array, d); changed {
  16391. *vp = v
  16392. }
  16393. } else {
  16394. fastpathTV.DecSliceInt64V(rv2i(rv).([]int64), !array, d)
  16395. }
  16396. }
  16397. func (f fastpathT) DecSliceInt64X(vp *[]int64, d *Decoder) {
  16398. if v, changed := f.DecSliceInt64V(*vp, true, d); changed {
  16399. *vp = v
  16400. }
  16401. }
  16402. func (_ fastpathT) DecSliceInt64V(v []int64, canChange bool, d *Decoder) (_ []int64, changed bool) {
  16403. dd := d.d
  16404. slh, containerLenS := d.decSliceHelperStart()
  16405. if containerLenS == 0 {
  16406. if canChange {
  16407. if v == nil {
  16408. v = []int64{}
  16409. } else if len(v) != 0 {
  16410. v = v[:0]
  16411. }
  16412. changed = true
  16413. }
  16414. slh.End()
  16415. return v, changed
  16416. }
  16417. hasLen := containerLenS > 0
  16418. var xlen int
  16419. if hasLen && canChange {
  16420. if containerLenS > cap(v) {
  16421. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16422. if xlen <= cap(v) {
  16423. v = v[:xlen]
  16424. } else {
  16425. v = make([]int64, xlen)
  16426. }
  16427. changed = true
  16428. } else if containerLenS != len(v) {
  16429. v = v[:containerLenS]
  16430. changed = true
  16431. }
  16432. }
  16433. j := 0
  16434. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16435. if j == 0 && len(v) == 0 {
  16436. if hasLen {
  16437. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16438. } else {
  16439. xlen = 8
  16440. }
  16441. v = make([]int64, xlen)
  16442. changed = true
  16443. }
  16444. // if indefinite, etc, then expand the slice if necessary
  16445. var decodeIntoBlank bool
  16446. if j >= len(v) {
  16447. if canChange {
  16448. v = append(v, 0)
  16449. changed = true
  16450. } else {
  16451. d.arrayCannotExpand(len(v), j+1)
  16452. decodeIntoBlank = true
  16453. }
  16454. }
  16455. slh.ElemContainerState(j)
  16456. if decodeIntoBlank {
  16457. d.swallow()
  16458. } else {
  16459. v[j] = dd.DecodeInt(64)
  16460. }
  16461. }
  16462. if canChange {
  16463. if j < len(v) {
  16464. v = v[:j]
  16465. changed = true
  16466. } else if j == 0 && v == nil {
  16467. v = make([]int64, 0)
  16468. changed = true
  16469. }
  16470. }
  16471. slh.End()
  16472. return v, changed
  16473. }
  16474. func (d *Decoder) fastpathDecSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  16475. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16476. var vp = rv2i(rv).(*[]bool)
  16477. if v, changed := fastpathTV.DecSliceBoolV(*vp, !array, d); changed {
  16478. *vp = v
  16479. }
  16480. } else {
  16481. fastpathTV.DecSliceBoolV(rv2i(rv).([]bool), !array, d)
  16482. }
  16483. }
  16484. func (f fastpathT) DecSliceBoolX(vp *[]bool, d *Decoder) {
  16485. if v, changed := f.DecSliceBoolV(*vp, true, d); changed {
  16486. *vp = v
  16487. }
  16488. }
  16489. func (_ fastpathT) DecSliceBoolV(v []bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  16490. dd := d.d
  16491. slh, containerLenS := d.decSliceHelperStart()
  16492. if containerLenS == 0 {
  16493. if canChange {
  16494. if v == nil {
  16495. v = []bool{}
  16496. } else if len(v) != 0 {
  16497. v = v[:0]
  16498. }
  16499. changed = true
  16500. }
  16501. slh.End()
  16502. return v, changed
  16503. }
  16504. hasLen := containerLenS > 0
  16505. var xlen int
  16506. if hasLen && canChange {
  16507. if containerLenS > cap(v) {
  16508. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16509. if xlen <= cap(v) {
  16510. v = v[:xlen]
  16511. } else {
  16512. v = make([]bool, xlen)
  16513. }
  16514. changed = true
  16515. } else if containerLenS != len(v) {
  16516. v = v[:containerLenS]
  16517. changed = true
  16518. }
  16519. }
  16520. j := 0
  16521. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16522. if j == 0 && len(v) == 0 {
  16523. if hasLen {
  16524. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16525. } else {
  16526. xlen = 8
  16527. }
  16528. v = make([]bool, xlen)
  16529. changed = true
  16530. }
  16531. // if indefinite, etc, then expand the slice if necessary
  16532. var decodeIntoBlank bool
  16533. if j >= len(v) {
  16534. if canChange {
  16535. v = append(v, false)
  16536. changed = true
  16537. } else {
  16538. d.arrayCannotExpand(len(v), j+1)
  16539. decodeIntoBlank = true
  16540. }
  16541. }
  16542. slh.ElemContainerState(j)
  16543. if decodeIntoBlank {
  16544. d.swallow()
  16545. } else {
  16546. v[j] = dd.DecodeBool()
  16547. }
  16548. }
  16549. if canChange {
  16550. if j < len(v) {
  16551. v = v[:j]
  16552. changed = true
  16553. } else if j == 0 && v == nil {
  16554. v = make([]bool, 0)
  16555. changed = true
  16556. }
  16557. }
  16558. slh.End()
  16559. return v, changed
  16560. }
  16561. func (d *Decoder) fastpathDecMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  16562. if rv.Kind() == reflect.Ptr {
  16563. vp := rv2i(rv).(*map[interface{}]interface{})
  16564. if v, changed := fastpathTV.DecMapIntfIntfV(*vp, true, d); changed {
  16565. *vp = v
  16566. }
  16567. return
  16568. }
  16569. fastpathTV.DecMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), false, d)
  16570. }
  16571. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, d *Decoder) {
  16572. if v, changed := f.DecMapIntfIntfV(*vp, true, d); changed {
  16573. *vp = v
  16574. }
  16575. }
  16576. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, canChange bool,
  16577. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  16578. dd, esep := d.d, d.hh.hasElemSeparators()
  16579. containerLen := dd.ReadMapStart()
  16580. if canChange && v == nil {
  16581. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  16582. v = make(map[interface{}]interface{}, xlen)
  16583. changed = true
  16584. }
  16585. if containerLen == 0 {
  16586. dd.ReadMapEnd()
  16587. return v, changed
  16588. }
  16589. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  16590. var mk interface{}
  16591. var mv interface{}
  16592. hasLen := containerLen > 0
  16593. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16594. if esep {
  16595. dd.ReadMapElemKey()
  16596. }
  16597. mk = nil
  16598. d.decode(&mk)
  16599. if bv, bok := mk.([]byte); bok {
  16600. mk = d.string(bv)
  16601. }
  16602. if esep {
  16603. dd.ReadMapElemValue()
  16604. }
  16605. if dd.TryDecodeAsNil() {
  16606. if d.h.DeleteOnNilMapValue {
  16607. delete(v, mk)
  16608. } else {
  16609. v[mk] = nil
  16610. }
  16611. continue
  16612. }
  16613. if mapGet {
  16614. mv = v[mk]
  16615. } else {
  16616. mv = nil
  16617. }
  16618. d.decode(&mv)
  16619. if v != nil {
  16620. v[mk] = mv
  16621. }
  16622. }
  16623. dd.ReadMapEnd()
  16624. return v, changed
  16625. }
  16626. func (d *Decoder) fastpathDecMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  16627. if rv.Kind() == reflect.Ptr {
  16628. vp := rv2i(rv).(*map[interface{}]string)
  16629. if v, changed := fastpathTV.DecMapIntfStringV(*vp, true, d); changed {
  16630. *vp = v
  16631. }
  16632. return
  16633. }
  16634. fastpathTV.DecMapIntfStringV(rv2i(rv).(map[interface{}]string), false, d)
  16635. }
  16636. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, d *Decoder) {
  16637. if v, changed := f.DecMapIntfStringV(*vp, true, d); changed {
  16638. *vp = v
  16639. }
  16640. }
  16641. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, canChange bool,
  16642. d *Decoder) (_ map[interface{}]string, changed bool) {
  16643. dd, esep := d.d, d.hh.hasElemSeparators()
  16644. containerLen := dd.ReadMapStart()
  16645. if canChange && v == nil {
  16646. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  16647. v = make(map[interface{}]string, xlen)
  16648. changed = true
  16649. }
  16650. if containerLen == 0 {
  16651. dd.ReadMapEnd()
  16652. return v, changed
  16653. }
  16654. var mk interface{}
  16655. var mv string
  16656. hasLen := containerLen > 0
  16657. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16658. if esep {
  16659. dd.ReadMapElemKey()
  16660. }
  16661. mk = nil
  16662. d.decode(&mk)
  16663. if bv, bok := mk.([]byte); bok {
  16664. mk = d.string(bv)
  16665. }
  16666. if esep {
  16667. dd.ReadMapElemValue()
  16668. }
  16669. if dd.TryDecodeAsNil() {
  16670. if d.h.DeleteOnNilMapValue {
  16671. delete(v, mk)
  16672. } else {
  16673. v[mk] = ""
  16674. }
  16675. continue
  16676. }
  16677. mv = dd.DecodeString()
  16678. if v != nil {
  16679. v[mk] = mv
  16680. }
  16681. }
  16682. dd.ReadMapEnd()
  16683. return v, changed
  16684. }
  16685. func (d *Decoder) fastpathDecMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  16686. if rv.Kind() == reflect.Ptr {
  16687. vp := rv2i(rv).(*map[interface{}]uint)
  16688. if v, changed := fastpathTV.DecMapIntfUintV(*vp, true, d); changed {
  16689. *vp = v
  16690. }
  16691. return
  16692. }
  16693. fastpathTV.DecMapIntfUintV(rv2i(rv).(map[interface{}]uint), false, d)
  16694. }
  16695. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, d *Decoder) {
  16696. if v, changed := f.DecMapIntfUintV(*vp, true, d); changed {
  16697. *vp = v
  16698. }
  16699. }
  16700. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, canChange bool,
  16701. d *Decoder) (_ map[interface{}]uint, changed bool) {
  16702. dd, esep := d.d, d.hh.hasElemSeparators()
  16703. containerLen := dd.ReadMapStart()
  16704. if canChange && v == nil {
  16705. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  16706. v = make(map[interface{}]uint, xlen)
  16707. changed = true
  16708. }
  16709. if containerLen == 0 {
  16710. dd.ReadMapEnd()
  16711. return v, changed
  16712. }
  16713. var mk interface{}
  16714. var mv uint
  16715. hasLen := containerLen > 0
  16716. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16717. if esep {
  16718. dd.ReadMapElemKey()
  16719. }
  16720. mk = nil
  16721. d.decode(&mk)
  16722. if bv, bok := mk.([]byte); bok {
  16723. mk = d.string(bv)
  16724. }
  16725. if esep {
  16726. dd.ReadMapElemValue()
  16727. }
  16728. if dd.TryDecodeAsNil() {
  16729. if d.h.DeleteOnNilMapValue {
  16730. delete(v, mk)
  16731. } else {
  16732. v[mk] = 0
  16733. }
  16734. continue
  16735. }
  16736. mv = uint(dd.DecodeUint(uintBitsize))
  16737. if v != nil {
  16738. v[mk] = mv
  16739. }
  16740. }
  16741. dd.ReadMapEnd()
  16742. return v, changed
  16743. }
  16744. func (d *Decoder) fastpathDecMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  16745. if rv.Kind() == reflect.Ptr {
  16746. vp := rv2i(rv).(*map[interface{}]uint8)
  16747. if v, changed := fastpathTV.DecMapIntfUint8V(*vp, true, d); changed {
  16748. *vp = v
  16749. }
  16750. return
  16751. }
  16752. fastpathTV.DecMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), false, d)
  16753. }
  16754. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, d *Decoder) {
  16755. if v, changed := f.DecMapIntfUint8V(*vp, true, d); changed {
  16756. *vp = v
  16757. }
  16758. }
  16759. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, canChange bool,
  16760. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  16761. dd, esep := d.d, d.hh.hasElemSeparators()
  16762. containerLen := dd.ReadMapStart()
  16763. if canChange && v == nil {
  16764. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  16765. v = make(map[interface{}]uint8, xlen)
  16766. changed = true
  16767. }
  16768. if containerLen == 0 {
  16769. dd.ReadMapEnd()
  16770. return v, changed
  16771. }
  16772. var mk interface{}
  16773. var mv uint8
  16774. hasLen := containerLen > 0
  16775. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16776. if esep {
  16777. dd.ReadMapElemKey()
  16778. }
  16779. mk = nil
  16780. d.decode(&mk)
  16781. if bv, bok := mk.([]byte); bok {
  16782. mk = d.string(bv)
  16783. }
  16784. if esep {
  16785. dd.ReadMapElemValue()
  16786. }
  16787. if dd.TryDecodeAsNil() {
  16788. if d.h.DeleteOnNilMapValue {
  16789. delete(v, mk)
  16790. } else {
  16791. v[mk] = 0
  16792. }
  16793. continue
  16794. }
  16795. mv = uint8(dd.DecodeUint(8))
  16796. if v != nil {
  16797. v[mk] = mv
  16798. }
  16799. }
  16800. dd.ReadMapEnd()
  16801. return v, changed
  16802. }
  16803. func (d *Decoder) fastpathDecMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  16804. if rv.Kind() == reflect.Ptr {
  16805. vp := rv2i(rv).(*map[interface{}]uint16)
  16806. if v, changed := fastpathTV.DecMapIntfUint16V(*vp, true, d); changed {
  16807. *vp = v
  16808. }
  16809. return
  16810. }
  16811. fastpathTV.DecMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), false, d)
  16812. }
  16813. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, d *Decoder) {
  16814. if v, changed := f.DecMapIntfUint16V(*vp, true, d); changed {
  16815. *vp = v
  16816. }
  16817. }
  16818. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, canChange bool,
  16819. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  16820. dd, esep := d.d, d.hh.hasElemSeparators()
  16821. containerLen := dd.ReadMapStart()
  16822. if canChange && v == nil {
  16823. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  16824. v = make(map[interface{}]uint16, xlen)
  16825. changed = true
  16826. }
  16827. if containerLen == 0 {
  16828. dd.ReadMapEnd()
  16829. return v, changed
  16830. }
  16831. var mk interface{}
  16832. var mv uint16
  16833. hasLen := containerLen > 0
  16834. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16835. if esep {
  16836. dd.ReadMapElemKey()
  16837. }
  16838. mk = nil
  16839. d.decode(&mk)
  16840. if bv, bok := mk.([]byte); bok {
  16841. mk = d.string(bv)
  16842. }
  16843. if esep {
  16844. dd.ReadMapElemValue()
  16845. }
  16846. if dd.TryDecodeAsNil() {
  16847. if d.h.DeleteOnNilMapValue {
  16848. delete(v, mk)
  16849. } else {
  16850. v[mk] = 0
  16851. }
  16852. continue
  16853. }
  16854. mv = uint16(dd.DecodeUint(16))
  16855. if v != nil {
  16856. v[mk] = mv
  16857. }
  16858. }
  16859. dd.ReadMapEnd()
  16860. return v, changed
  16861. }
  16862. func (d *Decoder) fastpathDecMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  16863. if rv.Kind() == reflect.Ptr {
  16864. vp := rv2i(rv).(*map[interface{}]uint32)
  16865. if v, changed := fastpathTV.DecMapIntfUint32V(*vp, true, d); changed {
  16866. *vp = v
  16867. }
  16868. return
  16869. }
  16870. fastpathTV.DecMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), false, d)
  16871. }
  16872. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, d *Decoder) {
  16873. if v, changed := f.DecMapIntfUint32V(*vp, true, d); changed {
  16874. *vp = v
  16875. }
  16876. }
  16877. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, canChange bool,
  16878. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  16879. dd, esep := d.d, d.hh.hasElemSeparators()
  16880. containerLen := dd.ReadMapStart()
  16881. if canChange && v == nil {
  16882. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  16883. v = make(map[interface{}]uint32, xlen)
  16884. changed = true
  16885. }
  16886. if containerLen == 0 {
  16887. dd.ReadMapEnd()
  16888. return v, changed
  16889. }
  16890. var mk interface{}
  16891. var mv uint32
  16892. hasLen := containerLen > 0
  16893. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16894. if esep {
  16895. dd.ReadMapElemKey()
  16896. }
  16897. mk = nil
  16898. d.decode(&mk)
  16899. if bv, bok := mk.([]byte); bok {
  16900. mk = d.string(bv)
  16901. }
  16902. if esep {
  16903. dd.ReadMapElemValue()
  16904. }
  16905. if dd.TryDecodeAsNil() {
  16906. if d.h.DeleteOnNilMapValue {
  16907. delete(v, mk)
  16908. } else {
  16909. v[mk] = 0
  16910. }
  16911. continue
  16912. }
  16913. mv = uint32(dd.DecodeUint(32))
  16914. if v != nil {
  16915. v[mk] = mv
  16916. }
  16917. }
  16918. dd.ReadMapEnd()
  16919. return v, changed
  16920. }
  16921. func (d *Decoder) fastpathDecMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  16922. if rv.Kind() == reflect.Ptr {
  16923. vp := rv2i(rv).(*map[interface{}]uint64)
  16924. if v, changed := fastpathTV.DecMapIntfUint64V(*vp, true, d); changed {
  16925. *vp = v
  16926. }
  16927. return
  16928. }
  16929. fastpathTV.DecMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), false, d)
  16930. }
  16931. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, d *Decoder) {
  16932. if v, changed := f.DecMapIntfUint64V(*vp, true, d); changed {
  16933. *vp = v
  16934. }
  16935. }
  16936. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, canChange bool,
  16937. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  16938. dd, esep := d.d, d.hh.hasElemSeparators()
  16939. containerLen := dd.ReadMapStart()
  16940. if canChange && v == nil {
  16941. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  16942. v = make(map[interface{}]uint64, xlen)
  16943. changed = true
  16944. }
  16945. if containerLen == 0 {
  16946. dd.ReadMapEnd()
  16947. return v, changed
  16948. }
  16949. var mk interface{}
  16950. var mv uint64
  16951. hasLen := containerLen > 0
  16952. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16953. if esep {
  16954. dd.ReadMapElemKey()
  16955. }
  16956. mk = nil
  16957. d.decode(&mk)
  16958. if bv, bok := mk.([]byte); bok {
  16959. mk = d.string(bv)
  16960. }
  16961. if esep {
  16962. dd.ReadMapElemValue()
  16963. }
  16964. if dd.TryDecodeAsNil() {
  16965. if d.h.DeleteOnNilMapValue {
  16966. delete(v, mk)
  16967. } else {
  16968. v[mk] = 0
  16969. }
  16970. continue
  16971. }
  16972. mv = dd.DecodeUint(64)
  16973. if v != nil {
  16974. v[mk] = mv
  16975. }
  16976. }
  16977. dd.ReadMapEnd()
  16978. return v, changed
  16979. }
  16980. func (d *Decoder) fastpathDecMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  16981. if rv.Kind() == reflect.Ptr {
  16982. vp := rv2i(rv).(*map[interface{}]uintptr)
  16983. if v, changed := fastpathTV.DecMapIntfUintptrV(*vp, true, d); changed {
  16984. *vp = v
  16985. }
  16986. return
  16987. }
  16988. fastpathTV.DecMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), false, d)
  16989. }
  16990. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, d *Decoder) {
  16991. if v, changed := f.DecMapIntfUintptrV(*vp, true, d); changed {
  16992. *vp = v
  16993. }
  16994. }
  16995. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, canChange bool,
  16996. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  16997. dd, esep := d.d, d.hh.hasElemSeparators()
  16998. containerLen := dd.ReadMapStart()
  16999. if canChange && v == nil {
  17000. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17001. v = make(map[interface{}]uintptr, xlen)
  17002. changed = true
  17003. }
  17004. if containerLen == 0 {
  17005. dd.ReadMapEnd()
  17006. return v, changed
  17007. }
  17008. var mk interface{}
  17009. var mv uintptr
  17010. hasLen := containerLen > 0
  17011. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17012. if esep {
  17013. dd.ReadMapElemKey()
  17014. }
  17015. mk = nil
  17016. d.decode(&mk)
  17017. if bv, bok := mk.([]byte); bok {
  17018. mk = d.string(bv)
  17019. }
  17020. if esep {
  17021. dd.ReadMapElemValue()
  17022. }
  17023. if dd.TryDecodeAsNil() {
  17024. if d.h.DeleteOnNilMapValue {
  17025. delete(v, mk)
  17026. } else {
  17027. v[mk] = 0
  17028. }
  17029. continue
  17030. }
  17031. mv = uintptr(dd.DecodeUint(uintBitsize))
  17032. if v != nil {
  17033. v[mk] = mv
  17034. }
  17035. }
  17036. dd.ReadMapEnd()
  17037. return v, changed
  17038. }
  17039. func (d *Decoder) fastpathDecMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  17040. if rv.Kind() == reflect.Ptr {
  17041. vp := rv2i(rv).(*map[interface{}]int)
  17042. if v, changed := fastpathTV.DecMapIntfIntV(*vp, true, d); changed {
  17043. *vp = v
  17044. }
  17045. return
  17046. }
  17047. fastpathTV.DecMapIntfIntV(rv2i(rv).(map[interface{}]int), false, d)
  17048. }
  17049. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, d *Decoder) {
  17050. if v, changed := f.DecMapIntfIntV(*vp, true, d); changed {
  17051. *vp = v
  17052. }
  17053. }
  17054. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, canChange bool,
  17055. d *Decoder) (_ map[interface{}]int, changed bool) {
  17056. dd, esep := d.d, d.hh.hasElemSeparators()
  17057. containerLen := dd.ReadMapStart()
  17058. if canChange && v == nil {
  17059. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17060. v = make(map[interface{}]int, xlen)
  17061. changed = true
  17062. }
  17063. if containerLen == 0 {
  17064. dd.ReadMapEnd()
  17065. return v, changed
  17066. }
  17067. var mk interface{}
  17068. var mv int
  17069. hasLen := containerLen > 0
  17070. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17071. if esep {
  17072. dd.ReadMapElemKey()
  17073. }
  17074. mk = nil
  17075. d.decode(&mk)
  17076. if bv, bok := mk.([]byte); bok {
  17077. mk = d.string(bv)
  17078. }
  17079. if esep {
  17080. dd.ReadMapElemValue()
  17081. }
  17082. if dd.TryDecodeAsNil() {
  17083. if d.h.DeleteOnNilMapValue {
  17084. delete(v, mk)
  17085. } else {
  17086. v[mk] = 0
  17087. }
  17088. continue
  17089. }
  17090. mv = int(dd.DecodeInt(intBitsize))
  17091. if v != nil {
  17092. v[mk] = mv
  17093. }
  17094. }
  17095. dd.ReadMapEnd()
  17096. return v, changed
  17097. }
  17098. func (d *Decoder) fastpathDecMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  17099. if rv.Kind() == reflect.Ptr {
  17100. vp := rv2i(rv).(*map[interface{}]int8)
  17101. if v, changed := fastpathTV.DecMapIntfInt8V(*vp, true, d); changed {
  17102. *vp = v
  17103. }
  17104. return
  17105. }
  17106. fastpathTV.DecMapIntfInt8V(rv2i(rv).(map[interface{}]int8), false, d)
  17107. }
  17108. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, d *Decoder) {
  17109. if v, changed := f.DecMapIntfInt8V(*vp, true, d); changed {
  17110. *vp = v
  17111. }
  17112. }
  17113. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, canChange bool,
  17114. d *Decoder) (_ map[interface{}]int8, changed bool) {
  17115. dd, esep := d.d, d.hh.hasElemSeparators()
  17116. containerLen := dd.ReadMapStart()
  17117. if canChange && v == nil {
  17118. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  17119. v = make(map[interface{}]int8, xlen)
  17120. changed = true
  17121. }
  17122. if containerLen == 0 {
  17123. dd.ReadMapEnd()
  17124. return v, changed
  17125. }
  17126. var mk interface{}
  17127. var mv int8
  17128. hasLen := containerLen > 0
  17129. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17130. if esep {
  17131. dd.ReadMapElemKey()
  17132. }
  17133. mk = nil
  17134. d.decode(&mk)
  17135. if bv, bok := mk.([]byte); bok {
  17136. mk = d.string(bv)
  17137. }
  17138. if esep {
  17139. dd.ReadMapElemValue()
  17140. }
  17141. if dd.TryDecodeAsNil() {
  17142. if d.h.DeleteOnNilMapValue {
  17143. delete(v, mk)
  17144. } else {
  17145. v[mk] = 0
  17146. }
  17147. continue
  17148. }
  17149. mv = int8(dd.DecodeInt(8))
  17150. if v != nil {
  17151. v[mk] = mv
  17152. }
  17153. }
  17154. dd.ReadMapEnd()
  17155. return v, changed
  17156. }
  17157. func (d *Decoder) fastpathDecMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  17158. if rv.Kind() == reflect.Ptr {
  17159. vp := rv2i(rv).(*map[interface{}]int16)
  17160. if v, changed := fastpathTV.DecMapIntfInt16V(*vp, true, d); changed {
  17161. *vp = v
  17162. }
  17163. return
  17164. }
  17165. fastpathTV.DecMapIntfInt16V(rv2i(rv).(map[interface{}]int16), false, d)
  17166. }
  17167. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, d *Decoder) {
  17168. if v, changed := f.DecMapIntfInt16V(*vp, true, d); changed {
  17169. *vp = v
  17170. }
  17171. }
  17172. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, canChange bool,
  17173. d *Decoder) (_ map[interface{}]int16, changed bool) {
  17174. dd, esep := d.d, d.hh.hasElemSeparators()
  17175. containerLen := dd.ReadMapStart()
  17176. if canChange && v == nil {
  17177. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  17178. v = make(map[interface{}]int16, xlen)
  17179. changed = true
  17180. }
  17181. if containerLen == 0 {
  17182. dd.ReadMapEnd()
  17183. return v, changed
  17184. }
  17185. var mk interface{}
  17186. var mv int16
  17187. hasLen := containerLen > 0
  17188. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17189. if esep {
  17190. dd.ReadMapElemKey()
  17191. }
  17192. mk = nil
  17193. d.decode(&mk)
  17194. if bv, bok := mk.([]byte); bok {
  17195. mk = d.string(bv)
  17196. }
  17197. if esep {
  17198. dd.ReadMapElemValue()
  17199. }
  17200. if dd.TryDecodeAsNil() {
  17201. if d.h.DeleteOnNilMapValue {
  17202. delete(v, mk)
  17203. } else {
  17204. v[mk] = 0
  17205. }
  17206. continue
  17207. }
  17208. mv = int16(dd.DecodeInt(16))
  17209. if v != nil {
  17210. v[mk] = mv
  17211. }
  17212. }
  17213. dd.ReadMapEnd()
  17214. return v, changed
  17215. }
  17216. func (d *Decoder) fastpathDecMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  17217. if rv.Kind() == reflect.Ptr {
  17218. vp := rv2i(rv).(*map[interface{}]int32)
  17219. if v, changed := fastpathTV.DecMapIntfInt32V(*vp, true, d); changed {
  17220. *vp = v
  17221. }
  17222. return
  17223. }
  17224. fastpathTV.DecMapIntfInt32V(rv2i(rv).(map[interface{}]int32), false, d)
  17225. }
  17226. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, d *Decoder) {
  17227. if v, changed := f.DecMapIntfInt32V(*vp, true, d); changed {
  17228. *vp = v
  17229. }
  17230. }
  17231. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, canChange bool,
  17232. d *Decoder) (_ map[interface{}]int32, changed bool) {
  17233. dd, esep := d.d, d.hh.hasElemSeparators()
  17234. containerLen := dd.ReadMapStart()
  17235. if canChange && v == nil {
  17236. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17237. v = make(map[interface{}]int32, xlen)
  17238. changed = true
  17239. }
  17240. if containerLen == 0 {
  17241. dd.ReadMapEnd()
  17242. return v, changed
  17243. }
  17244. var mk interface{}
  17245. var mv int32
  17246. hasLen := containerLen > 0
  17247. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17248. if esep {
  17249. dd.ReadMapElemKey()
  17250. }
  17251. mk = nil
  17252. d.decode(&mk)
  17253. if bv, bok := mk.([]byte); bok {
  17254. mk = d.string(bv)
  17255. }
  17256. if esep {
  17257. dd.ReadMapElemValue()
  17258. }
  17259. if dd.TryDecodeAsNil() {
  17260. if d.h.DeleteOnNilMapValue {
  17261. delete(v, mk)
  17262. } else {
  17263. v[mk] = 0
  17264. }
  17265. continue
  17266. }
  17267. mv = int32(dd.DecodeInt(32))
  17268. if v != nil {
  17269. v[mk] = mv
  17270. }
  17271. }
  17272. dd.ReadMapEnd()
  17273. return v, changed
  17274. }
  17275. func (d *Decoder) fastpathDecMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  17276. if rv.Kind() == reflect.Ptr {
  17277. vp := rv2i(rv).(*map[interface{}]int64)
  17278. if v, changed := fastpathTV.DecMapIntfInt64V(*vp, true, d); changed {
  17279. *vp = v
  17280. }
  17281. return
  17282. }
  17283. fastpathTV.DecMapIntfInt64V(rv2i(rv).(map[interface{}]int64), false, d)
  17284. }
  17285. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, d *Decoder) {
  17286. if v, changed := f.DecMapIntfInt64V(*vp, true, d); changed {
  17287. *vp = v
  17288. }
  17289. }
  17290. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, canChange bool,
  17291. d *Decoder) (_ map[interface{}]int64, changed bool) {
  17292. dd, esep := d.d, d.hh.hasElemSeparators()
  17293. containerLen := dd.ReadMapStart()
  17294. if canChange && v == nil {
  17295. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17296. v = make(map[interface{}]int64, xlen)
  17297. changed = true
  17298. }
  17299. if containerLen == 0 {
  17300. dd.ReadMapEnd()
  17301. return v, changed
  17302. }
  17303. var mk interface{}
  17304. var mv int64
  17305. hasLen := containerLen > 0
  17306. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17307. if esep {
  17308. dd.ReadMapElemKey()
  17309. }
  17310. mk = nil
  17311. d.decode(&mk)
  17312. if bv, bok := mk.([]byte); bok {
  17313. mk = d.string(bv)
  17314. }
  17315. if esep {
  17316. dd.ReadMapElemValue()
  17317. }
  17318. if dd.TryDecodeAsNil() {
  17319. if d.h.DeleteOnNilMapValue {
  17320. delete(v, mk)
  17321. } else {
  17322. v[mk] = 0
  17323. }
  17324. continue
  17325. }
  17326. mv = dd.DecodeInt(64)
  17327. if v != nil {
  17328. v[mk] = mv
  17329. }
  17330. }
  17331. dd.ReadMapEnd()
  17332. return v, changed
  17333. }
  17334. func (d *Decoder) fastpathDecMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  17335. if rv.Kind() == reflect.Ptr {
  17336. vp := rv2i(rv).(*map[interface{}]float32)
  17337. if v, changed := fastpathTV.DecMapIntfFloat32V(*vp, true, d); changed {
  17338. *vp = v
  17339. }
  17340. return
  17341. }
  17342. fastpathTV.DecMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), false, d)
  17343. }
  17344. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, d *Decoder) {
  17345. if v, changed := f.DecMapIntfFloat32V(*vp, true, d); changed {
  17346. *vp = v
  17347. }
  17348. }
  17349. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, canChange bool,
  17350. d *Decoder) (_ map[interface{}]float32, changed bool) {
  17351. dd, esep := d.d, d.hh.hasElemSeparators()
  17352. containerLen := dd.ReadMapStart()
  17353. if canChange && v == nil {
  17354. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17355. v = make(map[interface{}]float32, xlen)
  17356. changed = true
  17357. }
  17358. if containerLen == 0 {
  17359. dd.ReadMapEnd()
  17360. return v, changed
  17361. }
  17362. var mk interface{}
  17363. var mv float32
  17364. hasLen := containerLen > 0
  17365. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17366. if esep {
  17367. dd.ReadMapElemKey()
  17368. }
  17369. mk = nil
  17370. d.decode(&mk)
  17371. if bv, bok := mk.([]byte); bok {
  17372. mk = d.string(bv)
  17373. }
  17374. if esep {
  17375. dd.ReadMapElemValue()
  17376. }
  17377. if dd.TryDecodeAsNil() {
  17378. if d.h.DeleteOnNilMapValue {
  17379. delete(v, mk)
  17380. } else {
  17381. v[mk] = 0
  17382. }
  17383. continue
  17384. }
  17385. mv = float32(dd.DecodeFloat(true))
  17386. if v != nil {
  17387. v[mk] = mv
  17388. }
  17389. }
  17390. dd.ReadMapEnd()
  17391. return v, changed
  17392. }
  17393. func (d *Decoder) fastpathDecMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  17394. if rv.Kind() == reflect.Ptr {
  17395. vp := rv2i(rv).(*map[interface{}]float64)
  17396. if v, changed := fastpathTV.DecMapIntfFloat64V(*vp, true, d); changed {
  17397. *vp = v
  17398. }
  17399. return
  17400. }
  17401. fastpathTV.DecMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), false, d)
  17402. }
  17403. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, d *Decoder) {
  17404. if v, changed := f.DecMapIntfFloat64V(*vp, true, d); changed {
  17405. *vp = v
  17406. }
  17407. }
  17408. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, canChange bool,
  17409. d *Decoder) (_ map[interface{}]float64, changed bool) {
  17410. dd, esep := d.d, d.hh.hasElemSeparators()
  17411. containerLen := dd.ReadMapStart()
  17412. if canChange && v == nil {
  17413. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17414. v = make(map[interface{}]float64, xlen)
  17415. changed = true
  17416. }
  17417. if containerLen == 0 {
  17418. dd.ReadMapEnd()
  17419. return v, changed
  17420. }
  17421. var mk interface{}
  17422. var mv float64
  17423. hasLen := containerLen > 0
  17424. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17425. if esep {
  17426. dd.ReadMapElemKey()
  17427. }
  17428. mk = nil
  17429. d.decode(&mk)
  17430. if bv, bok := mk.([]byte); bok {
  17431. mk = d.string(bv)
  17432. }
  17433. if esep {
  17434. dd.ReadMapElemValue()
  17435. }
  17436. if dd.TryDecodeAsNil() {
  17437. if d.h.DeleteOnNilMapValue {
  17438. delete(v, mk)
  17439. } else {
  17440. v[mk] = 0
  17441. }
  17442. continue
  17443. }
  17444. mv = dd.DecodeFloat(false)
  17445. if v != nil {
  17446. v[mk] = mv
  17447. }
  17448. }
  17449. dd.ReadMapEnd()
  17450. return v, changed
  17451. }
  17452. func (d *Decoder) fastpathDecMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  17453. if rv.Kind() == reflect.Ptr {
  17454. vp := rv2i(rv).(*map[interface{}]bool)
  17455. if v, changed := fastpathTV.DecMapIntfBoolV(*vp, true, d); changed {
  17456. *vp = v
  17457. }
  17458. return
  17459. }
  17460. fastpathTV.DecMapIntfBoolV(rv2i(rv).(map[interface{}]bool), false, d)
  17461. }
  17462. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, d *Decoder) {
  17463. if v, changed := f.DecMapIntfBoolV(*vp, true, d); changed {
  17464. *vp = v
  17465. }
  17466. }
  17467. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, canChange bool,
  17468. d *Decoder) (_ map[interface{}]bool, changed bool) {
  17469. dd, esep := d.d, d.hh.hasElemSeparators()
  17470. containerLen := dd.ReadMapStart()
  17471. if canChange && v == nil {
  17472. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  17473. v = make(map[interface{}]bool, xlen)
  17474. changed = true
  17475. }
  17476. if containerLen == 0 {
  17477. dd.ReadMapEnd()
  17478. return v, changed
  17479. }
  17480. var mk interface{}
  17481. var mv bool
  17482. hasLen := containerLen > 0
  17483. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17484. if esep {
  17485. dd.ReadMapElemKey()
  17486. }
  17487. mk = nil
  17488. d.decode(&mk)
  17489. if bv, bok := mk.([]byte); bok {
  17490. mk = d.string(bv)
  17491. }
  17492. if esep {
  17493. dd.ReadMapElemValue()
  17494. }
  17495. if dd.TryDecodeAsNil() {
  17496. if d.h.DeleteOnNilMapValue {
  17497. delete(v, mk)
  17498. } else {
  17499. v[mk] = false
  17500. }
  17501. continue
  17502. }
  17503. mv = dd.DecodeBool()
  17504. if v != nil {
  17505. v[mk] = mv
  17506. }
  17507. }
  17508. dd.ReadMapEnd()
  17509. return v, changed
  17510. }
  17511. func (d *Decoder) fastpathDecMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  17512. if rv.Kind() == reflect.Ptr {
  17513. vp := rv2i(rv).(*map[string]interface{})
  17514. if v, changed := fastpathTV.DecMapStringIntfV(*vp, true, d); changed {
  17515. *vp = v
  17516. }
  17517. return
  17518. }
  17519. fastpathTV.DecMapStringIntfV(rv2i(rv).(map[string]interface{}), false, d)
  17520. }
  17521. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, d *Decoder) {
  17522. if v, changed := f.DecMapStringIntfV(*vp, true, d); changed {
  17523. *vp = v
  17524. }
  17525. }
  17526. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, canChange bool,
  17527. d *Decoder) (_ map[string]interface{}, changed bool) {
  17528. dd, esep := d.d, d.hh.hasElemSeparators()
  17529. containerLen := dd.ReadMapStart()
  17530. if canChange && v == nil {
  17531. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  17532. v = make(map[string]interface{}, xlen)
  17533. changed = true
  17534. }
  17535. if containerLen == 0 {
  17536. dd.ReadMapEnd()
  17537. return v, changed
  17538. }
  17539. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  17540. var mk string
  17541. var mv interface{}
  17542. hasLen := containerLen > 0
  17543. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17544. if esep {
  17545. dd.ReadMapElemKey()
  17546. }
  17547. mk = dd.DecodeString()
  17548. if esep {
  17549. dd.ReadMapElemValue()
  17550. }
  17551. if dd.TryDecodeAsNil() {
  17552. if d.h.DeleteOnNilMapValue {
  17553. delete(v, mk)
  17554. } else {
  17555. v[mk] = nil
  17556. }
  17557. continue
  17558. }
  17559. if mapGet {
  17560. mv = v[mk]
  17561. } else {
  17562. mv = nil
  17563. }
  17564. d.decode(&mv)
  17565. if v != nil {
  17566. v[mk] = mv
  17567. }
  17568. }
  17569. dd.ReadMapEnd()
  17570. return v, changed
  17571. }
  17572. func (d *Decoder) fastpathDecMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  17573. if rv.Kind() == reflect.Ptr {
  17574. vp := rv2i(rv).(*map[string]string)
  17575. if v, changed := fastpathTV.DecMapStringStringV(*vp, true, d); changed {
  17576. *vp = v
  17577. }
  17578. return
  17579. }
  17580. fastpathTV.DecMapStringStringV(rv2i(rv).(map[string]string), false, d)
  17581. }
  17582. func (f fastpathT) DecMapStringStringX(vp *map[string]string, d *Decoder) {
  17583. if v, changed := f.DecMapStringStringV(*vp, true, d); changed {
  17584. *vp = v
  17585. }
  17586. }
  17587. func (_ fastpathT) DecMapStringStringV(v map[string]string, canChange bool,
  17588. d *Decoder) (_ map[string]string, changed bool) {
  17589. dd, esep := d.d, d.hh.hasElemSeparators()
  17590. containerLen := dd.ReadMapStart()
  17591. if canChange && v == nil {
  17592. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  17593. v = make(map[string]string, xlen)
  17594. changed = true
  17595. }
  17596. if containerLen == 0 {
  17597. dd.ReadMapEnd()
  17598. return v, changed
  17599. }
  17600. var mk string
  17601. var mv string
  17602. hasLen := containerLen > 0
  17603. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17604. if esep {
  17605. dd.ReadMapElemKey()
  17606. }
  17607. mk = dd.DecodeString()
  17608. if esep {
  17609. dd.ReadMapElemValue()
  17610. }
  17611. if dd.TryDecodeAsNil() {
  17612. if d.h.DeleteOnNilMapValue {
  17613. delete(v, mk)
  17614. } else {
  17615. v[mk] = ""
  17616. }
  17617. continue
  17618. }
  17619. mv = dd.DecodeString()
  17620. if v != nil {
  17621. v[mk] = mv
  17622. }
  17623. }
  17624. dd.ReadMapEnd()
  17625. return v, changed
  17626. }
  17627. func (d *Decoder) fastpathDecMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  17628. if rv.Kind() == reflect.Ptr {
  17629. vp := rv2i(rv).(*map[string]uint)
  17630. if v, changed := fastpathTV.DecMapStringUintV(*vp, true, d); changed {
  17631. *vp = v
  17632. }
  17633. return
  17634. }
  17635. fastpathTV.DecMapStringUintV(rv2i(rv).(map[string]uint), false, d)
  17636. }
  17637. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, d *Decoder) {
  17638. if v, changed := f.DecMapStringUintV(*vp, true, d); changed {
  17639. *vp = v
  17640. }
  17641. }
  17642. func (_ fastpathT) DecMapStringUintV(v map[string]uint, canChange bool,
  17643. d *Decoder) (_ map[string]uint, changed bool) {
  17644. dd, esep := d.d, d.hh.hasElemSeparators()
  17645. containerLen := dd.ReadMapStart()
  17646. if canChange && v == nil {
  17647. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17648. v = make(map[string]uint, xlen)
  17649. changed = true
  17650. }
  17651. if containerLen == 0 {
  17652. dd.ReadMapEnd()
  17653. return v, changed
  17654. }
  17655. var mk string
  17656. var mv uint
  17657. hasLen := containerLen > 0
  17658. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17659. if esep {
  17660. dd.ReadMapElemKey()
  17661. }
  17662. mk = dd.DecodeString()
  17663. if esep {
  17664. dd.ReadMapElemValue()
  17665. }
  17666. if dd.TryDecodeAsNil() {
  17667. if d.h.DeleteOnNilMapValue {
  17668. delete(v, mk)
  17669. } else {
  17670. v[mk] = 0
  17671. }
  17672. continue
  17673. }
  17674. mv = uint(dd.DecodeUint(uintBitsize))
  17675. if v != nil {
  17676. v[mk] = mv
  17677. }
  17678. }
  17679. dd.ReadMapEnd()
  17680. return v, changed
  17681. }
  17682. func (d *Decoder) fastpathDecMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  17683. if rv.Kind() == reflect.Ptr {
  17684. vp := rv2i(rv).(*map[string]uint8)
  17685. if v, changed := fastpathTV.DecMapStringUint8V(*vp, true, d); changed {
  17686. *vp = v
  17687. }
  17688. return
  17689. }
  17690. fastpathTV.DecMapStringUint8V(rv2i(rv).(map[string]uint8), false, d)
  17691. }
  17692. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, d *Decoder) {
  17693. if v, changed := f.DecMapStringUint8V(*vp, true, d); changed {
  17694. *vp = v
  17695. }
  17696. }
  17697. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, canChange bool,
  17698. d *Decoder) (_ map[string]uint8, changed bool) {
  17699. dd, esep := d.d, d.hh.hasElemSeparators()
  17700. containerLen := dd.ReadMapStart()
  17701. if canChange && v == nil {
  17702. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  17703. v = make(map[string]uint8, xlen)
  17704. changed = true
  17705. }
  17706. if containerLen == 0 {
  17707. dd.ReadMapEnd()
  17708. return v, changed
  17709. }
  17710. var mk string
  17711. var mv uint8
  17712. hasLen := containerLen > 0
  17713. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17714. if esep {
  17715. dd.ReadMapElemKey()
  17716. }
  17717. mk = dd.DecodeString()
  17718. if esep {
  17719. dd.ReadMapElemValue()
  17720. }
  17721. if dd.TryDecodeAsNil() {
  17722. if d.h.DeleteOnNilMapValue {
  17723. delete(v, mk)
  17724. } else {
  17725. v[mk] = 0
  17726. }
  17727. continue
  17728. }
  17729. mv = uint8(dd.DecodeUint(8))
  17730. if v != nil {
  17731. v[mk] = mv
  17732. }
  17733. }
  17734. dd.ReadMapEnd()
  17735. return v, changed
  17736. }
  17737. func (d *Decoder) fastpathDecMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  17738. if rv.Kind() == reflect.Ptr {
  17739. vp := rv2i(rv).(*map[string]uint16)
  17740. if v, changed := fastpathTV.DecMapStringUint16V(*vp, true, d); changed {
  17741. *vp = v
  17742. }
  17743. return
  17744. }
  17745. fastpathTV.DecMapStringUint16V(rv2i(rv).(map[string]uint16), false, d)
  17746. }
  17747. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, d *Decoder) {
  17748. if v, changed := f.DecMapStringUint16V(*vp, true, d); changed {
  17749. *vp = v
  17750. }
  17751. }
  17752. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, canChange bool,
  17753. d *Decoder) (_ map[string]uint16, changed bool) {
  17754. dd, esep := d.d, d.hh.hasElemSeparators()
  17755. containerLen := dd.ReadMapStart()
  17756. if canChange && v == nil {
  17757. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  17758. v = make(map[string]uint16, xlen)
  17759. changed = true
  17760. }
  17761. if containerLen == 0 {
  17762. dd.ReadMapEnd()
  17763. return v, changed
  17764. }
  17765. var mk string
  17766. var mv uint16
  17767. hasLen := containerLen > 0
  17768. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17769. if esep {
  17770. dd.ReadMapElemKey()
  17771. }
  17772. mk = dd.DecodeString()
  17773. if esep {
  17774. dd.ReadMapElemValue()
  17775. }
  17776. if dd.TryDecodeAsNil() {
  17777. if d.h.DeleteOnNilMapValue {
  17778. delete(v, mk)
  17779. } else {
  17780. v[mk] = 0
  17781. }
  17782. continue
  17783. }
  17784. mv = uint16(dd.DecodeUint(16))
  17785. if v != nil {
  17786. v[mk] = mv
  17787. }
  17788. }
  17789. dd.ReadMapEnd()
  17790. return v, changed
  17791. }
  17792. func (d *Decoder) fastpathDecMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  17793. if rv.Kind() == reflect.Ptr {
  17794. vp := rv2i(rv).(*map[string]uint32)
  17795. if v, changed := fastpathTV.DecMapStringUint32V(*vp, true, d); changed {
  17796. *vp = v
  17797. }
  17798. return
  17799. }
  17800. fastpathTV.DecMapStringUint32V(rv2i(rv).(map[string]uint32), false, d)
  17801. }
  17802. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, d *Decoder) {
  17803. if v, changed := f.DecMapStringUint32V(*vp, true, d); changed {
  17804. *vp = v
  17805. }
  17806. }
  17807. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, canChange bool,
  17808. d *Decoder) (_ map[string]uint32, changed bool) {
  17809. dd, esep := d.d, d.hh.hasElemSeparators()
  17810. containerLen := dd.ReadMapStart()
  17811. if canChange && v == nil {
  17812. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17813. v = make(map[string]uint32, xlen)
  17814. changed = true
  17815. }
  17816. if containerLen == 0 {
  17817. dd.ReadMapEnd()
  17818. return v, changed
  17819. }
  17820. var mk string
  17821. var mv uint32
  17822. hasLen := containerLen > 0
  17823. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17824. if esep {
  17825. dd.ReadMapElemKey()
  17826. }
  17827. mk = dd.DecodeString()
  17828. if esep {
  17829. dd.ReadMapElemValue()
  17830. }
  17831. if dd.TryDecodeAsNil() {
  17832. if d.h.DeleteOnNilMapValue {
  17833. delete(v, mk)
  17834. } else {
  17835. v[mk] = 0
  17836. }
  17837. continue
  17838. }
  17839. mv = uint32(dd.DecodeUint(32))
  17840. if v != nil {
  17841. v[mk] = mv
  17842. }
  17843. }
  17844. dd.ReadMapEnd()
  17845. return v, changed
  17846. }
  17847. func (d *Decoder) fastpathDecMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  17848. if rv.Kind() == reflect.Ptr {
  17849. vp := rv2i(rv).(*map[string]uint64)
  17850. if v, changed := fastpathTV.DecMapStringUint64V(*vp, true, d); changed {
  17851. *vp = v
  17852. }
  17853. return
  17854. }
  17855. fastpathTV.DecMapStringUint64V(rv2i(rv).(map[string]uint64), false, d)
  17856. }
  17857. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, d *Decoder) {
  17858. if v, changed := f.DecMapStringUint64V(*vp, true, d); changed {
  17859. *vp = v
  17860. }
  17861. }
  17862. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, canChange bool,
  17863. d *Decoder) (_ map[string]uint64, changed bool) {
  17864. dd, esep := d.d, d.hh.hasElemSeparators()
  17865. containerLen := dd.ReadMapStart()
  17866. if canChange && v == nil {
  17867. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17868. v = make(map[string]uint64, xlen)
  17869. changed = true
  17870. }
  17871. if containerLen == 0 {
  17872. dd.ReadMapEnd()
  17873. return v, changed
  17874. }
  17875. var mk string
  17876. var mv uint64
  17877. hasLen := containerLen > 0
  17878. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17879. if esep {
  17880. dd.ReadMapElemKey()
  17881. }
  17882. mk = dd.DecodeString()
  17883. if esep {
  17884. dd.ReadMapElemValue()
  17885. }
  17886. if dd.TryDecodeAsNil() {
  17887. if d.h.DeleteOnNilMapValue {
  17888. delete(v, mk)
  17889. } else {
  17890. v[mk] = 0
  17891. }
  17892. continue
  17893. }
  17894. mv = dd.DecodeUint(64)
  17895. if v != nil {
  17896. v[mk] = mv
  17897. }
  17898. }
  17899. dd.ReadMapEnd()
  17900. return v, changed
  17901. }
  17902. func (d *Decoder) fastpathDecMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  17903. if rv.Kind() == reflect.Ptr {
  17904. vp := rv2i(rv).(*map[string]uintptr)
  17905. if v, changed := fastpathTV.DecMapStringUintptrV(*vp, true, d); changed {
  17906. *vp = v
  17907. }
  17908. return
  17909. }
  17910. fastpathTV.DecMapStringUintptrV(rv2i(rv).(map[string]uintptr), false, d)
  17911. }
  17912. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, d *Decoder) {
  17913. if v, changed := f.DecMapStringUintptrV(*vp, true, d); changed {
  17914. *vp = v
  17915. }
  17916. }
  17917. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, canChange bool,
  17918. d *Decoder) (_ map[string]uintptr, changed bool) {
  17919. dd, esep := d.d, d.hh.hasElemSeparators()
  17920. containerLen := dd.ReadMapStart()
  17921. if canChange && v == nil {
  17922. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17923. v = make(map[string]uintptr, xlen)
  17924. changed = true
  17925. }
  17926. if containerLen == 0 {
  17927. dd.ReadMapEnd()
  17928. return v, changed
  17929. }
  17930. var mk string
  17931. var mv uintptr
  17932. hasLen := containerLen > 0
  17933. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17934. if esep {
  17935. dd.ReadMapElemKey()
  17936. }
  17937. mk = dd.DecodeString()
  17938. if esep {
  17939. dd.ReadMapElemValue()
  17940. }
  17941. if dd.TryDecodeAsNil() {
  17942. if d.h.DeleteOnNilMapValue {
  17943. delete(v, mk)
  17944. } else {
  17945. v[mk] = 0
  17946. }
  17947. continue
  17948. }
  17949. mv = uintptr(dd.DecodeUint(uintBitsize))
  17950. if v != nil {
  17951. v[mk] = mv
  17952. }
  17953. }
  17954. dd.ReadMapEnd()
  17955. return v, changed
  17956. }
  17957. func (d *Decoder) fastpathDecMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  17958. if rv.Kind() == reflect.Ptr {
  17959. vp := rv2i(rv).(*map[string]int)
  17960. if v, changed := fastpathTV.DecMapStringIntV(*vp, true, d); changed {
  17961. *vp = v
  17962. }
  17963. return
  17964. }
  17965. fastpathTV.DecMapStringIntV(rv2i(rv).(map[string]int), false, d)
  17966. }
  17967. func (f fastpathT) DecMapStringIntX(vp *map[string]int, d *Decoder) {
  17968. if v, changed := f.DecMapStringIntV(*vp, true, d); changed {
  17969. *vp = v
  17970. }
  17971. }
  17972. func (_ fastpathT) DecMapStringIntV(v map[string]int, canChange bool,
  17973. d *Decoder) (_ map[string]int, changed bool) {
  17974. dd, esep := d.d, d.hh.hasElemSeparators()
  17975. containerLen := dd.ReadMapStart()
  17976. if canChange && v == nil {
  17977. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17978. v = make(map[string]int, xlen)
  17979. changed = true
  17980. }
  17981. if containerLen == 0 {
  17982. dd.ReadMapEnd()
  17983. return v, changed
  17984. }
  17985. var mk string
  17986. var mv int
  17987. hasLen := containerLen > 0
  17988. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17989. if esep {
  17990. dd.ReadMapElemKey()
  17991. }
  17992. mk = dd.DecodeString()
  17993. if esep {
  17994. dd.ReadMapElemValue()
  17995. }
  17996. if dd.TryDecodeAsNil() {
  17997. if d.h.DeleteOnNilMapValue {
  17998. delete(v, mk)
  17999. } else {
  18000. v[mk] = 0
  18001. }
  18002. continue
  18003. }
  18004. mv = int(dd.DecodeInt(intBitsize))
  18005. if v != nil {
  18006. v[mk] = mv
  18007. }
  18008. }
  18009. dd.ReadMapEnd()
  18010. return v, changed
  18011. }
  18012. func (d *Decoder) fastpathDecMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  18013. if rv.Kind() == reflect.Ptr {
  18014. vp := rv2i(rv).(*map[string]int8)
  18015. if v, changed := fastpathTV.DecMapStringInt8V(*vp, true, d); changed {
  18016. *vp = v
  18017. }
  18018. return
  18019. }
  18020. fastpathTV.DecMapStringInt8V(rv2i(rv).(map[string]int8), false, d)
  18021. }
  18022. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, d *Decoder) {
  18023. if v, changed := f.DecMapStringInt8V(*vp, true, d); changed {
  18024. *vp = v
  18025. }
  18026. }
  18027. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, canChange bool,
  18028. d *Decoder) (_ map[string]int8, changed bool) {
  18029. dd, esep := d.d, d.hh.hasElemSeparators()
  18030. containerLen := dd.ReadMapStart()
  18031. if canChange && v == nil {
  18032. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18033. v = make(map[string]int8, xlen)
  18034. changed = true
  18035. }
  18036. if containerLen == 0 {
  18037. dd.ReadMapEnd()
  18038. return v, changed
  18039. }
  18040. var mk string
  18041. var mv int8
  18042. hasLen := containerLen > 0
  18043. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18044. if esep {
  18045. dd.ReadMapElemKey()
  18046. }
  18047. mk = dd.DecodeString()
  18048. if esep {
  18049. dd.ReadMapElemValue()
  18050. }
  18051. if dd.TryDecodeAsNil() {
  18052. if d.h.DeleteOnNilMapValue {
  18053. delete(v, mk)
  18054. } else {
  18055. v[mk] = 0
  18056. }
  18057. continue
  18058. }
  18059. mv = int8(dd.DecodeInt(8))
  18060. if v != nil {
  18061. v[mk] = mv
  18062. }
  18063. }
  18064. dd.ReadMapEnd()
  18065. return v, changed
  18066. }
  18067. func (d *Decoder) fastpathDecMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  18068. if rv.Kind() == reflect.Ptr {
  18069. vp := rv2i(rv).(*map[string]int16)
  18070. if v, changed := fastpathTV.DecMapStringInt16V(*vp, true, d); changed {
  18071. *vp = v
  18072. }
  18073. return
  18074. }
  18075. fastpathTV.DecMapStringInt16V(rv2i(rv).(map[string]int16), false, d)
  18076. }
  18077. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, d *Decoder) {
  18078. if v, changed := f.DecMapStringInt16V(*vp, true, d); changed {
  18079. *vp = v
  18080. }
  18081. }
  18082. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, canChange bool,
  18083. d *Decoder) (_ map[string]int16, changed bool) {
  18084. dd, esep := d.d, d.hh.hasElemSeparators()
  18085. containerLen := dd.ReadMapStart()
  18086. if canChange && v == nil {
  18087. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  18088. v = make(map[string]int16, xlen)
  18089. changed = true
  18090. }
  18091. if containerLen == 0 {
  18092. dd.ReadMapEnd()
  18093. return v, changed
  18094. }
  18095. var mk string
  18096. var mv int16
  18097. hasLen := containerLen > 0
  18098. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18099. if esep {
  18100. dd.ReadMapElemKey()
  18101. }
  18102. mk = dd.DecodeString()
  18103. if esep {
  18104. dd.ReadMapElemValue()
  18105. }
  18106. if dd.TryDecodeAsNil() {
  18107. if d.h.DeleteOnNilMapValue {
  18108. delete(v, mk)
  18109. } else {
  18110. v[mk] = 0
  18111. }
  18112. continue
  18113. }
  18114. mv = int16(dd.DecodeInt(16))
  18115. if v != nil {
  18116. v[mk] = mv
  18117. }
  18118. }
  18119. dd.ReadMapEnd()
  18120. return v, changed
  18121. }
  18122. func (d *Decoder) fastpathDecMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  18123. if rv.Kind() == reflect.Ptr {
  18124. vp := rv2i(rv).(*map[string]int32)
  18125. if v, changed := fastpathTV.DecMapStringInt32V(*vp, true, d); changed {
  18126. *vp = v
  18127. }
  18128. return
  18129. }
  18130. fastpathTV.DecMapStringInt32V(rv2i(rv).(map[string]int32), false, d)
  18131. }
  18132. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, d *Decoder) {
  18133. if v, changed := f.DecMapStringInt32V(*vp, true, d); changed {
  18134. *vp = v
  18135. }
  18136. }
  18137. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, canChange bool,
  18138. d *Decoder) (_ map[string]int32, changed bool) {
  18139. dd, esep := d.d, d.hh.hasElemSeparators()
  18140. containerLen := dd.ReadMapStart()
  18141. if canChange && v == nil {
  18142. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18143. v = make(map[string]int32, xlen)
  18144. changed = true
  18145. }
  18146. if containerLen == 0 {
  18147. dd.ReadMapEnd()
  18148. return v, changed
  18149. }
  18150. var mk string
  18151. var mv int32
  18152. hasLen := containerLen > 0
  18153. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18154. if esep {
  18155. dd.ReadMapElemKey()
  18156. }
  18157. mk = dd.DecodeString()
  18158. if esep {
  18159. dd.ReadMapElemValue()
  18160. }
  18161. if dd.TryDecodeAsNil() {
  18162. if d.h.DeleteOnNilMapValue {
  18163. delete(v, mk)
  18164. } else {
  18165. v[mk] = 0
  18166. }
  18167. continue
  18168. }
  18169. mv = int32(dd.DecodeInt(32))
  18170. if v != nil {
  18171. v[mk] = mv
  18172. }
  18173. }
  18174. dd.ReadMapEnd()
  18175. return v, changed
  18176. }
  18177. func (d *Decoder) fastpathDecMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  18178. if rv.Kind() == reflect.Ptr {
  18179. vp := rv2i(rv).(*map[string]int64)
  18180. if v, changed := fastpathTV.DecMapStringInt64V(*vp, true, d); changed {
  18181. *vp = v
  18182. }
  18183. return
  18184. }
  18185. fastpathTV.DecMapStringInt64V(rv2i(rv).(map[string]int64), false, d)
  18186. }
  18187. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, d *Decoder) {
  18188. if v, changed := f.DecMapStringInt64V(*vp, true, d); changed {
  18189. *vp = v
  18190. }
  18191. }
  18192. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, canChange bool,
  18193. d *Decoder) (_ map[string]int64, changed bool) {
  18194. dd, esep := d.d, d.hh.hasElemSeparators()
  18195. containerLen := dd.ReadMapStart()
  18196. if canChange && v == nil {
  18197. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18198. v = make(map[string]int64, xlen)
  18199. changed = true
  18200. }
  18201. if containerLen == 0 {
  18202. dd.ReadMapEnd()
  18203. return v, changed
  18204. }
  18205. var mk string
  18206. var mv int64
  18207. hasLen := containerLen > 0
  18208. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18209. if esep {
  18210. dd.ReadMapElemKey()
  18211. }
  18212. mk = dd.DecodeString()
  18213. if esep {
  18214. dd.ReadMapElemValue()
  18215. }
  18216. if dd.TryDecodeAsNil() {
  18217. if d.h.DeleteOnNilMapValue {
  18218. delete(v, mk)
  18219. } else {
  18220. v[mk] = 0
  18221. }
  18222. continue
  18223. }
  18224. mv = dd.DecodeInt(64)
  18225. if v != nil {
  18226. v[mk] = mv
  18227. }
  18228. }
  18229. dd.ReadMapEnd()
  18230. return v, changed
  18231. }
  18232. func (d *Decoder) fastpathDecMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  18233. if rv.Kind() == reflect.Ptr {
  18234. vp := rv2i(rv).(*map[string]float32)
  18235. if v, changed := fastpathTV.DecMapStringFloat32V(*vp, true, d); changed {
  18236. *vp = v
  18237. }
  18238. return
  18239. }
  18240. fastpathTV.DecMapStringFloat32V(rv2i(rv).(map[string]float32), false, d)
  18241. }
  18242. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, d *Decoder) {
  18243. if v, changed := f.DecMapStringFloat32V(*vp, true, d); changed {
  18244. *vp = v
  18245. }
  18246. }
  18247. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, canChange bool,
  18248. d *Decoder) (_ map[string]float32, changed bool) {
  18249. dd, esep := d.d, d.hh.hasElemSeparators()
  18250. containerLen := dd.ReadMapStart()
  18251. if canChange && v == nil {
  18252. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18253. v = make(map[string]float32, xlen)
  18254. changed = true
  18255. }
  18256. if containerLen == 0 {
  18257. dd.ReadMapEnd()
  18258. return v, changed
  18259. }
  18260. var mk string
  18261. var mv float32
  18262. hasLen := containerLen > 0
  18263. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18264. if esep {
  18265. dd.ReadMapElemKey()
  18266. }
  18267. mk = dd.DecodeString()
  18268. if esep {
  18269. dd.ReadMapElemValue()
  18270. }
  18271. if dd.TryDecodeAsNil() {
  18272. if d.h.DeleteOnNilMapValue {
  18273. delete(v, mk)
  18274. } else {
  18275. v[mk] = 0
  18276. }
  18277. continue
  18278. }
  18279. mv = float32(dd.DecodeFloat(true))
  18280. if v != nil {
  18281. v[mk] = mv
  18282. }
  18283. }
  18284. dd.ReadMapEnd()
  18285. return v, changed
  18286. }
  18287. func (d *Decoder) fastpathDecMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  18288. if rv.Kind() == reflect.Ptr {
  18289. vp := rv2i(rv).(*map[string]float64)
  18290. if v, changed := fastpathTV.DecMapStringFloat64V(*vp, true, d); changed {
  18291. *vp = v
  18292. }
  18293. return
  18294. }
  18295. fastpathTV.DecMapStringFloat64V(rv2i(rv).(map[string]float64), false, d)
  18296. }
  18297. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, d *Decoder) {
  18298. if v, changed := f.DecMapStringFloat64V(*vp, true, d); changed {
  18299. *vp = v
  18300. }
  18301. }
  18302. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, canChange bool,
  18303. d *Decoder) (_ map[string]float64, changed bool) {
  18304. dd, esep := d.d, d.hh.hasElemSeparators()
  18305. containerLen := dd.ReadMapStart()
  18306. if canChange && v == nil {
  18307. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18308. v = make(map[string]float64, xlen)
  18309. changed = true
  18310. }
  18311. if containerLen == 0 {
  18312. dd.ReadMapEnd()
  18313. return v, changed
  18314. }
  18315. var mk string
  18316. var mv float64
  18317. hasLen := containerLen > 0
  18318. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18319. if esep {
  18320. dd.ReadMapElemKey()
  18321. }
  18322. mk = dd.DecodeString()
  18323. if esep {
  18324. dd.ReadMapElemValue()
  18325. }
  18326. if dd.TryDecodeAsNil() {
  18327. if d.h.DeleteOnNilMapValue {
  18328. delete(v, mk)
  18329. } else {
  18330. v[mk] = 0
  18331. }
  18332. continue
  18333. }
  18334. mv = dd.DecodeFloat(false)
  18335. if v != nil {
  18336. v[mk] = mv
  18337. }
  18338. }
  18339. dd.ReadMapEnd()
  18340. return v, changed
  18341. }
  18342. func (d *Decoder) fastpathDecMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  18343. if rv.Kind() == reflect.Ptr {
  18344. vp := rv2i(rv).(*map[string]bool)
  18345. if v, changed := fastpathTV.DecMapStringBoolV(*vp, true, d); changed {
  18346. *vp = v
  18347. }
  18348. return
  18349. }
  18350. fastpathTV.DecMapStringBoolV(rv2i(rv).(map[string]bool), false, d)
  18351. }
  18352. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, d *Decoder) {
  18353. if v, changed := f.DecMapStringBoolV(*vp, true, d); changed {
  18354. *vp = v
  18355. }
  18356. }
  18357. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, canChange bool,
  18358. d *Decoder) (_ map[string]bool, changed bool) {
  18359. dd, esep := d.d, d.hh.hasElemSeparators()
  18360. containerLen := dd.ReadMapStart()
  18361. if canChange && v == nil {
  18362. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18363. v = make(map[string]bool, xlen)
  18364. changed = true
  18365. }
  18366. if containerLen == 0 {
  18367. dd.ReadMapEnd()
  18368. return v, changed
  18369. }
  18370. var mk string
  18371. var mv bool
  18372. hasLen := containerLen > 0
  18373. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18374. if esep {
  18375. dd.ReadMapElemKey()
  18376. }
  18377. mk = dd.DecodeString()
  18378. if esep {
  18379. dd.ReadMapElemValue()
  18380. }
  18381. if dd.TryDecodeAsNil() {
  18382. if d.h.DeleteOnNilMapValue {
  18383. delete(v, mk)
  18384. } else {
  18385. v[mk] = false
  18386. }
  18387. continue
  18388. }
  18389. mv = dd.DecodeBool()
  18390. if v != nil {
  18391. v[mk] = mv
  18392. }
  18393. }
  18394. dd.ReadMapEnd()
  18395. return v, changed
  18396. }
  18397. func (d *Decoder) fastpathDecMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  18398. if rv.Kind() == reflect.Ptr {
  18399. vp := rv2i(rv).(*map[float32]interface{})
  18400. if v, changed := fastpathTV.DecMapFloat32IntfV(*vp, true, d); changed {
  18401. *vp = v
  18402. }
  18403. return
  18404. }
  18405. fastpathTV.DecMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), false, d)
  18406. }
  18407. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, d *Decoder) {
  18408. if v, changed := f.DecMapFloat32IntfV(*vp, true, d); changed {
  18409. *vp = v
  18410. }
  18411. }
  18412. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, canChange bool,
  18413. d *Decoder) (_ map[float32]interface{}, changed bool) {
  18414. dd, esep := d.d, d.hh.hasElemSeparators()
  18415. containerLen := dd.ReadMapStart()
  18416. if canChange && v == nil {
  18417. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18418. v = make(map[float32]interface{}, xlen)
  18419. changed = true
  18420. }
  18421. if containerLen == 0 {
  18422. dd.ReadMapEnd()
  18423. return v, changed
  18424. }
  18425. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  18426. var mk float32
  18427. var mv interface{}
  18428. hasLen := containerLen > 0
  18429. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18430. if esep {
  18431. dd.ReadMapElemKey()
  18432. }
  18433. mk = float32(dd.DecodeFloat(true))
  18434. if esep {
  18435. dd.ReadMapElemValue()
  18436. }
  18437. if dd.TryDecodeAsNil() {
  18438. if d.h.DeleteOnNilMapValue {
  18439. delete(v, mk)
  18440. } else {
  18441. v[mk] = nil
  18442. }
  18443. continue
  18444. }
  18445. if mapGet {
  18446. mv = v[mk]
  18447. } else {
  18448. mv = nil
  18449. }
  18450. d.decode(&mv)
  18451. if v != nil {
  18452. v[mk] = mv
  18453. }
  18454. }
  18455. dd.ReadMapEnd()
  18456. return v, changed
  18457. }
  18458. func (d *Decoder) fastpathDecMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  18459. if rv.Kind() == reflect.Ptr {
  18460. vp := rv2i(rv).(*map[float32]string)
  18461. if v, changed := fastpathTV.DecMapFloat32StringV(*vp, true, d); changed {
  18462. *vp = v
  18463. }
  18464. return
  18465. }
  18466. fastpathTV.DecMapFloat32StringV(rv2i(rv).(map[float32]string), false, d)
  18467. }
  18468. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, d *Decoder) {
  18469. if v, changed := f.DecMapFloat32StringV(*vp, true, d); changed {
  18470. *vp = v
  18471. }
  18472. }
  18473. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, canChange bool,
  18474. d *Decoder) (_ map[float32]string, changed bool) {
  18475. dd, esep := d.d, d.hh.hasElemSeparators()
  18476. containerLen := dd.ReadMapStart()
  18477. if canChange && v == nil {
  18478. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18479. v = make(map[float32]string, xlen)
  18480. changed = true
  18481. }
  18482. if containerLen == 0 {
  18483. dd.ReadMapEnd()
  18484. return v, changed
  18485. }
  18486. var mk float32
  18487. var mv string
  18488. hasLen := containerLen > 0
  18489. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18490. if esep {
  18491. dd.ReadMapElemKey()
  18492. }
  18493. mk = float32(dd.DecodeFloat(true))
  18494. if esep {
  18495. dd.ReadMapElemValue()
  18496. }
  18497. if dd.TryDecodeAsNil() {
  18498. if d.h.DeleteOnNilMapValue {
  18499. delete(v, mk)
  18500. } else {
  18501. v[mk] = ""
  18502. }
  18503. continue
  18504. }
  18505. mv = dd.DecodeString()
  18506. if v != nil {
  18507. v[mk] = mv
  18508. }
  18509. }
  18510. dd.ReadMapEnd()
  18511. return v, changed
  18512. }
  18513. func (d *Decoder) fastpathDecMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  18514. if rv.Kind() == reflect.Ptr {
  18515. vp := rv2i(rv).(*map[float32]uint)
  18516. if v, changed := fastpathTV.DecMapFloat32UintV(*vp, true, d); changed {
  18517. *vp = v
  18518. }
  18519. return
  18520. }
  18521. fastpathTV.DecMapFloat32UintV(rv2i(rv).(map[float32]uint), false, d)
  18522. }
  18523. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, d *Decoder) {
  18524. if v, changed := f.DecMapFloat32UintV(*vp, true, d); changed {
  18525. *vp = v
  18526. }
  18527. }
  18528. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, canChange bool,
  18529. d *Decoder) (_ map[float32]uint, changed bool) {
  18530. dd, esep := d.d, d.hh.hasElemSeparators()
  18531. containerLen := dd.ReadMapStart()
  18532. if canChange && v == nil {
  18533. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18534. v = make(map[float32]uint, xlen)
  18535. changed = true
  18536. }
  18537. if containerLen == 0 {
  18538. dd.ReadMapEnd()
  18539. return v, changed
  18540. }
  18541. var mk float32
  18542. var mv uint
  18543. hasLen := containerLen > 0
  18544. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18545. if esep {
  18546. dd.ReadMapElemKey()
  18547. }
  18548. mk = float32(dd.DecodeFloat(true))
  18549. if esep {
  18550. dd.ReadMapElemValue()
  18551. }
  18552. if dd.TryDecodeAsNil() {
  18553. if d.h.DeleteOnNilMapValue {
  18554. delete(v, mk)
  18555. } else {
  18556. v[mk] = 0
  18557. }
  18558. continue
  18559. }
  18560. mv = uint(dd.DecodeUint(uintBitsize))
  18561. if v != nil {
  18562. v[mk] = mv
  18563. }
  18564. }
  18565. dd.ReadMapEnd()
  18566. return v, changed
  18567. }
  18568. func (d *Decoder) fastpathDecMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  18569. if rv.Kind() == reflect.Ptr {
  18570. vp := rv2i(rv).(*map[float32]uint8)
  18571. if v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, true, d); changed {
  18572. *vp = v
  18573. }
  18574. return
  18575. }
  18576. fastpathTV.DecMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), false, d)
  18577. }
  18578. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, d *Decoder) {
  18579. if v, changed := f.DecMapFloat32Uint8V(*vp, true, d); changed {
  18580. *vp = v
  18581. }
  18582. }
  18583. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, canChange bool,
  18584. d *Decoder) (_ map[float32]uint8, changed bool) {
  18585. dd, esep := d.d, d.hh.hasElemSeparators()
  18586. containerLen := dd.ReadMapStart()
  18587. if canChange && v == nil {
  18588. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  18589. v = make(map[float32]uint8, xlen)
  18590. changed = true
  18591. }
  18592. if containerLen == 0 {
  18593. dd.ReadMapEnd()
  18594. return v, changed
  18595. }
  18596. var mk float32
  18597. var mv uint8
  18598. hasLen := containerLen > 0
  18599. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18600. if esep {
  18601. dd.ReadMapElemKey()
  18602. }
  18603. mk = float32(dd.DecodeFloat(true))
  18604. if esep {
  18605. dd.ReadMapElemValue()
  18606. }
  18607. if dd.TryDecodeAsNil() {
  18608. if d.h.DeleteOnNilMapValue {
  18609. delete(v, mk)
  18610. } else {
  18611. v[mk] = 0
  18612. }
  18613. continue
  18614. }
  18615. mv = uint8(dd.DecodeUint(8))
  18616. if v != nil {
  18617. v[mk] = mv
  18618. }
  18619. }
  18620. dd.ReadMapEnd()
  18621. return v, changed
  18622. }
  18623. func (d *Decoder) fastpathDecMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  18624. if rv.Kind() == reflect.Ptr {
  18625. vp := rv2i(rv).(*map[float32]uint16)
  18626. if v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, true, d); changed {
  18627. *vp = v
  18628. }
  18629. return
  18630. }
  18631. fastpathTV.DecMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), false, d)
  18632. }
  18633. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, d *Decoder) {
  18634. if v, changed := f.DecMapFloat32Uint16V(*vp, true, d); changed {
  18635. *vp = v
  18636. }
  18637. }
  18638. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, canChange bool,
  18639. d *Decoder) (_ map[float32]uint16, changed bool) {
  18640. dd, esep := d.d, d.hh.hasElemSeparators()
  18641. containerLen := dd.ReadMapStart()
  18642. if canChange && v == nil {
  18643. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  18644. v = make(map[float32]uint16, xlen)
  18645. changed = true
  18646. }
  18647. if containerLen == 0 {
  18648. dd.ReadMapEnd()
  18649. return v, changed
  18650. }
  18651. var mk float32
  18652. var mv uint16
  18653. hasLen := containerLen > 0
  18654. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18655. if esep {
  18656. dd.ReadMapElemKey()
  18657. }
  18658. mk = float32(dd.DecodeFloat(true))
  18659. if esep {
  18660. dd.ReadMapElemValue()
  18661. }
  18662. if dd.TryDecodeAsNil() {
  18663. if d.h.DeleteOnNilMapValue {
  18664. delete(v, mk)
  18665. } else {
  18666. v[mk] = 0
  18667. }
  18668. continue
  18669. }
  18670. mv = uint16(dd.DecodeUint(16))
  18671. if v != nil {
  18672. v[mk] = mv
  18673. }
  18674. }
  18675. dd.ReadMapEnd()
  18676. return v, changed
  18677. }
  18678. func (d *Decoder) fastpathDecMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  18679. if rv.Kind() == reflect.Ptr {
  18680. vp := rv2i(rv).(*map[float32]uint32)
  18681. if v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, true, d); changed {
  18682. *vp = v
  18683. }
  18684. return
  18685. }
  18686. fastpathTV.DecMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), false, d)
  18687. }
  18688. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, d *Decoder) {
  18689. if v, changed := f.DecMapFloat32Uint32V(*vp, true, d); changed {
  18690. *vp = v
  18691. }
  18692. }
  18693. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, canChange bool,
  18694. d *Decoder) (_ map[float32]uint32, changed bool) {
  18695. dd, esep := d.d, d.hh.hasElemSeparators()
  18696. containerLen := dd.ReadMapStart()
  18697. if canChange && v == nil {
  18698. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  18699. v = make(map[float32]uint32, xlen)
  18700. changed = true
  18701. }
  18702. if containerLen == 0 {
  18703. dd.ReadMapEnd()
  18704. return v, changed
  18705. }
  18706. var mk float32
  18707. var mv uint32
  18708. hasLen := containerLen > 0
  18709. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18710. if esep {
  18711. dd.ReadMapElemKey()
  18712. }
  18713. mk = float32(dd.DecodeFloat(true))
  18714. if esep {
  18715. dd.ReadMapElemValue()
  18716. }
  18717. if dd.TryDecodeAsNil() {
  18718. if d.h.DeleteOnNilMapValue {
  18719. delete(v, mk)
  18720. } else {
  18721. v[mk] = 0
  18722. }
  18723. continue
  18724. }
  18725. mv = uint32(dd.DecodeUint(32))
  18726. if v != nil {
  18727. v[mk] = mv
  18728. }
  18729. }
  18730. dd.ReadMapEnd()
  18731. return v, changed
  18732. }
  18733. func (d *Decoder) fastpathDecMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  18734. if rv.Kind() == reflect.Ptr {
  18735. vp := rv2i(rv).(*map[float32]uint64)
  18736. if v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, true, d); changed {
  18737. *vp = v
  18738. }
  18739. return
  18740. }
  18741. fastpathTV.DecMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), false, d)
  18742. }
  18743. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, d *Decoder) {
  18744. if v, changed := f.DecMapFloat32Uint64V(*vp, true, d); changed {
  18745. *vp = v
  18746. }
  18747. }
  18748. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, canChange bool,
  18749. d *Decoder) (_ map[float32]uint64, changed bool) {
  18750. dd, esep := d.d, d.hh.hasElemSeparators()
  18751. containerLen := dd.ReadMapStart()
  18752. if canChange && v == nil {
  18753. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18754. v = make(map[float32]uint64, xlen)
  18755. changed = true
  18756. }
  18757. if containerLen == 0 {
  18758. dd.ReadMapEnd()
  18759. return v, changed
  18760. }
  18761. var mk float32
  18762. var mv uint64
  18763. hasLen := containerLen > 0
  18764. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18765. if esep {
  18766. dd.ReadMapElemKey()
  18767. }
  18768. mk = float32(dd.DecodeFloat(true))
  18769. if esep {
  18770. dd.ReadMapElemValue()
  18771. }
  18772. if dd.TryDecodeAsNil() {
  18773. if d.h.DeleteOnNilMapValue {
  18774. delete(v, mk)
  18775. } else {
  18776. v[mk] = 0
  18777. }
  18778. continue
  18779. }
  18780. mv = dd.DecodeUint(64)
  18781. if v != nil {
  18782. v[mk] = mv
  18783. }
  18784. }
  18785. dd.ReadMapEnd()
  18786. return v, changed
  18787. }
  18788. func (d *Decoder) fastpathDecMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  18789. if rv.Kind() == reflect.Ptr {
  18790. vp := rv2i(rv).(*map[float32]uintptr)
  18791. if v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, true, d); changed {
  18792. *vp = v
  18793. }
  18794. return
  18795. }
  18796. fastpathTV.DecMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), false, d)
  18797. }
  18798. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, d *Decoder) {
  18799. if v, changed := f.DecMapFloat32UintptrV(*vp, true, d); changed {
  18800. *vp = v
  18801. }
  18802. }
  18803. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, canChange bool,
  18804. d *Decoder) (_ map[float32]uintptr, changed bool) {
  18805. dd, esep := d.d, d.hh.hasElemSeparators()
  18806. containerLen := dd.ReadMapStart()
  18807. if canChange && v == nil {
  18808. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18809. v = make(map[float32]uintptr, xlen)
  18810. changed = true
  18811. }
  18812. if containerLen == 0 {
  18813. dd.ReadMapEnd()
  18814. return v, changed
  18815. }
  18816. var mk float32
  18817. var mv uintptr
  18818. hasLen := containerLen > 0
  18819. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18820. if esep {
  18821. dd.ReadMapElemKey()
  18822. }
  18823. mk = float32(dd.DecodeFloat(true))
  18824. if esep {
  18825. dd.ReadMapElemValue()
  18826. }
  18827. if dd.TryDecodeAsNil() {
  18828. if d.h.DeleteOnNilMapValue {
  18829. delete(v, mk)
  18830. } else {
  18831. v[mk] = 0
  18832. }
  18833. continue
  18834. }
  18835. mv = uintptr(dd.DecodeUint(uintBitsize))
  18836. if v != nil {
  18837. v[mk] = mv
  18838. }
  18839. }
  18840. dd.ReadMapEnd()
  18841. return v, changed
  18842. }
  18843. func (d *Decoder) fastpathDecMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  18844. if rv.Kind() == reflect.Ptr {
  18845. vp := rv2i(rv).(*map[float32]int)
  18846. if v, changed := fastpathTV.DecMapFloat32IntV(*vp, true, d); changed {
  18847. *vp = v
  18848. }
  18849. return
  18850. }
  18851. fastpathTV.DecMapFloat32IntV(rv2i(rv).(map[float32]int), false, d)
  18852. }
  18853. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, d *Decoder) {
  18854. if v, changed := f.DecMapFloat32IntV(*vp, true, d); changed {
  18855. *vp = v
  18856. }
  18857. }
  18858. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, canChange bool,
  18859. d *Decoder) (_ map[float32]int, changed bool) {
  18860. dd, esep := d.d, d.hh.hasElemSeparators()
  18861. containerLen := dd.ReadMapStart()
  18862. if canChange && v == nil {
  18863. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18864. v = make(map[float32]int, xlen)
  18865. changed = true
  18866. }
  18867. if containerLen == 0 {
  18868. dd.ReadMapEnd()
  18869. return v, changed
  18870. }
  18871. var mk float32
  18872. var mv int
  18873. hasLen := containerLen > 0
  18874. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18875. if esep {
  18876. dd.ReadMapElemKey()
  18877. }
  18878. mk = float32(dd.DecodeFloat(true))
  18879. if esep {
  18880. dd.ReadMapElemValue()
  18881. }
  18882. if dd.TryDecodeAsNil() {
  18883. if d.h.DeleteOnNilMapValue {
  18884. delete(v, mk)
  18885. } else {
  18886. v[mk] = 0
  18887. }
  18888. continue
  18889. }
  18890. mv = int(dd.DecodeInt(intBitsize))
  18891. if v != nil {
  18892. v[mk] = mv
  18893. }
  18894. }
  18895. dd.ReadMapEnd()
  18896. return v, changed
  18897. }
  18898. func (d *Decoder) fastpathDecMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  18899. if rv.Kind() == reflect.Ptr {
  18900. vp := rv2i(rv).(*map[float32]int8)
  18901. if v, changed := fastpathTV.DecMapFloat32Int8V(*vp, true, d); changed {
  18902. *vp = v
  18903. }
  18904. return
  18905. }
  18906. fastpathTV.DecMapFloat32Int8V(rv2i(rv).(map[float32]int8), false, d)
  18907. }
  18908. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, d *Decoder) {
  18909. if v, changed := f.DecMapFloat32Int8V(*vp, true, d); changed {
  18910. *vp = v
  18911. }
  18912. }
  18913. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, canChange bool,
  18914. d *Decoder) (_ map[float32]int8, changed bool) {
  18915. dd, esep := d.d, d.hh.hasElemSeparators()
  18916. containerLen := dd.ReadMapStart()
  18917. if canChange && v == nil {
  18918. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  18919. v = make(map[float32]int8, xlen)
  18920. changed = true
  18921. }
  18922. if containerLen == 0 {
  18923. dd.ReadMapEnd()
  18924. return v, changed
  18925. }
  18926. var mk float32
  18927. var mv int8
  18928. hasLen := containerLen > 0
  18929. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18930. if esep {
  18931. dd.ReadMapElemKey()
  18932. }
  18933. mk = float32(dd.DecodeFloat(true))
  18934. if esep {
  18935. dd.ReadMapElemValue()
  18936. }
  18937. if dd.TryDecodeAsNil() {
  18938. if d.h.DeleteOnNilMapValue {
  18939. delete(v, mk)
  18940. } else {
  18941. v[mk] = 0
  18942. }
  18943. continue
  18944. }
  18945. mv = int8(dd.DecodeInt(8))
  18946. if v != nil {
  18947. v[mk] = mv
  18948. }
  18949. }
  18950. dd.ReadMapEnd()
  18951. return v, changed
  18952. }
  18953. func (d *Decoder) fastpathDecMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  18954. if rv.Kind() == reflect.Ptr {
  18955. vp := rv2i(rv).(*map[float32]int16)
  18956. if v, changed := fastpathTV.DecMapFloat32Int16V(*vp, true, d); changed {
  18957. *vp = v
  18958. }
  18959. return
  18960. }
  18961. fastpathTV.DecMapFloat32Int16V(rv2i(rv).(map[float32]int16), false, d)
  18962. }
  18963. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, d *Decoder) {
  18964. if v, changed := f.DecMapFloat32Int16V(*vp, true, d); changed {
  18965. *vp = v
  18966. }
  18967. }
  18968. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, canChange bool,
  18969. d *Decoder) (_ map[float32]int16, changed bool) {
  18970. dd, esep := d.d, d.hh.hasElemSeparators()
  18971. containerLen := dd.ReadMapStart()
  18972. if canChange && v == nil {
  18973. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  18974. v = make(map[float32]int16, xlen)
  18975. changed = true
  18976. }
  18977. if containerLen == 0 {
  18978. dd.ReadMapEnd()
  18979. return v, changed
  18980. }
  18981. var mk float32
  18982. var mv int16
  18983. hasLen := containerLen > 0
  18984. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18985. if esep {
  18986. dd.ReadMapElemKey()
  18987. }
  18988. mk = float32(dd.DecodeFloat(true))
  18989. if esep {
  18990. dd.ReadMapElemValue()
  18991. }
  18992. if dd.TryDecodeAsNil() {
  18993. if d.h.DeleteOnNilMapValue {
  18994. delete(v, mk)
  18995. } else {
  18996. v[mk] = 0
  18997. }
  18998. continue
  18999. }
  19000. mv = int16(dd.DecodeInt(16))
  19001. if v != nil {
  19002. v[mk] = mv
  19003. }
  19004. }
  19005. dd.ReadMapEnd()
  19006. return v, changed
  19007. }
  19008. func (d *Decoder) fastpathDecMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  19009. if rv.Kind() == reflect.Ptr {
  19010. vp := rv2i(rv).(*map[float32]int32)
  19011. if v, changed := fastpathTV.DecMapFloat32Int32V(*vp, true, d); changed {
  19012. *vp = v
  19013. }
  19014. return
  19015. }
  19016. fastpathTV.DecMapFloat32Int32V(rv2i(rv).(map[float32]int32), false, d)
  19017. }
  19018. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, d *Decoder) {
  19019. if v, changed := f.DecMapFloat32Int32V(*vp, true, d); changed {
  19020. *vp = v
  19021. }
  19022. }
  19023. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, canChange bool,
  19024. d *Decoder) (_ map[float32]int32, changed bool) {
  19025. dd, esep := d.d, d.hh.hasElemSeparators()
  19026. containerLen := dd.ReadMapStart()
  19027. if canChange && v == nil {
  19028. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  19029. v = make(map[float32]int32, xlen)
  19030. changed = true
  19031. }
  19032. if containerLen == 0 {
  19033. dd.ReadMapEnd()
  19034. return v, changed
  19035. }
  19036. var mk float32
  19037. var mv int32
  19038. hasLen := containerLen > 0
  19039. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19040. if esep {
  19041. dd.ReadMapElemKey()
  19042. }
  19043. mk = float32(dd.DecodeFloat(true))
  19044. if esep {
  19045. dd.ReadMapElemValue()
  19046. }
  19047. if dd.TryDecodeAsNil() {
  19048. if d.h.DeleteOnNilMapValue {
  19049. delete(v, mk)
  19050. } else {
  19051. v[mk] = 0
  19052. }
  19053. continue
  19054. }
  19055. mv = int32(dd.DecodeInt(32))
  19056. if v != nil {
  19057. v[mk] = mv
  19058. }
  19059. }
  19060. dd.ReadMapEnd()
  19061. return v, changed
  19062. }
  19063. func (d *Decoder) fastpathDecMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  19064. if rv.Kind() == reflect.Ptr {
  19065. vp := rv2i(rv).(*map[float32]int64)
  19066. if v, changed := fastpathTV.DecMapFloat32Int64V(*vp, true, d); changed {
  19067. *vp = v
  19068. }
  19069. return
  19070. }
  19071. fastpathTV.DecMapFloat32Int64V(rv2i(rv).(map[float32]int64), false, d)
  19072. }
  19073. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, d *Decoder) {
  19074. if v, changed := f.DecMapFloat32Int64V(*vp, true, d); changed {
  19075. *vp = v
  19076. }
  19077. }
  19078. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, canChange bool,
  19079. d *Decoder) (_ map[float32]int64, changed bool) {
  19080. dd, esep := d.d, d.hh.hasElemSeparators()
  19081. containerLen := dd.ReadMapStart()
  19082. if canChange && v == nil {
  19083. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19084. v = make(map[float32]int64, xlen)
  19085. changed = true
  19086. }
  19087. if containerLen == 0 {
  19088. dd.ReadMapEnd()
  19089. return v, changed
  19090. }
  19091. var mk float32
  19092. var mv int64
  19093. hasLen := containerLen > 0
  19094. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19095. if esep {
  19096. dd.ReadMapElemKey()
  19097. }
  19098. mk = float32(dd.DecodeFloat(true))
  19099. if esep {
  19100. dd.ReadMapElemValue()
  19101. }
  19102. if dd.TryDecodeAsNil() {
  19103. if d.h.DeleteOnNilMapValue {
  19104. delete(v, mk)
  19105. } else {
  19106. v[mk] = 0
  19107. }
  19108. continue
  19109. }
  19110. mv = dd.DecodeInt(64)
  19111. if v != nil {
  19112. v[mk] = mv
  19113. }
  19114. }
  19115. dd.ReadMapEnd()
  19116. return v, changed
  19117. }
  19118. func (d *Decoder) fastpathDecMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  19119. if rv.Kind() == reflect.Ptr {
  19120. vp := rv2i(rv).(*map[float32]float32)
  19121. if v, changed := fastpathTV.DecMapFloat32Float32V(*vp, true, d); changed {
  19122. *vp = v
  19123. }
  19124. return
  19125. }
  19126. fastpathTV.DecMapFloat32Float32V(rv2i(rv).(map[float32]float32), false, d)
  19127. }
  19128. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, d *Decoder) {
  19129. if v, changed := f.DecMapFloat32Float32V(*vp, true, d); changed {
  19130. *vp = v
  19131. }
  19132. }
  19133. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, canChange bool,
  19134. d *Decoder) (_ map[float32]float32, changed bool) {
  19135. dd, esep := d.d, d.hh.hasElemSeparators()
  19136. containerLen := dd.ReadMapStart()
  19137. if canChange && v == nil {
  19138. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  19139. v = make(map[float32]float32, xlen)
  19140. changed = true
  19141. }
  19142. if containerLen == 0 {
  19143. dd.ReadMapEnd()
  19144. return v, changed
  19145. }
  19146. var mk float32
  19147. var mv float32
  19148. hasLen := containerLen > 0
  19149. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19150. if esep {
  19151. dd.ReadMapElemKey()
  19152. }
  19153. mk = float32(dd.DecodeFloat(true))
  19154. if esep {
  19155. dd.ReadMapElemValue()
  19156. }
  19157. if dd.TryDecodeAsNil() {
  19158. if d.h.DeleteOnNilMapValue {
  19159. delete(v, mk)
  19160. } else {
  19161. v[mk] = 0
  19162. }
  19163. continue
  19164. }
  19165. mv = float32(dd.DecodeFloat(true))
  19166. if v != nil {
  19167. v[mk] = mv
  19168. }
  19169. }
  19170. dd.ReadMapEnd()
  19171. return v, changed
  19172. }
  19173. func (d *Decoder) fastpathDecMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  19174. if rv.Kind() == reflect.Ptr {
  19175. vp := rv2i(rv).(*map[float32]float64)
  19176. if v, changed := fastpathTV.DecMapFloat32Float64V(*vp, true, d); changed {
  19177. *vp = v
  19178. }
  19179. return
  19180. }
  19181. fastpathTV.DecMapFloat32Float64V(rv2i(rv).(map[float32]float64), false, d)
  19182. }
  19183. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, d *Decoder) {
  19184. if v, changed := f.DecMapFloat32Float64V(*vp, true, d); changed {
  19185. *vp = v
  19186. }
  19187. }
  19188. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, canChange bool,
  19189. d *Decoder) (_ map[float32]float64, changed bool) {
  19190. dd, esep := d.d, d.hh.hasElemSeparators()
  19191. containerLen := dd.ReadMapStart()
  19192. if canChange && v == nil {
  19193. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19194. v = make(map[float32]float64, xlen)
  19195. changed = true
  19196. }
  19197. if containerLen == 0 {
  19198. dd.ReadMapEnd()
  19199. return v, changed
  19200. }
  19201. var mk float32
  19202. var mv float64
  19203. hasLen := containerLen > 0
  19204. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19205. if esep {
  19206. dd.ReadMapElemKey()
  19207. }
  19208. mk = float32(dd.DecodeFloat(true))
  19209. if esep {
  19210. dd.ReadMapElemValue()
  19211. }
  19212. if dd.TryDecodeAsNil() {
  19213. if d.h.DeleteOnNilMapValue {
  19214. delete(v, mk)
  19215. } else {
  19216. v[mk] = 0
  19217. }
  19218. continue
  19219. }
  19220. mv = dd.DecodeFloat(false)
  19221. if v != nil {
  19222. v[mk] = mv
  19223. }
  19224. }
  19225. dd.ReadMapEnd()
  19226. return v, changed
  19227. }
  19228. func (d *Decoder) fastpathDecMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  19229. if rv.Kind() == reflect.Ptr {
  19230. vp := rv2i(rv).(*map[float32]bool)
  19231. if v, changed := fastpathTV.DecMapFloat32BoolV(*vp, true, d); changed {
  19232. *vp = v
  19233. }
  19234. return
  19235. }
  19236. fastpathTV.DecMapFloat32BoolV(rv2i(rv).(map[float32]bool), false, d)
  19237. }
  19238. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, d *Decoder) {
  19239. if v, changed := f.DecMapFloat32BoolV(*vp, true, d); changed {
  19240. *vp = v
  19241. }
  19242. }
  19243. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, canChange bool,
  19244. d *Decoder) (_ map[float32]bool, changed bool) {
  19245. dd, esep := d.d, d.hh.hasElemSeparators()
  19246. containerLen := dd.ReadMapStart()
  19247. if canChange && v == nil {
  19248. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  19249. v = make(map[float32]bool, xlen)
  19250. changed = true
  19251. }
  19252. if containerLen == 0 {
  19253. dd.ReadMapEnd()
  19254. return v, changed
  19255. }
  19256. var mk float32
  19257. var mv bool
  19258. hasLen := containerLen > 0
  19259. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19260. if esep {
  19261. dd.ReadMapElemKey()
  19262. }
  19263. mk = float32(dd.DecodeFloat(true))
  19264. if esep {
  19265. dd.ReadMapElemValue()
  19266. }
  19267. if dd.TryDecodeAsNil() {
  19268. if d.h.DeleteOnNilMapValue {
  19269. delete(v, mk)
  19270. } else {
  19271. v[mk] = false
  19272. }
  19273. continue
  19274. }
  19275. mv = dd.DecodeBool()
  19276. if v != nil {
  19277. v[mk] = mv
  19278. }
  19279. }
  19280. dd.ReadMapEnd()
  19281. return v, changed
  19282. }
  19283. func (d *Decoder) fastpathDecMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  19284. if rv.Kind() == reflect.Ptr {
  19285. vp := rv2i(rv).(*map[float64]interface{})
  19286. if v, changed := fastpathTV.DecMapFloat64IntfV(*vp, true, d); changed {
  19287. *vp = v
  19288. }
  19289. return
  19290. }
  19291. fastpathTV.DecMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), false, d)
  19292. }
  19293. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, d *Decoder) {
  19294. if v, changed := f.DecMapFloat64IntfV(*vp, true, d); changed {
  19295. *vp = v
  19296. }
  19297. }
  19298. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, canChange bool,
  19299. d *Decoder) (_ map[float64]interface{}, changed bool) {
  19300. dd, esep := d.d, d.hh.hasElemSeparators()
  19301. containerLen := dd.ReadMapStart()
  19302. if canChange && v == nil {
  19303. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19304. v = make(map[float64]interface{}, xlen)
  19305. changed = true
  19306. }
  19307. if containerLen == 0 {
  19308. dd.ReadMapEnd()
  19309. return v, changed
  19310. }
  19311. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  19312. var mk float64
  19313. var mv interface{}
  19314. hasLen := containerLen > 0
  19315. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19316. if esep {
  19317. dd.ReadMapElemKey()
  19318. }
  19319. mk = dd.DecodeFloat(false)
  19320. if esep {
  19321. dd.ReadMapElemValue()
  19322. }
  19323. if dd.TryDecodeAsNil() {
  19324. if d.h.DeleteOnNilMapValue {
  19325. delete(v, mk)
  19326. } else {
  19327. v[mk] = nil
  19328. }
  19329. continue
  19330. }
  19331. if mapGet {
  19332. mv = v[mk]
  19333. } else {
  19334. mv = nil
  19335. }
  19336. d.decode(&mv)
  19337. if v != nil {
  19338. v[mk] = mv
  19339. }
  19340. }
  19341. dd.ReadMapEnd()
  19342. return v, changed
  19343. }
  19344. func (d *Decoder) fastpathDecMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  19345. if rv.Kind() == reflect.Ptr {
  19346. vp := rv2i(rv).(*map[float64]string)
  19347. if v, changed := fastpathTV.DecMapFloat64StringV(*vp, true, d); changed {
  19348. *vp = v
  19349. }
  19350. return
  19351. }
  19352. fastpathTV.DecMapFloat64StringV(rv2i(rv).(map[float64]string), false, d)
  19353. }
  19354. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, d *Decoder) {
  19355. if v, changed := f.DecMapFloat64StringV(*vp, true, d); changed {
  19356. *vp = v
  19357. }
  19358. }
  19359. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, canChange bool,
  19360. d *Decoder) (_ map[float64]string, changed bool) {
  19361. dd, esep := d.d, d.hh.hasElemSeparators()
  19362. containerLen := dd.ReadMapStart()
  19363. if canChange && v == nil {
  19364. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19365. v = make(map[float64]string, xlen)
  19366. changed = true
  19367. }
  19368. if containerLen == 0 {
  19369. dd.ReadMapEnd()
  19370. return v, changed
  19371. }
  19372. var mk float64
  19373. var mv string
  19374. hasLen := containerLen > 0
  19375. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19376. if esep {
  19377. dd.ReadMapElemKey()
  19378. }
  19379. mk = dd.DecodeFloat(false)
  19380. if esep {
  19381. dd.ReadMapElemValue()
  19382. }
  19383. if dd.TryDecodeAsNil() {
  19384. if d.h.DeleteOnNilMapValue {
  19385. delete(v, mk)
  19386. } else {
  19387. v[mk] = ""
  19388. }
  19389. continue
  19390. }
  19391. mv = dd.DecodeString()
  19392. if v != nil {
  19393. v[mk] = mv
  19394. }
  19395. }
  19396. dd.ReadMapEnd()
  19397. return v, changed
  19398. }
  19399. func (d *Decoder) fastpathDecMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  19400. if rv.Kind() == reflect.Ptr {
  19401. vp := rv2i(rv).(*map[float64]uint)
  19402. if v, changed := fastpathTV.DecMapFloat64UintV(*vp, true, d); changed {
  19403. *vp = v
  19404. }
  19405. return
  19406. }
  19407. fastpathTV.DecMapFloat64UintV(rv2i(rv).(map[float64]uint), false, d)
  19408. }
  19409. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, d *Decoder) {
  19410. if v, changed := f.DecMapFloat64UintV(*vp, true, d); changed {
  19411. *vp = v
  19412. }
  19413. }
  19414. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, canChange bool,
  19415. d *Decoder) (_ map[float64]uint, changed bool) {
  19416. dd, esep := d.d, d.hh.hasElemSeparators()
  19417. containerLen := dd.ReadMapStart()
  19418. if canChange && v == nil {
  19419. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19420. v = make(map[float64]uint, xlen)
  19421. changed = true
  19422. }
  19423. if containerLen == 0 {
  19424. dd.ReadMapEnd()
  19425. return v, changed
  19426. }
  19427. var mk float64
  19428. var mv uint
  19429. hasLen := containerLen > 0
  19430. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19431. if esep {
  19432. dd.ReadMapElemKey()
  19433. }
  19434. mk = dd.DecodeFloat(false)
  19435. if esep {
  19436. dd.ReadMapElemValue()
  19437. }
  19438. if dd.TryDecodeAsNil() {
  19439. if d.h.DeleteOnNilMapValue {
  19440. delete(v, mk)
  19441. } else {
  19442. v[mk] = 0
  19443. }
  19444. continue
  19445. }
  19446. mv = uint(dd.DecodeUint(uintBitsize))
  19447. if v != nil {
  19448. v[mk] = mv
  19449. }
  19450. }
  19451. dd.ReadMapEnd()
  19452. return v, changed
  19453. }
  19454. func (d *Decoder) fastpathDecMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  19455. if rv.Kind() == reflect.Ptr {
  19456. vp := rv2i(rv).(*map[float64]uint8)
  19457. if v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, true, d); changed {
  19458. *vp = v
  19459. }
  19460. return
  19461. }
  19462. fastpathTV.DecMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), false, d)
  19463. }
  19464. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, d *Decoder) {
  19465. if v, changed := f.DecMapFloat64Uint8V(*vp, true, d); changed {
  19466. *vp = v
  19467. }
  19468. }
  19469. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, canChange bool,
  19470. d *Decoder) (_ map[float64]uint8, changed bool) {
  19471. dd, esep := d.d, d.hh.hasElemSeparators()
  19472. containerLen := dd.ReadMapStart()
  19473. if canChange && v == nil {
  19474. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  19475. v = make(map[float64]uint8, xlen)
  19476. changed = true
  19477. }
  19478. if containerLen == 0 {
  19479. dd.ReadMapEnd()
  19480. return v, changed
  19481. }
  19482. var mk float64
  19483. var mv uint8
  19484. hasLen := containerLen > 0
  19485. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19486. if esep {
  19487. dd.ReadMapElemKey()
  19488. }
  19489. mk = dd.DecodeFloat(false)
  19490. if esep {
  19491. dd.ReadMapElemValue()
  19492. }
  19493. if dd.TryDecodeAsNil() {
  19494. if d.h.DeleteOnNilMapValue {
  19495. delete(v, mk)
  19496. } else {
  19497. v[mk] = 0
  19498. }
  19499. continue
  19500. }
  19501. mv = uint8(dd.DecodeUint(8))
  19502. if v != nil {
  19503. v[mk] = mv
  19504. }
  19505. }
  19506. dd.ReadMapEnd()
  19507. return v, changed
  19508. }
  19509. func (d *Decoder) fastpathDecMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  19510. if rv.Kind() == reflect.Ptr {
  19511. vp := rv2i(rv).(*map[float64]uint16)
  19512. if v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, true, d); changed {
  19513. *vp = v
  19514. }
  19515. return
  19516. }
  19517. fastpathTV.DecMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), false, d)
  19518. }
  19519. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, d *Decoder) {
  19520. if v, changed := f.DecMapFloat64Uint16V(*vp, true, d); changed {
  19521. *vp = v
  19522. }
  19523. }
  19524. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, canChange bool,
  19525. d *Decoder) (_ map[float64]uint16, changed bool) {
  19526. dd, esep := d.d, d.hh.hasElemSeparators()
  19527. containerLen := dd.ReadMapStart()
  19528. if canChange && v == nil {
  19529. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  19530. v = make(map[float64]uint16, xlen)
  19531. changed = true
  19532. }
  19533. if containerLen == 0 {
  19534. dd.ReadMapEnd()
  19535. return v, changed
  19536. }
  19537. var mk float64
  19538. var mv uint16
  19539. hasLen := containerLen > 0
  19540. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19541. if esep {
  19542. dd.ReadMapElemKey()
  19543. }
  19544. mk = dd.DecodeFloat(false)
  19545. if esep {
  19546. dd.ReadMapElemValue()
  19547. }
  19548. if dd.TryDecodeAsNil() {
  19549. if d.h.DeleteOnNilMapValue {
  19550. delete(v, mk)
  19551. } else {
  19552. v[mk] = 0
  19553. }
  19554. continue
  19555. }
  19556. mv = uint16(dd.DecodeUint(16))
  19557. if v != nil {
  19558. v[mk] = mv
  19559. }
  19560. }
  19561. dd.ReadMapEnd()
  19562. return v, changed
  19563. }
  19564. func (d *Decoder) fastpathDecMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  19565. if rv.Kind() == reflect.Ptr {
  19566. vp := rv2i(rv).(*map[float64]uint32)
  19567. if v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, true, d); changed {
  19568. *vp = v
  19569. }
  19570. return
  19571. }
  19572. fastpathTV.DecMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), false, d)
  19573. }
  19574. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, d *Decoder) {
  19575. if v, changed := f.DecMapFloat64Uint32V(*vp, true, d); changed {
  19576. *vp = v
  19577. }
  19578. }
  19579. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, canChange bool,
  19580. d *Decoder) (_ map[float64]uint32, changed bool) {
  19581. dd, esep := d.d, d.hh.hasElemSeparators()
  19582. containerLen := dd.ReadMapStart()
  19583. if canChange && v == nil {
  19584. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19585. v = make(map[float64]uint32, xlen)
  19586. changed = true
  19587. }
  19588. if containerLen == 0 {
  19589. dd.ReadMapEnd()
  19590. return v, changed
  19591. }
  19592. var mk float64
  19593. var mv uint32
  19594. hasLen := containerLen > 0
  19595. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19596. if esep {
  19597. dd.ReadMapElemKey()
  19598. }
  19599. mk = dd.DecodeFloat(false)
  19600. if esep {
  19601. dd.ReadMapElemValue()
  19602. }
  19603. if dd.TryDecodeAsNil() {
  19604. if d.h.DeleteOnNilMapValue {
  19605. delete(v, mk)
  19606. } else {
  19607. v[mk] = 0
  19608. }
  19609. continue
  19610. }
  19611. mv = uint32(dd.DecodeUint(32))
  19612. if v != nil {
  19613. v[mk] = mv
  19614. }
  19615. }
  19616. dd.ReadMapEnd()
  19617. return v, changed
  19618. }
  19619. func (d *Decoder) fastpathDecMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  19620. if rv.Kind() == reflect.Ptr {
  19621. vp := rv2i(rv).(*map[float64]uint64)
  19622. if v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, true, d); changed {
  19623. *vp = v
  19624. }
  19625. return
  19626. }
  19627. fastpathTV.DecMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), false, d)
  19628. }
  19629. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, d *Decoder) {
  19630. if v, changed := f.DecMapFloat64Uint64V(*vp, true, d); changed {
  19631. *vp = v
  19632. }
  19633. }
  19634. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, canChange bool,
  19635. d *Decoder) (_ map[float64]uint64, changed bool) {
  19636. dd, esep := d.d, d.hh.hasElemSeparators()
  19637. containerLen := dd.ReadMapStart()
  19638. if canChange && v == nil {
  19639. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19640. v = make(map[float64]uint64, xlen)
  19641. changed = true
  19642. }
  19643. if containerLen == 0 {
  19644. dd.ReadMapEnd()
  19645. return v, changed
  19646. }
  19647. var mk float64
  19648. var mv uint64
  19649. hasLen := containerLen > 0
  19650. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19651. if esep {
  19652. dd.ReadMapElemKey()
  19653. }
  19654. mk = dd.DecodeFloat(false)
  19655. if esep {
  19656. dd.ReadMapElemValue()
  19657. }
  19658. if dd.TryDecodeAsNil() {
  19659. if d.h.DeleteOnNilMapValue {
  19660. delete(v, mk)
  19661. } else {
  19662. v[mk] = 0
  19663. }
  19664. continue
  19665. }
  19666. mv = dd.DecodeUint(64)
  19667. if v != nil {
  19668. v[mk] = mv
  19669. }
  19670. }
  19671. dd.ReadMapEnd()
  19672. return v, changed
  19673. }
  19674. func (d *Decoder) fastpathDecMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  19675. if rv.Kind() == reflect.Ptr {
  19676. vp := rv2i(rv).(*map[float64]uintptr)
  19677. if v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, true, d); changed {
  19678. *vp = v
  19679. }
  19680. return
  19681. }
  19682. fastpathTV.DecMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), false, d)
  19683. }
  19684. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, d *Decoder) {
  19685. if v, changed := f.DecMapFloat64UintptrV(*vp, true, d); changed {
  19686. *vp = v
  19687. }
  19688. }
  19689. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, canChange bool,
  19690. d *Decoder) (_ map[float64]uintptr, changed bool) {
  19691. dd, esep := d.d, d.hh.hasElemSeparators()
  19692. containerLen := dd.ReadMapStart()
  19693. if canChange && v == nil {
  19694. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19695. v = make(map[float64]uintptr, xlen)
  19696. changed = true
  19697. }
  19698. if containerLen == 0 {
  19699. dd.ReadMapEnd()
  19700. return v, changed
  19701. }
  19702. var mk float64
  19703. var mv uintptr
  19704. hasLen := containerLen > 0
  19705. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19706. if esep {
  19707. dd.ReadMapElemKey()
  19708. }
  19709. mk = dd.DecodeFloat(false)
  19710. if esep {
  19711. dd.ReadMapElemValue()
  19712. }
  19713. if dd.TryDecodeAsNil() {
  19714. if d.h.DeleteOnNilMapValue {
  19715. delete(v, mk)
  19716. } else {
  19717. v[mk] = 0
  19718. }
  19719. continue
  19720. }
  19721. mv = uintptr(dd.DecodeUint(uintBitsize))
  19722. if v != nil {
  19723. v[mk] = mv
  19724. }
  19725. }
  19726. dd.ReadMapEnd()
  19727. return v, changed
  19728. }
  19729. func (d *Decoder) fastpathDecMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  19730. if rv.Kind() == reflect.Ptr {
  19731. vp := rv2i(rv).(*map[float64]int)
  19732. if v, changed := fastpathTV.DecMapFloat64IntV(*vp, true, d); changed {
  19733. *vp = v
  19734. }
  19735. return
  19736. }
  19737. fastpathTV.DecMapFloat64IntV(rv2i(rv).(map[float64]int), false, d)
  19738. }
  19739. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, d *Decoder) {
  19740. if v, changed := f.DecMapFloat64IntV(*vp, true, d); changed {
  19741. *vp = v
  19742. }
  19743. }
  19744. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, canChange bool,
  19745. d *Decoder) (_ map[float64]int, changed bool) {
  19746. dd, esep := d.d, d.hh.hasElemSeparators()
  19747. containerLen := dd.ReadMapStart()
  19748. if canChange && v == nil {
  19749. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19750. v = make(map[float64]int, xlen)
  19751. changed = true
  19752. }
  19753. if containerLen == 0 {
  19754. dd.ReadMapEnd()
  19755. return v, changed
  19756. }
  19757. var mk float64
  19758. var mv int
  19759. hasLen := containerLen > 0
  19760. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19761. if esep {
  19762. dd.ReadMapElemKey()
  19763. }
  19764. mk = dd.DecodeFloat(false)
  19765. if esep {
  19766. dd.ReadMapElemValue()
  19767. }
  19768. if dd.TryDecodeAsNil() {
  19769. if d.h.DeleteOnNilMapValue {
  19770. delete(v, mk)
  19771. } else {
  19772. v[mk] = 0
  19773. }
  19774. continue
  19775. }
  19776. mv = int(dd.DecodeInt(intBitsize))
  19777. if v != nil {
  19778. v[mk] = mv
  19779. }
  19780. }
  19781. dd.ReadMapEnd()
  19782. return v, changed
  19783. }
  19784. func (d *Decoder) fastpathDecMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  19785. if rv.Kind() == reflect.Ptr {
  19786. vp := rv2i(rv).(*map[float64]int8)
  19787. if v, changed := fastpathTV.DecMapFloat64Int8V(*vp, true, d); changed {
  19788. *vp = v
  19789. }
  19790. return
  19791. }
  19792. fastpathTV.DecMapFloat64Int8V(rv2i(rv).(map[float64]int8), false, d)
  19793. }
  19794. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, d *Decoder) {
  19795. if v, changed := f.DecMapFloat64Int8V(*vp, true, d); changed {
  19796. *vp = v
  19797. }
  19798. }
  19799. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, canChange bool,
  19800. d *Decoder) (_ map[float64]int8, changed bool) {
  19801. dd, esep := d.d, d.hh.hasElemSeparators()
  19802. containerLen := dd.ReadMapStart()
  19803. if canChange && v == nil {
  19804. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  19805. v = make(map[float64]int8, xlen)
  19806. changed = true
  19807. }
  19808. if containerLen == 0 {
  19809. dd.ReadMapEnd()
  19810. return v, changed
  19811. }
  19812. var mk float64
  19813. var mv int8
  19814. hasLen := containerLen > 0
  19815. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19816. if esep {
  19817. dd.ReadMapElemKey()
  19818. }
  19819. mk = dd.DecodeFloat(false)
  19820. if esep {
  19821. dd.ReadMapElemValue()
  19822. }
  19823. if dd.TryDecodeAsNil() {
  19824. if d.h.DeleteOnNilMapValue {
  19825. delete(v, mk)
  19826. } else {
  19827. v[mk] = 0
  19828. }
  19829. continue
  19830. }
  19831. mv = int8(dd.DecodeInt(8))
  19832. if v != nil {
  19833. v[mk] = mv
  19834. }
  19835. }
  19836. dd.ReadMapEnd()
  19837. return v, changed
  19838. }
  19839. func (d *Decoder) fastpathDecMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  19840. if rv.Kind() == reflect.Ptr {
  19841. vp := rv2i(rv).(*map[float64]int16)
  19842. if v, changed := fastpathTV.DecMapFloat64Int16V(*vp, true, d); changed {
  19843. *vp = v
  19844. }
  19845. return
  19846. }
  19847. fastpathTV.DecMapFloat64Int16V(rv2i(rv).(map[float64]int16), false, d)
  19848. }
  19849. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, d *Decoder) {
  19850. if v, changed := f.DecMapFloat64Int16V(*vp, true, d); changed {
  19851. *vp = v
  19852. }
  19853. }
  19854. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, canChange bool,
  19855. d *Decoder) (_ map[float64]int16, changed bool) {
  19856. dd, esep := d.d, d.hh.hasElemSeparators()
  19857. containerLen := dd.ReadMapStart()
  19858. if canChange && v == nil {
  19859. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  19860. v = make(map[float64]int16, xlen)
  19861. changed = true
  19862. }
  19863. if containerLen == 0 {
  19864. dd.ReadMapEnd()
  19865. return v, changed
  19866. }
  19867. var mk float64
  19868. var mv int16
  19869. hasLen := containerLen > 0
  19870. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19871. if esep {
  19872. dd.ReadMapElemKey()
  19873. }
  19874. mk = dd.DecodeFloat(false)
  19875. if esep {
  19876. dd.ReadMapElemValue()
  19877. }
  19878. if dd.TryDecodeAsNil() {
  19879. if d.h.DeleteOnNilMapValue {
  19880. delete(v, mk)
  19881. } else {
  19882. v[mk] = 0
  19883. }
  19884. continue
  19885. }
  19886. mv = int16(dd.DecodeInt(16))
  19887. if v != nil {
  19888. v[mk] = mv
  19889. }
  19890. }
  19891. dd.ReadMapEnd()
  19892. return v, changed
  19893. }
  19894. func (d *Decoder) fastpathDecMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  19895. if rv.Kind() == reflect.Ptr {
  19896. vp := rv2i(rv).(*map[float64]int32)
  19897. if v, changed := fastpathTV.DecMapFloat64Int32V(*vp, true, d); changed {
  19898. *vp = v
  19899. }
  19900. return
  19901. }
  19902. fastpathTV.DecMapFloat64Int32V(rv2i(rv).(map[float64]int32), false, d)
  19903. }
  19904. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, d *Decoder) {
  19905. if v, changed := f.DecMapFloat64Int32V(*vp, true, d); changed {
  19906. *vp = v
  19907. }
  19908. }
  19909. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, canChange bool,
  19910. d *Decoder) (_ map[float64]int32, changed bool) {
  19911. dd, esep := d.d, d.hh.hasElemSeparators()
  19912. containerLen := dd.ReadMapStart()
  19913. if canChange && v == nil {
  19914. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19915. v = make(map[float64]int32, xlen)
  19916. changed = true
  19917. }
  19918. if containerLen == 0 {
  19919. dd.ReadMapEnd()
  19920. return v, changed
  19921. }
  19922. var mk float64
  19923. var mv int32
  19924. hasLen := containerLen > 0
  19925. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19926. if esep {
  19927. dd.ReadMapElemKey()
  19928. }
  19929. mk = dd.DecodeFloat(false)
  19930. if esep {
  19931. dd.ReadMapElemValue()
  19932. }
  19933. if dd.TryDecodeAsNil() {
  19934. if d.h.DeleteOnNilMapValue {
  19935. delete(v, mk)
  19936. } else {
  19937. v[mk] = 0
  19938. }
  19939. continue
  19940. }
  19941. mv = int32(dd.DecodeInt(32))
  19942. if v != nil {
  19943. v[mk] = mv
  19944. }
  19945. }
  19946. dd.ReadMapEnd()
  19947. return v, changed
  19948. }
  19949. func (d *Decoder) fastpathDecMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  19950. if rv.Kind() == reflect.Ptr {
  19951. vp := rv2i(rv).(*map[float64]int64)
  19952. if v, changed := fastpathTV.DecMapFloat64Int64V(*vp, true, d); changed {
  19953. *vp = v
  19954. }
  19955. return
  19956. }
  19957. fastpathTV.DecMapFloat64Int64V(rv2i(rv).(map[float64]int64), false, d)
  19958. }
  19959. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, d *Decoder) {
  19960. if v, changed := f.DecMapFloat64Int64V(*vp, true, d); changed {
  19961. *vp = v
  19962. }
  19963. }
  19964. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, canChange bool,
  19965. d *Decoder) (_ map[float64]int64, changed bool) {
  19966. dd, esep := d.d, d.hh.hasElemSeparators()
  19967. containerLen := dd.ReadMapStart()
  19968. if canChange && v == nil {
  19969. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19970. v = make(map[float64]int64, xlen)
  19971. changed = true
  19972. }
  19973. if containerLen == 0 {
  19974. dd.ReadMapEnd()
  19975. return v, changed
  19976. }
  19977. var mk float64
  19978. var mv int64
  19979. hasLen := containerLen > 0
  19980. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19981. if esep {
  19982. dd.ReadMapElemKey()
  19983. }
  19984. mk = dd.DecodeFloat(false)
  19985. if esep {
  19986. dd.ReadMapElemValue()
  19987. }
  19988. if dd.TryDecodeAsNil() {
  19989. if d.h.DeleteOnNilMapValue {
  19990. delete(v, mk)
  19991. } else {
  19992. v[mk] = 0
  19993. }
  19994. continue
  19995. }
  19996. mv = dd.DecodeInt(64)
  19997. if v != nil {
  19998. v[mk] = mv
  19999. }
  20000. }
  20001. dd.ReadMapEnd()
  20002. return v, changed
  20003. }
  20004. func (d *Decoder) fastpathDecMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  20005. if rv.Kind() == reflect.Ptr {
  20006. vp := rv2i(rv).(*map[float64]float32)
  20007. if v, changed := fastpathTV.DecMapFloat64Float32V(*vp, true, d); changed {
  20008. *vp = v
  20009. }
  20010. return
  20011. }
  20012. fastpathTV.DecMapFloat64Float32V(rv2i(rv).(map[float64]float32), false, d)
  20013. }
  20014. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, d *Decoder) {
  20015. if v, changed := f.DecMapFloat64Float32V(*vp, true, d); changed {
  20016. *vp = v
  20017. }
  20018. }
  20019. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, canChange bool,
  20020. d *Decoder) (_ map[float64]float32, changed bool) {
  20021. dd, esep := d.d, d.hh.hasElemSeparators()
  20022. containerLen := dd.ReadMapStart()
  20023. if canChange && v == nil {
  20024. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20025. v = make(map[float64]float32, xlen)
  20026. changed = true
  20027. }
  20028. if containerLen == 0 {
  20029. dd.ReadMapEnd()
  20030. return v, changed
  20031. }
  20032. var mk float64
  20033. var mv float32
  20034. hasLen := containerLen > 0
  20035. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20036. if esep {
  20037. dd.ReadMapElemKey()
  20038. }
  20039. mk = dd.DecodeFloat(false)
  20040. if esep {
  20041. dd.ReadMapElemValue()
  20042. }
  20043. if dd.TryDecodeAsNil() {
  20044. if d.h.DeleteOnNilMapValue {
  20045. delete(v, mk)
  20046. } else {
  20047. v[mk] = 0
  20048. }
  20049. continue
  20050. }
  20051. mv = float32(dd.DecodeFloat(true))
  20052. if v != nil {
  20053. v[mk] = mv
  20054. }
  20055. }
  20056. dd.ReadMapEnd()
  20057. return v, changed
  20058. }
  20059. func (d *Decoder) fastpathDecMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  20060. if rv.Kind() == reflect.Ptr {
  20061. vp := rv2i(rv).(*map[float64]float64)
  20062. if v, changed := fastpathTV.DecMapFloat64Float64V(*vp, true, d); changed {
  20063. *vp = v
  20064. }
  20065. return
  20066. }
  20067. fastpathTV.DecMapFloat64Float64V(rv2i(rv).(map[float64]float64), false, d)
  20068. }
  20069. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, d *Decoder) {
  20070. if v, changed := f.DecMapFloat64Float64V(*vp, true, d); changed {
  20071. *vp = v
  20072. }
  20073. }
  20074. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, canChange bool,
  20075. d *Decoder) (_ map[float64]float64, changed bool) {
  20076. dd, esep := d.d, d.hh.hasElemSeparators()
  20077. containerLen := dd.ReadMapStart()
  20078. if canChange && v == nil {
  20079. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20080. v = make(map[float64]float64, xlen)
  20081. changed = true
  20082. }
  20083. if containerLen == 0 {
  20084. dd.ReadMapEnd()
  20085. return v, changed
  20086. }
  20087. var mk float64
  20088. var mv float64
  20089. hasLen := containerLen > 0
  20090. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20091. if esep {
  20092. dd.ReadMapElemKey()
  20093. }
  20094. mk = dd.DecodeFloat(false)
  20095. if esep {
  20096. dd.ReadMapElemValue()
  20097. }
  20098. if dd.TryDecodeAsNil() {
  20099. if d.h.DeleteOnNilMapValue {
  20100. delete(v, mk)
  20101. } else {
  20102. v[mk] = 0
  20103. }
  20104. continue
  20105. }
  20106. mv = dd.DecodeFloat(false)
  20107. if v != nil {
  20108. v[mk] = mv
  20109. }
  20110. }
  20111. dd.ReadMapEnd()
  20112. return v, changed
  20113. }
  20114. func (d *Decoder) fastpathDecMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  20115. if rv.Kind() == reflect.Ptr {
  20116. vp := rv2i(rv).(*map[float64]bool)
  20117. if v, changed := fastpathTV.DecMapFloat64BoolV(*vp, true, d); changed {
  20118. *vp = v
  20119. }
  20120. return
  20121. }
  20122. fastpathTV.DecMapFloat64BoolV(rv2i(rv).(map[float64]bool), false, d)
  20123. }
  20124. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, d *Decoder) {
  20125. if v, changed := f.DecMapFloat64BoolV(*vp, true, d); changed {
  20126. *vp = v
  20127. }
  20128. }
  20129. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, canChange bool,
  20130. d *Decoder) (_ map[float64]bool, changed bool) {
  20131. dd, esep := d.d, d.hh.hasElemSeparators()
  20132. containerLen := dd.ReadMapStart()
  20133. if canChange && v == nil {
  20134. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20135. v = make(map[float64]bool, xlen)
  20136. changed = true
  20137. }
  20138. if containerLen == 0 {
  20139. dd.ReadMapEnd()
  20140. return v, changed
  20141. }
  20142. var mk float64
  20143. var mv bool
  20144. hasLen := containerLen > 0
  20145. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20146. if esep {
  20147. dd.ReadMapElemKey()
  20148. }
  20149. mk = dd.DecodeFloat(false)
  20150. if esep {
  20151. dd.ReadMapElemValue()
  20152. }
  20153. if dd.TryDecodeAsNil() {
  20154. if d.h.DeleteOnNilMapValue {
  20155. delete(v, mk)
  20156. } else {
  20157. v[mk] = false
  20158. }
  20159. continue
  20160. }
  20161. mv = dd.DecodeBool()
  20162. if v != nil {
  20163. v[mk] = mv
  20164. }
  20165. }
  20166. dd.ReadMapEnd()
  20167. return v, changed
  20168. }
  20169. func (d *Decoder) fastpathDecMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  20170. if rv.Kind() == reflect.Ptr {
  20171. vp := rv2i(rv).(*map[uint]interface{})
  20172. if v, changed := fastpathTV.DecMapUintIntfV(*vp, true, d); changed {
  20173. *vp = v
  20174. }
  20175. return
  20176. }
  20177. fastpathTV.DecMapUintIntfV(rv2i(rv).(map[uint]interface{}), false, d)
  20178. }
  20179. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, d *Decoder) {
  20180. if v, changed := f.DecMapUintIntfV(*vp, true, d); changed {
  20181. *vp = v
  20182. }
  20183. }
  20184. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, canChange bool,
  20185. d *Decoder) (_ map[uint]interface{}, changed bool) {
  20186. dd, esep := d.d, d.hh.hasElemSeparators()
  20187. containerLen := dd.ReadMapStart()
  20188. if canChange && v == nil {
  20189. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20190. v = make(map[uint]interface{}, xlen)
  20191. changed = true
  20192. }
  20193. if containerLen == 0 {
  20194. dd.ReadMapEnd()
  20195. return v, changed
  20196. }
  20197. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  20198. var mk uint
  20199. var mv interface{}
  20200. hasLen := containerLen > 0
  20201. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20202. if esep {
  20203. dd.ReadMapElemKey()
  20204. }
  20205. mk = uint(dd.DecodeUint(uintBitsize))
  20206. if esep {
  20207. dd.ReadMapElemValue()
  20208. }
  20209. if dd.TryDecodeAsNil() {
  20210. if d.h.DeleteOnNilMapValue {
  20211. delete(v, mk)
  20212. } else {
  20213. v[mk] = nil
  20214. }
  20215. continue
  20216. }
  20217. if mapGet {
  20218. mv = v[mk]
  20219. } else {
  20220. mv = nil
  20221. }
  20222. d.decode(&mv)
  20223. if v != nil {
  20224. v[mk] = mv
  20225. }
  20226. }
  20227. dd.ReadMapEnd()
  20228. return v, changed
  20229. }
  20230. func (d *Decoder) fastpathDecMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  20231. if rv.Kind() == reflect.Ptr {
  20232. vp := rv2i(rv).(*map[uint]string)
  20233. if v, changed := fastpathTV.DecMapUintStringV(*vp, true, d); changed {
  20234. *vp = v
  20235. }
  20236. return
  20237. }
  20238. fastpathTV.DecMapUintStringV(rv2i(rv).(map[uint]string), false, d)
  20239. }
  20240. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, d *Decoder) {
  20241. if v, changed := f.DecMapUintStringV(*vp, true, d); changed {
  20242. *vp = v
  20243. }
  20244. }
  20245. func (_ fastpathT) DecMapUintStringV(v map[uint]string, canChange bool,
  20246. d *Decoder) (_ map[uint]string, changed bool) {
  20247. dd, esep := d.d, d.hh.hasElemSeparators()
  20248. containerLen := dd.ReadMapStart()
  20249. if canChange && v == nil {
  20250. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20251. v = make(map[uint]string, xlen)
  20252. changed = true
  20253. }
  20254. if containerLen == 0 {
  20255. dd.ReadMapEnd()
  20256. return v, changed
  20257. }
  20258. var mk uint
  20259. var mv string
  20260. hasLen := containerLen > 0
  20261. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20262. if esep {
  20263. dd.ReadMapElemKey()
  20264. }
  20265. mk = uint(dd.DecodeUint(uintBitsize))
  20266. if esep {
  20267. dd.ReadMapElemValue()
  20268. }
  20269. if dd.TryDecodeAsNil() {
  20270. if d.h.DeleteOnNilMapValue {
  20271. delete(v, mk)
  20272. } else {
  20273. v[mk] = ""
  20274. }
  20275. continue
  20276. }
  20277. mv = dd.DecodeString()
  20278. if v != nil {
  20279. v[mk] = mv
  20280. }
  20281. }
  20282. dd.ReadMapEnd()
  20283. return v, changed
  20284. }
  20285. func (d *Decoder) fastpathDecMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  20286. if rv.Kind() == reflect.Ptr {
  20287. vp := rv2i(rv).(*map[uint]uint)
  20288. if v, changed := fastpathTV.DecMapUintUintV(*vp, true, d); changed {
  20289. *vp = v
  20290. }
  20291. return
  20292. }
  20293. fastpathTV.DecMapUintUintV(rv2i(rv).(map[uint]uint), false, d)
  20294. }
  20295. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, d *Decoder) {
  20296. if v, changed := f.DecMapUintUintV(*vp, true, d); changed {
  20297. *vp = v
  20298. }
  20299. }
  20300. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, canChange bool,
  20301. d *Decoder) (_ map[uint]uint, changed bool) {
  20302. dd, esep := d.d, d.hh.hasElemSeparators()
  20303. containerLen := dd.ReadMapStart()
  20304. if canChange && v == nil {
  20305. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20306. v = make(map[uint]uint, xlen)
  20307. changed = true
  20308. }
  20309. if containerLen == 0 {
  20310. dd.ReadMapEnd()
  20311. return v, changed
  20312. }
  20313. var mk uint
  20314. var mv uint
  20315. hasLen := containerLen > 0
  20316. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20317. if esep {
  20318. dd.ReadMapElemKey()
  20319. }
  20320. mk = uint(dd.DecodeUint(uintBitsize))
  20321. if esep {
  20322. dd.ReadMapElemValue()
  20323. }
  20324. if dd.TryDecodeAsNil() {
  20325. if d.h.DeleteOnNilMapValue {
  20326. delete(v, mk)
  20327. } else {
  20328. v[mk] = 0
  20329. }
  20330. continue
  20331. }
  20332. mv = uint(dd.DecodeUint(uintBitsize))
  20333. if v != nil {
  20334. v[mk] = mv
  20335. }
  20336. }
  20337. dd.ReadMapEnd()
  20338. return v, changed
  20339. }
  20340. func (d *Decoder) fastpathDecMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  20341. if rv.Kind() == reflect.Ptr {
  20342. vp := rv2i(rv).(*map[uint]uint8)
  20343. if v, changed := fastpathTV.DecMapUintUint8V(*vp, true, d); changed {
  20344. *vp = v
  20345. }
  20346. return
  20347. }
  20348. fastpathTV.DecMapUintUint8V(rv2i(rv).(map[uint]uint8), false, d)
  20349. }
  20350. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, d *Decoder) {
  20351. if v, changed := f.DecMapUintUint8V(*vp, true, d); changed {
  20352. *vp = v
  20353. }
  20354. }
  20355. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, canChange bool,
  20356. d *Decoder) (_ map[uint]uint8, changed bool) {
  20357. dd, esep := d.d, d.hh.hasElemSeparators()
  20358. containerLen := dd.ReadMapStart()
  20359. if canChange && v == nil {
  20360. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20361. v = make(map[uint]uint8, xlen)
  20362. changed = true
  20363. }
  20364. if containerLen == 0 {
  20365. dd.ReadMapEnd()
  20366. return v, changed
  20367. }
  20368. var mk uint
  20369. var mv uint8
  20370. hasLen := containerLen > 0
  20371. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20372. if esep {
  20373. dd.ReadMapElemKey()
  20374. }
  20375. mk = uint(dd.DecodeUint(uintBitsize))
  20376. if esep {
  20377. dd.ReadMapElemValue()
  20378. }
  20379. if dd.TryDecodeAsNil() {
  20380. if d.h.DeleteOnNilMapValue {
  20381. delete(v, mk)
  20382. } else {
  20383. v[mk] = 0
  20384. }
  20385. continue
  20386. }
  20387. mv = uint8(dd.DecodeUint(8))
  20388. if v != nil {
  20389. v[mk] = mv
  20390. }
  20391. }
  20392. dd.ReadMapEnd()
  20393. return v, changed
  20394. }
  20395. func (d *Decoder) fastpathDecMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  20396. if rv.Kind() == reflect.Ptr {
  20397. vp := rv2i(rv).(*map[uint]uint16)
  20398. if v, changed := fastpathTV.DecMapUintUint16V(*vp, true, d); changed {
  20399. *vp = v
  20400. }
  20401. return
  20402. }
  20403. fastpathTV.DecMapUintUint16V(rv2i(rv).(map[uint]uint16), false, d)
  20404. }
  20405. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, d *Decoder) {
  20406. if v, changed := f.DecMapUintUint16V(*vp, true, d); changed {
  20407. *vp = v
  20408. }
  20409. }
  20410. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, canChange bool,
  20411. d *Decoder) (_ map[uint]uint16, changed bool) {
  20412. dd, esep := d.d, d.hh.hasElemSeparators()
  20413. containerLen := dd.ReadMapStart()
  20414. if canChange && v == nil {
  20415. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  20416. v = make(map[uint]uint16, xlen)
  20417. changed = true
  20418. }
  20419. if containerLen == 0 {
  20420. dd.ReadMapEnd()
  20421. return v, changed
  20422. }
  20423. var mk uint
  20424. var mv uint16
  20425. hasLen := containerLen > 0
  20426. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20427. if esep {
  20428. dd.ReadMapElemKey()
  20429. }
  20430. mk = uint(dd.DecodeUint(uintBitsize))
  20431. if esep {
  20432. dd.ReadMapElemValue()
  20433. }
  20434. if dd.TryDecodeAsNil() {
  20435. if d.h.DeleteOnNilMapValue {
  20436. delete(v, mk)
  20437. } else {
  20438. v[mk] = 0
  20439. }
  20440. continue
  20441. }
  20442. mv = uint16(dd.DecodeUint(16))
  20443. if v != nil {
  20444. v[mk] = mv
  20445. }
  20446. }
  20447. dd.ReadMapEnd()
  20448. return v, changed
  20449. }
  20450. func (d *Decoder) fastpathDecMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  20451. if rv.Kind() == reflect.Ptr {
  20452. vp := rv2i(rv).(*map[uint]uint32)
  20453. if v, changed := fastpathTV.DecMapUintUint32V(*vp, true, d); changed {
  20454. *vp = v
  20455. }
  20456. return
  20457. }
  20458. fastpathTV.DecMapUintUint32V(rv2i(rv).(map[uint]uint32), false, d)
  20459. }
  20460. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, d *Decoder) {
  20461. if v, changed := f.DecMapUintUint32V(*vp, true, d); changed {
  20462. *vp = v
  20463. }
  20464. }
  20465. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, canChange bool,
  20466. d *Decoder) (_ map[uint]uint32, changed bool) {
  20467. dd, esep := d.d, d.hh.hasElemSeparators()
  20468. containerLen := dd.ReadMapStart()
  20469. if canChange && v == nil {
  20470. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20471. v = make(map[uint]uint32, xlen)
  20472. changed = true
  20473. }
  20474. if containerLen == 0 {
  20475. dd.ReadMapEnd()
  20476. return v, changed
  20477. }
  20478. var mk uint
  20479. var mv uint32
  20480. hasLen := containerLen > 0
  20481. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20482. if esep {
  20483. dd.ReadMapElemKey()
  20484. }
  20485. mk = uint(dd.DecodeUint(uintBitsize))
  20486. if esep {
  20487. dd.ReadMapElemValue()
  20488. }
  20489. if dd.TryDecodeAsNil() {
  20490. if d.h.DeleteOnNilMapValue {
  20491. delete(v, mk)
  20492. } else {
  20493. v[mk] = 0
  20494. }
  20495. continue
  20496. }
  20497. mv = uint32(dd.DecodeUint(32))
  20498. if v != nil {
  20499. v[mk] = mv
  20500. }
  20501. }
  20502. dd.ReadMapEnd()
  20503. return v, changed
  20504. }
  20505. func (d *Decoder) fastpathDecMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  20506. if rv.Kind() == reflect.Ptr {
  20507. vp := rv2i(rv).(*map[uint]uint64)
  20508. if v, changed := fastpathTV.DecMapUintUint64V(*vp, true, d); changed {
  20509. *vp = v
  20510. }
  20511. return
  20512. }
  20513. fastpathTV.DecMapUintUint64V(rv2i(rv).(map[uint]uint64), false, d)
  20514. }
  20515. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, d *Decoder) {
  20516. if v, changed := f.DecMapUintUint64V(*vp, true, d); changed {
  20517. *vp = v
  20518. }
  20519. }
  20520. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, canChange bool,
  20521. d *Decoder) (_ map[uint]uint64, changed bool) {
  20522. dd, esep := d.d, d.hh.hasElemSeparators()
  20523. containerLen := dd.ReadMapStart()
  20524. if canChange && v == nil {
  20525. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20526. v = make(map[uint]uint64, xlen)
  20527. changed = true
  20528. }
  20529. if containerLen == 0 {
  20530. dd.ReadMapEnd()
  20531. return v, changed
  20532. }
  20533. var mk uint
  20534. var mv uint64
  20535. hasLen := containerLen > 0
  20536. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20537. if esep {
  20538. dd.ReadMapElemKey()
  20539. }
  20540. mk = uint(dd.DecodeUint(uintBitsize))
  20541. if esep {
  20542. dd.ReadMapElemValue()
  20543. }
  20544. if dd.TryDecodeAsNil() {
  20545. if d.h.DeleteOnNilMapValue {
  20546. delete(v, mk)
  20547. } else {
  20548. v[mk] = 0
  20549. }
  20550. continue
  20551. }
  20552. mv = dd.DecodeUint(64)
  20553. if v != nil {
  20554. v[mk] = mv
  20555. }
  20556. }
  20557. dd.ReadMapEnd()
  20558. return v, changed
  20559. }
  20560. func (d *Decoder) fastpathDecMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  20561. if rv.Kind() == reflect.Ptr {
  20562. vp := rv2i(rv).(*map[uint]uintptr)
  20563. if v, changed := fastpathTV.DecMapUintUintptrV(*vp, true, d); changed {
  20564. *vp = v
  20565. }
  20566. return
  20567. }
  20568. fastpathTV.DecMapUintUintptrV(rv2i(rv).(map[uint]uintptr), false, d)
  20569. }
  20570. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, d *Decoder) {
  20571. if v, changed := f.DecMapUintUintptrV(*vp, true, d); changed {
  20572. *vp = v
  20573. }
  20574. }
  20575. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, canChange bool,
  20576. d *Decoder) (_ map[uint]uintptr, changed bool) {
  20577. dd, esep := d.d, d.hh.hasElemSeparators()
  20578. containerLen := dd.ReadMapStart()
  20579. if canChange && v == nil {
  20580. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20581. v = make(map[uint]uintptr, xlen)
  20582. changed = true
  20583. }
  20584. if containerLen == 0 {
  20585. dd.ReadMapEnd()
  20586. return v, changed
  20587. }
  20588. var mk uint
  20589. var mv uintptr
  20590. hasLen := containerLen > 0
  20591. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20592. if esep {
  20593. dd.ReadMapElemKey()
  20594. }
  20595. mk = uint(dd.DecodeUint(uintBitsize))
  20596. if esep {
  20597. dd.ReadMapElemValue()
  20598. }
  20599. if dd.TryDecodeAsNil() {
  20600. if d.h.DeleteOnNilMapValue {
  20601. delete(v, mk)
  20602. } else {
  20603. v[mk] = 0
  20604. }
  20605. continue
  20606. }
  20607. mv = uintptr(dd.DecodeUint(uintBitsize))
  20608. if v != nil {
  20609. v[mk] = mv
  20610. }
  20611. }
  20612. dd.ReadMapEnd()
  20613. return v, changed
  20614. }
  20615. func (d *Decoder) fastpathDecMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  20616. if rv.Kind() == reflect.Ptr {
  20617. vp := rv2i(rv).(*map[uint]int)
  20618. if v, changed := fastpathTV.DecMapUintIntV(*vp, true, d); changed {
  20619. *vp = v
  20620. }
  20621. return
  20622. }
  20623. fastpathTV.DecMapUintIntV(rv2i(rv).(map[uint]int), false, d)
  20624. }
  20625. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, d *Decoder) {
  20626. if v, changed := f.DecMapUintIntV(*vp, true, d); changed {
  20627. *vp = v
  20628. }
  20629. }
  20630. func (_ fastpathT) DecMapUintIntV(v map[uint]int, canChange bool,
  20631. d *Decoder) (_ map[uint]int, changed bool) {
  20632. dd, esep := d.d, d.hh.hasElemSeparators()
  20633. containerLen := dd.ReadMapStart()
  20634. if canChange && v == nil {
  20635. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20636. v = make(map[uint]int, xlen)
  20637. changed = true
  20638. }
  20639. if containerLen == 0 {
  20640. dd.ReadMapEnd()
  20641. return v, changed
  20642. }
  20643. var mk uint
  20644. var mv int
  20645. hasLen := containerLen > 0
  20646. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20647. if esep {
  20648. dd.ReadMapElemKey()
  20649. }
  20650. mk = uint(dd.DecodeUint(uintBitsize))
  20651. if esep {
  20652. dd.ReadMapElemValue()
  20653. }
  20654. if dd.TryDecodeAsNil() {
  20655. if d.h.DeleteOnNilMapValue {
  20656. delete(v, mk)
  20657. } else {
  20658. v[mk] = 0
  20659. }
  20660. continue
  20661. }
  20662. mv = int(dd.DecodeInt(intBitsize))
  20663. if v != nil {
  20664. v[mk] = mv
  20665. }
  20666. }
  20667. dd.ReadMapEnd()
  20668. return v, changed
  20669. }
  20670. func (d *Decoder) fastpathDecMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  20671. if rv.Kind() == reflect.Ptr {
  20672. vp := rv2i(rv).(*map[uint]int8)
  20673. if v, changed := fastpathTV.DecMapUintInt8V(*vp, true, d); changed {
  20674. *vp = v
  20675. }
  20676. return
  20677. }
  20678. fastpathTV.DecMapUintInt8V(rv2i(rv).(map[uint]int8), false, d)
  20679. }
  20680. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, d *Decoder) {
  20681. if v, changed := f.DecMapUintInt8V(*vp, true, d); changed {
  20682. *vp = v
  20683. }
  20684. }
  20685. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, canChange bool,
  20686. d *Decoder) (_ map[uint]int8, changed bool) {
  20687. dd, esep := d.d, d.hh.hasElemSeparators()
  20688. containerLen := dd.ReadMapStart()
  20689. if canChange && v == nil {
  20690. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20691. v = make(map[uint]int8, xlen)
  20692. changed = true
  20693. }
  20694. if containerLen == 0 {
  20695. dd.ReadMapEnd()
  20696. return v, changed
  20697. }
  20698. var mk uint
  20699. var mv int8
  20700. hasLen := containerLen > 0
  20701. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20702. if esep {
  20703. dd.ReadMapElemKey()
  20704. }
  20705. mk = uint(dd.DecodeUint(uintBitsize))
  20706. if esep {
  20707. dd.ReadMapElemValue()
  20708. }
  20709. if dd.TryDecodeAsNil() {
  20710. if d.h.DeleteOnNilMapValue {
  20711. delete(v, mk)
  20712. } else {
  20713. v[mk] = 0
  20714. }
  20715. continue
  20716. }
  20717. mv = int8(dd.DecodeInt(8))
  20718. if v != nil {
  20719. v[mk] = mv
  20720. }
  20721. }
  20722. dd.ReadMapEnd()
  20723. return v, changed
  20724. }
  20725. func (d *Decoder) fastpathDecMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  20726. if rv.Kind() == reflect.Ptr {
  20727. vp := rv2i(rv).(*map[uint]int16)
  20728. if v, changed := fastpathTV.DecMapUintInt16V(*vp, true, d); changed {
  20729. *vp = v
  20730. }
  20731. return
  20732. }
  20733. fastpathTV.DecMapUintInt16V(rv2i(rv).(map[uint]int16), false, d)
  20734. }
  20735. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, d *Decoder) {
  20736. if v, changed := f.DecMapUintInt16V(*vp, true, d); changed {
  20737. *vp = v
  20738. }
  20739. }
  20740. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, canChange bool,
  20741. d *Decoder) (_ map[uint]int16, changed bool) {
  20742. dd, esep := d.d, d.hh.hasElemSeparators()
  20743. containerLen := dd.ReadMapStart()
  20744. if canChange && v == nil {
  20745. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  20746. v = make(map[uint]int16, xlen)
  20747. changed = true
  20748. }
  20749. if containerLen == 0 {
  20750. dd.ReadMapEnd()
  20751. return v, changed
  20752. }
  20753. var mk uint
  20754. var mv int16
  20755. hasLen := containerLen > 0
  20756. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20757. if esep {
  20758. dd.ReadMapElemKey()
  20759. }
  20760. mk = uint(dd.DecodeUint(uintBitsize))
  20761. if esep {
  20762. dd.ReadMapElemValue()
  20763. }
  20764. if dd.TryDecodeAsNil() {
  20765. if d.h.DeleteOnNilMapValue {
  20766. delete(v, mk)
  20767. } else {
  20768. v[mk] = 0
  20769. }
  20770. continue
  20771. }
  20772. mv = int16(dd.DecodeInt(16))
  20773. if v != nil {
  20774. v[mk] = mv
  20775. }
  20776. }
  20777. dd.ReadMapEnd()
  20778. return v, changed
  20779. }
  20780. func (d *Decoder) fastpathDecMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  20781. if rv.Kind() == reflect.Ptr {
  20782. vp := rv2i(rv).(*map[uint]int32)
  20783. if v, changed := fastpathTV.DecMapUintInt32V(*vp, true, d); changed {
  20784. *vp = v
  20785. }
  20786. return
  20787. }
  20788. fastpathTV.DecMapUintInt32V(rv2i(rv).(map[uint]int32), false, d)
  20789. }
  20790. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, d *Decoder) {
  20791. if v, changed := f.DecMapUintInt32V(*vp, true, d); changed {
  20792. *vp = v
  20793. }
  20794. }
  20795. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, canChange bool,
  20796. d *Decoder) (_ map[uint]int32, changed bool) {
  20797. dd, esep := d.d, d.hh.hasElemSeparators()
  20798. containerLen := dd.ReadMapStart()
  20799. if canChange && v == nil {
  20800. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20801. v = make(map[uint]int32, xlen)
  20802. changed = true
  20803. }
  20804. if containerLen == 0 {
  20805. dd.ReadMapEnd()
  20806. return v, changed
  20807. }
  20808. var mk uint
  20809. var mv int32
  20810. hasLen := containerLen > 0
  20811. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20812. if esep {
  20813. dd.ReadMapElemKey()
  20814. }
  20815. mk = uint(dd.DecodeUint(uintBitsize))
  20816. if esep {
  20817. dd.ReadMapElemValue()
  20818. }
  20819. if dd.TryDecodeAsNil() {
  20820. if d.h.DeleteOnNilMapValue {
  20821. delete(v, mk)
  20822. } else {
  20823. v[mk] = 0
  20824. }
  20825. continue
  20826. }
  20827. mv = int32(dd.DecodeInt(32))
  20828. if v != nil {
  20829. v[mk] = mv
  20830. }
  20831. }
  20832. dd.ReadMapEnd()
  20833. return v, changed
  20834. }
  20835. func (d *Decoder) fastpathDecMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  20836. if rv.Kind() == reflect.Ptr {
  20837. vp := rv2i(rv).(*map[uint]int64)
  20838. if v, changed := fastpathTV.DecMapUintInt64V(*vp, true, d); changed {
  20839. *vp = v
  20840. }
  20841. return
  20842. }
  20843. fastpathTV.DecMapUintInt64V(rv2i(rv).(map[uint]int64), false, d)
  20844. }
  20845. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, d *Decoder) {
  20846. if v, changed := f.DecMapUintInt64V(*vp, true, d); changed {
  20847. *vp = v
  20848. }
  20849. }
  20850. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, canChange bool,
  20851. d *Decoder) (_ map[uint]int64, changed bool) {
  20852. dd, esep := d.d, d.hh.hasElemSeparators()
  20853. containerLen := dd.ReadMapStart()
  20854. if canChange && v == nil {
  20855. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20856. v = make(map[uint]int64, xlen)
  20857. changed = true
  20858. }
  20859. if containerLen == 0 {
  20860. dd.ReadMapEnd()
  20861. return v, changed
  20862. }
  20863. var mk uint
  20864. var mv int64
  20865. hasLen := containerLen > 0
  20866. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20867. if esep {
  20868. dd.ReadMapElemKey()
  20869. }
  20870. mk = uint(dd.DecodeUint(uintBitsize))
  20871. if esep {
  20872. dd.ReadMapElemValue()
  20873. }
  20874. if dd.TryDecodeAsNil() {
  20875. if d.h.DeleteOnNilMapValue {
  20876. delete(v, mk)
  20877. } else {
  20878. v[mk] = 0
  20879. }
  20880. continue
  20881. }
  20882. mv = dd.DecodeInt(64)
  20883. if v != nil {
  20884. v[mk] = mv
  20885. }
  20886. }
  20887. dd.ReadMapEnd()
  20888. return v, changed
  20889. }
  20890. func (d *Decoder) fastpathDecMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  20891. if rv.Kind() == reflect.Ptr {
  20892. vp := rv2i(rv).(*map[uint]float32)
  20893. if v, changed := fastpathTV.DecMapUintFloat32V(*vp, true, d); changed {
  20894. *vp = v
  20895. }
  20896. return
  20897. }
  20898. fastpathTV.DecMapUintFloat32V(rv2i(rv).(map[uint]float32), false, d)
  20899. }
  20900. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, d *Decoder) {
  20901. if v, changed := f.DecMapUintFloat32V(*vp, true, d); changed {
  20902. *vp = v
  20903. }
  20904. }
  20905. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, canChange bool,
  20906. d *Decoder) (_ map[uint]float32, changed bool) {
  20907. dd, esep := d.d, d.hh.hasElemSeparators()
  20908. containerLen := dd.ReadMapStart()
  20909. if canChange && v == nil {
  20910. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20911. v = make(map[uint]float32, xlen)
  20912. changed = true
  20913. }
  20914. if containerLen == 0 {
  20915. dd.ReadMapEnd()
  20916. return v, changed
  20917. }
  20918. var mk uint
  20919. var mv float32
  20920. hasLen := containerLen > 0
  20921. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20922. if esep {
  20923. dd.ReadMapElemKey()
  20924. }
  20925. mk = uint(dd.DecodeUint(uintBitsize))
  20926. if esep {
  20927. dd.ReadMapElemValue()
  20928. }
  20929. if dd.TryDecodeAsNil() {
  20930. if d.h.DeleteOnNilMapValue {
  20931. delete(v, mk)
  20932. } else {
  20933. v[mk] = 0
  20934. }
  20935. continue
  20936. }
  20937. mv = float32(dd.DecodeFloat(true))
  20938. if v != nil {
  20939. v[mk] = mv
  20940. }
  20941. }
  20942. dd.ReadMapEnd()
  20943. return v, changed
  20944. }
  20945. func (d *Decoder) fastpathDecMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  20946. if rv.Kind() == reflect.Ptr {
  20947. vp := rv2i(rv).(*map[uint]float64)
  20948. if v, changed := fastpathTV.DecMapUintFloat64V(*vp, true, d); changed {
  20949. *vp = v
  20950. }
  20951. return
  20952. }
  20953. fastpathTV.DecMapUintFloat64V(rv2i(rv).(map[uint]float64), false, d)
  20954. }
  20955. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, d *Decoder) {
  20956. if v, changed := f.DecMapUintFloat64V(*vp, true, d); changed {
  20957. *vp = v
  20958. }
  20959. }
  20960. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, canChange bool,
  20961. d *Decoder) (_ map[uint]float64, changed bool) {
  20962. dd, esep := d.d, d.hh.hasElemSeparators()
  20963. containerLen := dd.ReadMapStart()
  20964. if canChange && v == nil {
  20965. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20966. v = make(map[uint]float64, xlen)
  20967. changed = true
  20968. }
  20969. if containerLen == 0 {
  20970. dd.ReadMapEnd()
  20971. return v, changed
  20972. }
  20973. var mk uint
  20974. var mv float64
  20975. hasLen := containerLen > 0
  20976. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20977. if esep {
  20978. dd.ReadMapElemKey()
  20979. }
  20980. mk = uint(dd.DecodeUint(uintBitsize))
  20981. if esep {
  20982. dd.ReadMapElemValue()
  20983. }
  20984. if dd.TryDecodeAsNil() {
  20985. if d.h.DeleteOnNilMapValue {
  20986. delete(v, mk)
  20987. } else {
  20988. v[mk] = 0
  20989. }
  20990. continue
  20991. }
  20992. mv = dd.DecodeFloat(false)
  20993. if v != nil {
  20994. v[mk] = mv
  20995. }
  20996. }
  20997. dd.ReadMapEnd()
  20998. return v, changed
  20999. }
  21000. func (d *Decoder) fastpathDecMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  21001. if rv.Kind() == reflect.Ptr {
  21002. vp := rv2i(rv).(*map[uint]bool)
  21003. if v, changed := fastpathTV.DecMapUintBoolV(*vp, true, d); changed {
  21004. *vp = v
  21005. }
  21006. return
  21007. }
  21008. fastpathTV.DecMapUintBoolV(rv2i(rv).(map[uint]bool), false, d)
  21009. }
  21010. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, d *Decoder) {
  21011. if v, changed := f.DecMapUintBoolV(*vp, true, d); changed {
  21012. *vp = v
  21013. }
  21014. }
  21015. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, canChange bool,
  21016. d *Decoder) (_ map[uint]bool, changed bool) {
  21017. dd, esep := d.d, d.hh.hasElemSeparators()
  21018. containerLen := dd.ReadMapStart()
  21019. if canChange && v == nil {
  21020. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21021. v = make(map[uint]bool, xlen)
  21022. changed = true
  21023. }
  21024. if containerLen == 0 {
  21025. dd.ReadMapEnd()
  21026. return v, changed
  21027. }
  21028. var mk uint
  21029. var mv bool
  21030. hasLen := containerLen > 0
  21031. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21032. if esep {
  21033. dd.ReadMapElemKey()
  21034. }
  21035. mk = uint(dd.DecodeUint(uintBitsize))
  21036. if esep {
  21037. dd.ReadMapElemValue()
  21038. }
  21039. if dd.TryDecodeAsNil() {
  21040. if d.h.DeleteOnNilMapValue {
  21041. delete(v, mk)
  21042. } else {
  21043. v[mk] = false
  21044. }
  21045. continue
  21046. }
  21047. mv = dd.DecodeBool()
  21048. if v != nil {
  21049. v[mk] = mv
  21050. }
  21051. }
  21052. dd.ReadMapEnd()
  21053. return v, changed
  21054. }
  21055. func (d *Decoder) fastpathDecMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  21056. if rv.Kind() == reflect.Ptr {
  21057. vp := rv2i(rv).(*map[uint8]interface{})
  21058. if v, changed := fastpathTV.DecMapUint8IntfV(*vp, true, d); changed {
  21059. *vp = v
  21060. }
  21061. return
  21062. }
  21063. fastpathTV.DecMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), false, d)
  21064. }
  21065. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, d *Decoder) {
  21066. if v, changed := f.DecMapUint8IntfV(*vp, true, d); changed {
  21067. *vp = v
  21068. }
  21069. }
  21070. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, canChange bool,
  21071. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  21072. dd, esep := d.d, d.hh.hasElemSeparators()
  21073. containerLen := dd.ReadMapStart()
  21074. if canChange && v == nil {
  21075. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  21076. v = make(map[uint8]interface{}, xlen)
  21077. changed = true
  21078. }
  21079. if containerLen == 0 {
  21080. dd.ReadMapEnd()
  21081. return v, changed
  21082. }
  21083. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  21084. var mk uint8
  21085. var mv interface{}
  21086. hasLen := containerLen > 0
  21087. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21088. if esep {
  21089. dd.ReadMapElemKey()
  21090. }
  21091. mk = uint8(dd.DecodeUint(8))
  21092. if esep {
  21093. dd.ReadMapElemValue()
  21094. }
  21095. if dd.TryDecodeAsNil() {
  21096. if d.h.DeleteOnNilMapValue {
  21097. delete(v, mk)
  21098. } else {
  21099. v[mk] = nil
  21100. }
  21101. continue
  21102. }
  21103. if mapGet {
  21104. mv = v[mk]
  21105. } else {
  21106. mv = nil
  21107. }
  21108. d.decode(&mv)
  21109. if v != nil {
  21110. v[mk] = mv
  21111. }
  21112. }
  21113. dd.ReadMapEnd()
  21114. return v, changed
  21115. }
  21116. func (d *Decoder) fastpathDecMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  21117. if rv.Kind() == reflect.Ptr {
  21118. vp := rv2i(rv).(*map[uint8]string)
  21119. if v, changed := fastpathTV.DecMapUint8StringV(*vp, true, d); changed {
  21120. *vp = v
  21121. }
  21122. return
  21123. }
  21124. fastpathTV.DecMapUint8StringV(rv2i(rv).(map[uint8]string), false, d)
  21125. }
  21126. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, d *Decoder) {
  21127. if v, changed := f.DecMapUint8StringV(*vp, true, d); changed {
  21128. *vp = v
  21129. }
  21130. }
  21131. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, canChange bool,
  21132. d *Decoder) (_ map[uint8]string, changed bool) {
  21133. dd, esep := d.d, d.hh.hasElemSeparators()
  21134. containerLen := dd.ReadMapStart()
  21135. if canChange && v == nil {
  21136. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  21137. v = make(map[uint8]string, xlen)
  21138. changed = true
  21139. }
  21140. if containerLen == 0 {
  21141. dd.ReadMapEnd()
  21142. return v, changed
  21143. }
  21144. var mk uint8
  21145. var mv string
  21146. hasLen := containerLen > 0
  21147. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21148. if esep {
  21149. dd.ReadMapElemKey()
  21150. }
  21151. mk = uint8(dd.DecodeUint(8))
  21152. if esep {
  21153. dd.ReadMapElemValue()
  21154. }
  21155. if dd.TryDecodeAsNil() {
  21156. if d.h.DeleteOnNilMapValue {
  21157. delete(v, mk)
  21158. } else {
  21159. v[mk] = ""
  21160. }
  21161. continue
  21162. }
  21163. mv = dd.DecodeString()
  21164. if v != nil {
  21165. v[mk] = mv
  21166. }
  21167. }
  21168. dd.ReadMapEnd()
  21169. return v, changed
  21170. }
  21171. func (d *Decoder) fastpathDecMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  21172. if rv.Kind() == reflect.Ptr {
  21173. vp := rv2i(rv).(*map[uint8]uint)
  21174. if v, changed := fastpathTV.DecMapUint8UintV(*vp, true, d); changed {
  21175. *vp = v
  21176. }
  21177. return
  21178. }
  21179. fastpathTV.DecMapUint8UintV(rv2i(rv).(map[uint8]uint), false, d)
  21180. }
  21181. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, d *Decoder) {
  21182. if v, changed := f.DecMapUint8UintV(*vp, true, d); changed {
  21183. *vp = v
  21184. }
  21185. }
  21186. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, canChange bool,
  21187. d *Decoder) (_ map[uint8]uint, changed bool) {
  21188. dd, esep := d.d, d.hh.hasElemSeparators()
  21189. containerLen := dd.ReadMapStart()
  21190. if canChange && v == nil {
  21191. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21192. v = make(map[uint8]uint, xlen)
  21193. changed = true
  21194. }
  21195. if containerLen == 0 {
  21196. dd.ReadMapEnd()
  21197. return v, changed
  21198. }
  21199. var mk uint8
  21200. var mv uint
  21201. hasLen := containerLen > 0
  21202. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21203. if esep {
  21204. dd.ReadMapElemKey()
  21205. }
  21206. mk = uint8(dd.DecodeUint(8))
  21207. if esep {
  21208. dd.ReadMapElemValue()
  21209. }
  21210. if dd.TryDecodeAsNil() {
  21211. if d.h.DeleteOnNilMapValue {
  21212. delete(v, mk)
  21213. } else {
  21214. v[mk] = 0
  21215. }
  21216. continue
  21217. }
  21218. mv = uint(dd.DecodeUint(uintBitsize))
  21219. if v != nil {
  21220. v[mk] = mv
  21221. }
  21222. }
  21223. dd.ReadMapEnd()
  21224. return v, changed
  21225. }
  21226. func (d *Decoder) fastpathDecMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  21227. if rv.Kind() == reflect.Ptr {
  21228. vp := rv2i(rv).(*map[uint8]uint8)
  21229. if v, changed := fastpathTV.DecMapUint8Uint8V(*vp, true, d); changed {
  21230. *vp = v
  21231. }
  21232. return
  21233. }
  21234. fastpathTV.DecMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), false, d)
  21235. }
  21236. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, d *Decoder) {
  21237. if v, changed := f.DecMapUint8Uint8V(*vp, true, d); changed {
  21238. *vp = v
  21239. }
  21240. }
  21241. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, canChange bool,
  21242. d *Decoder) (_ map[uint8]uint8, changed bool) {
  21243. dd, esep := d.d, d.hh.hasElemSeparators()
  21244. containerLen := dd.ReadMapStart()
  21245. if canChange && v == nil {
  21246. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  21247. v = make(map[uint8]uint8, xlen)
  21248. changed = true
  21249. }
  21250. if containerLen == 0 {
  21251. dd.ReadMapEnd()
  21252. return v, changed
  21253. }
  21254. var mk uint8
  21255. var mv uint8
  21256. hasLen := containerLen > 0
  21257. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21258. if esep {
  21259. dd.ReadMapElemKey()
  21260. }
  21261. mk = uint8(dd.DecodeUint(8))
  21262. if esep {
  21263. dd.ReadMapElemValue()
  21264. }
  21265. if dd.TryDecodeAsNil() {
  21266. if d.h.DeleteOnNilMapValue {
  21267. delete(v, mk)
  21268. } else {
  21269. v[mk] = 0
  21270. }
  21271. continue
  21272. }
  21273. mv = uint8(dd.DecodeUint(8))
  21274. if v != nil {
  21275. v[mk] = mv
  21276. }
  21277. }
  21278. dd.ReadMapEnd()
  21279. return v, changed
  21280. }
  21281. func (d *Decoder) fastpathDecMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  21282. if rv.Kind() == reflect.Ptr {
  21283. vp := rv2i(rv).(*map[uint8]uint16)
  21284. if v, changed := fastpathTV.DecMapUint8Uint16V(*vp, true, d); changed {
  21285. *vp = v
  21286. }
  21287. return
  21288. }
  21289. fastpathTV.DecMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), false, d)
  21290. }
  21291. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, d *Decoder) {
  21292. if v, changed := f.DecMapUint8Uint16V(*vp, true, d); changed {
  21293. *vp = v
  21294. }
  21295. }
  21296. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, canChange bool,
  21297. d *Decoder) (_ map[uint8]uint16, changed bool) {
  21298. dd, esep := d.d, d.hh.hasElemSeparators()
  21299. containerLen := dd.ReadMapStart()
  21300. if canChange && v == nil {
  21301. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  21302. v = make(map[uint8]uint16, xlen)
  21303. changed = true
  21304. }
  21305. if containerLen == 0 {
  21306. dd.ReadMapEnd()
  21307. return v, changed
  21308. }
  21309. var mk uint8
  21310. var mv uint16
  21311. hasLen := containerLen > 0
  21312. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21313. if esep {
  21314. dd.ReadMapElemKey()
  21315. }
  21316. mk = uint8(dd.DecodeUint(8))
  21317. if esep {
  21318. dd.ReadMapElemValue()
  21319. }
  21320. if dd.TryDecodeAsNil() {
  21321. if d.h.DeleteOnNilMapValue {
  21322. delete(v, mk)
  21323. } else {
  21324. v[mk] = 0
  21325. }
  21326. continue
  21327. }
  21328. mv = uint16(dd.DecodeUint(16))
  21329. if v != nil {
  21330. v[mk] = mv
  21331. }
  21332. }
  21333. dd.ReadMapEnd()
  21334. return v, changed
  21335. }
  21336. func (d *Decoder) fastpathDecMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  21337. if rv.Kind() == reflect.Ptr {
  21338. vp := rv2i(rv).(*map[uint8]uint32)
  21339. if v, changed := fastpathTV.DecMapUint8Uint32V(*vp, true, d); changed {
  21340. *vp = v
  21341. }
  21342. return
  21343. }
  21344. fastpathTV.DecMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), false, d)
  21345. }
  21346. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, d *Decoder) {
  21347. if v, changed := f.DecMapUint8Uint32V(*vp, true, d); changed {
  21348. *vp = v
  21349. }
  21350. }
  21351. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, canChange bool,
  21352. d *Decoder) (_ map[uint8]uint32, changed bool) {
  21353. dd, esep := d.d, d.hh.hasElemSeparators()
  21354. containerLen := dd.ReadMapStart()
  21355. if canChange && v == nil {
  21356. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21357. v = make(map[uint8]uint32, xlen)
  21358. changed = true
  21359. }
  21360. if containerLen == 0 {
  21361. dd.ReadMapEnd()
  21362. return v, changed
  21363. }
  21364. var mk uint8
  21365. var mv uint32
  21366. hasLen := containerLen > 0
  21367. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21368. if esep {
  21369. dd.ReadMapElemKey()
  21370. }
  21371. mk = uint8(dd.DecodeUint(8))
  21372. if esep {
  21373. dd.ReadMapElemValue()
  21374. }
  21375. if dd.TryDecodeAsNil() {
  21376. if d.h.DeleteOnNilMapValue {
  21377. delete(v, mk)
  21378. } else {
  21379. v[mk] = 0
  21380. }
  21381. continue
  21382. }
  21383. mv = uint32(dd.DecodeUint(32))
  21384. if v != nil {
  21385. v[mk] = mv
  21386. }
  21387. }
  21388. dd.ReadMapEnd()
  21389. return v, changed
  21390. }
  21391. func (d *Decoder) fastpathDecMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  21392. if rv.Kind() == reflect.Ptr {
  21393. vp := rv2i(rv).(*map[uint8]uint64)
  21394. if v, changed := fastpathTV.DecMapUint8Uint64V(*vp, true, d); changed {
  21395. *vp = v
  21396. }
  21397. return
  21398. }
  21399. fastpathTV.DecMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), false, d)
  21400. }
  21401. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, d *Decoder) {
  21402. if v, changed := f.DecMapUint8Uint64V(*vp, true, d); changed {
  21403. *vp = v
  21404. }
  21405. }
  21406. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, canChange bool,
  21407. d *Decoder) (_ map[uint8]uint64, changed bool) {
  21408. dd, esep := d.d, d.hh.hasElemSeparators()
  21409. containerLen := dd.ReadMapStart()
  21410. if canChange && v == nil {
  21411. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21412. v = make(map[uint8]uint64, xlen)
  21413. changed = true
  21414. }
  21415. if containerLen == 0 {
  21416. dd.ReadMapEnd()
  21417. return v, changed
  21418. }
  21419. var mk uint8
  21420. var mv uint64
  21421. hasLen := containerLen > 0
  21422. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21423. if esep {
  21424. dd.ReadMapElemKey()
  21425. }
  21426. mk = uint8(dd.DecodeUint(8))
  21427. if esep {
  21428. dd.ReadMapElemValue()
  21429. }
  21430. if dd.TryDecodeAsNil() {
  21431. if d.h.DeleteOnNilMapValue {
  21432. delete(v, mk)
  21433. } else {
  21434. v[mk] = 0
  21435. }
  21436. continue
  21437. }
  21438. mv = dd.DecodeUint(64)
  21439. if v != nil {
  21440. v[mk] = mv
  21441. }
  21442. }
  21443. dd.ReadMapEnd()
  21444. return v, changed
  21445. }
  21446. func (d *Decoder) fastpathDecMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  21447. if rv.Kind() == reflect.Ptr {
  21448. vp := rv2i(rv).(*map[uint8]uintptr)
  21449. if v, changed := fastpathTV.DecMapUint8UintptrV(*vp, true, d); changed {
  21450. *vp = v
  21451. }
  21452. return
  21453. }
  21454. fastpathTV.DecMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), false, d)
  21455. }
  21456. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, d *Decoder) {
  21457. if v, changed := f.DecMapUint8UintptrV(*vp, true, d); changed {
  21458. *vp = v
  21459. }
  21460. }
  21461. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, canChange bool,
  21462. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  21463. dd, esep := d.d, d.hh.hasElemSeparators()
  21464. containerLen := dd.ReadMapStart()
  21465. if canChange && v == nil {
  21466. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21467. v = make(map[uint8]uintptr, xlen)
  21468. changed = true
  21469. }
  21470. if containerLen == 0 {
  21471. dd.ReadMapEnd()
  21472. return v, changed
  21473. }
  21474. var mk uint8
  21475. var mv uintptr
  21476. hasLen := containerLen > 0
  21477. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21478. if esep {
  21479. dd.ReadMapElemKey()
  21480. }
  21481. mk = uint8(dd.DecodeUint(8))
  21482. if esep {
  21483. dd.ReadMapElemValue()
  21484. }
  21485. if dd.TryDecodeAsNil() {
  21486. if d.h.DeleteOnNilMapValue {
  21487. delete(v, mk)
  21488. } else {
  21489. v[mk] = 0
  21490. }
  21491. continue
  21492. }
  21493. mv = uintptr(dd.DecodeUint(uintBitsize))
  21494. if v != nil {
  21495. v[mk] = mv
  21496. }
  21497. }
  21498. dd.ReadMapEnd()
  21499. return v, changed
  21500. }
  21501. func (d *Decoder) fastpathDecMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  21502. if rv.Kind() == reflect.Ptr {
  21503. vp := rv2i(rv).(*map[uint8]int)
  21504. if v, changed := fastpathTV.DecMapUint8IntV(*vp, true, d); changed {
  21505. *vp = v
  21506. }
  21507. return
  21508. }
  21509. fastpathTV.DecMapUint8IntV(rv2i(rv).(map[uint8]int), false, d)
  21510. }
  21511. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, d *Decoder) {
  21512. if v, changed := f.DecMapUint8IntV(*vp, true, d); changed {
  21513. *vp = v
  21514. }
  21515. }
  21516. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, canChange bool,
  21517. d *Decoder) (_ map[uint8]int, changed bool) {
  21518. dd, esep := d.d, d.hh.hasElemSeparators()
  21519. containerLen := dd.ReadMapStart()
  21520. if canChange && v == nil {
  21521. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21522. v = make(map[uint8]int, xlen)
  21523. changed = true
  21524. }
  21525. if containerLen == 0 {
  21526. dd.ReadMapEnd()
  21527. return v, changed
  21528. }
  21529. var mk uint8
  21530. var mv int
  21531. hasLen := containerLen > 0
  21532. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21533. if esep {
  21534. dd.ReadMapElemKey()
  21535. }
  21536. mk = uint8(dd.DecodeUint(8))
  21537. if esep {
  21538. dd.ReadMapElemValue()
  21539. }
  21540. if dd.TryDecodeAsNil() {
  21541. if d.h.DeleteOnNilMapValue {
  21542. delete(v, mk)
  21543. } else {
  21544. v[mk] = 0
  21545. }
  21546. continue
  21547. }
  21548. mv = int(dd.DecodeInt(intBitsize))
  21549. if v != nil {
  21550. v[mk] = mv
  21551. }
  21552. }
  21553. dd.ReadMapEnd()
  21554. return v, changed
  21555. }
  21556. func (d *Decoder) fastpathDecMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  21557. if rv.Kind() == reflect.Ptr {
  21558. vp := rv2i(rv).(*map[uint8]int8)
  21559. if v, changed := fastpathTV.DecMapUint8Int8V(*vp, true, d); changed {
  21560. *vp = v
  21561. }
  21562. return
  21563. }
  21564. fastpathTV.DecMapUint8Int8V(rv2i(rv).(map[uint8]int8), false, d)
  21565. }
  21566. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, d *Decoder) {
  21567. if v, changed := f.DecMapUint8Int8V(*vp, true, d); changed {
  21568. *vp = v
  21569. }
  21570. }
  21571. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, canChange bool,
  21572. d *Decoder) (_ map[uint8]int8, changed bool) {
  21573. dd, esep := d.d, d.hh.hasElemSeparators()
  21574. containerLen := dd.ReadMapStart()
  21575. if canChange && v == nil {
  21576. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  21577. v = make(map[uint8]int8, xlen)
  21578. changed = true
  21579. }
  21580. if containerLen == 0 {
  21581. dd.ReadMapEnd()
  21582. return v, changed
  21583. }
  21584. var mk uint8
  21585. var mv int8
  21586. hasLen := containerLen > 0
  21587. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21588. if esep {
  21589. dd.ReadMapElemKey()
  21590. }
  21591. mk = uint8(dd.DecodeUint(8))
  21592. if esep {
  21593. dd.ReadMapElemValue()
  21594. }
  21595. if dd.TryDecodeAsNil() {
  21596. if d.h.DeleteOnNilMapValue {
  21597. delete(v, mk)
  21598. } else {
  21599. v[mk] = 0
  21600. }
  21601. continue
  21602. }
  21603. mv = int8(dd.DecodeInt(8))
  21604. if v != nil {
  21605. v[mk] = mv
  21606. }
  21607. }
  21608. dd.ReadMapEnd()
  21609. return v, changed
  21610. }
  21611. func (d *Decoder) fastpathDecMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  21612. if rv.Kind() == reflect.Ptr {
  21613. vp := rv2i(rv).(*map[uint8]int16)
  21614. if v, changed := fastpathTV.DecMapUint8Int16V(*vp, true, d); changed {
  21615. *vp = v
  21616. }
  21617. return
  21618. }
  21619. fastpathTV.DecMapUint8Int16V(rv2i(rv).(map[uint8]int16), false, d)
  21620. }
  21621. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, d *Decoder) {
  21622. if v, changed := f.DecMapUint8Int16V(*vp, true, d); changed {
  21623. *vp = v
  21624. }
  21625. }
  21626. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, canChange bool,
  21627. d *Decoder) (_ map[uint8]int16, changed bool) {
  21628. dd, esep := d.d, d.hh.hasElemSeparators()
  21629. containerLen := dd.ReadMapStart()
  21630. if canChange && v == nil {
  21631. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  21632. v = make(map[uint8]int16, xlen)
  21633. changed = true
  21634. }
  21635. if containerLen == 0 {
  21636. dd.ReadMapEnd()
  21637. return v, changed
  21638. }
  21639. var mk uint8
  21640. var mv int16
  21641. hasLen := containerLen > 0
  21642. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21643. if esep {
  21644. dd.ReadMapElemKey()
  21645. }
  21646. mk = uint8(dd.DecodeUint(8))
  21647. if esep {
  21648. dd.ReadMapElemValue()
  21649. }
  21650. if dd.TryDecodeAsNil() {
  21651. if d.h.DeleteOnNilMapValue {
  21652. delete(v, mk)
  21653. } else {
  21654. v[mk] = 0
  21655. }
  21656. continue
  21657. }
  21658. mv = int16(dd.DecodeInt(16))
  21659. if v != nil {
  21660. v[mk] = mv
  21661. }
  21662. }
  21663. dd.ReadMapEnd()
  21664. return v, changed
  21665. }
  21666. func (d *Decoder) fastpathDecMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  21667. if rv.Kind() == reflect.Ptr {
  21668. vp := rv2i(rv).(*map[uint8]int32)
  21669. if v, changed := fastpathTV.DecMapUint8Int32V(*vp, true, d); changed {
  21670. *vp = v
  21671. }
  21672. return
  21673. }
  21674. fastpathTV.DecMapUint8Int32V(rv2i(rv).(map[uint8]int32), false, d)
  21675. }
  21676. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, d *Decoder) {
  21677. if v, changed := f.DecMapUint8Int32V(*vp, true, d); changed {
  21678. *vp = v
  21679. }
  21680. }
  21681. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, canChange bool,
  21682. d *Decoder) (_ map[uint8]int32, changed bool) {
  21683. dd, esep := d.d, d.hh.hasElemSeparators()
  21684. containerLen := dd.ReadMapStart()
  21685. if canChange && v == nil {
  21686. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21687. v = make(map[uint8]int32, xlen)
  21688. changed = true
  21689. }
  21690. if containerLen == 0 {
  21691. dd.ReadMapEnd()
  21692. return v, changed
  21693. }
  21694. var mk uint8
  21695. var mv int32
  21696. hasLen := containerLen > 0
  21697. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21698. if esep {
  21699. dd.ReadMapElemKey()
  21700. }
  21701. mk = uint8(dd.DecodeUint(8))
  21702. if esep {
  21703. dd.ReadMapElemValue()
  21704. }
  21705. if dd.TryDecodeAsNil() {
  21706. if d.h.DeleteOnNilMapValue {
  21707. delete(v, mk)
  21708. } else {
  21709. v[mk] = 0
  21710. }
  21711. continue
  21712. }
  21713. mv = int32(dd.DecodeInt(32))
  21714. if v != nil {
  21715. v[mk] = mv
  21716. }
  21717. }
  21718. dd.ReadMapEnd()
  21719. return v, changed
  21720. }
  21721. func (d *Decoder) fastpathDecMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  21722. if rv.Kind() == reflect.Ptr {
  21723. vp := rv2i(rv).(*map[uint8]int64)
  21724. if v, changed := fastpathTV.DecMapUint8Int64V(*vp, true, d); changed {
  21725. *vp = v
  21726. }
  21727. return
  21728. }
  21729. fastpathTV.DecMapUint8Int64V(rv2i(rv).(map[uint8]int64), false, d)
  21730. }
  21731. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, d *Decoder) {
  21732. if v, changed := f.DecMapUint8Int64V(*vp, true, d); changed {
  21733. *vp = v
  21734. }
  21735. }
  21736. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, canChange bool,
  21737. d *Decoder) (_ map[uint8]int64, changed bool) {
  21738. dd, esep := d.d, d.hh.hasElemSeparators()
  21739. containerLen := dd.ReadMapStart()
  21740. if canChange && v == nil {
  21741. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21742. v = make(map[uint8]int64, xlen)
  21743. changed = true
  21744. }
  21745. if containerLen == 0 {
  21746. dd.ReadMapEnd()
  21747. return v, changed
  21748. }
  21749. var mk uint8
  21750. var mv int64
  21751. hasLen := containerLen > 0
  21752. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21753. if esep {
  21754. dd.ReadMapElemKey()
  21755. }
  21756. mk = uint8(dd.DecodeUint(8))
  21757. if esep {
  21758. dd.ReadMapElemValue()
  21759. }
  21760. if dd.TryDecodeAsNil() {
  21761. if d.h.DeleteOnNilMapValue {
  21762. delete(v, mk)
  21763. } else {
  21764. v[mk] = 0
  21765. }
  21766. continue
  21767. }
  21768. mv = dd.DecodeInt(64)
  21769. if v != nil {
  21770. v[mk] = mv
  21771. }
  21772. }
  21773. dd.ReadMapEnd()
  21774. return v, changed
  21775. }
  21776. func (d *Decoder) fastpathDecMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  21777. if rv.Kind() == reflect.Ptr {
  21778. vp := rv2i(rv).(*map[uint8]float32)
  21779. if v, changed := fastpathTV.DecMapUint8Float32V(*vp, true, d); changed {
  21780. *vp = v
  21781. }
  21782. return
  21783. }
  21784. fastpathTV.DecMapUint8Float32V(rv2i(rv).(map[uint8]float32), false, d)
  21785. }
  21786. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, d *Decoder) {
  21787. if v, changed := f.DecMapUint8Float32V(*vp, true, d); changed {
  21788. *vp = v
  21789. }
  21790. }
  21791. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, canChange bool,
  21792. d *Decoder) (_ map[uint8]float32, changed bool) {
  21793. dd, esep := d.d, d.hh.hasElemSeparators()
  21794. containerLen := dd.ReadMapStart()
  21795. if canChange && v == nil {
  21796. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21797. v = make(map[uint8]float32, xlen)
  21798. changed = true
  21799. }
  21800. if containerLen == 0 {
  21801. dd.ReadMapEnd()
  21802. return v, changed
  21803. }
  21804. var mk uint8
  21805. var mv float32
  21806. hasLen := containerLen > 0
  21807. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21808. if esep {
  21809. dd.ReadMapElemKey()
  21810. }
  21811. mk = uint8(dd.DecodeUint(8))
  21812. if esep {
  21813. dd.ReadMapElemValue()
  21814. }
  21815. if dd.TryDecodeAsNil() {
  21816. if d.h.DeleteOnNilMapValue {
  21817. delete(v, mk)
  21818. } else {
  21819. v[mk] = 0
  21820. }
  21821. continue
  21822. }
  21823. mv = float32(dd.DecodeFloat(true))
  21824. if v != nil {
  21825. v[mk] = mv
  21826. }
  21827. }
  21828. dd.ReadMapEnd()
  21829. return v, changed
  21830. }
  21831. func (d *Decoder) fastpathDecMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  21832. if rv.Kind() == reflect.Ptr {
  21833. vp := rv2i(rv).(*map[uint8]float64)
  21834. if v, changed := fastpathTV.DecMapUint8Float64V(*vp, true, d); changed {
  21835. *vp = v
  21836. }
  21837. return
  21838. }
  21839. fastpathTV.DecMapUint8Float64V(rv2i(rv).(map[uint8]float64), false, d)
  21840. }
  21841. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, d *Decoder) {
  21842. if v, changed := f.DecMapUint8Float64V(*vp, true, d); changed {
  21843. *vp = v
  21844. }
  21845. }
  21846. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, canChange bool,
  21847. d *Decoder) (_ map[uint8]float64, changed bool) {
  21848. dd, esep := d.d, d.hh.hasElemSeparators()
  21849. containerLen := dd.ReadMapStart()
  21850. if canChange && v == nil {
  21851. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21852. v = make(map[uint8]float64, xlen)
  21853. changed = true
  21854. }
  21855. if containerLen == 0 {
  21856. dd.ReadMapEnd()
  21857. return v, changed
  21858. }
  21859. var mk uint8
  21860. var mv float64
  21861. hasLen := containerLen > 0
  21862. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21863. if esep {
  21864. dd.ReadMapElemKey()
  21865. }
  21866. mk = uint8(dd.DecodeUint(8))
  21867. if esep {
  21868. dd.ReadMapElemValue()
  21869. }
  21870. if dd.TryDecodeAsNil() {
  21871. if d.h.DeleteOnNilMapValue {
  21872. delete(v, mk)
  21873. } else {
  21874. v[mk] = 0
  21875. }
  21876. continue
  21877. }
  21878. mv = dd.DecodeFloat(false)
  21879. if v != nil {
  21880. v[mk] = mv
  21881. }
  21882. }
  21883. dd.ReadMapEnd()
  21884. return v, changed
  21885. }
  21886. func (d *Decoder) fastpathDecMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  21887. if rv.Kind() == reflect.Ptr {
  21888. vp := rv2i(rv).(*map[uint8]bool)
  21889. if v, changed := fastpathTV.DecMapUint8BoolV(*vp, true, d); changed {
  21890. *vp = v
  21891. }
  21892. return
  21893. }
  21894. fastpathTV.DecMapUint8BoolV(rv2i(rv).(map[uint8]bool), false, d)
  21895. }
  21896. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, d *Decoder) {
  21897. if v, changed := f.DecMapUint8BoolV(*vp, true, d); changed {
  21898. *vp = v
  21899. }
  21900. }
  21901. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, canChange bool,
  21902. d *Decoder) (_ map[uint8]bool, changed bool) {
  21903. dd, esep := d.d, d.hh.hasElemSeparators()
  21904. containerLen := dd.ReadMapStart()
  21905. if canChange && v == nil {
  21906. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  21907. v = make(map[uint8]bool, xlen)
  21908. changed = true
  21909. }
  21910. if containerLen == 0 {
  21911. dd.ReadMapEnd()
  21912. return v, changed
  21913. }
  21914. var mk uint8
  21915. var mv bool
  21916. hasLen := containerLen > 0
  21917. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21918. if esep {
  21919. dd.ReadMapElemKey()
  21920. }
  21921. mk = uint8(dd.DecodeUint(8))
  21922. if esep {
  21923. dd.ReadMapElemValue()
  21924. }
  21925. if dd.TryDecodeAsNil() {
  21926. if d.h.DeleteOnNilMapValue {
  21927. delete(v, mk)
  21928. } else {
  21929. v[mk] = false
  21930. }
  21931. continue
  21932. }
  21933. mv = dd.DecodeBool()
  21934. if v != nil {
  21935. v[mk] = mv
  21936. }
  21937. }
  21938. dd.ReadMapEnd()
  21939. return v, changed
  21940. }
  21941. func (d *Decoder) fastpathDecMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  21942. if rv.Kind() == reflect.Ptr {
  21943. vp := rv2i(rv).(*map[uint16]interface{})
  21944. if v, changed := fastpathTV.DecMapUint16IntfV(*vp, true, d); changed {
  21945. *vp = v
  21946. }
  21947. return
  21948. }
  21949. fastpathTV.DecMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), false, d)
  21950. }
  21951. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, d *Decoder) {
  21952. if v, changed := f.DecMapUint16IntfV(*vp, true, d); changed {
  21953. *vp = v
  21954. }
  21955. }
  21956. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, canChange bool,
  21957. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  21958. dd, esep := d.d, d.hh.hasElemSeparators()
  21959. containerLen := dd.ReadMapStart()
  21960. if canChange && v == nil {
  21961. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  21962. v = make(map[uint16]interface{}, xlen)
  21963. changed = true
  21964. }
  21965. if containerLen == 0 {
  21966. dd.ReadMapEnd()
  21967. return v, changed
  21968. }
  21969. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  21970. var mk uint16
  21971. var mv interface{}
  21972. hasLen := containerLen > 0
  21973. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21974. if esep {
  21975. dd.ReadMapElemKey()
  21976. }
  21977. mk = uint16(dd.DecodeUint(16))
  21978. if esep {
  21979. dd.ReadMapElemValue()
  21980. }
  21981. if dd.TryDecodeAsNil() {
  21982. if d.h.DeleteOnNilMapValue {
  21983. delete(v, mk)
  21984. } else {
  21985. v[mk] = nil
  21986. }
  21987. continue
  21988. }
  21989. if mapGet {
  21990. mv = v[mk]
  21991. } else {
  21992. mv = nil
  21993. }
  21994. d.decode(&mv)
  21995. if v != nil {
  21996. v[mk] = mv
  21997. }
  21998. }
  21999. dd.ReadMapEnd()
  22000. return v, changed
  22001. }
  22002. func (d *Decoder) fastpathDecMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  22003. if rv.Kind() == reflect.Ptr {
  22004. vp := rv2i(rv).(*map[uint16]string)
  22005. if v, changed := fastpathTV.DecMapUint16StringV(*vp, true, d); changed {
  22006. *vp = v
  22007. }
  22008. return
  22009. }
  22010. fastpathTV.DecMapUint16StringV(rv2i(rv).(map[uint16]string), false, d)
  22011. }
  22012. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, d *Decoder) {
  22013. if v, changed := f.DecMapUint16StringV(*vp, true, d); changed {
  22014. *vp = v
  22015. }
  22016. }
  22017. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, canChange bool,
  22018. d *Decoder) (_ map[uint16]string, changed bool) {
  22019. dd, esep := d.d, d.hh.hasElemSeparators()
  22020. containerLen := dd.ReadMapStart()
  22021. if canChange && v == nil {
  22022. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  22023. v = make(map[uint16]string, xlen)
  22024. changed = true
  22025. }
  22026. if containerLen == 0 {
  22027. dd.ReadMapEnd()
  22028. return v, changed
  22029. }
  22030. var mk uint16
  22031. var mv string
  22032. hasLen := containerLen > 0
  22033. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22034. if esep {
  22035. dd.ReadMapElemKey()
  22036. }
  22037. mk = uint16(dd.DecodeUint(16))
  22038. if esep {
  22039. dd.ReadMapElemValue()
  22040. }
  22041. if dd.TryDecodeAsNil() {
  22042. if d.h.DeleteOnNilMapValue {
  22043. delete(v, mk)
  22044. } else {
  22045. v[mk] = ""
  22046. }
  22047. continue
  22048. }
  22049. mv = dd.DecodeString()
  22050. if v != nil {
  22051. v[mk] = mv
  22052. }
  22053. }
  22054. dd.ReadMapEnd()
  22055. return v, changed
  22056. }
  22057. func (d *Decoder) fastpathDecMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  22058. if rv.Kind() == reflect.Ptr {
  22059. vp := rv2i(rv).(*map[uint16]uint)
  22060. if v, changed := fastpathTV.DecMapUint16UintV(*vp, true, d); changed {
  22061. *vp = v
  22062. }
  22063. return
  22064. }
  22065. fastpathTV.DecMapUint16UintV(rv2i(rv).(map[uint16]uint), false, d)
  22066. }
  22067. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, d *Decoder) {
  22068. if v, changed := f.DecMapUint16UintV(*vp, true, d); changed {
  22069. *vp = v
  22070. }
  22071. }
  22072. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, canChange bool,
  22073. d *Decoder) (_ map[uint16]uint, changed bool) {
  22074. dd, esep := d.d, d.hh.hasElemSeparators()
  22075. containerLen := dd.ReadMapStart()
  22076. if canChange && v == nil {
  22077. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22078. v = make(map[uint16]uint, xlen)
  22079. changed = true
  22080. }
  22081. if containerLen == 0 {
  22082. dd.ReadMapEnd()
  22083. return v, changed
  22084. }
  22085. var mk uint16
  22086. var mv uint
  22087. hasLen := containerLen > 0
  22088. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22089. if esep {
  22090. dd.ReadMapElemKey()
  22091. }
  22092. mk = uint16(dd.DecodeUint(16))
  22093. if esep {
  22094. dd.ReadMapElemValue()
  22095. }
  22096. if dd.TryDecodeAsNil() {
  22097. if d.h.DeleteOnNilMapValue {
  22098. delete(v, mk)
  22099. } else {
  22100. v[mk] = 0
  22101. }
  22102. continue
  22103. }
  22104. mv = uint(dd.DecodeUint(uintBitsize))
  22105. if v != nil {
  22106. v[mk] = mv
  22107. }
  22108. }
  22109. dd.ReadMapEnd()
  22110. return v, changed
  22111. }
  22112. func (d *Decoder) fastpathDecMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  22113. if rv.Kind() == reflect.Ptr {
  22114. vp := rv2i(rv).(*map[uint16]uint8)
  22115. if v, changed := fastpathTV.DecMapUint16Uint8V(*vp, true, d); changed {
  22116. *vp = v
  22117. }
  22118. return
  22119. }
  22120. fastpathTV.DecMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), false, d)
  22121. }
  22122. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, d *Decoder) {
  22123. if v, changed := f.DecMapUint16Uint8V(*vp, true, d); changed {
  22124. *vp = v
  22125. }
  22126. }
  22127. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, canChange bool,
  22128. d *Decoder) (_ map[uint16]uint8, changed bool) {
  22129. dd, esep := d.d, d.hh.hasElemSeparators()
  22130. containerLen := dd.ReadMapStart()
  22131. if canChange && v == nil {
  22132. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  22133. v = make(map[uint16]uint8, xlen)
  22134. changed = true
  22135. }
  22136. if containerLen == 0 {
  22137. dd.ReadMapEnd()
  22138. return v, changed
  22139. }
  22140. var mk uint16
  22141. var mv uint8
  22142. hasLen := containerLen > 0
  22143. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22144. if esep {
  22145. dd.ReadMapElemKey()
  22146. }
  22147. mk = uint16(dd.DecodeUint(16))
  22148. if esep {
  22149. dd.ReadMapElemValue()
  22150. }
  22151. if dd.TryDecodeAsNil() {
  22152. if d.h.DeleteOnNilMapValue {
  22153. delete(v, mk)
  22154. } else {
  22155. v[mk] = 0
  22156. }
  22157. continue
  22158. }
  22159. mv = uint8(dd.DecodeUint(8))
  22160. if v != nil {
  22161. v[mk] = mv
  22162. }
  22163. }
  22164. dd.ReadMapEnd()
  22165. return v, changed
  22166. }
  22167. func (d *Decoder) fastpathDecMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  22168. if rv.Kind() == reflect.Ptr {
  22169. vp := rv2i(rv).(*map[uint16]uint16)
  22170. if v, changed := fastpathTV.DecMapUint16Uint16V(*vp, true, d); changed {
  22171. *vp = v
  22172. }
  22173. return
  22174. }
  22175. fastpathTV.DecMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), false, d)
  22176. }
  22177. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, d *Decoder) {
  22178. if v, changed := f.DecMapUint16Uint16V(*vp, true, d); changed {
  22179. *vp = v
  22180. }
  22181. }
  22182. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, canChange bool,
  22183. d *Decoder) (_ map[uint16]uint16, changed bool) {
  22184. dd, esep := d.d, d.hh.hasElemSeparators()
  22185. containerLen := dd.ReadMapStart()
  22186. if canChange && v == nil {
  22187. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  22188. v = make(map[uint16]uint16, xlen)
  22189. changed = true
  22190. }
  22191. if containerLen == 0 {
  22192. dd.ReadMapEnd()
  22193. return v, changed
  22194. }
  22195. var mk uint16
  22196. var mv uint16
  22197. hasLen := containerLen > 0
  22198. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22199. if esep {
  22200. dd.ReadMapElemKey()
  22201. }
  22202. mk = uint16(dd.DecodeUint(16))
  22203. if esep {
  22204. dd.ReadMapElemValue()
  22205. }
  22206. if dd.TryDecodeAsNil() {
  22207. if d.h.DeleteOnNilMapValue {
  22208. delete(v, mk)
  22209. } else {
  22210. v[mk] = 0
  22211. }
  22212. continue
  22213. }
  22214. mv = uint16(dd.DecodeUint(16))
  22215. if v != nil {
  22216. v[mk] = mv
  22217. }
  22218. }
  22219. dd.ReadMapEnd()
  22220. return v, changed
  22221. }
  22222. func (d *Decoder) fastpathDecMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  22223. if rv.Kind() == reflect.Ptr {
  22224. vp := rv2i(rv).(*map[uint16]uint32)
  22225. if v, changed := fastpathTV.DecMapUint16Uint32V(*vp, true, d); changed {
  22226. *vp = v
  22227. }
  22228. return
  22229. }
  22230. fastpathTV.DecMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), false, d)
  22231. }
  22232. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, d *Decoder) {
  22233. if v, changed := f.DecMapUint16Uint32V(*vp, true, d); changed {
  22234. *vp = v
  22235. }
  22236. }
  22237. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, canChange bool,
  22238. d *Decoder) (_ map[uint16]uint32, changed bool) {
  22239. dd, esep := d.d, d.hh.hasElemSeparators()
  22240. containerLen := dd.ReadMapStart()
  22241. if canChange && v == nil {
  22242. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  22243. v = make(map[uint16]uint32, xlen)
  22244. changed = true
  22245. }
  22246. if containerLen == 0 {
  22247. dd.ReadMapEnd()
  22248. return v, changed
  22249. }
  22250. var mk uint16
  22251. var mv uint32
  22252. hasLen := containerLen > 0
  22253. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22254. if esep {
  22255. dd.ReadMapElemKey()
  22256. }
  22257. mk = uint16(dd.DecodeUint(16))
  22258. if esep {
  22259. dd.ReadMapElemValue()
  22260. }
  22261. if dd.TryDecodeAsNil() {
  22262. if d.h.DeleteOnNilMapValue {
  22263. delete(v, mk)
  22264. } else {
  22265. v[mk] = 0
  22266. }
  22267. continue
  22268. }
  22269. mv = uint32(dd.DecodeUint(32))
  22270. if v != nil {
  22271. v[mk] = mv
  22272. }
  22273. }
  22274. dd.ReadMapEnd()
  22275. return v, changed
  22276. }
  22277. func (d *Decoder) fastpathDecMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  22278. if rv.Kind() == reflect.Ptr {
  22279. vp := rv2i(rv).(*map[uint16]uint64)
  22280. if v, changed := fastpathTV.DecMapUint16Uint64V(*vp, true, d); changed {
  22281. *vp = v
  22282. }
  22283. return
  22284. }
  22285. fastpathTV.DecMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), false, d)
  22286. }
  22287. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, d *Decoder) {
  22288. if v, changed := f.DecMapUint16Uint64V(*vp, true, d); changed {
  22289. *vp = v
  22290. }
  22291. }
  22292. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, canChange bool,
  22293. d *Decoder) (_ map[uint16]uint64, 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, 10)
  22298. v = make(map[uint16]uint64, xlen)
  22299. changed = true
  22300. }
  22301. if containerLen == 0 {
  22302. dd.ReadMapEnd()
  22303. return v, changed
  22304. }
  22305. var mk uint16
  22306. var mv uint64
  22307. hasLen := containerLen > 0
  22308. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22309. if esep {
  22310. dd.ReadMapElemKey()
  22311. }
  22312. mk = uint16(dd.DecodeUint(16))
  22313. if esep {
  22314. dd.ReadMapElemValue()
  22315. }
  22316. if dd.TryDecodeAsNil() {
  22317. if d.h.DeleteOnNilMapValue {
  22318. delete(v, mk)
  22319. } else {
  22320. v[mk] = 0
  22321. }
  22322. continue
  22323. }
  22324. mv = dd.DecodeUint(64)
  22325. if v != nil {
  22326. v[mk] = mv
  22327. }
  22328. }
  22329. dd.ReadMapEnd()
  22330. return v, changed
  22331. }
  22332. func (d *Decoder) fastpathDecMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  22333. if rv.Kind() == reflect.Ptr {
  22334. vp := rv2i(rv).(*map[uint16]uintptr)
  22335. if v, changed := fastpathTV.DecMapUint16UintptrV(*vp, true, d); changed {
  22336. *vp = v
  22337. }
  22338. return
  22339. }
  22340. fastpathTV.DecMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), false, d)
  22341. }
  22342. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, d *Decoder) {
  22343. if v, changed := f.DecMapUint16UintptrV(*vp, true, d); changed {
  22344. *vp = v
  22345. }
  22346. }
  22347. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, canChange bool,
  22348. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  22349. dd, esep := d.d, d.hh.hasElemSeparators()
  22350. containerLen := dd.ReadMapStart()
  22351. if canChange && v == nil {
  22352. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22353. v = make(map[uint16]uintptr, xlen)
  22354. changed = true
  22355. }
  22356. if containerLen == 0 {
  22357. dd.ReadMapEnd()
  22358. return v, changed
  22359. }
  22360. var mk uint16
  22361. var mv uintptr
  22362. hasLen := containerLen > 0
  22363. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22364. if esep {
  22365. dd.ReadMapElemKey()
  22366. }
  22367. mk = uint16(dd.DecodeUint(16))
  22368. if esep {
  22369. dd.ReadMapElemValue()
  22370. }
  22371. if dd.TryDecodeAsNil() {
  22372. if d.h.DeleteOnNilMapValue {
  22373. delete(v, mk)
  22374. } else {
  22375. v[mk] = 0
  22376. }
  22377. continue
  22378. }
  22379. mv = uintptr(dd.DecodeUint(uintBitsize))
  22380. if v != nil {
  22381. v[mk] = mv
  22382. }
  22383. }
  22384. dd.ReadMapEnd()
  22385. return v, changed
  22386. }
  22387. func (d *Decoder) fastpathDecMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  22388. if rv.Kind() == reflect.Ptr {
  22389. vp := rv2i(rv).(*map[uint16]int)
  22390. if v, changed := fastpathTV.DecMapUint16IntV(*vp, true, d); changed {
  22391. *vp = v
  22392. }
  22393. return
  22394. }
  22395. fastpathTV.DecMapUint16IntV(rv2i(rv).(map[uint16]int), false, d)
  22396. }
  22397. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, d *Decoder) {
  22398. if v, changed := f.DecMapUint16IntV(*vp, true, d); changed {
  22399. *vp = v
  22400. }
  22401. }
  22402. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, canChange bool,
  22403. d *Decoder) (_ map[uint16]int, changed bool) {
  22404. dd, esep := d.d, d.hh.hasElemSeparators()
  22405. containerLen := dd.ReadMapStart()
  22406. if canChange && v == nil {
  22407. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22408. v = make(map[uint16]int, xlen)
  22409. changed = true
  22410. }
  22411. if containerLen == 0 {
  22412. dd.ReadMapEnd()
  22413. return v, changed
  22414. }
  22415. var mk uint16
  22416. var mv int
  22417. hasLen := containerLen > 0
  22418. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22419. if esep {
  22420. dd.ReadMapElemKey()
  22421. }
  22422. mk = uint16(dd.DecodeUint(16))
  22423. if esep {
  22424. dd.ReadMapElemValue()
  22425. }
  22426. if dd.TryDecodeAsNil() {
  22427. if d.h.DeleteOnNilMapValue {
  22428. delete(v, mk)
  22429. } else {
  22430. v[mk] = 0
  22431. }
  22432. continue
  22433. }
  22434. mv = int(dd.DecodeInt(intBitsize))
  22435. if v != nil {
  22436. v[mk] = mv
  22437. }
  22438. }
  22439. dd.ReadMapEnd()
  22440. return v, changed
  22441. }
  22442. func (d *Decoder) fastpathDecMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  22443. if rv.Kind() == reflect.Ptr {
  22444. vp := rv2i(rv).(*map[uint16]int8)
  22445. if v, changed := fastpathTV.DecMapUint16Int8V(*vp, true, d); changed {
  22446. *vp = v
  22447. }
  22448. return
  22449. }
  22450. fastpathTV.DecMapUint16Int8V(rv2i(rv).(map[uint16]int8), false, d)
  22451. }
  22452. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, d *Decoder) {
  22453. if v, changed := f.DecMapUint16Int8V(*vp, true, d); changed {
  22454. *vp = v
  22455. }
  22456. }
  22457. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, canChange bool,
  22458. d *Decoder) (_ map[uint16]int8, changed bool) {
  22459. dd, esep := d.d, d.hh.hasElemSeparators()
  22460. containerLen := dd.ReadMapStart()
  22461. if canChange && v == nil {
  22462. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  22463. v = make(map[uint16]int8, xlen)
  22464. changed = true
  22465. }
  22466. if containerLen == 0 {
  22467. dd.ReadMapEnd()
  22468. return v, changed
  22469. }
  22470. var mk uint16
  22471. var mv int8
  22472. hasLen := containerLen > 0
  22473. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22474. if esep {
  22475. dd.ReadMapElemKey()
  22476. }
  22477. mk = uint16(dd.DecodeUint(16))
  22478. if esep {
  22479. dd.ReadMapElemValue()
  22480. }
  22481. if dd.TryDecodeAsNil() {
  22482. if d.h.DeleteOnNilMapValue {
  22483. delete(v, mk)
  22484. } else {
  22485. v[mk] = 0
  22486. }
  22487. continue
  22488. }
  22489. mv = int8(dd.DecodeInt(8))
  22490. if v != nil {
  22491. v[mk] = mv
  22492. }
  22493. }
  22494. dd.ReadMapEnd()
  22495. return v, changed
  22496. }
  22497. func (d *Decoder) fastpathDecMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  22498. if rv.Kind() == reflect.Ptr {
  22499. vp := rv2i(rv).(*map[uint16]int16)
  22500. if v, changed := fastpathTV.DecMapUint16Int16V(*vp, true, d); changed {
  22501. *vp = v
  22502. }
  22503. return
  22504. }
  22505. fastpathTV.DecMapUint16Int16V(rv2i(rv).(map[uint16]int16), false, d)
  22506. }
  22507. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, d *Decoder) {
  22508. if v, changed := f.DecMapUint16Int16V(*vp, true, d); changed {
  22509. *vp = v
  22510. }
  22511. }
  22512. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, canChange bool,
  22513. d *Decoder) (_ map[uint16]int16, changed bool) {
  22514. dd, esep := d.d, d.hh.hasElemSeparators()
  22515. containerLen := dd.ReadMapStart()
  22516. if canChange && v == nil {
  22517. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  22518. v = make(map[uint16]int16, xlen)
  22519. changed = true
  22520. }
  22521. if containerLen == 0 {
  22522. dd.ReadMapEnd()
  22523. return v, changed
  22524. }
  22525. var mk uint16
  22526. var mv int16
  22527. hasLen := containerLen > 0
  22528. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22529. if esep {
  22530. dd.ReadMapElemKey()
  22531. }
  22532. mk = uint16(dd.DecodeUint(16))
  22533. if esep {
  22534. dd.ReadMapElemValue()
  22535. }
  22536. if dd.TryDecodeAsNil() {
  22537. if d.h.DeleteOnNilMapValue {
  22538. delete(v, mk)
  22539. } else {
  22540. v[mk] = 0
  22541. }
  22542. continue
  22543. }
  22544. mv = int16(dd.DecodeInt(16))
  22545. if v != nil {
  22546. v[mk] = mv
  22547. }
  22548. }
  22549. dd.ReadMapEnd()
  22550. return v, changed
  22551. }
  22552. func (d *Decoder) fastpathDecMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  22553. if rv.Kind() == reflect.Ptr {
  22554. vp := rv2i(rv).(*map[uint16]int32)
  22555. if v, changed := fastpathTV.DecMapUint16Int32V(*vp, true, d); changed {
  22556. *vp = v
  22557. }
  22558. return
  22559. }
  22560. fastpathTV.DecMapUint16Int32V(rv2i(rv).(map[uint16]int32), false, d)
  22561. }
  22562. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, d *Decoder) {
  22563. if v, changed := f.DecMapUint16Int32V(*vp, true, d); changed {
  22564. *vp = v
  22565. }
  22566. }
  22567. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, canChange bool,
  22568. d *Decoder) (_ map[uint16]int32, changed bool) {
  22569. dd, esep := d.d, d.hh.hasElemSeparators()
  22570. containerLen := dd.ReadMapStart()
  22571. if canChange && v == nil {
  22572. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  22573. v = make(map[uint16]int32, xlen)
  22574. changed = true
  22575. }
  22576. if containerLen == 0 {
  22577. dd.ReadMapEnd()
  22578. return v, changed
  22579. }
  22580. var mk uint16
  22581. var mv int32
  22582. hasLen := containerLen > 0
  22583. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22584. if esep {
  22585. dd.ReadMapElemKey()
  22586. }
  22587. mk = uint16(dd.DecodeUint(16))
  22588. if esep {
  22589. dd.ReadMapElemValue()
  22590. }
  22591. if dd.TryDecodeAsNil() {
  22592. if d.h.DeleteOnNilMapValue {
  22593. delete(v, mk)
  22594. } else {
  22595. v[mk] = 0
  22596. }
  22597. continue
  22598. }
  22599. mv = int32(dd.DecodeInt(32))
  22600. if v != nil {
  22601. v[mk] = mv
  22602. }
  22603. }
  22604. dd.ReadMapEnd()
  22605. return v, changed
  22606. }
  22607. func (d *Decoder) fastpathDecMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  22608. if rv.Kind() == reflect.Ptr {
  22609. vp := rv2i(rv).(*map[uint16]int64)
  22610. if v, changed := fastpathTV.DecMapUint16Int64V(*vp, true, d); changed {
  22611. *vp = v
  22612. }
  22613. return
  22614. }
  22615. fastpathTV.DecMapUint16Int64V(rv2i(rv).(map[uint16]int64), false, d)
  22616. }
  22617. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, d *Decoder) {
  22618. if v, changed := f.DecMapUint16Int64V(*vp, true, d); changed {
  22619. *vp = v
  22620. }
  22621. }
  22622. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, canChange bool,
  22623. d *Decoder) (_ map[uint16]int64, changed bool) {
  22624. dd, esep := d.d, d.hh.hasElemSeparators()
  22625. containerLen := dd.ReadMapStart()
  22626. if canChange && v == nil {
  22627. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22628. v = make(map[uint16]int64, xlen)
  22629. changed = true
  22630. }
  22631. if containerLen == 0 {
  22632. dd.ReadMapEnd()
  22633. return v, changed
  22634. }
  22635. var mk uint16
  22636. var mv int64
  22637. hasLen := containerLen > 0
  22638. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22639. if esep {
  22640. dd.ReadMapElemKey()
  22641. }
  22642. mk = uint16(dd.DecodeUint(16))
  22643. if esep {
  22644. dd.ReadMapElemValue()
  22645. }
  22646. if dd.TryDecodeAsNil() {
  22647. if d.h.DeleteOnNilMapValue {
  22648. delete(v, mk)
  22649. } else {
  22650. v[mk] = 0
  22651. }
  22652. continue
  22653. }
  22654. mv = dd.DecodeInt(64)
  22655. if v != nil {
  22656. v[mk] = mv
  22657. }
  22658. }
  22659. dd.ReadMapEnd()
  22660. return v, changed
  22661. }
  22662. func (d *Decoder) fastpathDecMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  22663. if rv.Kind() == reflect.Ptr {
  22664. vp := rv2i(rv).(*map[uint16]float32)
  22665. if v, changed := fastpathTV.DecMapUint16Float32V(*vp, true, d); changed {
  22666. *vp = v
  22667. }
  22668. return
  22669. }
  22670. fastpathTV.DecMapUint16Float32V(rv2i(rv).(map[uint16]float32), false, d)
  22671. }
  22672. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, d *Decoder) {
  22673. if v, changed := f.DecMapUint16Float32V(*vp, true, d); changed {
  22674. *vp = v
  22675. }
  22676. }
  22677. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, canChange bool,
  22678. d *Decoder) (_ map[uint16]float32, changed bool) {
  22679. dd, esep := d.d, d.hh.hasElemSeparators()
  22680. containerLen := dd.ReadMapStart()
  22681. if canChange && v == nil {
  22682. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  22683. v = make(map[uint16]float32, xlen)
  22684. changed = true
  22685. }
  22686. if containerLen == 0 {
  22687. dd.ReadMapEnd()
  22688. return v, changed
  22689. }
  22690. var mk uint16
  22691. var mv float32
  22692. hasLen := containerLen > 0
  22693. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22694. if esep {
  22695. dd.ReadMapElemKey()
  22696. }
  22697. mk = uint16(dd.DecodeUint(16))
  22698. if esep {
  22699. dd.ReadMapElemValue()
  22700. }
  22701. if dd.TryDecodeAsNil() {
  22702. if d.h.DeleteOnNilMapValue {
  22703. delete(v, mk)
  22704. } else {
  22705. v[mk] = 0
  22706. }
  22707. continue
  22708. }
  22709. mv = float32(dd.DecodeFloat(true))
  22710. if v != nil {
  22711. v[mk] = mv
  22712. }
  22713. }
  22714. dd.ReadMapEnd()
  22715. return v, changed
  22716. }
  22717. func (d *Decoder) fastpathDecMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  22718. if rv.Kind() == reflect.Ptr {
  22719. vp := rv2i(rv).(*map[uint16]float64)
  22720. if v, changed := fastpathTV.DecMapUint16Float64V(*vp, true, d); changed {
  22721. *vp = v
  22722. }
  22723. return
  22724. }
  22725. fastpathTV.DecMapUint16Float64V(rv2i(rv).(map[uint16]float64), false, d)
  22726. }
  22727. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, d *Decoder) {
  22728. if v, changed := f.DecMapUint16Float64V(*vp, true, d); changed {
  22729. *vp = v
  22730. }
  22731. }
  22732. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, canChange bool,
  22733. d *Decoder) (_ map[uint16]float64, changed bool) {
  22734. dd, esep := d.d, d.hh.hasElemSeparators()
  22735. containerLen := dd.ReadMapStart()
  22736. if canChange && v == nil {
  22737. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22738. v = make(map[uint16]float64, xlen)
  22739. changed = true
  22740. }
  22741. if containerLen == 0 {
  22742. dd.ReadMapEnd()
  22743. return v, changed
  22744. }
  22745. var mk uint16
  22746. var mv float64
  22747. hasLen := containerLen > 0
  22748. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22749. if esep {
  22750. dd.ReadMapElemKey()
  22751. }
  22752. mk = uint16(dd.DecodeUint(16))
  22753. if esep {
  22754. dd.ReadMapElemValue()
  22755. }
  22756. if dd.TryDecodeAsNil() {
  22757. if d.h.DeleteOnNilMapValue {
  22758. delete(v, mk)
  22759. } else {
  22760. v[mk] = 0
  22761. }
  22762. continue
  22763. }
  22764. mv = dd.DecodeFloat(false)
  22765. if v != nil {
  22766. v[mk] = mv
  22767. }
  22768. }
  22769. dd.ReadMapEnd()
  22770. return v, changed
  22771. }
  22772. func (d *Decoder) fastpathDecMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  22773. if rv.Kind() == reflect.Ptr {
  22774. vp := rv2i(rv).(*map[uint16]bool)
  22775. if v, changed := fastpathTV.DecMapUint16BoolV(*vp, true, d); changed {
  22776. *vp = v
  22777. }
  22778. return
  22779. }
  22780. fastpathTV.DecMapUint16BoolV(rv2i(rv).(map[uint16]bool), false, d)
  22781. }
  22782. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, d *Decoder) {
  22783. if v, changed := f.DecMapUint16BoolV(*vp, true, d); changed {
  22784. *vp = v
  22785. }
  22786. }
  22787. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, canChange bool,
  22788. d *Decoder) (_ map[uint16]bool, changed bool) {
  22789. dd, esep := d.d, d.hh.hasElemSeparators()
  22790. containerLen := dd.ReadMapStart()
  22791. if canChange && v == nil {
  22792. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  22793. v = make(map[uint16]bool, xlen)
  22794. changed = true
  22795. }
  22796. if containerLen == 0 {
  22797. dd.ReadMapEnd()
  22798. return v, changed
  22799. }
  22800. var mk uint16
  22801. var mv bool
  22802. hasLen := containerLen > 0
  22803. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22804. if esep {
  22805. dd.ReadMapElemKey()
  22806. }
  22807. mk = uint16(dd.DecodeUint(16))
  22808. if esep {
  22809. dd.ReadMapElemValue()
  22810. }
  22811. if dd.TryDecodeAsNil() {
  22812. if d.h.DeleteOnNilMapValue {
  22813. delete(v, mk)
  22814. } else {
  22815. v[mk] = false
  22816. }
  22817. continue
  22818. }
  22819. mv = dd.DecodeBool()
  22820. if v != nil {
  22821. v[mk] = mv
  22822. }
  22823. }
  22824. dd.ReadMapEnd()
  22825. return v, changed
  22826. }
  22827. func (d *Decoder) fastpathDecMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  22828. if rv.Kind() == reflect.Ptr {
  22829. vp := rv2i(rv).(*map[uint32]interface{})
  22830. if v, changed := fastpathTV.DecMapUint32IntfV(*vp, true, d); changed {
  22831. *vp = v
  22832. }
  22833. return
  22834. }
  22835. fastpathTV.DecMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), false, d)
  22836. }
  22837. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, d *Decoder) {
  22838. if v, changed := f.DecMapUint32IntfV(*vp, true, d); changed {
  22839. *vp = v
  22840. }
  22841. }
  22842. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, canChange bool,
  22843. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  22844. dd, esep := d.d, d.hh.hasElemSeparators()
  22845. containerLen := dd.ReadMapStart()
  22846. if canChange && v == nil {
  22847. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  22848. v = make(map[uint32]interface{}, xlen)
  22849. changed = true
  22850. }
  22851. if containerLen == 0 {
  22852. dd.ReadMapEnd()
  22853. return v, changed
  22854. }
  22855. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  22856. var mk uint32
  22857. var mv interface{}
  22858. hasLen := containerLen > 0
  22859. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22860. if esep {
  22861. dd.ReadMapElemKey()
  22862. }
  22863. mk = uint32(dd.DecodeUint(32))
  22864. if esep {
  22865. dd.ReadMapElemValue()
  22866. }
  22867. if dd.TryDecodeAsNil() {
  22868. if d.h.DeleteOnNilMapValue {
  22869. delete(v, mk)
  22870. } else {
  22871. v[mk] = nil
  22872. }
  22873. continue
  22874. }
  22875. if mapGet {
  22876. mv = v[mk]
  22877. } else {
  22878. mv = nil
  22879. }
  22880. d.decode(&mv)
  22881. if v != nil {
  22882. v[mk] = mv
  22883. }
  22884. }
  22885. dd.ReadMapEnd()
  22886. return v, changed
  22887. }
  22888. func (d *Decoder) fastpathDecMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  22889. if rv.Kind() == reflect.Ptr {
  22890. vp := rv2i(rv).(*map[uint32]string)
  22891. if v, changed := fastpathTV.DecMapUint32StringV(*vp, true, d); changed {
  22892. *vp = v
  22893. }
  22894. return
  22895. }
  22896. fastpathTV.DecMapUint32StringV(rv2i(rv).(map[uint32]string), false, d)
  22897. }
  22898. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, d *Decoder) {
  22899. if v, changed := f.DecMapUint32StringV(*vp, true, d); changed {
  22900. *vp = v
  22901. }
  22902. }
  22903. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, canChange bool,
  22904. d *Decoder) (_ map[uint32]string, changed bool) {
  22905. dd, esep := d.d, d.hh.hasElemSeparators()
  22906. containerLen := dd.ReadMapStart()
  22907. if canChange && v == nil {
  22908. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  22909. v = make(map[uint32]string, xlen)
  22910. changed = true
  22911. }
  22912. if containerLen == 0 {
  22913. dd.ReadMapEnd()
  22914. return v, changed
  22915. }
  22916. var mk uint32
  22917. var mv string
  22918. hasLen := containerLen > 0
  22919. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22920. if esep {
  22921. dd.ReadMapElemKey()
  22922. }
  22923. mk = uint32(dd.DecodeUint(32))
  22924. if esep {
  22925. dd.ReadMapElemValue()
  22926. }
  22927. if dd.TryDecodeAsNil() {
  22928. if d.h.DeleteOnNilMapValue {
  22929. delete(v, mk)
  22930. } else {
  22931. v[mk] = ""
  22932. }
  22933. continue
  22934. }
  22935. mv = dd.DecodeString()
  22936. if v != nil {
  22937. v[mk] = mv
  22938. }
  22939. }
  22940. dd.ReadMapEnd()
  22941. return v, changed
  22942. }
  22943. func (d *Decoder) fastpathDecMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  22944. if rv.Kind() == reflect.Ptr {
  22945. vp := rv2i(rv).(*map[uint32]uint)
  22946. if v, changed := fastpathTV.DecMapUint32UintV(*vp, true, d); changed {
  22947. *vp = v
  22948. }
  22949. return
  22950. }
  22951. fastpathTV.DecMapUint32UintV(rv2i(rv).(map[uint32]uint), false, d)
  22952. }
  22953. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, d *Decoder) {
  22954. if v, changed := f.DecMapUint32UintV(*vp, true, d); changed {
  22955. *vp = v
  22956. }
  22957. }
  22958. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, canChange bool,
  22959. d *Decoder) (_ map[uint32]uint, changed bool) {
  22960. dd, esep := d.d, d.hh.hasElemSeparators()
  22961. containerLen := dd.ReadMapStart()
  22962. if canChange && v == nil {
  22963. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22964. v = make(map[uint32]uint, xlen)
  22965. changed = true
  22966. }
  22967. if containerLen == 0 {
  22968. dd.ReadMapEnd()
  22969. return v, changed
  22970. }
  22971. var mk uint32
  22972. var mv uint
  22973. hasLen := containerLen > 0
  22974. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22975. if esep {
  22976. dd.ReadMapElemKey()
  22977. }
  22978. mk = uint32(dd.DecodeUint(32))
  22979. if esep {
  22980. dd.ReadMapElemValue()
  22981. }
  22982. if dd.TryDecodeAsNil() {
  22983. if d.h.DeleteOnNilMapValue {
  22984. delete(v, mk)
  22985. } else {
  22986. v[mk] = 0
  22987. }
  22988. continue
  22989. }
  22990. mv = uint(dd.DecodeUint(uintBitsize))
  22991. if v != nil {
  22992. v[mk] = mv
  22993. }
  22994. }
  22995. dd.ReadMapEnd()
  22996. return v, changed
  22997. }
  22998. func (d *Decoder) fastpathDecMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  22999. if rv.Kind() == reflect.Ptr {
  23000. vp := rv2i(rv).(*map[uint32]uint8)
  23001. if v, changed := fastpathTV.DecMapUint32Uint8V(*vp, true, d); changed {
  23002. *vp = v
  23003. }
  23004. return
  23005. }
  23006. fastpathTV.DecMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), false, d)
  23007. }
  23008. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, d *Decoder) {
  23009. if v, changed := f.DecMapUint32Uint8V(*vp, true, d); changed {
  23010. *vp = v
  23011. }
  23012. }
  23013. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, canChange bool,
  23014. d *Decoder) (_ map[uint32]uint8, changed bool) {
  23015. dd, esep := d.d, d.hh.hasElemSeparators()
  23016. containerLen := dd.ReadMapStart()
  23017. if canChange && v == nil {
  23018. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  23019. v = make(map[uint32]uint8, xlen)
  23020. changed = true
  23021. }
  23022. if containerLen == 0 {
  23023. dd.ReadMapEnd()
  23024. return v, changed
  23025. }
  23026. var mk uint32
  23027. var mv uint8
  23028. hasLen := containerLen > 0
  23029. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23030. if esep {
  23031. dd.ReadMapElemKey()
  23032. }
  23033. mk = uint32(dd.DecodeUint(32))
  23034. if esep {
  23035. dd.ReadMapElemValue()
  23036. }
  23037. if dd.TryDecodeAsNil() {
  23038. if d.h.DeleteOnNilMapValue {
  23039. delete(v, mk)
  23040. } else {
  23041. v[mk] = 0
  23042. }
  23043. continue
  23044. }
  23045. mv = uint8(dd.DecodeUint(8))
  23046. if v != nil {
  23047. v[mk] = mv
  23048. }
  23049. }
  23050. dd.ReadMapEnd()
  23051. return v, changed
  23052. }
  23053. func (d *Decoder) fastpathDecMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  23054. if rv.Kind() == reflect.Ptr {
  23055. vp := rv2i(rv).(*map[uint32]uint16)
  23056. if v, changed := fastpathTV.DecMapUint32Uint16V(*vp, true, d); changed {
  23057. *vp = v
  23058. }
  23059. return
  23060. }
  23061. fastpathTV.DecMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), false, d)
  23062. }
  23063. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, d *Decoder) {
  23064. if v, changed := f.DecMapUint32Uint16V(*vp, true, d); changed {
  23065. *vp = v
  23066. }
  23067. }
  23068. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, canChange bool,
  23069. d *Decoder) (_ map[uint32]uint16, changed bool) {
  23070. dd, esep := d.d, d.hh.hasElemSeparators()
  23071. containerLen := dd.ReadMapStart()
  23072. if canChange && v == nil {
  23073. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  23074. v = make(map[uint32]uint16, xlen)
  23075. changed = true
  23076. }
  23077. if containerLen == 0 {
  23078. dd.ReadMapEnd()
  23079. return v, changed
  23080. }
  23081. var mk uint32
  23082. var mv uint16
  23083. hasLen := containerLen > 0
  23084. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23085. if esep {
  23086. dd.ReadMapElemKey()
  23087. }
  23088. mk = uint32(dd.DecodeUint(32))
  23089. if esep {
  23090. dd.ReadMapElemValue()
  23091. }
  23092. if dd.TryDecodeAsNil() {
  23093. if d.h.DeleteOnNilMapValue {
  23094. delete(v, mk)
  23095. } else {
  23096. v[mk] = 0
  23097. }
  23098. continue
  23099. }
  23100. mv = uint16(dd.DecodeUint(16))
  23101. if v != nil {
  23102. v[mk] = mv
  23103. }
  23104. }
  23105. dd.ReadMapEnd()
  23106. return v, changed
  23107. }
  23108. func (d *Decoder) fastpathDecMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  23109. if rv.Kind() == reflect.Ptr {
  23110. vp := rv2i(rv).(*map[uint32]uint32)
  23111. if v, changed := fastpathTV.DecMapUint32Uint32V(*vp, true, d); changed {
  23112. *vp = v
  23113. }
  23114. return
  23115. }
  23116. fastpathTV.DecMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), false, d)
  23117. }
  23118. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, d *Decoder) {
  23119. if v, changed := f.DecMapUint32Uint32V(*vp, true, d); changed {
  23120. *vp = v
  23121. }
  23122. }
  23123. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, canChange bool,
  23124. d *Decoder) (_ map[uint32]uint32, changed bool) {
  23125. dd, esep := d.d, d.hh.hasElemSeparators()
  23126. containerLen := dd.ReadMapStart()
  23127. if canChange && v == nil {
  23128. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  23129. v = make(map[uint32]uint32, xlen)
  23130. changed = true
  23131. }
  23132. if containerLen == 0 {
  23133. dd.ReadMapEnd()
  23134. return v, changed
  23135. }
  23136. var mk uint32
  23137. var mv uint32
  23138. hasLen := containerLen > 0
  23139. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23140. if esep {
  23141. dd.ReadMapElemKey()
  23142. }
  23143. mk = uint32(dd.DecodeUint(32))
  23144. if esep {
  23145. dd.ReadMapElemValue()
  23146. }
  23147. if dd.TryDecodeAsNil() {
  23148. if d.h.DeleteOnNilMapValue {
  23149. delete(v, mk)
  23150. } else {
  23151. v[mk] = 0
  23152. }
  23153. continue
  23154. }
  23155. mv = uint32(dd.DecodeUint(32))
  23156. if v != nil {
  23157. v[mk] = mv
  23158. }
  23159. }
  23160. dd.ReadMapEnd()
  23161. return v, changed
  23162. }
  23163. func (d *Decoder) fastpathDecMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  23164. if rv.Kind() == reflect.Ptr {
  23165. vp := rv2i(rv).(*map[uint32]uint64)
  23166. if v, changed := fastpathTV.DecMapUint32Uint64V(*vp, true, d); changed {
  23167. *vp = v
  23168. }
  23169. return
  23170. }
  23171. fastpathTV.DecMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), false, d)
  23172. }
  23173. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, d *Decoder) {
  23174. if v, changed := f.DecMapUint32Uint64V(*vp, true, d); changed {
  23175. *vp = v
  23176. }
  23177. }
  23178. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, canChange bool,
  23179. d *Decoder) (_ map[uint32]uint64, changed bool) {
  23180. dd, esep := d.d, d.hh.hasElemSeparators()
  23181. containerLen := dd.ReadMapStart()
  23182. if canChange && v == nil {
  23183. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23184. v = make(map[uint32]uint64, xlen)
  23185. changed = true
  23186. }
  23187. if containerLen == 0 {
  23188. dd.ReadMapEnd()
  23189. return v, changed
  23190. }
  23191. var mk uint32
  23192. var mv uint64
  23193. hasLen := containerLen > 0
  23194. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23195. if esep {
  23196. dd.ReadMapElemKey()
  23197. }
  23198. mk = uint32(dd.DecodeUint(32))
  23199. if esep {
  23200. dd.ReadMapElemValue()
  23201. }
  23202. if dd.TryDecodeAsNil() {
  23203. if d.h.DeleteOnNilMapValue {
  23204. delete(v, mk)
  23205. } else {
  23206. v[mk] = 0
  23207. }
  23208. continue
  23209. }
  23210. mv = dd.DecodeUint(64)
  23211. if v != nil {
  23212. v[mk] = mv
  23213. }
  23214. }
  23215. dd.ReadMapEnd()
  23216. return v, changed
  23217. }
  23218. func (d *Decoder) fastpathDecMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  23219. if rv.Kind() == reflect.Ptr {
  23220. vp := rv2i(rv).(*map[uint32]uintptr)
  23221. if v, changed := fastpathTV.DecMapUint32UintptrV(*vp, true, d); changed {
  23222. *vp = v
  23223. }
  23224. return
  23225. }
  23226. fastpathTV.DecMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), false, d)
  23227. }
  23228. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, d *Decoder) {
  23229. if v, changed := f.DecMapUint32UintptrV(*vp, true, d); changed {
  23230. *vp = v
  23231. }
  23232. }
  23233. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, canChange bool,
  23234. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  23235. dd, esep := d.d, d.hh.hasElemSeparators()
  23236. containerLen := dd.ReadMapStart()
  23237. if canChange && v == nil {
  23238. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23239. v = make(map[uint32]uintptr, xlen)
  23240. changed = true
  23241. }
  23242. if containerLen == 0 {
  23243. dd.ReadMapEnd()
  23244. return v, changed
  23245. }
  23246. var mk uint32
  23247. var mv uintptr
  23248. hasLen := containerLen > 0
  23249. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23250. if esep {
  23251. dd.ReadMapElemKey()
  23252. }
  23253. mk = uint32(dd.DecodeUint(32))
  23254. if esep {
  23255. dd.ReadMapElemValue()
  23256. }
  23257. if dd.TryDecodeAsNil() {
  23258. if d.h.DeleteOnNilMapValue {
  23259. delete(v, mk)
  23260. } else {
  23261. v[mk] = 0
  23262. }
  23263. continue
  23264. }
  23265. mv = uintptr(dd.DecodeUint(uintBitsize))
  23266. if v != nil {
  23267. v[mk] = mv
  23268. }
  23269. }
  23270. dd.ReadMapEnd()
  23271. return v, changed
  23272. }
  23273. func (d *Decoder) fastpathDecMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  23274. if rv.Kind() == reflect.Ptr {
  23275. vp := rv2i(rv).(*map[uint32]int)
  23276. if v, changed := fastpathTV.DecMapUint32IntV(*vp, true, d); changed {
  23277. *vp = v
  23278. }
  23279. return
  23280. }
  23281. fastpathTV.DecMapUint32IntV(rv2i(rv).(map[uint32]int), false, d)
  23282. }
  23283. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, d *Decoder) {
  23284. if v, changed := f.DecMapUint32IntV(*vp, true, d); changed {
  23285. *vp = v
  23286. }
  23287. }
  23288. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, canChange bool,
  23289. d *Decoder) (_ map[uint32]int, changed bool) {
  23290. dd, esep := d.d, d.hh.hasElemSeparators()
  23291. containerLen := dd.ReadMapStart()
  23292. if canChange && v == nil {
  23293. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23294. v = make(map[uint32]int, xlen)
  23295. changed = true
  23296. }
  23297. if containerLen == 0 {
  23298. dd.ReadMapEnd()
  23299. return v, changed
  23300. }
  23301. var mk uint32
  23302. var mv int
  23303. hasLen := containerLen > 0
  23304. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23305. if esep {
  23306. dd.ReadMapElemKey()
  23307. }
  23308. mk = uint32(dd.DecodeUint(32))
  23309. if esep {
  23310. dd.ReadMapElemValue()
  23311. }
  23312. if dd.TryDecodeAsNil() {
  23313. if d.h.DeleteOnNilMapValue {
  23314. delete(v, mk)
  23315. } else {
  23316. v[mk] = 0
  23317. }
  23318. continue
  23319. }
  23320. mv = int(dd.DecodeInt(intBitsize))
  23321. if v != nil {
  23322. v[mk] = mv
  23323. }
  23324. }
  23325. dd.ReadMapEnd()
  23326. return v, changed
  23327. }
  23328. func (d *Decoder) fastpathDecMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  23329. if rv.Kind() == reflect.Ptr {
  23330. vp := rv2i(rv).(*map[uint32]int8)
  23331. if v, changed := fastpathTV.DecMapUint32Int8V(*vp, true, d); changed {
  23332. *vp = v
  23333. }
  23334. return
  23335. }
  23336. fastpathTV.DecMapUint32Int8V(rv2i(rv).(map[uint32]int8), false, d)
  23337. }
  23338. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, d *Decoder) {
  23339. if v, changed := f.DecMapUint32Int8V(*vp, true, d); changed {
  23340. *vp = v
  23341. }
  23342. }
  23343. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, canChange bool,
  23344. d *Decoder) (_ map[uint32]int8, changed bool) {
  23345. dd, esep := d.d, d.hh.hasElemSeparators()
  23346. containerLen := dd.ReadMapStart()
  23347. if canChange && v == nil {
  23348. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  23349. v = make(map[uint32]int8, xlen)
  23350. changed = true
  23351. }
  23352. if containerLen == 0 {
  23353. dd.ReadMapEnd()
  23354. return v, changed
  23355. }
  23356. var mk uint32
  23357. var mv int8
  23358. hasLen := containerLen > 0
  23359. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23360. if esep {
  23361. dd.ReadMapElemKey()
  23362. }
  23363. mk = uint32(dd.DecodeUint(32))
  23364. if esep {
  23365. dd.ReadMapElemValue()
  23366. }
  23367. if dd.TryDecodeAsNil() {
  23368. if d.h.DeleteOnNilMapValue {
  23369. delete(v, mk)
  23370. } else {
  23371. v[mk] = 0
  23372. }
  23373. continue
  23374. }
  23375. mv = int8(dd.DecodeInt(8))
  23376. if v != nil {
  23377. v[mk] = mv
  23378. }
  23379. }
  23380. dd.ReadMapEnd()
  23381. return v, changed
  23382. }
  23383. func (d *Decoder) fastpathDecMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  23384. if rv.Kind() == reflect.Ptr {
  23385. vp := rv2i(rv).(*map[uint32]int16)
  23386. if v, changed := fastpathTV.DecMapUint32Int16V(*vp, true, d); changed {
  23387. *vp = v
  23388. }
  23389. return
  23390. }
  23391. fastpathTV.DecMapUint32Int16V(rv2i(rv).(map[uint32]int16), false, d)
  23392. }
  23393. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, d *Decoder) {
  23394. if v, changed := f.DecMapUint32Int16V(*vp, true, d); changed {
  23395. *vp = v
  23396. }
  23397. }
  23398. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, canChange bool,
  23399. d *Decoder) (_ map[uint32]int16, changed bool) {
  23400. dd, esep := d.d, d.hh.hasElemSeparators()
  23401. containerLen := dd.ReadMapStart()
  23402. if canChange && v == nil {
  23403. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  23404. v = make(map[uint32]int16, xlen)
  23405. changed = true
  23406. }
  23407. if containerLen == 0 {
  23408. dd.ReadMapEnd()
  23409. return v, changed
  23410. }
  23411. var mk uint32
  23412. var mv int16
  23413. hasLen := containerLen > 0
  23414. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23415. if esep {
  23416. dd.ReadMapElemKey()
  23417. }
  23418. mk = uint32(dd.DecodeUint(32))
  23419. if esep {
  23420. dd.ReadMapElemValue()
  23421. }
  23422. if dd.TryDecodeAsNil() {
  23423. if d.h.DeleteOnNilMapValue {
  23424. delete(v, mk)
  23425. } else {
  23426. v[mk] = 0
  23427. }
  23428. continue
  23429. }
  23430. mv = int16(dd.DecodeInt(16))
  23431. if v != nil {
  23432. v[mk] = mv
  23433. }
  23434. }
  23435. dd.ReadMapEnd()
  23436. return v, changed
  23437. }
  23438. func (d *Decoder) fastpathDecMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  23439. if rv.Kind() == reflect.Ptr {
  23440. vp := rv2i(rv).(*map[uint32]int32)
  23441. if v, changed := fastpathTV.DecMapUint32Int32V(*vp, true, d); changed {
  23442. *vp = v
  23443. }
  23444. return
  23445. }
  23446. fastpathTV.DecMapUint32Int32V(rv2i(rv).(map[uint32]int32), false, d)
  23447. }
  23448. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, d *Decoder) {
  23449. if v, changed := f.DecMapUint32Int32V(*vp, true, d); changed {
  23450. *vp = v
  23451. }
  23452. }
  23453. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, canChange bool,
  23454. d *Decoder) (_ map[uint32]int32, changed bool) {
  23455. dd, esep := d.d, d.hh.hasElemSeparators()
  23456. containerLen := dd.ReadMapStart()
  23457. if canChange && v == nil {
  23458. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  23459. v = make(map[uint32]int32, xlen)
  23460. changed = true
  23461. }
  23462. if containerLen == 0 {
  23463. dd.ReadMapEnd()
  23464. return v, changed
  23465. }
  23466. var mk uint32
  23467. var mv int32
  23468. hasLen := containerLen > 0
  23469. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23470. if esep {
  23471. dd.ReadMapElemKey()
  23472. }
  23473. mk = uint32(dd.DecodeUint(32))
  23474. if esep {
  23475. dd.ReadMapElemValue()
  23476. }
  23477. if dd.TryDecodeAsNil() {
  23478. if d.h.DeleteOnNilMapValue {
  23479. delete(v, mk)
  23480. } else {
  23481. v[mk] = 0
  23482. }
  23483. continue
  23484. }
  23485. mv = int32(dd.DecodeInt(32))
  23486. if v != nil {
  23487. v[mk] = mv
  23488. }
  23489. }
  23490. dd.ReadMapEnd()
  23491. return v, changed
  23492. }
  23493. func (d *Decoder) fastpathDecMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  23494. if rv.Kind() == reflect.Ptr {
  23495. vp := rv2i(rv).(*map[uint32]int64)
  23496. if v, changed := fastpathTV.DecMapUint32Int64V(*vp, true, d); changed {
  23497. *vp = v
  23498. }
  23499. return
  23500. }
  23501. fastpathTV.DecMapUint32Int64V(rv2i(rv).(map[uint32]int64), false, d)
  23502. }
  23503. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, d *Decoder) {
  23504. if v, changed := f.DecMapUint32Int64V(*vp, true, d); changed {
  23505. *vp = v
  23506. }
  23507. }
  23508. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, canChange bool,
  23509. d *Decoder) (_ map[uint32]int64, changed bool) {
  23510. dd, esep := d.d, d.hh.hasElemSeparators()
  23511. containerLen := dd.ReadMapStart()
  23512. if canChange && v == nil {
  23513. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23514. v = make(map[uint32]int64, xlen)
  23515. changed = true
  23516. }
  23517. if containerLen == 0 {
  23518. dd.ReadMapEnd()
  23519. return v, changed
  23520. }
  23521. var mk uint32
  23522. var mv int64
  23523. hasLen := containerLen > 0
  23524. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23525. if esep {
  23526. dd.ReadMapElemKey()
  23527. }
  23528. mk = uint32(dd.DecodeUint(32))
  23529. if esep {
  23530. dd.ReadMapElemValue()
  23531. }
  23532. if dd.TryDecodeAsNil() {
  23533. if d.h.DeleteOnNilMapValue {
  23534. delete(v, mk)
  23535. } else {
  23536. v[mk] = 0
  23537. }
  23538. continue
  23539. }
  23540. mv = dd.DecodeInt(64)
  23541. if v != nil {
  23542. v[mk] = mv
  23543. }
  23544. }
  23545. dd.ReadMapEnd()
  23546. return v, changed
  23547. }
  23548. func (d *Decoder) fastpathDecMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  23549. if rv.Kind() == reflect.Ptr {
  23550. vp := rv2i(rv).(*map[uint32]float32)
  23551. if v, changed := fastpathTV.DecMapUint32Float32V(*vp, true, d); changed {
  23552. *vp = v
  23553. }
  23554. return
  23555. }
  23556. fastpathTV.DecMapUint32Float32V(rv2i(rv).(map[uint32]float32), false, d)
  23557. }
  23558. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, d *Decoder) {
  23559. if v, changed := f.DecMapUint32Float32V(*vp, true, d); changed {
  23560. *vp = v
  23561. }
  23562. }
  23563. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, canChange bool,
  23564. d *Decoder) (_ map[uint32]float32, changed bool) {
  23565. dd, esep := d.d, d.hh.hasElemSeparators()
  23566. containerLen := dd.ReadMapStart()
  23567. if canChange && v == nil {
  23568. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  23569. v = make(map[uint32]float32, xlen)
  23570. changed = true
  23571. }
  23572. if containerLen == 0 {
  23573. dd.ReadMapEnd()
  23574. return v, changed
  23575. }
  23576. var mk uint32
  23577. var mv float32
  23578. hasLen := containerLen > 0
  23579. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23580. if esep {
  23581. dd.ReadMapElemKey()
  23582. }
  23583. mk = uint32(dd.DecodeUint(32))
  23584. if esep {
  23585. dd.ReadMapElemValue()
  23586. }
  23587. if dd.TryDecodeAsNil() {
  23588. if d.h.DeleteOnNilMapValue {
  23589. delete(v, mk)
  23590. } else {
  23591. v[mk] = 0
  23592. }
  23593. continue
  23594. }
  23595. mv = float32(dd.DecodeFloat(true))
  23596. if v != nil {
  23597. v[mk] = mv
  23598. }
  23599. }
  23600. dd.ReadMapEnd()
  23601. return v, changed
  23602. }
  23603. func (d *Decoder) fastpathDecMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  23604. if rv.Kind() == reflect.Ptr {
  23605. vp := rv2i(rv).(*map[uint32]float64)
  23606. if v, changed := fastpathTV.DecMapUint32Float64V(*vp, true, d); changed {
  23607. *vp = v
  23608. }
  23609. return
  23610. }
  23611. fastpathTV.DecMapUint32Float64V(rv2i(rv).(map[uint32]float64), false, d)
  23612. }
  23613. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, d *Decoder) {
  23614. if v, changed := f.DecMapUint32Float64V(*vp, true, d); changed {
  23615. *vp = v
  23616. }
  23617. }
  23618. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, canChange bool,
  23619. d *Decoder) (_ map[uint32]float64, changed bool) {
  23620. dd, esep := d.d, d.hh.hasElemSeparators()
  23621. containerLen := dd.ReadMapStart()
  23622. if canChange && v == nil {
  23623. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23624. v = make(map[uint32]float64, xlen)
  23625. changed = true
  23626. }
  23627. if containerLen == 0 {
  23628. dd.ReadMapEnd()
  23629. return v, changed
  23630. }
  23631. var mk uint32
  23632. var mv float64
  23633. hasLen := containerLen > 0
  23634. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23635. if esep {
  23636. dd.ReadMapElemKey()
  23637. }
  23638. mk = uint32(dd.DecodeUint(32))
  23639. if esep {
  23640. dd.ReadMapElemValue()
  23641. }
  23642. if dd.TryDecodeAsNil() {
  23643. if d.h.DeleteOnNilMapValue {
  23644. delete(v, mk)
  23645. } else {
  23646. v[mk] = 0
  23647. }
  23648. continue
  23649. }
  23650. mv = dd.DecodeFloat(false)
  23651. if v != nil {
  23652. v[mk] = mv
  23653. }
  23654. }
  23655. dd.ReadMapEnd()
  23656. return v, changed
  23657. }
  23658. func (d *Decoder) fastpathDecMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  23659. if rv.Kind() == reflect.Ptr {
  23660. vp := rv2i(rv).(*map[uint32]bool)
  23661. if v, changed := fastpathTV.DecMapUint32BoolV(*vp, true, d); changed {
  23662. *vp = v
  23663. }
  23664. return
  23665. }
  23666. fastpathTV.DecMapUint32BoolV(rv2i(rv).(map[uint32]bool), false, d)
  23667. }
  23668. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, d *Decoder) {
  23669. if v, changed := f.DecMapUint32BoolV(*vp, true, d); changed {
  23670. *vp = v
  23671. }
  23672. }
  23673. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, canChange bool,
  23674. d *Decoder) (_ map[uint32]bool, changed bool) {
  23675. dd, esep := d.d, d.hh.hasElemSeparators()
  23676. containerLen := dd.ReadMapStart()
  23677. if canChange && v == nil {
  23678. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  23679. v = make(map[uint32]bool, xlen)
  23680. changed = true
  23681. }
  23682. if containerLen == 0 {
  23683. dd.ReadMapEnd()
  23684. return v, changed
  23685. }
  23686. var mk uint32
  23687. var mv bool
  23688. hasLen := containerLen > 0
  23689. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23690. if esep {
  23691. dd.ReadMapElemKey()
  23692. }
  23693. mk = uint32(dd.DecodeUint(32))
  23694. if esep {
  23695. dd.ReadMapElemValue()
  23696. }
  23697. if dd.TryDecodeAsNil() {
  23698. if d.h.DeleteOnNilMapValue {
  23699. delete(v, mk)
  23700. } else {
  23701. v[mk] = false
  23702. }
  23703. continue
  23704. }
  23705. mv = dd.DecodeBool()
  23706. if v != nil {
  23707. v[mk] = mv
  23708. }
  23709. }
  23710. dd.ReadMapEnd()
  23711. return v, changed
  23712. }
  23713. func (d *Decoder) fastpathDecMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  23714. if rv.Kind() == reflect.Ptr {
  23715. vp := rv2i(rv).(*map[uint64]interface{})
  23716. if v, changed := fastpathTV.DecMapUint64IntfV(*vp, true, d); changed {
  23717. *vp = v
  23718. }
  23719. return
  23720. }
  23721. fastpathTV.DecMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), false, d)
  23722. }
  23723. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, d *Decoder) {
  23724. if v, changed := f.DecMapUint64IntfV(*vp, true, d); changed {
  23725. *vp = v
  23726. }
  23727. }
  23728. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, canChange bool,
  23729. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  23730. dd, esep := d.d, d.hh.hasElemSeparators()
  23731. containerLen := dd.ReadMapStart()
  23732. if canChange && v == nil {
  23733. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  23734. v = make(map[uint64]interface{}, xlen)
  23735. changed = true
  23736. }
  23737. if containerLen == 0 {
  23738. dd.ReadMapEnd()
  23739. return v, changed
  23740. }
  23741. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  23742. var mk uint64
  23743. var mv interface{}
  23744. hasLen := containerLen > 0
  23745. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23746. if esep {
  23747. dd.ReadMapElemKey()
  23748. }
  23749. mk = dd.DecodeUint(64)
  23750. if esep {
  23751. dd.ReadMapElemValue()
  23752. }
  23753. if dd.TryDecodeAsNil() {
  23754. if d.h.DeleteOnNilMapValue {
  23755. delete(v, mk)
  23756. } else {
  23757. v[mk] = nil
  23758. }
  23759. continue
  23760. }
  23761. if mapGet {
  23762. mv = v[mk]
  23763. } else {
  23764. mv = nil
  23765. }
  23766. d.decode(&mv)
  23767. if v != nil {
  23768. v[mk] = mv
  23769. }
  23770. }
  23771. dd.ReadMapEnd()
  23772. return v, changed
  23773. }
  23774. func (d *Decoder) fastpathDecMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  23775. if rv.Kind() == reflect.Ptr {
  23776. vp := rv2i(rv).(*map[uint64]string)
  23777. if v, changed := fastpathTV.DecMapUint64StringV(*vp, true, d); changed {
  23778. *vp = v
  23779. }
  23780. return
  23781. }
  23782. fastpathTV.DecMapUint64StringV(rv2i(rv).(map[uint64]string), false, d)
  23783. }
  23784. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, d *Decoder) {
  23785. if v, changed := f.DecMapUint64StringV(*vp, true, d); changed {
  23786. *vp = v
  23787. }
  23788. }
  23789. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, canChange bool,
  23790. d *Decoder) (_ map[uint64]string, changed bool) {
  23791. dd, esep := d.d, d.hh.hasElemSeparators()
  23792. containerLen := dd.ReadMapStart()
  23793. if canChange && v == nil {
  23794. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  23795. v = make(map[uint64]string, xlen)
  23796. changed = true
  23797. }
  23798. if containerLen == 0 {
  23799. dd.ReadMapEnd()
  23800. return v, changed
  23801. }
  23802. var mk uint64
  23803. var mv string
  23804. hasLen := containerLen > 0
  23805. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23806. if esep {
  23807. dd.ReadMapElemKey()
  23808. }
  23809. mk = dd.DecodeUint(64)
  23810. if esep {
  23811. dd.ReadMapElemValue()
  23812. }
  23813. if dd.TryDecodeAsNil() {
  23814. if d.h.DeleteOnNilMapValue {
  23815. delete(v, mk)
  23816. } else {
  23817. v[mk] = ""
  23818. }
  23819. continue
  23820. }
  23821. mv = dd.DecodeString()
  23822. if v != nil {
  23823. v[mk] = mv
  23824. }
  23825. }
  23826. dd.ReadMapEnd()
  23827. return v, changed
  23828. }
  23829. func (d *Decoder) fastpathDecMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  23830. if rv.Kind() == reflect.Ptr {
  23831. vp := rv2i(rv).(*map[uint64]uint)
  23832. if v, changed := fastpathTV.DecMapUint64UintV(*vp, true, d); changed {
  23833. *vp = v
  23834. }
  23835. return
  23836. }
  23837. fastpathTV.DecMapUint64UintV(rv2i(rv).(map[uint64]uint), false, d)
  23838. }
  23839. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, d *Decoder) {
  23840. if v, changed := f.DecMapUint64UintV(*vp, true, d); changed {
  23841. *vp = v
  23842. }
  23843. }
  23844. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, canChange bool,
  23845. d *Decoder) (_ map[uint64]uint, changed bool) {
  23846. dd, esep := d.d, d.hh.hasElemSeparators()
  23847. containerLen := dd.ReadMapStart()
  23848. if canChange && v == nil {
  23849. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23850. v = make(map[uint64]uint, xlen)
  23851. changed = true
  23852. }
  23853. if containerLen == 0 {
  23854. dd.ReadMapEnd()
  23855. return v, changed
  23856. }
  23857. var mk uint64
  23858. var mv uint
  23859. hasLen := containerLen > 0
  23860. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23861. if esep {
  23862. dd.ReadMapElemKey()
  23863. }
  23864. mk = dd.DecodeUint(64)
  23865. if esep {
  23866. dd.ReadMapElemValue()
  23867. }
  23868. if dd.TryDecodeAsNil() {
  23869. if d.h.DeleteOnNilMapValue {
  23870. delete(v, mk)
  23871. } else {
  23872. v[mk] = 0
  23873. }
  23874. continue
  23875. }
  23876. mv = uint(dd.DecodeUint(uintBitsize))
  23877. if v != nil {
  23878. v[mk] = mv
  23879. }
  23880. }
  23881. dd.ReadMapEnd()
  23882. return v, changed
  23883. }
  23884. func (d *Decoder) fastpathDecMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  23885. if rv.Kind() == reflect.Ptr {
  23886. vp := rv2i(rv).(*map[uint64]uint8)
  23887. if v, changed := fastpathTV.DecMapUint64Uint8V(*vp, true, d); changed {
  23888. *vp = v
  23889. }
  23890. return
  23891. }
  23892. fastpathTV.DecMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), false, d)
  23893. }
  23894. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, d *Decoder) {
  23895. if v, changed := f.DecMapUint64Uint8V(*vp, true, d); changed {
  23896. *vp = v
  23897. }
  23898. }
  23899. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, canChange bool,
  23900. d *Decoder) (_ map[uint64]uint8, changed bool) {
  23901. dd, esep := d.d, d.hh.hasElemSeparators()
  23902. containerLen := dd.ReadMapStart()
  23903. if canChange && v == nil {
  23904. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23905. v = make(map[uint64]uint8, xlen)
  23906. changed = true
  23907. }
  23908. if containerLen == 0 {
  23909. dd.ReadMapEnd()
  23910. return v, changed
  23911. }
  23912. var mk uint64
  23913. var mv uint8
  23914. hasLen := containerLen > 0
  23915. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23916. if esep {
  23917. dd.ReadMapElemKey()
  23918. }
  23919. mk = dd.DecodeUint(64)
  23920. if esep {
  23921. dd.ReadMapElemValue()
  23922. }
  23923. if dd.TryDecodeAsNil() {
  23924. if d.h.DeleteOnNilMapValue {
  23925. delete(v, mk)
  23926. } else {
  23927. v[mk] = 0
  23928. }
  23929. continue
  23930. }
  23931. mv = uint8(dd.DecodeUint(8))
  23932. if v != nil {
  23933. v[mk] = mv
  23934. }
  23935. }
  23936. dd.ReadMapEnd()
  23937. return v, changed
  23938. }
  23939. func (d *Decoder) fastpathDecMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  23940. if rv.Kind() == reflect.Ptr {
  23941. vp := rv2i(rv).(*map[uint64]uint16)
  23942. if v, changed := fastpathTV.DecMapUint64Uint16V(*vp, true, d); changed {
  23943. *vp = v
  23944. }
  23945. return
  23946. }
  23947. fastpathTV.DecMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), false, d)
  23948. }
  23949. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, d *Decoder) {
  23950. if v, changed := f.DecMapUint64Uint16V(*vp, true, d); changed {
  23951. *vp = v
  23952. }
  23953. }
  23954. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, canChange bool,
  23955. d *Decoder) (_ map[uint64]uint16, changed bool) {
  23956. dd, esep := d.d, d.hh.hasElemSeparators()
  23957. containerLen := dd.ReadMapStart()
  23958. if canChange && v == nil {
  23959. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23960. v = make(map[uint64]uint16, xlen)
  23961. changed = true
  23962. }
  23963. if containerLen == 0 {
  23964. dd.ReadMapEnd()
  23965. return v, changed
  23966. }
  23967. var mk uint64
  23968. var mv uint16
  23969. hasLen := containerLen > 0
  23970. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23971. if esep {
  23972. dd.ReadMapElemKey()
  23973. }
  23974. mk = dd.DecodeUint(64)
  23975. if esep {
  23976. dd.ReadMapElemValue()
  23977. }
  23978. if dd.TryDecodeAsNil() {
  23979. if d.h.DeleteOnNilMapValue {
  23980. delete(v, mk)
  23981. } else {
  23982. v[mk] = 0
  23983. }
  23984. continue
  23985. }
  23986. mv = uint16(dd.DecodeUint(16))
  23987. if v != nil {
  23988. v[mk] = mv
  23989. }
  23990. }
  23991. dd.ReadMapEnd()
  23992. return v, changed
  23993. }
  23994. func (d *Decoder) fastpathDecMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  23995. if rv.Kind() == reflect.Ptr {
  23996. vp := rv2i(rv).(*map[uint64]uint32)
  23997. if v, changed := fastpathTV.DecMapUint64Uint32V(*vp, true, d); changed {
  23998. *vp = v
  23999. }
  24000. return
  24001. }
  24002. fastpathTV.DecMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), false, d)
  24003. }
  24004. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, d *Decoder) {
  24005. if v, changed := f.DecMapUint64Uint32V(*vp, true, d); changed {
  24006. *vp = v
  24007. }
  24008. }
  24009. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, canChange bool,
  24010. d *Decoder) (_ map[uint64]uint32, changed bool) {
  24011. dd, esep := d.d, d.hh.hasElemSeparators()
  24012. containerLen := dd.ReadMapStart()
  24013. if canChange && v == nil {
  24014. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24015. v = make(map[uint64]uint32, xlen)
  24016. changed = true
  24017. }
  24018. if containerLen == 0 {
  24019. dd.ReadMapEnd()
  24020. return v, changed
  24021. }
  24022. var mk uint64
  24023. var mv uint32
  24024. hasLen := containerLen > 0
  24025. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24026. if esep {
  24027. dd.ReadMapElemKey()
  24028. }
  24029. mk = dd.DecodeUint(64)
  24030. if esep {
  24031. dd.ReadMapElemValue()
  24032. }
  24033. if dd.TryDecodeAsNil() {
  24034. if d.h.DeleteOnNilMapValue {
  24035. delete(v, mk)
  24036. } else {
  24037. v[mk] = 0
  24038. }
  24039. continue
  24040. }
  24041. mv = uint32(dd.DecodeUint(32))
  24042. if v != nil {
  24043. v[mk] = mv
  24044. }
  24045. }
  24046. dd.ReadMapEnd()
  24047. return v, changed
  24048. }
  24049. func (d *Decoder) fastpathDecMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  24050. if rv.Kind() == reflect.Ptr {
  24051. vp := rv2i(rv).(*map[uint64]uint64)
  24052. if v, changed := fastpathTV.DecMapUint64Uint64V(*vp, true, d); changed {
  24053. *vp = v
  24054. }
  24055. return
  24056. }
  24057. fastpathTV.DecMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), false, d)
  24058. }
  24059. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, d *Decoder) {
  24060. if v, changed := f.DecMapUint64Uint64V(*vp, true, d); changed {
  24061. *vp = v
  24062. }
  24063. }
  24064. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, canChange bool,
  24065. d *Decoder) (_ map[uint64]uint64, changed bool) {
  24066. dd, esep := d.d, d.hh.hasElemSeparators()
  24067. containerLen := dd.ReadMapStart()
  24068. if canChange && v == nil {
  24069. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24070. v = make(map[uint64]uint64, xlen)
  24071. changed = true
  24072. }
  24073. if containerLen == 0 {
  24074. dd.ReadMapEnd()
  24075. return v, changed
  24076. }
  24077. var mk uint64
  24078. var mv uint64
  24079. hasLen := containerLen > 0
  24080. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24081. if esep {
  24082. dd.ReadMapElemKey()
  24083. }
  24084. mk = dd.DecodeUint(64)
  24085. if esep {
  24086. dd.ReadMapElemValue()
  24087. }
  24088. if dd.TryDecodeAsNil() {
  24089. if d.h.DeleteOnNilMapValue {
  24090. delete(v, mk)
  24091. } else {
  24092. v[mk] = 0
  24093. }
  24094. continue
  24095. }
  24096. mv = dd.DecodeUint(64)
  24097. if v != nil {
  24098. v[mk] = mv
  24099. }
  24100. }
  24101. dd.ReadMapEnd()
  24102. return v, changed
  24103. }
  24104. func (d *Decoder) fastpathDecMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  24105. if rv.Kind() == reflect.Ptr {
  24106. vp := rv2i(rv).(*map[uint64]uintptr)
  24107. if v, changed := fastpathTV.DecMapUint64UintptrV(*vp, true, d); changed {
  24108. *vp = v
  24109. }
  24110. return
  24111. }
  24112. fastpathTV.DecMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), false, d)
  24113. }
  24114. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, d *Decoder) {
  24115. if v, changed := f.DecMapUint64UintptrV(*vp, true, d); changed {
  24116. *vp = v
  24117. }
  24118. }
  24119. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, canChange bool,
  24120. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  24121. dd, esep := d.d, d.hh.hasElemSeparators()
  24122. containerLen := dd.ReadMapStart()
  24123. if canChange && v == nil {
  24124. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24125. v = make(map[uint64]uintptr, xlen)
  24126. changed = true
  24127. }
  24128. if containerLen == 0 {
  24129. dd.ReadMapEnd()
  24130. return v, changed
  24131. }
  24132. var mk uint64
  24133. var mv uintptr
  24134. hasLen := containerLen > 0
  24135. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24136. if esep {
  24137. dd.ReadMapElemKey()
  24138. }
  24139. mk = dd.DecodeUint(64)
  24140. if esep {
  24141. dd.ReadMapElemValue()
  24142. }
  24143. if dd.TryDecodeAsNil() {
  24144. if d.h.DeleteOnNilMapValue {
  24145. delete(v, mk)
  24146. } else {
  24147. v[mk] = 0
  24148. }
  24149. continue
  24150. }
  24151. mv = uintptr(dd.DecodeUint(uintBitsize))
  24152. if v != nil {
  24153. v[mk] = mv
  24154. }
  24155. }
  24156. dd.ReadMapEnd()
  24157. return v, changed
  24158. }
  24159. func (d *Decoder) fastpathDecMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  24160. if rv.Kind() == reflect.Ptr {
  24161. vp := rv2i(rv).(*map[uint64]int)
  24162. if v, changed := fastpathTV.DecMapUint64IntV(*vp, true, d); changed {
  24163. *vp = v
  24164. }
  24165. return
  24166. }
  24167. fastpathTV.DecMapUint64IntV(rv2i(rv).(map[uint64]int), false, d)
  24168. }
  24169. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, d *Decoder) {
  24170. if v, changed := f.DecMapUint64IntV(*vp, true, d); changed {
  24171. *vp = v
  24172. }
  24173. }
  24174. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, canChange bool,
  24175. d *Decoder) (_ map[uint64]int, changed bool) {
  24176. dd, esep := d.d, d.hh.hasElemSeparators()
  24177. containerLen := dd.ReadMapStart()
  24178. if canChange && v == nil {
  24179. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24180. v = make(map[uint64]int, xlen)
  24181. changed = true
  24182. }
  24183. if containerLen == 0 {
  24184. dd.ReadMapEnd()
  24185. return v, changed
  24186. }
  24187. var mk uint64
  24188. var mv int
  24189. hasLen := containerLen > 0
  24190. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24191. if esep {
  24192. dd.ReadMapElemKey()
  24193. }
  24194. mk = dd.DecodeUint(64)
  24195. if esep {
  24196. dd.ReadMapElemValue()
  24197. }
  24198. if dd.TryDecodeAsNil() {
  24199. if d.h.DeleteOnNilMapValue {
  24200. delete(v, mk)
  24201. } else {
  24202. v[mk] = 0
  24203. }
  24204. continue
  24205. }
  24206. mv = int(dd.DecodeInt(intBitsize))
  24207. if v != nil {
  24208. v[mk] = mv
  24209. }
  24210. }
  24211. dd.ReadMapEnd()
  24212. return v, changed
  24213. }
  24214. func (d *Decoder) fastpathDecMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  24215. if rv.Kind() == reflect.Ptr {
  24216. vp := rv2i(rv).(*map[uint64]int8)
  24217. if v, changed := fastpathTV.DecMapUint64Int8V(*vp, true, d); changed {
  24218. *vp = v
  24219. }
  24220. return
  24221. }
  24222. fastpathTV.DecMapUint64Int8V(rv2i(rv).(map[uint64]int8), false, d)
  24223. }
  24224. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, d *Decoder) {
  24225. if v, changed := f.DecMapUint64Int8V(*vp, true, d); changed {
  24226. *vp = v
  24227. }
  24228. }
  24229. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, canChange bool,
  24230. d *Decoder) (_ map[uint64]int8, changed bool) {
  24231. dd, esep := d.d, d.hh.hasElemSeparators()
  24232. containerLen := dd.ReadMapStart()
  24233. if canChange && v == nil {
  24234. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24235. v = make(map[uint64]int8, xlen)
  24236. changed = true
  24237. }
  24238. if containerLen == 0 {
  24239. dd.ReadMapEnd()
  24240. return v, changed
  24241. }
  24242. var mk uint64
  24243. var mv int8
  24244. hasLen := containerLen > 0
  24245. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24246. if esep {
  24247. dd.ReadMapElemKey()
  24248. }
  24249. mk = dd.DecodeUint(64)
  24250. if esep {
  24251. dd.ReadMapElemValue()
  24252. }
  24253. if dd.TryDecodeAsNil() {
  24254. if d.h.DeleteOnNilMapValue {
  24255. delete(v, mk)
  24256. } else {
  24257. v[mk] = 0
  24258. }
  24259. continue
  24260. }
  24261. mv = int8(dd.DecodeInt(8))
  24262. if v != nil {
  24263. v[mk] = mv
  24264. }
  24265. }
  24266. dd.ReadMapEnd()
  24267. return v, changed
  24268. }
  24269. func (d *Decoder) fastpathDecMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  24270. if rv.Kind() == reflect.Ptr {
  24271. vp := rv2i(rv).(*map[uint64]int16)
  24272. if v, changed := fastpathTV.DecMapUint64Int16V(*vp, true, d); changed {
  24273. *vp = v
  24274. }
  24275. return
  24276. }
  24277. fastpathTV.DecMapUint64Int16V(rv2i(rv).(map[uint64]int16), false, d)
  24278. }
  24279. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, d *Decoder) {
  24280. if v, changed := f.DecMapUint64Int16V(*vp, true, d); changed {
  24281. *vp = v
  24282. }
  24283. }
  24284. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, canChange bool,
  24285. d *Decoder) (_ map[uint64]int16, changed bool) {
  24286. dd, esep := d.d, d.hh.hasElemSeparators()
  24287. containerLen := dd.ReadMapStart()
  24288. if canChange && v == nil {
  24289. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24290. v = make(map[uint64]int16, xlen)
  24291. changed = true
  24292. }
  24293. if containerLen == 0 {
  24294. dd.ReadMapEnd()
  24295. return v, changed
  24296. }
  24297. var mk uint64
  24298. var mv int16
  24299. hasLen := containerLen > 0
  24300. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24301. if esep {
  24302. dd.ReadMapElemKey()
  24303. }
  24304. mk = dd.DecodeUint(64)
  24305. if esep {
  24306. dd.ReadMapElemValue()
  24307. }
  24308. if dd.TryDecodeAsNil() {
  24309. if d.h.DeleteOnNilMapValue {
  24310. delete(v, mk)
  24311. } else {
  24312. v[mk] = 0
  24313. }
  24314. continue
  24315. }
  24316. mv = int16(dd.DecodeInt(16))
  24317. if v != nil {
  24318. v[mk] = mv
  24319. }
  24320. }
  24321. dd.ReadMapEnd()
  24322. return v, changed
  24323. }
  24324. func (d *Decoder) fastpathDecMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  24325. if rv.Kind() == reflect.Ptr {
  24326. vp := rv2i(rv).(*map[uint64]int32)
  24327. if v, changed := fastpathTV.DecMapUint64Int32V(*vp, true, d); changed {
  24328. *vp = v
  24329. }
  24330. return
  24331. }
  24332. fastpathTV.DecMapUint64Int32V(rv2i(rv).(map[uint64]int32), false, d)
  24333. }
  24334. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, d *Decoder) {
  24335. if v, changed := f.DecMapUint64Int32V(*vp, true, d); changed {
  24336. *vp = v
  24337. }
  24338. }
  24339. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, canChange bool,
  24340. d *Decoder) (_ map[uint64]int32, changed bool) {
  24341. dd, esep := d.d, d.hh.hasElemSeparators()
  24342. containerLen := dd.ReadMapStart()
  24343. if canChange && v == nil {
  24344. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24345. v = make(map[uint64]int32, xlen)
  24346. changed = true
  24347. }
  24348. if containerLen == 0 {
  24349. dd.ReadMapEnd()
  24350. return v, changed
  24351. }
  24352. var mk uint64
  24353. var mv int32
  24354. hasLen := containerLen > 0
  24355. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24356. if esep {
  24357. dd.ReadMapElemKey()
  24358. }
  24359. mk = dd.DecodeUint(64)
  24360. if esep {
  24361. dd.ReadMapElemValue()
  24362. }
  24363. if dd.TryDecodeAsNil() {
  24364. if d.h.DeleteOnNilMapValue {
  24365. delete(v, mk)
  24366. } else {
  24367. v[mk] = 0
  24368. }
  24369. continue
  24370. }
  24371. mv = int32(dd.DecodeInt(32))
  24372. if v != nil {
  24373. v[mk] = mv
  24374. }
  24375. }
  24376. dd.ReadMapEnd()
  24377. return v, changed
  24378. }
  24379. func (d *Decoder) fastpathDecMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  24380. if rv.Kind() == reflect.Ptr {
  24381. vp := rv2i(rv).(*map[uint64]int64)
  24382. if v, changed := fastpathTV.DecMapUint64Int64V(*vp, true, d); changed {
  24383. *vp = v
  24384. }
  24385. return
  24386. }
  24387. fastpathTV.DecMapUint64Int64V(rv2i(rv).(map[uint64]int64), false, d)
  24388. }
  24389. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, d *Decoder) {
  24390. if v, changed := f.DecMapUint64Int64V(*vp, true, d); changed {
  24391. *vp = v
  24392. }
  24393. }
  24394. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, canChange bool,
  24395. d *Decoder) (_ map[uint64]int64, changed bool) {
  24396. dd, esep := d.d, d.hh.hasElemSeparators()
  24397. containerLen := dd.ReadMapStart()
  24398. if canChange && v == nil {
  24399. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24400. v = make(map[uint64]int64, xlen)
  24401. changed = true
  24402. }
  24403. if containerLen == 0 {
  24404. dd.ReadMapEnd()
  24405. return v, changed
  24406. }
  24407. var mk uint64
  24408. var mv int64
  24409. hasLen := containerLen > 0
  24410. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24411. if esep {
  24412. dd.ReadMapElemKey()
  24413. }
  24414. mk = dd.DecodeUint(64)
  24415. if esep {
  24416. dd.ReadMapElemValue()
  24417. }
  24418. if dd.TryDecodeAsNil() {
  24419. if d.h.DeleteOnNilMapValue {
  24420. delete(v, mk)
  24421. } else {
  24422. v[mk] = 0
  24423. }
  24424. continue
  24425. }
  24426. mv = dd.DecodeInt(64)
  24427. if v != nil {
  24428. v[mk] = mv
  24429. }
  24430. }
  24431. dd.ReadMapEnd()
  24432. return v, changed
  24433. }
  24434. func (d *Decoder) fastpathDecMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  24435. if rv.Kind() == reflect.Ptr {
  24436. vp := rv2i(rv).(*map[uint64]float32)
  24437. if v, changed := fastpathTV.DecMapUint64Float32V(*vp, true, d); changed {
  24438. *vp = v
  24439. }
  24440. return
  24441. }
  24442. fastpathTV.DecMapUint64Float32V(rv2i(rv).(map[uint64]float32), false, d)
  24443. }
  24444. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, d *Decoder) {
  24445. if v, changed := f.DecMapUint64Float32V(*vp, true, d); changed {
  24446. *vp = v
  24447. }
  24448. }
  24449. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, canChange bool,
  24450. d *Decoder) (_ map[uint64]float32, changed bool) {
  24451. dd, esep := d.d, d.hh.hasElemSeparators()
  24452. containerLen := dd.ReadMapStart()
  24453. if canChange && v == nil {
  24454. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24455. v = make(map[uint64]float32, xlen)
  24456. changed = true
  24457. }
  24458. if containerLen == 0 {
  24459. dd.ReadMapEnd()
  24460. return v, changed
  24461. }
  24462. var mk uint64
  24463. var mv float32
  24464. hasLen := containerLen > 0
  24465. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24466. if esep {
  24467. dd.ReadMapElemKey()
  24468. }
  24469. mk = dd.DecodeUint(64)
  24470. if esep {
  24471. dd.ReadMapElemValue()
  24472. }
  24473. if dd.TryDecodeAsNil() {
  24474. if d.h.DeleteOnNilMapValue {
  24475. delete(v, mk)
  24476. } else {
  24477. v[mk] = 0
  24478. }
  24479. continue
  24480. }
  24481. mv = float32(dd.DecodeFloat(true))
  24482. if v != nil {
  24483. v[mk] = mv
  24484. }
  24485. }
  24486. dd.ReadMapEnd()
  24487. return v, changed
  24488. }
  24489. func (d *Decoder) fastpathDecMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  24490. if rv.Kind() == reflect.Ptr {
  24491. vp := rv2i(rv).(*map[uint64]float64)
  24492. if v, changed := fastpathTV.DecMapUint64Float64V(*vp, true, d); changed {
  24493. *vp = v
  24494. }
  24495. return
  24496. }
  24497. fastpathTV.DecMapUint64Float64V(rv2i(rv).(map[uint64]float64), false, d)
  24498. }
  24499. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, d *Decoder) {
  24500. if v, changed := f.DecMapUint64Float64V(*vp, true, d); changed {
  24501. *vp = v
  24502. }
  24503. }
  24504. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, canChange bool,
  24505. d *Decoder) (_ map[uint64]float64, changed bool) {
  24506. dd, esep := d.d, d.hh.hasElemSeparators()
  24507. containerLen := dd.ReadMapStart()
  24508. if canChange && v == nil {
  24509. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24510. v = make(map[uint64]float64, xlen)
  24511. changed = true
  24512. }
  24513. if containerLen == 0 {
  24514. dd.ReadMapEnd()
  24515. return v, changed
  24516. }
  24517. var mk uint64
  24518. var mv float64
  24519. hasLen := containerLen > 0
  24520. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24521. if esep {
  24522. dd.ReadMapElemKey()
  24523. }
  24524. mk = dd.DecodeUint(64)
  24525. if esep {
  24526. dd.ReadMapElemValue()
  24527. }
  24528. if dd.TryDecodeAsNil() {
  24529. if d.h.DeleteOnNilMapValue {
  24530. delete(v, mk)
  24531. } else {
  24532. v[mk] = 0
  24533. }
  24534. continue
  24535. }
  24536. mv = dd.DecodeFloat(false)
  24537. if v != nil {
  24538. v[mk] = mv
  24539. }
  24540. }
  24541. dd.ReadMapEnd()
  24542. return v, changed
  24543. }
  24544. func (d *Decoder) fastpathDecMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  24545. if rv.Kind() == reflect.Ptr {
  24546. vp := rv2i(rv).(*map[uint64]bool)
  24547. if v, changed := fastpathTV.DecMapUint64BoolV(*vp, true, d); changed {
  24548. *vp = v
  24549. }
  24550. return
  24551. }
  24552. fastpathTV.DecMapUint64BoolV(rv2i(rv).(map[uint64]bool), false, d)
  24553. }
  24554. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, d *Decoder) {
  24555. if v, changed := f.DecMapUint64BoolV(*vp, true, d); changed {
  24556. *vp = v
  24557. }
  24558. }
  24559. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, canChange bool,
  24560. d *Decoder) (_ map[uint64]bool, changed bool) {
  24561. dd, esep := d.d, d.hh.hasElemSeparators()
  24562. containerLen := dd.ReadMapStart()
  24563. if canChange && v == nil {
  24564. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24565. v = make(map[uint64]bool, xlen)
  24566. changed = true
  24567. }
  24568. if containerLen == 0 {
  24569. dd.ReadMapEnd()
  24570. return v, changed
  24571. }
  24572. var mk uint64
  24573. var mv bool
  24574. hasLen := containerLen > 0
  24575. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24576. if esep {
  24577. dd.ReadMapElemKey()
  24578. }
  24579. mk = dd.DecodeUint(64)
  24580. if esep {
  24581. dd.ReadMapElemValue()
  24582. }
  24583. if dd.TryDecodeAsNil() {
  24584. if d.h.DeleteOnNilMapValue {
  24585. delete(v, mk)
  24586. } else {
  24587. v[mk] = false
  24588. }
  24589. continue
  24590. }
  24591. mv = dd.DecodeBool()
  24592. if v != nil {
  24593. v[mk] = mv
  24594. }
  24595. }
  24596. dd.ReadMapEnd()
  24597. return v, changed
  24598. }
  24599. func (d *Decoder) fastpathDecMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  24600. if rv.Kind() == reflect.Ptr {
  24601. vp := rv2i(rv).(*map[uintptr]interface{})
  24602. if v, changed := fastpathTV.DecMapUintptrIntfV(*vp, true, d); changed {
  24603. *vp = v
  24604. }
  24605. return
  24606. }
  24607. fastpathTV.DecMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), false, d)
  24608. }
  24609. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, d *Decoder) {
  24610. if v, changed := f.DecMapUintptrIntfV(*vp, true, d); changed {
  24611. *vp = v
  24612. }
  24613. }
  24614. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, canChange bool,
  24615. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  24616. dd, esep := d.d, d.hh.hasElemSeparators()
  24617. containerLen := dd.ReadMapStart()
  24618. if canChange && v == nil {
  24619. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  24620. v = make(map[uintptr]interface{}, xlen)
  24621. changed = true
  24622. }
  24623. if containerLen == 0 {
  24624. dd.ReadMapEnd()
  24625. return v, changed
  24626. }
  24627. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  24628. var mk uintptr
  24629. var mv interface{}
  24630. hasLen := containerLen > 0
  24631. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24632. if esep {
  24633. dd.ReadMapElemKey()
  24634. }
  24635. mk = uintptr(dd.DecodeUint(uintBitsize))
  24636. if esep {
  24637. dd.ReadMapElemValue()
  24638. }
  24639. if dd.TryDecodeAsNil() {
  24640. if d.h.DeleteOnNilMapValue {
  24641. delete(v, mk)
  24642. } else {
  24643. v[mk] = nil
  24644. }
  24645. continue
  24646. }
  24647. if mapGet {
  24648. mv = v[mk]
  24649. } else {
  24650. mv = nil
  24651. }
  24652. d.decode(&mv)
  24653. if v != nil {
  24654. v[mk] = mv
  24655. }
  24656. }
  24657. dd.ReadMapEnd()
  24658. return v, changed
  24659. }
  24660. func (d *Decoder) fastpathDecMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  24661. if rv.Kind() == reflect.Ptr {
  24662. vp := rv2i(rv).(*map[uintptr]string)
  24663. if v, changed := fastpathTV.DecMapUintptrStringV(*vp, true, d); changed {
  24664. *vp = v
  24665. }
  24666. return
  24667. }
  24668. fastpathTV.DecMapUintptrStringV(rv2i(rv).(map[uintptr]string), false, d)
  24669. }
  24670. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, d *Decoder) {
  24671. if v, changed := f.DecMapUintptrStringV(*vp, true, d); changed {
  24672. *vp = v
  24673. }
  24674. }
  24675. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, canChange bool,
  24676. d *Decoder) (_ map[uintptr]string, changed bool) {
  24677. dd, esep := d.d, d.hh.hasElemSeparators()
  24678. containerLen := dd.ReadMapStart()
  24679. if canChange && v == nil {
  24680. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  24681. v = make(map[uintptr]string, xlen)
  24682. changed = true
  24683. }
  24684. if containerLen == 0 {
  24685. dd.ReadMapEnd()
  24686. return v, changed
  24687. }
  24688. var mk uintptr
  24689. var mv string
  24690. hasLen := containerLen > 0
  24691. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24692. if esep {
  24693. dd.ReadMapElemKey()
  24694. }
  24695. mk = uintptr(dd.DecodeUint(uintBitsize))
  24696. if esep {
  24697. dd.ReadMapElemValue()
  24698. }
  24699. if dd.TryDecodeAsNil() {
  24700. if d.h.DeleteOnNilMapValue {
  24701. delete(v, mk)
  24702. } else {
  24703. v[mk] = ""
  24704. }
  24705. continue
  24706. }
  24707. mv = dd.DecodeString()
  24708. if v != nil {
  24709. v[mk] = mv
  24710. }
  24711. }
  24712. dd.ReadMapEnd()
  24713. return v, changed
  24714. }
  24715. func (d *Decoder) fastpathDecMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  24716. if rv.Kind() == reflect.Ptr {
  24717. vp := rv2i(rv).(*map[uintptr]uint)
  24718. if v, changed := fastpathTV.DecMapUintptrUintV(*vp, true, d); changed {
  24719. *vp = v
  24720. }
  24721. return
  24722. }
  24723. fastpathTV.DecMapUintptrUintV(rv2i(rv).(map[uintptr]uint), false, d)
  24724. }
  24725. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, d *Decoder) {
  24726. if v, changed := f.DecMapUintptrUintV(*vp, true, d); changed {
  24727. *vp = v
  24728. }
  24729. }
  24730. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, canChange bool,
  24731. d *Decoder) (_ map[uintptr]uint, changed bool) {
  24732. dd, esep := d.d, d.hh.hasElemSeparators()
  24733. containerLen := dd.ReadMapStart()
  24734. if canChange && v == nil {
  24735. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24736. v = make(map[uintptr]uint, xlen)
  24737. changed = true
  24738. }
  24739. if containerLen == 0 {
  24740. dd.ReadMapEnd()
  24741. return v, changed
  24742. }
  24743. var mk uintptr
  24744. var mv uint
  24745. hasLen := containerLen > 0
  24746. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24747. if esep {
  24748. dd.ReadMapElemKey()
  24749. }
  24750. mk = uintptr(dd.DecodeUint(uintBitsize))
  24751. if esep {
  24752. dd.ReadMapElemValue()
  24753. }
  24754. if dd.TryDecodeAsNil() {
  24755. if d.h.DeleteOnNilMapValue {
  24756. delete(v, mk)
  24757. } else {
  24758. v[mk] = 0
  24759. }
  24760. continue
  24761. }
  24762. mv = uint(dd.DecodeUint(uintBitsize))
  24763. if v != nil {
  24764. v[mk] = mv
  24765. }
  24766. }
  24767. dd.ReadMapEnd()
  24768. return v, changed
  24769. }
  24770. func (d *Decoder) fastpathDecMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  24771. if rv.Kind() == reflect.Ptr {
  24772. vp := rv2i(rv).(*map[uintptr]uint8)
  24773. if v, changed := fastpathTV.DecMapUintptrUint8V(*vp, true, d); changed {
  24774. *vp = v
  24775. }
  24776. return
  24777. }
  24778. fastpathTV.DecMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), false, d)
  24779. }
  24780. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, d *Decoder) {
  24781. if v, changed := f.DecMapUintptrUint8V(*vp, true, d); changed {
  24782. *vp = v
  24783. }
  24784. }
  24785. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, canChange bool,
  24786. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  24787. dd, esep := d.d, d.hh.hasElemSeparators()
  24788. containerLen := dd.ReadMapStart()
  24789. if canChange && v == nil {
  24790. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24791. v = make(map[uintptr]uint8, xlen)
  24792. changed = true
  24793. }
  24794. if containerLen == 0 {
  24795. dd.ReadMapEnd()
  24796. return v, changed
  24797. }
  24798. var mk uintptr
  24799. var mv uint8
  24800. hasLen := containerLen > 0
  24801. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24802. if esep {
  24803. dd.ReadMapElemKey()
  24804. }
  24805. mk = uintptr(dd.DecodeUint(uintBitsize))
  24806. if esep {
  24807. dd.ReadMapElemValue()
  24808. }
  24809. if dd.TryDecodeAsNil() {
  24810. if d.h.DeleteOnNilMapValue {
  24811. delete(v, mk)
  24812. } else {
  24813. v[mk] = 0
  24814. }
  24815. continue
  24816. }
  24817. mv = uint8(dd.DecodeUint(8))
  24818. if v != nil {
  24819. v[mk] = mv
  24820. }
  24821. }
  24822. dd.ReadMapEnd()
  24823. return v, changed
  24824. }
  24825. func (d *Decoder) fastpathDecMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  24826. if rv.Kind() == reflect.Ptr {
  24827. vp := rv2i(rv).(*map[uintptr]uint16)
  24828. if v, changed := fastpathTV.DecMapUintptrUint16V(*vp, true, d); changed {
  24829. *vp = v
  24830. }
  24831. return
  24832. }
  24833. fastpathTV.DecMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), false, d)
  24834. }
  24835. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, d *Decoder) {
  24836. if v, changed := f.DecMapUintptrUint16V(*vp, true, d); changed {
  24837. *vp = v
  24838. }
  24839. }
  24840. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, canChange bool,
  24841. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  24842. dd, esep := d.d, d.hh.hasElemSeparators()
  24843. containerLen := dd.ReadMapStart()
  24844. if canChange && v == nil {
  24845. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24846. v = make(map[uintptr]uint16, xlen)
  24847. changed = true
  24848. }
  24849. if containerLen == 0 {
  24850. dd.ReadMapEnd()
  24851. return v, changed
  24852. }
  24853. var mk uintptr
  24854. var mv uint16
  24855. hasLen := containerLen > 0
  24856. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24857. if esep {
  24858. dd.ReadMapElemKey()
  24859. }
  24860. mk = uintptr(dd.DecodeUint(uintBitsize))
  24861. if esep {
  24862. dd.ReadMapElemValue()
  24863. }
  24864. if dd.TryDecodeAsNil() {
  24865. if d.h.DeleteOnNilMapValue {
  24866. delete(v, mk)
  24867. } else {
  24868. v[mk] = 0
  24869. }
  24870. continue
  24871. }
  24872. mv = uint16(dd.DecodeUint(16))
  24873. if v != nil {
  24874. v[mk] = mv
  24875. }
  24876. }
  24877. dd.ReadMapEnd()
  24878. return v, changed
  24879. }
  24880. func (d *Decoder) fastpathDecMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  24881. if rv.Kind() == reflect.Ptr {
  24882. vp := rv2i(rv).(*map[uintptr]uint32)
  24883. if v, changed := fastpathTV.DecMapUintptrUint32V(*vp, true, d); changed {
  24884. *vp = v
  24885. }
  24886. return
  24887. }
  24888. fastpathTV.DecMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), false, d)
  24889. }
  24890. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, d *Decoder) {
  24891. if v, changed := f.DecMapUintptrUint32V(*vp, true, d); changed {
  24892. *vp = v
  24893. }
  24894. }
  24895. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, canChange bool,
  24896. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  24897. dd, esep := d.d, d.hh.hasElemSeparators()
  24898. containerLen := dd.ReadMapStart()
  24899. if canChange && v == nil {
  24900. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24901. v = make(map[uintptr]uint32, xlen)
  24902. changed = true
  24903. }
  24904. if containerLen == 0 {
  24905. dd.ReadMapEnd()
  24906. return v, changed
  24907. }
  24908. var mk uintptr
  24909. var mv uint32
  24910. hasLen := containerLen > 0
  24911. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24912. if esep {
  24913. dd.ReadMapElemKey()
  24914. }
  24915. mk = uintptr(dd.DecodeUint(uintBitsize))
  24916. if esep {
  24917. dd.ReadMapElemValue()
  24918. }
  24919. if dd.TryDecodeAsNil() {
  24920. if d.h.DeleteOnNilMapValue {
  24921. delete(v, mk)
  24922. } else {
  24923. v[mk] = 0
  24924. }
  24925. continue
  24926. }
  24927. mv = uint32(dd.DecodeUint(32))
  24928. if v != nil {
  24929. v[mk] = mv
  24930. }
  24931. }
  24932. dd.ReadMapEnd()
  24933. return v, changed
  24934. }
  24935. func (d *Decoder) fastpathDecMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  24936. if rv.Kind() == reflect.Ptr {
  24937. vp := rv2i(rv).(*map[uintptr]uint64)
  24938. if v, changed := fastpathTV.DecMapUintptrUint64V(*vp, true, d); changed {
  24939. *vp = v
  24940. }
  24941. return
  24942. }
  24943. fastpathTV.DecMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), false, d)
  24944. }
  24945. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, d *Decoder) {
  24946. if v, changed := f.DecMapUintptrUint64V(*vp, true, d); changed {
  24947. *vp = v
  24948. }
  24949. }
  24950. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, canChange bool,
  24951. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  24952. dd, esep := d.d, d.hh.hasElemSeparators()
  24953. containerLen := dd.ReadMapStart()
  24954. if canChange && v == nil {
  24955. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24956. v = make(map[uintptr]uint64, xlen)
  24957. changed = true
  24958. }
  24959. if containerLen == 0 {
  24960. dd.ReadMapEnd()
  24961. return v, changed
  24962. }
  24963. var mk uintptr
  24964. var mv uint64
  24965. hasLen := containerLen > 0
  24966. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24967. if esep {
  24968. dd.ReadMapElemKey()
  24969. }
  24970. mk = uintptr(dd.DecodeUint(uintBitsize))
  24971. if esep {
  24972. dd.ReadMapElemValue()
  24973. }
  24974. if dd.TryDecodeAsNil() {
  24975. if d.h.DeleteOnNilMapValue {
  24976. delete(v, mk)
  24977. } else {
  24978. v[mk] = 0
  24979. }
  24980. continue
  24981. }
  24982. mv = dd.DecodeUint(64)
  24983. if v != nil {
  24984. v[mk] = mv
  24985. }
  24986. }
  24987. dd.ReadMapEnd()
  24988. return v, changed
  24989. }
  24990. func (d *Decoder) fastpathDecMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  24991. if rv.Kind() == reflect.Ptr {
  24992. vp := rv2i(rv).(*map[uintptr]uintptr)
  24993. if v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, true, d); changed {
  24994. *vp = v
  24995. }
  24996. return
  24997. }
  24998. fastpathTV.DecMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), false, d)
  24999. }
  25000. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, d *Decoder) {
  25001. if v, changed := f.DecMapUintptrUintptrV(*vp, true, d); changed {
  25002. *vp = v
  25003. }
  25004. }
  25005. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, canChange bool,
  25006. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  25007. dd, esep := d.d, d.hh.hasElemSeparators()
  25008. containerLen := dd.ReadMapStart()
  25009. if canChange && v == nil {
  25010. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25011. v = make(map[uintptr]uintptr, xlen)
  25012. changed = true
  25013. }
  25014. if containerLen == 0 {
  25015. dd.ReadMapEnd()
  25016. return v, changed
  25017. }
  25018. var mk uintptr
  25019. var mv uintptr
  25020. hasLen := containerLen > 0
  25021. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25022. if esep {
  25023. dd.ReadMapElemKey()
  25024. }
  25025. mk = uintptr(dd.DecodeUint(uintBitsize))
  25026. if esep {
  25027. dd.ReadMapElemValue()
  25028. }
  25029. if dd.TryDecodeAsNil() {
  25030. if d.h.DeleteOnNilMapValue {
  25031. delete(v, mk)
  25032. } else {
  25033. v[mk] = 0
  25034. }
  25035. continue
  25036. }
  25037. mv = uintptr(dd.DecodeUint(uintBitsize))
  25038. if v != nil {
  25039. v[mk] = mv
  25040. }
  25041. }
  25042. dd.ReadMapEnd()
  25043. return v, changed
  25044. }
  25045. func (d *Decoder) fastpathDecMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  25046. if rv.Kind() == reflect.Ptr {
  25047. vp := rv2i(rv).(*map[uintptr]int)
  25048. if v, changed := fastpathTV.DecMapUintptrIntV(*vp, true, d); changed {
  25049. *vp = v
  25050. }
  25051. return
  25052. }
  25053. fastpathTV.DecMapUintptrIntV(rv2i(rv).(map[uintptr]int), false, d)
  25054. }
  25055. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, d *Decoder) {
  25056. if v, changed := f.DecMapUintptrIntV(*vp, true, d); changed {
  25057. *vp = v
  25058. }
  25059. }
  25060. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, canChange bool,
  25061. d *Decoder) (_ map[uintptr]int, changed bool) {
  25062. dd, esep := d.d, d.hh.hasElemSeparators()
  25063. containerLen := dd.ReadMapStart()
  25064. if canChange && v == nil {
  25065. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25066. v = make(map[uintptr]int, xlen)
  25067. changed = true
  25068. }
  25069. if containerLen == 0 {
  25070. dd.ReadMapEnd()
  25071. return v, changed
  25072. }
  25073. var mk uintptr
  25074. var mv int
  25075. hasLen := containerLen > 0
  25076. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25077. if esep {
  25078. dd.ReadMapElemKey()
  25079. }
  25080. mk = uintptr(dd.DecodeUint(uintBitsize))
  25081. if esep {
  25082. dd.ReadMapElemValue()
  25083. }
  25084. if dd.TryDecodeAsNil() {
  25085. if d.h.DeleteOnNilMapValue {
  25086. delete(v, mk)
  25087. } else {
  25088. v[mk] = 0
  25089. }
  25090. continue
  25091. }
  25092. mv = int(dd.DecodeInt(intBitsize))
  25093. if v != nil {
  25094. v[mk] = mv
  25095. }
  25096. }
  25097. dd.ReadMapEnd()
  25098. return v, changed
  25099. }
  25100. func (d *Decoder) fastpathDecMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  25101. if rv.Kind() == reflect.Ptr {
  25102. vp := rv2i(rv).(*map[uintptr]int8)
  25103. if v, changed := fastpathTV.DecMapUintptrInt8V(*vp, true, d); changed {
  25104. *vp = v
  25105. }
  25106. return
  25107. }
  25108. fastpathTV.DecMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), false, d)
  25109. }
  25110. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, d *Decoder) {
  25111. if v, changed := f.DecMapUintptrInt8V(*vp, true, d); changed {
  25112. *vp = v
  25113. }
  25114. }
  25115. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, canChange bool,
  25116. d *Decoder) (_ map[uintptr]int8, changed bool) {
  25117. dd, esep := d.d, d.hh.hasElemSeparators()
  25118. containerLen := dd.ReadMapStart()
  25119. if canChange && v == nil {
  25120. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25121. v = make(map[uintptr]int8, xlen)
  25122. changed = true
  25123. }
  25124. if containerLen == 0 {
  25125. dd.ReadMapEnd()
  25126. return v, changed
  25127. }
  25128. var mk uintptr
  25129. var mv int8
  25130. hasLen := containerLen > 0
  25131. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25132. if esep {
  25133. dd.ReadMapElemKey()
  25134. }
  25135. mk = uintptr(dd.DecodeUint(uintBitsize))
  25136. if esep {
  25137. dd.ReadMapElemValue()
  25138. }
  25139. if dd.TryDecodeAsNil() {
  25140. if d.h.DeleteOnNilMapValue {
  25141. delete(v, mk)
  25142. } else {
  25143. v[mk] = 0
  25144. }
  25145. continue
  25146. }
  25147. mv = int8(dd.DecodeInt(8))
  25148. if v != nil {
  25149. v[mk] = mv
  25150. }
  25151. }
  25152. dd.ReadMapEnd()
  25153. return v, changed
  25154. }
  25155. func (d *Decoder) fastpathDecMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  25156. if rv.Kind() == reflect.Ptr {
  25157. vp := rv2i(rv).(*map[uintptr]int16)
  25158. if v, changed := fastpathTV.DecMapUintptrInt16V(*vp, true, d); changed {
  25159. *vp = v
  25160. }
  25161. return
  25162. }
  25163. fastpathTV.DecMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), false, d)
  25164. }
  25165. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, d *Decoder) {
  25166. if v, changed := f.DecMapUintptrInt16V(*vp, true, d); changed {
  25167. *vp = v
  25168. }
  25169. }
  25170. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, canChange bool,
  25171. d *Decoder) (_ map[uintptr]int16, changed bool) {
  25172. dd, esep := d.d, d.hh.hasElemSeparators()
  25173. containerLen := dd.ReadMapStart()
  25174. if canChange && v == nil {
  25175. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25176. v = make(map[uintptr]int16, xlen)
  25177. changed = true
  25178. }
  25179. if containerLen == 0 {
  25180. dd.ReadMapEnd()
  25181. return v, changed
  25182. }
  25183. var mk uintptr
  25184. var mv int16
  25185. hasLen := containerLen > 0
  25186. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25187. if esep {
  25188. dd.ReadMapElemKey()
  25189. }
  25190. mk = uintptr(dd.DecodeUint(uintBitsize))
  25191. if esep {
  25192. dd.ReadMapElemValue()
  25193. }
  25194. if dd.TryDecodeAsNil() {
  25195. if d.h.DeleteOnNilMapValue {
  25196. delete(v, mk)
  25197. } else {
  25198. v[mk] = 0
  25199. }
  25200. continue
  25201. }
  25202. mv = int16(dd.DecodeInt(16))
  25203. if v != nil {
  25204. v[mk] = mv
  25205. }
  25206. }
  25207. dd.ReadMapEnd()
  25208. return v, changed
  25209. }
  25210. func (d *Decoder) fastpathDecMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  25211. if rv.Kind() == reflect.Ptr {
  25212. vp := rv2i(rv).(*map[uintptr]int32)
  25213. if v, changed := fastpathTV.DecMapUintptrInt32V(*vp, true, d); changed {
  25214. *vp = v
  25215. }
  25216. return
  25217. }
  25218. fastpathTV.DecMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), false, d)
  25219. }
  25220. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, d *Decoder) {
  25221. if v, changed := f.DecMapUintptrInt32V(*vp, true, d); changed {
  25222. *vp = v
  25223. }
  25224. }
  25225. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, canChange bool,
  25226. d *Decoder) (_ map[uintptr]int32, changed bool) {
  25227. dd, esep := d.d, d.hh.hasElemSeparators()
  25228. containerLen := dd.ReadMapStart()
  25229. if canChange && v == nil {
  25230. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25231. v = make(map[uintptr]int32, xlen)
  25232. changed = true
  25233. }
  25234. if containerLen == 0 {
  25235. dd.ReadMapEnd()
  25236. return v, changed
  25237. }
  25238. var mk uintptr
  25239. var mv int32
  25240. hasLen := containerLen > 0
  25241. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25242. if esep {
  25243. dd.ReadMapElemKey()
  25244. }
  25245. mk = uintptr(dd.DecodeUint(uintBitsize))
  25246. if esep {
  25247. dd.ReadMapElemValue()
  25248. }
  25249. if dd.TryDecodeAsNil() {
  25250. if d.h.DeleteOnNilMapValue {
  25251. delete(v, mk)
  25252. } else {
  25253. v[mk] = 0
  25254. }
  25255. continue
  25256. }
  25257. mv = int32(dd.DecodeInt(32))
  25258. if v != nil {
  25259. v[mk] = mv
  25260. }
  25261. }
  25262. dd.ReadMapEnd()
  25263. return v, changed
  25264. }
  25265. func (d *Decoder) fastpathDecMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  25266. if rv.Kind() == reflect.Ptr {
  25267. vp := rv2i(rv).(*map[uintptr]int64)
  25268. if v, changed := fastpathTV.DecMapUintptrInt64V(*vp, true, d); changed {
  25269. *vp = v
  25270. }
  25271. return
  25272. }
  25273. fastpathTV.DecMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), false, d)
  25274. }
  25275. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, d *Decoder) {
  25276. if v, changed := f.DecMapUintptrInt64V(*vp, true, d); changed {
  25277. *vp = v
  25278. }
  25279. }
  25280. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, canChange bool,
  25281. d *Decoder) (_ map[uintptr]int64, changed bool) {
  25282. dd, esep := d.d, d.hh.hasElemSeparators()
  25283. containerLen := dd.ReadMapStart()
  25284. if canChange && v == nil {
  25285. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25286. v = make(map[uintptr]int64, xlen)
  25287. changed = true
  25288. }
  25289. if containerLen == 0 {
  25290. dd.ReadMapEnd()
  25291. return v, changed
  25292. }
  25293. var mk uintptr
  25294. var mv int64
  25295. hasLen := containerLen > 0
  25296. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25297. if esep {
  25298. dd.ReadMapElemKey()
  25299. }
  25300. mk = uintptr(dd.DecodeUint(uintBitsize))
  25301. if esep {
  25302. dd.ReadMapElemValue()
  25303. }
  25304. if dd.TryDecodeAsNil() {
  25305. if d.h.DeleteOnNilMapValue {
  25306. delete(v, mk)
  25307. } else {
  25308. v[mk] = 0
  25309. }
  25310. continue
  25311. }
  25312. mv = dd.DecodeInt(64)
  25313. if v != nil {
  25314. v[mk] = mv
  25315. }
  25316. }
  25317. dd.ReadMapEnd()
  25318. return v, changed
  25319. }
  25320. func (d *Decoder) fastpathDecMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  25321. if rv.Kind() == reflect.Ptr {
  25322. vp := rv2i(rv).(*map[uintptr]float32)
  25323. if v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, true, d); changed {
  25324. *vp = v
  25325. }
  25326. return
  25327. }
  25328. fastpathTV.DecMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), false, d)
  25329. }
  25330. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, d *Decoder) {
  25331. if v, changed := f.DecMapUintptrFloat32V(*vp, true, d); changed {
  25332. *vp = v
  25333. }
  25334. }
  25335. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, canChange bool,
  25336. d *Decoder) (_ map[uintptr]float32, changed bool) {
  25337. dd, esep := d.d, d.hh.hasElemSeparators()
  25338. containerLen := dd.ReadMapStart()
  25339. if canChange && v == nil {
  25340. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25341. v = make(map[uintptr]float32, xlen)
  25342. changed = true
  25343. }
  25344. if containerLen == 0 {
  25345. dd.ReadMapEnd()
  25346. return v, changed
  25347. }
  25348. var mk uintptr
  25349. var mv float32
  25350. hasLen := containerLen > 0
  25351. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25352. if esep {
  25353. dd.ReadMapElemKey()
  25354. }
  25355. mk = uintptr(dd.DecodeUint(uintBitsize))
  25356. if esep {
  25357. dd.ReadMapElemValue()
  25358. }
  25359. if dd.TryDecodeAsNil() {
  25360. if d.h.DeleteOnNilMapValue {
  25361. delete(v, mk)
  25362. } else {
  25363. v[mk] = 0
  25364. }
  25365. continue
  25366. }
  25367. mv = float32(dd.DecodeFloat(true))
  25368. if v != nil {
  25369. v[mk] = mv
  25370. }
  25371. }
  25372. dd.ReadMapEnd()
  25373. return v, changed
  25374. }
  25375. func (d *Decoder) fastpathDecMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  25376. if rv.Kind() == reflect.Ptr {
  25377. vp := rv2i(rv).(*map[uintptr]float64)
  25378. if v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, true, d); changed {
  25379. *vp = v
  25380. }
  25381. return
  25382. }
  25383. fastpathTV.DecMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), false, d)
  25384. }
  25385. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, d *Decoder) {
  25386. if v, changed := f.DecMapUintptrFloat64V(*vp, true, d); changed {
  25387. *vp = v
  25388. }
  25389. }
  25390. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, canChange bool,
  25391. d *Decoder) (_ map[uintptr]float64, changed bool) {
  25392. dd, esep := d.d, d.hh.hasElemSeparators()
  25393. containerLen := dd.ReadMapStart()
  25394. if canChange && v == nil {
  25395. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25396. v = make(map[uintptr]float64, xlen)
  25397. changed = true
  25398. }
  25399. if containerLen == 0 {
  25400. dd.ReadMapEnd()
  25401. return v, changed
  25402. }
  25403. var mk uintptr
  25404. var mv float64
  25405. hasLen := containerLen > 0
  25406. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25407. if esep {
  25408. dd.ReadMapElemKey()
  25409. }
  25410. mk = uintptr(dd.DecodeUint(uintBitsize))
  25411. if esep {
  25412. dd.ReadMapElemValue()
  25413. }
  25414. if dd.TryDecodeAsNil() {
  25415. if d.h.DeleteOnNilMapValue {
  25416. delete(v, mk)
  25417. } else {
  25418. v[mk] = 0
  25419. }
  25420. continue
  25421. }
  25422. mv = dd.DecodeFloat(false)
  25423. if v != nil {
  25424. v[mk] = mv
  25425. }
  25426. }
  25427. dd.ReadMapEnd()
  25428. return v, changed
  25429. }
  25430. func (d *Decoder) fastpathDecMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  25431. if rv.Kind() == reflect.Ptr {
  25432. vp := rv2i(rv).(*map[uintptr]bool)
  25433. if v, changed := fastpathTV.DecMapUintptrBoolV(*vp, true, d); changed {
  25434. *vp = v
  25435. }
  25436. return
  25437. }
  25438. fastpathTV.DecMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), false, d)
  25439. }
  25440. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, d *Decoder) {
  25441. if v, changed := f.DecMapUintptrBoolV(*vp, true, d); changed {
  25442. *vp = v
  25443. }
  25444. }
  25445. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, canChange bool,
  25446. d *Decoder) (_ map[uintptr]bool, changed bool) {
  25447. dd, esep := d.d, d.hh.hasElemSeparators()
  25448. containerLen := dd.ReadMapStart()
  25449. if canChange && v == nil {
  25450. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25451. v = make(map[uintptr]bool, xlen)
  25452. changed = true
  25453. }
  25454. if containerLen == 0 {
  25455. dd.ReadMapEnd()
  25456. return v, changed
  25457. }
  25458. var mk uintptr
  25459. var mv bool
  25460. hasLen := containerLen > 0
  25461. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25462. if esep {
  25463. dd.ReadMapElemKey()
  25464. }
  25465. mk = uintptr(dd.DecodeUint(uintBitsize))
  25466. if esep {
  25467. dd.ReadMapElemValue()
  25468. }
  25469. if dd.TryDecodeAsNil() {
  25470. if d.h.DeleteOnNilMapValue {
  25471. delete(v, mk)
  25472. } else {
  25473. v[mk] = false
  25474. }
  25475. continue
  25476. }
  25477. mv = dd.DecodeBool()
  25478. if v != nil {
  25479. v[mk] = mv
  25480. }
  25481. }
  25482. dd.ReadMapEnd()
  25483. return v, changed
  25484. }
  25485. func (d *Decoder) fastpathDecMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  25486. if rv.Kind() == reflect.Ptr {
  25487. vp := rv2i(rv).(*map[int]interface{})
  25488. if v, changed := fastpathTV.DecMapIntIntfV(*vp, true, d); changed {
  25489. *vp = v
  25490. }
  25491. return
  25492. }
  25493. fastpathTV.DecMapIntIntfV(rv2i(rv).(map[int]interface{}), false, d)
  25494. }
  25495. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, d *Decoder) {
  25496. if v, changed := f.DecMapIntIntfV(*vp, true, d); changed {
  25497. *vp = v
  25498. }
  25499. }
  25500. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, canChange bool,
  25501. d *Decoder) (_ map[int]interface{}, 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, 24)
  25506. v = make(map[int]interface{}, xlen)
  25507. changed = true
  25508. }
  25509. if containerLen == 0 {
  25510. dd.ReadMapEnd()
  25511. return v, changed
  25512. }
  25513. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  25514. var mk int
  25515. var mv interface{}
  25516. hasLen := containerLen > 0
  25517. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25518. if esep {
  25519. dd.ReadMapElemKey()
  25520. }
  25521. mk = int(dd.DecodeInt(intBitsize))
  25522. if esep {
  25523. dd.ReadMapElemValue()
  25524. }
  25525. if dd.TryDecodeAsNil() {
  25526. if d.h.DeleteOnNilMapValue {
  25527. delete(v, mk)
  25528. } else {
  25529. v[mk] = nil
  25530. }
  25531. continue
  25532. }
  25533. if mapGet {
  25534. mv = v[mk]
  25535. } else {
  25536. mv = nil
  25537. }
  25538. d.decode(&mv)
  25539. if v != nil {
  25540. v[mk] = mv
  25541. }
  25542. }
  25543. dd.ReadMapEnd()
  25544. return v, changed
  25545. }
  25546. func (d *Decoder) fastpathDecMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  25547. if rv.Kind() == reflect.Ptr {
  25548. vp := rv2i(rv).(*map[int]string)
  25549. if v, changed := fastpathTV.DecMapIntStringV(*vp, true, d); changed {
  25550. *vp = v
  25551. }
  25552. return
  25553. }
  25554. fastpathTV.DecMapIntStringV(rv2i(rv).(map[int]string), false, d)
  25555. }
  25556. func (f fastpathT) DecMapIntStringX(vp *map[int]string, d *Decoder) {
  25557. if v, changed := f.DecMapIntStringV(*vp, true, d); changed {
  25558. *vp = v
  25559. }
  25560. }
  25561. func (_ fastpathT) DecMapIntStringV(v map[int]string, canChange bool,
  25562. d *Decoder) (_ map[int]string, changed bool) {
  25563. dd, esep := d.d, d.hh.hasElemSeparators()
  25564. containerLen := dd.ReadMapStart()
  25565. if canChange && v == nil {
  25566. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  25567. v = make(map[int]string, xlen)
  25568. changed = true
  25569. }
  25570. if containerLen == 0 {
  25571. dd.ReadMapEnd()
  25572. return v, changed
  25573. }
  25574. var mk int
  25575. var mv string
  25576. hasLen := containerLen > 0
  25577. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25578. if esep {
  25579. dd.ReadMapElemKey()
  25580. }
  25581. mk = int(dd.DecodeInt(intBitsize))
  25582. if esep {
  25583. dd.ReadMapElemValue()
  25584. }
  25585. if dd.TryDecodeAsNil() {
  25586. if d.h.DeleteOnNilMapValue {
  25587. delete(v, mk)
  25588. } else {
  25589. v[mk] = ""
  25590. }
  25591. continue
  25592. }
  25593. mv = dd.DecodeString()
  25594. if v != nil {
  25595. v[mk] = mv
  25596. }
  25597. }
  25598. dd.ReadMapEnd()
  25599. return v, changed
  25600. }
  25601. func (d *Decoder) fastpathDecMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  25602. if rv.Kind() == reflect.Ptr {
  25603. vp := rv2i(rv).(*map[int]uint)
  25604. if v, changed := fastpathTV.DecMapIntUintV(*vp, true, d); changed {
  25605. *vp = v
  25606. }
  25607. return
  25608. }
  25609. fastpathTV.DecMapIntUintV(rv2i(rv).(map[int]uint), false, d)
  25610. }
  25611. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, d *Decoder) {
  25612. if v, changed := f.DecMapIntUintV(*vp, true, d); changed {
  25613. *vp = v
  25614. }
  25615. }
  25616. func (_ fastpathT) DecMapIntUintV(v map[int]uint, canChange bool,
  25617. d *Decoder) (_ map[int]uint, changed bool) {
  25618. dd, esep := d.d, d.hh.hasElemSeparators()
  25619. containerLen := dd.ReadMapStart()
  25620. if canChange && v == nil {
  25621. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25622. v = make(map[int]uint, xlen)
  25623. changed = true
  25624. }
  25625. if containerLen == 0 {
  25626. dd.ReadMapEnd()
  25627. return v, changed
  25628. }
  25629. var mk int
  25630. var mv uint
  25631. hasLen := containerLen > 0
  25632. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25633. if esep {
  25634. dd.ReadMapElemKey()
  25635. }
  25636. mk = int(dd.DecodeInt(intBitsize))
  25637. if esep {
  25638. dd.ReadMapElemValue()
  25639. }
  25640. if dd.TryDecodeAsNil() {
  25641. if d.h.DeleteOnNilMapValue {
  25642. delete(v, mk)
  25643. } else {
  25644. v[mk] = 0
  25645. }
  25646. continue
  25647. }
  25648. mv = uint(dd.DecodeUint(uintBitsize))
  25649. if v != nil {
  25650. v[mk] = mv
  25651. }
  25652. }
  25653. dd.ReadMapEnd()
  25654. return v, changed
  25655. }
  25656. func (d *Decoder) fastpathDecMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  25657. if rv.Kind() == reflect.Ptr {
  25658. vp := rv2i(rv).(*map[int]uint8)
  25659. if v, changed := fastpathTV.DecMapIntUint8V(*vp, true, d); changed {
  25660. *vp = v
  25661. }
  25662. return
  25663. }
  25664. fastpathTV.DecMapIntUint8V(rv2i(rv).(map[int]uint8), false, d)
  25665. }
  25666. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, d *Decoder) {
  25667. if v, changed := f.DecMapIntUint8V(*vp, true, d); changed {
  25668. *vp = v
  25669. }
  25670. }
  25671. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, canChange bool,
  25672. d *Decoder) (_ map[int]uint8, changed bool) {
  25673. dd, esep := d.d, d.hh.hasElemSeparators()
  25674. containerLen := dd.ReadMapStart()
  25675. if canChange && v == nil {
  25676. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25677. v = make(map[int]uint8, xlen)
  25678. changed = true
  25679. }
  25680. if containerLen == 0 {
  25681. dd.ReadMapEnd()
  25682. return v, changed
  25683. }
  25684. var mk int
  25685. var mv uint8
  25686. hasLen := containerLen > 0
  25687. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25688. if esep {
  25689. dd.ReadMapElemKey()
  25690. }
  25691. mk = int(dd.DecodeInt(intBitsize))
  25692. if esep {
  25693. dd.ReadMapElemValue()
  25694. }
  25695. if dd.TryDecodeAsNil() {
  25696. if d.h.DeleteOnNilMapValue {
  25697. delete(v, mk)
  25698. } else {
  25699. v[mk] = 0
  25700. }
  25701. continue
  25702. }
  25703. mv = uint8(dd.DecodeUint(8))
  25704. if v != nil {
  25705. v[mk] = mv
  25706. }
  25707. }
  25708. dd.ReadMapEnd()
  25709. return v, changed
  25710. }
  25711. func (d *Decoder) fastpathDecMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  25712. if rv.Kind() == reflect.Ptr {
  25713. vp := rv2i(rv).(*map[int]uint16)
  25714. if v, changed := fastpathTV.DecMapIntUint16V(*vp, true, d); changed {
  25715. *vp = v
  25716. }
  25717. return
  25718. }
  25719. fastpathTV.DecMapIntUint16V(rv2i(rv).(map[int]uint16), false, d)
  25720. }
  25721. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, d *Decoder) {
  25722. if v, changed := f.DecMapIntUint16V(*vp, true, d); changed {
  25723. *vp = v
  25724. }
  25725. }
  25726. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, canChange bool,
  25727. d *Decoder) (_ map[int]uint16, changed bool) {
  25728. dd, esep := d.d, d.hh.hasElemSeparators()
  25729. containerLen := dd.ReadMapStart()
  25730. if canChange && v == nil {
  25731. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25732. v = make(map[int]uint16, xlen)
  25733. changed = true
  25734. }
  25735. if containerLen == 0 {
  25736. dd.ReadMapEnd()
  25737. return v, changed
  25738. }
  25739. var mk int
  25740. var mv uint16
  25741. hasLen := containerLen > 0
  25742. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25743. if esep {
  25744. dd.ReadMapElemKey()
  25745. }
  25746. mk = int(dd.DecodeInt(intBitsize))
  25747. if esep {
  25748. dd.ReadMapElemValue()
  25749. }
  25750. if dd.TryDecodeAsNil() {
  25751. if d.h.DeleteOnNilMapValue {
  25752. delete(v, mk)
  25753. } else {
  25754. v[mk] = 0
  25755. }
  25756. continue
  25757. }
  25758. mv = uint16(dd.DecodeUint(16))
  25759. if v != nil {
  25760. v[mk] = mv
  25761. }
  25762. }
  25763. dd.ReadMapEnd()
  25764. return v, changed
  25765. }
  25766. func (d *Decoder) fastpathDecMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  25767. if rv.Kind() == reflect.Ptr {
  25768. vp := rv2i(rv).(*map[int]uint32)
  25769. if v, changed := fastpathTV.DecMapIntUint32V(*vp, true, d); changed {
  25770. *vp = v
  25771. }
  25772. return
  25773. }
  25774. fastpathTV.DecMapIntUint32V(rv2i(rv).(map[int]uint32), false, d)
  25775. }
  25776. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, d *Decoder) {
  25777. if v, changed := f.DecMapIntUint32V(*vp, true, d); changed {
  25778. *vp = v
  25779. }
  25780. }
  25781. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, canChange bool,
  25782. d *Decoder) (_ map[int]uint32, changed bool) {
  25783. dd, esep := d.d, d.hh.hasElemSeparators()
  25784. containerLen := dd.ReadMapStart()
  25785. if canChange && v == nil {
  25786. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25787. v = make(map[int]uint32, xlen)
  25788. changed = true
  25789. }
  25790. if containerLen == 0 {
  25791. dd.ReadMapEnd()
  25792. return v, changed
  25793. }
  25794. var mk int
  25795. var mv uint32
  25796. hasLen := containerLen > 0
  25797. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25798. if esep {
  25799. dd.ReadMapElemKey()
  25800. }
  25801. mk = int(dd.DecodeInt(intBitsize))
  25802. if esep {
  25803. dd.ReadMapElemValue()
  25804. }
  25805. if dd.TryDecodeAsNil() {
  25806. if d.h.DeleteOnNilMapValue {
  25807. delete(v, mk)
  25808. } else {
  25809. v[mk] = 0
  25810. }
  25811. continue
  25812. }
  25813. mv = uint32(dd.DecodeUint(32))
  25814. if v != nil {
  25815. v[mk] = mv
  25816. }
  25817. }
  25818. dd.ReadMapEnd()
  25819. return v, changed
  25820. }
  25821. func (d *Decoder) fastpathDecMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  25822. if rv.Kind() == reflect.Ptr {
  25823. vp := rv2i(rv).(*map[int]uint64)
  25824. if v, changed := fastpathTV.DecMapIntUint64V(*vp, true, d); changed {
  25825. *vp = v
  25826. }
  25827. return
  25828. }
  25829. fastpathTV.DecMapIntUint64V(rv2i(rv).(map[int]uint64), false, d)
  25830. }
  25831. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, d *Decoder) {
  25832. if v, changed := f.DecMapIntUint64V(*vp, true, d); changed {
  25833. *vp = v
  25834. }
  25835. }
  25836. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, canChange bool,
  25837. d *Decoder) (_ map[int]uint64, changed bool) {
  25838. dd, esep := d.d, d.hh.hasElemSeparators()
  25839. containerLen := dd.ReadMapStart()
  25840. if canChange && v == nil {
  25841. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25842. v = make(map[int]uint64, xlen)
  25843. changed = true
  25844. }
  25845. if containerLen == 0 {
  25846. dd.ReadMapEnd()
  25847. return v, changed
  25848. }
  25849. var mk int
  25850. var mv uint64
  25851. hasLen := containerLen > 0
  25852. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25853. if esep {
  25854. dd.ReadMapElemKey()
  25855. }
  25856. mk = int(dd.DecodeInt(intBitsize))
  25857. if esep {
  25858. dd.ReadMapElemValue()
  25859. }
  25860. if dd.TryDecodeAsNil() {
  25861. if d.h.DeleteOnNilMapValue {
  25862. delete(v, mk)
  25863. } else {
  25864. v[mk] = 0
  25865. }
  25866. continue
  25867. }
  25868. mv = dd.DecodeUint(64)
  25869. if v != nil {
  25870. v[mk] = mv
  25871. }
  25872. }
  25873. dd.ReadMapEnd()
  25874. return v, changed
  25875. }
  25876. func (d *Decoder) fastpathDecMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  25877. if rv.Kind() == reflect.Ptr {
  25878. vp := rv2i(rv).(*map[int]uintptr)
  25879. if v, changed := fastpathTV.DecMapIntUintptrV(*vp, true, d); changed {
  25880. *vp = v
  25881. }
  25882. return
  25883. }
  25884. fastpathTV.DecMapIntUintptrV(rv2i(rv).(map[int]uintptr), false, d)
  25885. }
  25886. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, d *Decoder) {
  25887. if v, changed := f.DecMapIntUintptrV(*vp, true, d); changed {
  25888. *vp = v
  25889. }
  25890. }
  25891. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, canChange bool,
  25892. d *Decoder) (_ map[int]uintptr, changed bool) {
  25893. dd, esep := d.d, d.hh.hasElemSeparators()
  25894. containerLen := dd.ReadMapStart()
  25895. if canChange && v == nil {
  25896. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25897. v = make(map[int]uintptr, xlen)
  25898. changed = true
  25899. }
  25900. if containerLen == 0 {
  25901. dd.ReadMapEnd()
  25902. return v, changed
  25903. }
  25904. var mk int
  25905. var mv uintptr
  25906. hasLen := containerLen > 0
  25907. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25908. if esep {
  25909. dd.ReadMapElemKey()
  25910. }
  25911. mk = int(dd.DecodeInt(intBitsize))
  25912. if esep {
  25913. dd.ReadMapElemValue()
  25914. }
  25915. if dd.TryDecodeAsNil() {
  25916. if d.h.DeleteOnNilMapValue {
  25917. delete(v, mk)
  25918. } else {
  25919. v[mk] = 0
  25920. }
  25921. continue
  25922. }
  25923. mv = uintptr(dd.DecodeUint(uintBitsize))
  25924. if v != nil {
  25925. v[mk] = mv
  25926. }
  25927. }
  25928. dd.ReadMapEnd()
  25929. return v, changed
  25930. }
  25931. func (d *Decoder) fastpathDecMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  25932. if rv.Kind() == reflect.Ptr {
  25933. vp := rv2i(rv).(*map[int]int)
  25934. if v, changed := fastpathTV.DecMapIntIntV(*vp, true, d); changed {
  25935. *vp = v
  25936. }
  25937. return
  25938. }
  25939. fastpathTV.DecMapIntIntV(rv2i(rv).(map[int]int), false, d)
  25940. }
  25941. func (f fastpathT) DecMapIntIntX(vp *map[int]int, d *Decoder) {
  25942. if v, changed := f.DecMapIntIntV(*vp, true, d); changed {
  25943. *vp = v
  25944. }
  25945. }
  25946. func (_ fastpathT) DecMapIntIntV(v map[int]int, canChange bool,
  25947. d *Decoder) (_ map[int]int, changed bool) {
  25948. dd, esep := d.d, d.hh.hasElemSeparators()
  25949. containerLen := dd.ReadMapStart()
  25950. if canChange && v == nil {
  25951. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25952. v = make(map[int]int, xlen)
  25953. changed = true
  25954. }
  25955. if containerLen == 0 {
  25956. dd.ReadMapEnd()
  25957. return v, changed
  25958. }
  25959. var mk int
  25960. var mv int
  25961. hasLen := containerLen > 0
  25962. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25963. if esep {
  25964. dd.ReadMapElemKey()
  25965. }
  25966. mk = int(dd.DecodeInt(intBitsize))
  25967. if esep {
  25968. dd.ReadMapElemValue()
  25969. }
  25970. if dd.TryDecodeAsNil() {
  25971. if d.h.DeleteOnNilMapValue {
  25972. delete(v, mk)
  25973. } else {
  25974. v[mk] = 0
  25975. }
  25976. continue
  25977. }
  25978. mv = int(dd.DecodeInt(intBitsize))
  25979. if v != nil {
  25980. v[mk] = mv
  25981. }
  25982. }
  25983. dd.ReadMapEnd()
  25984. return v, changed
  25985. }
  25986. func (d *Decoder) fastpathDecMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  25987. if rv.Kind() == reflect.Ptr {
  25988. vp := rv2i(rv).(*map[int]int8)
  25989. if v, changed := fastpathTV.DecMapIntInt8V(*vp, true, d); changed {
  25990. *vp = v
  25991. }
  25992. return
  25993. }
  25994. fastpathTV.DecMapIntInt8V(rv2i(rv).(map[int]int8), false, d)
  25995. }
  25996. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, d *Decoder) {
  25997. if v, changed := f.DecMapIntInt8V(*vp, true, d); changed {
  25998. *vp = v
  25999. }
  26000. }
  26001. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, canChange bool,
  26002. d *Decoder) (_ map[int]int8, changed bool) {
  26003. dd, esep := d.d, d.hh.hasElemSeparators()
  26004. containerLen := dd.ReadMapStart()
  26005. if canChange && v == nil {
  26006. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26007. v = make(map[int]int8, xlen)
  26008. changed = true
  26009. }
  26010. if containerLen == 0 {
  26011. dd.ReadMapEnd()
  26012. return v, changed
  26013. }
  26014. var mk int
  26015. var mv int8
  26016. hasLen := containerLen > 0
  26017. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26018. if esep {
  26019. dd.ReadMapElemKey()
  26020. }
  26021. mk = int(dd.DecodeInt(intBitsize))
  26022. if esep {
  26023. dd.ReadMapElemValue()
  26024. }
  26025. if dd.TryDecodeAsNil() {
  26026. if d.h.DeleteOnNilMapValue {
  26027. delete(v, mk)
  26028. } else {
  26029. v[mk] = 0
  26030. }
  26031. continue
  26032. }
  26033. mv = int8(dd.DecodeInt(8))
  26034. if v != nil {
  26035. v[mk] = mv
  26036. }
  26037. }
  26038. dd.ReadMapEnd()
  26039. return v, changed
  26040. }
  26041. func (d *Decoder) fastpathDecMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  26042. if rv.Kind() == reflect.Ptr {
  26043. vp := rv2i(rv).(*map[int]int16)
  26044. if v, changed := fastpathTV.DecMapIntInt16V(*vp, true, d); changed {
  26045. *vp = v
  26046. }
  26047. return
  26048. }
  26049. fastpathTV.DecMapIntInt16V(rv2i(rv).(map[int]int16), false, d)
  26050. }
  26051. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, d *Decoder) {
  26052. if v, changed := f.DecMapIntInt16V(*vp, true, d); changed {
  26053. *vp = v
  26054. }
  26055. }
  26056. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, canChange bool,
  26057. d *Decoder) (_ map[int]int16, changed bool) {
  26058. dd, esep := d.d, d.hh.hasElemSeparators()
  26059. containerLen := dd.ReadMapStart()
  26060. if canChange && v == nil {
  26061. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26062. v = make(map[int]int16, xlen)
  26063. changed = true
  26064. }
  26065. if containerLen == 0 {
  26066. dd.ReadMapEnd()
  26067. return v, changed
  26068. }
  26069. var mk int
  26070. var mv int16
  26071. hasLen := containerLen > 0
  26072. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26073. if esep {
  26074. dd.ReadMapElemKey()
  26075. }
  26076. mk = int(dd.DecodeInt(intBitsize))
  26077. if esep {
  26078. dd.ReadMapElemValue()
  26079. }
  26080. if dd.TryDecodeAsNil() {
  26081. if d.h.DeleteOnNilMapValue {
  26082. delete(v, mk)
  26083. } else {
  26084. v[mk] = 0
  26085. }
  26086. continue
  26087. }
  26088. mv = int16(dd.DecodeInt(16))
  26089. if v != nil {
  26090. v[mk] = mv
  26091. }
  26092. }
  26093. dd.ReadMapEnd()
  26094. return v, changed
  26095. }
  26096. func (d *Decoder) fastpathDecMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  26097. if rv.Kind() == reflect.Ptr {
  26098. vp := rv2i(rv).(*map[int]int32)
  26099. if v, changed := fastpathTV.DecMapIntInt32V(*vp, true, d); changed {
  26100. *vp = v
  26101. }
  26102. return
  26103. }
  26104. fastpathTV.DecMapIntInt32V(rv2i(rv).(map[int]int32), false, d)
  26105. }
  26106. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, d *Decoder) {
  26107. if v, changed := f.DecMapIntInt32V(*vp, true, d); changed {
  26108. *vp = v
  26109. }
  26110. }
  26111. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, canChange bool,
  26112. d *Decoder) (_ map[int]int32, changed bool) {
  26113. dd, esep := d.d, d.hh.hasElemSeparators()
  26114. containerLen := dd.ReadMapStart()
  26115. if canChange && v == nil {
  26116. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26117. v = make(map[int]int32, xlen)
  26118. changed = true
  26119. }
  26120. if containerLen == 0 {
  26121. dd.ReadMapEnd()
  26122. return v, changed
  26123. }
  26124. var mk int
  26125. var mv int32
  26126. hasLen := containerLen > 0
  26127. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26128. if esep {
  26129. dd.ReadMapElemKey()
  26130. }
  26131. mk = int(dd.DecodeInt(intBitsize))
  26132. if esep {
  26133. dd.ReadMapElemValue()
  26134. }
  26135. if dd.TryDecodeAsNil() {
  26136. if d.h.DeleteOnNilMapValue {
  26137. delete(v, mk)
  26138. } else {
  26139. v[mk] = 0
  26140. }
  26141. continue
  26142. }
  26143. mv = int32(dd.DecodeInt(32))
  26144. if v != nil {
  26145. v[mk] = mv
  26146. }
  26147. }
  26148. dd.ReadMapEnd()
  26149. return v, changed
  26150. }
  26151. func (d *Decoder) fastpathDecMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  26152. if rv.Kind() == reflect.Ptr {
  26153. vp := rv2i(rv).(*map[int]int64)
  26154. if v, changed := fastpathTV.DecMapIntInt64V(*vp, true, d); changed {
  26155. *vp = v
  26156. }
  26157. return
  26158. }
  26159. fastpathTV.DecMapIntInt64V(rv2i(rv).(map[int]int64), false, d)
  26160. }
  26161. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, d *Decoder) {
  26162. if v, changed := f.DecMapIntInt64V(*vp, true, d); changed {
  26163. *vp = v
  26164. }
  26165. }
  26166. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, canChange bool,
  26167. d *Decoder) (_ map[int]int64, changed bool) {
  26168. dd, esep := d.d, d.hh.hasElemSeparators()
  26169. containerLen := dd.ReadMapStart()
  26170. if canChange && v == nil {
  26171. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26172. v = make(map[int]int64, xlen)
  26173. changed = true
  26174. }
  26175. if containerLen == 0 {
  26176. dd.ReadMapEnd()
  26177. return v, changed
  26178. }
  26179. var mk int
  26180. var mv int64
  26181. hasLen := containerLen > 0
  26182. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26183. if esep {
  26184. dd.ReadMapElemKey()
  26185. }
  26186. mk = int(dd.DecodeInt(intBitsize))
  26187. if esep {
  26188. dd.ReadMapElemValue()
  26189. }
  26190. if dd.TryDecodeAsNil() {
  26191. if d.h.DeleteOnNilMapValue {
  26192. delete(v, mk)
  26193. } else {
  26194. v[mk] = 0
  26195. }
  26196. continue
  26197. }
  26198. mv = dd.DecodeInt(64)
  26199. if v != nil {
  26200. v[mk] = mv
  26201. }
  26202. }
  26203. dd.ReadMapEnd()
  26204. return v, changed
  26205. }
  26206. func (d *Decoder) fastpathDecMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  26207. if rv.Kind() == reflect.Ptr {
  26208. vp := rv2i(rv).(*map[int]float32)
  26209. if v, changed := fastpathTV.DecMapIntFloat32V(*vp, true, d); changed {
  26210. *vp = v
  26211. }
  26212. return
  26213. }
  26214. fastpathTV.DecMapIntFloat32V(rv2i(rv).(map[int]float32), false, d)
  26215. }
  26216. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, d *Decoder) {
  26217. if v, changed := f.DecMapIntFloat32V(*vp, true, d); changed {
  26218. *vp = v
  26219. }
  26220. }
  26221. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, canChange bool,
  26222. d *Decoder) (_ map[int]float32, changed bool) {
  26223. dd, esep := d.d, d.hh.hasElemSeparators()
  26224. containerLen := dd.ReadMapStart()
  26225. if canChange && v == nil {
  26226. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26227. v = make(map[int]float32, xlen)
  26228. changed = true
  26229. }
  26230. if containerLen == 0 {
  26231. dd.ReadMapEnd()
  26232. return v, changed
  26233. }
  26234. var mk int
  26235. var mv float32
  26236. hasLen := containerLen > 0
  26237. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26238. if esep {
  26239. dd.ReadMapElemKey()
  26240. }
  26241. mk = int(dd.DecodeInt(intBitsize))
  26242. if esep {
  26243. dd.ReadMapElemValue()
  26244. }
  26245. if dd.TryDecodeAsNil() {
  26246. if d.h.DeleteOnNilMapValue {
  26247. delete(v, mk)
  26248. } else {
  26249. v[mk] = 0
  26250. }
  26251. continue
  26252. }
  26253. mv = float32(dd.DecodeFloat(true))
  26254. if v != nil {
  26255. v[mk] = mv
  26256. }
  26257. }
  26258. dd.ReadMapEnd()
  26259. return v, changed
  26260. }
  26261. func (d *Decoder) fastpathDecMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  26262. if rv.Kind() == reflect.Ptr {
  26263. vp := rv2i(rv).(*map[int]float64)
  26264. if v, changed := fastpathTV.DecMapIntFloat64V(*vp, true, d); changed {
  26265. *vp = v
  26266. }
  26267. return
  26268. }
  26269. fastpathTV.DecMapIntFloat64V(rv2i(rv).(map[int]float64), false, d)
  26270. }
  26271. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, d *Decoder) {
  26272. if v, changed := f.DecMapIntFloat64V(*vp, true, d); changed {
  26273. *vp = v
  26274. }
  26275. }
  26276. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, canChange bool,
  26277. d *Decoder) (_ map[int]float64, changed bool) {
  26278. dd, esep := d.d, d.hh.hasElemSeparators()
  26279. containerLen := dd.ReadMapStart()
  26280. if canChange && v == nil {
  26281. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26282. v = make(map[int]float64, xlen)
  26283. changed = true
  26284. }
  26285. if containerLen == 0 {
  26286. dd.ReadMapEnd()
  26287. return v, changed
  26288. }
  26289. var mk int
  26290. var mv float64
  26291. hasLen := containerLen > 0
  26292. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26293. if esep {
  26294. dd.ReadMapElemKey()
  26295. }
  26296. mk = int(dd.DecodeInt(intBitsize))
  26297. if esep {
  26298. dd.ReadMapElemValue()
  26299. }
  26300. if dd.TryDecodeAsNil() {
  26301. if d.h.DeleteOnNilMapValue {
  26302. delete(v, mk)
  26303. } else {
  26304. v[mk] = 0
  26305. }
  26306. continue
  26307. }
  26308. mv = dd.DecodeFloat(false)
  26309. if v != nil {
  26310. v[mk] = mv
  26311. }
  26312. }
  26313. dd.ReadMapEnd()
  26314. return v, changed
  26315. }
  26316. func (d *Decoder) fastpathDecMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  26317. if rv.Kind() == reflect.Ptr {
  26318. vp := rv2i(rv).(*map[int]bool)
  26319. if v, changed := fastpathTV.DecMapIntBoolV(*vp, true, d); changed {
  26320. *vp = v
  26321. }
  26322. return
  26323. }
  26324. fastpathTV.DecMapIntBoolV(rv2i(rv).(map[int]bool), false, d)
  26325. }
  26326. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, d *Decoder) {
  26327. if v, changed := f.DecMapIntBoolV(*vp, true, d); changed {
  26328. *vp = v
  26329. }
  26330. }
  26331. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, canChange bool,
  26332. d *Decoder) (_ map[int]bool, changed bool) {
  26333. dd, esep := d.d, d.hh.hasElemSeparators()
  26334. containerLen := dd.ReadMapStart()
  26335. if canChange && v == nil {
  26336. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26337. v = make(map[int]bool, xlen)
  26338. changed = true
  26339. }
  26340. if containerLen == 0 {
  26341. dd.ReadMapEnd()
  26342. return v, changed
  26343. }
  26344. var mk int
  26345. var mv bool
  26346. hasLen := containerLen > 0
  26347. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26348. if esep {
  26349. dd.ReadMapElemKey()
  26350. }
  26351. mk = int(dd.DecodeInt(intBitsize))
  26352. if esep {
  26353. dd.ReadMapElemValue()
  26354. }
  26355. if dd.TryDecodeAsNil() {
  26356. if d.h.DeleteOnNilMapValue {
  26357. delete(v, mk)
  26358. } else {
  26359. v[mk] = false
  26360. }
  26361. continue
  26362. }
  26363. mv = dd.DecodeBool()
  26364. if v != nil {
  26365. v[mk] = mv
  26366. }
  26367. }
  26368. dd.ReadMapEnd()
  26369. return v, changed
  26370. }
  26371. func (d *Decoder) fastpathDecMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  26372. if rv.Kind() == reflect.Ptr {
  26373. vp := rv2i(rv).(*map[int8]interface{})
  26374. if v, changed := fastpathTV.DecMapInt8IntfV(*vp, true, d); changed {
  26375. *vp = v
  26376. }
  26377. return
  26378. }
  26379. fastpathTV.DecMapInt8IntfV(rv2i(rv).(map[int8]interface{}), false, d)
  26380. }
  26381. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, d *Decoder) {
  26382. if v, changed := f.DecMapInt8IntfV(*vp, true, d); changed {
  26383. *vp = v
  26384. }
  26385. }
  26386. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, canChange bool,
  26387. d *Decoder) (_ map[int8]interface{}, changed bool) {
  26388. dd, esep := d.d, d.hh.hasElemSeparators()
  26389. containerLen := dd.ReadMapStart()
  26390. if canChange && v == nil {
  26391. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  26392. v = make(map[int8]interface{}, xlen)
  26393. changed = true
  26394. }
  26395. if containerLen == 0 {
  26396. dd.ReadMapEnd()
  26397. return v, changed
  26398. }
  26399. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  26400. var mk int8
  26401. var mv interface{}
  26402. hasLen := containerLen > 0
  26403. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26404. if esep {
  26405. dd.ReadMapElemKey()
  26406. }
  26407. mk = int8(dd.DecodeInt(8))
  26408. if esep {
  26409. dd.ReadMapElemValue()
  26410. }
  26411. if dd.TryDecodeAsNil() {
  26412. if d.h.DeleteOnNilMapValue {
  26413. delete(v, mk)
  26414. } else {
  26415. v[mk] = nil
  26416. }
  26417. continue
  26418. }
  26419. if mapGet {
  26420. mv = v[mk]
  26421. } else {
  26422. mv = nil
  26423. }
  26424. d.decode(&mv)
  26425. if v != nil {
  26426. v[mk] = mv
  26427. }
  26428. }
  26429. dd.ReadMapEnd()
  26430. return v, changed
  26431. }
  26432. func (d *Decoder) fastpathDecMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  26433. if rv.Kind() == reflect.Ptr {
  26434. vp := rv2i(rv).(*map[int8]string)
  26435. if v, changed := fastpathTV.DecMapInt8StringV(*vp, true, d); changed {
  26436. *vp = v
  26437. }
  26438. return
  26439. }
  26440. fastpathTV.DecMapInt8StringV(rv2i(rv).(map[int8]string), false, d)
  26441. }
  26442. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, d *Decoder) {
  26443. if v, changed := f.DecMapInt8StringV(*vp, true, d); changed {
  26444. *vp = v
  26445. }
  26446. }
  26447. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, canChange bool,
  26448. d *Decoder) (_ map[int8]string, changed bool) {
  26449. dd, esep := d.d, d.hh.hasElemSeparators()
  26450. containerLen := dd.ReadMapStart()
  26451. if canChange && v == nil {
  26452. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  26453. v = make(map[int8]string, xlen)
  26454. changed = true
  26455. }
  26456. if containerLen == 0 {
  26457. dd.ReadMapEnd()
  26458. return v, changed
  26459. }
  26460. var mk int8
  26461. var mv string
  26462. hasLen := containerLen > 0
  26463. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26464. if esep {
  26465. dd.ReadMapElemKey()
  26466. }
  26467. mk = int8(dd.DecodeInt(8))
  26468. if esep {
  26469. dd.ReadMapElemValue()
  26470. }
  26471. if dd.TryDecodeAsNil() {
  26472. if d.h.DeleteOnNilMapValue {
  26473. delete(v, mk)
  26474. } else {
  26475. v[mk] = ""
  26476. }
  26477. continue
  26478. }
  26479. mv = dd.DecodeString()
  26480. if v != nil {
  26481. v[mk] = mv
  26482. }
  26483. }
  26484. dd.ReadMapEnd()
  26485. return v, changed
  26486. }
  26487. func (d *Decoder) fastpathDecMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  26488. if rv.Kind() == reflect.Ptr {
  26489. vp := rv2i(rv).(*map[int8]uint)
  26490. if v, changed := fastpathTV.DecMapInt8UintV(*vp, true, d); changed {
  26491. *vp = v
  26492. }
  26493. return
  26494. }
  26495. fastpathTV.DecMapInt8UintV(rv2i(rv).(map[int8]uint), false, d)
  26496. }
  26497. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, d *Decoder) {
  26498. if v, changed := f.DecMapInt8UintV(*vp, true, d); changed {
  26499. *vp = v
  26500. }
  26501. }
  26502. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, canChange bool,
  26503. d *Decoder) (_ map[int8]uint, changed bool) {
  26504. dd, esep := d.d, d.hh.hasElemSeparators()
  26505. containerLen := dd.ReadMapStart()
  26506. if canChange && v == nil {
  26507. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26508. v = make(map[int8]uint, xlen)
  26509. changed = true
  26510. }
  26511. if containerLen == 0 {
  26512. dd.ReadMapEnd()
  26513. return v, changed
  26514. }
  26515. var mk int8
  26516. var mv uint
  26517. hasLen := containerLen > 0
  26518. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26519. if esep {
  26520. dd.ReadMapElemKey()
  26521. }
  26522. mk = int8(dd.DecodeInt(8))
  26523. if esep {
  26524. dd.ReadMapElemValue()
  26525. }
  26526. if dd.TryDecodeAsNil() {
  26527. if d.h.DeleteOnNilMapValue {
  26528. delete(v, mk)
  26529. } else {
  26530. v[mk] = 0
  26531. }
  26532. continue
  26533. }
  26534. mv = uint(dd.DecodeUint(uintBitsize))
  26535. if v != nil {
  26536. v[mk] = mv
  26537. }
  26538. }
  26539. dd.ReadMapEnd()
  26540. return v, changed
  26541. }
  26542. func (d *Decoder) fastpathDecMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  26543. if rv.Kind() == reflect.Ptr {
  26544. vp := rv2i(rv).(*map[int8]uint8)
  26545. if v, changed := fastpathTV.DecMapInt8Uint8V(*vp, true, d); changed {
  26546. *vp = v
  26547. }
  26548. return
  26549. }
  26550. fastpathTV.DecMapInt8Uint8V(rv2i(rv).(map[int8]uint8), false, d)
  26551. }
  26552. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, d *Decoder) {
  26553. if v, changed := f.DecMapInt8Uint8V(*vp, true, d); changed {
  26554. *vp = v
  26555. }
  26556. }
  26557. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, canChange bool,
  26558. d *Decoder) (_ map[int8]uint8, changed bool) {
  26559. dd, esep := d.d, d.hh.hasElemSeparators()
  26560. containerLen := dd.ReadMapStart()
  26561. if canChange && v == nil {
  26562. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  26563. v = make(map[int8]uint8, xlen)
  26564. changed = true
  26565. }
  26566. if containerLen == 0 {
  26567. dd.ReadMapEnd()
  26568. return v, changed
  26569. }
  26570. var mk int8
  26571. var mv uint8
  26572. hasLen := containerLen > 0
  26573. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26574. if esep {
  26575. dd.ReadMapElemKey()
  26576. }
  26577. mk = int8(dd.DecodeInt(8))
  26578. if esep {
  26579. dd.ReadMapElemValue()
  26580. }
  26581. if dd.TryDecodeAsNil() {
  26582. if d.h.DeleteOnNilMapValue {
  26583. delete(v, mk)
  26584. } else {
  26585. v[mk] = 0
  26586. }
  26587. continue
  26588. }
  26589. mv = uint8(dd.DecodeUint(8))
  26590. if v != nil {
  26591. v[mk] = mv
  26592. }
  26593. }
  26594. dd.ReadMapEnd()
  26595. return v, changed
  26596. }
  26597. func (d *Decoder) fastpathDecMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  26598. if rv.Kind() == reflect.Ptr {
  26599. vp := rv2i(rv).(*map[int8]uint16)
  26600. if v, changed := fastpathTV.DecMapInt8Uint16V(*vp, true, d); changed {
  26601. *vp = v
  26602. }
  26603. return
  26604. }
  26605. fastpathTV.DecMapInt8Uint16V(rv2i(rv).(map[int8]uint16), false, d)
  26606. }
  26607. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, d *Decoder) {
  26608. if v, changed := f.DecMapInt8Uint16V(*vp, true, d); changed {
  26609. *vp = v
  26610. }
  26611. }
  26612. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, canChange bool,
  26613. d *Decoder) (_ map[int8]uint16, changed bool) {
  26614. dd, esep := d.d, d.hh.hasElemSeparators()
  26615. containerLen := dd.ReadMapStart()
  26616. if canChange && v == nil {
  26617. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  26618. v = make(map[int8]uint16, xlen)
  26619. changed = true
  26620. }
  26621. if containerLen == 0 {
  26622. dd.ReadMapEnd()
  26623. return v, changed
  26624. }
  26625. var mk int8
  26626. var mv uint16
  26627. hasLen := containerLen > 0
  26628. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26629. if esep {
  26630. dd.ReadMapElemKey()
  26631. }
  26632. mk = int8(dd.DecodeInt(8))
  26633. if esep {
  26634. dd.ReadMapElemValue()
  26635. }
  26636. if dd.TryDecodeAsNil() {
  26637. if d.h.DeleteOnNilMapValue {
  26638. delete(v, mk)
  26639. } else {
  26640. v[mk] = 0
  26641. }
  26642. continue
  26643. }
  26644. mv = uint16(dd.DecodeUint(16))
  26645. if v != nil {
  26646. v[mk] = mv
  26647. }
  26648. }
  26649. dd.ReadMapEnd()
  26650. return v, changed
  26651. }
  26652. func (d *Decoder) fastpathDecMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  26653. if rv.Kind() == reflect.Ptr {
  26654. vp := rv2i(rv).(*map[int8]uint32)
  26655. if v, changed := fastpathTV.DecMapInt8Uint32V(*vp, true, d); changed {
  26656. *vp = v
  26657. }
  26658. return
  26659. }
  26660. fastpathTV.DecMapInt8Uint32V(rv2i(rv).(map[int8]uint32), false, d)
  26661. }
  26662. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, d *Decoder) {
  26663. if v, changed := f.DecMapInt8Uint32V(*vp, true, d); changed {
  26664. *vp = v
  26665. }
  26666. }
  26667. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, canChange bool,
  26668. d *Decoder) (_ map[int8]uint32, changed bool) {
  26669. dd, esep := d.d, d.hh.hasElemSeparators()
  26670. containerLen := dd.ReadMapStart()
  26671. if canChange && v == nil {
  26672. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26673. v = make(map[int8]uint32, xlen)
  26674. changed = true
  26675. }
  26676. if containerLen == 0 {
  26677. dd.ReadMapEnd()
  26678. return v, changed
  26679. }
  26680. var mk int8
  26681. var mv uint32
  26682. hasLen := containerLen > 0
  26683. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26684. if esep {
  26685. dd.ReadMapElemKey()
  26686. }
  26687. mk = int8(dd.DecodeInt(8))
  26688. if esep {
  26689. dd.ReadMapElemValue()
  26690. }
  26691. if dd.TryDecodeAsNil() {
  26692. if d.h.DeleteOnNilMapValue {
  26693. delete(v, mk)
  26694. } else {
  26695. v[mk] = 0
  26696. }
  26697. continue
  26698. }
  26699. mv = uint32(dd.DecodeUint(32))
  26700. if v != nil {
  26701. v[mk] = mv
  26702. }
  26703. }
  26704. dd.ReadMapEnd()
  26705. return v, changed
  26706. }
  26707. func (d *Decoder) fastpathDecMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  26708. if rv.Kind() == reflect.Ptr {
  26709. vp := rv2i(rv).(*map[int8]uint64)
  26710. if v, changed := fastpathTV.DecMapInt8Uint64V(*vp, true, d); changed {
  26711. *vp = v
  26712. }
  26713. return
  26714. }
  26715. fastpathTV.DecMapInt8Uint64V(rv2i(rv).(map[int8]uint64), false, d)
  26716. }
  26717. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, d *Decoder) {
  26718. if v, changed := f.DecMapInt8Uint64V(*vp, true, d); changed {
  26719. *vp = v
  26720. }
  26721. }
  26722. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, canChange bool,
  26723. d *Decoder) (_ map[int8]uint64, changed bool) {
  26724. dd, esep := d.d, d.hh.hasElemSeparators()
  26725. containerLen := dd.ReadMapStart()
  26726. if canChange && v == nil {
  26727. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26728. v = make(map[int8]uint64, xlen)
  26729. changed = true
  26730. }
  26731. if containerLen == 0 {
  26732. dd.ReadMapEnd()
  26733. return v, changed
  26734. }
  26735. var mk int8
  26736. var mv uint64
  26737. hasLen := containerLen > 0
  26738. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26739. if esep {
  26740. dd.ReadMapElemKey()
  26741. }
  26742. mk = int8(dd.DecodeInt(8))
  26743. if esep {
  26744. dd.ReadMapElemValue()
  26745. }
  26746. if dd.TryDecodeAsNil() {
  26747. if d.h.DeleteOnNilMapValue {
  26748. delete(v, mk)
  26749. } else {
  26750. v[mk] = 0
  26751. }
  26752. continue
  26753. }
  26754. mv = dd.DecodeUint(64)
  26755. if v != nil {
  26756. v[mk] = mv
  26757. }
  26758. }
  26759. dd.ReadMapEnd()
  26760. return v, changed
  26761. }
  26762. func (d *Decoder) fastpathDecMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  26763. if rv.Kind() == reflect.Ptr {
  26764. vp := rv2i(rv).(*map[int8]uintptr)
  26765. if v, changed := fastpathTV.DecMapInt8UintptrV(*vp, true, d); changed {
  26766. *vp = v
  26767. }
  26768. return
  26769. }
  26770. fastpathTV.DecMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), false, d)
  26771. }
  26772. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, d *Decoder) {
  26773. if v, changed := f.DecMapInt8UintptrV(*vp, true, d); changed {
  26774. *vp = v
  26775. }
  26776. }
  26777. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, canChange bool,
  26778. d *Decoder) (_ map[int8]uintptr, changed bool) {
  26779. dd, esep := d.d, d.hh.hasElemSeparators()
  26780. containerLen := dd.ReadMapStart()
  26781. if canChange && v == nil {
  26782. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26783. v = make(map[int8]uintptr, xlen)
  26784. changed = true
  26785. }
  26786. if containerLen == 0 {
  26787. dd.ReadMapEnd()
  26788. return v, changed
  26789. }
  26790. var mk int8
  26791. var mv uintptr
  26792. hasLen := containerLen > 0
  26793. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26794. if esep {
  26795. dd.ReadMapElemKey()
  26796. }
  26797. mk = int8(dd.DecodeInt(8))
  26798. if esep {
  26799. dd.ReadMapElemValue()
  26800. }
  26801. if dd.TryDecodeAsNil() {
  26802. if d.h.DeleteOnNilMapValue {
  26803. delete(v, mk)
  26804. } else {
  26805. v[mk] = 0
  26806. }
  26807. continue
  26808. }
  26809. mv = uintptr(dd.DecodeUint(uintBitsize))
  26810. if v != nil {
  26811. v[mk] = mv
  26812. }
  26813. }
  26814. dd.ReadMapEnd()
  26815. return v, changed
  26816. }
  26817. func (d *Decoder) fastpathDecMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  26818. if rv.Kind() == reflect.Ptr {
  26819. vp := rv2i(rv).(*map[int8]int)
  26820. if v, changed := fastpathTV.DecMapInt8IntV(*vp, true, d); changed {
  26821. *vp = v
  26822. }
  26823. return
  26824. }
  26825. fastpathTV.DecMapInt8IntV(rv2i(rv).(map[int8]int), false, d)
  26826. }
  26827. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, d *Decoder) {
  26828. if v, changed := f.DecMapInt8IntV(*vp, true, d); changed {
  26829. *vp = v
  26830. }
  26831. }
  26832. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, canChange bool,
  26833. d *Decoder) (_ map[int8]int, changed bool) {
  26834. dd, esep := d.d, d.hh.hasElemSeparators()
  26835. containerLen := dd.ReadMapStart()
  26836. if canChange && v == nil {
  26837. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26838. v = make(map[int8]int, xlen)
  26839. changed = true
  26840. }
  26841. if containerLen == 0 {
  26842. dd.ReadMapEnd()
  26843. return v, changed
  26844. }
  26845. var mk int8
  26846. var mv int
  26847. hasLen := containerLen > 0
  26848. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26849. if esep {
  26850. dd.ReadMapElemKey()
  26851. }
  26852. mk = int8(dd.DecodeInt(8))
  26853. if esep {
  26854. dd.ReadMapElemValue()
  26855. }
  26856. if dd.TryDecodeAsNil() {
  26857. if d.h.DeleteOnNilMapValue {
  26858. delete(v, mk)
  26859. } else {
  26860. v[mk] = 0
  26861. }
  26862. continue
  26863. }
  26864. mv = int(dd.DecodeInt(intBitsize))
  26865. if v != nil {
  26866. v[mk] = mv
  26867. }
  26868. }
  26869. dd.ReadMapEnd()
  26870. return v, changed
  26871. }
  26872. func (d *Decoder) fastpathDecMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  26873. if rv.Kind() == reflect.Ptr {
  26874. vp := rv2i(rv).(*map[int8]int8)
  26875. if v, changed := fastpathTV.DecMapInt8Int8V(*vp, true, d); changed {
  26876. *vp = v
  26877. }
  26878. return
  26879. }
  26880. fastpathTV.DecMapInt8Int8V(rv2i(rv).(map[int8]int8), false, d)
  26881. }
  26882. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, d *Decoder) {
  26883. if v, changed := f.DecMapInt8Int8V(*vp, true, d); changed {
  26884. *vp = v
  26885. }
  26886. }
  26887. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, canChange bool,
  26888. d *Decoder) (_ map[int8]int8, changed bool) {
  26889. dd, esep := d.d, d.hh.hasElemSeparators()
  26890. containerLen := dd.ReadMapStart()
  26891. if canChange && v == nil {
  26892. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  26893. v = make(map[int8]int8, xlen)
  26894. changed = true
  26895. }
  26896. if containerLen == 0 {
  26897. dd.ReadMapEnd()
  26898. return v, changed
  26899. }
  26900. var mk int8
  26901. var mv int8
  26902. hasLen := containerLen > 0
  26903. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26904. if esep {
  26905. dd.ReadMapElemKey()
  26906. }
  26907. mk = int8(dd.DecodeInt(8))
  26908. if esep {
  26909. dd.ReadMapElemValue()
  26910. }
  26911. if dd.TryDecodeAsNil() {
  26912. if d.h.DeleteOnNilMapValue {
  26913. delete(v, mk)
  26914. } else {
  26915. v[mk] = 0
  26916. }
  26917. continue
  26918. }
  26919. mv = int8(dd.DecodeInt(8))
  26920. if v != nil {
  26921. v[mk] = mv
  26922. }
  26923. }
  26924. dd.ReadMapEnd()
  26925. return v, changed
  26926. }
  26927. func (d *Decoder) fastpathDecMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  26928. if rv.Kind() == reflect.Ptr {
  26929. vp := rv2i(rv).(*map[int8]int16)
  26930. if v, changed := fastpathTV.DecMapInt8Int16V(*vp, true, d); changed {
  26931. *vp = v
  26932. }
  26933. return
  26934. }
  26935. fastpathTV.DecMapInt8Int16V(rv2i(rv).(map[int8]int16), false, d)
  26936. }
  26937. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, d *Decoder) {
  26938. if v, changed := f.DecMapInt8Int16V(*vp, true, d); changed {
  26939. *vp = v
  26940. }
  26941. }
  26942. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, canChange bool,
  26943. d *Decoder) (_ map[int8]int16, changed bool) {
  26944. dd, esep := d.d, d.hh.hasElemSeparators()
  26945. containerLen := dd.ReadMapStart()
  26946. if canChange && v == nil {
  26947. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  26948. v = make(map[int8]int16, xlen)
  26949. changed = true
  26950. }
  26951. if containerLen == 0 {
  26952. dd.ReadMapEnd()
  26953. return v, changed
  26954. }
  26955. var mk int8
  26956. var mv int16
  26957. hasLen := containerLen > 0
  26958. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26959. if esep {
  26960. dd.ReadMapElemKey()
  26961. }
  26962. mk = int8(dd.DecodeInt(8))
  26963. if esep {
  26964. dd.ReadMapElemValue()
  26965. }
  26966. if dd.TryDecodeAsNil() {
  26967. if d.h.DeleteOnNilMapValue {
  26968. delete(v, mk)
  26969. } else {
  26970. v[mk] = 0
  26971. }
  26972. continue
  26973. }
  26974. mv = int16(dd.DecodeInt(16))
  26975. if v != nil {
  26976. v[mk] = mv
  26977. }
  26978. }
  26979. dd.ReadMapEnd()
  26980. return v, changed
  26981. }
  26982. func (d *Decoder) fastpathDecMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  26983. if rv.Kind() == reflect.Ptr {
  26984. vp := rv2i(rv).(*map[int8]int32)
  26985. if v, changed := fastpathTV.DecMapInt8Int32V(*vp, true, d); changed {
  26986. *vp = v
  26987. }
  26988. return
  26989. }
  26990. fastpathTV.DecMapInt8Int32V(rv2i(rv).(map[int8]int32), false, d)
  26991. }
  26992. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, d *Decoder) {
  26993. if v, changed := f.DecMapInt8Int32V(*vp, true, d); changed {
  26994. *vp = v
  26995. }
  26996. }
  26997. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, canChange bool,
  26998. d *Decoder) (_ map[int8]int32, changed bool) {
  26999. dd, esep := d.d, d.hh.hasElemSeparators()
  27000. containerLen := dd.ReadMapStart()
  27001. if canChange && v == nil {
  27002. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27003. v = make(map[int8]int32, xlen)
  27004. changed = true
  27005. }
  27006. if containerLen == 0 {
  27007. dd.ReadMapEnd()
  27008. return v, changed
  27009. }
  27010. var mk int8
  27011. var mv int32
  27012. hasLen := containerLen > 0
  27013. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27014. if esep {
  27015. dd.ReadMapElemKey()
  27016. }
  27017. mk = int8(dd.DecodeInt(8))
  27018. if esep {
  27019. dd.ReadMapElemValue()
  27020. }
  27021. if dd.TryDecodeAsNil() {
  27022. if d.h.DeleteOnNilMapValue {
  27023. delete(v, mk)
  27024. } else {
  27025. v[mk] = 0
  27026. }
  27027. continue
  27028. }
  27029. mv = int32(dd.DecodeInt(32))
  27030. if v != nil {
  27031. v[mk] = mv
  27032. }
  27033. }
  27034. dd.ReadMapEnd()
  27035. return v, changed
  27036. }
  27037. func (d *Decoder) fastpathDecMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  27038. if rv.Kind() == reflect.Ptr {
  27039. vp := rv2i(rv).(*map[int8]int64)
  27040. if v, changed := fastpathTV.DecMapInt8Int64V(*vp, true, d); changed {
  27041. *vp = v
  27042. }
  27043. return
  27044. }
  27045. fastpathTV.DecMapInt8Int64V(rv2i(rv).(map[int8]int64), false, d)
  27046. }
  27047. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, d *Decoder) {
  27048. if v, changed := f.DecMapInt8Int64V(*vp, true, d); changed {
  27049. *vp = v
  27050. }
  27051. }
  27052. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, canChange bool,
  27053. d *Decoder) (_ map[int8]int64, changed bool) {
  27054. dd, esep := d.d, d.hh.hasElemSeparators()
  27055. containerLen := dd.ReadMapStart()
  27056. if canChange && v == nil {
  27057. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27058. v = make(map[int8]int64, xlen)
  27059. changed = true
  27060. }
  27061. if containerLen == 0 {
  27062. dd.ReadMapEnd()
  27063. return v, changed
  27064. }
  27065. var mk int8
  27066. var mv int64
  27067. hasLen := containerLen > 0
  27068. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27069. if esep {
  27070. dd.ReadMapElemKey()
  27071. }
  27072. mk = int8(dd.DecodeInt(8))
  27073. if esep {
  27074. dd.ReadMapElemValue()
  27075. }
  27076. if dd.TryDecodeAsNil() {
  27077. if d.h.DeleteOnNilMapValue {
  27078. delete(v, mk)
  27079. } else {
  27080. v[mk] = 0
  27081. }
  27082. continue
  27083. }
  27084. mv = dd.DecodeInt(64)
  27085. if v != nil {
  27086. v[mk] = mv
  27087. }
  27088. }
  27089. dd.ReadMapEnd()
  27090. return v, changed
  27091. }
  27092. func (d *Decoder) fastpathDecMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  27093. if rv.Kind() == reflect.Ptr {
  27094. vp := rv2i(rv).(*map[int8]float32)
  27095. if v, changed := fastpathTV.DecMapInt8Float32V(*vp, true, d); changed {
  27096. *vp = v
  27097. }
  27098. return
  27099. }
  27100. fastpathTV.DecMapInt8Float32V(rv2i(rv).(map[int8]float32), false, d)
  27101. }
  27102. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, d *Decoder) {
  27103. if v, changed := f.DecMapInt8Float32V(*vp, true, d); changed {
  27104. *vp = v
  27105. }
  27106. }
  27107. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, canChange bool,
  27108. d *Decoder) (_ map[int8]float32, changed bool) {
  27109. dd, esep := d.d, d.hh.hasElemSeparators()
  27110. containerLen := dd.ReadMapStart()
  27111. if canChange && v == nil {
  27112. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27113. v = make(map[int8]float32, xlen)
  27114. changed = true
  27115. }
  27116. if containerLen == 0 {
  27117. dd.ReadMapEnd()
  27118. return v, changed
  27119. }
  27120. var mk int8
  27121. var mv float32
  27122. hasLen := containerLen > 0
  27123. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27124. if esep {
  27125. dd.ReadMapElemKey()
  27126. }
  27127. mk = int8(dd.DecodeInt(8))
  27128. if esep {
  27129. dd.ReadMapElemValue()
  27130. }
  27131. if dd.TryDecodeAsNil() {
  27132. if d.h.DeleteOnNilMapValue {
  27133. delete(v, mk)
  27134. } else {
  27135. v[mk] = 0
  27136. }
  27137. continue
  27138. }
  27139. mv = float32(dd.DecodeFloat(true))
  27140. if v != nil {
  27141. v[mk] = mv
  27142. }
  27143. }
  27144. dd.ReadMapEnd()
  27145. return v, changed
  27146. }
  27147. func (d *Decoder) fastpathDecMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  27148. if rv.Kind() == reflect.Ptr {
  27149. vp := rv2i(rv).(*map[int8]float64)
  27150. if v, changed := fastpathTV.DecMapInt8Float64V(*vp, true, d); changed {
  27151. *vp = v
  27152. }
  27153. return
  27154. }
  27155. fastpathTV.DecMapInt8Float64V(rv2i(rv).(map[int8]float64), false, d)
  27156. }
  27157. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, d *Decoder) {
  27158. if v, changed := f.DecMapInt8Float64V(*vp, true, d); changed {
  27159. *vp = v
  27160. }
  27161. }
  27162. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, canChange bool,
  27163. d *Decoder) (_ map[int8]float64, changed bool) {
  27164. dd, esep := d.d, d.hh.hasElemSeparators()
  27165. containerLen := dd.ReadMapStart()
  27166. if canChange && v == nil {
  27167. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27168. v = make(map[int8]float64, xlen)
  27169. changed = true
  27170. }
  27171. if containerLen == 0 {
  27172. dd.ReadMapEnd()
  27173. return v, changed
  27174. }
  27175. var mk int8
  27176. var mv float64
  27177. hasLen := containerLen > 0
  27178. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27179. if esep {
  27180. dd.ReadMapElemKey()
  27181. }
  27182. mk = int8(dd.DecodeInt(8))
  27183. if esep {
  27184. dd.ReadMapElemValue()
  27185. }
  27186. if dd.TryDecodeAsNil() {
  27187. if d.h.DeleteOnNilMapValue {
  27188. delete(v, mk)
  27189. } else {
  27190. v[mk] = 0
  27191. }
  27192. continue
  27193. }
  27194. mv = dd.DecodeFloat(false)
  27195. if v != nil {
  27196. v[mk] = mv
  27197. }
  27198. }
  27199. dd.ReadMapEnd()
  27200. return v, changed
  27201. }
  27202. func (d *Decoder) fastpathDecMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  27203. if rv.Kind() == reflect.Ptr {
  27204. vp := rv2i(rv).(*map[int8]bool)
  27205. if v, changed := fastpathTV.DecMapInt8BoolV(*vp, true, d); changed {
  27206. *vp = v
  27207. }
  27208. return
  27209. }
  27210. fastpathTV.DecMapInt8BoolV(rv2i(rv).(map[int8]bool), false, d)
  27211. }
  27212. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, d *Decoder) {
  27213. if v, changed := f.DecMapInt8BoolV(*vp, true, d); changed {
  27214. *vp = v
  27215. }
  27216. }
  27217. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, canChange bool,
  27218. d *Decoder) (_ map[int8]bool, changed bool) {
  27219. dd, esep := d.d, d.hh.hasElemSeparators()
  27220. containerLen := dd.ReadMapStart()
  27221. if canChange && v == nil {
  27222. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  27223. v = make(map[int8]bool, xlen)
  27224. changed = true
  27225. }
  27226. if containerLen == 0 {
  27227. dd.ReadMapEnd()
  27228. return v, changed
  27229. }
  27230. var mk int8
  27231. var mv bool
  27232. hasLen := containerLen > 0
  27233. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27234. if esep {
  27235. dd.ReadMapElemKey()
  27236. }
  27237. mk = int8(dd.DecodeInt(8))
  27238. if esep {
  27239. dd.ReadMapElemValue()
  27240. }
  27241. if dd.TryDecodeAsNil() {
  27242. if d.h.DeleteOnNilMapValue {
  27243. delete(v, mk)
  27244. } else {
  27245. v[mk] = false
  27246. }
  27247. continue
  27248. }
  27249. mv = dd.DecodeBool()
  27250. if v != nil {
  27251. v[mk] = mv
  27252. }
  27253. }
  27254. dd.ReadMapEnd()
  27255. return v, changed
  27256. }
  27257. func (d *Decoder) fastpathDecMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  27258. if rv.Kind() == reflect.Ptr {
  27259. vp := rv2i(rv).(*map[int16]interface{})
  27260. if v, changed := fastpathTV.DecMapInt16IntfV(*vp, true, d); changed {
  27261. *vp = v
  27262. }
  27263. return
  27264. }
  27265. fastpathTV.DecMapInt16IntfV(rv2i(rv).(map[int16]interface{}), false, d)
  27266. }
  27267. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, d *Decoder) {
  27268. if v, changed := f.DecMapInt16IntfV(*vp, true, d); changed {
  27269. *vp = v
  27270. }
  27271. }
  27272. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, canChange bool,
  27273. d *Decoder) (_ map[int16]interface{}, changed bool) {
  27274. dd, esep := d.d, d.hh.hasElemSeparators()
  27275. containerLen := dd.ReadMapStart()
  27276. if canChange && v == nil {
  27277. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  27278. v = make(map[int16]interface{}, xlen)
  27279. changed = true
  27280. }
  27281. if containerLen == 0 {
  27282. dd.ReadMapEnd()
  27283. return v, changed
  27284. }
  27285. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  27286. var mk int16
  27287. var mv interface{}
  27288. hasLen := containerLen > 0
  27289. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27290. if esep {
  27291. dd.ReadMapElemKey()
  27292. }
  27293. mk = int16(dd.DecodeInt(16))
  27294. if esep {
  27295. dd.ReadMapElemValue()
  27296. }
  27297. if dd.TryDecodeAsNil() {
  27298. if d.h.DeleteOnNilMapValue {
  27299. delete(v, mk)
  27300. } else {
  27301. v[mk] = nil
  27302. }
  27303. continue
  27304. }
  27305. if mapGet {
  27306. mv = v[mk]
  27307. } else {
  27308. mv = nil
  27309. }
  27310. d.decode(&mv)
  27311. if v != nil {
  27312. v[mk] = mv
  27313. }
  27314. }
  27315. dd.ReadMapEnd()
  27316. return v, changed
  27317. }
  27318. func (d *Decoder) fastpathDecMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  27319. if rv.Kind() == reflect.Ptr {
  27320. vp := rv2i(rv).(*map[int16]string)
  27321. if v, changed := fastpathTV.DecMapInt16StringV(*vp, true, d); changed {
  27322. *vp = v
  27323. }
  27324. return
  27325. }
  27326. fastpathTV.DecMapInt16StringV(rv2i(rv).(map[int16]string), false, d)
  27327. }
  27328. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, d *Decoder) {
  27329. if v, changed := f.DecMapInt16StringV(*vp, true, d); changed {
  27330. *vp = v
  27331. }
  27332. }
  27333. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, canChange bool,
  27334. d *Decoder) (_ map[int16]string, changed bool) {
  27335. dd, esep := d.d, d.hh.hasElemSeparators()
  27336. containerLen := dd.ReadMapStart()
  27337. if canChange && v == nil {
  27338. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  27339. v = make(map[int16]string, xlen)
  27340. changed = true
  27341. }
  27342. if containerLen == 0 {
  27343. dd.ReadMapEnd()
  27344. return v, changed
  27345. }
  27346. var mk int16
  27347. var mv string
  27348. hasLen := containerLen > 0
  27349. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27350. if esep {
  27351. dd.ReadMapElemKey()
  27352. }
  27353. mk = int16(dd.DecodeInt(16))
  27354. if esep {
  27355. dd.ReadMapElemValue()
  27356. }
  27357. if dd.TryDecodeAsNil() {
  27358. if d.h.DeleteOnNilMapValue {
  27359. delete(v, mk)
  27360. } else {
  27361. v[mk] = ""
  27362. }
  27363. continue
  27364. }
  27365. mv = dd.DecodeString()
  27366. if v != nil {
  27367. v[mk] = mv
  27368. }
  27369. }
  27370. dd.ReadMapEnd()
  27371. return v, changed
  27372. }
  27373. func (d *Decoder) fastpathDecMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  27374. if rv.Kind() == reflect.Ptr {
  27375. vp := rv2i(rv).(*map[int16]uint)
  27376. if v, changed := fastpathTV.DecMapInt16UintV(*vp, true, d); changed {
  27377. *vp = v
  27378. }
  27379. return
  27380. }
  27381. fastpathTV.DecMapInt16UintV(rv2i(rv).(map[int16]uint), false, d)
  27382. }
  27383. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, d *Decoder) {
  27384. if v, changed := f.DecMapInt16UintV(*vp, true, d); changed {
  27385. *vp = v
  27386. }
  27387. }
  27388. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, canChange bool,
  27389. d *Decoder) (_ map[int16]uint, changed bool) {
  27390. dd, esep := d.d, d.hh.hasElemSeparators()
  27391. containerLen := dd.ReadMapStart()
  27392. if canChange && v == nil {
  27393. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27394. v = make(map[int16]uint, xlen)
  27395. changed = true
  27396. }
  27397. if containerLen == 0 {
  27398. dd.ReadMapEnd()
  27399. return v, changed
  27400. }
  27401. var mk int16
  27402. var mv uint
  27403. hasLen := containerLen > 0
  27404. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27405. if esep {
  27406. dd.ReadMapElemKey()
  27407. }
  27408. mk = int16(dd.DecodeInt(16))
  27409. if esep {
  27410. dd.ReadMapElemValue()
  27411. }
  27412. if dd.TryDecodeAsNil() {
  27413. if d.h.DeleteOnNilMapValue {
  27414. delete(v, mk)
  27415. } else {
  27416. v[mk] = 0
  27417. }
  27418. continue
  27419. }
  27420. mv = uint(dd.DecodeUint(uintBitsize))
  27421. if v != nil {
  27422. v[mk] = mv
  27423. }
  27424. }
  27425. dd.ReadMapEnd()
  27426. return v, changed
  27427. }
  27428. func (d *Decoder) fastpathDecMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  27429. if rv.Kind() == reflect.Ptr {
  27430. vp := rv2i(rv).(*map[int16]uint8)
  27431. if v, changed := fastpathTV.DecMapInt16Uint8V(*vp, true, d); changed {
  27432. *vp = v
  27433. }
  27434. return
  27435. }
  27436. fastpathTV.DecMapInt16Uint8V(rv2i(rv).(map[int16]uint8), false, d)
  27437. }
  27438. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, d *Decoder) {
  27439. if v, changed := f.DecMapInt16Uint8V(*vp, true, d); changed {
  27440. *vp = v
  27441. }
  27442. }
  27443. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, canChange bool,
  27444. d *Decoder) (_ map[int16]uint8, changed bool) {
  27445. dd, esep := d.d, d.hh.hasElemSeparators()
  27446. containerLen := dd.ReadMapStart()
  27447. if canChange && v == nil {
  27448. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  27449. v = make(map[int16]uint8, xlen)
  27450. changed = true
  27451. }
  27452. if containerLen == 0 {
  27453. dd.ReadMapEnd()
  27454. return v, changed
  27455. }
  27456. var mk int16
  27457. var mv uint8
  27458. hasLen := containerLen > 0
  27459. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27460. if esep {
  27461. dd.ReadMapElemKey()
  27462. }
  27463. mk = int16(dd.DecodeInt(16))
  27464. if esep {
  27465. dd.ReadMapElemValue()
  27466. }
  27467. if dd.TryDecodeAsNil() {
  27468. if d.h.DeleteOnNilMapValue {
  27469. delete(v, mk)
  27470. } else {
  27471. v[mk] = 0
  27472. }
  27473. continue
  27474. }
  27475. mv = uint8(dd.DecodeUint(8))
  27476. if v != nil {
  27477. v[mk] = mv
  27478. }
  27479. }
  27480. dd.ReadMapEnd()
  27481. return v, changed
  27482. }
  27483. func (d *Decoder) fastpathDecMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  27484. if rv.Kind() == reflect.Ptr {
  27485. vp := rv2i(rv).(*map[int16]uint16)
  27486. if v, changed := fastpathTV.DecMapInt16Uint16V(*vp, true, d); changed {
  27487. *vp = v
  27488. }
  27489. return
  27490. }
  27491. fastpathTV.DecMapInt16Uint16V(rv2i(rv).(map[int16]uint16), false, d)
  27492. }
  27493. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, d *Decoder) {
  27494. if v, changed := f.DecMapInt16Uint16V(*vp, true, d); changed {
  27495. *vp = v
  27496. }
  27497. }
  27498. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, canChange bool,
  27499. d *Decoder) (_ map[int16]uint16, changed bool) {
  27500. dd, esep := d.d, d.hh.hasElemSeparators()
  27501. containerLen := dd.ReadMapStart()
  27502. if canChange && v == nil {
  27503. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  27504. v = make(map[int16]uint16, xlen)
  27505. changed = true
  27506. }
  27507. if containerLen == 0 {
  27508. dd.ReadMapEnd()
  27509. return v, changed
  27510. }
  27511. var mk int16
  27512. var mv uint16
  27513. hasLen := containerLen > 0
  27514. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27515. if esep {
  27516. dd.ReadMapElemKey()
  27517. }
  27518. mk = int16(dd.DecodeInt(16))
  27519. if esep {
  27520. dd.ReadMapElemValue()
  27521. }
  27522. if dd.TryDecodeAsNil() {
  27523. if d.h.DeleteOnNilMapValue {
  27524. delete(v, mk)
  27525. } else {
  27526. v[mk] = 0
  27527. }
  27528. continue
  27529. }
  27530. mv = uint16(dd.DecodeUint(16))
  27531. if v != nil {
  27532. v[mk] = mv
  27533. }
  27534. }
  27535. dd.ReadMapEnd()
  27536. return v, changed
  27537. }
  27538. func (d *Decoder) fastpathDecMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  27539. if rv.Kind() == reflect.Ptr {
  27540. vp := rv2i(rv).(*map[int16]uint32)
  27541. if v, changed := fastpathTV.DecMapInt16Uint32V(*vp, true, d); changed {
  27542. *vp = v
  27543. }
  27544. return
  27545. }
  27546. fastpathTV.DecMapInt16Uint32V(rv2i(rv).(map[int16]uint32), false, d)
  27547. }
  27548. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, d *Decoder) {
  27549. if v, changed := f.DecMapInt16Uint32V(*vp, true, d); changed {
  27550. *vp = v
  27551. }
  27552. }
  27553. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, canChange bool,
  27554. d *Decoder) (_ map[int16]uint32, changed bool) {
  27555. dd, esep := d.d, d.hh.hasElemSeparators()
  27556. containerLen := dd.ReadMapStart()
  27557. if canChange && v == nil {
  27558. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  27559. v = make(map[int16]uint32, xlen)
  27560. changed = true
  27561. }
  27562. if containerLen == 0 {
  27563. dd.ReadMapEnd()
  27564. return v, changed
  27565. }
  27566. var mk int16
  27567. var mv uint32
  27568. hasLen := containerLen > 0
  27569. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27570. if esep {
  27571. dd.ReadMapElemKey()
  27572. }
  27573. mk = int16(dd.DecodeInt(16))
  27574. if esep {
  27575. dd.ReadMapElemValue()
  27576. }
  27577. if dd.TryDecodeAsNil() {
  27578. if d.h.DeleteOnNilMapValue {
  27579. delete(v, mk)
  27580. } else {
  27581. v[mk] = 0
  27582. }
  27583. continue
  27584. }
  27585. mv = uint32(dd.DecodeUint(32))
  27586. if v != nil {
  27587. v[mk] = mv
  27588. }
  27589. }
  27590. dd.ReadMapEnd()
  27591. return v, changed
  27592. }
  27593. func (d *Decoder) fastpathDecMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  27594. if rv.Kind() == reflect.Ptr {
  27595. vp := rv2i(rv).(*map[int16]uint64)
  27596. if v, changed := fastpathTV.DecMapInt16Uint64V(*vp, true, d); changed {
  27597. *vp = v
  27598. }
  27599. return
  27600. }
  27601. fastpathTV.DecMapInt16Uint64V(rv2i(rv).(map[int16]uint64), false, d)
  27602. }
  27603. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, d *Decoder) {
  27604. if v, changed := f.DecMapInt16Uint64V(*vp, true, d); changed {
  27605. *vp = v
  27606. }
  27607. }
  27608. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, canChange bool,
  27609. d *Decoder) (_ map[int16]uint64, changed bool) {
  27610. dd, esep := d.d, d.hh.hasElemSeparators()
  27611. containerLen := dd.ReadMapStart()
  27612. if canChange && v == nil {
  27613. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27614. v = make(map[int16]uint64, xlen)
  27615. changed = true
  27616. }
  27617. if containerLen == 0 {
  27618. dd.ReadMapEnd()
  27619. return v, changed
  27620. }
  27621. var mk int16
  27622. var mv uint64
  27623. hasLen := containerLen > 0
  27624. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27625. if esep {
  27626. dd.ReadMapElemKey()
  27627. }
  27628. mk = int16(dd.DecodeInt(16))
  27629. if esep {
  27630. dd.ReadMapElemValue()
  27631. }
  27632. if dd.TryDecodeAsNil() {
  27633. if d.h.DeleteOnNilMapValue {
  27634. delete(v, mk)
  27635. } else {
  27636. v[mk] = 0
  27637. }
  27638. continue
  27639. }
  27640. mv = dd.DecodeUint(64)
  27641. if v != nil {
  27642. v[mk] = mv
  27643. }
  27644. }
  27645. dd.ReadMapEnd()
  27646. return v, changed
  27647. }
  27648. func (d *Decoder) fastpathDecMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  27649. if rv.Kind() == reflect.Ptr {
  27650. vp := rv2i(rv).(*map[int16]uintptr)
  27651. if v, changed := fastpathTV.DecMapInt16UintptrV(*vp, true, d); changed {
  27652. *vp = v
  27653. }
  27654. return
  27655. }
  27656. fastpathTV.DecMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), false, d)
  27657. }
  27658. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, d *Decoder) {
  27659. if v, changed := f.DecMapInt16UintptrV(*vp, true, d); changed {
  27660. *vp = v
  27661. }
  27662. }
  27663. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, canChange bool,
  27664. d *Decoder) (_ map[int16]uintptr, changed bool) {
  27665. dd, esep := d.d, d.hh.hasElemSeparators()
  27666. containerLen := dd.ReadMapStart()
  27667. if canChange && v == nil {
  27668. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27669. v = make(map[int16]uintptr, xlen)
  27670. changed = true
  27671. }
  27672. if containerLen == 0 {
  27673. dd.ReadMapEnd()
  27674. return v, changed
  27675. }
  27676. var mk int16
  27677. var mv uintptr
  27678. hasLen := containerLen > 0
  27679. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27680. if esep {
  27681. dd.ReadMapElemKey()
  27682. }
  27683. mk = int16(dd.DecodeInt(16))
  27684. if esep {
  27685. dd.ReadMapElemValue()
  27686. }
  27687. if dd.TryDecodeAsNil() {
  27688. if d.h.DeleteOnNilMapValue {
  27689. delete(v, mk)
  27690. } else {
  27691. v[mk] = 0
  27692. }
  27693. continue
  27694. }
  27695. mv = uintptr(dd.DecodeUint(uintBitsize))
  27696. if v != nil {
  27697. v[mk] = mv
  27698. }
  27699. }
  27700. dd.ReadMapEnd()
  27701. return v, changed
  27702. }
  27703. func (d *Decoder) fastpathDecMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  27704. if rv.Kind() == reflect.Ptr {
  27705. vp := rv2i(rv).(*map[int16]int)
  27706. if v, changed := fastpathTV.DecMapInt16IntV(*vp, true, d); changed {
  27707. *vp = v
  27708. }
  27709. return
  27710. }
  27711. fastpathTV.DecMapInt16IntV(rv2i(rv).(map[int16]int), false, d)
  27712. }
  27713. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, d *Decoder) {
  27714. if v, changed := f.DecMapInt16IntV(*vp, true, d); changed {
  27715. *vp = v
  27716. }
  27717. }
  27718. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, canChange bool,
  27719. d *Decoder) (_ map[int16]int, changed bool) {
  27720. dd, esep := d.d, d.hh.hasElemSeparators()
  27721. containerLen := dd.ReadMapStart()
  27722. if canChange && v == nil {
  27723. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27724. v = make(map[int16]int, xlen)
  27725. changed = true
  27726. }
  27727. if containerLen == 0 {
  27728. dd.ReadMapEnd()
  27729. return v, changed
  27730. }
  27731. var mk int16
  27732. var mv int
  27733. hasLen := containerLen > 0
  27734. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27735. if esep {
  27736. dd.ReadMapElemKey()
  27737. }
  27738. mk = int16(dd.DecodeInt(16))
  27739. if esep {
  27740. dd.ReadMapElemValue()
  27741. }
  27742. if dd.TryDecodeAsNil() {
  27743. if d.h.DeleteOnNilMapValue {
  27744. delete(v, mk)
  27745. } else {
  27746. v[mk] = 0
  27747. }
  27748. continue
  27749. }
  27750. mv = int(dd.DecodeInt(intBitsize))
  27751. if v != nil {
  27752. v[mk] = mv
  27753. }
  27754. }
  27755. dd.ReadMapEnd()
  27756. return v, changed
  27757. }
  27758. func (d *Decoder) fastpathDecMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  27759. if rv.Kind() == reflect.Ptr {
  27760. vp := rv2i(rv).(*map[int16]int8)
  27761. if v, changed := fastpathTV.DecMapInt16Int8V(*vp, true, d); changed {
  27762. *vp = v
  27763. }
  27764. return
  27765. }
  27766. fastpathTV.DecMapInt16Int8V(rv2i(rv).(map[int16]int8), false, d)
  27767. }
  27768. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, d *Decoder) {
  27769. if v, changed := f.DecMapInt16Int8V(*vp, true, d); changed {
  27770. *vp = v
  27771. }
  27772. }
  27773. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, canChange bool,
  27774. d *Decoder) (_ map[int16]int8, changed bool) {
  27775. dd, esep := d.d, d.hh.hasElemSeparators()
  27776. containerLen := dd.ReadMapStart()
  27777. if canChange && v == nil {
  27778. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  27779. v = make(map[int16]int8, xlen)
  27780. changed = true
  27781. }
  27782. if containerLen == 0 {
  27783. dd.ReadMapEnd()
  27784. return v, changed
  27785. }
  27786. var mk int16
  27787. var mv int8
  27788. hasLen := containerLen > 0
  27789. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27790. if esep {
  27791. dd.ReadMapElemKey()
  27792. }
  27793. mk = int16(dd.DecodeInt(16))
  27794. if esep {
  27795. dd.ReadMapElemValue()
  27796. }
  27797. if dd.TryDecodeAsNil() {
  27798. if d.h.DeleteOnNilMapValue {
  27799. delete(v, mk)
  27800. } else {
  27801. v[mk] = 0
  27802. }
  27803. continue
  27804. }
  27805. mv = int8(dd.DecodeInt(8))
  27806. if v != nil {
  27807. v[mk] = mv
  27808. }
  27809. }
  27810. dd.ReadMapEnd()
  27811. return v, changed
  27812. }
  27813. func (d *Decoder) fastpathDecMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  27814. if rv.Kind() == reflect.Ptr {
  27815. vp := rv2i(rv).(*map[int16]int16)
  27816. if v, changed := fastpathTV.DecMapInt16Int16V(*vp, true, d); changed {
  27817. *vp = v
  27818. }
  27819. return
  27820. }
  27821. fastpathTV.DecMapInt16Int16V(rv2i(rv).(map[int16]int16), false, d)
  27822. }
  27823. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, d *Decoder) {
  27824. if v, changed := f.DecMapInt16Int16V(*vp, true, d); changed {
  27825. *vp = v
  27826. }
  27827. }
  27828. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, canChange bool,
  27829. d *Decoder) (_ map[int16]int16, changed bool) {
  27830. dd, esep := d.d, d.hh.hasElemSeparators()
  27831. containerLen := dd.ReadMapStart()
  27832. if canChange && v == nil {
  27833. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  27834. v = make(map[int16]int16, xlen)
  27835. changed = true
  27836. }
  27837. if containerLen == 0 {
  27838. dd.ReadMapEnd()
  27839. return v, changed
  27840. }
  27841. var mk int16
  27842. var mv int16
  27843. hasLen := containerLen > 0
  27844. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27845. if esep {
  27846. dd.ReadMapElemKey()
  27847. }
  27848. mk = int16(dd.DecodeInt(16))
  27849. if esep {
  27850. dd.ReadMapElemValue()
  27851. }
  27852. if dd.TryDecodeAsNil() {
  27853. if d.h.DeleteOnNilMapValue {
  27854. delete(v, mk)
  27855. } else {
  27856. v[mk] = 0
  27857. }
  27858. continue
  27859. }
  27860. mv = int16(dd.DecodeInt(16))
  27861. if v != nil {
  27862. v[mk] = mv
  27863. }
  27864. }
  27865. dd.ReadMapEnd()
  27866. return v, changed
  27867. }
  27868. func (d *Decoder) fastpathDecMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  27869. if rv.Kind() == reflect.Ptr {
  27870. vp := rv2i(rv).(*map[int16]int32)
  27871. if v, changed := fastpathTV.DecMapInt16Int32V(*vp, true, d); changed {
  27872. *vp = v
  27873. }
  27874. return
  27875. }
  27876. fastpathTV.DecMapInt16Int32V(rv2i(rv).(map[int16]int32), false, d)
  27877. }
  27878. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, d *Decoder) {
  27879. if v, changed := f.DecMapInt16Int32V(*vp, true, d); changed {
  27880. *vp = v
  27881. }
  27882. }
  27883. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, canChange bool,
  27884. d *Decoder) (_ map[int16]int32, changed bool) {
  27885. dd, esep := d.d, d.hh.hasElemSeparators()
  27886. containerLen := dd.ReadMapStart()
  27887. if canChange && v == nil {
  27888. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  27889. v = make(map[int16]int32, xlen)
  27890. changed = true
  27891. }
  27892. if containerLen == 0 {
  27893. dd.ReadMapEnd()
  27894. return v, changed
  27895. }
  27896. var mk int16
  27897. var mv int32
  27898. hasLen := containerLen > 0
  27899. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27900. if esep {
  27901. dd.ReadMapElemKey()
  27902. }
  27903. mk = int16(dd.DecodeInt(16))
  27904. if esep {
  27905. dd.ReadMapElemValue()
  27906. }
  27907. if dd.TryDecodeAsNil() {
  27908. if d.h.DeleteOnNilMapValue {
  27909. delete(v, mk)
  27910. } else {
  27911. v[mk] = 0
  27912. }
  27913. continue
  27914. }
  27915. mv = int32(dd.DecodeInt(32))
  27916. if v != nil {
  27917. v[mk] = mv
  27918. }
  27919. }
  27920. dd.ReadMapEnd()
  27921. return v, changed
  27922. }
  27923. func (d *Decoder) fastpathDecMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  27924. if rv.Kind() == reflect.Ptr {
  27925. vp := rv2i(rv).(*map[int16]int64)
  27926. if v, changed := fastpathTV.DecMapInt16Int64V(*vp, true, d); changed {
  27927. *vp = v
  27928. }
  27929. return
  27930. }
  27931. fastpathTV.DecMapInt16Int64V(rv2i(rv).(map[int16]int64), false, d)
  27932. }
  27933. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, d *Decoder) {
  27934. if v, changed := f.DecMapInt16Int64V(*vp, true, d); changed {
  27935. *vp = v
  27936. }
  27937. }
  27938. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, canChange bool,
  27939. d *Decoder) (_ map[int16]int64, changed bool) {
  27940. dd, esep := d.d, d.hh.hasElemSeparators()
  27941. containerLen := dd.ReadMapStart()
  27942. if canChange && v == nil {
  27943. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27944. v = make(map[int16]int64, xlen)
  27945. changed = true
  27946. }
  27947. if containerLen == 0 {
  27948. dd.ReadMapEnd()
  27949. return v, changed
  27950. }
  27951. var mk int16
  27952. var mv int64
  27953. hasLen := containerLen > 0
  27954. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27955. if esep {
  27956. dd.ReadMapElemKey()
  27957. }
  27958. mk = int16(dd.DecodeInt(16))
  27959. if esep {
  27960. dd.ReadMapElemValue()
  27961. }
  27962. if dd.TryDecodeAsNil() {
  27963. if d.h.DeleteOnNilMapValue {
  27964. delete(v, mk)
  27965. } else {
  27966. v[mk] = 0
  27967. }
  27968. continue
  27969. }
  27970. mv = dd.DecodeInt(64)
  27971. if v != nil {
  27972. v[mk] = mv
  27973. }
  27974. }
  27975. dd.ReadMapEnd()
  27976. return v, changed
  27977. }
  27978. func (d *Decoder) fastpathDecMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  27979. if rv.Kind() == reflect.Ptr {
  27980. vp := rv2i(rv).(*map[int16]float32)
  27981. if v, changed := fastpathTV.DecMapInt16Float32V(*vp, true, d); changed {
  27982. *vp = v
  27983. }
  27984. return
  27985. }
  27986. fastpathTV.DecMapInt16Float32V(rv2i(rv).(map[int16]float32), false, d)
  27987. }
  27988. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, d *Decoder) {
  27989. if v, changed := f.DecMapInt16Float32V(*vp, true, d); changed {
  27990. *vp = v
  27991. }
  27992. }
  27993. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, canChange bool,
  27994. d *Decoder) (_ map[int16]float32, changed bool) {
  27995. dd, esep := d.d, d.hh.hasElemSeparators()
  27996. containerLen := dd.ReadMapStart()
  27997. if canChange && v == nil {
  27998. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  27999. v = make(map[int16]float32, xlen)
  28000. changed = true
  28001. }
  28002. if containerLen == 0 {
  28003. dd.ReadMapEnd()
  28004. return v, changed
  28005. }
  28006. var mk int16
  28007. var mv float32
  28008. hasLen := containerLen > 0
  28009. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28010. if esep {
  28011. dd.ReadMapElemKey()
  28012. }
  28013. mk = int16(dd.DecodeInt(16))
  28014. if esep {
  28015. dd.ReadMapElemValue()
  28016. }
  28017. if dd.TryDecodeAsNil() {
  28018. if d.h.DeleteOnNilMapValue {
  28019. delete(v, mk)
  28020. } else {
  28021. v[mk] = 0
  28022. }
  28023. continue
  28024. }
  28025. mv = float32(dd.DecodeFloat(true))
  28026. if v != nil {
  28027. v[mk] = mv
  28028. }
  28029. }
  28030. dd.ReadMapEnd()
  28031. return v, changed
  28032. }
  28033. func (d *Decoder) fastpathDecMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  28034. if rv.Kind() == reflect.Ptr {
  28035. vp := rv2i(rv).(*map[int16]float64)
  28036. if v, changed := fastpathTV.DecMapInt16Float64V(*vp, true, d); changed {
  28037. *vp = v
  28038. }
  28039. return
  28040. }
  28041. fastpathTV.DecMapInt16Float64V(rv2i(rv).(map[int16]float64), false, d)
  28042. }
  28043. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, d *Decoder) {
  28044. if v, changed := f.DecMapInt16Float64V(*vp, true, d); changed {
  28045. *vp = v
  28046. }
  28047. }
  28048. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, canChange bool,
  28049. d *Decoder) (_ map[int16]float64, changed bool) {
  28050. dd, esep := d.d, d.hh.hasElemSeparators()
  28051. containerLen := dd.ReadMapStart()
  28052. if canChange && v == nil {
  28053. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28054. v = make(map[int16]float64, xlen)
  28055. changed = true
  28056. }
  28057. if containerLen == 0 {
  28058. dd.ReadMapEnd()
  28059. return v, changed
  28060. }
  28061. var mk int16
  28062. var mv float64
  28063. hasLen := containerLen > 0
  28064. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28065. if esep {
  28066. dd.ReadMapElemKey()
  28067. }
  28068. mk = int16(dd.DecodeInt(16))
  28069. if esep {
  28070. dd.ReadMapElemValue()
  28071. }
  28072. if dd.TryDecodeAsNil() {
  28073. if d.h.DeleteOnNilMapValue {
  28074. delete(v, mk)
  28075. } else {
  28076. v[mk] = 0
  28077. }
  28078. continue
  28079. }
  28080. mv = dd.DecodeFloat(false)
  28081. if v != nil {
  28082. v[mk] = mv
  28083. }
  28084. }
  28085. dd.ReadMapEnd()
  28086. return v, changed
  28087. }
  28088. func (d *Decoder) fastpathDecMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  28089. if rv.Kind() == reflect.Ptr {
  28090. vp := rv2i(rv).(*map[int16]bool)
  28091. if v, changed := fastpathTV.DecMapInt16BoolV(*vp, true, d); changed {
  28092. *vp = v
  28093. }
  28094. return
  28095. }
  28096. fastpathTV.DecMapInt16BoolV(rv2i(rv).(map[int16]bool), false, d)
  28097. }
  28098. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, d *Decoder) {
  28099. if v, changed := f.DecMapInt16BoolV(*vp, true, d); changed {
  28100. *vp = v
  28101. }
  28102. }
  28103. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, canChange bool,
  28104. d *Decoder) (_ map[int16]bool, changed bool) {
  28105. dd, esep := d.d, d.hh.hasElemSeparators()
  28106. containerLen := dd.ReadMapStart()
  28107. if canChange && v == nil {
  28108. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  28109. v = make(map[int16]bool, xlen)
  28110. changed = true
  28111. }
  28112. if containerLen == 0 {
  28113. dd.ReadMapEnd()
  28114. return v, changed
  28115. }
  28116. var mk int16
  28117. var mv bool
  28118. hasLen := containerLen > 0
  28119. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28120. if esep {
  28121. dd.ReadMapElemKey()
  28122. }
  28123. mk = int16(dd.DecodeInt(16))
  28124. if esep {
  28125. dd.ReadMapElemValue()
  28126. }
  28127. if dd.TryDecodeAsNil() {
  28128. if d.h.DeleteOnNilMapValue {
  28129. delete(v, mk)
  28130. } else {
  28131. v[mk] = false
  28132. }
  28133. continue
  28134. }
  28135. mv = dd.DecodeBool()
  28136. if v != nil {
  28137. v[mk] = mv
  28138. }
  28139. }
  28140. dd.ReadMapEnd()
  28141. return v, changed
  28142. }
  28143. func (d *Decoder) fastpathDecMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  28144. if rv.Kind() == reflect.Ptr {
  28145. vp := rv2i(rv).(*map[int32]interface{})
  28146. if v, changed := fastpathTV.DecMapInt32IntfV(*vp, true, d); changed {
  28147. *vp = v
  28148. }
  28149. return
  28150. }
  28151. fastpathTV.DecMapInt32IntfV(rv2i(rv).(map[int32]interface{}), false, d)
  28152. }
  28153. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, d *Decoder) {
  28154. if v, changed := f.DecMapInt32IntfV(*vp, true, d); changed {
  28155. *vp = v
  28156. }
  28157. }
  28158. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, canChange bool,
  28159. d *Decoder) (_ map[int32]interface{}, changed bool) {
  28160. dd, esep := d.d, d.hh.hasElemSeparators()
  28161. containerLen := dd.ReadMapStart()
  28162. if canChange && v == nil {
  28163. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  28164. v = make(map[int32]interface{}, xlen)
  28165. changed = true
  28166. }
  28167. if containerLen == 0 {
  28168. dd.ReadMapEnd()
  28169. return v, changed
  28170. }
  28171. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  28172. var mk int32
  28173. var mv interface{}
  28174. hasLen := containerLen > 0
  28175. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28176. if esep {
  28177. dd.ReadMapElemKey()
  28178. }
  28179. mk = int32(dd.DecodeInt(32))
  28180. if esep {
  28181. dd.ReadMapElemValue()
  28182. }
  28183. if dd.TryDecodeAsNil() {
  28184. if d.h.DeleteOnNilMapValue {
  28185. delete(v, mk)
  28186. } else {
  28187. v[mk] = nil
  28188. }
  28189. continue
  28190. }
  28191. if mapGet {
  28192. mv = v[mk]
  28193. } else {
  28194. mv = nil
  28195. }
  28196. d.decode(&mv)
  28197. if v != nil {
  28198. v[mk] = mv
  28199. }
  28200. }
  28201. dd.ReadMapEnd()
  28202. return v, changed
  28203. }
  28204. func (d *Decoder) fastpathDecMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  28205. if rv.Kind() == reflect.Ptr {
  28206. vp := rv2i(rv).(*map[int32]string)
  28207. if v, changed := fastpathTV.DecMapInt32StringV(*vp, true, d); changed {
  28208. *vp = v
  28209. }
  28210. return
  28211. }
  28212. fastpathTV.DecMapInt32StringV(rv2i(rv).(map[int32]string), false, d)
  28213. }
  28214. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, d *Decoder) {
  28215. if v, changed := f.DecMapInt32StringV(*vp, true, d); changed {
  28216. *vp = v
  28217. }
  28218. }
  28219. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, canChange bool,
  28220. d *Decoder) (_ map[int32]string, changed bool) {
  28221. dd, esep := d.d, d.hh.hasElemSeparators()
  28222. containerLen := dd.ReadMapStart()
  28223. if canChange && v == nil {
  28224. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  28225. v = make(map[int32]string, xlen)
  28226. changed = true
  28227. }
  28228. if containerLen == 0 {
  28229. dd.ReadMapEnd()
  28230. return v, changed
  28231. }
  28232. var mk int32
  28233. var mv string
  28234. hasLen := containerLen > 0
  28235. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28236. if esep {
  28237. dd.ReadMapElemKey()
  28238. }
  28239. mk = int32(dd.DecodeInt(32))
  28240. if esep {
  28241. dd.ReadMapElemValue()
  28242. }
  28243. if dd.TryDecodeAsNil() {
  28244. if d.h.DeleteOnNilMapValue {
  28245. delete(v, mk)
  28246. } else {
  28247. v[mk] = ""
  28248. }
  28249. continue
  28250. }
  28251. mv = dd.DecodeString()
  28252. if v != nil {
  28253. v[mk] = mv
  28254. }
  28255. }
  28256. dd.ReadMapEnd()
  28257. return v, changed
  28258. }
  28259. func (d *Decoder) fastpathDecMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  28260. if rv.Kind() == reflect.Ptr {
  28261. vp := rv2i(rv).(*map[int32]uint)
  28262. if v, changed := fastpathTV.DecMapInt32UintV(*vp, true, d); changed {
  28263. *vp = v
  28264. }
  28265. return
  28266. }
  28267. fastpathTV.DecMapInt32UintV(rv2i(rv).(map[int32]uint), false, d)
  28268. }
  28269. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, d *Decoder) {
  28270. if v, changed := f.DecMapInt32UintV(*vp, true, d); changed {
  28271. *vp = v
  28272. }
  28273. }
  28274. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, canChange bool,
  28275. d *Decoder) (_ map[int32]uint, changed bool) {
  28276. dd, esep := d.d, d.hh.hasElemSeparators()
  28277. containerLen := dd.ReadMapStart()
  28278. if canChange && v == nil {
  28279. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28280. v = make(map[int32]uint, xlen)
  28281. changed = true
  28282. }
  28283. if containerLen == 0 {
  28284. dd.ReadMapEnd()
  28285. return v, changed
  28286. }
  28287. var mk int32
  28288. var mv uint
  28289. hasLen := containerLen > 0
  28290. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28291. if esep {
  28292. dd.ReadMapElemKey()
  28293. }
  28294. mk = int32(dd.DecodeInt(32))
  28295. if esep {
  28296. dd.ReadMapElemValue()
  28297. }
  28298. if dd.TryDecodeAsNil() {
  28299. if d.h.DeleteOnNilMapValue {
  28300. delete(v, mk)
  28301. } else {
  28302. v[mk] = 0
  28303. }
  28304. continue
  28305. }
  28306. mv = uint(dd.DecodeUint(uintBitsize))
  28307. if v != nil {
  28308. v[mk] = mv
  28309. }
  28310. }
  28311. dd.ReadMapEnd()
  28312. return v, changed
  28313. }
  28314. func (d *Decoder) fastpathDecMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  28315. if rv.Kind() == reflect.Ptr {
  28316. vp := rv2i(rv).(*map[int32]uint8)
  28317. if v, changed := fastpathTV.DecMapInt32Uint8V(*vp, true, d); changed {
  28318. *vp = v
  28319. }
  28320. return
  28321. }
  28322. fastpathTV.DecMapInt32Uint8V(rv2i(rv).(map[int32]uint8), false, d)
  28323. }
  28324. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, d *Decoder) {
  28325. if v, changed := f.DecMapInt32Uint8V(*vp, true, d); changed {
  28326. *vp = v
  28327. }
  28328. }
  28329. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, canChange bool,
  28330. d *Decoder) (_ map[int32]uint8, changed bool) {
  28331. dd, esep := d.d, d.hh.hasElemSeparators()
  28332. containerLen := dd.ReadMapStart()
  28333. if canChange && v == nil {
  28334. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28335. v = make(map[int32]uint8, xlen)
  28336. changed = true
  28337. }
  28338. if containerLen == 0 {
  28339. dd.ReadMapEnd()
  28340. return v, changed
  28341. }
  28342. var mk int32
  28343. var mv uint8
  28344. hasLen := containerLen > 0
  28345. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28346. if esep {
  28347. dd.ReadMapElemKey()
  28348. }
  28349. mk = int32(dd.DecodeInt(32))
  28350. if esep {
  28351. dd.ReadMapElemValue()
  28352. }
  28353. if dd.TryDecodeAsNil() {
  28354. if d.h.DeleteOnNilMapValue {
  28355. delete(v, mk)
  28356. } else {
  28357. v[mk] = 0
  28358. }
  28359. continue
  28360. }
  28361. mv = uint8(dd.DecodeUint(8))
  28362. if v != nil {
  28363. v[mk] = mv
  28364. }
  28365. }
  28366. dd.ReadMapEnd()
  28367. return v, changed
  28368. }
  28369. func (d *Decoder) fastpathDecMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  28370. if rv.Kind() == reflect.Ptr {
  28371. vp := rv2i(rv).(*map[int32]uint16)
  28372. if v, changed := fastpathTV.DecMapInt32Uint16V(*vp, true, d); changed {
  28373. *vp = v
  28374. }
  28375. return
  28376. }
  28377. fastpathTV.DecMapInt32Uint16V(rv2i(rv).(map[int32]uint16), false, d)
  28378. }
  28379. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, d *Decoder) {
  28380. if v, changed := f.DecMapInt32Uint16V(*vp, true, d); changed {
  28381. *vp = v
  28382. }
  28383. }
  28384. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, canChange bool,
  28385. d *Decoder) (_ map[int32]uint16, changed bool) {
  28386. dd, esep := d.d, d.hh.hasElemSeparators()
  28387. containerLen := dd.ReadMapStart()
  28388. if canChange && v == nil {
  28389. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  28390. v = make(map[int32]uint16, xlen)
  28391. changed = true
  28392. }
  28393. if containerLen == 0 {
  28394. dd.ReadMapEnd()
  28395. return v, changed
  28396. }
  28397. var mk int32
  28398. var mv uint16
  28399. hasLen := containerLen > 0
  28400. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28401. if esep {
  28402. dd.ReadMapElemKey()
  28403. }
  28404. mk = int32(dd.DecodeInt(32))
  28405. if esep {
  28406. dd.ReadMapElemValue()
  28407. }
  28408. if dd.TryDecodeAsNil() {
  28409. if d.h.DeleteOnNilMapValue {
  28410. delete(v, mk)
  28411. } else {
  28412. v[mk] = 0
  28413. }
  28414. continue
  28415. }
  28416. mv = uint16(dd.DecodeUint(16))
  28417. if v != nil {
  28418. v[mk] = mv
  28419. }
  28420. }
  28421. dd.ReadMapEnd()
  28422. return v, changed
  28423. }
  28424. func (d *Decoder) fastpathDecMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  28425. if rv.Kind() == reflect.Ptr {
  28426. vp := rv2i(rv).(*map[int32]uint32)
  28427. if v, changed := fastpathTV.DecMapInt32Uint32V(*vp, true, d); changed {
  28428. *vp = v
  28429. }
  28430. return
  28431. }
  28432. fastpathTV.DecMapInt32Uint32V(rv2i(rv).(map[int32]uint32), false, d)
  28433. }
  28434. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, d *Decoder) {
  28435. if v, changed := f.DecMapInt32Uint32V(*vp, true, d); changed {
  28436. *vp = v
  28437. }
  28438. }
  28439. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, canChange bool,
  28440. d *Decoder) (_ map[int32]uint32, changed bool) {
  28441. dd, esep := d.d, d.hh.hasElemSeparators()
  28442. containerLen := dd.ReadMapStart()
  28443. if canChange && v == nil {
  28444. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  28445. v = make(map[int32]uint32, xlen)
  28446. changed = true
  28447. }
  28448. if containerLen == 0 {
  28449. dd.ReadMapEnd()
  28450. return v, changed
  28451. }
  28452. var mk int32
  28453. var mv uint32
  28454. hasLen := containerLen > 0
  28455. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28456. if esep {
  28457. dd.ReadMapElemKey()
  28458. }
  28459. mk = int32(dd.DecodeInt(32))
  28460. if esep {
  28461. dd.ReadMapElemValue()
  28462. }
  28463. if dd.TryDecodeAsNil() {
  28464. if d.h.DeleteOnNilMapValue {
  28465. delete(v, mk)
  28466. } else {
  28467. v[mk] = 0
  28468. }
  28469. continue
  28470. }
  28471. mv = uint32(dd.DecodeUint(32))
  28472. if v != nil {
  28473. v[mk] = mv
  28474. }
  28475. }
  28476. dd.ReadMapEnd()
  28477. return v, changed
  28478. }
  28479. func (d *Decoder) fastpathDecMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  28480. if rv.Kind() == reflect.Ptr {
  28481. vp := rv2i(rv).(*map[int32]uint64)
  28482. if v, changed := fastpathTV.DecMapInt32Uint64V(*vp, true, d); changed {
  28483. *vp = v
  28484. }
  28485. return
  28486. }
  28487. fastpathTV.DecMapInt32Uint64V(rv2i(rv).(map[int32]uint64), false, d)
  28488. }
  28489. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, d *Decoder) {
  28490. if v, changed := f.DecMapInt32Uint64V(*vp, true, d); changed {
  28491. *vp = v
  28492. }
  28493. }
  28494. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, canChange bool,
  28495. d *Decoder) (_ map[int32]uint64, changed bool) {
  28496. dd, esep := d.d, d.hh.hasElemSeparators()
  28497. containerLen := dd.ReadMapStart()
  28498. if canChange && v == nil {
  28499. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28500. v = make(map[int32]uint64, xlen)
  28501. changed = true
  28502. }
  28503. if containerLen == 0 {
  28504. dd.ReadMapEnd()
  28505. return v, changed
  28506. }
  28507. var mk int32
  28508. var mv uint64
  28509. hasLen := containerLen > 0
  28510. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28511. if esep {
  28512. dd.ReadMapElemKey()
  28513. }
  28514. mk = int32(dd.DecodeInt(32))
  28515. if esep {
  28516. dd.ReadMapElemValue()
  28517. }
  28518. if dd.TryDecodeAsNil() {
  28519. if d.h.DeleteOnNilMapValue {
  28520. delete(v, mk)
  28521. } else {
  28522. v[mk] = 0
  28523. }
  28524. continue
  28525. }
  28526. mv = dd.DecodeUint(64)
  28527. if v != nil {
  28528. v[mk] = mv
  28529. }
  28530. }
  28531. dd.ReadMapEnd()
  28532. return v, changed
  28533. }
  28534. func (d *Decoder) fastpathDecMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  28535. if rv.Kind() == reflect.Ptr {
  28536. vp := rv2i(rv).(*map[int32]uintptr)
  28537. if v, changed := fastpathTV.DecMapInt32UintptrV(*vp, true, d); changed {
  28538. *vp = v
  28539. }
  28540. return
  28541. }
  28542. fastpathTV.DecMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), false, d)
  28543. }
  28544. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, d *Decoder) {
  28545. if v, changed := f.DecMapInt32UintptrV(*vp, true, d); changed {
  28546. *vp = v
  28547. }
  28548. }
  28549. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, canChange bool,
  28550. d *Decoder) (_ map[int32]uintptr, changed bool) {
  28551. dd, esep := d.d, d.hh.hasElemSeparators()
  28552. containerLen := dd.ReadMapStart()
  28553. if canChange && v == nil {
  28554. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28555. v = make(map[int32]uintptr, xlen)
  28556. changed = true
  28557. }
  28558. if containerLen == 0 {
  28559. dd.ReadMapEnd()
  28560. return v, changed
  28561. }
  28562. var mk int32
  28563. var mv uintptr
  28564. hasLen := containerLen > 0
  28565. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28566. if esep {
  28567. dd.ReadMapElemKey()
  28568. }
  28569. mk = int32(dd.DecodeInt(32))
  28570. if esep {
  28571. dd.ReadMapElemValue()
  28572. }
  28573. if dd.TryDecodeAsNil() {
  28574. if d.h.DeleteOnNilMapValue {
  28575. delete(v, mk)
  28576. } else {
  28577. v[mk] = 0
  28578. }
  28579. continue
  28580. }
  28581. mv = uintptr(dd.DecodeUint(uintBitsize))
  28582. if v != nil {
  28583. v[mk] = mv
  28584. }
  28585. }
  28586. dd.ReadMapEnd()
  28587. return v, changed
  28588. }
  28589. func (d *Decoder) fastpathDecMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  28590. if rv.Kind() == reflect.Ptr {
  28591. vp := rv2i(rv).(*map[int32]int)
  28592. if v, changed := fastpathTV.DecMapInt32IntV(*vp, true, d); changed {
  28593. *vp = v
  28594. }
  28595. return
  28596. }
  28597. fastpathTV.DecMapInt32IntV(rv2i(rv).(map[int32]int), false, d)
  28598. }
  28599. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, d *Decoder) {
  28600. if v, changed := f.DecMapInt32IntV(*vp, true, d); changed {
  28601. *vp = v
  28602. }
  28603. }
  28604. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, canChange bool,
  28605. d *Decoder) (_ map[int32]int, changed bool) {
  28606. dd, esep := d.d, d.hh.hasElemSeparators()
  28607. containerLen := dd.ReadMapStart()
  28608. if canChange && v == nil {
  28609. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28610. v = make(map[int32]int, xlen)
  28611. changed = true
  28612. }
  28613. if containerLen == 0 {
  28614. dd.ReadMapEnd()
  28615. return v, changed
  28616. }
  28617. var mk int32
  28618. var mv int
  28619. hasLen := containerLen > 0
  28620. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28621. if esep {
  28622. dd.ReadMapElemKey()
  28623. }
  28624. mk = int32(dd.DecodeInt(32))
  28625. if esep {
  28626. dd.ReadMapElemValue()
  28627. }
  28628. if dd.TryDecodeAsNil() {
  28629. if d.h.DeleteOnNilMapValue {
  28630. delete(v, mk)
  28631. } else {
  28632. v[mk] = 0
  28633. }
  28634. continue
  28635. }
  28636. mv = int(dd.DecodeInt(intBitsize))
  28637. if v != nil {
  28638. v[mk] = mv
  28639. }
  28640. }
  28641. dd.ReadMapEnd()
  28642. return v, changed
  28643. }
  28644. func (d *Decoder) fastpathDecMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  28645. if rv.Kind() == reflect.Ptr {
  28646. vp := rv2i(rv).(*map[int32]int8)
  28647. if v, changed := fastpathTV.DecMapInt32Int8V(*vp, true, d); changed {
  28648. *vp = v
  28649. }
  28650. return
  28651. }
  28652. fastpathTV.DecMapInt32Int8V(rv2i(rv).(map[int32]int8), false, d)
  28653. }
  28654. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, d *Decoder) {
  28655. if v, changed := f.DecMapInt32Int8V(*vp, true, d); changed {
  28656. *vp = v
  28657. }
  28658. }
  28659. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, canChange bool,
  28660. d *Decoder) (_ map[int32]int8, changed bool) {
  28661. dd, esep := d.d, d.hh.hasElemSeparators()
  28662. containerLen := dd.ReadMapStart()
  28663. if canChange && v == nil {
  28664. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28665. v = make(map[int32]int8, xlen)
  28666. changed = true
  28667. }
  28668. if containerLen == 0 {
  28669. dd.ReadMapEnd()
  28670. return v, changed
  28671. }
  28672. var mk int32
  28673. var mv int8
  28674. hasLen := containerLen > 0
  28675. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28676. if esep {
  28677. dd.ReadMapElemKey()
  28678. }
  28679. mk = int32(dd.DecodeInt(32))
  28680. if esep {
  28681. dd.ReadMapElemValue()
  28682. }
  28683. if dd.TryDecodeAsNil() {
  28684. if d.h.DeleteOnNilMapValue {
  28685. delete(v, mk)
  28686. } else {
  28687. v[mk] = 0
  28688. }
  28689. continue
  28690. }
  28691. mv = int8(dd.DecodeInt(8))
  28692. if v != nil {
  28693. v[mk] = mv
  28694. }
  28695. }
  28696. dd.ReadMapEnd()
  28697. return v, changed
  28698. }
  28699. func (d *Decoder) fastpathDecMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  28700. if rv.Kind() == reflect.Ptr {
  28701. vp := rv2i(rv).(*map[int32]int16)
  28702. if v, changed := fastpathTV.DecMapInt32Int16V(*vp, true, d); changed {
  28703. *vp = v
  28704. }
  28705. return
  28706. }
  28707. fastpathTV.DecMapInt32Int16V(rv2i(rv).(map[int32]int16), false, d)
  28708. }
  28709. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, d *Decoder) {
  28710. if v, changed := f.DecMapInt32Int16V(*vp, true, d); changed {
  28711. *vp = v
  28712. }
  28713. }
  28714. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, canChange bool,
  28715. d *Decoder) (_ map[int32]int16, 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, 6)
  28720. v = make(map[int32]int16, xlen)
  28721. changed = true
  28722. }
  28723. if containerLen == 0 {
  28724. dd.ReadMapEnd()
  28725. return v, changed
  28726. }
  28727. var mk int32
  28728. var mv int16
  28729. hasLen := containerLen > 0
  28730. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28731. if esep {
  28732. dd.ReadMapElemKey()
  28733. }
  28734. mk = int32(dd.DecodeInt(32))
  28735. if esep {
  28736. dd.ReadMapElemValue()
  28737. }
  28738. if dd.TryDecodeAsNil() {
  28739. if d.h.DeleteOnNilMapValue {
  28740. delete(v, mk)
  28741. } else {
  28742. v[mk] = 0
  28743. }
  28744. continue
  28745. }
  28746. mv = int16(dd.DecodeInt(16))
  28747. if v != nil {
  28748. v[mk] = mv
  28749. }
  28750. }
  28751. dd.ReadMapEnd()
  28752. return v, changed
  28753. }
  28754. func (d *Decoder) fastpathDecMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  28755. if rv.Kind() == reflect.Ptr {
  28756. vp := rv2i(rv).(*map[int32]int32)
  28757. if v, changed := fastpathTV.DecMapInt32Int32V(*vp, true, d); changed {
  28758. *vp = v
  28759. }
  28760. return
  28761. }
  28762. fastpathTV.DecMapInt32Int32V(rv2i(rv).(map[int32]int32), false, d)
  28763. }
  28764. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, d *Decoder) {
  28765. if v, changed := f.DecMapInt32Int32V(*vp, true, d); changed {
  28766. *vp = v
  28767. }
  28768. }
  28769. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, canChange bool,
  28770. d *Decoder) (_ map[int32]int32, changed bool) {
  28771. dd, esep := d.d, d.hh.hasElemSeparators()
  28772. containerLen := dd.ReadMapStart()
  28773. if canChange && v == nil {
  28774. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  28775. v = make(map[int32]int32, xlen)
  28776. changed = true
  28777. }
  28778. if containerLen == 0 {
  28779. dd.ReadMapEnd()
  28780. return v, changed
  28781. }
  28782. var mk int32
  28783. var mv int32
  28784. hasLen := containerLen > 0
  28785. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28786. if esep {
  28787. dd.ReadMapElemKey()
  28788. }
  28789. mk = int32(dd.DecodeInt(32))
  28790. if esep {
  28791. dd.ReadMapElemValue()
  28792. }
  28793. if dd.TryDecodeAsNil() {
  28794. if d.h.DeleteOnNilMapValue {
  28795. delete(v, mk)
  28796. } else {
  28797. v[mk] = 0
  28798. }
  28799. continue
  28800. }
  28801. mv = int32(dd.DecodeInt(32))
  28802. if v != nil {
  28803. v[mk] = mv
  28804. }
  28805. }
  28806. dd.ReadMapEnd()
  28807. return v, changed
  28808. }
  28809. func (d *Decoder) fastpathDecMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  28810. if rv.Kind() == reflect.Ptr {
  28811. vp := rv2i(rv).(*map[int32]int64)
  28812. if v, changed := fastpathTV.DecMapInt32Int64V(*vp, true, d); changed {
  28813. *vp = v
  28814. }
  28815. return
  28816. }
  28817. fastpathTV.DecMapInt32Int64V(rv2i(rv).(map[int32]int64), false, d)
  28818. }
  28819. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, d *Decoder) {
  28820. if v, changed := f.DecMapInt32Int64V(*vp, true, d); changed {
  28821. *vp = v
  28822. }
  28823. }
  28824. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, canChange bool,
  28825. d *Decoder) (_ map[int32]int64, changed bool) {
  28826. dd, esep := d.d, d.hh.hasElemSeparators()
  28827. containerLen := dd.ReadMapStart()
  28828. if canChange && v == nil {
  28829. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28830. v = make(map[int32]int64, xlen)
  28831. changed = true
  28832. }
  28833. if containerLen == 0 {
  28834. dd.ReadMapEnd()
  28835. return v, changed
  28836. }
  28837. var mk int32
  28838. var mv int64
  28839. hasLen := containerLen > 0
  28840. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28841. if esep {
  28842. dd.ReadMapElemKey()
  28843. }
  28844. mk = int32(dd.DecodeInt(32))
  28845. if esep {
  28846. dd.ReadMapElemValue()
  28847. }
  28848. if dd.TryDecodeAsNil() {
  28849. if d.h.DeleteOnNilMapValue {
  28850. delete(v, mk)
  28851. } else {
  28852. v[mk] = 0
  28853. }
  28854. continue
  28855. }
  28856. mv = dd.DecodeInt(64)
  28857. if v != nil {
  28858. v[mk] = mv
  28859. }
  28860. }
  28861. dd.ReadMapEnd()
  28862. return v, changed
  28863. }
  28864. func (d *Decoder) fastpathDecMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  28865. if rv.Kind() == reflect.Ptr {
  28866. vp := rv2i(rv).(*map[int32]float32)
  28867. if v, changed := fastpathTV.DecMapInt32Float32V(*vp, true, d); changed {
  28868. *vp = v
  28869. }
  28870. return
  28871. }
  28872. fastpathTV.DecMapInt32Float32V(rv2i(rv).(map[int32]float32), false, d)
  28873. }
  28874. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, d *Decoder) {
  28875. if v, changed := f.DecMapInt32Float32V(*vp, true, d); changed {
  28876. *vp = v
  28877. }
  28878. }
  28879. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, canChange bool,
  28880. d *Decoder) (_ map[int32]float32, changed bool) {
  28881. dd, esep := d.d, d.hh.hasElemSeparators()
  28882. containerLen := dd.ReadMapStart()
  28883. if canChange && v == nil {
  28884. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  28885. v = make(map[int32]float32, xlen)
  28886. changed = true
  28887. }
  28888. if containerLen == 0 {
  28889. dd.ReadMapEnd()
  28890. return v, changed
  28891. }
  28892. var mk int32
  28893. var mv float32
  28894. hasLen := containerLen > 0
  28895. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28896. if esep {
  28897. dd.ReadMapElemKey()
  28898. }
  28899. mk = int32(dd.DecodeInt(32))
  28900. if esep {
  28901. dd.ReadMapElemValue()
  28902. }
  28903. if dd.TryDecodeAsNil() {
  28904. if d.h.DeleteOnNilMapValue {
  28905. delete(v, mk)
  28906. } else {
  28907. v[mk] = 0
  28908. }
  28909. continue
  28910. }
  28911. mv = float32(dd.DecodeFloat(true))
  28912. if v != nil {
  28913. v[mk] = mv
  28914. }
  28915. }
  28916. dd.ReadMapEnd()
  28917. return v, changed
  28918. }
  28919. func (d *Decoder) fastpathDecMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  28920. if rv.Kind() == reflect.Ptr {
  28921. vp := rv2i(rv).(*map[int32]float64)
  28922. if v, changed := fastpathTV.DecMapInt32Float64V(*vp, true, d); changed {
  28923. *vp = v
  28924. }
  28925. return
  28926. }
  28927. fastpathTV.DecMapInt32Float64V(rv2i(rv).(map[int32]float64), false, d)
  28928. }
  28929. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, d *Decoder) {
  28930. if v, changed := f.DecMapInt32Float64V(*vp, true, d); changed {
  28931. *vp = v
  28932. }
  28933. }
  28934. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, canChange bool,
  28935. d *Decoder) (_ map[int32]float64, changed bool) {
  28936. dd, esep := d.d, d.hh.hasElemSeparators()
  28937. containerLen := dd.ReadMapStart()
  28938. if canChange && v == nil {
  28939. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28940. v = make(map[int32]float64, xlen)
  28941. changed = true
  28942. }
  28943. if containerLen == 0 {
  28944. dd.ReadMapEnd()
  28945. return v, changed
  28946. }
  28947. var mk int32
  28948. var mv float64
  28949. hasLen := containerLen > 0
  28950. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28951. if esep {
  28952. dd.ReadMapElemKey()
  28953. }
  28954. mk = int32(dd.DecodeInt(32))
  28955. if esep {
  28956. dd.ReadMapElemValue()
  28957. }
  28958. if dd.TryDecodeAsNil() {
  28959. if d.h.DeleteOnNilMapValue {
  28960. delete(v, mk)
  28961. } else {
  28962. v[mk] = 0
  28963. }
  28964. continue
  28965. }
  28966. mv = dd.DecodeFloat(false)
  28967. if v != nil {
  28968. v[mk] = mv
  28969. }
  28970. }
  28971. dd.ReadMapEnd()
  28972. return v, changed
  28973. }
  28974. func (d *Decoder) fastpathDecMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  28975. if rv.Kind() == reflect.Ptr {
  28976. vp := rv2i(rv).(*map[int32]bool)
  28977. if v, changed := fastpathTV.DecMapInt32BoolV(*vp, true, d); changed {
  28978. *vp = v
  28979. }
  28980. return
  28981. }
  28982. fastpathTV.DecMapInt32BoolV(rv2i(rv).(map[int32]bool), false, d)
  28983. }
  28984. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, d *Decoder) {
  28985. if v, changed := f.DecMapInt32BoolV(*vp, true, d); changed {
  28986. *vp = v
  28987. }
  28988. }
  28989. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, canChange bool,
  28990. d *Decoder) (_ map[int32]bool, changed bool) {
  28991. dd, esep := d.d, d.hh.hasElemSeparators()
  28992. containerLen := dd.ReadMapStart()
  28993. if canChange && v == nil {
  28994. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28995. v = make(map[int32]bool, xlen)
  28996. changed = true
  28997. }
  28998. if containerLen == 0 {
  28999. dd.ReadMapEnd()
  29000. return v, changed
  29001. }
  29002. var mk int32
  29003. var mv bool
  29004. hasLen := containerLen > 0
  29005. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29006. if esep {
  29007. dd.ReadMapElemKey()
  29008. }
  29009. mk = int32(dd.DecodeInt(32))
  29010. if esep {
  29011. dd.ReadMapElemValue()
  29012. }
  29013. if dd.TryDecodeAsNil() {
  29014. if d.h.DeleteOnNilMapValue {
  29015. delete(v, mk)
  29016. } else {
  29017. v[mk] = false
  29018. }
  29019. continue
  29020. }
  29021. mv = dd.DecodeBool()
  29022. if v != nil {
  29023. v[mk] = mv
  29024. }
  29025. }
  29026. dd.ReadMapEnd()
  29027. return v, changed
  29028. }
  29029. func (d *Decoder) fastpathDecMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  29030. if rv.Kind() == reflect.Ptr {
  29031. vp := rv2i(rv).(*map[int64]interface{})
  29032. if v, changed := fastpathTV.DecMapInt64IntfV(*vp, true, d); changed {
  29033. *vp = v
  29034. }
  29035. return
  29036. }
  29037. fastpathTV.DecMapInt64IntfV(rv2i(rv).(map[int64]interface{}), false, d)
  29038. }
  29039. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, d *Decoder) {
  29040. if v, changed := f.DecMapInt64IntfV(*vp, true, d); changed {
  29041. *vp = v
  29042. }
  29043. }
  29044. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, canChange bool,
  29045. d *Decoder) (_ map[int64]interface{}, changed bool) {
  29046. dd, esep := d.d, d.hh.hasElemSeparators()
  29047. containerLen := dd.ReadMapStart()
  29048. if canChange && v == nil {
  29049. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  29050. v = make(map[int64]interface{}, xlen)
  29051. changed = true
  29052. }
  29053. if containerLen == 0 {
  29054. dd.ReadMapEnd()
  29055. return v, changed
  29056. }
  29057. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  29058. var mk int64
  29059. var mv interface{}
  29060. hasLen := containerLen > 0
  29061. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29062. if esep {
  29063. dd.ReadMapElemKey()
  29064. }
  29065. mk = dd.DecodeInt(64)
  29066. if esep {
  29067. dd.ReadMapElemValue()
  29068. }
  29069. if dd.TryDecodeAsNil() {
  29070. if d.h.DeleteOnNilMapValue {
  29071. delete(v, mk)
  29072. } else {
  29073. v[mk] = nil
  29074. }
  29075. continue
  29076. }
  29077. if mapGet {
  29078. mv = v[mk]
  29079. } else {
  29080. mv = nil
  29081. }
  29082. d.decode(&mv)
  29083. if v != nil {
  29084. v[mk] = mv
  29085. }
  29086. }
  29087. dd.ReadMapEnd()
  29088. return v, changed
  29089. }
  29090. func (d *Decoder) fastpathDecMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  29091. if rv.Kind() == reflect.Ptr {
  29092. vp := rv2i(rv).(*map[int64]string)
  29093. if v, changed := fastpathTV.DecMapInt64StringV(*vp, true, d); changed {
  29094. *vp = v
  29095. }
  29096. return
  29097. }
  29098. fastpathTV.DecMapInt64StringV(rv2i(rv).(map[int64]string), false, d)
  29099. }
  29100. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, d *Decoder) {
  29101. if v, changed := f.DecMapInt64StringV(*vp, true, d); changed {
  29102. *vp = v
  29103. }
  29104. }
  29105. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, canChange bool,
  29106. d *Decoder) (_ map[int64]string, changed bool) {
  29107. dd, esep := d.d, d.hh.hasElemSeparators()
  29108. containerLen := dd.ReadMapStart()
  29109. if canChange && v == nil {
  29110. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  29111. v = make(map[int64]string, xlen)
  29112. changed = true
  29113. }
  29114. if containerLen == 0 {
  29115. dd.ReadMapEnd()
  29116. return v, changed
  29117. }
  29118. var mk int64
  29119. var mv string
  29120. hasLen := containerLen > 0
  29121. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29122. if esep {
  29123. dd.ReadMapElemKey()
  29124. }
  29125. mk = dd.DecodeInt(64)
  29126. if esep {
  29127. dd.ReadMapElemValue()
  29128. }
  29129. if dd.TryDecodeAsNil() {
  29130. if d.h.DeleteOnNilMapValue {
  29131. delete(v, mk)
  29132. } else {
  29133. v[mk] = ""
  29134. }
  29135. continue
  29136. }
  29137. mv = dd.DecodeString()
  29138. if v != nil {
  29139. v[mk] = mv
  29140. }
  29141. }
  29142. dd.ReadMapEnd()
  29143. return v, changed
  29144. }
  29145. func (d *Decoder) fastpathDecMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  29146. if rv.Kind() == reflect.Ptr {
  29147. vp := rv2i(rv).(*map[int64]uint)
  29148. if v, changed := fastpathTV.DecMapInt64UintV(*vp, true, d); changed {
  29149. *vp = v
  29150. }
  29151. return
  29152. }
  29153. fastpathTV.DecMapInt64UintV(rv2i(rv).(map[int64]uint), false, d)
  29154. }
  29155. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, d *Decoder) {
  29156. if v, changed := f.DecMapInt64UintV(*vp, true, d); changed {
  29157. *vp = v
  29158. }
  29159. }
  29160. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, canChange bool,
  29161. d *Decoder) (_ map[int64]uint, changed bool) {
  29162. dd, esep := d.d, d.hh.hasElemSeparators()
  29163. containerLen := dd.ReadMapStart()
  29164. if canChange && v == nil {
  29165. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29166. v = make(map[int64]uint, xlen)
  29167. changed = true
  29168. }
  29169. if containerLen == 0 {
  29170. dd.ReadMapEnd()
  29171. return v, changed
  29172. }
  29173. var mk int64
  29174. var mv uint
  29175. hasLen := containerLen > 0
  29176. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29177. if esep {
  29178. dd.ReadMapElemKey()
  29179. }
  29180. mk = dd.DecodeInt(64)
  29181. if esep {
  29182. dd.ReadMapElemValue()
  29183. }
  29184. if dd.TryDecodeAsNil() {
  29185. if d.h.DeleteOnNilMapValue {
  29186. delete(v, mk)
  29187. } else {
  29188. v[mk] = 0
  29189. }
  29190. continue
  29191. }
  29192. mv = uint(dd.DecodeUint(uintBitsize))
  29193. if v != nil {
  29194. v[mk] = mv
  29195. }
  29196. }
  29197. dd.ReadMapEnd()
  29198. return v, changed
  29199. }
  29200. func (d *Decoder) fastpathDecMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  29201. if rv.Kind() == reflect.Ptr {
  29202. vp := rv2i(rv).(*map[int64]uint8)
  29203. if v, changed := fastpathTV.DecMapInt64Uint8V(*vp, true, d); changed {
  29204. *vp = v
  29205. }
  29206. return
  29207. }
  29208. fastpathTV.DecMapInt64Uint8V(rv2i(rv).(map[int64]uint8), false, d)
  29209. }
  29210. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, d *Decoder) {
  29211. if v, changed := f.DecMapInt64Uint8V(*vp, true, d); changed {
  29212. *vp = v
  29213. }
  29214. }
  29215. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, canChange bool,
  29216. d *Decoder) (_ map[int64]uint8, changed bool) {
  29217. dd, esep := d.d, d.hh.hasElemSeparators()
  29218. containerLen := dd.ReadMapStart()
  29219. if canChange && v == nil {
  29220. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29221. v = make(map[int64]uint8, xlen)
  29222. changed = true
  29223. }
  29224. if containerLen == 0 {
  29225. dd.ReadMapEnd()
  29226. return v, changed
  29227. }
  29228. var mk int64
  29229. var mv uint8
  29230. hasLen := containerLen > 0
  29231. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29232. if esep {
  29233. dd.ReadMapElemKey()
  29234. }
  29235. mk = dd.DecodeInt(64)
  29236. if esep {
  29237. dd.ReadMapElemValue()
  29238. }
  29239. if dd.TryDecodeAsNil() {
  29240. if d.h.DeleteOnNilMapValue {
  29241. delete(v, mk)
  29242. } else {
  29243. v[mk] = 0
  29244. }
  29245. continue
  29246. }
  29247. mv = uint8(dd.DecodeUint(8))
  29248. if v != nil {
  29249. v[mk] = mv
  29250. }
  29251. }
  29252. dd.ReadMapEnd()
  29253. return v, changed
  29254. }
  29255. func (d *Decoder) fastpathDecMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  29256. if rv.Kind() == reflect.Ptr {
  29257. vp := rv2i(rv).(*map[int64]uint16)
  29258. if v, changed := fastpathTV.DecMapInt64Uint16V(*vp, true, d); changed {
  29259. *vp = v
  29260. }
  29261. return
  29262. }
  29263. fastpathTV.DecMapInt64Uint16V(rv2i(rv).(map[int64]uint16), false, d)
  29264. }
  29265. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, d *Decoder) {
  29266. if v, changed := f.DecMapInt64Uint16V(*vp, true, d); changed {
  29267. *vp = v
  29268. }
  29269. }
  29270. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, canChange bool,
  29271. d *Decoder) (_ map[int64]uint16, changed bool) {
  29272. dd, esep := d.d, d.hh.hasElemSeparators()
  29273. containerLen := dd.ReadMapStart()
  29274. if canChange && v == nil {
  29275. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29276. v = make(map[int64]uint16, xlen)
  29277. changed = true
  29278. }
  29279. if containerLen == 0 {
  29280. dd.ReadMapEnd()
  29281. return v, changed
  29282. }
  29283. var mk int64
  29284. var mv uint16
  29285. hasLen := containerLen > 0
  29286. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29287. if esep {
  29288. dd.ReadMapElemKey()
  29289. }
  29290. mk = dd.DecodeInt(64)
  29291. if esep {
  29292. dd.ReadMapElemValue()
  29293. }
  29294. if dd.TryDecodeAsNil() {
  29295. if d.h.DeleteOnNilMapValue {
  29296. delete(v, mk)
  29297. } else {
  29298. v[mk] = 0
  29299. }
  29300. continue
  29301. }
  29302. mv = uint16(dd.DecodeUint(16))
  29303. if v != nil {
  29304. v[mk] = mv
  29305. }
  29306. }
  29307. dd.ReadMapEnd()
  29308. return v, changed
  29309. }
  29310. func (d *Decoder) fastpathDecMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  29311. if rv.Kind() == reflect.Ptr {
  29312. vp := rv2i(rv).(*map[int64]uint32)
  29313. if v, changed := fastpathTV.DecMapInt64Uint32V(*vp, true, d); changed {
  29314. *vp = v
  29315. }
  29316. return
  29317. }
  29318. fastpathTV.DecMapInt64Uint32V(rv2i(rv).(map[int64]uint32), false, d)
  29319. }
  29320. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, d *Decoder) {
  29321. if v, changed := f.DecMapInt64Uint32V(*vp, true, d); changed {
  29322. *vp = v
  29323. }
  29324. }
  29325. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, canChange bool,
  29326. d *Decoder) (_ map[int64]uint32, changed bool) {
  29327. dd, esep := d.d, d.hh.hasElemSeparators()
  29328. containerLen := dd.ReadMapStart()
  29329. if canChange && v == nil {
  29330. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29331. v = make(map[int64]uint32, xlen)
  29332. changed = true
  29333. }
  29334. if containerLen == 0 {
  29335. dd.ReadMapEnd()
  29336. return v, changed
  29337. }
  29338. var mk int64
  29339. var mv uint32
  29340. hasLen := containerLen > 0
  29341. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29342. if esep {
  29343. dd.ReadMapElemKey()
  29344. }
  29345. mk = dd.DecodeInt(64)
  29346. if esep {
  29347. dd.ReadMapElemValue()
  29348. }
  29349. if dd.TryDecodeAsNil() {
  29350. if d.h.DeleteOnNilMapValue {
  29351. delete(v, mk)
  29352. } else {
  29353. v[mk] = 0
  29354. }
  29355. continue
  29356. }
  29357. mv = uint32(dd.DecodeUint(32))
  29358. if v != nil {
  29359. v[mk] = mv
  29360. }
  29361. }
  29362. dd.ReadMapEnd()
  29363. return v, changed
  29364. }
  29365. func (d *Decoder) fastpathDecMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  29366. if rv.Kind() == reflect.Ptr {
  29367. vp := rv2i(rv).(*map[int64]uint64)
  29368. if v, changed := fastpathTV.DecMapInt64Uint64V(*vp, true, d); changed {
  29369. *vp = v
  29370. }
  29371. return
  29372. }
  29373. fastpathTV.DecMapInt64Uint64V(rv2i(rv).(map[int64]uint64), false, d)
  29374. }
  29375. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, d *Decoder) {
  29376. if v, changed := f.DecMapInt64Uint64V(*vp, true, d); changed {
  29377. *vp = v
  29378. }
  29379. }
  29380. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, canChange bool,
  29381. d *Decoder) (_ map[int64]uint64, changed bool) {
  29382. dd, esep := d.d, d.hh.hasElemSeparators()
  29383. containerLen := dd.ReadMapStart()
  29384. if canChange && v == nil {
  29385. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29386. v = make(map[int64]uint64, xlen)
  29387. changed = true
  29388. }
  29389. if containerLen == 0 {
  29390. dd.ReadMapEnd()
  29391. return v, changed
  29392. }
  29393. var mk int64
  29394. var mv uint64
  29395. hasLen := containerLen > 0
  29396. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29397. if esep {
  29398. dd.ReadMapElemKey()
  29399. }
  29400. mk = dd.DecodeInt(64)
  29401. if esep {
  29402. dd.ReadMapElemValue()
  29403. }
  29404. if dd.TryDecodeAsNil() {
  29405. if d.h.DeleteOnNilMapValue {
  29406. delete(v, mk)
  29407. } else {
  29408. v[mk] = 0
  29409. }
  29410. continue
  29411. }
  29412. mv = dd.DecodeUint(64)
  29413. if v != nil {
  29414. v[mk] = mv
  29415. }
  29416. }
  29417. dd.ReadMapEnd()
  29418. return v, changed
  29419. }
  29420. func (d *Decoder) fastpathDecMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  29421. if rv.Kind() == reflect.Ptr {
  29422. vp := rv2i(rv).(*map[int64]uintptr)
  29423. if v, changed := fastpathTV.DecMapInt64UintptrV(*vp, true, d); changed {
  29424. *vp = v
  29425. }
  29426. return
  29427. }
  29428. fastpathTV.DecMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), false, d)
  29429. }
  29430. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, d *Decoder) {
  29431. if v, changed := f.DecMapInt64UintptrV(*vp, true, d); changed {
  29432. *vp = v
  29433. }
  29434. }
  29435. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, canChange bool,
  29436. d *Decoder) (_ map[int64]uintptr, changed bool) {
  29437. dd, esep := d.d, d.hh.hasElemSeparators()
  29438. containerLen := dd.ReadMapStart()
  29439. if canChange && v == nil {
  29440. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29441. v = make(map[int64]uintptr, xlen)
  29442. changed = true
  29443. }
  29444. if containerLen == 0 {
  29445. dd.ReadMapEnd()
  29446. return v, changed
  29447. }
  29448. var mk int64
  29449. var mv uintptr
  29450. hasLen := containerLen > 0
  29451. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29452. if esep {
  29453. dd.ReadMapElemKey()
  29454. }
  29455. mk = dd.DecodeInt(64)
  29456. if esep {
  29457. dd.ReadMapElemValue()
  29458. }
  29459. if dd.TryDecodeAsNil() {
  29460. if d.h.DeleteOnNilMapValue {
  29461. delete(v, mk)
  29462. } else {
  29463. v[mk] = 0
  29464. }
  29465. continue
  29466. }
  29467. mv = uintptr(dd.DecodeUint(uintBitsize))
  29468. if v != nil {
  29469. v[mk] = mv
  29470. }
  29471. }
  29472. dd.ReadMapEnd()
  29473. return v, changed
  29474. }
  29475. func (d *Decoder) fastpathDecMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  29476. if rv.Kind() == reflect.Ptr {
  29477. vp := rv2i(rv).(*map[int64]int)
  29478. if v, changed := fastpathTV.DecMapInt64IntV(*vp, true, d); changed {
  29479. *vp = v
  29480. }
  29481. return
  29482. }
  29483. fastpathTV.DecMapInt64IntV(rv2i(rv).(map[int64]int), false, d)
  29484. }
  29485. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, d *Decoder) {
  29486. if v, changed := f.DecMapInt64IntV(*vp, true, d); changed {
  29487. *vp = v
  29488. }
  29489. }
  29490. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, canChange bool,
  29491. d *Decoder) (_ map[int64]int, changed bool) {
  29492. dd, esep := d.d, d.hh.hasElemSeparators()
  29493. containerLen := dd.ReadMapStart()
  29494. if canChange && v == nil {
  29495. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29496. v = make(map[int64]int, xlen)
  29497. changed = true
  29498. }
  29499. if containerLen == 0 {
  29500. dd.ReadMapEnd()
  29501. return v, changed
  29502. }
  29503. var mk int64
  29504. var mv int
  29505. hasLen := containerLen > 0
  29506. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29507. if esep {
  29508. dd.ReadMapElemKey()
  29509. }
  29510. mk = dd.DecodeInt(64)
  29511. if esep {
  29512. dd.ReadMapElemValue()
  29513. }
  29514. if dd.TryDecodeAsNil() {
  29515. if d.h.DeleteOnNilMapValue {
  29516. delete(v, mk)
  29517. } else {
  29518. v[mk] = 0
  29519. }
  29520. continue
  29521. }
  29522. mv = int(dd.DecodeInt(intBitsize))
  29523. if v != nil {
  29524. v[mk] = mv
  29525. }
  29526. }
  29527. dd.ReadMapEnd()
  29528. return v, changed
  29529. }
  29530. func (d *Decoder) fastpathDecMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  29531. if rv.Kind() == reflect.Ptr {
  29532. vp := rv2i(rv).(*map[int64]int8)
  29533. if v, changed := fastpathTV.DecMapInt64Int8V(*vp, true, d); changed {
  29534. *vp = v
  29535. }
  29536. return
  29537. }
  29538. fastpathTV.DecMapInt64Int8V(rv2i(rv).(map[int64]int8), false, d)
  29539. }
  29540. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, d *Decoder) {
  29541. if v, changed := f.DecMapInt64Int8V(*vp, true, d); changed {
  29542. *vp = v
  29543. }
  29544. }
  29545. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, canChange bool,
  29546. d *Decoder) (_ map[int64]int8, changed bool) {
  29547. dd, esep := d.d, d.hh.hasElemSeparators()
  29548. containerLen := dd.ReadMapStart()
  29549. if canChange && v == nil {
  29550. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29551. v = make(map[int64]int8, xlen)
  29552. changed = true
  29553. }
  29554. if containerLen == 0 {
  29555. dd.ReadMapEnd()
  29556. return v, changed
  29557. }
  29558. var mk int64
  29559. var mv int8
  29560. hasLen := containerLen > 0
  29561. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29562. if esep {
  29563. dd.ReadMapElemKey()
  29564. }
  29565. mk = dd.DecodeInt(64)
  29566. if esep {
  29567. dd.ReadMapElemValue()
  29568. }
  29569. if dd.TryDecodeAsNil() {
  29570. if d.h.DeleteOnNilMapValue {
  29571. delete(v, mk)
  29572. } else {
  29573. v[mk] = 0
  29574. }
  29575. continue
  29576. }
  29577. mv = int8(dd.DecodeInt(8))
  29578. if v != nil {
  29579. v[mk] = mv
  29580. }
  29581. }
  29582. dd.ReadMapEnd()
  29583. return v, changed
  29584. }
  29585. func (d *Decoder) fastpathDecMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  29586. if rv.Kind() == reflect.Ptr {
  29587. vp := rv2i(rv).(*map[int64]int16)
  29588. if v, changed := fastpathTV.DecMapInt64Int16V(*vp, true, d); changed {
  29589. *vp = v
  29590. }
  29591. return
  29592. }
  29593. fastpathTV.DecMapInt64Int16V(rv2i(rv).(map[int64]int16), false, d)
  29594. }
  29595. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, d *Decoder) {
  29596. if v, changed := f.DecMapInt64Int16V(*vp, true, d); changed {
  29597. *vp = v
  29598. }
  29599. }
  29600. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, canChange bool,
  29601. d *Decoder) (_ map[int64]int16, changed bool) {
  29602. dd, esep := d.d, d.hh.hasElemSeparators()
  29603. containerLen := dd.ReadMapStart()
  29604. if canChange && v == nil {
  29605. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29606. v = make(map[int64]int16, xlen)
  29607. changed = true
  29608. }
  29609. if containerLen == 0 {
  29610. dd.ReadMapEnd()
  29611. return v, changed
  29612. }
  29613. var mk int64
  29614. var mv int16
  29615. hasLen := containerLen > 0
  29616. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29617. if esep {
  29618. dd.ReadMapElemKey()
  29619. }
  29620. mk = dd.DecodeInt(64)
  29621. if esep {
  29622. dd.ReadMapElemValue()
  29623. }
  29624. if dd.TryDecodeAsNil() {
  29625. if d.h.DeleteOnNilMapValue {
  29626. delete(v, mk)
  29627. } else {
  29628. v[mk] = 0
  29629. }
  29630. continue
  29631. }
  29632. mv = int16(dd.DecodeInt(16))
  29633. if v != nil {
  29634. v[mk] = mv
  29635. }
  29636. }
  29637. dd.ReadMapEnd()
  29638. return v, changed
  29639. }
  29640. func (d *Decoder) fastpathDecMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  29641. if rv.Kind() == reflect.Ptr {
  29642. vp := rv2i(rv).(*map[int64]int32)
  29643. if v, changed := fastpathTV.DecMapInt64Int32V(*vp, true, d); changed {
  29644. *vp = v
  29645. }
  29646. return
  29647. }
  29648. fastpathTV.DecMapInt64Int32V(rv2i(rv).(map[int64]int32), false, d)
  29649. }
  29650. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, d *Decoder) {
  29651. if v, changed := f.DecMapInt64Int32V(*vp, true, d); changed {
  29652. *vp = v
  29653. }
  29654. }
  29655. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, canChange bool,
  29656. d *Decoder) (_ map[int64]int32, changed bool) {
  29657. dd, esep := d.d, d.hh.hasElemSeparators()
  29658. containerLen := dd.ReadMapStart()
  29659. if canChange && v == nil {
  29660. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29661. v = make(map[int64]int32, xlen)
  29662. changed = true
  29663. }
  29664. if containerLen == 0 {
  29665. dd.ReadMapEnd()
  29666. return v, changed
  29667. }
  29668. var mk int64
  29669. var mv int32
  29670. hasLen := containerLen > 0
  29671. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29672. if esep {
  29673. dd.ReadMapElemKey()
  29674. }
  29675. mk = dd.DecodeInt(64)
  29676. if esep {
  29677. dd.ReadMapElemValue()
  29678. }
  29679. if dd.TryDecodeAsNil() {
  29680. if d.h.DeleteOnNilMapValue {
  29681. delete(v, mk)
  29682. } else {
  29683. v[mk] = 0
  29684. }
  29685. continue
  29686. }
  29687. mv = int32(dd.DecodeInt(32))
  29688. if v != nil {
  29689. v[mk] = mv
  29690. }
  29691. }
  29692. dd.ReadMapEnd()
  29693. return v, changed
  29694. }
  29695. func (d *Decoder) fastpathDecMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  29696. if rv.Kind() == reflect.Ptr {
  29697. vp := rv2i(rv).(*map[int64]int64)
  29698. if v, changed := fastpathTV.DecMapInt64Int64V(*vp, true, d); changed {
  29699. *vp = v
  29700. }
  29701. return
  29702. }
  29703. fastpathTV.DecMapInt64Int64V(rv2i(rv).(map[int64]int64), false, d)
  29704. }
  29705. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, d *Decoder) {
  29706. if v, changed := f.DecMapInt64Int64V(*vp, true, d); changed {
  29707. *vp = v
  29708. }
  29709. }
  29710. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, canChange bool,
  29711. d *Decoder) (_ map[int64]int64, changed bool) {
  29712. dd, esep := d.d, d.hh.hasElemSeparators()
  29713. containerLen := dd.ReadMapStart()
  29714. if canChange && v == nil {
  29715. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29716. v = make(map[int64]int64, xlen)
  29717. changed = true
  29718. }
  29719. if containerLen == 0 {
  29720. dd.ReadMapEnd()
  29721. return v, changed
  29722. }
  29723. var mk int64
  29724. var mv int64
  29725. hasLen := containerLen > 0
  29726. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29727. if esep {
  29728. dd.ReadMapElemKey()
  29729. }
  29730. mk = dd.DecodeInt(64)
  29731. if esep {
  29732. dd.ReadMapElemValue()
  29733. }
  29734. if dd.TryDecodeAsNil() {
  29735. if d.h.DeleteOnNilMapValue {
  29736. delete(v, mk)
  29737. } else {
  29738. v[mk] = 0
  29739. }
  29740. continue
  29741. }
  29742. mv = dd.DecodeInt(64)
  29743. if v != nil {
  29744. v[mk] = mv
  29745. }
  29746. }
  29747. dd.ReadMapEnd()
  29748. return v, changed
  29749. }
  29750. func (d *Decoder) fastpathDecMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  29751. if rv.Kind() == reflect.Ptr {
  29752. vp := rv2i(rv).(*map[int64]float32)
  29753. if v, changed := fastpathTV.DecMapInt64Float32V(*vp, true, d); changed {
  29754. *vp = v
  29755. }
  29756. return
  29757. }
  29758. fastpathTV.DecMapInt64Float32V(rv2i(rv).(map[int64]float32), false, d)
  29759. }
  29760. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, d *Decoder) {
  29761. if v, changed := f.DecMapInt64Float32V(*vp, true, d); changed {
  29762. *vp = v
  29763. }
  29764. }
  29765. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, canChange bool,
  29766. d *Decoder) (_ map[int64]float32, changed bool) {
  29767. dd, esep := d.d, d.hh.hasElemSeparators()
  29768. containerLen := dd.ReadMapStart()
  29769. if canChange && v == nil {
  29770. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29771. v = make(map[int64]float32, xlen)
  29772. changed = true
  29773. }
  29774. if containerLen == 0 {
  29775. dd.ReadMapEnd()
  29776. return v, changed
  29777. }
  29778. var mk int64
  29779. var mv float32
  29780. hasLen := containerLen > 0
  29781. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29782. if esep {
  29783. dd.ReadMapElemKey()
  29784. }
  29785. mk = dd.DecodeInt(64)
  29786. if esep {
  29787. dd.ReadMapElemValue()
  29788. }
  29789. if dd.TryDecodeAsNil() {
  29790. if d.h.DeleteOnNilMapValue {
  29791. delete(v, mk)
  29792. } else {
  29793. v[mk] = 0
  29794. }
  29795. continue
  29796. }
  29797. mv = float32(dd.DecodeFloat(true))
  29798. if v != nil {
  29799. v[mk] = mv
  29800. }
  29801. }
  29802. dd.ReadMapEnd()
  29803. return v, changed
  29804. }
  29805. func (d *Decoder) fastpathDecMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  29806. if rv.Kind() == reflect.Ptr {
  29807. vp := rv2i(rv).(*map[int64]float64)
  29808. if v, changed := fastpathTV.DecMapInt64Float64V(*vp, true, d); changed {
  29809. *vp = v
  29810. }
  29811. return
  29812. }
  29813. fastpathTV.DecMapInt64Float64V(rv2i(rv).(map[int64]float64), false, d)
  29814. }
  29815. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, d *Decoder) {
  29816. if v, changed := f.DecMapInt64Float64V(*vp, true, d); changed {
  29817. *vp = v
  29818. }
  29819. }
  29820. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, canChange bool,
  29821. d *Decoder) (_ map[int64]float64, changed bool) {
  29822. dd, esep := d.d, d.hh.hasElemSeparators()
  29823. containerLen := dd.ReadMapStart()
  29824. if canChange && v == nil {
  29825. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29826. v = make(map[int64]float64, xlen)
  29827. changed = true
  29828. }
  29829. if containerLen == 0 {
  29830. dd.ReadMapEnd()
  29831. return v, changed
  29832. }
  29833. var mk int64
  29834. var mv float64
  29835. hasLen := containerLen > 0
  29836. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29837. if esep {
  29838. dd.ReadMapElemKey()
  29839. }
  29840. mk = dd.DecodeInt(64)
  29841. if esep {
  29842. dd.ReadMapElemValue()
  29843. }
  29844. if dd.TryDecodeAsNil() {
  29845. if d.h.DeleteOnNilMapValue {
  29846. delete(v, mk)
  29847. } else {
  29848. v[mk] = 0
  29849. }
  29850. continue
  29851. }
  29852. mv = dd.DecodeFloat(false)
  29853. if v != nil {
  29854. v[mk] = mv
  29855. }
  29856. }
  29857. dd.ReadMapEnd()
  29858. return v, changed
  29859. }
  29860. func (d *Decoder) fastpathDecMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  29861. if rv.Kind() == reflect.Ptr {
  29862. vp := rv2i(rv).(*map[int64]bool)
  29863. if v, changed := fastpathTV.DecMapInt64BoolV(*vp, true, d); changed {
  29864. *vp = v
  29865. }
  29866. return
  29867. }
  29868. fastpathTV.DecMapInt64BoolV(rv2i(rv).(map[int64]bool), false, d)
  29869. }
  29870. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, d *Decoder) {
  29871. if v, changed := f.DecMapInt64BoolV(*vp, true, d); changed {
  29872. *vp = v
  29873. }
  29874. }
  29875. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, canChange bool,
  29876. d *Decoder) (_ map[int64]bool, changed bool) {
  29877. dd, esep := d.d, d.hh.hasElemSeparators()
  29878. containerLen := dd.ReadMapStart()
  29879. if canChange && v == nil {
  29880. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29881. v = make(map[int64]bool, xlen)
  29882. changed = true
  29883. }
  29884. if containerLen == 0 {
  29885. dd.ReadMapEnd()
  29886. return v, changed
  29887. }
  29888. var mk int64
  29889. var mv bool
  29890. hasLen := containerLen > 0
  29891. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29892. if esep {
  29893. dd.ReadMapElemKey()
  29894. }
  29895. mk = dd.DecodeInt(64)
  29896. if esep {
  29897. dd.ReadMapElemValue()
  29898. }
  29899. if dd.TryDecodeAsNil() {
  29900. if d.h.DeleteOnNilMapValue {
  29901. delete(v, mk)
  29902. } else {
  29903. v[mk] = false
  29904. }
  29905. continue
  29906. }
  29907. mv = dd.DecodeBool()
  29908. if v != nil {
  29909. v[mk] = mv
  29910. }
  29911. }
  29912. dd.ReadMapEnd()
  29913. return v, changed
  29914. }
  29915. func (d *Decoder) fastpathDecMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  29916. if rv.Kind() == reflect.Ptr {
  29917. vp := rv2i(rv).(*map[bool]interface{})
  29918. if v, changed := fastpathTV.DecMapBoolIntfV(*vp, true, d); changed {
  29919. *vp = v
  29920. }
  29921. return
  29922. }
  29923. fastpathTV.DecMapBoolIntfV(rv2i(rv).(map[bool]interface{}), false, d)
  29924. }
  29925. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, d *Decoder) {
  29926. if v, changed := f.DecMapBoolIntfV(*vp, true, d); changed {
  29927. *vp = v
  29928. }
  29929. }
  29930. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, canChange bool,
  29931. d *Decoder) (_ map[bool]interface{}, changed bool) {
  29932. dd, esep := d.d, d.hh.hasElemSeparators()
  29933. containerLen := dd.ReadMapStart()
  29934. if canChange && v == nil {
  29935. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29936. v = make(map[bool]interface{}, xlen)
  29937. changed = true
  29938. }
  29939. if containerLen == 0 {
  29940. dd.ReadMapEnd()
  29941. return v, changed
  29942. }
  29943. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  29944. var mk bool
  29945. var mv interface{}
  29946. hasLen := containerLen > 0
  29947. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29948. if esep {
  29949. dd.ReadMapElemKey()
  29950. }
  29951. mk = dd.DecodeBool()
  29952. if esep {
  29953. dd.ReadMapElemValue()
  29954. }
  29955. if dd.TryDecodeAsNil() {
  29956. if d.h.DeleteOnNilMapValue {
  29957. delete(v, mk)
  29958. } else {
  29959. v[mk] = nil
  29960. }
  29961. continue
  29962. }
  29963. if mapGet {
  29964. mv = v[mk]
  29965. } else {
  29966. mv = nil
  29967. }
  29968. d.decode(&mv)
  29969. if v != nil {
  29970. v[mk] = mv
  29971. }
  29972. }
  29973. dd.ReadMapEnd()
  29974. return v, changed
  29975. }
  29976. func (d *Decoder) fastpathDecMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  29977. if rv.Kind() == reflect.Ptr {
  29978. vp := rv2i(rv).(*map[bool]string)
  29979. if v, changed := fastpathTV.DecMapBoolStringV(*vp, true, d); changed {
  29980. *vp = v
  29981. }
  29982. return
  29983. }
  29984. fastpathTV.DecMapBoolStringV(rv2i(rv).(map[bool]string), false, d)
  29985. }
  29986. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, d *Decoder) {
  29987. if v, changed := f.DecMapBoolStringV(*vp, true, d); changed {
  29988. *vp = v
  29989. }
  29990. }
  29991. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, canChange bool,
  29992. d *Decoder) (_ map[bool]string, changed bool) {
  29993. dd, esep := d.d, d.hh.hasElemSeparators()
  29994. containerLen := dd.ReadMapStart()
  29995. if canChange && v == nil {
  29996. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29997. v = make(map[bool]string, xlen)
  29998. changed = true
  29999. }
  30000. if containerLen == 0 {
  30001. dd.ReadMapEnd()
  30002. return v, changed
  30003. }
  30004. var mk bool
  30005. var mv string
  30006. hasLen := containerLen > 0
  30007. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30008. if esep {
  30009. dd.ReadMapElemKey()
  30010. }
  30011. mk = dd.DecodeBool()
  30012. if esep {
  30013. dd.ReadMapElemValue()
  30014. }
  30015. if dd.TryDecodeAsNil() {
  30016. if d.h.DeleteOnNilMapValue {
  30017. delete(v, mk)
  30018. } else {
  30019. v[mk] = ""
  30020. }
  30021. continue
  30022. }
  30023. mv = dd.DecodeString()
  30024. if v != nil {
  30025. v[mk] = mv
  30026. }
  30027. }
  30028. dd.ReadMapEnd()
  30029. return v, changed
  30030. }
  30031. func (d *Decoder) fastpathDecMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  30032. if rv.Kind() == reflect.Ptr {
  30033. vp := rv2i(rv).(*map[bool]uint)
  30034. if v, changed := fastpathTV.DecMapBoolUintV(*vp, true, d); changed {
  30035. *vp = v
  30036. }
  30037. return
  30038. }
  30039. fastpathTV.DecMapBoolUintV(rv2i(rv).(map[bool]uint), false, d)
  30040. }
  30041. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, d *Decoder) {
  30042. if v, changed := f.DecMapBoolUintV(*vp, true, d); changed {
  30043. *vp = v
  30044. }
  30045. }
  30046. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, canChange bool,
  30047. d *Decoder) (_ map[bool]uint, changed bool) {
  30048. dd, esep := d.d, d.hh.hasElemSeparators()
  30049. containerLen := dd.ReadMapStart()
  30050. if canChange && v == nil {
  30051. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30052. v = make(map[bool]uint, xlen)
  30053. changed = true
  30054. }
  30055. if containerLen == 0 {
  30056. dd.ReadMapEnd()
  30057. return v, changed
  30058. }
  30059. var mk bool
  30060. var mv uint
  30061. hasLen := containerLen > 0
  30062. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30063. if esep {
  30064. dd.ReadMapElemKey()
  30065. }
  30066. mk = dd.DecodeBool()
  30067. if esep {
  30068. dd.ReadMapElemValue()
  30069. }
  30070. if dd.TryDecodeAsNil() {
  30071. if d.h.DeleteOnNilMapValue {
  30072. delete(v, mk)
  30073. } else {
  30074. v[mk] = 0
  30075. }
  30076. continue
  30077. }
  30078. mv = uint(dd.DecodeUint(uintBitsize))
  30079. if v != nil {
  30080. v[mk] = mv
  30081. }
  30082. }
  30083. dd.ReadMapEnd()
  30084. return v, changed
  30085. }
  30086. func (d *Decoder) fastpathDecMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  30087. if rv.Kind() == reflect.Ptr {
  30088. vp := rv2i(rv).(*map[bool]uint8)
  30089. if v, changed := fastpathTV.DecMapBoolUint8V(*vp, true, d); changed {
  30090. *vp = v
  30091. }
  30092. return
  30093. }
  30094. fastpathTV.DecMapBoolUint8V(rv2i(rv).(map[bool]uint8), false, d)
  30095. }
  30096. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, d *Decoder) {
  30097. if v, changed := f.DecMapBoolUint8V(*vp, true, d); changed {
  30098. *vp = v
  30099. }
  30100. }
  30101. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, canChange bool,
  30102. d *Decoder) (_ map[bool]uint8, changed bool) {
  30103. dd, esep := d.d, d.hh.hasElemSeparators()
  30104. containerLen := dd.ReadMapStart()
  30105. if canChange && v == nil {
  30106. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30107. v = make(map[bool]uint8, xlen)
  30108. changed = true
  30109. }
  30110. if containerLen == 0 {
  30111. dd.ReadMapEnd()
  30112. return v, changed
  30113. }
  30114. var mk bool
  30115. var mv uint8
  30116. hasLen := containerLen > 0
  30117. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30118. if esep {
  30119. dd.ReadMapElemKey()
  30120. }
  30121. mk = dd.DecodeBool()
  30122. if esep {
  30123. dd.ReadMapElemValue()
  30124. }
  30125. if dd.TryDecodeAsNil() {
  30126. if d.h.DeleteOnNilMapValue {
  30127. delete(v, mk)
  30128. } else {
  30129. v[mk] = 0
  30130. }
  30131. continue
  30132. }
  30133. mv = uint8(dd.DecodeUint(8))
  30134. if v != nil {
  30135. v[mk] = mv
  30136. }
  30137. }
  30138. dd.ReadMapEnd()
  30139. return v, changed
  30140. }
  30141. func (d *Decoder) fastpathDecMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  30142. if rv.Kind() == reflect.Ptr {
  30143. vp := rv2i(rv).(*map[bool]uint16)
  30144. if v, changed := fastpathTV.DecMapBoolUint16V(*vp, true, d); changed {
  30145. *vp = v
  30146. }
  30147. return
  30148. }
  30149. fastpathTV.DecMapBoolUint16V(rv2i(rv).(map[bool]uint16), false, d)
  30150. }
  30151. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, d *Decoder) {
  30152. if v, changed := f.DecMapBoolUint16V(*vp, true, d); changed {
  30153. *vp = v
  30154. }
  30155. }
  30156. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, canChange bool,
  30157. d *Decoder) (_ map[bool]uint16, changed bool) {
  30158. dd, esep := d.d, d.hh.hasElemSeparators()
  30159. containerLen := dd.ReadMapStart()
  30160. if canChange && v == nil {
  30161. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30162. v = make(map[bool]uint16, xlen)
  30163. changed = true
  30164. }
  30165. if containerLen == 0 {
  30166. dd.ReadMapEnd()
  30167. return v, changed
  30168. }
  30169. var mk bool
  30170. var mv uint16
  30171. hasLen := containerLen > 0
  30172. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30173. if esep {
  30174. dd.ReadMapElemKey()
  30175. }
  30176. mk = dd.DecodeBool()
  30177. if esep {
  30178. dd.ReadMapElemValue()
  30179. }
  30180. if dd.TryDecodeAsNil() {
  30181. if d.h.DeleteOnNilMapValue {
  30182. delete(v, mk)
  30183. } else {
  30184. v[mk] = 0
  30185. }
  30186. continue
  30187. }
  30188. mv = uint16(dd.DecodeUint(16))
  30189. if v != nil {
  30190. v[mk] = mv
  30191. }
  30192. }
  30193. dd.ReadMapEnd()
  30194. return v, changed
  30195. }
  30196. func (d *Decoder) fastpathDecMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  30197. if rv.Kind() == reflect.Ptr {
  30198. vp := rv2i(rv).(*map[bool]uint32)
  30199. if v, changed := fastpathTV.DecMapBoolUint32V(*vp, true, d); changed {
  30200. *vp = v
  30201. }
  30202. return
  30203. }
  30204. fastpathTV.DecMapBoolUint32V(rv2i(rv).(map[bool]uint32), false, d)
  30205. }
  30206. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, d *Decoder) {
  30207. if v, changed := f.DecMapBoolUint32V(*vp, true, d); changed {
  30208. *vp = v
  30209. }
  30210. }
  30211. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, canChange bool,
  30212. d *Decoder) (_ map[bool]uint32, changed bool) {
  30213. dd, esep := d.d, d.hh.hasElemSeparators()
  30214. containerLen := dd.ReadMapStart()
  30215. if canChange && v == nil {
  30216. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30217. v = make(map[bool]uint32, xlen)
  30218. changed = true
  30219. }
  30220. if containerLen == 0 {
  30221. dd.ReadMapEnd()
  30222. return v, changed
  30223. }
  30224. var mk bool
  30225. var mv uint32
  30226. hasLen := containerLen > 0
  30227. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30228. if esep {
  30229. dd.ReadMapElemKey()
  30230. }
  30231. mk = dd.DecodeBool()
  30232. if esep {
  30233. dd.ReadMapElemValue()
  30234. }
  30235. if dd.TryDecodeAsNil() {
  30236. if d.h.DeleteOnNilMapValue {
  30237. delete(v, mk)
  30238. } else {
  30239. v[mk] = 0
  30240. }
  30241. continue
  30242. }
  30243. mv = uint32(dd.DecodeUint(32))
  30244. if v != nil {
  30245. v[mk] = mv
  30246. }
  30247. }
  30248. dd.ReadMapEnd()
  30249. return v, changed
  30250. }
  30251. func (d *Decoder) fastpathDecMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  30252. if rv.Kind() == reflect.Ptr {
  30253. vp := rv2i(rv).(*map[bool]uint64)
  30254. if v, changed := fastpathTV.DecMapBoolUint64V(*vp, true, d); changed {
  30255. *vp = v
  30256. }
  30257. return
  30258. }
  30259. fastpathTV.DecMapBoolUint64V(rv2i(rv).(map[bool]uint64), false, d)
  30260. }
  30261. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, d *Decoder) {
  30262. if v, changed := f.DecMapBoolUint64V(*vp, true, d); changed {
  30263. *vp = v
  30264. }
  30265. }
  30266. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, canChange bool,
  30267. d *Decoder) (_ map[bool]uint64, changed bool) {
  30268. dd, esep := d.d, d.hh.hasElemSeparators()
  30269. containerLen := dd.ReadMapStart()
  30270. if canChange && v == nil {
  30271. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30272. v = make(map[bool]uint64, xlen)
  30273. changed = true
  30274. }
  30275. if containerLen == 0 {
  30276. dd.ReadMapEnd()
  30277. return v, changed
  30278. }
  30279. var mk bool
  30280. var mv uint64
  30281. hasLen := containerLen > 0
  30282. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30283. if esep {
  30284. dd.ReadMapElemKey()
  30285. }
  30286. mk = dd.DecodeBool()
  30287. if esep {
  30288. dd.ReadMapElemValue()
  30289. }
  30290. if dd.TryDecodeAsNil() {
  30291. if d.h.DeleteOnNilMapValue {
  30292. delete(v, mk)
  30293. } else {
  30294. v[mk] = 0
  30295. }
  30296. continue
  30297. }
  30298. mv = dd.DecodeUint(64)
  30299. if v != nil {
  30300. v[mk] = mv
  30301. }
  30302. }
  30303. dd.ReadMapEnd()
  30304. return v, changed
  30305. }
  30306. func (d *Decoder) fastpathDecMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  30307. if rv.Kind() == reflect.Ptr {
  30308. vp := rv2i(rv).(*map[bool]uintptr)
  30309. if v, changed := fastpathTV.DecMapBoolUintptrV(*vp, true, d); changed {
  30310. *vp = v
  30311. }
  30312. return
  30313. }
  30314. fastpathTV.DecMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), false, d)
  30315. }
  30316. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, d *Decoder) {
  30317. if v, changed := f.DecMapBoolUintptrV(*vp, true, d); changed {
  30318. *vp = v
  30319. }
  30320. }
  30321. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, canChange bool,
  30322. d *Decoder) (_ map[bool]uintptr, changed bool) {
  30323. dd, esep := d.d, d.hh.hasElemSeparators()
  30324. containerLen := dd.ReadMapStart()
  30325. if canChange && v == nil {
  30326. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30327. v = make(map[bool]uintptr, xlen)
  30328. changed = true
  30329. }
  30330. if containerLen == 0 {
  30331. dd.ReadMapEnd()
  30332. return v, changed
  30333. }
  30334. var mk bool
  30335. var mv uintptr
  30336. hasLen := containerLen > 0
  30337. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30338. if esep {
  30339. dd.ReadMapElemKey()
  30340. }
  30341. mk = dd.DecodeBool()
  30342. if esep {
  30343. dd.ReadMapElemValue()
  30344. }
  30345. if dd.TryDecodeAsNil() {
  30346. if d.h.DeleteOnNilMapValue {
  30347. delete(v, mk)
  30348. } else {
  30349. v[mk] = 0
  30350. }
  30351. continue
  30352. }
  30353. mv = uintptr(dd.DecodeUint(uintBitsize))
  30354. if v != nil {
  30355. v[mk] = mv
  30356. }
  30357. }
  30358. dd.ReadMapEnd()
  30359. return v, changed
  30360. }
  30361. func (d *Decoder) fastpathDecMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  30362. if rv.Kind() == reflect.Ptr {
  30363. vp := rv2i(rv).(*map[bool]int)
  30364. if v, changed := fastpathTV.DecMapBoolIntV(*vp, true, d); changed {
  30365. *vp = v
  30366. }
  30367. return
  30368. }
  30369. fastpathTV.DecMapBoolIntV(rv2i(rv).(map[bool]int), false, d)
  30370. }
  30371. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, d *Decoder) {
  30372. if v, changed := f.DecMapBoolIntV(*vp, true, d); changed {
  30373. *vp = v
  30374. }
  30375. }
  30376. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, canChange bool,
  30377. d *Decoder) (_ map[bool]int, changed bool) {
  30378. dd, esep := d.d, d.hh.hasElemSeparators()
  30379. containerLen := dd.ReadMapStart()
  30380. if canChange && v == nil {
  30381. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30382. v = make(map[bool]int, xlen)
  30383. changed = true
  30384. }
  30385. if containerLen == 0 {
  30386. dd.ReadMapEnd()
  30387. return v, changed
  30388. }
  30389. var mk bool
  30390. var mv int
  30391. hasLen := containerLen > 0
  30392. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30393. if esep {
  30394. dd.ReadMapElemKey()
  30395. }
  30396. mk = dd.DecodeBool()
  30397. if esep {
  30398. dd.ReadMapElemValue()
  30399. }
  30400. if dd.TryDecodeAsNil() {
  30401. if d.h.DeleteOnNilMapValue {
  30402. delete(v, mk)
  30403. } else {
  30404. v[mk] = 0
  30405. }
  30406. continue
  30407. }
  30408. mv = int(dd.DecodeInt(intBitsize))
  30409. if v != nil {
  30410. v[mk] = mv
  30411. }
  30412. }
  30413. dd.ReadMapEnd()
  30414. return v, changed
  30415. }
  30416. func (d *Decoder) fastpathDecMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  30417. if rv.Kind() == reflect.Ptr {
  30418. vp := rv2i(rv).(*map[bool]int8)
  30419. if v, changed := fastpathTV.DecMapBoolInt8V(*vp, true, d); changed {
  30420. *vp = v
  30421. }
  30422. return
  30423. }
  30424. fastpathTV.DecMapBoolInt8V(rv2i(rv).(map[bool]int8), false, d)
  30425. }
  30426. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, d *Decoder) {
  30427. if v, changed := f.DecMapBoolInt8V(*vp, true, d); changed {
  30428. *vp = v
  30429. }
  30430. }
  30431. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, canChange bool,
  30432. d *Decoder) (_ map[bool]int8, changed bool) {
  30433. dd, esep := d.d, d.hh.hasElemSeparators()
  30434. containerLen := dd.ReadMapStart()
  30435. if canChange && v == nil {
  30436. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30437. v = make(map[bool]int8, xlen)
  30438. changed = true
  30439. }
  30440. if containerLen == 0 {
  30441. dd.ReadMapEnd()
  30442. return v, changed
  30443. }
  30444. var mk bool
  30445. var mv int8
  30446. hasLen := containerLen > 0
  30447. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30448. if esep {
  30449. dd.ReadMapElemKey()
  30450. }
  30451. mk = dd.DecodeBool()
  30452. if esep {
  30453. dd.ReadMapElemValue()
  30454. }
  30455. if dd.TryDecodeAsNil() {
  30456. if d.h.DeleteOnNilMapValue {
  30457. delete(v, mk)
  30458. } else {
  30459. v[mk] = 0
  30460. }
  30461. continue
  30462. }
  30463. mv = int8(dd.DecodeInt(8))
  30464. if v != nil {
  30465. v[mk] = mv
  30466. }
  30467. }
  30468. dd.ReadMapEnd()
  30469. return v, changed
  30470. }
  30471. func (d *Decoder) fastpathDecMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  30472. if rv.Kind() == reflect.Ptr {
  30473. vp := rv2i(rv).(*map[bool]int16)
  30474. if v, changed := fastpathTV.DecMapBoolInt16V(*vp, true, d); changed {
  30475. *vp = v
  30476. }
  30477. return
  30478. }
  30479. fastpathTV.DecMapBoolInt16V(rv2i(rv).(map[bool]int16), false, d)
  30480. }
  30481. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, d *Decoder) {
  30482. if v, changed := f.DecMapBoolInt16V(*vp, true, d); changed {
  30483. *vp = v
  30484. }
  30485. }
  30486. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, canChange bool,
  30487. d *Decoder) (_ map[bool]int16, changed bool) {
  30488. dd, esep := d.d, d.hh.hasElemSeparators()
  30489. containerLen := dd.ReadMapStart()
  30490. if canChange && v == nil {
  30491. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30492. v = make(map[bool]int16, xlen)
  30493. changed = true
  30494. }
  30495. if containerLen == 0 {
  30496. dd.ReadMapEnd()
  30497. return v, changed
  30498. }
  30499. var mk bool
  30500. var mv int16
  30501. hasLen := containerLen > 0
  30502. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30503. if esep {
  30504. dd.ReadMapElemKey()
  30505. }
  30506. mk = dd.DecodeBool()
  30507. if esep {
  30508. dd.ReadMapElemValue()
  30509. }
  30510. if dd.TryDecodeAsNil() {
  30511. if d.h.DeleteOnNilMapValue {
  30512. delete(v, mk)
  30513. } else {
  30514. v[mk] = 0
  30515. }
  30516. continue
  30517. }
  30518. mv = int16(dd.DecodeInt(16))
  30519. if v != nil {
  30520. v[mk] = mv
  30521. }
  30522. }
  30523. dd.ReadMapEnd()
  30524. return v, changed
  30525. }
  30526. func (d *Decoder) fastpathDecMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  30527. if rv.Kind() == reflect.Ptr {
  30528. vp := rv2i(rv).(*map[bool]int32)
  30529. if v, changed := fastpathTV.DecMapBoolInt32V(*vp, true, d); changed {
  30530. *vp = v
  30531. }
  30532. return
  30533. }
  30534. fastpathTV.DecMapBoolInt32V(rv2i(rv).(map[bool]int32), false, d)
  30535. }
  30536. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, d *Decoder) {
  30537. if v, changed := f.DecMapBoolInt32V(*vp, true, d); changed {
  30538. *vp = v
  30539. }
  30540. }
  30541. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, canChange bool,
  30542. d *Decoder) (_ map[bool]int32, changed bool) {
  30543. dd, esep := d.d, d.hh.hasElemSeparators()
  30544. containerLen := dd.ReadMapStart()
  30545. if canChange && v == nil {
  30546. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30547. v = make(map[bool]int32, xlen)
  30548. changed = true
  30549. }
  30550. if containerLen == 0 {
  30551. dd.ReadMapEnd()
  30552. return v, changed
  30553. }
  30554. var mk bool
  30555. var mv int32
  30556. hasLen := containerLen > 0
  30557. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30558. if esep {
  30559. dd.ReadMapElemKey()
  30560. }
  30561. mk = dd.DecodeBool()
  30562. if esep {
  30563. dd.ReadMapElemValue()
  30564. }
  30565. if dd.TryDecodeAsNil() {
  30566. if d.h.DeleteOnNilMapValue {
  30567. delete(v, mk)
  30568. } else {
  30569. v[mk] = 0
  30570. }
  30571. continue
  30572. }
  30573. mv = int32(dd.DecodeInt(32))
  30574. if v != nil {
  30575. v[mk] = mv
  30576. }
  30577. }
  30578. dd.ReadMapEnd()
  30579. return v, changed
  30580. }
  30581. func (d *Decoder) fastpathDecMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  30582. if rv.Kind() == reflect.Ptr {
  30583. vp := rv2i(rv).(*map[bool]int64)
  30584. if v, changed := fastpathTV.DecMapBoolInt64V(*vp, true, d); changed {
  30585. *vp = v
  30586. }
  30587. return
  30588. }
  30589. fastpathTV.DecMapBoolInt64V(rv2i(rv).(map[bool]int64), false, d)
  30590. }
  30591. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, d *Decoder) {
  30592. if v, changed := f.DecMapBoolInt64V(*vp, true, d); changed {
  30593. *vp = v
  30594. }
  30595. }
  30596. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, canChange bool,
  30597. d *Decoder) (_ map[bool]int64, changed bool) {
  30598. dd, esep := d.d, d.hh.hasElemSeparators()
  30599. containerLen := dd.ReadMapStart()
  30600. if canChange && v == nil {
  30601. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30602. v = make(map[bool]int64, xlen)
  30603. changed = true
  30604. }
  30605. if containerLen == 0 {
  30606. dd.ReadMapEnd()
  30607. return v, changed
  30608. }
  30609. var mk bool
  30610. var mv int64
  30611. hasLen := containerLen > 0
  30612. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30613. if esep {
  30614. dd.ReadMapElemKey()
  30615. }
  30616. mk = dd.DecodeBool()
  30617. if esep {
  30618. dd.ReadMapElemValue()
  30619. }
  30620. if dd.TryDecodeAsNil() {
  30621. if d.h.DeleteOnNilMapValue {
  30622. delete(v, mk)
  30623. } else {
  30624. v[mk] = 0
  30625. }
  30626. continue
  30627. }
  30628. mv = dd.DecodeInt(64)
  30629. if v != nil {
  30630. v[mk] = mv
  30631. }
  30632. }
  30633. dd.ReadMapEnd()
  30634. return v, changed
  30635. }
  30636. func (d *Decoder) fastpathDecMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  30637. if rv.Kind() == reflect.Ptr {
  30638. vp := rv2i(rv).(*map[bool]float32)
  30639. if v, changed := fastpathTV.DecMapBoolFloat32V(*vp, true, d); changed {
  30640. *vp = v
  30641. }
  30642. return
  30643. }
  30644. fastpathTV.DecMapBoolFloat32V(rv2i(rv).(map[bool]float32), false, d)
  30645. }
  30646. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, d *Decoder) {
  30647. if v, changed := f.DecMapBoolFloat32V(*vp, true, d); changed {
  30648. *vp = v
  30649. }
  30650. }
  30651. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, canChange bool,
  30652. d *Decoder) (_ map[bool]float32, changed bool) {
  30653. dd, esep := d.d, d.hh.hasElemSeparators()
  30654. containerLen := dd.ReadMapStart()
  30655. if canChange && v == nil {
  30656. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30657. v = make(map[bool]float32, xlen)
  30658. changed = true
  30659. }
  30660. if containerLen == 0 {
  30661. dd.ReadMapEnd()
  30662. return v, changed
  30663. }
  30664. var mk bool
  30665. var mv float32
  30666. hasLen := containerLen > 0
  30667. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30668. if esep {
  30669. dd.ReadMapElemKey()
  30670. }
  30671. mk = dd.DecodeBool()
  30672. if esep {
  30673. dd.ReadMapElemValue()
  30674. }
  30675. if dd.TryDecodeAsNil() {
  30676. if d.h.DeleteOnNilMapValue {
  30677. delete(v, mk)
  30678. } else {
  30679. v[mk] = 0
  30680. }
  30681. continue
  30682. }
  30683. mv = float32(dd.DecodeFloat(true))
  30684. if v != nil {
  30685. v[mk] = mv
  30686. }
  30687. }
  30688. dd.ReadMapEnd()
  30689. return v, changed
  30690. }
  30691. func (d *Decoder) fastpathDecMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  30692. if rv.Kind() == reflect.Ptr {
  30693. vp := rv2i(rv).(*map[bool]float64)
  30694. if v, changed := fastpathTV.DecMapBoolFloat64V(*vp, true, d); changed {
  30695. *vp = v
  30696. }
  30697. return
  30698. }
  30699. fastpathTV.DecMapBoolFloat64V(rv2i(rv).(map[bool]float64), false, d)
  30700. }
  30701. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, d *Decoder) {
  30702. if v, changed := f.DecMapBoolFloat64V(*vp, true, d); changed {
  30703. *vp = v
  30704. }
  30705. }
  30706. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, canChange bool,
  30707. d *Decoder) (_ map[bool]float64, changed bool) {
  30708. dd, esep := d.d, d.hh.hasElemSeparators()
  30709. containerLen := dd.ReadMapStart()
  30710. if canChange && v == nil {
  30711. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30712. v = make(map[bool]float64, xlen)
  30713. changed = true
  30714. }
  30715. if containerLen == 0 {
  30716. dd.ReadMapEnd()
  30717. return v, changed
  30718. }
  30719. var mk bool
  30720. var mv float64
  30721. hasLen := containerLen > 0
  30722. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30723. if esep {
  30724. dd.ReadMapElemKey()
  30725. }
  30726. mk = dd.DecodeBool()
  30727. if esep {
  30728. dd.ReadMapElemValue()
  30729. }
  30730. if dd.TryDecodeAsNil() {
  30731. if d.h.DeleteOnNilMapValue {
  30732. delete(v, mk)
  30733. } else {
  30734. v[mk] = 0
  30735. }
  30736. continue
  30737. }
  30738. mv = dd.DecodeFloat(false)
  30739. if v != nil {
  30740. v[mk] = mv
  30741. }
  30742. }
  30743. dd.ReadMapEnd()
  30744. return v, changed
  30745. }
  30746. func (d *Decoder) fastpathDecMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  30747. if rv.Kind() == reflect.Ptr {
  30748. vp := rv2i(rv).(*map[bool]bool)
  30749. if v, changed := fastpathTV.DecMapBoolBoolV(*vp, true, d); changed {
  30750. *vp = v
  30751. }
  30752. return
  30753. }
  30754. fastpathTV.DecMapBoolBoolV(rv2i(rv).(map[bool]bool), false, d)
  30755. }
  30756. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, d *Decoder) {
  30757. if v, changed := f.DecMapBoolBoolV(*vp, true, d); changed {
  30758. *vp = v
  30759. }
  30760. }
  30761. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, canChange bool,
  30762. d *Decoder) (_ map[bool]bool, changed bool) {
  30763. dd, esep := d.d, d.hh.hasElemSeparators()
  30764. containerLen := dd.ReadMapStart()
  30765. if canChange && v == nil {
  30766. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30767. v = make(map[bool]bool, xlen)
  30768. changed = true
  30769. }
  30770. if containerLen == 0 {
  30771. dd.ReadMapEnd()
  30772. return v, changed
  30773. }
  30774. var mk bool
  30775. var mv bool
  30776. hasLen := containerLen > 0
  30777. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30778. if esep {
  30779. dd.ReadMapElemKey()
  30780. }
  30781. mk = dd.DecodeBool()
  30782. if esep {
  30783. dd.ReadMapElemValue()
  30784. }
  30785. if dd.TryDecodeAsNil() {
  30786. if d.h.DeleteOnNilMapValue {
  30787. delete(v, mk)
  30788. } else {
  30789. v[mk] = false
  30790. }
  30791. continue
  30792. }
  30793. mv = dd.DecodeBool()
  30794. if v != nil {
  30795. v[mk] = mv
  30796. }
  30797. }
  30798. dd.ReadMapEnd()
  30799. return v, changed
  30800. }