fast-path.generated.go 731 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721
  1. // +build !notfastpath
  2. // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a MIT license found in the LICENSE file.
  4. // Code generated from fast-path.go.tmpl - DO NOT EDIT.
  5. package codec
  6. // Fast path functions try to create a fast path encode or decode implementation
  7. // for common maps and slices.
  8. //
  9. // We define the functions and register then in this single file
  10. // so as not to pollute the encode.go and decode.go, and create a dependency in there.
  11. // This file can be omitted without causing a build failure.
  12. //
  13. // The advantage of fast paths is:
  14. // - Many calls bypass reflection altogether
  15. //
  16. // Currently support
  17. // - slice of all builtin types,
  18. // - map of all builtin types to string or interface value
  19. // - symmetrical maps of all builtin types (e.g. str-str, uint8-uint8)
  20. // This should provide adequate "typical" implementations.
  21. //
  22. // Note that fast track decode functions must handle values for which an address cannot be obtained.
  23. // For example:
  24. // m2 := map[string]int{}
  25. // p2 := []interface{}{m2}
  26. // // decoding into p2 will bomb if fast track functions do not treat like unaddressable.
  27. //
  28. import (
  29. "reflect"
  30. "sort"
  31. )
  32. const fastpathEnabled = true
  33. type fastpathT struct{}
  34. var fastpathTV fastpathT
  35. type fastpathE struct {
  36. rtid uintptr
  37. rt reflect.Type
  38. encfn func(*Encoder, *codecFnInfo, reflect.Value)
  39. decfn func(*Decoder, *codecFnInfo, reflect.Value)
  40. }
  41. type fastpathA [271]fastpathE
  42. func (x *fastpathA) index(rtid uintptr) int {
  43. // use binary search to grab the index (adapted from sort/search.go)
  44. h, i, j := 0, 0, 271 // len(x)
  45. for i < j {
  46. h = i + (j-i)/2
  47. if x[h].rtid < rtid {
  48. i = h + 1
  49. } else {
  50. j = h
  51. }
  52. }
  53. if i < 271 && x[i].rtid == rtid {
  54. return i
  55. }
  56. return -1
  57. }
  58. type fastpathAslice []fastpathE
  59. func (x fastpathAslice) Len() int { return len(x) }
  60. func (x fastpathAslice) Less(i, j int) bool { return x[i].rtid < x[j].rtid }
  61. func (x fastpathAslice) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
  62. var fastpathAV fastpathA
  63. // due to possible initialization loop error, make fastpath in an init()
  64. func init() {
  65. i := 0
  66. fn := func(v interface{},
  67. fe func(*Encoder, *codecFnInfo, reflect.Value),
  68. fd func(*Decoder, *codecFnInfo, reflect.Value)) (f fastpathE) {
  69. xrt := reflect.TypeOf(v)
  70. xptr := rt2id(xrt)
  71. fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
  72. i++
  73. return
  74. }
  75. fn([]interface{}(nil), (*Encoder).fastpathEncSliceIntfR, (*Decoder).fastpathDecSliceIntfR)
  76. fn([]string(nil), (*Encoder).fastpathEncSliceStringR, (*Decoder).fastpathDecSliceStringR)
  77. fn([]float32(nil), (*Encoder).fastpathEncSliceFloat32R, (*Decoder).fastpathDecSliceFloat32R)
  78. fn([]float64(nil), (*Encoder).fastpathEncSliceFloat64R, (*Decoder).fastpathDecSliceFloat64R)
  79. fn([]uint(nil), (*Encoder).fastpathEncSliceUintR, (*Decoder).fastpathDecSliceUintR)
  80. fn([]uint16(nil), (*Encoder).fastpathEncSliceUint16R, (*Decoder).fastpathDecSliceUint16R)
  81. fn([]uint32(nil), (*Encoder).fastpathEncSliceUint32R, (*Decoder).fastpathDecSliceUint32R)
  82. fn([]uint64(nil), (*Encoder).fastpathEncSliceUint64R, (*Decoder).fastpathDecSliceUint64R)
  83. fn([]uintptr(nil), (*Encoder).fastpathEncSliceUintptrR, (*Decoder).fastpathDecSliceUintptrR)
  84. fn([]int(nil), (*Encoder).fastpathEncSliceIntR, (*Decoder).fastpathDecSliceIntR)
  85. fn([]int8(nil), (*Encoder).fastpathEncSliceInt8R, (*Decoder).fastpathDecSliceInt8R)
  86. fn([]int16(nil), (*Encoder).fastpathEncSliceInt16R, (*Decoder).fastpathDecSliceInt16R)
  87. fn([]int32(nil), (*Encoder).fastpathEncSliceInt32R, (*Decoder).fastpathDecSliceInt32R)
  88. fn([]int64(nil), (*Encoder).fastpathEncSliceInt64R, (*Decoder).fastpathDecSliceInt64R)
  89. fn([]bool(nil), (*Encoder).fastpathEncSliceBoolR, (*Decoder).fastpathDecSliceBoolR)
  90. fn(map[interface{}]interface{}(nil), (*Encoder).fastpathEncMapIntfIntfR, (*Decoder).fastpathDecMapIntfIntfR)
  91. fn(map[interface{}]string(nil), (*Encoder).fastpathEncMapIntfStringR, (*Decoder).fastpathDecMapIntfStringR)
  92. fn(map[interface{}]uint(nil), (*Encoder).fastpathEncMapIntfUintR, (*Decoder).fastpathDecMapIntfUintR)
  93. fn(map[interface{}]uint8(nil), (*Encoder).fastpathEncMapIntfUint8R, (*Decoder).fastpathDecMapIntfUint8R)
  94. fn(map[interface{}]uint16(nil), (*Encoder).fastpathEncMapIntfUint16R, (*Decoder).fastpathDecMapIntfUint16R)
  95. fn(map[interface{}]uint32(nil), (*Encoder).fastpathEncMapIntfUint32R, (*Decoder).fastpathDecMapIntfUint32R)
  96. fn(map[interface{}]uint64(nil), (*Encoder).fastpathEncMapIntfUint64R, (*Decoder).fastpathDecMapIntfUint64R)
  97. fn(map[interface{}]uintptr(nil), (*Encoder).fastpathEncMapIntfUintptrR, (*Decoder).fastpathDecMapIntfUintptrR)
  98. fn(map[interface{}]int(nil), (*Encoder).fastpathEncMapIntfIntR, (*Decoder).fastpathDecMapIntfIntR)
  99. fn(map[interface{}]int8(nil), (*Encoder).fastpathEncMapIntfInt8R, (*Decoder).fastpathDecMapIntfInt8R)
  100. fn(map[interface{}]int16(nil), (*Encoder).fastpathEncMapIntfInt16R, (*Decoder).fastpathDecMapIntfInt16R)
  101. fn(map[interface{}]int32(nil), (*Encoder).fastpathEncMapIntfInt32R, (*Decoder).fastpathDecMapIntfInt32R)
  102. fn(map[interface{}]int64(nil), (*Encoder).fastpathEncMapIntfInt64R, (*Decoder).fastpathDecMapIntfInt64R)
  103. fn(map[interface{}]float32(nil), (*Encoder).fastpathEncMapIntfFloat32R, (*Decoder).fastpathDecMapIntfFloat32R)
  104. fn(map[interface{}]float64(nil), (*Encoder).fastpathEncMapIntfFloat64R, (*Decoder).fastpathDecMapIntfFloat64R)
  105. fn(map[interface{}]bool(nil), (*Encoder).fastpathEncMapIntfBoolR, (*Decoder).fastpathDecMapIntfBoolR)
  106. fn(map[string]interface{}(nil), (*Encoder).fastpathEncMapStringIntfR, (*Decoder).fastpathDecMapStringIntfR)
  107. fn(map[string]string(nil), (*Encoder).fastpathEncMapStringStringR, (*Decoder).fastpathDecMapStringStringR)
  108. fn(map[string]uint(nil), (*Encoder).fastpathEncMapStringUintR, (*Decoder).fastpathDecMapStringUintR)
  109. fn(map[string]uint8(nil), (*Encoder).fastpathEncMapStringUint8R, (*Decoder).fastpathDecMapStringUint8R)
  110. fn(map[string]uint16(nil), (*Encoder).fastpathEncMapStringUint16R, (*Decoder).fastpathDecMapStringUint16R)
  111. fn(map[string]uint32(nil), (*Encoder).fastpathEncMapStringUint32R, (*Decoder).fastpathDecMapStringUint32R)
  112. fn(map[string]uint64(nil), (*Encoder).fastpathEncMapStringUint64R, (*Decoder).fastpathDecMapStringUint64R)
  113. fn(map[string]uintptr(nil), (*Encoder).fastpathEncMapStringUintptrR, (*Decoder).fastpathDecMapStringUintptrR)
  114. fn(map[string]int(nil), (*Encoder).fastpathEncMapStringIntR, (*Decoder).fastpathDecMapStringIntR)
  115. fn(map[string]int8(nil), (*Encoder).fastpathEncMapStringInt8R, (*Decoder).fastpathDecMapStringInt8R)
  116. fn(map[string]int16(nil), (*Encoder).fastpathEncMapStringInt16R, (*Decoder).fastpathDecMapStringInt16R)
  117. fn(map[string]int32(nil), (*Encoder).fastpathEncMapStringInt32R, (*Decoder).fastpathDecMapStringInt32R)
  118. fn(map[string]int64(nil), (*Encoder).fastpathEncMapStringInt64R, (*Decoder).fastpathDecMapStringInt64R)
  119. fn(map[string]float32(nil), (*Encoder).fastpathEncMapStringFloat32R, (*Decoder).fastpathDecMapStringFloat32R)
  120. fn(map[string]float64(nil), (*Encoder).fastpathEncMapStringFloat64R, (*Decoder).fastpathDecMapStringFloat64R)
  121. fn(map[string]bool(nil), (*Encoder).fastpathEncMapStringBoolR, (*Decoder).fastpathDecMapStringBoolR)
  122. fn(map[float32]interface{}(nil), (*Encoder).fastpathEncMapFloat32IntfR, (*Decoder).fastpathDecMapFloat32IntfR)
  123. fn(map[float32]string(nil), (*Encoder).fastpathEncMapFloat32StringR, (*Decoder).fastpathDecMapFloat32StringR)
  124. fn(map[float32]uint(nil), (*Encoder).fastpathEncMapFloat32UintR, (*Decoder).fastpathDecMapFloat32UintR)
  125. fn(map[float32]uint8(nil), (*Encoder).fastpathEncMapFloat32Uint8R, (*Decoder).fastpathDecMapFloat32Uint8R)
  126. fn(map[float32]uint16(nil), (*Encoder).fastpathEncMapFloat32Uint16R, (*Decoder).fastpathDecMapFloat32Uint16R)
  127. fn(map[float32]uint32(nil), (*Encoder).fastpathEncMapFloat32Uint32R, (*Decoder).fastpathDecMapFloat32Uint32R)
  128. fn(map[float32]uint64(nil), (*Encoder).fastpathEncMapFloat32Uint64R, (*Decoder).fastpathDecMapFloat32Uint64R)
  129. fn(map[float32]uintptr(nil), (*Encoder).fastpathEncMapFloat32UintptrR, (*Decoder).fastpathDecMapFloat32UintptrR)
  130. fn(map[float32]int(nil), (*Encoder).fastpathEncMapFloat32IntR, (*Decoder).fastpathDecMapFloat32IntR)
  131. fn(map[float32]int8(nil), (*Encoder).fastpathEncMapFloat32Int8R, (*Decoder).fastpathDecMapFloat32Int8R)
  132. fn(map[float32]int16(nil), (*Encoder).fastpathEncMapFloat32Int16R, (*Decoder).fastpathDecMapFloat32Int16R)
  133. fn(map[float32]int32(nil), (*Encoder).fastpathEncMapFloat32Int32R, (*Decoder).fastpathDecMapFloat32Int32R)
  134. fn(map[float32]int64(nil), (*Encoder).fastpathEncMapFloat32Int64R, (*Decoder).fastpathDecMapFloat32Int64R)
  135. fn(map[float32]float32(nil), (*Encoder).fastpathEncMapFloat32Float32R, (*Decoder).fastpathDecMapFloat32Float32R)
  136. fn(map[float32]float64(nil), (*Encoder).fastpathEncMapFloat32Float64R, (*Decoder).fastpathDecMapFloat32Float64R)
  137. fn(map[float32]bool(nil), (*Encoder).fastpathEncMapFloat32BoolR, (*Decoder).fastpathDecMapFloat32BoolR)
  138. fn(map[float64]interface{}(nil), (*Encoder).fastpathEncMapFloat64IntfR, (*Decoder).fastpathDecMapFloat64IntfR)
  139. fn(map[float64]string(nil), (*Encoder).fastpathEncMapFloat64StringR, (*Decoder).fastpathDecMapFloat64StringR)
  140. fn(map[float64]uint(nil), (*Encoder).fastpathEncMapFloat64UintR, (*Decoder).fastpathDecMapFloat64UintR)
  141. fn(map[float64]uint8(nil), (*Encoder).fastpathEncMapFloat64Uint8R, (*Decoder).fastpathDecMapFloat64Uint8R)
  142. fn(map[float64]uint16(nil), (*Encoder).fastpathEncMapFloat64Uint16R, (*Decoder).fastpathDecMapFloat64Uint16R)
  143. fn(map[float64]uint32(nil), (*Encoder).fastpathEncMapFloat64Uint32R, (*Decoder).fastpathDecMapFloat64Uint32R)
  144. fn(map[float64]uint64(nil), (*Encoder).fastpathEncMapFloat64Uint64R, (*Decoder).fastpathDecMapFloat64Uint64R)
  145. fn(map[float64]uintptr(nil), (*Encoder).fastpathEncMapFloat64UintptrR, (*Decoder).fastpathDecMapFloat64UintptrR)
  146. fn(map[float64]int(nil), (*Encoder).fastpathEncMapFloat64IntR, (*Decoder).fastpathDecMapFloat64IntR)
  147. fn(map[float64]int8(nil), (*Encoder).fastpathEncMapFloat64Int8R, (*Decoder).fastpathDecMapFloat64Int8R)
  148. fn(map[float64]int16(nil), (*Encoder).fastpathEncMapFloat64Int16R, (*Decoder).fastpathDecMapFloat64Int16R)
  149. fn(map[float64]int32(nil), (*Encoder).fastpathEncMapFloat64Int32R, (*Decoder).fastpathDecMapFloat64Int32R)
  150. fn(map[float64]int64(nil), (*Encoder).fastpathEncMapFloat64Int64R, (*Decoder).fastpathDecMapFloat64Int64R)
  151. fn(map[float64]float32(nil), (*Encoder).fastpathEncMapFloat64Float32R, (*Decoder).fastpathDecMapFloat64Float32R)
  152. fn(map[float64]float64(nil), (*Encoder).fastpathEncMapFloat64Float64R, (*Decoder).fastpathDecMapFloat64Float64R)
  153. fn(map[float64]bool(nil), (*Encoder).fastpathEncMapFloat64BoolR, (*Decoder).fastpathDecMapFloat64BoolR)
  154. fn(map[uint]interface{}(nil), (*Encoder).fastpathEncMapUintIntfR, (*Decoder).fastpathDecMapUintIntfR)
  155. fn(map[uint]string(nil), (*Encoder).fastpathEncMapUintStringR, (*Decoder).fastpathDecMapUintStringR)
  156. fn(map[uint]uint(nil), (*Encoder).fastpathEncMapUintUintR, (*Decoder).fastpathDecMapUintUintR)
  157. fn(map[uint]uint8(nil), (*Encoder).fastpathEncMapUintUint8R, (*Decoder).fastpathDecMapUintUint8R)
  158. fn(map[uint]uint16(nil), (*Encoder).fastpathEncMapUintUint16R, (*Decoder).fastpathDecMapUintUint16R)
  159. fn(map[uint]uint32(nil), (*Encoder).fastpathEncMapUintUint32R, (*Decoder).fastpathDecMapUintUint32R)
  160. fn(map[uint]uint64(nil), (*Encoder).fastpathEncMapUintUint64R, (*Decoder).fastpathDecMapUintUint64R)
  161. fn(map[uint]uintptr(nil), (*Encoder).fastpathEncMapUintUintptrR, (*Decoder).fastpathDecMapUintUintptrR)
  162. fn(map[uint]int(nil), (*Encoder).fastpathEncMapUintIntR, (*Decoder).fastpathDecMapUintIntR)
  163. fn(map[uint]int8(nil), (*Encoder).fastpathEncMapUintInt8R, (*Decoder).fastpathDecMapUintInt8R)
  164. fn(map[uint]int16(nil), (*Encoder).fastpathEncMapUintInt16R, (*Decoder).fastpathDecMapUintInt16R)
  165. fn(map[uint]int32(nil), (*Encoder).fastpathEncMapUintInt32R, (*Decoder).fastpathDecMapUintInt32R)
  166. fn(map[uint]int64(nil), (*Encoder).fastpathEncMapUintInt64R, (*Decoder).fastpathDecMapUintInt64R)
  167. fn(map[uint]float32(nil), (*Encoder).fastpathEncMapUintFloat32R, (*Decoder).fastpathDecMapUintFloat32R)
  168. fn(map[uint]float64(nil), (*Encoder).fastpathEncMapUintFloat64R, (*Decoder).fastpathDecMapUintFloat64R)
  169. fn(map[uint]bool(nil), (*Encoder).fastpathEncMapUintBoolR, (*Decoder).fastpathDecMapUintBoolR)
  170. fn(map[uint8]interface{}(nil), (*Encoder).fastpathEncMapUint8IntfR, (*Decoder).fastpathDecMapUint8IntfR)
  171. fn(map[uint8]string(nil), (*Encoder).fastpathEncMapUint8StringR, (*Decoder).fastpathDecMapUint8StringR)
  172. fn(map[uint8]uint(nil), (*Encoder).fastpathEncMapUint8UintR, (*Decoder).fastpathDecMapUint8UintR)
  173. fn(map[uint8]uint8(nil), (*Encoder).fastpathEncMapUint8Uint8R, (*Decoder).fastpathDecMapUint8Uint8R)
  174. fn(map[uint8]uint16(nil), (*Encoder).fastpathEncMapUint8Uint16R, (*Decoder).fastpathDecMapUint8Uint16R)
  175. fn(map[uint8]uint32(nil), (*Encoder).fastpathEncMapUint8Uint32R, (*Decoder).fastpathDecMapUint8Uint32R)
  176. fn(map[uint8]uint64(nil), (*Encoder).fastpathEncMapUint8Uint64R, (*Decoder).fastpathDecMapUint8Uint64R)
  177. fn(map[uint8]uintptr(nil), (*Encoder).fastpathEncMapUint8UintptrR, (*Decoder).fastpathDecMapUint8UintptrR)
  178. fn(map[uint8]int(nil), (*Encoder).fastpathEncMapUint8IntR, (*Decoder).fastpathDecMapUint8IntR)
  179. fn(map[uint8]int8(nil), (*Encoder).fastpathEncMapUint8Int8R, (*Decoder).fastpathDecMapUint8Int8R)
  180. fn(map[uint8]int16(nil), (*Encoder).fastpathEncMapUint8Int16R, (*Decoder).fastpathDecMapUint8Int16R)
  181. fn(map[uint8]int32(nil), (*Encoder).fastpathEncMapUint8Int32R, (*Decoder).fastpathDecMapUint8Int32R)
  182. fn(map[uint8]int64(nil), (*Encoder).fastpathEncMapUint8Int64R, (*Decoder).fastpathDecMapUint8Int64R)
  183. fn(map[uint8]float32(nil), (*Encoder).fastpathEncMapUint8Float32R, (*Decoder).fastpathDecMapUint8Float32R)
  184. fn(map[uint8]float64(nil), (*Encoder).fastpathEncMapUint8Float64R, (*Decoder).fastpathDecMapUint8Float64R)
  185. fn(map[uint8]bool(nil), (*Encoder).fastpathEncMapUint8BoolR, (*Decoder).fastpathDecMapUint8BoolR)
  186. fn(map[uint16]interface{}(nil), (*Encoder).fastpathEncMapUint16IntfR, (*Decoder).fastpathDecMapUint16IntfR)
  187. fn(map[uint16]string(nil), (*Encoder).fastpathEncMapUint16StringR, (*Decoder).fastpathDecMapUint16StringR)
  188. fn(map[uint16]uint(nil), (*Encoder).fastpathEncMapUint16UintR, (*Decoder).fastpathDecMapUint16UintR)
  189. fn(map[uint16]uint8(nil), (*Encoder).fastpathEncMapUint16Uint8R, (*Decoder).fastpathDecMapUint16Uint8R)
  190. fn(map[uint16]uint16(nil), (*Encoder).fastpathEncMapUint16Uint16R, (*Decoder).fastpathDecMapUint16Uint16R)
  191. fn(map[uint16]uint32(nil), (*Encoder).fastpathEncMapUint16Uint32R, (*Decoder).fastpathDecMapUint16Uint32R)
  192. fn(map[uint16]uint64(nil), (*Encoder).fastpathEncMapUint16Uint64R, (*Decoder).fastpathDecMapUint16Uint64R)
  193. fn(map[uint16]uintptr(nil), (*Encoder).fastpathEncMapUint16UintptrR, (*Decoder).fastpathDecMapUint16UintptrR)
  194. fn(map[uint16]int(nil), (*Encoder).fastpathEncMapUint16IntR, (*Decoder).fastpathDecMapUint16IntR)
  195. fn(map[uint16]int8(nil), (*Encoder).fastpathEncMapUint16Int8R, (*Decoder).fastpathDecMapUint16Int8R)
  196. fn(map[uint16]int16(nil), (*Encoder).fastpathEncMapUint16Int16R, (*Decoder).fastpathDecMapUint16Int16R)
  197. fn(map[uint16]int32(nil), (*Encoder).fastpathEncMapUint16Int32R, (*Decoder).fastpathDecMapUint16Int32R)
  198. fn(map[uint16]int64(nil), (*Encoder).fastpathEncMapUint16Int64R, (*Decoder).fastpathDecMapUint16Int64R)
  199. fn(map[uint16]float32(nil), (*Encoder).fastpathEncMapUint16Float32R, (*Decoder).fastpathDecMapUint16Float32R)
  200. fn(map[uint16]float64(nil), (*Encoder).fastpathEncMapUint16Float64R, (*Decoder).fastpathDecMapUint16Float64R)
  201. fn(map[uint16]bool(nil), (*Encoder).fastpathEncMapUint16BoolR, (*Decoder).fastpathDecMapUint16BoolR)
  202. fn(map[uint32]interface{}(nil), (*Encoder).fastpathEncMapUint32IntfR, (*Decoder).fastpathDecMapUint32IntfR)
  203. fn(map[uint32]string(nil), (*Encoder).fastpathEncMapUint32StringR, (*Decoder).fastpathDecMapUint32StringR)
  204. fn(map[uint32]uint(nil), (*Encoder).fastpathEncMapUint32UintR, (*Decoder).fastpathDecMapUint32UintR)
  205. fn(map[uint32]uint8(nil), (*Encoder).fastpathEncMapUint32Uint8R, (*Decoder).fastpathDecMapUint32Uint8R)
  206. fn(map[uint32]uint16(nil), (*Encoder).fastpathEncMapUint32Uint16R, (*Decoder).fastpathDecMapUint32Uint16R)
  207. fn(map[uint32]uint32(nil), (*Encoder).fastpathEncMapUint32Uint32R, (*Decoder).fastpathDecMapUint32Uint32R)
  208. fn(map[uint32]uint64(nil), (*Encoder).fastpathEncMapUint32Uint64R, (*Decoder).fastpathDecMapUint32Uint64R)
  209. fn(map[uint32]uintptr(nil), (*Encoder).fastpathEncMapUint32UintptrR, (*Decoder).fastpathDecMapUint32UintptrR)
  210. fn(map[uint32]int(nil), (*Encoder).fastpathEncMapUint32IntR, (*Decoder).fastpathDecMapUint32IntR)
  211. fn(map[uint32]int8(nil), (*Encoder).fastpathEncMapUint32Int8R, (*Decoder).fastpathDecMapUint32Int8R)
  212. fn(map[uint32]int16(nil), (*Encoder).fastpathEncMapUint32Int16R, (*Decoder).fastpathDecMapUint32Int16R)
  213. fn(map[uint32]int32(nil), (*Encoder).fastpathEncMapUint32Int32R, (*Decoder).fastpathDecMapUint32Int32R)
  214. fn(map[uint32]int64(nil), (*Encoder).fastpathEncMapUint32Int64R, (*Decoder).fastpathDecMapUint32Int64R)
  215. fn(map[uint32]float32(nil), (*Encoder).fastpathEncMapUint32Float32R, (*Decoder).fastpathDecMapUint32Float32R)
  216. fn(map[uint32]float64(nil), (*Encoder).fastpathEncMapUint32Float64R, (*Decoder).fastpathDecMapUint32Float64R)
  217. fn(map[uint32]bool(nil), (*Encoder).fastpathEncMapUint32BoolR, (*Decoder).fastpathDecMapUint32BoolR)
  218. fn(map[uint64]interface{}(nil), (*Encoder).fastpathEncMapUint64IntfR, (*Decoder).fastpathDecMapUint64IntfR)
  219. fn(map[uint64]string(nil), (*Encoder).fastpathEncMapUint64StringR, (*Decoder).fastpathDecMapUint64StringR)
  220. fn(map[uint64]uint(nil), (*Encoder).fastpathEncMapUint64UintR, (*Decoder).fastpathDecMapUint64UintR)
  221. fn(map[uint64]uint8(nil), (*Encoder).fastpathEncMapUint64Uint8R, (*Decoder).fastpathDecMapUint64Uint8R)
  222. fn(map[uint64]uint16(nil), (*Encoder).fastpathEncMapUint64Uint16R, (*Decoder).fastpathDecMapUint64Uint16R)
  223. fn(map[uint64]uint32(nil), (*Encoder).fastpathEncMapUint64Uint32R, (*Decoder).fastpathDecMapUint64Uint32R)
  224. fn(map[uint64]uint64(nil), (*Encoder).fastpathEncMapUint64Uint64R, (*Decoder).fastpathDecMapUint64Uint64R)
  225. fn(map[uint64]uintptr(nil), (*Encoder).fastpathEncMapUint64UintptrR, (*Decoder).fastpathDecMapUint64UintptrR)
  226. fn(map[uint64]int(nil), (*Encoder).fastpathEncMapUint64IntR, (*Decoder).fastpathDecMapUint64IntR)
  227. fn(map[uint64]int8(nil), (*Encoder).fastpathEncMapUint64Int8R, (*Decoder).fastpathDecMapUint64Int8R)
  228. fn(map[uint64]int16(nil), (*Encoder).fastpathEncMapUint64Int16R, (*Decoder).fastpathDecMapUint64Int16R)
  229. fn(map[uint64]int32(nil), (*Encoder).fastpathEncMapUint64Int32R, (*Decoder).fastpathDecMapUint64Int32R)
  230. fn(map[uint64]int64(nil), (*Encoder).fastpathEncMapUint64Int64R, (*Decoder).fastpathDecMapUint64Int64R)
  231. fn(map[uint64]float32(nil), (*Encoder).fastpathEncMapUint64Float32R, (*Decoder).fastpathDecMapUint64Float32R)
  232. fn(map[uint64]float64(nil), (*Encoder).fastpathEncMapUint64Float64R, (*Decoder).fastpathDecMapUint64Float64R)
  233. fn(map[uint64]bool(nil), (*Encoder).fastpathEncMapUint64BoolR, (*Decoder).fastpathDecMapUint64BoolR)
  234. fn(map[uintptr]interface{}(nil), (*Encoder).fastpathEncMapUintptrIntfR, (*Decoder).fastpathDecMapUintptrIntfR)
  235. fn(map[uintptr]string(nil), (*Encoder).fastpathEncMapUintptrStringR, (*Decoder).fastpathDecMapUintptrStringR)
  236. fn(map[uintptr]uint(nil), (*Encoder).fastpathEncMapUintptrUintR, (*Decoder).fastpathDecMapUintptrUintR)
  237. fn(map[uintptr]uint8(nil), (*Encoder).fastpathEncMapUintptrUint8R, (*Decoder).fastpathDecMapUintptrUint8R)
  238. fn(map[uintptr]uint16(nil), (*Encoder).fastpathEncMapUintptrUint16R, (*Decoder).fastpathDecMapUintptrUint16R)
  239. fn(map[uintptr]uint32(nil), (*Encoder).fastpathEncMapUintptrUint32R, (*Decoder).fastpathDecMapUintptrUint32R)
  240. fn(map[uintptr]uint64(nil), (*Encoder).fastpathEncMapUintptrUint64R, (*Decoder).fastpathDecMapUintptrUint64R)
  241. fn(map[uintptr]uintptr(nil), (*Encoder).fastpathEncMapUintptrUintptrR, (*Decoder).fastpathDecMapUintptrUintptrR)
  242. fn(map[uintptr]int(nil), (*Encoder).fastpathEncMapUintptrIntR, (*Decoder).fastpathDecMapUintptrIntR)
  243. fn(map[uintptr]int8(nil), (*Encoder).fastpathEncMapUintptrInt8R, (*Decoder).fastpathDecMapUintptrInt8R)
  244. fn(map[uintptr]int16(nil), (*Encoder).fastpathEncMapUintptrInt16R, (*Decoder).fastpathDecMapUintptrInt16R)
  245. fn(map[uintptr]int32(nil), (*Encoder).fastpathEncMapUintptrInt32R, (*Decoder).fastpathDecMapUintptrInt32R)
  246. fn(map[uintptr]int64(nil), (*Encoder).fastpathEncMapUintptrInt64R, (*Decoder).fastpathDecMapUintptrInt64R)
  247. fn(map[uintptr]float32(nil), (*Encoder).fastpathEncMapUintptrFloat32R, (*Decoder).fastpathDecMapUintptrFloat32R)
  248. fn(map[uintptr]float64(nil), (*Encoder).fastpathEncMapUintptrFloat64R, (*Decoder).fastpathDecMapUintptrFloat64R)
  249. fn(map[uintptr]bool(nil), (*Encoder).fastpathEncMapUintptrBoolR, (*Decoder).fastpathDecMapUintptrBoolR)
  250. fn(map[int]interface{}(nil), (*Encoder).fastpathEncMapIntIntfR, (*Decoder).fastpathDecMapIntIntfR)
  251. fn(map[int]string(nil), (*Encoder).fastpathEncMapIntStringR, (*Decoder).fastpathDecMapIntStringR)
  252. fn(map[int]uint(nil), (*Encoder).fastpathEncMapIntUintR, (*Decoder).fastpathDecMapIntUintR)
  253. fn(map[int]uint8(nil), (*Encoder).fastpathEncMapIntUint8R, (*Decoder).fastpathDecMapIntUint8R)
  254. fn(map[int]uint16(nil), (*Encoder).fastpathEncMapIntUint16R, (*Decoder).fastpathDecMapIntUint16R)
  255. fn(map[int]uint32(nil), (*Encoder).fastpathEncMapIntUint32R, (*Decoder).fastpathDecMapIntUint32R)
  256. fn(map[int]uint64(nil), (*Encoder).fastpathEncMapIntUint64R, (*Decoder).fastpathDecMapIntUint64R)
  257. fn(map[int]uintptr(nil), (*Encoder).fastpathEncMapIntUintptrR, (*Decoder).fastpathDecMapIntUintptrR)
  258. fn(map[int]int(nil), (*Encoder).fastpathEncMapIntIntR, (*Decoder).fastpathDecMapIntIntR)
  259. fn(map[int]int8(nil), (*Encoder).fastpathEncMapIntInt8R, (*Decoder).fastpathDecMapIntInt8R)
  260. fn(map[int]int16(nil), (*Encoder).fastpathEncMapIntInt16R, (*Decoder).fastpathDecMapIntInt16R)
  261. fn(map[int]int32(nil), (*Encoder).fastpathEncMapIntInt32R, (*Decoder).fastpathDecMapIntInt32R)
  262. fn(map[int]int64(nil), (*Encoder).fastpathEncMapIntInt64R, (*Decoder).fastpathDecMapIntInt64R)
  263. fn(map[int]float32(nil), (*Encoder).fastpathEncMapIntFloat32R, (*Decoder).fastpathDecMapIntFloat32R)
  264. fn(map[int]float64(nil), (*Encoder).fastpathEncMapIntFloat64R, (*Decoder).fastpathDecMapIntFloat64R)
  265. fn(map[int]bool(nil), (*Encoder).fastpathEncMapIntBoolR, (*Decoder).fastpathDecMapIntBoolR)
  266. fn(map[int8]interface{}(nil), (*Encoder).fastpathEncMapInt8IntfR, (*Decoder).fastpathDecMapInt8IntfR)
  267. fn(map[int8]string(nil), (*Encoder).fastpathEncMapInt8StringR, (*Decoder).fastpathDecMapInt8StringR)
  268. fn(map[int8]uint(nil), (*Encoder).fastpathEncMapInt8UintR, (*Decoder).fastpathDecMapInt8UintR)
  269. fn(map[int8]uint8(nil), (*Encoder).fastpathEncMapInt8Uint8R, (*Decoder).fastpathDecMapInt8Uint8R)
  270. fn(map[int8]uint16(nil), (*Encoder).fastpathEncMapInt8Uint16R, (*Decoder).fastpathDecMapInt8Uint16R)
  271. fn(map[int8]uint32(nil), (*Encoder).fastpathEncMapInt8Uint32R, (*Decoder).fastpathDecMapInt8Uint32R)
  272. fn(map[int8]uint64(nil), (*Encoder).fastpathEncMapInt8Uint64R, (*Decoder).fastpathDecMapInt8Uint64R)
  273. fn(map[int8]uintptr(nil), (*Encoder).fastpathEncMapInt8UintptrR, (*Decoder).fastpathDecMapInt8UintptrR)
  274. fn(map[int8]int(nil), (*Encoder).fastpathEncMapInt8IntR, (*Decoder).fastpathDecMapInt8IntR)
  275. fn(map[int8]int8(nil), (*Encoder).fastpathEncMapInt8Int8R, (*Decoder).fastpathDecMapInt8Int8R)
  276. fn(map[int8]int16(nil), (*Encoder).fastpathEncMapInt8Int16R, (*Decoder).fastpathDecMapInt8Int16R)
  277. fn(map[int8]int32(nil), (*Encoder).fastpathEncMapInt8Int32R, (*Decoder).fastpathDecMapInt8Int32R)
  278. fn(map[int8]int64(nil), (*Encoder).fastpathEncMapInt8Int64R, (*Decoder).fastpathDecMapInt8Int64R)
  279. fn(map[int8]float32(nil), (*Encoder).fastpathEncMapInt8Float32R, (*Decoder).fastpathDecMapInt8Float32R)
  280. fn(map[int8]float64(nil), (*Encoder).fastpathEncMapInt8Float64R, (*Decoder).fastpathDecMapInt8Float64R)
  281. fn(map[int8]bool(nil), (*Encoder).fastpathEncMapInt8BoolR, (*Decoder).fastpathDecMapInt8BoolR)
  282. fn(map[int16]interface{}(nil), (*Encoder).fastpathEncMapInt16IntfR, (*Decoder).fastpathDecMapInt16IntfR)
  283. fn(map[int16]string(nil), (*Encoder).fastpathEncMapInt16StringR, (*Decoder).fastpathDecMapInt16StringR)
  284. fn(map[int16]uint(nil), (*Encoder).fastpathEncMapInt16UintR, (*Decoder).fastpathDecMapInt16UintR)
  285. fn(map[int16]uint8(nil), (*Encoder).fastpathEncMapInt16Uint8R, (*Decoder).fastpathDecMapInt16Uint8R)
  286. fn(map[int16]uint16(nil), (*Encoder).fastpathEncMapInt16Uint16R, (*Decoder).fastpathDecMapInt16Uint16R)
  287. fn(map[int16]uint32(nil), (*Encoder).fastpathEncMapInt16Uint32R, (*Decoder).fastpathDecMapInt16Uint32R)
  288. fn(map[int16]uint64(nil), (*Encoder).fastpathEncMapInt16Uint64R, (*Decoder).fastpathDecMapInt16Uint64R)
  289. fn(map[int16]uintptr(nil), (*Encoder).fastpathEncMapInt16UintptrR, (*Decoder).fastpathDecMapInt16UintptrR)
  290. fn(map[int16]int(nil), (*Encoder).fastpathEncMapInt16IntR, (*Decoder).fastpathDecMapInt16IntR)
  291. fn(map[int16]int8(nil), (*Encoder).fastpathEncMapInt16Int8R, (*Decoder).fastpathDecMapInt16Int8R)
  292. fn(map[int16]int16(nil), (*Encoder).fastpathEncMapInt16Int16R, (*Decoder).fastpathDecMapInt16Int16R)
  293. fn(map[int16]int32(nil), (*Encoder).fastpathEncMapInt16Int32R, (*Decoder).fastpathDecMapInt16Int32R)
  294. fn(map[int16]int64(nil), (*Encoder).fastpathEncMapInt16Int64R, (*Decoder).fastpathDecMapInt16Int64R)
  295. fn(map[int16]float32(nil), (*Encoder).fastpathEncMapInt16Float32R, (*Decoder).fastpathDecMapInt16Float32R)
  296. fn(map[int16]float64(nil), (*Encoder).fastpathEncMapInt16Float64R, (*Decoder).fastpathDecMapInt16Float64R)
  297. fn(map[int16]bool(nil), (*Encoder).fastpathEncMapInt16BoolR, (*Decoder).fastpathDecMapInt16BoolR)
  298. fn(map[int32]interface{}(nil), (*Encoder).fastpathEncMapInt32IntfR, (*Decoder).fastpathDecMapInt32IntfR)
  299. fn(map[int32]string(nil), (*Encoder).fastpathEncMapInt32StringR, (*Decoder).fastpathDecMapInt32StringR)
  300. fn(map[int32]uint(nil), (*Encoder).fastpathEncMapInt32UintR, (*Decoder).fastpathDecMapInt32UintR)
  301. fn(map[int32]uint8(nil), (*Encoder).fastpathEncMapInt32Uint8R, (*Decoder).fastpathDecMapInt32Uint8R)
  302. fn(map[int32]uint16(nil), (*Encoder).fastpathEncMapInt32Uint16R, (*Decoder).fastpathDecMapInt32Uint16R)
  303. fn(map[int32]uint32(nil), (*Encoder).fastpathEncMapInt32Uint32R, (*Decoder).fastpathDecMapInt32Uint32R)
  304. fn(map[int32]uint64(nil), (*Encoder).fastpathEncMapInt32Uint64R, (*Decoder).fastpathDecMapInt32Uint64R)
  305. fn(map[int32]uintptr(nil), (*Encoder).fastpathEncMapInt32UintptrR, (*Decoder).fastpathDecMapInt32UintptrR)
  306. fn(map[int32]int(nil), (*Encoder).fastpathEncMapInt32IntR, (*Decoder).fastpathDecMapInt32IntR)
  307. fn(map[int32]int8(nil), (*Encoder).fastpathEncMapInt32Int8R, (*Decoder).fastpathDecMapInt32Int8R)
  308. fn(map[int32]int16(nil), (*Encoder).fastpathEncMapInt32Int16R, (*Decoder).fastpathDecMapInt32Int16R)
  309. fn(map[int32]int32(nil), (*Encoder).fastpathEncMapInt32Int32R, (*Decoder).fastpathDecMapInt32Int32R)
  310. fn(map[int32]int64(nil), (*Encoder).fastpathEncMapInt32Int64R, (*Decoder).fastpathDecMapInt32Int64R)
  311. fn(map[int32]float32(nil), (*Encoder).fastpathEncMapInt32Float32R, (*Decoder).fastpathDecMapInt32Float32R)
  312. fn(map[int32]float64(nil), (*Encoder).fastpathEncMapInt32Float64R, (*Decoder).fastpathDecMapInt32Float64R)
  313. fn(map[int32]bool(nil), (*Encoder).fastpathEncMapInt32BoolR, (*Decoder).fastpathDecMapInt32BoolR)
  314. fn(map[int64]interface{}(nil), (*Encoder).fastpathEncMapInt64IntfR, (*Decoder).fastpathDecMapInt64IntfR)
  315. fn(map[int64]string(nil), (*Encoder).fastpathEncMapInt64StringR, (*Decoder).fastpathDecMapInt64StringR)
  316. fn(map[int64]uint(nil), (*Encoder).fastpathEncMapInt64UintR, (*Decoder).fastpathDecMapInt64UintR)
  317. fn(map[int64]uint8(nil), (*Encoder).fastpathEncMapInt64Uint8R, (*Decoder).fastpathDecMapInt64Uint8R)
  318. fn(map[int64]uint16(nil), (*Encoder).fastpathEncMapInt64Uint16R, (*Decoder).fastpathDecMapInt64Uint16R)
  319. fn(map[int64]uint32(nil), (*Encoder).fastpathEncMapInt64Uint32R, (*Decoder).fastpathDecMapInt64Uint32R)
  320. fn(map[int64]uint64(nil), (*Encoder).fastpathEncMapInt64Uint64R, (*Decoder).fastpathDecMapInt64Uint64R)
  321. fn(map[int64]uintptr(nil), (*Encoder).fastpathEncMapInt64UintptrR, (*Decoder).fastpathDecMapInt64UintptrR)
  322. fn(map[int64]int(nil), (*Encoder).fastpathEncMapInt64IntR, (*Decoder).fastpathDecMapInt64IntR)
  323. fn(map[int64]int8(nil), (*Encoder).fastpathEncMapInt64Int8R, (*Decoder).fastpathDecMapInt64Int8R)
  324. fn(map[int64]int16(nil), (*Encoder).fastpathEncMapInt64Int16R, (*Decoder).fastpathDecMapInt64Int16R)
  325. fn(map[int64]int32(nil), (*Encoder).fastpathEncMapInt64Int32R, (*Decoder).fastpathDecMapInt64Int32R)
  326. fn(map[int64]int64(nil), (*Encoder).fastpathEncMapInt64Int64R, (*Decoder).fastpathDecMapInt64Int64R)
  327. fn(map[int64]float32(nil), (*Encoder).fastpathEncMapInt64Float32R, (*Decoder).fastpathDecMapInt64Float32R)
  328. fn(map[int64]float64(nil), (*Encoder).fastpathEncMapInt64Float64R, (*Decoder).fastpathDecMapInt64Float64R)
  329. fn(map[int64]bool(nil), (*Encoder).fastpathEncMapInt64BoolR, (*Decoder).fastpathDecMapInt64BoolR)
  330. fn(map[bool]interface{}(nil), (*Encoder).fastpathEncMapBoolIntfR, (*Decoder).fastpathDecMapBoolIntfR)
  331. fn(map[bool]string(nil), (*Encoder).fastpathEncMapBoolStringR, (*Decoder).fastpathDecMapBoolStringR)
  332. fn(map[bool]uint(nil), (*Encoder).fastpathEncMapBoolUintR, (*Decoder).fastpathDecMapBoolUintR)
  333. fn(map[bool]uint8(nil), (*Encoder).fastpathEncMapBoolUint8R, (*Decoder).fastpathDecMapBoolUint8R)
  334. fn(map[bool]uint16(nil), (*Encoder).fastpathEncMapBoolUint16R, (*Decoder).fastpathDecMapBoolUint16R)
  335. fn(map[bool]uint32(nil), (*Encoder).fastpathEncMapBoolUint32R, (*Decoder).fastpathDecMapBoolUint32R)
  336. fn(map[bool]uint64(nil), (*Encoder).fastpathEncMapBoolUint64R, (*Decoder).fastpathDecMapBoolUint64R)
  337. fn(map[bool]uintptr(nil), (*Encoder).fastpathEncMapBoolUintptrR, (*Decoder).fastpathDecMapBoolUintptrR)
  338. fn(map[bool]int(nil), (*Encoder).fastpathEncMapBoolIntR, (*Decoder).fastpathDecMapBoolIntR)
  339. fn(map[bool]int8(nil), (*Encoder).fastpathEncMapBoolInt8R, (*Decoder).fastpathDecMapBoolInt8R)
  340. fn(map[bool]int16(nil), (*Encoder).fastpathEncMapBoolInt16R, (*Decoder).fastpathDecMapBoolInt16R)
  341. fn(map[bool]int32(nil), (*Encoder).fastpathEncMapBoolInt32R, (*Decoder).fastpathDecMapBoolInt32R)
  342. fn(map[bool]int64(nil), (*Encoder).fastpathEncMapBoolInt64R, (*Decoder).fastpathDecMapBoolInt64R)
  343. fn(map[bool]float32(nil), (*Encoder).fastpathEncMapBoolFloat32R, (*Decoder).fastpathDecMapBoolFloat32R)
  344. fn(map[bool]float64(nil), (*Encoder).fastpathEncMapBoolFloat64R, (*Decoder).fastpathDecMapBoolFloat64R)
  345. fn(map[bool]bool(nil), (*Encoder).fastpathEncMapBoolBoolR, (*Decoder).fastpathDecMapBoolBoolR)
  346. sort.Sort(fastpathAslice(fastpathAV[:]))
  347. }
  348. // -- encode
  349. // -- -- fast path type switch
  350. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  351. switch v := iv.(type) {
  352. case []interface{}:
  353. fastpathTV.EncSliceIntfV(v, e)
  354. case *[]interface{}:
  355. fastpathTV.EncSliceIntfV(*v, e)
  356. case map[interface{}]interface{}:
  357. fastpathTV.EncMapIntfIntfV(v, e)
  358. case *map[interface{}]interface{}:
  359. fastpathTV.EncMapIntfIntfV(*v, e)
  360. case map[interface{}]string:
  361. fastpathTV.EncMapIntfStringV(v, e)
  362. case *map[interface{}]string:
  363. fastpathTV.EncMapIntfStringV(*v, e)
  364. case map[interface{}]uint:
  365. fastpathTV.EncMapIntfUintV(v, e)
  366. case *map[interface{}]uint:
  367. fastpathTV.EncMapIntfUintV(*v, e)
  368. case map[interface{}]uint8:
  369. fastpathTV.EncMapIntfUint8V(v, e)
  370. case *map[interface{}]uint8:
  371. fastpathTV.EncMapIntfUint8V(*v, e)
  372. case map[interface{}]uint16:
  373. fastpathTV.EncMapIntfUint16V(v, e)
  374. case *map[interface{}]uint16:
  375. fastpathTV.EncMapIntfUint16V(*v, e)
  376. case map[interface{}]uint32:
  377. fastpathTV.EncMapIntfUint32V(v, e)
  378. case *map[interface{}]uint32:
  379. fastpathTV.EncMapIntfUint32V(*v, e)
  380. case map[interface{}]uint64:
  381. fastpathTV.EncMapIntfUint64V(v, e)
  382. case *map[interface{}]uint64:
  383. fastpathTV.EncMapIntfUint64V(*v, e)
  384. case map[interface{}]uintptr:
  385. fastpathTV.EncMapIntfUintptrV(v, e)
  386. case *map[interface{}]uintptr:
  387. fastpathTV.EncMapIntfUintptrV(*v, e)
  388. case map[interface{}]int:
  389. fastpathTV.EncMapIntfIntV(v, e)
  390. case *map[interface{}]int:
  391. fastpathTV.EncMapIntfIntV(*v, e)
  392. case map[interface{}]int8:
  393. fastpathTV.EncMapIntfInt8V(v, e)
  394. case *map[interface{}]int8:
  395. fastpathTV.EncMapIntfInt8V(*v, e)
  396. case map[interface{}]int16:
  397. fastpathTV.EncMapIntfInt16V(v, e)
  398. case *map[interface{}]int16:
  399. fastpathTV.EncMapIntfInt16V(*v, e)
  400. case map[interface{}]int32:
  401. fastpathTV.EncMapIntfInt32V(v, e)
  402. case *map[interface{}]int32:
  403. fastpathTV.EncMapIntfInt32V(*v, e)
  404. case map[interface{}]int64:
  405. fastpathTV.EncMapIntfInt64V(v, e)
  406. case *map[interface{}]int64:
  407. fastpathTV.EncMapIntfInt64V(*v, e)
  408. case map[interface{}]float32:
  409. fastpathTV.EncMapIntfFloat32V(v, e)
  410. case *map[interface{}]float32:
  411. fastpathTV.EncMapIntfFloat32V(*v, e)
  412. case map[interface{}]float64:
  413. fastpathTV.EncMapIntfFloat64V(v, e)
  414. case *map[interface{}]float64:
  415. fastpathTV.EncMapIntfFloat64V(*v, e)
  416. case map[interface{}]bool:
  417. fastpathTV.EncMapIntfBoolV(v, e)
  418. case *map[interface{}]bool:
  419. fastpathTV.EncMapIntfBoolV(*v, e)
  420. case []string:
  421. fastpathTV.EncSliceStringV(v, e)
  422. case *[]string:
  423. fastpathTV.EncSliceStringV(*v, e)
  424. case map[string]interface{}:
  425. fastpathTV.EncMapStringIntfV(v, e)
  426. case *map[string]interface{}:
  427. fastpathTV.EncMapStringIntfV(*v, e)
  428. case map[string]string:
  429. fastpathTV.EncMapStringStringV(v, e)
  430. case *map[string]string:
  431. fastpathTV.EncMapStringStringV(*v, e)
  432. case map[string]uint:
  433. fastpathTV.EncMapStringUintV(v, e)
  434. case *map[string]uint:
  435. fastpathTV.EncMapStringUintV(*v, e)
  436. case map[string]uint8:
  437. fastpathTV.EncMapStringUint8V(v, e)
  438. case *map[string]uint8:
  439. fastpathTV.EncMapStringUint8V(*v, e)
  440. case map[string]uint16:
  441. fastpathTV.EncMapStringUint16V(v, e)
  442. case *map[string]uint16:
  443. fastpathTV.EncMapStringUint16V(*v, e)
  444. case map[string]uint32:
  445. fastpathTV.EncMapStringUint32V(v, e)
  446. case *map[string]uint32:
  447. fastpathTV.EncMapStringUint32V(*v, e)
  448. case map[string]uint64:
  449. fastpathTV.EncMapStringUint64V(v, e)
  450. case *map[string]uint64:
  451. fastpathTV.EncMapStringUint64V(*v, e)
  452. case map[string]uintptr:
  453. fastpathTV.EncMapStringUintptrV(v, e)
  454. case *map[string]uintptr:
  455. fastpathTV.EncMapStringUintptrV(*v, e)
  456. case map[string]int:
  457. fastpathTV.EncMapStringIntV(v, e)
  458. case *map[string]int:
  459. fastpathTV.EncMapStringIntV(*v, e)
  460. case map[string]int8:
  461. fastpathTV.EncMapStringInt8V(v, e)
  462. case *map[string]int8:
  463. fastpathTV.EncMapStringInt8V(*v, e)
  464. case map[string]int16:
  465. fastpathTV.EncMapStringInt16V(v, e)
  466. case *map[string]int16:
  467. fastpathTV.EncMapStringInt16V(*v, e)
  468. case map[string]int32:
  469. fastpathTV.EncMapStringInt32V(v, e)
  470. case *map[string]int32:
  471. fastpathTV.EncMapStringInt32V(*v, e)
  472. case map[string]int64:
  473. fastpathTV.EncMapStringInt64V(v, e)
  474. case *map[string]int64:
  475. fastpathTV.EncMapStringInt64V(*v, e)
  476. case map[string]float32:
  477. fastpathTV.EncMapStringFloat32V(v, e)
  478. case *map[string]float32:
  479. fastpathTV.EncMapStringFloat32V(*v, e)
  480. case map[string]float64:
  481. fastpathTV.EncMapStringFloat64V(v, e)
  482. case *map[string]float64:
  483. fastpathTV.EncMapStringFloat64V(*v, e)
  484. case map[string]bool:
  485. fastpathTV.EncMapStringBoolV(v, e)
  486. case *map[string]bool:
  487. fastpathTV.EncMapStringBoolV(*v, e)
  488. case []float32:
  489. fastpathTV.EncSliceFloat32V(v, e)
  490. case *[]float32:
  491. fastpathTV.EncSliceFloat32V(*v, e)
  492. case map[float32]interface{}:
  493. fastpathTV.EncMapFloat32IntfV(v, e)
  494. case *map[float32]interface{}:
  495. fastpathTV.EncMapFloat32IntfV(*v, e)
  496. case map[float32]string:
  497. fastpathTV.EncMapFloat32StringV(v, e)
  498. case *map[float32]string:
  499. fastpathTV.EncMapFloat32StringV(*v, e)
  500. case map[float32]uint:
  501. fastpathTV.EncMapFloat32UintV(v, e)
  502. case *map[float32]uint:
  503. fastpathTV.EncMapFloat32UintV(*v, e)
  504. case map[float32]uint8:
  505. fastpathTV.EncMapFloat32Uint8V(v, e)
  506. case *map[float32]uint8:
  507. fastpathTV.EncMapFloat32Uint8V(*v, e)
  508. case map[float32]uint16:
  509. fastpathTV.EncMapFloat32Uint16V(v, e)
  510. case *map[float32]uint16:
  511. fastpathTV.EncMapFloat32Uint16V(*v, e)
  512. case map[float32]uint32:
  513. fastpathTV.EncMapFloat32Uint32V(v, e)
  514. case *map[float32]uint32:
  515. fastpathTV.EncMapFloat32Uint32V(*v, e)
  516. case map[float32]uint64:
  517. fastpathTV.EncMapFloat32Uint64V(v, e)
  518. case *map[float32]uint64:
  519. fastpathTV.EncMapFloat32Uint64V(*v, e)
  520. case map[float32]uintptr:
  521. fastpathTV.EncMapFloat32UintptrV(v, e)
  522. case *map[float32]uintptr:
  523. fastpathTV.EncMapFloat32UintptrV(*v, e)
  524. case map[float32]int:
  525. fastpathTV.EncMapFloat32IntV(v, e)
  526. case *map[float32]int:
  527. fastpathTV.EncMapFloat32IntV(*v, e)
  528. case map[float32]int8:
  529. fastpathTV.EncMapFloat32Int8V(v, e)
  530. case *map[float32]int8:
  531. fastpathTV.EncMapFloat32Int8V(*v, e)
  532. case map[float32]int16:
  533. fastpathTV.EncMapFloat32Int16V(v, e)
  534. case *map[float32]int16:
  535. fastpathTV.EncMapFloat32Int16V(*v, e)
  536. case map[float32]int32:
  537. fastpathTV.EncMapFloat32Int32V(v, e)
  538. case *map[float32]int32:
  539. fastpathTV.EncMapFloat32Int32V(*v, e)
  540. case map[float32]int64:
  541. fastpathTV.EncMapFloat32Int64V(v, e)
  542. case *map[float32]int64:
  543. fastpathTV.EncMapFloat32Int64V(*v, e)
  544. case map[float32]float32:
  545. fastpathTV.EncMapFloat32Float32V(v, e)
  546. case *map[float32]float32:
  547. fastpathTV.EncMapFloat32Float32V(*v, e)
  548. case map[float32]float64:
  549. fastpathTV.EncMapFloat32Float64V(v, e)
  550. case *map[float32]float64:
  551. fastpathTV.EncMapFloat32Float64V(*v, e)
  552. case map[float32]bool:
  553. fastpathTV.EncMapFloat32BoolV(v, e)
  554. case *map[float32]bool:
  555. fastpathTV.EncMapFloat32BoolV(*v, e)
  556. case []float64:
  557. fastpathTV.EncSliceFloat64V(v, e)
  558. case *[]float64:
  559. fastpathTV.EncSliceFloat64V(*v, e)
  560. case map[float64]interface{}:
  561. fastpathTV.EncMapFloat64IntfV(v, e)
  562. case *map[float64]interface{}:
  563. fastpathTV.EncMapFloat64IntfV(*v, e)
  564. case map[float64]string:
  565. fastpathTV.EncMapFloat64StringV(v, e)
  566. case *map[float64]string:
  567. fastpathTV.EncMapFloat64StringV(*v, e)
  568. case map[float64]uint:
  569. fastpathTV.EncMapFloat64UintV(v, e)
  570. case *map[float64]uint:
  571. fastpathTV.EncMapFloat64UintV(*v, e)
  572. case map[float64]uint8:
  573. fastpathTV.EncMapFloat64Uint8V(v, e)
  574. case *map[float64]uint8:
  575. fastpathTV.EncMapFloat64Uint8V(*v, e)
  576. case map[float64]uint16:
  577. fastpathTV.EncMapFloat64Uint16V(v, e)
  578. case *map[float64]uint16:
  579. fastpathTV.EncMapFloat64Uint16V(*v, e)
  580. case map[float64]uint32:
  581. fastpathTV.EncMapFloat64Uint32V(v, e)
  582. case *map[float64]uint32:
  583. fastpathTV.EncMapFloat64Uint32V(*v, e)
  584. case map[float64]uint64:
  585. fastpathTV.EncMapFloat64Uint64V(v, e)
  586. case *map[float64]uint64:
  587. fastpathTV.EncMapFloat64Uint64V(*v, e)
  588. case map[float64]uintptr:
  589. fastpathTV.EncMapFloat64UintptrV(v, e)
  590. case *map[float64]uintptr:
  591. fastpathTV.EncMapFloat64UintptrV(*v, e)
  592. case map[float64]int:
  593. fastpathTV.EncMapFloat64IntV(v, e)
  594. case *map[float64]int:
  595. fastpathTV.EncMapFloat64IntV(*v, e)
  596. case map[float64]int8:
  597. fastpathTV.EncMapFloat64Int8V(v, e)
  598. case *map[float64]int8:
  599. fastpathTV.EncMapFloat64Int8V(*v, e)
  600. case map[float64]int16:
  601. fastpathTV.EncMapFloat64Int16V(v, e)
  602. case *map[float64]int16:
  603. fastpathTV.EncMapFloat64Int16V(*v, e)
  604. case map[float64]int32:
  605. fastpathTV.EncMapFloat64Int32V(v, e)
  606. case *map[float64]int32:
  607. fastpathTV.EncMapFloat64Int32V(*v, e)
  608. case map[float64]int64:
  609. fastpathTV.EncMapFloat64Int64V(v, e)
  610. case *map[float64]int64:
  611. fastpathTV.EncMapFloat64Int64V(*v, e)
  612. case map[float64]float32:
  613. fastpathTV.EncMapFloat64Float32V(v, e)
  614. case *map[float64]float32:
  615. fastpathTV.EncMapFloat64Float32V(*v, e)
  616. case map[float64]float64:
  617. fastpathTV.EncMapFloat64Float64V(v, e)
  618. case *map[float64]float64:
  619. fastpathTV.EncMapFloat64Float64V(*v, e)
  620. case map[float64]bool:
  621. fastpathTV.EncMapFloat64BoolV(v, e)
  622. case *map[float64]bool:
  623. fastpathTV.EncMapFloat64BoolV(*v, e)
  624. case []uint:
  625. fastpathTV.EncSliceUintV(v, e)
  626. case *[]uint:
  627. fastpathTV.EncSliceUintV(*v, e)
  628. case map[uint]interface{}:
  629. fastpathTV.EncMapUintIntfV(v, e)
  630. case *map[uint]interface{}:
  631. fastpathTV.EncMapUintIntfV(*v, e)
  632. case map[uint]string:
  633. fastpathTV.EncMapUintStringV(v, e)
  634. case *map[uint]string:
  635. fastpathTV.EncMapUintStringV(*v, e)
  636. case map[uint]uint:
  637. fastpathTV.EncMapUintUintV(v, e)
  638. case *map[uint]uint:
  639. fastpathTV.EncMapUintUintV(*v, e)
  640. case map[uint]uint8:
  641. fastpathTV.EncMapUintUint8V(v, e)
  642. case *map[uint]uint8:
  643. fastpathTV.EncMapUintUint8V(*v, e)
  644. case map[uint]uint16:
  645. fastpathTV.EncMapUintUint16V(v, e)
  646. case *map[uint]uint16:
  647. fastpathTV.EncMapUintUint16V(*v, e)
  648. case map[uint]uint32:
  649. fastpathTV.EncMapUintUint32V(v, e)
  650. case *map[uint]uint32:
  651. fastpathTV.EncMapUintUint32V(*v, e)
  652. case map[uint]uint64:
  653. fastpathTV.EncMapUintUint64V(v, e)
  654. case *map[uint]uint64:
  655. fastpathTV.EncMapUintUint64V(*v, e)
  656. case map[uint]uintptr:
  657. fastpathTV.EncMapUintUintptrV(v, e)
  658. case *map[uint]uintptr:
  659. fastpathTV.EncMapUintUintptrV(*v, e)
  660. case map[uint]int:
  661. fastpathTV.EncMapUintIntV(v, e)
  662. case *map[uint]int:
  663. fastpathTV.EncMapUintIntV(*v, e)
  664. case map[uint]int8:
  665. fastpathTV.EncMapUintInt8V(v, e)
  666. case *map[uint]int8:
  667. fastpathTV.EncMapUintInt8V(*v, e)
  668. case map[uint]int16:
  669. fastpathTV.EncMapUintInt16V(v, e)
  670. case *map[uint]int16:
  671. fastpathTV.EncMapUintInt16V(*v, e)
  672. case map[uint]int32:
  673. fastpathTV.EncMapUintInt32V(v, e)
  674. case *map[uint]int32:
  675. fastpathTV.EncMapUintInt32V(*v, e)
  676. case map[uint]int64:
  677. fastpathTV.EncMapUintInt64V(v, e)
  678. case *map[uint]int64:
  679. fastpathTV.EncMapUintInt64V(*v, e)
  680. case map[uint]float32:
  681. fastpathTV.EncMapUintFloat32V(v, e)
  682. case *map[uint]float32:
  683. fastpathTV.EncMapUintFloat32V(*v, e)
  684. case map[uint]float64:
  685. fastpathTV.EncMapUintFloat64V(v, e)
  686. case *map[uint]float64:
  687. fastpathTV.EncMapUintFloat64V(*v, e)
  688. case map[uint]bool:
  689. fastpathTV.EncMapUintBoolV(v, e)
  690. case *map[uint]bool:
  691. fastpathTV.EncMapUintBoolV(*v, e)
  692. case map[uint8]interface{}:
  693. fastpathTV.EncMapUint8IntfV(v, e)
  694. case *map[uint8]interface{}:
  695. fastpathTV.EncMapUint8IntfV(*v, e)
  696. case map[uint8]string:
  697. fastpathTV.EncMapUint8StringV(v, e)
  698. case *map[uint8]string:
  699. fastpathTV.EncMapUint8StringV(*v, e)
  700. case map[uint8]uint:
  701. fastpathTV.EncMapUint8UintV(v, e)
  702. case *map[uint8]uint:
  703. fastpathTV.EncMapUint8UintV(*v, e)
  704. case map[uint8]uint8:
  705. fastpathTV.EncMapUint8Uint8V(v, e)
  706. case *map[uint8]uint8:
  707. fastpathTV.EncMapUint8Uint8V(*v, e)
  708. case map[uint8]uint16:
  709. fastpathTV.EncMapUint8Uint16V(v, e)
  710. case *map[uint8]uint16:
  711. fastpathTV.EncMapUint8Uint16V(*v, e)
  712. case map[uint8]uint32:
  713. fastpathTV.EncMapUint8Uint32V(v, e)
  714. case *map[uint8]uint32:
  715. fastpathTV.EncMapUint8Uint32V(*v, e)
  716. case map[uint8]uint64:
  717. fastpathTV.EncMapUint8Uint64V(v, e)
  718. case *map[uint8]uint64:
  719. fastpathTV.EncMapUint8Uint64V(*v, e)
  720. case map[uint8]uintptr:
  721. fastpathTV.EncMapUint8UintptrV(v, e)
  722. case *map[uint8]uintptr:
  723. fastpathTV.EncMapUint8UintptrV(*v, e)
  724. case map[uint8]int:
  725. fastpathTV.EncMapUint8IntV(v, e)
  726. case *map[uint8]int:
  727. fastpathTV.EncMapUint8IntV(*v, e)
  728. case map[uint8]int8:
  729. fastpathTV.EncMapUint8Int8V(v, e)
  730. case *map[uint8]int8:
  731. fastpathTV.EncMapUint8Int8V(*v, e)
  732. case map[uint8]int16:
  733. fastpathTV.EncMapUint8Int16V(v, e)
  734. case *map[uint8]int16:
  735. fastpathTV.EncMapUint8Int16V(*v, e)
  736. case map[uint8]int32:
  737. fastpathTV.EncMapUint8Int32V(v, e)
  738. case *map[uint8]int32:
  739. fastpathTV.EncMapUint8Int32V(*v, e)
  740. case map[uint8]int64:
  741. fastpathTV.EncMapUint8Int64V(v, e)
  742. case *map[uint8]int64:
  743. fastpathTV.EncMapUint8Int64V(*v, e)
  744. case map[uint8]float32:
  745. fastpathTV.EncMapUint8Float32V(v, e)
  746. case *map[uint8]float32:
  747. fastpathTV.EncMapUint8Float32V(*v, e)
  748. case map[uint8]float64:
  749. fastpathTV.EncMapUint8Float64V(v, e)
  750. case *map[uint8]float64:
  751. fastpathTV.EncMapUint8Float64V(*v, e)
  752. case map[uint8]bool:
  753. fastpathTV.EncMapUint8BoolV(v, e)
  754. case *map[uint8]bool:
  755. fastpathTV.EncMapUint8BoolV(*v, e)
  756. case []uint16:
  757. fastpathTV.EncSliceUint16V(v, e)
  758. case *[]uint16:
  759. fastpathTV.EncSliceUint16V(*v, e)
  760. case map[uint16]interface{}:
  761. fastpathTV.EncMapUint16IntfV(v, e)
  762. case *map[uint16]interface{}:
  763. fastpathTV.EncMapUint16IntfV(*v, e)
  764. case map[uint16]string:
  765. fastpathTV.EncMapUint16StringV(v, e)
  766. case *map[uint16]string:
  767. fastpathTV.EncMapUint16StringV(*v, e)
  768. case map[uint16]uint:
  769. fastpathTV.EncMapUint16UintV(v, e)
  770. case *map[uint16]uint:
  771. fastpathTV.EncMapUint16UintV(*v, e)
  772. case map[uint16]uint8:
  773. fastpathTV.EncMapUint16Uint8V(v, e)
  774. case *map[uint16]uint8:
  775. fastpathTV.EncMapUint16Uint8V(*v, e)
  776. case map[uint16]uint16:
  777. fastpathTV.EncMapUint16Uint16V(v, e)
  778. case *map[uint16]uint16:
  779. fastpathTV.EncMapUint16Uint16V(*v, e)
  780. case map[uint16]uint32:
  781. fastpathTV.EncMapUint16Uint32V(v, e)
  782. case *map[uint16]uint32:
  783. fastpathTV.EncMapUint16Uint32V(*v, e)
  784. case map[uint16]uint64:
  785. fastpathTV.EncMapUint16Uint64V(v, e)
  786. case *map[uint16]uint64:
  787. fastpathTV.EncMapUint16Uint64V(*v, e)
  788. case map[uint16]uintptr:
  789. fastpathTV.EncMapUint16UintptrV(v, e)
  790. case *map[uint16]uintptr:
  791. fastpathTV.EncMapUint16UintptrV(*v, e)
  792. case map[uint16]int:
  793. fastpathTV.EncMapUint16IntV(v, e)
  794. case *map[uint16]int:
  795. fastpathTV.EncMapUint16IntV(*v, e)
  796. case map[uint16]int8:
  797. fastpathTV.EncMapUint16Int8V(v, e)
  798. case *map[uint16]int8:
  799. fastpathTV.EncMapUint16Int8V(*v, e)
  800. case map[uint16]int16:
  801. fastpathTV.EncMapUint16Int16V(v, e)
  802. case *map[uint16]int16:
  803. fastpathTV.EncMapUint16Int16V(*v, e)
  804. case map[uint16]int32:
  805. fastpathTV.EncMapUint16Int32V(v, e)
  806. case *map[uint16]int32:
  807. fastpathTV.EncMapUint16Int32V(*v, e)
  808. case map[uint16]int64:
  809. fastpathTV.EncMapUint16Int64V(v, e)
  810. case *map[uint16]int64:
  811. fastpathTV.EncMapUint16Int64V(*v, e)
  812. case map[uint16]float32:
  813. fastpathTV.EncMapUint16Float32V(v, e)
  814. case *map[uint16]float32:
  815. fastpathTV.EncMapUint16Float32V(*v, e)
  816. case map[uint16]float64:
  817. fastpathTV.EncMapUint16Float64V(v, e)
  818. case *map[uint16]float64:
  819. fastpathTV.EncMapUint16Float64V(*v, e)
  820. case map[uint16]bool:
  821. fastpathTV.EncMapUint16BoolV(v, e)
  822. case *map[uint16]bool:
  823. fastpathTV.EncMapUint16BoolV(*v, e)
  824. case []uint32:
  825. fastpathTV.EncSliceUint32V(v, e)
  826. case *[]uint32:
  827. fastpathTV.EncSliceUint32V(*v, e)
  828. case map[uint32]interface{}:
  829. fastpathTV.EncMapUint32IntfV(v, e)
  830. case *map[uint32]interface{}:
  831. fastpathTV.EncMapUint32IntfV(*v, e)
  832. case map[uint32]string:
  833. fastpathTV.EncMapUint32StringV(v, e)
  834. case *map[uint32]string:
  835. fastpathTV.EncMapUint32StringV(*v, e)
  836. case map[uint32]uint:
  837. fastpathTV.EncMapUint32UintV(v, e)
  838. case *map[uint32]uint:
  839. fastpathTV.EncMapUint32UintV(*v, e)
  840. case map[uint32]uint8:
  841. fastpathTV.EncMapUint32Uint8V(v, e)
  842. case *map[uint32]uint8:
  843. fastpathTV.EncMapUint32Uint8V(*v, e)
  844. case map[uint32]uint16:
  845. fastpathTV.EncMapUint32Uint16V(v, e)
  846. case *map[uint32]uint16:
  847. fastpathTV.EncMapUint32Uint16V(*v, e)
  848. case map[uint32]uint32:
  849. fastpathTV.EncMapUint32Uint32V(v, e)
  850. case *map[uint32]uint32:
  851. fastpathTV.EncMapUint32Uint32V(*v, e)
  852. case map[uint32]uint64:
  853. fastpathTV.EncMapUint32Uint64V(v, e)
  854. case *map[uint32]uint64:
  855. fastpathTV.EncMapUint32Uint64V(*v, e)
  856. case map[uint32]uintptr:
  857. fastpathTV.EncMapUint32UintptrV(v, e)
  858. case *map[uint32]uintptr:
  859. fastpathTV.EncMapUint32UintptrV(*v, e)
  860. case map[uint32]int:
  861. fastpathTV.EncMapUint32IntV(v, e)
  862. case *map[uint32]int:
  863. fastpathTV.EncMapUint32IntV(*v, e)
  864. case map[uint32]int8:
  865. fastpathTV.EncMapUint32Int8V(v, e)
  866. case *map[uint32]int8:
  867. fastpathTV.EncMapUint32Int8V(*v, e)
  868. case map[uint32]int16:
  869. fastpathTV.EncMapUint32Int16V(v, e)
  870. case *map[uint32]int16:
  871. fastpathTV.EncMapUint32Int16V(*v, e)
  872. case map[uint32]int32:
  873. fastpathTV.EncMapUint32Int32V(v, e)
  874. case *map[uint32]int32:
  875. fastpathTV.EncMapUint32Int32V(*v, e)
  876. case map[uint32]int64:
  877. fastpathTV.EncMapUint32Int64V(v, e)
  878. case *map[uint32]int64:
  879. fastpathTV.EncMapUint32Int64V(*v, e)
  880. case map[uint32]float32:
  881. fastpathTV.EncMapUint32Float32V(v, e)
  882. case *map[uint32]float32:
  883. fastpathTV.EncMapUint32Float32V(*v, e)
  884. case map[uint32]float64:
  885. fastpathTV.EncMapUint32Float64V(v, e)
  886. case *map[uint32]float64:
  887. fastpathTV.EncMapUint32Float64V(*v, e)
  888. case map[uint32]bool:
  889. fastpathTV.EncMapUint32BoolV(v, e)
  890. case *map[uint32]bool:
  891. fastpathTV.EncMapUint32BoolV(*v, e)
  892. case []uint64:
  893. fastpathTV.EncSliceUint64V(v, e)
  894. case *[]uint64:
  895. fastpathTV.EncSliceUint64V(*v, e)
  896. case map[uint64]interface{}:
  897. fastpathTV.EncMapUint64IntfV(v, e)
  898. case *map[uint64]interface{}:
  899. fastpathTV.EncMapUint64IntfV(*v, e)
  900. case map[uint64]string:
  901. fastpathTV.EncMapUint64StringV(v, e)
  902. case *map[uint64]string:
  903. fastpathTV.EncMapUint64StringV(*v, e)
  904. case map[uint64]uint:
  905. fastpathTV.EncMapUint64UintV(v, e)
  906. case *map[uint64]uint:
  907. fastpathTV.EncMapUint64UintV(*v, e)
  908. case map[uint64]uint8:
  909. fastpathTV.EncMapUint64Uint8V(v, e)
  910. case *map[uint64]uint8:
  911. fastpathTV.EncMapUint64Uint8V(*v, e)
  912. case map[uint64]uint16:
  913. fastpathTV.EncMapUint64Uint16V(v, e)
  914. case *map[uint64]uint16:
  915. fastpathTV.EncMapUint64Uint16V(*v, e)
  916. case map[uint64]uint32:
  917. fastpathTV.EncMapUint64Uint32V(v, e)
  918. case *map[uint64]uint32:
  919. fastpathTV.EncMapUint64Uint32V(*v, e)
  920. case map[uint64]uint64:
  921. fastpathTV.EncMapUint64Uint64V(v, e)
  922. case *map[uint64]uint64:
  923. fastpathTV.EncMapUint64Uint64V(*v, e)
  924. case map[uint64]uintptr:
  925. fastpathTV.EncMapUint64UintptrV(v, e)
  926. case *map[uint64]uintptr:
  927. fastpathTV.EncMapUint64UintptrV(*v, e)
  928. case map[uint64]int:
  929. fastpathTV.EncMapUint64IntV(v, e)
  930. case *map[uint64]int:
  931. fastpathTV.EncMapUint64IntV(*v, e)
  932. case map[uint64]int8:
  933. fastpathTV.EncMapUint64Int8V(v, e)
  934. case *map[uint64]int8:
  935. fastpathTV.EncMapUint64Int8V(*v, e)
  936. case map[uint64]int16:
  937. fastpathTV.EncMapUint64Int16V(v, e)
  938. case *map[uint64]int16:
  939. fastpathTV.EncMapUint64Int16V(*v, e)
  940. case map[uint64]int32:
  941. fastpathTV.EncMapUint64Int32V(v, e)
  942. case *map[uint64]int32:
  943. fastpathTV.EncMapUint64Int32V(*v, e)
  944. case map[uint64]int64:
  945. fastpathTV.EncMapUint64Int64V(v, e)
  946. case *map[uint64]int64:
  947. fastpathTV.EncMapUint64Int64V(*v, e)
  948. case map[uint64]float32:
  949. fastpathTV.EncMapUint64Float32V(v, e)
  950. case *map[uint64]float32:
  951. fastpathTV.EncMapUint64Float32V(*v, e)
  952. case map[uint64]float64:
  953. fastpathTV.EncMapUint64Float64V(v, e)
  954. case *map[uint64]float64:
  955. fastpathTV.EncMapUint64Float64V(*v, e)
  956. case map[uint64]bool:
  957. fastpathTV.EncMapUint64BoolV(v, e)
  958. case *map[uint64]bool:
  959. fastpathTV.EncMapUint64BoolV(*v, e)
  960. case []uintptr:
  961. fastpathTV.EncSliceUintptrV(v, e)
  962. case *[]uintptr:
  963. fastpathTV.EncSliceUintptrV(*v, e)
  964. case map[uintptr]interface{}:
  965. fastpathTV.EncMapUintptrIntfV(v, e)
  966. case *map[uintptr]interface{}:
  967. fastpathTV.EncMapUintptrIntfV(*v, e)
  968. case map[uintptr]string:
  969. fastpathTV.EncMapUintptrStringV(v, e)
  970. case *map[uintptr]string:
  971. fastpathTV.EncMapUintptrStringV(*v, e)
  972. case map[uintptr]uint:
  973. fastpathTV.EncMapUintptrUintV(v, e)
  974. case *map[uintptr]uint:
  975. fastpathTV.EncMapUintptrUintV(*v, e)
  976. case map[uintptr]uint8:
  977. fastpathTV.EncMapUintptrUint8V(v, e)
  978. case *map[uintptr]uint8:
  979. fastpathTV.EncMapUintptrUint8V(*v, e)
  980. case map[uintptr]uint16:
  981. fastpathTV.EncMapUintptrUint16V(v, e)
  982. case *map[uintptr]uint16:
  983. fastpathTV.EncMapUintptrUint16V(*v, e)
  984. case map[uintptr]uint32:
  985. fastpathTV.EncMapUintptrUint32V(v, e)
  986. case *map[uintptr]uint32:
  987. fastpathTV.EncMapUintptrUint32V(*v, e)
  988. case map[uintptr]uint64:
  989. fastpathTV.EncMapUintptrUint64V(v, e)
  990. case *map[uintptr]uint64:
  991. fastpathTV.EncMapUintptrUint64V(*v, e)
  992. case map[uintptr]uintptr:
  993. fastpathTV.EncMapUintptrUintptrV(v, e)
  994. case *map[uintptr]uintptr:
  995. fastpathTV.EncMapUintptrUintptrV(*v, e)
  996. case map[uintptr]int:
  997. fastpathTV.EncMapUintptrIntV(v, e)
  998. case *map[uintptr]int:
  999. fastpathTV.EncMapUintptrIntV(*v, e)
  1000. case map[uintptr]int8:
  1001. fastpathTV.EncMapUintptrInt8V(v, e)
  1002. case *map[uintptr]int8:
  1003. fastpathTV.EncMapUintptrInt8V(*v, e)
  1004. case map[uintptr]int16:
  1005. fastpathTV.EncMapUintptrInt16V(v, e)
  1006. case *map[uintptr]int16:
  1007. fastpathTV.EncMapUintptrInt16V(*v, e)
  1008. case map[uintptr]int32:
  1009. fastpathTV.EncMapUintptrInt32V(v, e)
  1010. case *map[uintptr]int32:
  1011. fastpathTV.EncMapUintptrInt32V(*v, e)
  1012. case map[uintptr]int64:
  1013. fastpathTV.EncMapUintptrInt64V(v, e)
  1014. case *map[uintptr]int64:
  1015. fastpathTV.EncMapUintptrInt64V(*v, e)
  1016. case map[uintptr]float32:
  1017. fastpathTV.EncMapUintptrFloat32V(v, e)
  1018. case *map[uintptr]float32:
  1019. fastpathTV.EncMapUintptrFloat32V(*v, e)
  1020. case map[uintptr]float64:
  1021. fastpathTV.EncMapUintptrFloat64V(v, e)
  1022. case *map[uintptr]float64:
  1023. fastpathTV.EncMapUintptrFloat64V(*v, e)
  1024. case map[uintptr]bool:
  1025. fastpathTV.EncMapUintptrBoolV(v, e)
  1026. case *map[uintptr]bool:
  1027. fastpathTV.EncMapUintptrBoolV(*v, e)
  1028. case []int:
  1029. fastpathTV.EncSliceIntV(v, e)
  1030. case *[]int:
  1031. fastpathTV.EncSliceIntV(*v, e)
  1032. case map[int]interface{}:
  1033. fastpathTV.EncMapIntIntfV(v, e)
  1034. case *map[int]interface{}:
  1035. fastpathTV.EncMapIntIntfV(*v, e)
  1036. case map[int]string:
  1037. fastpathTV.EncMapIntStringV(v, e)
  1038. case *map[int]string:
  1039. fastpathTV.EncMapIntStringV(*v, e)
  1040. case map[int]uint:
  1041. fastpathTV.EncMapIntUintV(v, e)
  1042. case *map[int]uint:
  1043. fastpathTV.EncMapIntUintV(*v, e)
  1044. case map[int]uint8:
  1045. fastpathTV.EncMapIntUint8V(v, e)
  1046. case *map[int]uint8:
  1047. fastpathTV.EncMapIntUint8V(*v, e)
  1048. case map[int]uint16:
  1049. fastpathTV.EncMapIntUint16V(v, e)
  1050. case *map[int]uint16:
  1051. fastpathTV.EncMapIntUint16V(*v, e)
  1052. case map[int]uint32:
  1053. fastpathTV.EncMapIntUint32V(v, e)
  1054. case *map[int]uint32:
  1055. fastpathTV.EncMapIntUint32V(*v, e)
  1056. case map[int]uint64:
  1057. fastpathTV.EncMapIntUint64V(v, e)
  1058. case *map[int]uint64:
  1059. fastpathTV.EncMapIntUint64V(*v, e)
  1060. case map[int]uintptr:
  1061. fastpathTV.EncMapIntUintptrV(v, e)
  1062. case *map[int]uintptr:
  1063. fastpathTV.EncMapIntUintptrV(*v, e)
  1064. case map[int]int:
  1065. fastpathTV.EncMapIntIntV(v, e)
  1066. case *map[int]int:
  1067. fastpathTV.EncMapIntIntV(*v, e)
  1068. case map[int]int8:
  1069. fastpathTV.EncMapIntInt8V(v, e)
  1070. case *map[int]int8:
  1071. fastpathTV.EncMapIntInt8V(*v, e)
  1072. case map[int]int16:
  1073. fastpathTV.EncMapIntInt16V(v, e)
  1074. case *map[int]int16:
  1075. fastpathTV.EncMapIntInt16V(*v, e)
  1076. case map[int]int32:
  1077. fastpathTV.EncMapIntInt32V(v, e)
  1078. case *map[int]int32:
  1079. fastpathTV.EncMapIntInt32V(*v, e)
  1080. case map[int]int64:
  1081. fastpathTV.EncMapIntInt64V(v, e)
  1082. case *map[int]int64:
  1083. fastpathTV.EncMapIntInt64V(*v, e)
  1084. case map[int]float32:
  1085. fastpathTV.EncMapIntFloat32V(v, e)
  1086. case *map[int]float32:
  1087. fastpathTV.EncMapIntFloat32V(*v, e)
  1088. case map[int]float64:
  1089. fastpathTV.EncMapIntFloat64V(v, e)
  1090. case *map[int]float64:
  1091. fastpathTV.EncMapIntFloat64V(*v, e)
  1092. case map[int]bool:
  1093. fastpathTV.EncMapIntBoolV(v, e)
  1094. case *map[int]bool:
  1095. fastpathTV.EncMapIntBoolV(*v, e)
  1096. case []int8:
  1097. fastpathTV.EncSliceInt8V(v, e)
  1098. case *[]int8:
  1099. fastpathTV.EncSliceInt8V(*v, e)
  1100. case map[int8]interface{}:
  1101. fastpathTV.EncMapInt8IntfV(v, e)
  1102. case *map[int8]interface{}:
  1103. fastpathTV.EncMapInt8IntfV(*v, e)
  1104. case map[int8]string:
  1105. fastpathTV.EncMapInt8StringV(v, e)
  1106. case *map[int8]string:
  1107. fastpathTV.EncMapInt8StringV(*v, e)
  1108. case map[int8]uint:
  1109. fastpathTV.EncMapInt8UintV(v, e)
  1110. case *map[int8]uint:
  1111. fastpathTV.EncMapInt8UintV(*v, e)
  1112. case map[int8]uint8:
  1113. fastpathTV.EncMapInt8Uint8V(v, e)
  1114. case *map[int8]uint8:
  1115. fastpathTV.EncMapInt8Uint8V(*v, e)
  1116. case map[int8]uint16:
  1117. fastpathTV.EncMapInt8Uint16V(v, e)
  1118. case *map[int8]uint16:
  1119. fastpathTV.EncMapInt8Uint16V(*v, e)
  1120. case map[int8]uint32:
  1121. fastpathTV.EncMapInt8Uint32V(v, e)
  1122. case *map[int8]uint32:
  1123. fastpathTV.EncMapInt8Uint32V(*v, e)
  1124. case map[int8]uint64:
  1125. fastpathTV.EncMapInt8Uint64V(v, e)
  1126. case *map[int8]uint64:
  1127. fastpathTV.EncMapInt8Uint64V(*v, e)
  1128. case map[int8]uintptr:
  1129. fastpathTV.EncMapInt8UintptrV(v, e)
  1130. case *map[int8]uintptr:
  1131. fastpathTV.EncMapInt8UintptrV(*v, e)
  1132. case map[int8]int:
  1133. fastpathTV.EncMapInt8IntV(v, e)
  1134. case *map[int8]int:
  1135. fastpathTV.EncMapInt8IntV(*v, e)
  1136. case map[int8]int8:
  1137. fastpathTV.EncMapInt8Int8V(v, e)
  1138. case *map[int8]int8:
  1139. fastpathTV.EncMapInt8Int8V(*v, e)
  1140. case map[int8]int16:
  1141. fastpathTV.EncMapInt8Int16V(v, e)
  1142. case *map[int8]int16:
  1143. fastpathTV.EncMapInt8Int16V(*v, e)
  1144. case map[int8]int32:
  1145. fastpathTV.EncMapInt8Int32V(v, e)
  1146. case *map[int8]int32:
  1147. fastpathTV.EncMapInt8Int32V(*v, e)
  1148. case map[int8]int64:
  1149. fastpathTV.EncMapInt8Int64V(v, e)
  1150. case *map[int8]int64:
  1151. fastpathTV.EncMapInt8Int64V(*v, e)
  1152. case map[int8]float32:
  1153. fastpathTV.EncMapInt8Float32V(v, e)
  1154. case *map[int8]float32:
  1155. fastpathTV.EncMapInt8Float32V(*v, e)
  1156. case map[int8]float64:
  1157. fastpathTV.EncMapInt8Float64V(v, e)
  1158. case *map[int8]float64:
  1159. fastpathTV.EncMapInt8Float64V(*v, e)
  1160. case map[int8]bool:
  1161. fastpathTV.EncMapInt8BoolV(v, e)
  1162. case *map[int8]bool:
  1163. fastpathTV.EncMapInt8BoolV(*v, e)
  1164. case []int16:
  1165. fastpathTV.EncSliceInt16V(v, e)
  1166. case *[]int16:
  1167. fastpathTV.EncSliceInt16V(*v, e)
  1168. case map[int16]interface{}:
  1169. fastpathTV.EncMapInt16IntfV(v, e)
  1170. case *map[int16]interface{}:
  1171. fastpathTV.EncMapInt16IntfV(*v, e)
  1172. case map[int16]string:
  1173. fastpathTV.EncMapInt16StringV(v, e)
  1174. case *map[int16]string:
  1175. fastpathTV.EncMapInt16StringV(*v, e)
  1176. case map[int16]uint:
  1177. fastpathTV.EncMapInt16UintV(v, e)
  1178. case *map[int16]uint:
  1179. fastpathTV.EncMapInt16UintV(*v, e)
  1180. case map[int16]uint8:
  1181. fastpathTV.EncMapInt16Uint8V(v, e)
  1182. case *map[int16]uint8:
  1183. fastpathTV.EncMapInt16Uint8V(*v, e)
  1184. case map[int16]uint16:
  1185. fastpathTV.EncMapInt16Uint16V(v, e)
  1186. case *map[int16]uint16:
  1187. fastpathTV.EncMapInt16Uint16V(*v, e)
  1188. case map[int16]uint32:
  1189. fastpathTV.EncMapInt16Uint32V(v, e)
  1190. case *map[int16]uint32:
  1191. fastpathTV.EncMapInt16Uint32V(*v, e)
  1192. case map[int16]uint64:
  1193. fastpathTV.EncMapInt16Uint64V(v, e)
  1194. case *map[int16]uint64:
  1195. fastpathTV.EncMapInt16Uint64V(*v, e)
  1196. case map[int16]uintptr:
  1197. fastpathTV.EncMapInt16UintptrV(v, e)
  1198. case *map[int16]uintptr:
  1199. fastpathTV.EncMapInt16UintptrV(*v, e)
  1200. case map[int16]int:
  1201. fastpathTV.EncMapInt16IntV(v, e)
  1202. case *map[int16]int:
  1203. fastpathTV.EncMapInt16IntV(*v, e)
  1204. case map[int16]int8:
  1205. fastpathTV.EncMapInt16Int8V(v, e)
  1206. case *map[int16]int8:
  1207. fastpathTV.EncMapInt16Int8V(*v, e)
  1208. case map[int16]int16:
  1209. fastpathTV.EncMapInt16Int16V(v, e)
  1210. case *map[int16]int16:
  1211. fastpathTV.EncMapInt16Int16V(*v, e)
  1212. case map[int16]int32:
  1213. fastpathTV.EncMapInt16Int32V(v, e)
  1214. case *map[int16]int32:
  1215. fastpathTV.EncMapInt16Int32V(*v, e)
  1216. case map[int16]int64:
  1217. fastpathTV.EncMapInt16Int64V(v, e)
  1218. case *map[int16]int64:
  1219. fastpathTV.EncMapInt16Int64V(*v, e)
  1220. case map[int16]float32:
  1221. fastpathTV.EncMapInt16Float32V(v, e)
  1222. case *map[int16]float32:
  1223. fastpathTV.EncMapInt16Float32V(*v, e)
  1224. case map[int16]float64:
  1225. fastpathTV.EncMapInt16Float64V(v, e)
  1226. case *map[int16]float64:
  1227. fastpathTV.EncMapInt16Float64V(*v, e)
  1228. case map[int16]bool:
  1229. fastpathTV.EncMapInt16BoolV(v, e)
  1230. case *map[int16]bool:
  1231. fastpathTV.EncMapInt16BoolV(*v, e)
  1232. case []int32:
  1233. fastpathTV.EncSliceInt32V(v, e)
  1234. case *[]int32:
  1235. fastpathTV.EncSliceInt32V(*v, e)
  1236. case map[int32]interface{}:
  1237. fastpathTV.EncMapInt32IntfV(v, e)
  1238. case *map[int32]interface{}:
  1239. fastpathTV.EncMapInt32IntfV(*v, e)
  1240. case map[int32]string:
  1241. fastpathTV.EncMapInt32StringV(v, e)
  1242. case *map[int32]string:
  1243. fastpathTV.EncMapInt32StringV(*v, e)
  1244. case map[int32]uint:
  1245. fastpathTV.EncMapInt32UintV(v, e)
  1246. case *map[int32]uint:
  1247. fastpathTV.EncMapInt32UintV(*v, e)
  1248. case map[int32]uint8:
  1249. fastpathTV.EncMapInt32Uint8V(v, e)
  1250. case *map[int32]uint8:
  1251. fastpathTV.EncMapInt32Uint8V(*v, e)
  1252. case map[int32]uint16:
  1253. fastpathTV.EncMapInt32Uint16V(v, e)
  1254. case *map[int32]uint16:
  1255. fastpathTV.EncMapInt32Uint16V(*v, e)
  1256. case map[int32]uint32:
  1257. fastpathTV.EncMapInt32Uint32V(v, e)
  1258. case *map[int32]uint32:
  1259. fastpathTV.EncMapInt32Uint32V(*v, e)
  1260. case map[int32]uint64:
  1261. fastpathTV.EncMapInt32Uint64V(v, e)
  1262. case *map[int32]uint64:
  1263. fastpathTV.EncMapInt32Uint64V(*v, e)
  1264. case map[int32]uintptr:
  1265. fastpathTV.EncMapInt32UintptrV(v, e)
  1266. case *map[int32]uintptr:
  1267. fastpathTV.EncMapInt32UintptrV(*v, e)
  1268. case map[int32]int:
  1269. fastpathTV.EncMapInt32IntV(v, e)
  1270. case *map[int32]int:
  1271. fastpathTV.EncMapInt32IntV(*v, e)
  1272. case map[int32]int8:
  1273. fastpathTV.EncMapInt32Int8V(v, e)
  1274. case *map[int32]int8:
  1275. fastpathTV.EncMapInt32Int8V(*v, e)
  1276. case map[int32]int16:
  1277. fastpathTV.EncMapInt32Int16V(v, e)
  1278. case *map[int32]int16:
  1279. fastpathTV.EncMapInt32Int16V(*v, e)
  1280. case map[int32]int32:
  1281. fastpathTV.EncMapInt32Int32V(v, e)
  1282. case *map[int32]int32:
  1283. fastpathTV.EncMapInt32Int32V(*v, e)
  1284. case map[int32]int64:
  1285. fastpathTV.EncMapInt32Int64V(v, e)
  1286. case *map[int32]int64:
  1287. fastpathTV.EncMapInt32Int64V(*v, e)
  1288. case map[int32]float32:
  1289. fastpathTV.EncMapInt32Float32V(v, e)
  1290. case *map[int32]float32:
  1291. fastpathTV.EncMapInt32Float32V(*v, e)
  1292. case map[int32]float64:
  1293. fastpathTV.EncMapInt32Float64V(v, e)
  1294. case *map[int32]float64:
  1295. fastpathTV.EncMapInt32Float64V(*v, e)
  1296. case map[int32]bool:
  1297. fastpathTV.EncMapInt32BoolV(v, e)
  1298. case *map[int32]bool:
  1299. fastpathTV.EncMapInt32BoolV(*v, e)
  1300. case []int64:
  1301. fastpathTV.EncSliceInt64V(v, e)
  1302. case *[]int64:
  1303. fastpathTV.EncSliceInt64V(*v, e)
  1304. case map[int64]interface{}:
  1305. fastpathTV.EncMapInt64IntfV(v, e)
  1306. case *map[int64]interface{}:
  1307. fastpathTV.EncMapInt64IntfV(*v, e)
  1308. case map[int64]string:
  1309. fastpathTV.EncMapInt64StringV(v, e)
  1310. case *map[int64]string:
  1311. fastpathTV.EncMapInt64StringV(*v, e)
  1312. case map[int64]uint:
  1313. fastpathTV.EncMapInt64UintV(v, e)
  1314. case *map[int64]uint:
  1315. fastpathTV.EncMapInt64UintV(*v, e)
  1316. case map[int64]uint8:
  1317. fastpathTV.EncMapInt64Uint8V(v, e)
  1318. case *map[int64]uint8:
  1319. fastpathTV.EncMapInt64Uint8V(*v, e)
  1320. case map[int64]uint16:
  1321. fastpathTV.EncMapInt64Uint16V(v, e)
  1322. case *map[int64]uint16:
  1323. fastpathTV.EncMapInt64Uint16V(*v, e)
  1324. case map[int64]uint32:
  1325. fastpathTV.EncMapInt64Uint32V(v, e)
  1326. case *map[int64]uint32:
  1327. fastpathTV.EncMapInt64Uint32V(*v, e)
  1328. case map[int64]uint64:
  1329. fastpathTV.EncMapInt64Uint64V(v, e)
  1330. case *map[int64]uint64:
  1331. fastpathTV.EncMapInt64Uint64V(*v, e)
  1332. case map[int64]uintptr:
  1333. fastpathTV.EncMapInt64UintptrV(v, e)
  1334. case *map[int64]uintptr:
  1335. fastpathTV.EncMapInt64UintptrV(*v, e)
  1336. case map[int64]int:
  1337. fastpathTV.EncMapInt64IntV(v, e)
  1338. case *map[int64]int:
  1339. fastpathTV.EncMapInt64IntV(*v, e)
  1340. case map[int64]int8:
  1341. fastpathTV.EncMapInt64Int8V(v, e)
  1342. case *map[int64]int8:
  1343. fastpathTV.EncMapInt64Int8V(*v, e)
  1344. case map[int64]int16:
  1345. fastpathTV.EncMapInt64Int16V(v, e)
  1346. case *map[int64]int16:
  1347. fastpathTV.EncMapInt64Int16V(*v, e)
  1348. case map[int64]int32:
  1349. fastpathTV.EncMapInt64Int32V(v, e)
  1350. case *map[int64]int32:
  1351. fastpathTV.EncMapInt64Int32V(*v, e)
  1352. case map[int64]int64:
  1353. fastpathTV.EncMapInt64Int64V(v, e)
  1354. case *map[int64]int64:
  1355. fastpathTV.EncMapInt64Int64V(*v, e)
  1356. case map[int64]float32:
  1357. fastpathTV.EncMapInt64Float32V(v, e)
  1358. case *map[int64]float32:
  1359. fastpathTV.EncMapInt64Float32V(*v, e)
  1360. case map[int64]float64:
  1361. fastpathTV.EncMapInt64Float64V(v, e)
  1362. case *map[int64]float64:
  1363. fastpathTV.EncMapInt64Float64V(*v, e)
  1364. case map[int64]bool:
  1365. fastpathTV.EncMapInt64BoolV(v, e)
  1366. case *map[int64]bool:
  1367. fastpathTV.EncMapInt64BoolV(*v, e)
  1368. case []bool:
  1369. fastpathTV.EncSliceBoolV(v, e)
  1370. case *[]bool:
  1371. fastpathTV.EncSliceBoolV(*v, e)
  1372. case map[bool]interface{}:
  1373. fastpathTV.EncMapBoolIntfV(v, e)
  1374. case *map[bool]interface{}:
  1375. fastpathTV.EncMapBoolIntfV(*v, e)
  1376. case map[bool]string:
  1377. fastpathTV.EncMapBoolStringV(v, e)
  1378. case *map[bool]string:
  1379. fastpathTV.EncMapBoolStringV(*v, e)
  1380. case map[bool]uint:
  1381. fastpathTV.EncMapBoolUintV(v, e)
  1382. case *map[bool]uint:
  1383. fastpathTV.EncMapBoolUintV(*v, e)
  1384. case map[bool]uint8:
  1385. fastpathTV.EncMapBoolUint8V(v, e)
  1386. case *map[bool]uint8:
  1387. fastpathTV.EncMapBoolUint8V(*v, e)
  1388. case map[bool]uint16:
  1389. fastpathTV.EncMapBoolUint16V(v, e)
  1390. case *map[bool]uint16:
  1391. fastpathTV.EncMapBoolUint16V(*v, e)
  1392. case map[bool]uint32:
  1393. fastpathTV.EncMapBoolUint32V(v, e)
  1394. case *map[bool]uint32:
  1395. fastpathTV.EncMapBoolUint32V(*v, e)
  1396. case map[bool]uint64:
  1397. fastpathTV.EncMapBoolUint64V(v, e)
  1398. case *map[bool]uint64:
  1399. fastpathTV.EncMapBoolUint64V(*v, e)
  1400. case map[bool]uintptr:
  1401. fastpathTV.EncMapBoolUintptrV(v, e)
  1402. case *map[bool]uintptr:
  1403. fastpathTV.EncMapBoolUintptrV(*v, e)
  1404. case map[bool]int:
  1405. fastpathTV.EncMapBoolIntV(v, e)
  1406. case *map[bool]int:
  1407. fastpathTV.EncMapBoolIntV(*v, e)
  1408. case map[bool]int8:
  1409. fastpathTV.EncMapBoolInt8V(v, e)
  1410. case *map[bool]int8:
  1411. fastpathTV.EncMapBoolInt8V(*v, e)
  1412. case map[bool]int16:
  1413. fastpathTV.EncMapBoolInt16V(v, e)
  1414. case *map[bool]int16:
  1415. fastpathTV.EncMapBoolInt16V(*v, e)
  1416. case map[bool]int32:
  1417. fastpathTV.EncMapBoolInt32V(v, e)
  1418. case *map[bool]int32:
  1419. fastpathTV.EncMapBoolInt32V(*v, e)
  1420. case map[bool]int64:
  1421. fastpathTV.EncMapBoolInt64V(v, e)
  1422. case *map[bool]int64:
  1423. fastpathTV.EncMapBoolInt64V(*v, e)
  1424. case map[bool]float32:
  1425. fastpathTV.EncMapBoolFloat32V(v, e)
  1426. case *map[bool]float32:
  1427. fastpathTV.EncMapBoolFloat32V(*v, e)
  1428. case map[bool]float64:
  1429. fastpathTV.EncMapBoolFloat64V(v, e)
  1430. case *map[bool]float64:
  1431. fastpathTV.EncMapBoolFloat64V(*v, e)
  1432. case map[bool]bool:
  1433. fastpathTV.EncMapBoolBoolV(v, e)
  1434. case *map[bool]bool:
  1435. fastpathTV.EncMapBoolBoolV(*v, e)
  1436. default:
  1437. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  1438. return false
  1439. }
  1440. return true
  1441. }
  1442. // -- -- fast path functions
  1443. func (e *Encoder) fastpathEncSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  1444. if f.ti.mbs {
  1445. fastpathTV.EncAsMapSliceIntfV(rv2i(rv).([]interface{}), e)
  1446. } else {
  1447. fastpathTV.EncSliceIntfV(rv2i(rv).([]interface{}), e)
  1448. }
  1449. }
  1450. func (_ fastpathT) EncSliceIntfV(v []interface{}, e *Encoder) {
  1451. if v == nil {
  1452. e.e.EncodeNil()
  1453. return
  1454. }
  1455. ee, esep := e.e, e.hh.hasElemSeparators()
  1456. ee.WriteArrayStart(len(v))
  1457. for _, v2 := range v {
  1458. if esep {
  1459. ee.WriteArrayElem()
  1460. }
  1461. e.encode(v2)
  1462. }
  1463. ee.WriteArrayEnd()
  1464. }
  1465. func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, e *Encoder) {
  1466. ee, esep := e.e, e.hh.hasElemSeparators()
  1467. if len(v)%2 == 1 {
  1468. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1469. return
  1470. }
  1471. ee.WriteMapStart(len(v) / 2)
  1472. for j, v2 := range v {
  1473. if esep {
  1474. if j%2 == 0 {
  1475. ee.WriteMapElemKey()
  1476. } else {
  1477. ee.WriteMapElemValue()
  1478. }
  1479. }
  1480. e.encode(v2)
  1481. }
  1482. ee.WriteMapEnd()
  1483. }
  1484. func (e *Encoder) fastpathEncSliceStringR(f *codecFnInfo, rv reflect.Value) {
  1485. if f.ti.mbs {
  1486. fastpathTV.EncAsMapSliceStringV(rv2i(rv).([]string), e)
  1487. } else {
  1488. fastpathTV.EncSliceStringV(rv2i(rv).([]string), e)
  1489. }
  1490. }
  1491. func (_ fastpathT) EncSliceStringV(v []string, e *Encoder) {
  1492. if v == nil {
  1493. e.e.EncodeNil()
  1494. return
  1495. }
  1496. ee, esep := e.e, e.hh.hasElemSeparators()
  1497. ee.WriteArrayStart(len(v))
  1498. for _, v2 := range v {
  1499. if esep {
  1500. ee.WriteArrayElem()
  1501. }
  1502. ee.EncodeString(c_UTF8, v2)
  1503. }
  1504. ee.WriteArrayEnd()
  1505. }
  1506. func (_ fastpathT) EncAsMapSliceStringV(v []string, e *Encoder) {
  1507. ee, esep := e.e, e.hh.hasElemSeparators()
  1508. if len(v)%2 == 1 {
  1509. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1510. return
  1511. }
  1512. ee.WriteMapStart(len(v) / 2)
  1513. for j, v2 := range v {
  1514. if esep {
  1515. if j%2 == 0 {
  1516. ee.WriteMapElemKey()
  1517. } else {
  1518. ee.WriteMapElemValue()
  1519. }
  1520. }
  1521. ee.EncodeString(c_UTF8, v2)
  1522. }
  1523. ee.WriteMapEnd()
  1524. }
  1525. func (e *Encoder) fastpathEncSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  1526. if f.ti.mbs {
  1527. fastpathTV.EncAsMapSliceFloat32V(rv2i(rv).([]float32), e)
  1528. } else {
  1529. fastpathTV.EncSliceFloat32V(rv2i(rv).([]float32), e)
  1530. }
  1531. }
  1532. func (_ fastpathT) EncSliceFloat32V(v []float32, e *Encoder) {
  1533. if v == nil {
  1534. e.e.EncodeNil()
  1535. return
  1536. }
  1537. ee, esep := e.e, e.hh.hasElemSeparators()
  1538. ee.WriteArrayStart(len(v))
  1539. for _, v2 := range v {
  1540. if esep {
  1541. ee.WriteArrayElem()
  1542. }
  1543. ee.EncodeFloat32(v2)
  1544. }
  1545. ee.WriteArrayEnd()
  1546. }
  1547. func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, e *Encoder) {
  1548. ee, esep := e.e, e.hh.hasElemSeparators()
  1549. if len(v)%2 == 1 {
  1550. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1551. return
  1552. }
  1553. ee.WriteMapStart(len(v) / 2)
  1554. for j, v2 := range v {
  1555. if esep {
  1556. if j%2 == 0 {
  1557. ee.WriteMapElemKey()
  1558. } else {
  1559. ee.WriteMapElemValue()
  1560. }
  1561. }
  1562. ee.EncodeFloat32(v2)
  1563. }
  1564. ee.WriteMapEnd()
  1565. }
  1566. func (e *Encoder) fastpathEncSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  1567. if f.ti.mbs {
  1568. fastpathTV.EncAsMapSliceFloat64V(rv2i(rv).([]float64), e)
  1569. } else {
  1570. fastpathTV.EncSliceFloat64V(rv2i(rv).([]float64), e)
  1571. }
  1572. }
  1573. func (_ fastpathT) EncSliceFloat64V(v []float64, e *Encoder) {
  1574. if v == nil {
  1575. e.e.EncodeNil()
  1576. return
  1577. }
  1578. ee, esep := e.e, e.hh.hasElemSeparators()
  1579. ee.WriteArrayStart(len(v))
  1580. for _, v2 := range v {
  1581. if esep {
  1582. ee.WriteArrayElem()
  1583. }
  1584. ee.EncodeFloat64(v2)
  1585. }
  1586. ee.WriteArrayEnd()
  1587. }
  1588. func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, e *Encoder) {
  1589. ee, esep := e.e, e.hh.hasElemSeparators()
  1590. if len(v)%2 == 1 {
  1591. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1592. return
  1593. }
  1594. ee.WriteMapStart(len(v) / 2)
  1595. for j, v2 := range v {
  1596. if esep {
  1597. if j%2 == 0 {
  1598. ee.WriteMapElemKey()
  1599. } else {
  1600. ee.WriteMapElemValue()
  1601. }
  1602. }
  1603. ee.EncodeFloat64(v2)
  1604. }
  1605. ee.WriteMapEnd()
  1606. }
  1607. func (e *Encoder) fastpathEncSliceUintR(f *codecFnInfo, rv reflect.Value) {
  1608. if f.ti.mbs {
  1609. fastpathTV.EncAsMapSliceUintV(rv2i(rv).([]uint), e)
  1610. } else {
  1611. fastpathTV.EncSliceUintV(rv2i(rv).([]uint), e)
  1612. }
  1613. }
  1614. func (_ fastpathT) EncSliceUintV(v []uint, e *Encoder) {
  1615. if v == nil {
  1616. e.e.EncodeNil()
  1617. return
  1618. }
  1619. ee, esep := e.e, e.hh.hasElemSeparators()
  1620. ee.WriteArrayStart(len(v))
  1621. for _, v2 := range v {
  1622. if esep {
  1623. ee.WriteArrayElem()
  1624. }
  1625. ee.EncodeUint(uint64(v2))
  1626. }
  1627. ee.WriteArrayEnd()
  1628. }
  1629. func (_ fastpathT) EncAsMapSliceUintV(v []uint, e *Encoder) {
  1630. ee, esep := e.e, e.hh.hasElemSeparators()
  1631. if len(v)%2 == 1 {
  1632. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1633. return
  1634. }
  1635. ee.WriteMapStart(len(v) / 2)
  1636. for j, v2 := range v {
  1637. if esep {
  1638. if j%2 == 0 {
  1639. ee.WriteMapElemKey()
  1640. } else {
  1641. ee.WriteMapElemValue()
  1642. }
  1643. }
  1644. ee.EncodeUint(uint64(v2))
  1645. }
  1646. ee.WriteMapEnd()
  1647. }
  1648. func (e *Encoder) fastpathEncSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  1649. if f.ti.mbs {
  1650. fastpathTV.EncAsMapSliceUint16V(rv2i(rv).([]uint16), e)
  1651. } else {
  1652. fastpathTV.EncSliceUint16V(rv2i(rv).([]uint16), e)
  1653. }
  1654. }
  1655. func (_ fastpathT) EncSliceUint16V(v []uint16, e *Encoder) {
  1656. if v == nil {
  1657. e.e.EncodeNil()
  1658. return
  1659. }
  1660. ee, esep := e.e, e.hh.hasElemSeparators()
  1661. ee.WriteArrayStart(len(v))
  1662. for _, v2 := range v {
  1663. if esep {
  1664. ee.WriteArrayElem()
  1665. }
  1666. ee.EncodeUint(uint64(v2))
  1667. }
  1668. ee.WriteArrayEnd()
  1669. }
  1670. func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, e *Encoder) {
  1671. ee, esep := e.e, e.hh.hasElemSeparators()
  1672. if len(v)%2 == 1 {
  1673. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1674. return
  1675. }
  1676. ee.WriteMapStart(len(v) / 2)
  1677. for j, v2 := range v {
  1678. if esep {
  1679. if j%2 == 0 {
  1680. ee.WriteMapElemKey()
  1681. } else {
  1682. ee.WriteMapElemValue()
  1683. }
  1684. }
  1685. ee.EncodeUint(uint64(v2))
  1686. }
  1687. ee.WriteMapEnd()
  1688. }
  1689. func (e *Encoder) fastpathEncSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  1690. if f.ti.mbs {
  1691. fastpathTV.EncAsMapSliceUint32V(rv2i(rv).([]uint32), e)
  1692. } else {
  1693. fastpathTV.EncSliceUint32V(rv2i(rv).([]uint32), e)
  1694. }
  1695. }
  1696. func (_ fastpathT) EncSliceUint32V(v []uint32, e *Encoder) {
  1697. if v == nil {
  1698. e.e.EncodeNil()
  1699. return
  1700. }
  1701. ee, esep := e.e, e.hh.hasElemSeparators()
  1702. ee.WriteArrayStart(len(v))
  1703. for _, v2 := range v {
  1704. if esep {
  1705. ee.WriteArrayElem()
  1706. }
  1707. ee.EncodeUint(uint64(v2))
  1708. }
  1709. ee.WriteArrayEnd()
  1710. }
  1711. func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, e *Encoder) {
  1712. ee, esep := e.e, e.hh.hasElemSeparators()
  1713. if len(v)%2 == 1 {
  1714. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1715. return
  1716. }
  1717. ee.WriteMapStart(len(v) / 2)
  1718. for j, v2 := range v {
  1719. if esep {
  1720. if j%2 == 0 {
  1721. ee.WriteMapElemKey()
  1722. } else {
  1723. ee.WriteMapElemValue()
  1724. }
  1725. }
  1726. ee.EncodeUint(uint64(v2))
  1727. }
  1728. ee.WriteMapEnd()
  1729. }
  1730. func (e *Encoder) fastpathEncSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  1731. if f.ti.mbs {
  1732. fastpathTV.EncAsMapSliceUint64V(rv2i(rv).([]uint64), e)
  1733. } else {
  1734. fastpathTV.EncSliceUint64V(rv2i(rv).([]uint64), e)
  1735. }
  1736. }
  1737. func (_ fastpathT) EncSliceUint64V(v []uint64, e *Encoder) {
  1738. if v == nil {
  1739. e.e.EncodeNil()
  1740. return
  1741. }
  1742. ee, esep := e.e, e.hh.hasElemSeparators()
  1743. ee.WriteArrayStart(len(v))
  1744. for _, v2 := range v {
  1745. if esep {
  1746. ee.WriteArrayElem()
  1747. }
  1748. ee.EncodeUint(uint64(v2))
  1749. }
  1750. ee.WriteArrayEnd()
  1751. }
  1752. func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, e *Encoder) {
  1753. ee, esep := e.e, e.hh.hasElemSeparators()
  1754. if len(v)%2 == 1 {
  1755. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1756. return
  1757. }
  1758. ee.WriteMapStart(len(v) / 2)
  1759. for j, v2 := range v {
  1760. if esep {
  1761. if j%2 == 0 {
  1762. ee.WriteMapElemKey()
  1763. } else {
  1764. ee.WriteMapElemValue()
  1765. }
  1766. }
  1767. ee.EncodeUint(uint64(v2))
  1768. }
  1769. ee.WriteMapEnd()
  1770. }
  1771. func (e *Encoder) fastpathEncSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  1772. if f.ti.mbs {
  1773. fastpathTV.EncAsMapSliceUintptrV(rv2i(rv).([]uintptr), e)
  1774. } else {
  1775. fastpathTV.EncSliceUintptrV(rv2i(rv).([]uintptr), e)
  1776. }
  1777. }
  1778. func (_ fastpathT) EncSliceUintptrV(v []uintptr, e *Encoder) {
  1779. if v == nil {
  1780. e.e.EncodeNil()
  1781. return
  1782. }
  1783. ee, esep := e.e, e.hh.hasElemSeparators()
  1784. ee.WriteArrayStart(len(v))
  1785. for _, v2 := range v {
  1786. if esep {
  1787. ee.WriteArrayElem()
  1788. }
  1789. e.encode(v2)
  1790. }
  1791. ee.WriteArrayEnd()
  1792. }
  1793. func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, e *Encoder) {
  1794. ee, esep := e.e, e.hh.hasElemSeparators()
  1795. if len(v)%2 == 1 {
  1796. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1797. return
  1798. }
  1799. ee.WriteMapStart(len(v) / 2)
  1800. for j, v2 := range v {
  1801. if esep {
  1802. if j%2 == 0 {
  1803. ee.WriteMapElemKey()
  1804. } else {
  1805. ee.WriteMapElemValue()
  1806. }
  1807. }
  1808. e.encode(v2)
  1809. }
  1810. ee.WriteMapEnd()
  1811. }
  1812. func (e *Encoder) fastpathEncSliceIntR(f *codecFnInfo, rv reflect.Value) {
  1813. if f.ti.mbs {
  1814. fastpathTV.EncAsMapSliceIntV(rv2i(rv).([]int), e)
  1815. } else {
  1816. fastpathTV.EncSliceIntV(rv2i(rv).([]int), e)
  1817. }
  1818. }
  1819. func (_ fastpathT) EncSliceIntV(v []int, e *Encoder) {
  1820. if v == nil {
  1821. e.e.EncodeNil()
  1822. return
  1823. }
  1824. ee, esep := e.e, e.hh.hasElemSeparators()
  1825. ee.WriteArrayStart(len(v))
  1826. for _, v2 := range v {
  1827. if esep {
  1828. ee.WriteArrayElem()
  1829. }
  1830. ee.EncodeInt(int64(v2))
  1831. }
  1832. ee.WriteArrayEnd()
  1833. }
  1834. func (_ fastpathT) EncAsMapSliceIntV(v []int, e *Encoder) {
  1835. ee, esep := e.e, e.hh.hasElemSeparators()
  1836. if len(v)%2 == 1 {
  1837. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1838. return
  1839. }
  1840. ee.WriteMapStart(len(v) / 2)
  1841. for j, v2 := range v {
  1842. if esep {
  1843. if j%2 == 0 {
  1844. ee.WriteMapElemKey()
  1845. } else {
  1846. ee.WriteMapElemValue()
  1847. }
  1848. }
  1849. ee.EncodeInt(int64(v2))
  1850. }
  1851. ee.WriteMapEnd()
  1852. }
  1853. func (e *Encoder) fastpathEncSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  1854. if f.ti.mbs {
  1855. fastpathTV.EncAsMapSliceInt8V(rv2i(rv).([]int8), e)
  1856. } else {
  1857. fastpathTV.EncSliceInt8V(rv2i(rv).([]int8), e)
  1858. }
  1859. }
  1860. func (_ fastpathT) EncSliceInt8V(v []int8, e *Encoder) {
  1861. if v == nil {
  1862. e.e.EncodeNil()
  1863. return
  1864. }
  1865. ee, esep := e.e, e.hh.hasElemSeparators()
  1866. ee.WriteArrayStart(len(v))
  1867. for _, v2 := range v {
  1868. if esep {
  1869. ee.WriteArrayElem()
  1870. }
  1871. ee.EncodeInt(int64(v2))
  1872. }
  1873. ee.WriteArrayEnd()
  1874. }
  1875. func (_ fastpathT) EncAsMapSliceInt8V(v []int8, e *Encoder) {
  1876. ee, esep := e.e, e.hh.hasElemSeparators()
  1877. if len(v)%2 == 1 {
  1878. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1879. return
  1880. }
  1881. ee.WriteMapStart(len(v) / 2)
  1882. for j, v2 := range v {
  1883. if esep {
  1884. if j%2 == 0 {
  1885. ee.WriteMapElemKey()
  1886. } else {
  1887. ee.WriteMapElemValue()
  1888. }
  1889. }
  1890. ee.EncodeInt(int64(v2))
  1891. }
  1892. ee.WriteMapEnd()
  1893. }
  1894. func (e *Encoder) fastpathEncSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  1895. if f.ti.mbs {
  1896. fastpathTV.EncAsMapSliceInt16V(rv2i(rv).([]int16), e)
  1897. } else {
  1898. fastpathTV.EncSliceInt16V(rv2i(rv).([]int16), e)
  1899. }
  1900. }
  1901. func (_ fastpathT) EncSliceInt16V(v []int16, e *Encoder) {
  1902. if v == nil {
  1903. e.e.EncodeNil()
  1904. return
  1905. }
  1906. ee, esep := e.e, e.hh.hasElemSeparators()
  1907. ee.WriteArrayStart(len(v))
  1908. for _, v2 := range v {
  1909. if esep {
  1910. ee.WriteArrayElem()
  1911. }
  1912. ee.EncodeInt(int64(v2))
  1913. }
  1914. ee.WriteArrayEnd()
  1915. }
  1916. func (_ fastpathT) EncAsMapSliceInt16V(v []int16, e *Encoder) {
  1917. ee, esep := e.e, e.hh.hasElemSeparators()
  1918. if len(v)%2 == 1 {
  1919. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1920. return
  1921. }
  1922. ee.WriteMapStart(len(v) / 2)
  1923. for j, v2 := range v {
  1924. if esep {
  1925. if j%2 == 0 {
  1926. ee.WriteMapElemKey()
  1927. } else {
  1928. ee.WriteMapElemValue()
  1929. }
  1930. }
  1931. ee.EncodeInt(int64(v2))
  1932. }
  1933. ee.WriteMapEnd()
  1934. }
  1935. func (e *Encoder) fastpathEncSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  1936. if f.ti.mbs {
  1937. fastpathTV.EncAsMapSliceInt32V(rv2i(rv).([]int32), e)
  1938. } else {
  1939. fastpathTV.EncSliceInt32V(rv2i(rv).([]int32), e)
  1940. }
  1941. }
  1942. func (_ fastpathT) EncSliceInt32V(v []int32, e *Encoder) {
  1943. if v == nil {
  1944. e.e.EncodeNil()
  1945. return
  1946. }
  1947. ee, esep := e.e, e.hh.hasElemSeparators()
  1948. ee.WriteArrayStart(len(v))
  1949. for _, v2 := range v {
  1950. if esep {
  1951. ee.WriteArrayElem()
  1952. }
  1953. ee.EncodeInt(int64(v2))
  1954. }
  1955. ee.WriteArrayEnd()
  1956. }
  1957. func (_ fastpathT) EncAsMapSliceInt32V(v []int32, e *Encoder) {
  1958. ee, esep := e.e, e.hh.hasElemSeparators()
  1959. if len(v)%2 == 1 {
  1960. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1961. return
  1962. }
  1963. ee.WriteMapStart(len(v) / 2)
  1964. for j, v2 := range v {
  1965. if esep {
  1966. if j%2 == 0 {
  1967. ee.WriteMapElemKey()
  1968. } else {
  1969. ee.WriteMapElemValue()
  1970. }
  1971. }
  1972. ee.EncodeInt(int64(v2))
  1973. }
  1974. ee.WriteMapEnd()
  1975. }
  1976. func (e *Encoder) fastpathEncSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  1977. if f.ti.mbs {
  1978. fastpathTV.EncAsMapSliceInt64V(rv2i(rv).([]int64), e)
  1979. } else {
  1980. fastpathTV.EncSliceInt64V(rv2i(rv).([]int64), e)
  1981. }
  1982. }
  1983. func (_ fastpathT) EncSliceInt64V(v []int64, e *Encoder) {
  1984. if v == nil {
  1985. e.e.EncodeNil()
  1986. return
  1987. }
  1988. ee, esep := e.e, e.hh.hasElemSeparators()
  1989. ee.WriteArrayStart(len(v))
  1990. for _, v2 := range v {
  1991. if esep {
  1992. ee.WriteArrayElem()
  1993. }
  1994. ee.EncodeInt(int64(v2))
  1995. }
  1996. ee.WriteArrayEnd()
  1997. }
  1998. func (_ fastpathT) EncAsMapSliceInt64V(v []int64, e *Encoder) {
  1999. ee, esep := e.e, e.hh.hasElemSeparators()
  2000. if len(v)%2 == 1 {
  2001. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2002. return
  2003. }
  2004. ee.WriteMapStart(len(v) / 2)
  2005. for j, v2 := range v {
  2006. if esep {
  2007. if j%2 == 0 {
  2008. ee.WriteMapElemKey()
  2009. } else {
  2010. ee.WriteMapElemValue()
  2011. }
  2012. }
  2013. ee.EncodeInt(int64(v2))
  2014. }
  2015. ee.WriteMapEnd()
  2016. }
  2017. func (e *Encoder) fastpathEncSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  2018. if f.ti.mbs {
  2019. fastpathTV.EncAsMapSliceBoolV(rv2i(rv).([]bool), e)
  2020. } else {
  2021. fastpathTV.EncSliceBoolV(rv2i(rv).([]bool), e)
  2022. }
  2023. }
  2024. func (_ fastpathT) EncSliceBoolV(v []bool, e *Encoder) {
  2025. if v == nil {
  2026. e.e.EncodeNil()
  2027. return
  2028. }
  2029. ee, esep := e.e, e.hh.hasElemSeparators()
  2030. ee.WriteArrayStart(len(v))
  2031. for _, v2 := range v {
  2032. if esep {
  2033. ee.WriteArrayElem()
  2034. }
  2035. ee.EncodeBool(v2)
  2036. }
  2037. ee.WriteArrayEnd()
  2038. }
  2039. func (_ fastpathT) EncAsMapSliceBoolV(v []bool, e *Encoder) {
  2040. ee, esep := e.e, e.hh.hasElemSeparators()
  2041. if len(v)%2 == 1 {
  2042. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2043. return
  2044. }
  2045. ee.WriteMapStart(len(v) / 2)
  2046. for j, v2 := range v {
  2047. if esep {
  2048. if j%2 == 0 {
  2049. ee.WriteMapElemKey()
  2050. } else {
  2051. ee.WriteMapElemValue()
  2052. }
  2053. }
  2054. ee.EncodeBool(v2)
  2055. }
  2056. ee.WriteMapEnd()
  2057. }
  2058. func (e *Encoder) fastpathEncMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  2059. fastpathTV.EncMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), e)
  2060. }
  2061. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, e *Encoder) {
  2062. if v == nil {
  2063. e.e.EncodeNil()
  2064. return
  2065. }
  2066. ee, esep := e.e, e.hh.hasElemSeparators()
  2067. ee.WriteMapStart(len(v))
  2068. if e.h.Canonical {
  2069. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2070. e2 := NewEncoderBytes(&mksv, e.hh)
  2071. v2 := make([]bytesI, len(v))
  2072. var i, l int
  2073. var vp *bytesI
  2074. for k2, _ := range v {
  2075. l = len(mksv)
  2076. e2.MustEncode(k2)
  2077. vp = &v2[i]
  2078. vp.v = mksv[l:]
  2079. vp.i = k2
  2080. i++
  2081. }
  2082. sort.Sort(bytesISlice(v2))
  2083. for j := range v2 {
  2084. if esep {
  2085. ee.WriteMapElemKey()
  2086. }
  2087. e.asis(v2[j].v)
  2088. if esep {
  2089. ee.WriteMapElemValue()
  2090. }
  2091. e.encode(v[v2[j].i])
  2092. }
  2093. } else {
  2094. for k2, v2 := range v {
  2095. if esep {
  2096. ee.WriteMapElemKey()
  2097. }
  2098. e.encode(k2)
  2099. if esep {
  2100. ee.WriteMapElemValue()
  2101. }
  2102. e.encode(v2)
  2103. }
  2104. }
  2105. ee.WriteMapEnd()
  2106. }
  2107. func (e *Encoder) fastpathEncMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  2108. fastpathTV.EncMapIntfStringV(rv2i(rv).(map[interface{}]string), e)
  2109. }
  2110. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, e *Encoder) {
  2111. if v == nil {
  2112. e.e.EncodeNil()
  2113. return
  2114. }
  2115. ee, esep := e.e, e.hh.hasElemSeparators()
  2116. ee.WriteMapStart(len(v))
  2117. if e.h.Canonical {
  2118. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2119. e2 := NewEncoderBytes(&mksv, e.hh)
  2120. v2 := make([]bytesI, len(v))
  2121. var i, l int
  2122. var vp *bytesI
  2123. for k2, _ := range v {
  2124. l = len(mksv)
  2125. e2.MustEncode(k2)
  2126. vp = &v2[i]
  2127. vp.v = mksv[l:]
  2128. vp.i = k2
  2129. i++
  2130. }
  2131. sort.Sort(bytesISlice(v2))
  2132. for j := range v2 {
  2133. if esep {
  2134. ee.WriteMapElemKey()
  2135. }
  2136. e.asis(v2[j].v)
  2137. if esep {
  2138. ee.WriteMapElemValue()
  2139. }
  2140. e.encode(v[v2[j].i])
  2141. }
  2142. } else {
  2143. for k2, v2 := range v {
  2144. if esep {
  2145. ee.WriteMapElemKey()
  2146. }
  2147. e.encode(k2)
  2148. if esep {
  2149. ee.WriteMapElemValue()
  2150. }
  2151. ee.EncodeString(c_UTF8, v2)
  2152. }
  2153. }
  2154. ee.WriteMapEnd()
  2155. }
  2156. func (e *Encoder) fastpathEncMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  2157. fastpathTV.EncMapIntfUintV(rv2i(rv).(map[interface{}]uint), e)
  2158. }
  2159. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, e *Encoder) {
  2160. if v == nil {
  2161. e.e.EncodeNil()
  2162. return
  2163. }
  2164. ee, esep := e.e, e.hh.hasElemSeparators()
  2165. ee.WriteMapStart(len(v))
  2166. if e.h.Canonical {
  2167. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2168. e2 := NewEncoderBytes(&mksv, e.hh)
  2169. v2 := make([]bytesI, len(v))
  2170. var i, l int
  2171. var vp *bytesI
  2172. for k2, _ := range v {
  2173. l = len(mksv)
  2174. e2.MustEncode(k2)
  2175. vp = &v2[i]
  2176. vp.v = mksv[l:]
  2177. vp.i = k2
  2178. i++
  2179. }
  2180. sort.Sort(bytesISlice(v2))
  2181. for j := range v2 {
  2182. if esep {
  2183. ee.WriteMapElemKey()
  2184. }
  2185. e.asis(v2[j].v)
  2186. if esep {
  2187. ee.WriteMapElemValue()
  2188. }
  2189. e.encode(v[v2[j].i])
  2190. }
  2191. } else {
  2192. for k2, v2 := range v {
  2193. if esep {
  2194. ee.WriteMapElemKey()
  2195. }
  2196. e.encode(k2)
  2197. if esep {
  2198. ee.WriteMapElemValue()
  2199. }
  2200. ee.EncodeUint(uint64(v2))
  2201. }
  2202. }
  2203. ee.WriteMapEnd()
  2204. }
  2205. func (e *Encoder) fastpathEncMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  2206. fastpathTV.EncMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), e)
  2207. }
  2208. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, e *Encoder) {
  2209. if v == nil {
  2210. e.e.EncodeNil()
  2211. return
  2212. }
  2213. ee, esep := e.e, e.hh.hasElemSeparators()
  2214. ee.WriteMapStart(len(v))
  2215. if e.h.Canonical {
  2216. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2217. e2 := NewEncoderBytes(&mksv, e.hh)
  2218. v2 := make([]bytesI, len(v))
  2219. var i, l int
  2220. var vp *bytesI
  2221. for k2, _ := range v {
  2222. l = len(mksv)
  2223. e2.MustEncode(k2)
  2224. vp = &v2[i]
  2225. vp.v = mksv[l:]
  2226. vp.i = k2
  2227. i++
  2228. }
  2229. sort.Sort(bytesISlice(v2))
  2230. for j := range v2 {
  2231. if esep {
  2232. ee.WriteMapElemKey()
  2233. }
  2234. e.asis(v2[j].v)
  2235. if esep {
  2236. ee.WriteMapElemValue()
  2237. }
  2238. e.encode(v[v2[j].i])
  2239. }
  2240. } else {
  2241. for k2, v2 := range v {
  2242. if esep {
  2243. ee.WriteMapElemKey()
  2244. }
  2245. e.encode(k2)
  2246. if esep {
  2247. ee.WriteMapElemValue()
  2248. }
  2249. ee.EncodeUint(uint64(v2))
  2250. }
  2251. }
  2252. ee.WriteMapEnd()
  2253. }
  2254. func (e *Encoder) fastpathEncMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  2255. fastpathTV.EncMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), e)
  2256. }
  2257. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, e *Encoder) {
  2258. if v == nil {
  2259. e.e.EncodeNil()
  2260. return
  2261. }
  2262. ee, esep := e.e, e.hh.hasElemSeparators()
  2263. ee.WriteMapStart(len(v))
  2264. if e.h.Canonical {
  2265. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2266. e2 := NewEncoderBytes(&mksv, e.hh)
  2267. v2 := make([]bytesI, len(v))
  2268. var i, l int
  2269. var vp *bytesI
  2270. for k2, _ := range v {
  2271. l = len(mksv)
  2272. e2.MustEncode(k2)
  2273. vp = &v2[i]
  2274. vp.v = mksv[l:]
  2275. vp.i = k2
  2276. i++
  2277. }
  2278. sort.Sort(bytesISlice(v2))
  2279. for j := range v2 {
  2280. if esep {
  2281. ee.WriteMapElemKey()
  2282. }
  2283. e.asis(v2[j].v)
  2284. if esep {
  2285. ee.WriteMapElemValue()
  2286. }
  2287. e.encode(v[v2[j].i])
  2288. }
  2289. } else {
  2290. for k2, v2 := range v {
  2291. if esep {
  2292. ee.WriteMapElemKey()
  2293. }
  2294. e.encode(k2)
  2295. if esep {
  2296. ee.WriteMapElemValue()
  2297. }
  2298. ee.EncodeUint(uint64(v2))
  2299. }
  2300. }
  2301. ee.WriteMapEnd()
  2302. }
  2303. func (e *Encoder) fastpathEncMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  2304. fastpathTV.EncMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), e)
  2305. }
  2306. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, e *Encoder) {
  2307. if v == nil {
  2308. e.e.EncodeNil()
  2309. return
  2310. }
  2311. ee, esep := e.e, e.hh.hasElemSeparators()
  2312. ee.WriteMapStart(len(v))
  2313. if e.h.Canonical {
  2314. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2315. e2 := NewEncoderBytes(&mksv, e.hh)
  2316. v2 := make([]bytesI, len(v))
  2317. var i, l int
  2318. var vp *bytesI
  2319. for k2, _ := range v {
  2320. l = len(mksv)
  2321. e2.MustEncode(k2)
  2322. vp = &v2[i]
  2323. vp.v = mksv[l:]
  2324. vp.i = k2
  2325. i++
  2326. }
  2327. sort.Sort(bytesISlice(v2))
  2328. for j := range v2 {
  2329. if esep {
  2330. ee.WriteMapElemKey()
  2331. }
  2332. e.asis(v2[j].v)
  2333. if esep {
  2334. ee.WriteMapElemValue()
  2335. }
  2336. e.encode(v[v2[j].i])
  2337. }
  2338. } else {
  2339. for k2, v2 := range v {
  2340. if esep {
  2341. ee.WriteMapElemKey()
  2342. }
  2343. e.encode(k2)
  2344. if esep {
  2345. ee.WriteMapElemValue()
  2346. }
  2347. ee.EncodeUint(uint64(v2))
  2348. }
  2349. }
  2350. ee.WriteMapEnd()
  2351. }
  2352. func (e *Encoder) fastpathEncMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  2353. fastpathTV.EncMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), e)
  2354. }
  2355. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, e *Encoder) {
  2356. if v == nil {
  2357. e.e.EncodeNil()
  2358. return
  2359. }
  2360. ee, esep := e.e, e.hh.hasElemSeparators()
  2361. ee.WriteMapStart(len(v))
  2362. if e.h.Canonical {
  2363. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2364. e2 := NewEncoderBytes(&mksv, e.hh)
  2365. v2 := make([]bytesI, len(v))
  2366. var i, l int
  2367. var vp *bytesI
  2368. for k2, _ := range v {
  2369. l = len(mksv)
  2370. e2.MustEncode(k2)
  2371. vp = &v2[i]
  2372. vp.v = mksv[l:]
  2373. vp.i = k2
  2374. i++
  2375. }
  2376. sort.Sort(bytesISlice(v2))
  2377. for j := range v2 {
  2378. if esep {
  2379. ee.WriteMapElemKey()
  2380. }
  2381. e.asis(v2[j].v)
  2382. if esep {
  2383. ee.WriteMapElemValue()
  2384. }
  2385. e.encode(v[v2[j].i])
  2386. }
  2387. } else {
  2388. for k2, v2 := range v {
  2389. if esep {
  2390. ee.WriteMapElemKey()
  2391. }
  2392. e.encode(k2)
  2393. if esep {
  2394. ee.WriteMapElemValue()
  2395. }
  2396. ee.EncodeUint(uint64(v2))
  2397. }
  2398. }
  2399. ee.WriteMapEnd()
  2400. }
  2401. func (e *Encoder) fastpathEncMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  2402. fastpathTV.EncMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), e)
  2403. }
  2404. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, e *Encoder) {
  2405. if v == nil {
  2406. e.e.EncodeNil()
  2407. return
  2408. }
  2409. ee, esep := e.e, e.hh.hasElemSeparators()
  2410. ee.WriteMapStart(len(v))
  2411. if e.h.Canonical {
  2412. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2413. e2 := NewEncoderBytes(&mksv, e.hh)
  2414. v2 := make([]bytesI, len(v))
  2415. var i, l int
  2416. var vp *bytesI
  2417. for k2, _ := range v {
  2418. l = len(mksv)
  2419. e2.MustEncode(k2)
  2420. vp = &v2[i]
  2421. vp.v = mksv[l:]
  2422. vp.i = k2
  2423. i++
  2424. }
  2425. sort.Sort(bytesISlice(v2))
  2426. for j := range v2 {
  2427. if esep {
  2428. ee.WriteMapElemKey()
  2429. }
  2430. e.asis(v2[j].v)
  2431. if esep {
  2432. ee.WriteMapElemValue()
  2433. }
  2434. e.encode(v[v2[j].i])
  2435. }
  2436. } else {
  2437. for k2, v2 := range v {
  2438. if esep {
  2439. ee.WriteMapElemKey()
  2440. }
  2441. e.encode(k2)
  2442. if esep {
  2443. ee.WriteMapElemValue()
  2444. }
  2445. e.encode(v2)
  2446. }
  2447. }
  2448. ee.WriteMapEnd()
  2449. }
  2450. func (e *Encoder) fastpathEncMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  2451. fastpathTV.EncMapIntfIntV(rv2i(rv).(map[interface{}]int), e)
  2452. }
  2453. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, e *Encoder) {
  2454. if v == nil {
  2455. e.e.EncodeNil()
  2456. return
  2457. }
  2458. ee, esep := e.e, e.hh.hasElemSeparators()
  2459. ee.WriteMapStart(len(v))
  2460. if e.h.Canonical {
  2461. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2462. e2 := NewEncoderBytes(&mksv, e.hh)
  2463. v2 := make([]bytesI, len(v))
  2464. var i, l int
  2465. var vp *bytesI
  2466. for k2, _ := range v {
  2467. l = len(mksv)
  2468. e2.MustEncode(k2)
  2469. vp = &v2[i]
  2470. vp.v = mksv[l:]
  2471. vp.i = k2
  2472. i++
  2473. }
  2474. sort.Sort(bytesISlice(v2))
  2475. for j := range v2 {
  2476. if esep {
  2477. ee.WriteMapElemKey()
  2478. }
  2479. e.asis(v2[j].v)
  2480. if esep {
  2481. ee.WriteMapElemValue()
  2482. }
  2483. e.encode(v[v2[j].i])
  2484. }
  2485. } else {
  2486. for k2, v2 := range v {
  2487. if esep {
  2488. ee.WriteMapElemKey()
  2489. }
  2490. e.encode(k2)
  2491. if esep {
  2492. ee.WriteMapElemValue()
  2493. }
  2494. ee.EncodeInt(int64(v2))
  2495. }
  2496. }
  2497. ee.WriteMapEnd()
  2498. }
  2499. func (e *Encoder) fastpathEncMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  2500. fastpathTV.EncMapIntfInt8V(rv2i(rv).(map[interface{}]int8), e)
  2501. }
  2502. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, e *Encoder) {
  2503. if v == nil {
  2504. e.e.EncodeNil()
  2505. return
  2506. }
  2507. ee, esep := e.e, e.hh.hasElemSeparators()
  2508. ee.WriteMapStart(len(v))
  2509. if e.h.Canonical {
  2510. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2511. e2 := NewEncoderBytes(&mksv, e.hh)
  2512. v2 := make([]bytesI, len(v))
  2513. var i, l int
  2514. var vp *bytesI
  2515. for k2, _ := range v {
  2516. l = len(mksv)
  2517. e2.MustEncode(k2)
  2518. vp = &v2[i]
  2519. vp.v = mksv[l:]
  2520. vp.i = k2
  2521. i++
  2522. }
  2523. sort.Sort(bytesISlice(v2))
  2524. for j := range v2 {
  2525. if esep {
  2526. ee.WriteMapElemKey()
  2527. }
  2528. e.asis(v2[j].v)
  2529. if esep {
  2530. ee.WriteMapElemValue()
  2531. }
  2532. e.encode(v[v2[j].i])
  2533. }
  2534. } else {
  2535. for k2, v2 := range v {
  2536. if esep {
  2537. ee.WriteMapElemKey()
  2538. }
  2539. e.encode(k2)
  2540. if esep {
  2541. ee.WriteMapElemValue()
  2542. }
  2543. ee.EncodeInt(int64(v2))
  2544. }
  2545. }
  2546. ee.WriteMapEnd()
  2547. }
  2548. func (e *Encoder) fastpathEncMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  2549. fastpathTV.EncMapIntfInt16V(rv2i(rv).(map[interface{}]int16), e)
  2550. }
  2551. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, e *Encoder) {
  2552. if v == nil {
  2553. e.e.EncodeNil()
  2554. return
  2555. }
  2556. ee, esep := e.e, e.hh.hasElemSeparators()
  2557. ee.WriteMapStart(len(v))
  2558. if e.h.Canonical {
  2559. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2560. e2 := NewEncoderBytes(&mksv, e.hh)
  2561. v2 := make([]bytesI, len(v))
  2562. var i, l int
  2563. var vp *bytesI
  2564. for k2, _ := range v {
  2565. l = len(mksv)
  2566. e2.MustEncode(k2)
  2567. vp = &v2[i]
  2568. vp.v = mksv[l:]
  2569. vp.i = k2
  2570. i++
  2571. }
  2572. sort.Sort(bytesISlice(v2))
  2573. for j := range v2 {
  2574. if esep {
  2575. ee.WriteMapElemKey()
  2576. }
  2577. e.asis(v2[j].v)
  2578. if esep {
  2579. ee.WriteMapElemValue()
  2580. }
  2581. e.encode(v[v2[j].i])
  2582. }
  2583. } else {
  2584. for k2, v2 := range v {
  2585. if esep {
  2586. ee.WriteMapElemKey()
  2587. }
  2588. e.encode(k2)
  2589. if esep {
  2590. ee.WriteMapElemValue()
  2591. }
  2592. ee.EncodeInt(int64(v2))
  2593. }
  2594. }
  2595. ee.WriteMapEnd()
  2596. }
  2597. func (e *Encoder) fastpathEncMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  2598. fastpathTV.EncMapIntfInt32V(rv2i(rv).(map[interface{}]int32), e)
  2599. }
  2600. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, e *Encoder) {
  2601. if v == nil {
  2602. e.e.EncodeNil()
  2603. return
  2604. }
  2605. ee, esep := e.e, e.hh.hasElemSeparators()
  2606. ee.WriteMapStart(len(v))
  2607. if e.h.Canonical {
  2608. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2609. e2 := NewEncoderBytes(&mksv, e.hh)
  2610. v2 := make([]bytesI, len(v))
  2611. var i, l int
  2612. var vp *bytesI
  2613. for k2, _ := range v {
  2614. l = len(mksv)
  2615. e2.MustEncode(k2)
  2616. vp = &v2[i]
  2617. vp.v = mksv[l:]
  2618. vp.i = k2
  2619. i++
  2620. }
  2621. sort.Sort(bytesISlice(v2))
  2622. for j := range v2 {
  2623. if esep {
  2624. ee.WriteMapElemKey()
  2625. }
  2626. e.asis(v2[j].v)
  2627. if esep {
  2628. ee.WriteMapElemValue()
  2629. }
  2630. e.encode(v[v2[j].i])
  2631. }
  2632. } else {
  2633. for k2, v2 := range v {
  2634. if esep {
  2635. ee.WriteMapElemKey()
  2636. }
  2637. e.encode(k2)
  2638. if esep {
  2639. ee.WriteMapElemValue()
  2640. }
  2641. ee.EncodeInt(int64(v2))
  2642. }
  2643. }
  2644. ee.WriteMapEnd()
  2645. }
  2646. func (e *Encoder) fastpathEncMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  2647. fastpathTV.EncMapIntfInt64V(rv2i(rv).(map[interface{}]int64), e)
  2648. }
  2649. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, e *Encoder) {
  2650. if v == nil {
  2651. e.e.EncodeNil()
  2652. return
  2653. }
  2654. ee, esep := e.e, e.hh.hasElemSeparators()
  2655. ee.WriteMapStart(len(v))
  2656. if e.h.Canonical {
  2657. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2658. e2 := NewEncoderBytes(&mksv, e.hh)
  2659. v2 := make([]bytesI, len(v))
  2660. var i, l int
  2661. var vp *bytesI
  2662. for k2, _ := range v {
  2663. l = len(mksv)
  2664. e2.MustEncode(k2)
  2665. vp = &v2[i]
  2666. vp.v = mksv[l:]
  2667. vp.i = k2
  2668. i++
  2669. }
  2670. sort.Sort(bytesISlice(v2))
  2671. for j := range v2 {
  2672. if esep {
  2673. ee.WriteMapElemKey()
  2674. }
  2675. e.asis(v2[j].v)
  2676. if esep {
  2677. ee.WriteMapElemValue()
  2678. }
  2679. e.encode(v[v2[j].i])
  2680. }
  2681. } else {
  2682. for k2, v2 := range v {
  2683. if esep {
  2684. ee.WriteMapElemKey()
  2685. }
  2686. e.encode(k2)
  2687. if esep {
  2688. ee.WriteMapElemValue()
  2689. }
  2690. ee.EncodeInt(int64(v2))
  2691. }
  2692. }
  2693. ee.WriteMapEnd()
  2694. }
  2695. func (e *Encoder) fastpathEncMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  2696. fastpathTV.EncMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), e)
  2697. }
  2698. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, e *Encoder) {
  2699. if v == nil {
  2700. e.e.EncodeNil()
  2701. return
  2702. }
  2703. ee, esep := e.e, e.hh.hasElemSeparators()
  2704. ee.WriteMapStart(len(v))
  2705. if e.h.Canonical {
  2706. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2707. e2 := NewEncoderBytes(&mksv, e.hh)
  2708. v2 := make([]bytesI, len(v))
  2709. var i, l int
  2710. var vp *bytesI
  2711. for k2, _ := range v {
  2712. l = len(mksv)
  2713. e2.MustEncode(k2)
  2714. vp = &v2[i]
  2715. vp.v = mksv[l:]
  2716. vp.i = k2
  2717. i++
  2718. }
  2719. sort.Sort(bytesISlice(v2))
  2720. for j := range v2 {
  2721. if esep {
  2722. ee.WriteMapElemKey()
  2723. }
  2724. e.asis(v2[j].v)
  2725. if esep {
  2726. ee.WriteMapElemValue()
  2727. }
  2728. e.encode(v[v2[j].i])
  2729. }
  2730. } else {
  2731. for k2, v2 := range v {
  2732. if esep {
  2733. ee.WriteMapElemKey()
  2734. }
  2735. e.encode(k2)
  2736. if esep {
  2737. ee.WriteMapElemValue()
  2738. }
  2739. ee.EncodeFloat32(v2)
  2740. }
  2741. }
  2742. ee.WriteMapEnd()
  2743. }
  2744. func (e *Encoder) fastpathEncMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  2745. fastpathTV.EncMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), e)
  2746. }
  2747. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, e *Encoder) {
  2748. if v == nil {
  2749. e.e.EncodeNil()
  2750. return
  2751. }
  2752. ee, esep := e.e, e.hh.hasElemSeparators()
  2753. ee.WriteMapStart(len(v))
  2754. if e.h.Canonical {
  2755. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2756. e2 := NewEncoderBytes(&mksv, e.hh)
  2757. v2 := make([]bytesI, len(v))
  2758. var i, l int
  2759. var vp *bytesI
  2760. for k2, _ := range v {
  2761. l = len(mksv)
  2762. e2.MustEncode(k2)
  2763. vp = &v2[i]
  2764. vp.v = mksv[l:]
  2765. vp.i = k2
  2766. i++
  2767. }
  2768. sort.Sort(bytesISlice(v2))
  2769. for j := range v2 {
  2770. if esep {
  2771. ee.WriteMapElemKey()
  2772. }
  2773. e.asis(v2[j].v)
  2774. if esep {
  2775. ee.WriteMapElemValue()
  2776. }
  2777. e.encode(v[v2[j].i])
  2778. }
  2779. } else {
  2780. for k2, v2 := range v {
  2781. if esep {
  2782. ee.WriteMapElemKey()
  2783. }
  2784. e.encode(k2)
  2785. if esep {
  2786. ee.WriteMapElemValue()
  2787. }
  2788. ee.EncodeFloat64(v2)
  2789. }
  2790. }
  2791. ee.WriteMapEnd()
  2792. }
  2793. func (e *Encoder) fastpathEncMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  2794. fastpathTV.EncMapIntfBoolV(rv2i(rv).(map[interface{}]bool), e)
  2795. }
  2796. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, e *Encoder) {
  2797. if v == nil {
  2798. e.e.EncodeNil()
  2799. return
  2800. }
  2801. ee, esep := e.e, e.hh.hasElemSeparators()
  2802. ee.WriteMapStart(len(v))
  2803. if e.h.Canonical {
  2804. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2805. e2 := NewEncoderBytes(&mksv, e.hh)
  2806. v2 := make([]bytesI, len(v))
  2807. var i, l int
  2808. var vp *bytesI
  2809. for k2, _ := range v {
  2810. l = len(mksv)
  2811. e2.MustEncode(k2)
  2812. vp = &v2[i]
  2813. vp.v = mksv[l:]
  2814. vp.i = k2
  2815. i++
  2816. }
  2817. sort.Sort(bytesISlice(v2))
  2818. for j := range v2 {
  2819. if esep {
  2820. ee.WriteMapElemKey()
  2821. }
  2822. e.asis(v2[j].v)
  2823. if esep {
  2824. ee.WriteMapElemValue()
  2825. }
  2826. e.encode(v[v2[j].i])
  2827. }
  2828. } else {
  2829. for k2, v2 := range v {
  2830. if esep {
  2831. ee.WriteMapElemKey()
  2832. }
  2833. e.encode(k2)
  2834. if esep {
  2835. ee.WriteMapElemValue()
  2836. }
  2837. ee.EncodeBool(v2)
  2838. }
  2839. }
  2840. ee.WriteMapEnd()
  2841. }
  2842. func (e *Encoder) fastpathEncMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  2843. fastpathTV.EncMapStringIntfV(rv2i(rv).(map[string]interface{}), e)
  2844. }
  2845. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, e *Encoder) {
  2846. if v == nil {
  2847. e.e.EncodeNil()
  2848. return
  2849. }
  2850. ee, esep := e.e, e.hh.hasElemSeparators()
  2851. ee.WriteMapStart(len(v))
  2852. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2853. if e.h.Canonical {
  2854. v2 := make([]string, len(v))
  2855. var i int
  2856. for k, _ := range v {
  2857. v2[i] = string(k)
  2858. i++
  2859. }
  2860. sort.Sort(stringSlice(v2))
  2861. for _, k2 := range v2 {
  2862. if esep {
  2863. ee.WriteMapElemKey()
  2864. }
  2865. if asSymbols {
  2866. ee.EncodeSymbol(k2)
  2867. } else {
  2868. ee.EncodeString(c_UTF8, k2)
  2869. }
  2870. if esep {
  2871. ee.WriteMapElemValue()
  2872. }
  2873. e.encode(v[string(k2)])
  2874. }
  2875. } else {
  2876. for k2, v2 := range v {
  2877. if esep {
  2878. ee.WriteMapElemKey()
  2879. }
  2880. if asSymbols {
  2881. ee.EncodeSymbol(k2)
  2882. } else {
  2883. ee.EncodeString(c_UTF8, k2)
  2884. }
  2885. if esep {
  2886. ee.WriteMapElemValue()
  2887. }
  2888. e.encode(v2)
  2889. }
  2890. }
  2891. ee.WriteMapEnd()
  2892. }
  2893. func (e *Encoder) fastpathEncMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  2894. fastpathTV.EncMapStringStringV(rv2i(rv).(map[string]string), e)
  2895. }
  2896. func (_ fastpathT) EncMapStringStringV(v map[string]string, e *Encoder) {
  2897. if v == nil {
  2898. e.e.EncodeNil()
  2899. return
  2900. }
  2901. ee, esep := e.e, e.hh.hasElemSeparators()
  2902. ee.WriteMapStart(len(v))
  2903. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2904. if e.h.Canonical {
  2905. v2 := make([]string, len(v))
  2906. var i int
  2907. for k, _ := range v {
  2908. v2[i] = string(k)
  2909. i++
  2910. }
  2911. sort.Sort(stringSlice(v2))
  2912. for _, k2 := range v2 {
  2913. if esep {
  2914. ee.WriteMapElemKey()
  2915. }
  2916. if asSymbols {
  2917. ee.EncodeSymbol(k2)
  2918. } else {
  2919. ee.EncodeString(c_UTF8, k2)
  2920. }
  2921. if esep {
  2922. ee.WriteMapElemValue()
  2923. }
  2924. ee.EncodeString(c_UTF8, v[string(k2)])
  2925. }
  2926. } else {
  2927. for k2, v2 := range v {
  2928. if esep {
  2929. ee.WriteMapElemKey()
  2930. }
  2931. if asSymbols {
  2932. ee.EncodeSymbol(k2)
  2933. } else {
  2934. ee.EncodeString(c_UTF8, k2)
  2935. }
  2936. if esep {
  2937. ee.WriteMapElemValue()
  2938. }
  2939. ee.EncodeString(c_UTF8, v2)
  2940. }
  2941. }
  2942. ee.WriteMapEnd()
  2943. }
  2944. func (e *Encoder) fastpathEncMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  2945. fastpathTV.EncMapStringUintV(rv2i(rv).(map[string]uint), e)
  2946. }
  2947. func (_ fastpathT) EncMapStringUintV(v map[string]uint, e *Encoder) {
  2948. if v == nil {
  2949. e.e.EncodeNil()
  2950. return
  2951. }
  2952. ee, esep := e.e, e.hh.hasElemSeparators()
  2953. ee.WriteMapStart(len(v))
  2954. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2955. if e.h.Canonical {
  2956. v2 := make([]string, len(v))
  2957. var i int
  2958. for k, _ := range v {
  2959. v2[i] = string(k)
  2960. i++
  2961. }
  2962. sort.Sort(stringSlice(v2))
  2963. for _, k2 := range v2 {
  2964. if esep {
  2965. ee.WriteMapElemKey()
  2966. }
  2967. if asSymbols {
  2968. ee.EncodeSymbol(k2)
  2969. } else {
  2970. ee.EncodeString(c_UTF8, k2)
  2971. }
  2972. if esep {
  2973. ee.WriteMapElemValue()
  2974. }
  2975. ee.EncodeUint(uint64(v[string(k2)]))
  2976. }
  2977. } else {
  2978. for k2, v2 := range v {
  2979. if esep {
  2980. ee.WriteMapElemKey()
  2981. }
  2982. if asSymbols {
  2983. ee.EncodeSymbol(k2)
  2984. } else {
  2985. ee.EncodeString(c_UTF8, k2)
  2986. }
  2987. if esep {
  2988. ee.WriteMapElemValue()
  2989. }
  2990. ee.EncodeUint(uint64(v2))
  2991. }
  2992. }
  2993. ee.WriteMapEnd()
  2994. }
  2995. func (e *Encoder) fastpathEncMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  2996. fastpathTV.EncMapStringUint8V(rv2i(rv).(map[string]uint8), e)
  2997. }
  2998. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, e *Encoder) {
  2999. if v == nil {
  3000. e.e.EncodeNil()
  3001. return
  3002. }
  3003. ee, esep := e.e, e.hh.hasElemSeparators()
  3004. ee.WriteMapStart(len(v))
  3005. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3006. if e.h.Canonical {
  3007. v2 := make([]string, len(v))
  3008. var i int
  3009. for k, _ := range v {
  3010. v2[i] = string(k)
  3011. i++
  3012. }
  3013. sort.Sort(stringSlice(v2))
  3014. for _, k2 := range v2 {
  3015. if esep {
  3016. ee.WriteMapElemKey()
  3017. }
  3018. if asSymbols {
  3019. ee.EncodeSymbol(k2)
  3020. } else {
  3021. ee.EncodeString(c_UTF8, k2)
  3022. }
  3023. if esep {
  3024. ee.WriteMapElemValue()
  3025. }
  3026. ee.EncodeUint(uint64(v[string(k2)]))
  3027. }
  3028. } else {
  3029. for k2, v2 := range v {
  3030. if esep {
  3031. ee.WriteMapElemKey()
  3032. }
  3033. if asSymbols {
  3034. ee.EncodeSymbol(k2)
  3035. } else {
  3036. ee.EncodeString(c_UTF8, k2)
  3037. }
  3038. if esep {
  3039. ee.WriteMapElemValue()
  3040. }
  3041. ee.EncodeUint(uint64(v2))
  3042. }
  3043. }
  3044. ee.WriteMapEnd()
  3045. }
  3046. func (e *Encoder) fastpathEncMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  3047. fastpathTV.EncMapStringUint16V(rv2i(rv).(map[string]uint16), e)
  3048. }
  3049. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, e *Encoder) {
  3050. if v == nil {
  3051. e.e.EncodeNil()
  3052. return
  3053. }
  3054. ee, esep := e.e, e.hh.hasElemSeparators()
  3055. ee.WriteMapStart(len(v))
  3056. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3057. if e.h.Canonical {
  3058. v2 := make([]string, len(v))
  3059. var i int
  3060. for k, _ := range v {
  3061. v2[i] = string(k)
  3062. i++
  3063. }
  3064. sort.Sort(stringSlice(v2))
  3065. for _, k2 := range v2 {
  3066. if esep {
  3067. ee.WriteMapElemKey()
  3068. }
  3069. if asSymbols {
  3070. ee.EncodeSymbol(k2)
  3071. } else {
  3072. ee.EncodeString(c_UTF8, k2)
  3073. }
  3074. if esep {
  3075. ee.WriteMapElemValue()
  3076. }
  3077. ee.EncodeUint(uint64(v[string(k2)]))
  3078. }
  3079. } else {
  3080. for k2, v2 := range v {
  3081. if esep {
  3082. ee.WriteMapElemKey()
  3083. }
  3084. if asSymbols {
  3085. ee.EncodeSymbol(k2)
  3086. } else {
  3087. ee.EncodeString(c_UTF8, k2)
  3088. }
  3089. if esep {
  3090. ee.WriteMapElemValue()
  3091. }
  3092. ee.EncodeUint(uint64(v2))
  3093. }
  3094. }
  3095. ee.WriteMapEnd()
  3096. }
  3097. func (e *Encoder) fastpathEncMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  3098. fastpathTV.EncMapStringUint32V(rv2i(rv).(map[string]uint32), e)
  3099. }
  3100. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, e *Encoder) {
  3101. if v == nil {
  3102. e.e.EncodeNil()
  3103. return
  3104. }
  3105. ee, esep := e.e, e.hh.hasElemSeparators()
  3106. ee.WriteMapStart(len(v))
  3107. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3108. if e.h.Canonical {
  3109. v2 := make([]string, len(v))
  3110. var i int
  3111. for k, _ := range v {
  3112. v2[i] = string(k)
  3113. i++
  3114. }
  3115. sort.Sort(stringSlice(v2))
  3116. for _, k2 := range v2 {
  3117. if esep {
  3118. ee.WriteMapElemKey()
  3119. }
  3120. if asSymbols {
  3121. ee.EncodeSymbol(k2)
  3122. } else {
  3123. ee.EncodeString(c_UTF8, k2)
  3124. }
  3125. if esep {
  3126. ee.WriteMapElemValue()
  3127. }
  3128. ee.EncodeUint(uint64(v[string(k2)]))
  3129. }
  3130. } else {
  3131. for k2, v2 := range v {
  3132. if esep {
  3133. ee.WriteMapElemKey()
  3134. }
  3135. if asSymbols {
  3136. ee.EncodeSymbol(k2)
  3137. } else {
  3138. ee.EncodeString(c_UTF8, k2)
  3139. }
  3140. if esep {
  3141. ee.WriteMapElemValue()
  3142. }
  3143. ee.EncodeUint(uint64(v2))
  3144. }
  3145. }
  3146. ee.WriteMapEnd()
  3147. }
  3148. func (e *Encoder) fastpathEncMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  3149. fastpathTV.EncMapStringUint64V(rv2i(rv).(map[string]uint64), e)
  3150. }
  3151. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, e *Encoder) {
  3152. if v == nil {
  3153. e.e.EncodeNil()
  3154. return
  3155. }
  3156. ee, esep := e.e, e.hh.hasElemSeparators()
  3157. ee.WriteMapStart(len(v))
  3158. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3159. if e.h.Canonical {
  3160. v2 := make([]string, len(v))
  3161. var i int
  3162. for k, _ := range v {
  3163. v2[i] = string(k)
  3164. i++
  3165. }
  3166. sort.Sort(stringSlice(v2))
  3167. for _, k2 := range v2 {
  3168. if esep {
  3169. ee.WriteMapElemKey()
  3170. }
  3171. if asSymbols {
  3172. ee.EncodeSymbol(k2)
  3173. } else {
  3174. ee.EncodeString(c_UTF8, k2)
  3175. }
  3176. if esep {
  3177. ee.WriteMapElemValue()
  3178. }
  3179. ee.EncodeUint(uint64(v[string(k2)]))
  3180. }
  3181. } else {
  3182. for k2, v2 := range v {
  3183. if esep {
  3184. ee.WriteMapElemKey()
  3185. }
  3186. if asSymbols {
  3187. ee.EncodeSymbol(k2)
  3188. } else {
  3189. ee.EncodeString(c_UTF8, k2)
  3190. }
  3191. if esep {
  3192. ee.WriteMapElemValue()
  3193. }
  3194. ee.EncodeUint(uint64(v2))
  3195. }
  3196. }
  3197. ee.WriteMapEnd()
  3198. }
  3199. func (e *Encoder) fastpathEncMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  3200. fastpathTV.EncMapStringUintptrV(rv2i(rv).(map[string]uintptr), e)
  3201. }
  3202. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, e *Encoder) {
  3203. if v == nil {
  3204. e.e.EncodeNil()
  3205. return
  3206. }
  3207. ee, esep := e.e, e.hh.hasElemSeparators()
  3208. ee.WriteMapStart(len(v))
  3209. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3210. if e.h.Canonical {
  3211. v2 := make([]string, len(v))
  3212. var i int
  3213. for k, _ := range v {
  3214. v2[i] = string(k)
  3215. i++
  3216. }
  3217. sort.Sort(stringSlice(v2))
  3218. for _, k2 := range v2 {
  3219. if esep {
  3220. ee.WriteMapElemKey()
  3221. }
  3222. if asSymbols {
  3223. ee.EncodeSymbol(k2)
  3224. } else {
  3225. ee.EncodeString(c_UTF8, k2)
  3226. }
  3227. if esep {
  3228. ee.WriteMapElemValue()
  3229. }
  3230. e.encode(v[string(k2)])
  3231. }
  3232. } else {
  3233. for k2, v2 := range v {
  3234. if esep {
  3235. ee.WriteMapElemKey()
  3236. }
  3237. if asSymbols {
  3238. ee.EncodeSymbol(k2)
  3239. } else {
  3240. ee.EncodeString(c_UTF8, k2)
  3241. }
  3242. if esep {
  3243. ee.WriteMapElemValue()
  3244. }
  3245. e.encode(v2)
  3246. }
  3247. }
  3248. ee.WriteMapEnd()
  3249. }
  3250. func (e *Encoder) fastpathEncMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  3251. fastpathTV.EncMapStringIntV(rv2i(rv).(map[string]int), e)
  3252. }
  3253. func (_ fastpathT) EncMapStringIntV(v map[string]int, e *Encoder) {
  3254. if v == nil {
  3255. e.e.EncodeNil()
  3256. return
  3257. }
  3258. ee, esep := e.e, e.hh.hasElemSeparators()
  3259. ee.WriteMapStart(len(v))
  3260. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3261. if e.h.Canonical {
  3262. v2 := make([]string, len(v))
  3263. var i int
  3264. for k, _ := range v {
  3265. v2[i] = string(k)
  3266. i++
  3267. }
  3268. sort.Sort(stringSlice(v2))
  3269. for _, k2 := range v2 {
  3270. if esep {
  3271. ee.WriteMapElemKey()
  3272. }
  3273. if asSymbols {
  3274. ee.EncodeSymbol(k2)
  3275. } else {
  3276. ee.EncodeString(c_UTF8, k2)
  3277. }
  3278. if esep {
  3279. ee.WriteMapElemValue()
  3280. }
  3281. ee.EncodeInt(int64(v[string(k2)]))
  3282. }
  3283. } else {
  3284. for k2, v2 := range v {
  3285. if esep {
  3286. ee.WriteMapElemKey()
  3287. }
  3288. if asSymbols {
  3289. ee.EncodeSymbol(k2)
  3290. } else {
  3291. ee.EncodeString(c_UTF8, k2)
  3292. }
  3293. if esep {
  3294. ee.WriteMapElemValue()
  3295. }
  3296. ee.EncodeInt(int64(v2))
  3297. }
  3298. }
  3299. ee.WriteMapEnd()
  3300. }
  3301. func (e *Encoder) fastpathEncMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  3302. fastpathTV.EncMapStringInt8V(rv2i(rv).(map[string]int8), e)
  3303. }
  3304. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, e *Encoder) {
  3305. if v == nil {
  3306. e.e.EncodeNil()
  3307. return
  3308. }
  3309. ee, esep := e.e, e.hh.hasElemSeparators()
  3310. ee.WriteMapStart(len(v))
  3311. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3312. if e.h.Canonical {
  3313. v2 := make([]string, len(v))
  3314. var i int
  3315. for k, _ := range v {
  3316. v2[i] = string(k)
  3317. i++
  3318. }
  3319. sort.Sort(stringSlice(v2))
  3320. for _, k2 := range v2 {
  3321. if esep {
  3322. ee.WriteMapElemKey()
  3323. }
  3324. if asSymbols {
  3325. ee.EncodeSymbol(k2)
  3326. } else {
  3327. ee.EncodeString(c_UTF8, k2)
  3328. }
  3329. if esep {
  3330. ee.WriteMapElemValue()
  3331. }
  3332. ee.EncodeInt(int64(v[string(k2)]))
  3333. }
  3334. } else {
  3335. for k2, v2 := range v {
  3336. if esep {
  3337. ee.WriteMapElemKey()
  3338. }
  3339. if asSymbols {
  3340. ee.EncodeSymbol(k2)
  3341. } else {
  3342. ee.EncodeString(c_UTF8, k2)
  3343. }
  3344. if esep {
  3345. ee.WriteMapElemValue()
  3346. }
  3347. ee.EncodeInt(int64(v2))
  3348. }
  3349. }
  3350. ee.WriteMapEnd()
  3351. }
  3352. func (e *Encoder) fastpathEncMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  3353. fastpathTV.EncMapStringInt16V(rv2i(rv).(map[string]int16), e)
  3354. }
  3355. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, e *Encoder) {
  3356. if v == nil {
  3357. e.e.EncodeNil()
  3358. return
  3359. }
  3360. ee, esep := e.e, e.hh.hasElemSeparators()
  3361. ee.WriteMapStart(len(v))
  3362. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3363. if e.h.Canonical {
  3364. v2 := make([]string, len(v))
  3365. var i int
  3366. for k, _ := range v {
  3367. v2[i] = string(k)
  3368. i++
  3369. }
  3370. sort.Sort(stringSlice(v2))
  3371. for _, k2 := range v2 {
  3372. if esep {
  3373. ee.WriteMapElemKey()
  3374. }
  3375. if asSymbols {
  3376. ee.EncodeSymbol(k2)
  3377. } else {
  3378. ee.EncodeString(c_UTF8, k2)
  3379. }
  3380. if esep {
  3381. ee.WriteMapElemValue()
  3382. }
  3383. ee.EncodeInt(int64(v[string(k2)]))
  3384. }
  3385. } else {
  3386. for k2, v2 := range v {
  3387. if esep {
  3388. ee.WriteMapElemKey()
  3389. }
  3390. if asSymbols {
  3391. ee.EncodeSymbol(k2)
  3392. } else {
  3393. ee.EncodeString(c_UTF8, k2)
  3394. }
  3395. if esep {
  3396. ee.WriteMapElemValue()
  3397. }
  3398. ee.EncodeInt(int64(v2))
  3399. }
  3400. }
  3401. ee.WriteMapEnd()
  3402. }
  3403. func (e *Encoder) fastpathEncMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  3404. fastpathTV.EncMapStringInt32V(rv2i(rv).(map[string]int32), e)
  3405. }
  3406. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, e *Encoder) {
  3407. if v == nil {
  3408. e.e.EncodeNil()
  3409. return
  3410. }
  3411. ee, esep := e.e, e.hh.hasElemSeparators()
  3412. ee.WriteMapStart(len(v))
  3413. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3414. if e.h.Canonical {
  3415. v2 := make([]string, len(v))
  3416. var i int
  3417. for k, _ := range v {
  3418. v2[i] = string(k)
  3419. i++
  3420. }
  3421. sort.Sort(stringSlice(v2))
  3422. for _, k2 := range v2 {
  3423. if esep {
  3424. ee.WriteMapElemKey()
  3425. }
  3426. if asSymbols {
  3427. ee.EncodeSymbol(k2)
  3428. } else {
  3429. ee.EncodeString(c_UTF8, k2)
  3430. }
  3431. if esep {
  3432. ee.WriteMapElemValue()
  3433. }
  3434. ee.EncodeInt(int64(v[string(k2)]))
  3435. }
  3436. } else {
  3437. for k2, v2 := range v {
  3438. if esep {
  3439. ee.WriteMapElemKey()
  3440. }
  3441. if asSymbols {
  3442. ee.EncodeSymbol(k2)
  3443. } else {
  3444. ee.EncodeString(c_UTF8, k2)
  3445. }
  3446. if esep {
  3447. ee.WriteMapElemValue()
  3448. }
  3449. ee.EncodeInt(int64(v2))
  3450. }
  3451. }
  3452. ee.WriteMapEnd()
  3453. }
  3454. func (e *Encoder) fastpathEncMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  3455. fastpathTV.EncMapStringInt64V(rv2i(rv).(map[string]int64), e)
  3456. }
  3457. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, e *Encoder) {
  3458. if v == nil {
  3459. e.e.EncodeNil()
  3460. return
  3461. }
  3462. ee, esep := e.e, e.hh.hasElemSeparators()
  3463. ee.WriteMapStart(len(v))
  3464. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3465. if e.h.Canonical {
  3466. v2 := make([]string, len(v))
  3467. var i int
  3468. for k, _ := range v {
  3469. v2[i] = string(k)
  3470. i++
  3471. }
  3472. sort.Sort(stringSlice(v2))
  3473. for _, k2 := range v2 {
  3474. if esep {
  3475. ee.WriteMapElemKey()
  3476. }
  3477. if asSymbols {
  3478. ee.EncodeSymbol(k2)
  3479. } else {
  3480. ee.EncodeString(c_UTF8, k2)
  3481. }
  3482. if esep {
  3483. ee.WriteMapElemValue()
  3484. }
  3485. ee.EncodeInt(int64(v[string(k2)]))
  3486. }
  3487. } else {
  3488. for k2, v2 := range v {
  3489. if esep {
  3490. ee.WriteMapElemKey()
  3491. }
  3492. if asSymbols {
  3493. ee.EncodeSymbol(k2)
  3494. } else {
  3495. ee.EncodeString(c_UTF8, k2)
  3496. }
  3497. if esep {
  3498. ee.WriteMapElemValue()
  3499. }
  3500. ee.EncodeInt(int64(v2))
  3501. }
  3502. }
  3503. ee.WriteMapEnd()
  3504. }
  3505. func (e *Encoder) fastpathEncMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  3506. fastpathTV.EncMapStringFloat32V(rv2i(rv).(map[string]float32), e)
  3507. }
  3508. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, e *Encoder) {
  3509. if v == nil {
  3510. e.e.EncodeNil()
  3511. return
  3512. }
  3513. ee, esep := e.e, e.hh.hasElemSeparators()
  3514. ee.WriteMapStart(len(v))
  3515. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3516. if e.h.Canonical {
  3517. v2 := make([]string, len(v))
  3518. var i int
  3519. for k, _ := range v {
  3520. v2[i] = string(k)
  3521. i++
  3522. }
  3523. sort.Sort(stringSlice(v2))
  3524. for _, k2 := range v2 {
  3525. if esep {
  3526. ee.WriteMapElemKey()
  3527. }
  3528. if asSymbols {
  3529. ee.EncodeSymbol(k2)
  3530. } else {
  3531. ee.EncodeString(c_UTF8, k2)
  3532. }
  3533. if esep {
  3534. ee.WriteMapElemValue()
  3535. }
  3536. ee.EncodeFloat32(v[string(k2)])
  3537. }
  3538. } else {
  3539. for k2, v2 := range v {
  3540. if esep {
  3541. ee.WriteMapElemKey()
  3542. }
  3543. if asSymbols {
  3544. ee.EncodeSymbol(k2)
  3545. } else {
  3546. ee.EncodeString(c_UTF8, k2)
  3547. }
  3548. if esep {
  3549. ee.WriteMapElemValue()
  3550. }
  3551. ee.EncodeFloat32(v2)
  3552. }
  3553. }
  3554. ee.WriteMapEnd()
  3555. }
  3556. func (e *Encoder) fastpathEncMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  3557. fastpathTV.EncMapStringFloat64V(rv2i(rv).(map[string]float64), e)
  3558. }
  3559. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, e *Encoder) {
  3560. if v == nil {
  3561. e.e.EncodeNil()
  3562. return
  3563. }
  3564. ee, esep := e.e, e.hh.hasElemSeparators()
  3565. ee.WriteMapStart(len(v))
  3566. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3567. if e.h.Canonical {
  3568. v2 := make([]string, len(v))
  3569. var i int
  3570. for k, _ := range v {
  3571. v2[i] = string(k)
  3572. i++
  3573. }
  3574. sort.Sort(stringSlice(v2))
  3575. for _, k2 := range v2 {
  3576. if esep {
  3577. ee.WriteMapElemKey()
  3578. }
  3579. if asSymbols {
  3580. ee.EncodeSymbol(k2)
  3581. } else {
  3582. ee.EncodeString(c_UTF8, k2)
  3583. }
  3584. if esep {
  3585. ee.WriteMapElemValue()
  3586. }
  3587. ee.EncodeFloat64(v[string(k2)])
  3588. }
  3589. } else {
  3590. for k2, v2 := range v {
  3591. if esep {
  3592. ee.WriteMapElemKey()
  3593. }
  3594. if asSymbols {
  3595. ee.EncodeSymbol(k2)
  3596. } else {
  3597. ee.EncodeString(c_UTF8, k2)
  3598. }
  3599. if esep {
  3600. ee.WriteMapElemValue()
  3601. }
  3602. ee.EncodeFloat64(v2)
  3603. }
  3604. }
  3605. ee.WriteMapEnd()
  3606. }
  3607. func (e *Encoder) fastpathEncMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  3608. fastpathTV.EncMapStringBoolV(rv2i(rv).(map[string]bool), e)
  3609. }
  3610. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, e *Encoder) {
  3611. if v == nil {
  3612. e.e.EncodeNil()
  3613. return
  3614. }
  3615. ee, esep := e.e, e.hh.hasElemSeparators()
  3616. ee.WriteMapStart(len(v))
  3617. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3618. if e.h.Canonical {
  3619. v2 := make([]string, len(v))
  3620. var i int
  3621. for k, _ := range v {
  3622. v2[i] = string(k)
  3623. i++
  3624. }
  3625. sort.Sort(stringSlice(v2))
  3626. for _, k2 := range v2 {
  3627. if esep {
  3628. ee.WriteMapElemKey()
  3629. }
  3630. if asSymbols {
  3631. ee.EncodeSymbol(k2)
  3632. } else {
  3633. ee.EncodeString(c_UTF8, k2)
  3634. }
  3635. if esep {
  3636. ee.WriteMapElemValue()
  3637. }
  3638. ee.EncodeBool(v[string(k2)])
  3639. }
  3640. } else {
  3641. for k2, v2 := range v {
  3642. if esep {
  3643. ee.WriteMapElemKey()
  3644. }
  3645. if asSymbols {
  3646. ee.EncodeSymbol(k2)
  3647. } else {
  3648. ee.EncodeString(c_UTF8, k2)
  3649. }
  3650. if esep {
  3651. ee.WriteMapElemValue()
  3652. }
  3653. ee.EncodeBool(v2)
  3654. }
  3655. }
  3656. ee.WriteMapEnd()
  3657. }
  3658. func (e *Encoder) fastpathEncMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  3659. fastpathTV.EncMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), e)
  3660. }
  3661. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, e *Encoder) {
  3662. if v == nil {
  3663. e.e.EncodeNil()
  3664. return
  3665. }
  3666. ee, esep := e.e, e.hh.hasElemSeparators()
  3667. ee.WriteMapStart(len(v))
  3668. if e.h.Canonical {
  3669. v2 := make([]float64, len(v))
  3670. var i int
  3671. for k, _ := range v {
  3672. v2[i] = float64(k)
  3673. i++
  3674. }
  3675. sort.Sort(floatSlice(v2))
  3676. for _, k2 := range v2 {
  3677. if esep {
  3678. ee.WriteMapElemKey()
  3679. }
  3680. ee.EncodeFloat32(float32(k2))
  3681. if esep {
  3682. ee.WriteMapElemValue()
  3683. }
  3684. e.encode(v[float32(k2)])
  3685. }
  3686. } else {
  3687. for k2, v2 := range v {
  3688. if esep {
  3689. ee.WriteMapElemKey()
  3690. }
  3691. ee.EncodeFloat32(k2)
  3692. if esep {
  3693. ee.WriteMapElemValue()
  3694. }
  3695. e.encode(v2)
  3696. }
  3697. }
  3698. ee.WriteMapEnd()
  3699. }
  3700. func (e *Encoder) fastpathEncMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  3701. fastpathTV.EncMapFloat32StringV(rv2i(rv).(map[float32]string), e)
  3702. }
  3703. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, e *Encoder) {
  3704. if v == nil {
  3705. e.e.EncodeNil()
  3706. return
  3707. }
  3708. ee, esep := e.e, e.hh.hasElemSeparators()
  3709. ee.WriteMapStart(len(v))
  3710. if e.h.Canonical {
  3711. v2 := make([]float64, len(v))
  3712. var i int
  3713. for k, _ := range v {
  3714. v2[i] = float64(k)
  3715. i++
  3716. }
  3717. sort.Sort(floatSlice(v2))
  3718. for _, k2 := range v2 {
  3719. if esep {
  3720. ee.WriteMapElemKey()
  3721. }
  3722. ee.EncodeFloat32(float32(k2))
  3723. if esep {
  3724. ee.WriteMapElemValue()
  3725. }
  3726. ee.EncodeString(c_UTF8, v[float32(k2)])
  3727. }
  3728. } else {
  3729. for k2, v2 := range v {
  3730. if esep {
  3731. ee.WriteMapElemKey()
  3732. }
  3733. ee.EncodeFloat32(k2)
  3734. if esep {
  3735. ee.WriteMapElemValue()
  3736. }
  3737. ee.EncodeString(c_UTF8, v2)
  3738. }
  3739. }
  3740. ee.WriteMapEnd()
  3741. }
  3742. func (e *Encoder) fastpathEncMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  3743. fastpathTV.EncMapFloat32UintV(rv2i(rv).(map[float32]uint), e)
  3744. }
  3745. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, e *Encoder) {
  3746. if v == nil {
  3747. e.e.EncodeNil()
  3748. return
  3749. }
  3750. ee, esep := e.e, e.hh.hasElemSeparators()
  3751. ee.WriteMapStart(len(v))
  3752. if e.h.Canonical {
  3753. v2 := make([]float64, len(v))
  3754. var i int
  3755. for k, _ := range v {
  3756. v2[i] = float64(k)
  3757. i++
  3758. }
  3759. sort.Sort(floatSlice(v2))
  3760. for _, k2 := range v2 {
  3761. if esep {
  3762. ee.WriteMapElemKey()
  3763. }
  3764. ee.EncodeFloat32(float32(k2))
  3765. if esep {
  3766. ee.WriteMapElemValue()
  3767. }
  3768. ee.EncodeUint(uint64(v[float32(k2)]))
  3769. }
  3770. } else {
  3771. for k2, v2 := range v {
  3772. if esep {
  3773. ee.WriteMapElemKey()
  3774. }
  3775. ee.EncodeFloat32(k2)
  3776. if esep {
  3777. ee.WriteMapElemValue()
  3778. }
  3779. ee.EncodeUint(uint64(v2))
  3780. }
  3781. }
  3782. ee.WriteMapEnd()
  3783. }
  3784. func (e *Encoder) fastpathEncMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  3785. fastpathTV.EncMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), e)
  3786. }
  3787. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, e *Encoder) {
  3788. if v == nil {
  3789. e.e.EncodeNil()
  3790. return
  3791. }
  3792. ee, esep := e.e, e.hh.hasElemSeparators()
  3793. ee.WriteMapStart(len(v))
  3794. if e.h.Canonical {
  3795. v2 := make([]float64, len(v))
  3796. var i int
  3797. for k, _ := range v {
  3798. v2[i] = float64(k)
  3799. i++
  3800. }
  3801. sort.Sort(floatSlice(v2))
  3802. for _, k2 := range v2 {
  3803. if esep {
  3804. ee.WriteMapElemKey()
  3805. }
  3806. ee.EncodeFloat32(float32(k2))
  3807. if esep {
  3808. ee.WriteMapElemValue()
  3809. }
  3810. ee.EncodeUint(uint64(v[float32(k2)]))
  3811. }
  3812. } else {
  3813. for k2, v2 := range v {
  3814. if esep {
  3815. ee.WriteMapElemKey()
  3816. }
  3817. ee.EncodeFloat32(k2)
  3818. if esep {
  3819. ee.WriteMapElemValue()
  3820. }
  3821. ee.EncodeUint(uint64(v2))
  3822. }
  3823. }
  3824. ee.WriteMapEnd()
  3825. }
  3826. func (e *Encoder) fastpathEncMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  3827. fastpathTV.EncMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), e)
  3828. }
  3829. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, e *Encoder) {
  3830. if v == nil {
  3831. e.e.EncodeNil()
  3832. return
  3833. }
  3834. ee, esep := e.e, e.hh.hasElemSeparators()
  3835. ee.WriteMapStart(len(v))
  3836. if e.h.Canonical {
  3837. v2 := make([]float64, len(v))
  3838. var i int
  3839. for k, _ := range v {
  3840. v2[i] = float64(k)
  3841. i++
  3842. }
  3843. sort.Sort(floatSlice(v2))
  3844. for _, k2 := range v2 {
  3845. if esep {
  3846. ee.WriteMapElemKey()
  3847. }
  3848. ee.EncodeFloat32(float32(k2))
  3849. if esep {
  3850. ee.WriteMapElemValue()
  3851. }
  3852. ee.EncodeUint(uint64(v[float32(k2)]))
  3853. }
  3854. } else {
  3855. for k2, v2 := range v {
  3856. if esep {
  3857. ee.WriteMapElemKey()
  3858. }
  3859. ee.EncodeFloat32(k2)
  3860. if esep {
  3861. ee.WriteMapElemValue()
  3862. }
  3863. ee.EncodeUint(uint64(v2))
  3864. }
  3865. }
  3866. ee.WriteMapEnd()
  3867. }
  3868. func (e *Encoder) fastpathEncMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  3869. fastpathTV.EncMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), e)
  3870. }
  3871. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, e *Encoder) {
  3872. if v == nil {
  3873. e.e.EncodeNil()
  3874. return
  3875. }
  3876. ee, esep := e.e, e.hh.hasElemSeparators()
  3877. ee.WriteMapStart(len(v))
  3878. if e.h.Canonical {
  3879. v2 := make([]float64, len(v))
  3880. var i int
  3881. for k, _ := range v {
  3882. v2[i] = float64(k)
  3883. i++
  3884. }
  3885. sort.Sort(floatSlice(v2))
  3886. for _, k2 := range v2 {
  3887. if esep {
  3888. ee.WriteMapElemKey()
  3889. }
  3890. ee.EncodeFloat32(float32(k2))
  3891. if esep {
  3892. ee.WriteMapElemValue()
  3893. }
  3894. ee.EncodeUint(uint64(v[float32(k2)]))
  3895. }
  3896. } else {
  3897. for k2, v2 := range v {
  3898. if esep {
  3899. ee.WriteMapElemKey()
  3900. }
  3901. ee.EncodeFloat32(k2)
  3902. if esep {
  3903. ee.WriteMapElemValue()
  3904. }
  3905. ee.EncodeUint(uint64(v2))
  3906. }
  3907. }
  3908. ee.WriteMapEnd()
  3909. }
  3910. func (e *Encoder) fastpathEncMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  3911. fastpathTV.EncMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), e)
  3912. }
  3913. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, e *Encoder) {
  3914. if v == nil {
  3915. e.e.EncodeNil()
  3916. return
  3917. }
  3918. ee, esep := e.e, e.hh.hasElemSeparators()
  3919. ee.WriteMapStart(len(v))
  3920. if e.h.Canonical {
  3921. v2 := make([]float64, len(v))
  3922. var i int
  3923. for k, _ := range v {
  3924. v2[i] = float64(k)
  3925. i++
  3926. }
  3927. sort.Sort(floatSlice(v2))
  3928. for _, k2 := range v2 {
  3929. if esep {
  3930. ee.WriteMapElemKey()
  3931. }
  3932. ee.EncodeFloat32(float32(k2))
  3933. if esep {
  3934. ee.WriteMapElemValue()
  3935. }
  3936. ee.EncodeUint(uint64(v[float32(k2)]))
  3937. }
  3938. } else {
  3939. for k2, v2 := range v {
  3940. if esep {
  3941. ee.WriteMapElemKey()
  3942. }
  3943. ee.EncodeFloat32(k2)
  3944. if esep {
  3945. ee.WriteMapElemValue()
  3946. }
  3947. ee.EncodeUint(uint64(v2))
  3948. }
  3949. }
  3950. ee.WriteMapEnd()
  3951. }
  3952. func (e *Encoder) fastpathEncMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  3953. fastpathTV.EncMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), e)
  3954. }
  3955. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, e *Encoder) {
  3956. if v == nil {
  3957. e.e.EncodeNil()
  3958. return
  3959. }
  3960. ee, esep := e.e, e.hh.hasElemSeparators()
  3961. ee.WriteMapStart(len(v))
  3962. if e.h.Canonical {
  3963. v2 := make([]float64, len(v))
  3964. var i int
  3965. for k, _ := range v {
  3966. v2[i] = float64(k)
  3967. i++
  3968. }
  3969. sort.Sort(floatSlice(v2))
  3970. for _, k2 := range v2 {
  3971. if esep {
  3972. ee.WriteMapElemKey()
  3973. }
  3974. ee.EncodeFloat32(float32(k2))
  3975. if esep {
  3976. ee.WriteMapElemValue()
  3977. }
  3978. e.encode(v[float32(k2)])
  3979. }
  3980. } else {
  3981. for k2, v2 := range v {
  3982. if esep {
  3983. ee.WriteMapElemKey()
  3984. }
  3985. ee.EncodeFloat32(k2)
  3986. if esep {
  3987. ee.WriteMapElemValue()
  3988. }
  3989. e.encode(v2)
  3990. }
  3991. }
  3992. ee.WriteMapEnd()
  3993. }
  3994. func (e *Encoder) fastpathEncMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  3995. fastpathTV.EncMapFloat32IntV(rv2i(rv).(map[float32]int), e)
  3996. }
  3997. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, e *Encoder) {
  3998. if v == nil {
  3999. e.e.EncodeNil()
  4000. return
  4001. }
  4002. ee, esep := e.e, e.hh.hasElemSeparators()
  4003. ee.WriteMapStart(len(v))
  4004. if e.h.Canonical {
  4005. v2 := make([]float64, len(v))
  4006. var i int
  4007. for k, _ := range v {
  4008. v2[i] = float64(k)
  4009. i++
  4010. }
  4011. sort.Sort(floatSlice(v2))
  4012. for _, k2 := range v2 {
  4013. if esep {
  4014. ee.WriteMapElemKey()
  4015. }
  4016. ee.EncodeFloat32(float32(k2))
  4017. if esep {
  4018. ee.WriteMapElemValue()
  4019. }
  4020. ee.EncodeInt(int64(v[float32(k2)]))
  4021. }
  4022. } else {
  4023. for k2, v2 := range v {
  4024. if esep {
  4025. ee.WriteMapElemKey()
  4026. }
  4027. ee.EncodeFloat32(k2)
  4028. if esep {
  4029. ee.WriteMapElemValue()
  4030. }
  4031. ee.EncodeInt(int64(v2))
  4032. }
  4033. }
  4034. ee.WriteMapEnd()
  4035. }
  4036. func (e *Encoder) fastpathEncMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  4037. fastpathTV.EncMapFloat32Int8V(rv2i(rv).(map[float32]int8), e)
  4038. }
  4039. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, e *Encoder) {
  4040. if v == nil {
  4041. e.e.EncodeNil()
  4042. return
  4043. }
  4044. ee, esep := e.e, e.hh.hasElemSeparators()
  4045. ee.WriteMapStart(len(v))
  4046. if e.h.Canonical {
  4047. v2 := make([]float64, len(v))
  4048. var i int
  4049. for k, _ := range v {
  4050. v2[i] = float64(k)
  4051. i++
  4052. }
  4053. sort.Sort(floatSlice(v2))
  4054. for _, k2 := range v2 {
  4055. if esep {
  4056. ee.WriteMapElemKey()
  4057. }
  4058. ee.EncodeFloat32(float32(k2))
  4059. if esep {
  4060. ee.WriteMapElemValue()
  4061. }
  4062. ee.EncodeInt(int64(v[float32(k2)]))
  4063. }
  4064. } else {
  4065. for k2, v2 := range v {
  4066. if esep {
  4067. ee.WriteMapElemKey()
  4068. }
  4069. ee.EncodeFloat32(k2)
  4070. if esep {
  4071. ee.WriteMapElemValue()
  4072. }
  4073. ee.EncodeInt(int64(v2))
  4074. }
  4075. }
  4076. ee.WriteMapEnd()
  4077. }
  4078. func (e *Encoder) fastpathEncMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  4079. fastpathTV.EncMapFloat32Int16V(rv2i(rv).(map[float32]int16), e)
  4080. }
  4081. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, e *Encoder) {
  4082. if v == nil {
  4083. e.e.EncodeNil()
  4084. return
  4085. }
  4086. ee, esep := e.e, e.hh.hasElemSeparators()
  4087. ee.WriteMapStart(len(v))
  4088. if e.h.Canonical {
  4089. v2 := make([]float64, len(v))
  4090. var i int
  4091. for k, _ := range v {
  4092. v2[i] = float64(k)
  4093. i++
  4094. }
  4095. sort.Sort(floatSlice(v2))
  4096. for _, k2 := range v2 {
  4097. if esep {
  4098. ee.WriteMapElemKey()
  4099. }
  4100. ee.EncodeFloat32(float32(k2))
  4101. if esep {
  4102. ee.WriteMapElemValue()
  4103. }
  4104. ee.EncodeInt(int64(v[float32(k2)]))
  4105. }
  4106. } else {
  4107. for k2, v2 := range v {
  4108. if esep {
  4109. ee.WriteMapElemKey()
  4110. }
  4111. ee.EncodeFloat32(k2)
  4112. if esep {
  4113. ee.WriteMapElemValue()
  4114. }
  4115. ee.EncodeInt(int64(v2))
  4116. }
  4117. }
  4118. ee.WriteMapEnd()
  4119. }
  4120. func (e *Encoder) fastpathEncMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  4121. fastpathTV.EncMapFloat32Int32V(rv2i(rv).(map[float32]int32), e)
  4122. }
  4123. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, e *Encoder) {
  4124. if v == nil {
  4125. e.e.EncodeNil()
  4126. return
  4127. }
  4128. ee, esep := e.e, e.hh.hasElemSeparators()
  4129. ee.WriteMapStart(len(v))
  4130. if e.h.Canonical {
  4131. v2 := make([]float64, len(v))
  4132. var i int
  4133. for k, _ := range v {
  4134. v2[i] = float64(k)
  4135. i++
  4136. }
  4137. sort.Sort(floatSlice(v2))
  4138. for _, k2 := range v2 {
  4139. if esep {
  4140. ee.WriteMapElemKey()
  4141. }
  4142. ee.EncodeFloat32(float32(k2))
  4143. if esep {
  4144. ee.WriteMapElemValue()
  4145. }
  4146. ee.EncodeInt(int64(v[float32(k2)]))
  4147. }
  4148. } else {
  4149. for k2, v2 := range v {
  4150. if esep {
  4151. ee.WriteMapElemKey()
  4152. }
  4153. ee.EncodeFloat32(k2)
  4154. if esep {
  4155. ee.WriteMapElemValue()
  4156. }
  4157. ee.EncodeInt(int64(v2))
  4158. }
  4159. }
  4160. ee.WriteMapEnd()
  4161. }
  4162. func (e *Encoder) fastpathEncMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  4163. fastpathTV.EncMapFloat32Int64V(rv2i(rv).(map[float32]int64), e)
  4164. }
  4165. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, e *Encoder) {
  4166. if v == nil {
  4167. e.e.EncodeNil()
  4168. return
  4169. }
  4170. ee, esep := e.e, e.hh.hasElemSeparators()
  4171. ee.WriteMapStart(len(v))
  4172. if e.h.Canonical {
  4173. v2 := make([]float64, len(v))
  4174. var i int
  4175. for k, _ := range v {
  4176. v2[i] = float64(k)
  4177. i++
  4178. }
  4179. sort.Sort(floatSlice(v2))
  4180. for _, k2 := range v2 {
  4181. if esep {
  4182. ee.WriteMapElemKey()
  4183. }
  4184. ee.EncodeFloat32(float32(k2))
  4185. if esep {
  4186. ee.WriteMapElemValue()
  4187. }
  4188. ee.EncodeInt(int64(v[float32(k2)]))
  4189. }
  4190. } else {
  4191. for k2, v2 := range v {
  4192. if esep {
  4193. ee.WriteMapElemKey()
  4194. }
  4195. ee.EncodeFloat32(k2)
  4196. if esep {
  4197. ee.WriteMapElemValue()
  4198. }
  4199. ee.EncodeInt(int64(v2))
  4200. }
  4201. }
  4202. ee.WriteMapEnd()
  4203. }
  4204. func (e *Encoder) fastpathEncMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  4205. fastpathTV.EncMapFloat32Float32V(rv2i(rv).(map[float32]float32), e)
  4206. }
  4207. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, e *Encoder) {
  4208. if v == nil {
  4209. e.e.EncodeNil()
  4210. return
  4211. }
  4212. ee, esep := e.e, e.hh.hasElemSeparators()
  4213. ee.WriteMapStart(len(v))
  4214. if e.h.Canonical {
  4215. v2 := make([]float64, len(v))
  4216. var i int
  4217. for k, _ := range v {
  4218. v2[i] = float64(k)
  4219. i++
  4220. }
  4221. sort.Sort(floatSlice(v2))
  4222. for _, k2 := range v2 {
  4223. if esep {
  4224. ee.WriteMapElemKey()
  4225. }
  4226. ee.EncodeFloat32(float32(k2))
  4227. if esep {
  4228. ee.WriteMapElemValue()
  4229. }
  4230. ee.EncodeFloat32(v[float32(k2)])
  4231. }
  4232. } else {
  4233. for k2, v2 := range v {
  4234. if esep {
  4235. ee.WriteMapElemKey()
  4236. }
  4237. ee.EncodeFloat32(k2)
  4238. if esep {
  4239. ee.WriteMapElemValue()
  4240. }
  4241. ee.EncodeFloat32(v2)
  4242. }
  4243. }
  4244. ee.WriteMapEnd()
  4245. }
  4246. func (e *Encoder) fastpathEncMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  4247. fastpathTV.EncMapFloat32Float64V(rv2i(rv).(map[float32]float64), e)
  4248. }
  4249. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, e *Encoder) {
  4250. if v == nil {
  4251. e.e.EncodeNil()
  4252. return
  4253. }
  4254. ee, esep := e.e, e.hh.hasElemSeparators()
  4255. ee.WriteMapStart(len(v))
  4256. if e.h.Canonical {
  4257. v2 := make([]float64, len(v))
  4258. var i int
  4259. for k, _ := range v {
  4260. v2[i] = float64(k)
  4261. i++
  4262. }
  4263. sort.Sort(floatSlice(v2))
  4264. for _, k2 := range v2 {
  4265. if esep {
  4266. ee.WriteMapElemKey()
  4267. }
  4268. ee.EncodeFloat32(float32(k2))
  4269. if esep {
  4270. ee.WriteMapElemValue()
  4271. }
  4272. ee.EncodeFloat64(v[float32(k2)])
  4273. }
  4274. } else {
  4275. for k2, v2 := range v {
  4276. if esep {
  4277. ee.WriteMapElemKey()
  4278. }
  4279. ee.EncodeFloat32(k2)
  4280. if esep {
  4281. ee.WriteMapElemValue()
  4282. }
  4283. ee.EncodeFloat64(v2)
  4284. }
  4285. }
  4286. ee.WriteMapEnd()
  4287. }
  4288. func (e *Encoder) fastpathEncMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  4289. fastpathTV.EncMapFloat32BoolV(rv2i(rv).(map[float32]bool), e)
  4290. }
  4291. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, e *Encoder) {
  4292. if v == nil {
  4293. e.e.EncodeNil()
  4294. return
  4295. }
  4296. ee, esep := e.e, e.hh.hasElemSeparators()
  4297. ee.WriteMapStart(len(v))
  4298. if e.h.Canonical {
  4299. v2 := make([]float64, len(v))
  4300. var i int
  4301. for k, _ := range v {
  4302. v2[i] = float64(k)
  4303. i++
  4304. }
  4305. sort.Sort(floatSlice(v2))
  4306. for _, k2 := range v2 {
  4307. if esep {
  4308. ee.WriteMapElemKey()
  4309. }
  4310. ee.EncodeFloat32(float32(k2))
  4311. if esep {
  4312. ee.WriteMapElemValue()
  4313. }
  4314. ee.EncodeBool(v[float32(k2)])
  4315. }
  4316. } else {
  4317. for k2, v2 := range v {
  4318. if esep {
  4319. ee.WriteMapElemKey()
  4320. }
  4321. ee.EncodeFloat32(k2)
  4322. if esep {
  4323. ee.WriteMapElemValue()
  4324. }
  4325. ee.EncodeBool(v2)
  4326. }
  4327. }
  4328. ee.WriteMapEnd()
  4329. }
  4330. func (e *Encoder) fastpathEncMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  4331. fastpathTV.EncMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), e)
  4332. }
  4333. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, e *Encoder) {
  4334. if v == nil {
  4335. e.e.EncodeNil()
  4336. return
  4337. }
  4338. ee, esep := e.e, e.hh.hasElemSeparators()
  4339. ee.WriteMapStart(len(v))
  4340. if e.h.Canonical {
  4341. v2 := make([]float64, len(v))
  4342. var i int
  4343. for k, _ := range v {
  4344. v2[i] = float64(k)
  4345. i++
  4346. }
  4347. sort.Sort(floatSlice(v2))
  4348. for _, k2 := range v2 {
  4349. if esep {
  4350. ee.WriteMapElemKey()
  4351. }
  4352. ee.EncodeFloat64(float64(k2))
  4353. if esep {
  4354. ee.WriteMapElemValue()
  4355. }
  4356. e.encode(v[float64(k2)])
  4357. }
  4358. } else {
  4359. for k2, v2 := range v {
  4360. if esep {
  4361. ee.WriteMapElemKey()
  4362. }
  4363. ee.EncodeFloat64(k2)
  4364. if esep {
  4365. ee.WriteMapElemValue()
  4366. }
  4367. e.encode(v2)
  4368. }
  4369. }
  4370. ee.WriteMapEnd()
  4371. }
  4372. func (e *Encoder) fastpathEncMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  4373. fastpathTV.EncMapFloat64StringV(rv2i(rv).(map[float64]string), e)
  4374. }
  4375. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, e *Encoder) {
  4376. if v == nil {
  4377. e.e.EncodeNil()
  4378. return
  4379. }
  4380. ee, esep := e.e, e.hh.hasElemSeparators()
  4381. ee.WriteMapStart(len(v))
  4382. if e.h.Canonical {
  4383. v2 := make([]float64, len(v))
  4384. var i int
  4385. for k, _ := range v {
  4386. v2[i] = float64(k)
  4387. i++
  4388. }
  4389. sort.Sort(floatSlice(v2))
  4390. for _, k2 := range v2 {
  4391. if esep {
  4392. ee.WriteMapElemKey()
  4393. }
  4394. ee.EncodeFloat64(float64(k2))
  4395. if esep {
  4396. ee.WriteMapElemValue()
  4397. }
  4398. ee.EncodeString(c_UTF8, v[float64(k2)])
  4399. }
  4400. } else {
  4401. for k2, v2 := range v {
  4402. if esep {
  4403. ee.WriteMapElemKey()
  4404. }
  4405. ee.EncodeFloat64(k2)
  4406. if esep {
  4407. ee.WriteMapElemValue()
  4408. }
  4409. ee.EncodeString(c_UTF8, v2)
  4410. }
  4411. }
  4412. ee.WriteMapEnd()
  4413. }
  4414. func (e *Encoder) fastpathEncMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  4415. fastpathTV.EncMapFloat64UintV(rv2i(rv).(map[float64]uint), e)
  4416. }
  4417. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, e *Encoder) {
  4418. if v == nil {
  4419. e.e.EncodeNil()
  4420. return
  4421. }
  4422. ee, esep := e.e, e.hh.hasElemSeparators()
  4423. ee.WriteMapStart(len(v))
  4424. if e.h.Canonical {
  4425. v2 := make([]float64, len(v))
  4426. var i int
  4427. for k, _ := range v {
  4428. v2[i] = float64(k)
  4429. i++
  4430. }
  4431. sort.Sort(floatSlice(v2))
  4432. for _, k2 := range v2 {
  4433. if esep {
  4434. ee.WriteMapElemKey()
  4435. }
  4436. ee.EncodeFloat64(float64(k2))
  4437. if esep {
  4438. ee.WriteMapElemValue()
  4439. }
  4440. ee.EncodeUint(uint64(v[float64(k2)]))
  4441. }
  4442. } else {
  4443. for k2, v2 := range v {
  4444. if esep {
  4445. ee.WriteMapElemKey()
  4446. }
  4447. ee.EncodeFloat64(k2)
  4448. if esep {
  4449. ee.WriteMapElemValue()
  4450. }
  4451. ee.EncodeUint(uint64(v2))
  4452. }
  4453. }
  4454. ee.WriteMapEnd()
  4455. }
  4456. func (e *Encoder) fastpathEncMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  4457. fastpathTV.EncMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), e)
  4458. }
  4459. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, e *Encoder) {
  4460. if v == nil {
  4461. e.e.EncodeNil()
  4462. return
  4463. }
  4464. ee, esep := e.e, e.hh.hasElemSeparators()
  4465. ee.WriteMapStart(len(v))
  4466. if e.h.Canonical {
  4467. v2 := make([]float64, len(v))
  4468. var i int
  4469. for k, _ := range v {
  4470. v2[i] = float64(k)
  4471. i++
  4472. }
  4473. sort.Sort(floatSlice(v2))
  4474. for _, k2 := range v2 {
  4475. if esep {
  4476. ee.WriteMapElemKey()
  4477. }
  4478. ee.EncodeFloat64(float64(k2))
  4479. if esep {
  4480. ee.WriteMapElemValue()
  4481. }
  4482. ee.EncodeUint(uint64(v[float64(k2)]))
  4483. }
  4484. } else {
  4485. for k2, v2 := range v {
  4486. if esep {
  4487. ee.WriteMapElemKey()
  4488. }
  4489. ee.EncodeFloat64(k2)
  4490. if esep {
  4491. ee.WriteMapElemValue()
  4492. }
  4493. ee.EncodeUint(uint64(v2))
  4494. }
  4495. }
  4496. ee.WriteMapEnd()
  4497. }
  4498. func (e *Encoder) fastpathEncMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  4499. fastpathTV.EncMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), e)
  4500. }
  4501. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, e *Encoder) {
  4502. if v == nil {
  4503. e.e.EncodeNil()
  4504. return
  4505. }
  4506. ee, esep := e.e, e.hh.hasElemSeparators()
  4507. ee.WriteMapStart(len(v))
  4508. if e.h.Canonical {
  4509. v2 := make([]float64, len(v))
  4510. var i int
  4511. for k, _ := range v {
  4512. v2[i] = float64(k)
  4513. i++
  4514. }
  4515. sort.Sort(floatSlice(v2))
  4516. for _, k2 := range v2 {
  4517. if esep {
  4518. ee.WriteMapElemKey()
  4519. }
  4520. ee.EncodeFloat64(float64(k2))
  4521. if esep {
  4522. ee.WriteMapElemValue()
  4523. }
  4524. ee.EncodeUint(uint64(v[float64(k2)]))
  4525. }
  4526. } else {
  4527. for k2, v2 := range v {
  4528. if esep {
  4529. ee.WriteMapElemKey()
  4530. }
  4531. ee.EncodeFloat64(k2)
  4532. if esep {
  4533. ee.WriteMapElemValue()
  4534. }
  4535. ee.EncodeUint(uint64(v2))
  4536. }
  4537. }
  4538. ee.WriteMapEnd()
  4539. }
  4540. func (e *Encoder) fastpathEncMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  4541. fastpathTV.EncMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), e)
  4542. }
  4543. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, e *Encoder) {
  4544. if v == nil {
  4545. e.e.EncodeNil()
  4546. return
  4547. }
  4548. ee, esep := e.e, e.hh.hasElemSeparators()
  4549. ee.WriteMapStart(len(v))
  4550. if e.h.Canonical {
  4551. v2 := make([]float64, len(v))
  4552. var i int
  4553. for k, _ := range v {
  4554. v2[i] = float64(k)
  4555. i++
  4556. }
  4557. sort.Sort(floatSlice(v2))
  4558. for _, k2 := range v2 {
  4559. if esep {
  4560. ee.WriteMapElemKey()
  4561. }
  4562. ee.EncodeFloat64(float64(k2))
  4563. if esep {
  4564. ee.WriteMapElemValue()
  4565. }
  4566. ee.EncodeUint(uint64(v[float64(k2)]))
  4567. }
  4568. } else {
  4569. for k2, v2 := range v {
  4570. if esep {
  4571. ee.WriteMapElemKey()
  4572. }
  4573. ee.EncodeFloat64(k2)
  4574. if esep {
  4575. ee.WriteMapElemValue()
  4576. }
  4577. ee.EncodeUint(uint64(v2))
  4578. }
  4579. }
  4580. ee.WriteMapEnd()
  4581. }
  4582. func (e *Encoder) fastpathEncMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  4583. fastpathTV.EncMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), e)
  4584. }
  4585. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, e *Encoder) {
  4586. if v == nil {
  4587. e.e.EncodeNil()
  4588. return
  4589. }
  4590. ee, esep := e.e, e.hh.hasElemSeparators()
  4591. ee.WriteMapStart(len(v))
  4592. if e.h.Canonical {
  4593. v2 := make([]float64, len(v))
  4594. var i int
  4595. for k, _ := range v {
  4596. v2[i] = float64(k)
  4597. i++
  4598. }
  4599. sort.Sort(floatSlice(v2))
  4600. for _, k2 := range v2 {
  4601. if esep {
  4602. ee.WriteMapElemKey()
  4603. }
  4604. ee.EncodeFloat64(float64(k2))
  4605. if esep {
  4606. ee.WriteMapElemValue()
  4607. }
  4608. ee.EncodeUint(uint64(v[float64(k2)]))
  4609. }
  4610. } else {
  4611. for k2, v2 := range v {
  4612. if esep {
  4613. ee.WriteMapElemKey()
  4614. }
  4615. ee.EncodeFloat64(k2)
  4616. if esep {
  4617. ee.WriteMapElemValue()
  4618. }
  4619. ee.EncodeUint(uint64(v2))
  4620. }
  4621. }
  4622. ee.WriteMapEnd()
  4623. }
  4624. func (e *Encoder) fastpathEncMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  4625. fastpathTV.EncMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), e)
  4626. }
  4627. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, e *Encoder) {
  4628. if v == nil {
  4629. e.e.EncodeNil()
  4630. return
  4631. }
  4632. ee, esep := e.e, e.hh.hasElemSeparators()
  4633. ee.WriteMapStart(len(v))
  4634. if e.h.Canonical {
  4635. v2 := make([]float64, len(v))
  4636. var i int
  4637. for k, _ := range v {
  4638. v2[i] = float64(k)
  4639. i++
  4640. }
  4641. sort.Sort(floatSlice(v2))
  4642. for _, k2 := range v2 {
  4643. if esep {
  4644. ee.WriteMapElemKey()
  4645. }
  4646. ee.EncodeFloat64(float64(k2))
  4647. if esep {
  4648. ee.WriteMapElemValue()
  4649. }
  4650. e.encode(v[float64(k2)])
  4651. }
  4652. } else {
  4653. for k2, v2 := range v {
  4654. if esep {
  4655. ee.WriteMapElemKey()
  4656. }
  4657. ee.EncodeFloat64(k2)
  4658. if esep {
  4659. ee.WriteMapElemValue()
  4660. }
  4661. e.encode(v2)
  4662. }
  4663. }
  4664. ee.WriteMapEnd()
  4665. }
  4666. func (e *Encoder) fastpathEncMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  4667. fastpathTV.EncMapFloat64IntV(rv2i(rv).(map[float64]int), e)
  4668. }
  4669. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, e *Encoder) {
  4670. if v == nil {
  4671. e.e.EncodeNil()
  4672. return
  4673. }
  4674. ee, esep := e.e, e.hh.hasElemSeparators()
  4675. ee.WriteMapStart(len(v))
  4676. if e.h.Canonical {
  4677. v2 := make([]float64, len(v))
  4678. var i int
  4679. for k, _ := range v {
  4680. v2[i] = float64(k)
  4681. i++
  4682. }
  4683. sort.Sort(floatSlice(v2))
  4684. for _, k2 := range v2 {
  4685. if esep {
  4686. ee.WriteMapElemKey()
  4687. }
  4688. ee.EncodeFloat64(float64(k2))
  4689. if esep {
  4690. ee.WriteMapElemValue()
  4691. }
  4692. ee.EncodeInt(int64(v[float64(k2)]))
  4693. }
  4694. } else {
  4695. for k2, v2 := range v {
  4696. if esep {
  4697. ee.WriteMapElemKey()
  4698. }
  4699. ee.EncodeFloat64(k2)
  4700. if esep {
  4701. ee.WriteMapElemValue()
  4702. }
  4703. ee.EncodeInt(int64(v2))
  4704. }
  4705. }
  4706. ee.WriteMapEnd()
  4707. }
  4708. func (e *Encoder) fastpathEncMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  4709. fastpathTV.EncMapFloat64Int8V(rv2i(rv).(map[float64]int8), e)
  4710. }
  4711. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, e *Encoder) {
  4712. if v == nil {
  4713. e.e.EncodeNil()
  4714. return
  4715. }
  4716. ee, esep := e.e, e.hh.hasElemSeparators()
  4717. ee.WriteMapStart(len(v))
  4718. if e.h.Canonical {
  4719. v2 := make([]float64, len(v))
  4720. var i int
  4721. for k, _ := range v {
  4722. v2[i] = float64(k)
  4723. i++
  4724. }
  4725. sort.Sort(floatSlice(v2))
  4726. for _, k2 := range v2 {
  4727. if esep {
  4728. ee.WriteMapElemKey()
  4729. }
  4730. ee.EncodeFloat64(float64(k2))
  4731. if esep {
  4732. ee.WriteMapElemValue()
  4733. }
  4734. ee.EncodeInt(int64(v[float64(k2)]))
  4735. }
  4736. } else {
  4737. for k2, v2 := range v {
  4738. if esep {
  4739. ee.WriteMapElemKey()
  4740. }
  4741. ee.EncodeFloat64(k2)
  4742. if esep {
  4743. ee.WriteMapElemValue()
  4744. }
  4745. ee.EncodeInt(int64(v2))
  4746. }
  4747. }
  4748. ee.WriteMapEnd()
  4749. }
  4750. func (e *Encoder) fastpathEncMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  4751. fastpathTV.EncMapFloat64Int16V(rv2i(rv).(map[float64]int16), e)
  4752. }
  4753. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, e *Encoder) {
  4754. if v == nil {
  4755. e.e.EncodeNil()
  4756. return
  4757. }
  4758. ee, esep := e.e, e.hh.hasElemSeparators()
  4759. ee.WriteMapStart(len(v))
  4760. if e.h.Canonical {
  4761. v2 := make([]float64, len(v))
  4762. var i int
  4763. for k, _ := range v {
  4764. v2[i] = float64(k)
  4765. i++
  4766. }
  4767. sort.Sort(floatSlice(v2))
  4768. for _, k2 := range v2 {
  4769. if esep {
  4770. ee.WriteMapElemKey()
  4771. }
  4772. ee.EncodeFloat64(float64(k2))
  4773. if esep {
  4774. ee.WriteMapElemValue()
  4775. }
  4776. ee.EncodeInt(int64(v[float64(k2)]))
  4777. }
  4778. } else {
  4779. for k2, v2 := range v {
  4780. if esep {
  4781. ee.WriteMapElemKey()
  4782. }
  4783. ee.EncodeFloat64(k2)
  4784. if esep {
  4785. ee.WriteMapElemValue()
  4786. }
  4787. ee.EncodeInt(int64(v2))
  4788. }
  4789. }
  4790. ee.WriteMapEnd()
  4791. }
  4792. func (e *Encoder) fastpathEncMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  4793. fastpathTV.EncMapFloat64Int32V(rv2i(rv).(map[float64]int32), e)
  4794. }
  4795. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, e *Encoder) {
  4796. if v == nil {
  4797. e.e.EncodeNil()
  4798. return
  4799. }
  4800. ee, esep := e.e, e.hh.hasElemSeparators()
  4801. ee.WriteMapStart(len(v))
  4802. if e.h.Canonical {
  4803. v2 := make([]float64, len(v))
  4804. var i int
  4805. for k, _ := range v {
  4806. v2[i] = float64(k)
  4807. i++
  4808. }
  4809. sort.Sort(floatSlice(v2))
  4810. for _, k2 := range v2 {
  4811. if esep {
  4812. ee.WriteMapElemKey()
  4813. }
  4814. ee.EncodeFloat64(float64(k2))
  4815. if esep {
  4816. ee.WriteMapElemValue()
  4817. }
  4818. ee.EncodeInt(int64(v[float64(k2)]))
  4819. }
  4820. } else {
  4821. for k2, v2 := range v {
  4822. if esep {
  4823. ee.WriteMapElemKey()
  4824. }
  4825. ee.EncodeFloat64(k2)
  4826. if esep {
  4827. ee.WriteMapElemValue()
  4828. }
  4829. ee.EncodeInt(int64(v2))
  4830. }
  4831. }
  4832. ee.WriteMapEnd()
  4833. }
  4834. func (e *Encoder) fastpathEncMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  4835. fastpathTV.EncMapFloat64Int64V(rv2i(rv).(map[float64]int64), e)
  4836. }
  4837. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, e *Encoder) {
  4838. if v == nil {
  4839. e.e.EncodeNil()
  4840. return
  4841. }
  4842. ee, esep := e.e, e.hh.hasElemSeparators()
  4843. ee.WriteMapStart(len(v))
  4844. if e.h.Canonical {
  4845. v2 := make([]float64, len(v))
  4846. var i int
  4847. for k, _ := range v {
  4848. v2[i] = float64(k)
  4849. i++
  4850. }
  4851. sort.Sort(floatSlice(v2))
  4852. for _, k2 := range v2 {
  4853. if esep {
  4854. ee.WriteMapElemKey()
  4855. }
  4856. ee.EncodeFloat64(float64(k2))
  4857. if esep {
  4858. ee.WriteMapElemValue()
  4859. }
  4860. ee.EncodeInt(int64(v[float64(k2)]))
  4861. }
  4862. } else {
  4863. for k2, v2 := range v {
  4864. if esep {
  4865. ee.WriteMapElemKey()
  4866. }
  4867. ee.EncodeFloat64(k2)
  4868. if esep {
  4869. ee.WriteMapElemValue()
  4870. }
  4871. ee.EncodeInt(int64(v2))
  4872. }
  4873. }
  4874. ee.WriteMapEnd()
  4875. }
  4876. func (e *Encoder) fastpathEncMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  4877. fastpathTV.EncMapFloat64Float32V(rv2i(rv).(map[float64]float32), e)
  4878. }
  4879. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, e *Encoder) {
  4880. if v == nil {
  4881. e.e.EncodeNil()
  4882. return
  4883. }
  4884. ee, esep := e.e, e.hh.hasElemSeparators()
  4885. ee.WriteMapStart(len(v))
  4886. if e.h.Canonical {
  4887. v2 := make([]float64, len(v))
  4888. var i int
  4889. for k, _ := range v {
  4890. v2[i] = float64(k)
  4891. i++
  4892. }
  4893. sort.Sort(floatSlice(v2))
  4894. for _, k2 := range v2 {
  4895. if esep {
  4896. ee.WriteMapElemKey()
  4897. }
  4898. ee.EncodeFloat64(float64(k2))
  4899. if esep {
  4900. ee.WriteMapElemValue()
  4901. }
  4902. ee.EncodeFloat32(v[float64(k2)])
  4903. }
  4904. } else {
  4905. for k2, v2 := range v {
  4906. if esep {
  4907. ee.WriteMapElemKey()
  4908. }
  4909. ee.EncodeFloat64(k2)
  4910. if esep {
  4911. ee.WriteMapElemValue()
  4912. }
  4913. ee.EncodeFloat32(v2)
  4914. }
  4915. }
  4916. ee.WriteMapEnd()
  4917. }
  4918. func (e *Encoder) fastpathEncMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  4919. fastpathTV.EncMapFloat64Float64V(rv2i(rv).(map[float64]float64), e)
  4920. }
  4921. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, e *Encoder) {
  4922. if v == nil {
  4923. e.e.EncodeNil()
  4924. return
  4925. }
  4926. ee, esep := e.e, e.hh.hasElemSeparators()
  4927. ee.WriteMapStart(len(v))
  4928. if e.h.Canonical {
  4929. v2 := make([]float64, len(v))
  4930. var i int
  4931. for k, _ := range v {
  4932. v2[i] = float64(k)
  4933. i++
  4934. }
  4935. sort.Sort(floatSlice(v2))
  4936. for _, k2 := range v2 {
  4937. if esep {
  4938. ee.WriteMapElemKey()
  4939. }
  4940. ee.EncodeFloat64(float64(k2))
  4941. if esep {
  4942. ee.WriteMapElemValue()
  4943. }
  4944. ee.EncodeFloat64(v[float64(k2)])
  4945. }
  4946. } else {
  4947. for k2, v2 := range v {
  4948. if esep {
  4949. ee.WriteMapElemKey()
  4950. }
  4951. ee.EncodeFloat64(k2)
  4952. if esep {
  4953. ee.WriteMapElemValue()
  4954. }
  4955. ee.EncodeFloat64(v2)
  4956. }
  4957. }
  4958. ee.WriteMapEnd()
  4959. }
  4960. func (e *Encoder) fastpathEncMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  4961. fastpathTV.EncMapFloat64BoolV(rv2i(rv).(map[float64]bool), e)
  4962. }
  4963. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, e *Encoder) {
  4964. if v == nil {
  4965. e.e.EncodeNil()
  4966. return
  4967. }
  4968. ee, esep := e.e, e.hh.hasElemSeparators()
  4969. ee.WriteMapStart(len(v))
  4970. if e.h.Canonical {
  4971. v2 := make([]float64, len(v))
  4972. var i int
  4973. for k, _ := range v {
  4974. v2[i] = float64(k)
  4975. i++
  4976. }
  4977. sort.Sort(floatSlice(v2))
  4978. for _, k2 := range v2 {
  4979. if esep {
  4980. ee.WriteMapElemKey()
  4981. }
  4982. ee.EncodeFloat64(float64(k2))
  4983. if esep {
  4984. ee.WriteMapElemValue()
  4985. }
  4986. ee.EncodeBool(v[float64(k2)])
  4987. }
  4988. } else {
  4989. for k2, v2 := range v {
  4990. if esep {
  4991. ee.WriteMapElemKey()
  4992. }
  4993. ee.EncodeFloat64(k2)
  4994. if esep {
  4995. ee.WriteMapElemValue()
  4996. }
  4997. ee.EncodeBool(v2)
  4998. }
  4999. }
  5000. ee.WriteMapEnd()
  5001. }
  5002. func (e *Encoder) fastpathEncMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  5003. fastpathTV.EncMapUintIntfV(rv2i(rv).(map[uint]interface{}), e)
  5004. }
  5005. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, e *Encoder) {
  5006. if v == nil {
  5007. e.e.EncodeNil()
  5008. return
  5009. }
  5010. ee, esep := e.e, e.hh.hasElemSeparators()
  5011. ee.WriteMapStart(len(v))
  5012. if e.h.Canonical {
  5013. v2 := make([]uint64, len(v))
  5014. var i int
  5015. for k, _ := range v {
  5016. v2[i] = uint64(k)
  5017. i++
  5018. }
  5019. sort.Sort(uintSlice(v2))
  5020. for _, k2 := range v2 {
  5021. if esep {
  5022. ee.WriteMapElemKey()
  5023. }
  5024. ee.EncodeUint(uint64(uint(k2)))
  5025. if esep {
  5026. ee.WriteMapElemValue()
  5027. }
  5028. e.encode(v[uint(k2)])
  5029. }
  5030. } else {
  5031. for k2, v2 := range v {
  5032. if esep {
  5033. ee.WriteMapElemKey()
  5034. }
  5035. ee.EncodeUint(uint64(k2))
  5036. if esep {
  5037. ee.WriteMapElemValue()
  5038. }
  5039. e.encode(v2)
  5040. }
  5041. }
  5042. ee.WriteMapEnd()
  5043. }
  5044. func (e *Encoder) fastpathEncMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  5045. fastpathTV.EncMapUintStringV(rv2i(rv).(map[uint]string), e)
  5046. }
  5047. func (_ fastpathT) EncMapUintStringV(v map[uint]string, e *Encoder) {
  5048. if v == nil {
  5049. e.e.EncodeNil()
  5050. return
  5051. }
  5052. ee, esep := e.e, e.hh.hasElemSeparators()
  5053. ee.WriteMapStart(len(v))
  5054. if e.h.Canonical {
  5055. v2 := make([]uint64, len(v))
  5056. var i int
  5057. for k, _ := range v {
  5058. v2[i] = uint64(k)
  5059. i++
  5060. }
  5061. sort.Sort(uintSlice(v2))
  5062. for _, k2 := range v2 {
  5063. if esep {
  5064. ee.WriteMapElemKey()
  5065. }
  5066. ee.EncodeUint(uint64(uint(k2)))
  5067. if esep {
  5068. ee.WriteMapElemValue()
  5069. }
  5070. ee.EncodeString(c_UTF8, v[uint(k2)])
  5071. }
  5072. } else {
  5073. for k2, v2 := range v {
  5074. if esep {
  5075. ee.WriteMapElemKey()
  5076. }
  5077. ee.EncodeUint(uint64(k2))
  5078. if esep {
  5079. ee.WriteMapElemValue()
  5080. }
  5081. ee.EncodeString(c_UTF8, v2)
  5082. }
  5083. }
  5084. ee.WriteMapEnd()
  5085. }
  5086. func (e *Encoder) fastpathEncMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  5087. fastpathTV.EncMapUintUintV(rv2i(rv).(map[uint]uint), e)
  5088. }
  5089. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, e *Encoder) {
  5090. if v == nil {
  5091. e.e.EncodeNil()
  5092. return
  5093. }
  5094. ee, esep := e.e, e.hh.hasElemSeparators()
  5095. ee.WriteMapStart(len(v))
  5096. if e.h.Canonical {
  5097. v2 := make([]uint64, len(v))
  5098. var i int
  5099. for k, _ := range v {
  5100. v2[i] = uint64(k)
  5101. i++
  5102. }
  5103. sort.Sort(uintSlice(v2))
  5104. for _, k2 := range v2 {
  5105. if esep {
  5106. ee.WriteMapElemKey()
  5107. }
  5108. ee.EncodeUint(uint64(uint(k2)))
  5109. if esep {
  5110. ee.WriteMapElemValue()
  5111. }
  5112. ee.EncodeUint(uint64(v[uint(k2)]))
  5113. }
  5114. } else {
  5115. for k2, v2 := range v {
  5116. if esep {
  5117. ee.WriteMapElemKey()
  5118. }
  5119. ee.EncodeUint(uint64(k2))
  5120. if esep {
  5121. ee.WriteMapElemValue()
  5122. }
  5123. ee.EncodeUint(uint64(v2))
  5124. }
  5125. }
  5126. ee.WriteMapEnd()
  5127. }
  5128. func (e *Encoder) fastpathEncMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  5129. fastpathTV.EncMapUintUint8V(rv2i(rv).(map[uint]uint8), e)
  5130. }
  5131. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, e *Encoder) {
  5132. if v == nil {
  5133. e.e.EncodeNil()
  5134. return
  5135. }
  5136. ee, esep := e.e, e.hh.hasElemSeparators()
  5137. ee.WriteMapStart(len(v))
  5138. if e.h.Canonical {
  5139. v2 := make([]uint64, len(v))
  5140. var i int
  5141. for k, _ := range v {
  5142. v2[i] = uint64(k)
  5143. i++
  5144. }
  5145. sort.Sort(uintSlice(v2))
  5146. for _, k2 := range v2 {
  5147. if esep {
  5148. ee.WriteMapElemKey()
  5149. }
  5150. ee.EncodeUint(uint64(uint(k2)))
  5151. if esep {
  5152. ee.WriteMapElemValue()
  5153. }
  5154. ee.EncodeUint(uint64(v[uint(k2)]))
  5155. }
  5156. } else {
  5157. for k2, v2 := range v {
  5158. if esep {
  5159. ee.WriteMapElemKey()
  5160. }
  5161. ee.EncodeUint(uint64(k2))
  5162. if esep {
  5163. ee.WriteMapElemValue()
  5164. }
  5165. ee.EncodeUint(uint64(v2))
  5166. }
  5167. }
  5168. ee.WriteMapEnd()
  5169. }
  5170. func (e *Encoder) fastpathEncMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  5171. fastpathTV.EncMapUintUint16V(rv2i(rv).(map[uint]uint16), e)
  5172. }
  5173. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, e *Encoder) {
  5174. if v == nil {
  5175. e.e.EncodeNil()
  5176. return
  5177. }
  5178. ee, esep := e.e, e.hh.hasElemSeparators()
  5179. ee.WriteMapStart(len(v))
  5180. if e.h.Canonical {
  5181. v2 := make([]uint64, len(v))
  5182. var i int
  5183. for k, _ := range v {
  5184. v2[i] = uint64(k)
  5185. i++
  5186. }
  5187. sort.Sort(uintSlice(v2))
  5188. for _, k2 := range v2 {
  5189. if esep {
  5190. ee.WriteMapElemKey()
  5191. }
  5192. ee.EncodeUint(uint64(uint(k2)))
  5193. if esep {
  5194. ee.WriteMapElemValue()
  5195. }
  5196. ee.EncodeUint(uint64(v[uint(k2)]))
  5197. }
  5198. } else {
  5199. for k2, v2 := range v {
  5200. if esep {
  5201. ee.WriteMapElemKey()
  5202. }
  5203. ee.EncodeUint(uint64(k2))
  5204. if esep {
  5205. ee.WriteMapElemValue()
  5206. }
  5207. ee.EncodeUint(uint64(v2))
  5208. }
  5209. }
  5210. ee.WriteMapEnd()
  5211. }
  5212. func (e *Encoder) fastpathEncMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  5213. fastpathTV.EncMapUintUint32V(rv2i(rv).(map[uint]uint32), e)
  5214. }
  5215. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, e *Encoder) {
  5216. if v == nil {
  5217. e.e.EncodeNil()
  5218. return
  5219. }
  5220. ee, esep := e.e, e.hh.hasElemSeparators()
  5221. ee.WriteMapStart(len(v))
  5222. if e.h.Canonical {
  5223. v2 := make([]uint64, len(v))
  5224. var i int
  5225. for k, _ := range v {
  5226. v2[i] = uint64(k)
  5227. i++
  5228. }
  5229. sort.Sort(uintSlice(v2))
  5230. for _, k2 := range v2 {
  5231. if esep {
  5232. ee.WriteMapElemKey()
  5233. }
  5234. ee.EncodeUint(uint64(uint(k2)))
  5235. if esep {
  5236. ee.WriteMapElemValue()
  5237. }
  5238. ee.EncodeUint(uint64(v[uint(k2)]))
  5239. }
  5240. } else {
  5241. for k2, v2 := range v {
  5242. if esep {
  5243. ee.WriteMapElemKey()
  5244. }
  5245. ee.EncodeUint(uint64(k2))
  5246. if esep {
  5247. ee.WriteMapElemValue()
  5248. }
  5249. ee.EncodeUint(uint64(v2))
  5250. }
  5251. }
  5252. ee.WriteMapEnd()
  5253. }
  5254. func (e *Encoder) fastpathEncMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  5255. fastpathTV.EncMapUintUint64V(rv2i(rv).(map[uint]uint64), e)
  5256. }
  5257. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, e *Encoder) {
  5258. if v == nil {
  5259. e.e.EncodeNil()
  5260. return
  5261. }
  5262. ee, esep := e.e, e.hh.hasElemSeparators()
  5263. ee.WriteMapStart(len(v))
  5264. if e.h.Canonical {
  5265. v2 := make([]uint64, len(v))
  5266. var i int
  5267. for k, _ := range v {
  5268. v2[i] = uint64(k)
  5269. i++
  5270. }
  5271. sort.Sort(uintSlice(v2))
  5272. for _, k2 := range v2 {
  5273. if esep {
  5274. ee.WriteMapElemKey()
  5275. }
  5276. ee.EncodeUint(uint64(uint(k2)))
  5277. if esep {
  5278. ee.WriteMapElemValue()
  5279. }
  5280. ee.EncodeUint(uint64(v[uint(k2)]))
  5281. }
  5282. } else {
  5283. for k2, v2 := range v {
  5284. if esep {
  5285. ee.WriteMapElemKey()
  5286. }
  5287. ee.EncodeUint(uint64(k2))
  5288. if esep {
  5289. ee.WriteMapElemValue()
  5290. }
  5291. ee.EncodeUint(uint64(v2))
  5292. }
  5293. }
  5294. ee.WriteMapEnd()
  5295. }
  5296. func (e *Encoder) fastpathEncMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  5297. fastpathTV.EncMapUintUintptrV(rv2i(rv).(map[uint]uintptr), e)
  5298. }
  5299. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, e *Encoder) {
  5300. if v == nil {
  5301. e.e.EncodeNil()
  5302. return
  5303. }
  5304. ee, esep := e.e, e.hh.hasElemSeparators()
  5305. ee.WriteMapStart(len(v))
  5306. if e.h.Canonical {
  5307. v2 := make([]uint64, len(v))
  5308. var i int
  5309. for k, _ := range v {
  5310. v2[i] = uint64(k)
  5311. i++
  5312. }
  5313. sort.Sort(uintSlice(v2))
  5314. for _, k2 := range v2 {
  5315. if esep {
  5316. ee.WriteMapElemKey()
  5317. }
  5318. ee.EncodeUint(uint64(uint(k2)))
  5319. if esep {
  5320. ee.WriteMapElemValue()
  5321. }
  5322. e.encode(v[uint(k2)])
  5323. }
  5324. } else {
  5325. for k2, v2 := range v {
  5326. if esep {
  5327. ee.WriteMapElemKey()
  5328. }
  5329. ee.EncodeUint(uint64(k2))
  5330. if esep {
  5331. ee.WriteMapElemValue()
  5332. }
  5333. e.encode(v2)
  5334. }
  5335. }
  5336. ee.WriteMapEnd()
  5337. }
  5338. func (e *Encoder) fastpathEncMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  5339. fastpathTV.EncMapUintIntV(rv2i(rv).(map[uint]int), e)
  5340. }
  5341. func (_ fastpathT) EncMapUintIntV(v map[uint]int, e *Encoder) {
  5342. if v == nil {
  5343. e.e.EncodeNil()
  5344. return
  5345. }
  5346. ee, esep := e.e, e.hh.hasElemSeparators()
  5347. ee.WriteMapStart(len(v))
  5348. if e.h.Canonical {
  5349. v2 := make([]uint64, len(v))
  5350. var i int
  5351. for k, _ := range v {
  5352. v2[i] = uint64(k)
  5353. i++
  5354. }
  5355. sort.Sort(uintSlice(v2))
  5356. for _, k2 := range v2 {
  5357. if esep {
  5358. ee.WriteMapElemKey()
  5359. }
  5360. ee.EncodeUint(uint64(uint(k2)))
  5361. if esep {
  5362. ee.WriteMapElemValue()
  5363. }
  5364. ee.EncodeInt(int64(v[uint(k2)]))
  5365. }
  5366. } else {
  5367. for k2, v2 := range v {
  5368. if esep {
  5369. ee.WriteMapElemKey()
  5370. }
  5371. ee.EncodeUint(uint64(k2))
  5372. if esep {
  5373. ee.WriteMapElemValue()
  5374. }
  5375. ee.EncodeInt(int64(v2))
  5376. }
  5377. }
  5378. ee.WriteMapEnd()
  5379. }
  5380. func (e *Encoder) fastpathEncMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  5381. fastpathTV.EncMapUintInt8V(rv2i(rv).(map[uint]int8), e)
  5382. }
  5383. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, e *Encoder) {
  5384. if v == nil {
  5385. e.e.EncodeNil()
  5386. return
  5387. }
  5388. ee, esep := e.e, e.hh.hasElemSeparators()
  5389. ee.WriteMapStart(len(v))
  5390. if e.h.Canonical {
  5391. v2 := make([]uint64, len(v))
  5392. var i int
  5393. for k, _ := range v {
  5394. v2[i] = uint64(k)
  5395. i++
  5396. }
  5397. sort.Sort(uintSlice(v2))
  5398. for _, k2 := range v2 {
  5399. if esep {
  5400. ee.WriteMapElemKey()
  5401. }
  5402. ee.EncodeUint(uint64(uint(k2)))
  5403. if esep {
  5404. ee.WriteMapElemValue()
  5405. }
  5406. ee.EncodeInt(int64(v[uint(k2)]))
  5407. }
  5408. } else {
  5409. for k2, v2 := range v {
  5410. if esep {
  5411. ee.WriteMapElemKey()
  5412. }
  5413. ee.EncodeUint(uint64(k2))
  5414. if esep {
  5415. ee.WriteMapElemValue()
  5416. }
  5417. ee.EncodeInt(int64(v2))
  5418. }
  5419. }
  5420. ee.WriteMapEnd()
  5421. }
  5422. func (e *Encoder) fastpathEncMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  5423. fastpathTV.EncMapUintInt16V(rv2i(rv).(map[uint]int16), e)
  5424. }
  5425. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, e *Encoder) {
  5426. if v == nil {
  5427. e.e.EncodeNil()
  5428. return
  5429. }
  5430. ee, esep := e.e, e.hh.hasElemSeparators()
  5431. ee.WriteMapStart(len(v))
  5432. if e.h.Canonical {
  5433. v2 := make([]uint64, len(v))
  5434. var i int
  5435. for k, _ := range v {
  5436. v2[i] = uint64(k)
  5437. i++
  5438. }
  5439. sort.Sort(uintSlice(v2))
  5440. for _, k2 := range v2 {
  5441. if esep {
  5442. ee.WriteMapElemKey()
  5443. }
  5444. ee.EncodeUint(uint64(uint(k2)))
  5445. if esep {
  5446. ee.WriteMapElemValue()
  5447. }
  5448. ee.EncodeInt(int64(v[uint(k2)]))
  5449. }
  5450. } else {
  5451. for k2, v2 := range v {
  5452. if esep {
  5453. ee.WriteMapElemKey()
  5454. }
  5455. ee.EncodeUint(uint64(k2))
  5456. if esep {
  5457. ee.WriteMapElemValue()
  5458. }
  5459. ee.EncodeInt(int64(v2))
  5460. }
  5461. }
  5462. ee.WriteMapEnd()
  5463. }
  5464. func (e *Encoder) fastpathEncMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  5465. fastpathTV.EncMapUintInt32V(rv2i(rv).(map[uint]int32), e)
  5466. }
  5467. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, e *Encoder) {
  5468. if v == nil {
  5469. e.e.EncodeNil()
  5470. return
  5471. }
  5472. ee, esep := e.e, e.hh.hasElemSeparators()
  5473. ee.WriteMapStart(len(v))
  5474. if e.h.Canonical {
  5475. v2 := make([]uint64, len(v))
  5476. var i int
  5477. for k, _ := range v {
  5478. v2[i] = uint64(k)
  5479. i++
  5480. }
  5481. sort.Sort(uintSlice(v2))
  5482. for _, k2 := range v2 {
  5483. if esep {
  5484. ee.WriteMapElemKey()
  5485. }
  5486. ee.EncodeUint(uint64(uint(k2)))
  5487. if esep {
  5488. ee.WriteMapElemValue()
  5489. }
  5490. ee.EncodeInt(int64(v[uint(k2)]))
  5491. }
  5492. } else {
  5493. for k2, v2 := range v {
  5494. if esep {
  5495. ee.WriteMapElemKey()
  5496. }
  5497. ee.EncodeUint(uint64(k2))
  5498. if esep {
  5499. ee.WriteMapElemValue()
  5500. }
  5501. ee.EncodeInt(int64(v2))
  5502. }
  5503. }
  5504. ee.WriteMapEnd()
  5505. }
  5506. func (e *Encoder) fastpathEncMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  5507. fastpathTV.EncMapUintInt64V(rv2i(rv).(map[uint]int64), e)
  5508. }
  5509. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, e *Encoder) {
  5510. if v == nil {
  5511. e.e.EncodeNil()
  5512. return
  5513. }
  5514. ee, esep := e.e, e.hh.hasElemSeparators()
  5515. ee.WriteMapStart(len(v))
  5516. if e.h.Canonical {
  5517. v2 := make([]uint64, len(v))
  5518. var i int
  5519. for k, _ := range v {
  5520. v2[i] = uint64(k)
  5521. i++
  5522. }
  5523. sort.Sort(uintSlice(v2))
  5524. for _, k2 := range v2 {
  5525. if esep {
  5526. ee.WriteMapElemKey()
  5527. }
  5528. ee.EncodeUint(uint64(uint(k2)))
  5529. if esep {
  5530. ee.WriteMapElemValue()
  5531. }
  5532. ee.EncodeInt(int64(v[uint(k2)]))
  5533. }
  5534. } else {
  5535. for k2, v2 := range v {
  5536. if esep {
  5537. ee.WriteMapElemKey()
  5538. }
  5539. ee.EncodeUint(uint64(k2))
  5540. if esep {
  5541. ee.WriteMapElemValue()
  5542. }
  5543. ee.EncodeInt(int64(v2))
  5544. }
  5545. }
  5546. ee.WriteMapEnd()
  5547. }
  5548. func (e *Encoder) fastpathEncMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  5549. fastpathTV.EncMapUintFloat32V(rv2i(rv).(map[uint]float32), e)
  5550. }
  5551. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, e *Encoder) {
  5552. if v == nil {
  5553. e.e.EncodeNil()
  5554. return
  5555. }
  5556. ee, esep := e.e, e.hh.hasElemSeparators()
  5557. ee.WriteMapStart(len(v))
  5558. if e.h.Canonical {
  5559. v2 := make([]uint64, len(v))
  5560. var i int
  5561. for k, _ := range v {
  5562. v2[i] = uint64(k)
  5563. i++
  5564. }
  5565. sort.Sort(uintSlice(v2))
  5566. for _, k2 := range v2 {
  5567. if esep {
  5568. ee.WriteMapElemKey()
  5569. }
  5570. ee.EncodeUint(uint64(uint(k2)))
  5571. if esep {
  5572. ee.WriteMapElemValue()
  5573. }
  5574. ee.EncodeFloat32(v[uint(k2)])
  5575. }
  5576. } else {
  5577. for k2, v2 := range v {
  5578. if esep {
  5579. ee.WriteMapElemKey()
  5580. }
  5581. ee.EncodeUint(uint64(k2))
  5582. if esep {
  5583. ee.WriteMapElemValue()
  5584. }
  5585. ee.EncodeFloat32(v2)
  5586. }
  5587. }
  5588. ee.WriteMapEnd()
  5589. }
  5590. func (e *Encoder) fastpathEncMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  5591. fastpathTV.EncMapUintFloat64V(rv2i(rv).(map[uint]float64), e)
  5592. }
  5593. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, e *Encoder) {
  5594. if v == nil {
  5595. e.e.EncodeNil()
  5596. return
  5597. }
  5598. ee, esep := e.e, e.hh.hasElemSeparators()
  5599. ee.WriteMapStart(len(v))
  5600. if e.h.Canonical {
  5601. v2 := make([]uint64, len(v))
  5602. var i int
  5603. for k, _ := range v {
  5604. v2[i] = uint64(k)
  5605. i++
  5606. }
  5607. sort.Sort(uintSlice(v2))
  5608. for _, k2 := range v2 {
  5609. if esep {
  5610. ee.WriteMapElemKey()
  5611. }
  5612. ee.EncodeUint(uint64(uint(k2)))
  5613. if esep {
  5614. ee.WriteMapElemValue()
  5615. }
  5616. ee.EncodeFloat64(v[uint(k2)])
  5617. }
  5618. } else {
  5619. for k2, v2 := range v {
  5620. if esep {
  5621. ee.WriteMapElemKey()
  5622. }
  5623. ee.EncodeUint(uint64(k2))
  5624. if esep {
  5625. ee.WriteMapElemValue()
  5626. }
  5627. ee.EncodeFloat64(v2)
  5628. }
  5629. }
  5630. ee.WriteMapEnd()
  5631. }
  5632. func (e *Encoder) fastpathEncMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  5633. fastpathTV.EncMapUintBoolV(rv2i(rv).(map[uint]bool), e)
  5634. }
  5635. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, e *Encoder) {
  5636. if v == nil {
  5637. e.e.EncodeNil()
  5638. return
  5639. }
  5640. ee, esep := e.e, e.hh.hasElemSeparators()
  5641. ee.WriteMapStart(len(v))
  5642. if e.h.Canonical {
  5643. v2 := make([]uint64, len(v))
  5644. var i int
  5645. for k, _ := range v {
  5646. v2[i] = uint64(k)
  5647. i++
  5648. }
  5649. sort.Sort(uintSlice(v2))
  5650. for _, k2 := range v2 {
  5651. if esep {
  5652. ee.WriteMapElemKey()
  5653. }
  5654. ee.EncodeUint(uint64(uint(k2)))
  5655. if esep {
  5656. ee.WriteMapElemValue()
  5657. }
  5658. ee.EncodeBool(v[uint(k2)])
  5659. }
  5660. } else {
  5661. for k2, v2 := range v {
  5662. if esep {
  5663. ee.WriteMapElemKey()
  5664. }
  5665. ee.EncodeUint(uint64(k2))
  5666. if esep {
  5667. ee.WriteMapElemValue()
  5668. }
  5669. ee.EncodeBool(v2)
  5670. }
  5671. }
  5672. ee.WriteMapEnd()
  5673. }
  5674. func (e *Encoder) fastpathEncMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  5675. fastpathTV.EncMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), e)
  5676. }
  5677. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, e *Encoder) {
  5678. if v == nil {
  5679. e.e.EncodeNil()
  5680. return
  5681. }
  5682. ee, esep := e.e, e.hh.hasElemSeparators()
  5683. ee.WriteMapStart(len(v))
  5684. if e.h.Canonical {
  5685. v2 := make([]uint64, len(v))
  5686. var i int
  5687. for k, _ := range v {
  5688. v2[i] = uint64(k)
  5689. i++
  5690. }
  5691. sort.Sort(uintSlice(v2))
  5692. for _, k2 := range v2 {
  5693. if esep {
  5694. ee.WriteMapElemKey()
  5695. }
  5696. ee.EncodeUint(uint64(uint8(k2)))
  5697. if esep {
  5698. ee.WriteMapElemValue()
  5699. }
  5700. e.encode(v[uint8(k2)])
  5701. }
  5702. } else {
  5703. for k2, v2 := range v {
  5704. if esep {
  5705. ee.WriteMapElemKey()
  5706. }
  5707. ee.EncodeUint(uint64(k2))
  5708. if esep {
  5709. ee.WriteMapElemValue()
  5710. }
  5711. e.encode(v2)
  5712. }
  5713. }
  5714. ee.WriteMapEnd()
  5715. }
  5716. func (e *Encoder) fastpathEncMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  5717. fastpathTV.EncMapUint8StringV(rv2i(rv).(map[uint8]string), e)
  5718. }
  5719. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, e *Encoder) {
  5720. if v == nil {
  5721. e.e.EncodeNil()
  5722. return
  5723. }
  5724. ee, esep := e.e, e.hh.hasElemSeparators()
  5725. ee.WriteMapStart(len(v))
  5726. if e.h.Canonical {
  5727. v2 := make([]uint64, len(v))
  5728. var i int
  5729. for k, _ := range v {
  5730. v2[i] = uint64(k)
  5731. i++
  5732. }
  5733. sort.Sort(uintSlice(v2))
  5734. for _, k2 := range v2 {
  5735. if esep {
  5736. ee.WriteMapElemKey()
  5737. }
  5738. ee.EncodeUint(uint64(uint8(k2)))
  5739. if esep {
  5740. ee.WriteMapElemValue()
  5741. }
  5742. ee.EncodeString(c_UTF8, v[uint8(k2)])
  5743. }
  5744. } else {
  5745. for k2, v2 := range v {
  5746. if esep {
  5747. ee.WriteMapElemKey()
  5748. }
  5749. ee.EncodeUint(uint64(k2))
  5750. if esep {
  5751. ee.WriteMapElemValue()
  5752. }
  5753. ee.EncodeString(c_UTF8, v2)
  5754. }
  5755. }
  5756. ee.WriteMapEnd()
  5757. }
  5758. func (e *Encoder) fastpathEncMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  5759. fastpathTV.EncMapUint8UintV(rv2i(rv).(map[uint8]uint), e)
  5760. }
  5761. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, e *Encoder) {
  5762. if v == nil {
  5763. e.e.EncodeNil()
  5764. return
  5765. }
  5766. ee, esep := e.e, e.hh.hasElemSeparators()
  5767. ee.WriteMapStart(len(v))
  5768. if e.h.Canonical {
  5769. v2 := make([]uint64, len(v))
  5770. var i int
  5771. for k, _ := range v {
  5772. v2[i] = uint64(k)
  5773. i++
  5774. }
  5775. sort.Sort(uintSlice(v2))
  5776. for _, k2 := range v2 {
  5777. if esep {
  5778. ee.WriteMapElemKey()
  5779. }
  5780. ee.EncodeUint(uint64(uint8(k2)))
  5781. if esep {
  5782. ee.WriteMapElemValue()
  5783. }
  5784. ee.EncodeUint(uint64(v[uint8(k2)]))
  5785. }
  5786. } else {
  5787. for k2, v2 := range v {
  5788. if esep {
  5789. ee.WriteMapElemKey()
  5790. }
  5791. ee.EncodeUint(uint64(k2))
  5792. if esep {
  5793. ee.WriteMapElemValue()
  5794. }
  5795. ee.EncodeUint(uint64(v2))
  5796. }
  5797. }
  5798. ee.WriteMapEnd()
  5799. }
  5800. func (e *Encoder) fastpathEncMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  5801. fastpathTV.EncMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), e)
  5802. }
  5803. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, e *Encoder) {
  5804. if v == nil {
  5805. e.e.EncodeNil()
  5806. return
  5807. }
  5808. ee, esep := e.e, e.hh.hasElemSeparators()
  5809. ee.WriteMapStart(len(v))
  5810. if e.h.Canonical {
  5811. v2 := make([]uint64, len(v))
  5812. var i int
  5813. for k, _ := range v {
  5814. v2[i] = uint64(k)
  5815. i++
  5816. }
  5817. sort.Sort(uintSlice(v2))
  5818. for _, k2 := range v2 {
  5819. if esep {
  5820. ee.WriteMapElemKey()
  5821. }
  5822. ee.EncodeUint(uint64(uint8(k2)))
  5823. if esep {
  5824. ee.WriteMapElemValue()
  5825. }
  5826. ee.EncodeUint(uint64(v[uint8(k2)]))
  5827. }
  5828. } else {
  5829. for k2, v2 := range v {
  5830. if esep {
  5831. ee.WriteMapElemKey()
  5832. }
  5833. ee.EncodeUint(uint64(k2))
  5834. if esep {
  5835. ee.WriteMapElemValue()
  5836. }
  5837. ee.EncodeUint(uint64(v2))
  5838. }
  5839. }
  5840. ee.WriteMapEnd()
  5841. }
  5842. func (e *Encoder) fastpathEncMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  5843. fastpathTV.EncMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), e)
  5844. }
  5845. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, e *Encoder) {
  5846. if v == nil {
  5847. e.e.EncodeNil()
  5848. return
  5849. }
  5850. ee, esep := e.e, e.hh.hasElemSeparators()
  5851. ee.WriteMapStart(len(v))
  5852. if e.h.Canonical {
  5853. v2 := make([]uint64, len(v))
  5854. var i int
  5855. for k, _ := range v {
  5856. v2[i] = uint64(k)
  5857. i++
  5858. }
  5859. sort.Sort(uintSlice(v2))
  5860. for _, k2 := range v2 {
  5861. if esep {
  5862. ee.WriteMapElemKey()
  5863. }
  5864. ee.EncodeUint(uint64(uint8(k2)))
  5865. if esep {
  5866. ee.WriteMapElemValue()
  5867. }
  5868. ee.EncodeUint(uint64(v[uint8(k2)]))
  5869. }
  5870. } else {
  5871. for k2, v2 := range v {
  5872. if esep {
  5873. ee.WriteMapElemKey()
  5874. }
  5875. ee.EncodeUint(uint64(k2))
  5876. if esep {
  5877. ee.WriteMapElemValue()
  5878. }
  5879. ee.EncodeUint(uint64(v2))
  5880. }
  5881. }
  5882. ee.WriteMapEnd()
  5883. }
  5884. func (e *Encoder) fastpathEncMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  5885. fastpathTV.EncMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), e)
  5886. }
  5887. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, e *Encoder) {
  5888. if v == nil {
  5889. e.e.EncodeNil()
  5890. return
  5891. }
  5892. ee, esep := e.e, e.hh.hasElemSeparators()
  5893. ee.WriteMapStart(len(v))
  5894. if e.h.Canonical {
  5895. v2 := make([]uint64, len(v))
  5896. var i int
  5897. for k, _ := range v {
  5898. v2[i] = uint64(k)
  5899. i++
  5900. }
  5901. sort.Sort(uintSlice(v2))
  5902. for _, k2 := range v2 {
  5903. if esep {
  5904. ee.WriteMapElemKey()
  5905. }
  5906. ee.EncodeUint(uint64(uint8(k2)))
  5907. if esep {
  5908. ee.WriteMapElemValue()
  5909. }
  5910. ee.EncodeUint(uint64(v[uint8(k2)]))
  5911. }
  5912. } else {
  5913. for k2, v2 := range v {
  5914. if esep {
  5915. ee.WriteMapElemKey()
  5916. }
  5917. ee.EncodeUint(uint64(k2))
  5918. if esep {
  5919. ee.WriteMapElemValue()
  5920. }
  5921. ee.EncodeUint(uint64(v2))
  5922. }
  5923. }
  5924. ee.WriteMapEnd()
  5925. }
  5926. func (e *Encoder) fastpathEncMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  5927. fastpathTV.EncMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), e)
  5928. }
  5929. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, e *Encoder) {
  5930. if v == nil {
  5931. e.e.EncodeNil()
  5932. return
  5933. }
  5934. ee, esep := e.e, e.hh.hasElemSeparators()
  5935. ee.WriteMapStart(len(v))
  5936. if e.h.Canonical {
  5937. v2 := make([]uint64, len(v))
  5938. var i int
  5939. for k, _ := range v {
  5940. v2[i] = uint64(k)
  5941. i++
  5942. }
  5943. sort.Sort(uintSlice(v2))
  5944. for _, k2 := range v2 {
  5945. if esep {
  5946. ee.WriteMapElemKey()
  5947. }
  5948. ee.EncodeUint(uint64(uint8(k2)))
  5949. if esep {
  5950. ee.WriteMapElemValue()
  5951. }
  5952. ee.EncodeUint(uint64(v[uint8(k2)]))
  5953. }
  5954. } else {
  5955. for k2, v2 := range v {
  5956. if esep {
  5957. ee.WriteMapElemKey()
  5958. }
  5959. ee.EncodeUint(uint64(k2))
  5960. if esep {
  5961. ee.WriteMapElemValue()
  5962. }
  5963. ee.EncodeUint(uint64(v2))
  5964. }
  5965. }
  5966. ee.WriteMapEnd()
  5967. }
  5968. func (e *Encoder) fastpathEncMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  5969. fastpathTV.EncMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), e)
  5970. }
  5971. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, e *Encoder) {
  5972. if v == nil {
  5973. e.e.EncodeNil()
  5974. return
  5975. }
  5976. ee, esep := e.e, e.hh.hasElemSeparators()
  5977. ee.WriteMapStart(len(v))
  5978. if e.h.Canonical {
  5979. v2 := make([]uint64, len(v))
  5980. var i int
  5981. for k, _ := range v {
  5982. v2[i] = uint64(k)
  5983. i++
  5984. }
  5985. sort.Sort(uintSlice(v2))
  5986. for _, k2 := range v2 {
  5987. if esep {
  5988. ee.WriteMapElemKey()
  5989. }
  5990. ee.EncodeUint(uint64(uint8(k2)))
  5991. if esep {
  5992. ee.WriteMapElemValue()
  5993. }
  5994. e.encode(v[uint8(k2)])
  5995. }
  5996. } else {
  5997. for k2, v2 := range v {
  5998. if esep {
  5999. ee.WriteMapElemKey()
  6000. }
  6001. ee.EncodeUint(uint64(k2))
  6002. if esep {
  6003. ee.WriteMapElemValue()
  6004. }
  6005. e.encode(v2)
  6006. }
  6007. }
  6008. ee.WriteMapEnd()
  6009. }
  6010. func (e *Encoder) fastpathEncMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  6011. fastpathTV.EncMapUint8IntV(rv2i(rv).(map[uint8]int), e)
  6012. }
  6013. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, e *Encoder) {
  6014. if v == nil {
  6015. e.e.EncodeNil()
  6016. return
  6017. }
  6018. ee, esep := e.e, e.hh.hasElemSeparators()
  6019. ee.WriteMapStart(len(v))
  6020. if e.h.Canonical {
  6021. v2 := make([]uint64, len(v))
  6022. var i int
  6023. for k, _ := range v {
  6024. v2[i] = uint64(k)
  6025. i++
  6026. }
  6027. sort.Sort(uintSlice(v2))
  6028. for _, k2 := range v2 {
  6029. if esep {
  6030. ee.WriteMapElemKey()
  6031. }
  6032. ee.EncodeUint(uint64(uint8(k2)))
  6033. if esep {
  6034. ee.WriteMapElemValue()
  6035. }
  6036. ee.EncodeInt(int64(v[uint8(k2)]))
  6037. }
  6038. } else {
  6039. for k2, v2 := range v {
  6040. if esep {
  6041. ee.WriteMapElemKey()
  6042. }
  6043. ee.EncodeUint(uint64(k2))
  6044. if esep {
  6045. ee.WriteMapElemValue()
  6046. }
  6047. ee.EncodeInt(int64(v2))
  6048. }
  6049. }
  6050. ee.WriteMapEnd()
  6051. }
  6052. func (e *Encoder) fastpathEncMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  6053. fastpathTV.EncMapUint8Int8V(rv2i(rv).(map[uint8]int8), e)
  6054. }
  6055. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, e *Encoder) {
  6056. if v == nil {
  6057. e.e.EncodeNil()
  6058. return
  6059. }
  6060. ee, esep := e.e, e.hh.hasElemSeparators()
  6061. ee.WriteMapStart(len(v))
  6062. if e.h.Canonical {
  6063. v2 := make([]uint64, len(v))
  6064. var i int
  6065. for k, _ := range v {
  6066. v2[i] = uint64(k)
  6067. i++
  6068. }
  6069. sort.Sort(uintSlice(v2))
  6070. for _, k2 := range v2 {
  6071. if esep {
  6072. ee.WriteMapElemKey()
  6073. }
  6074. ee.EncodeUint(uint64(uint8(k2)))
  6075. if esep {
  6076. ee.WriteMapElemValue()
  6077. }
  6078. ee.EncodeInt(int64(v[uint8(k2)]))
  6079. }
  6080. } else {
  6081. for k2, v2 := range v {
  6082. if esep {
  6083. ee.WriteMapElemKey()
  6084. }
  6085. ee.EncodeUint(uint64(k2))
  6086. if esep {
  6087. ee.WriteMapElemValue()
  6088. }
  6089. ee.EncodeInt(int64(v2))
  6090. }
  6091. }
  6092. ee.WriteMapEnd()
  6093. }
  6094. func (e *Encoder) fastpathEncMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  6095. fastpathTV.EncMapUint8Int16V(rv2i(rv).(map[uint8]int16), e)
  6096. }
  6097. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, e *Encoder) {
  6098. if v == nil {
  6099. e.e.EncodeNil()
  6100. return
  6101. }
  6102. ee, esep := e.e, e.hh.hasElemSeparators()
  6103. ee.WriteMapStart(len(v))
  6104. if e.h.Canonical {
  6105. v2 := make([]uint64, len(v))
  6106. var i int
  6107. for k, _ := range v {
  6108. v2[i] = uint64(k)
  6109. i++
  6110. }
  6111. sort.Sort(uintSlice(v2))
  6112. for _, k2 := range v2 {
  6113. if esep {
  6114. ee.WriteMapElemKey()
  6115. }
  6116. ee.EncodeUint(uint64(uint8(k2)))
  6117. if esep {
  6118. ee.WriteMapElemValue()
  6119. }
  6120. ee.EncodeInt(int64(v[uint8(k2)]))
  6121. }
  6122. } else {
  6123. for k2, v2 := range v {
  6124. if esep {
  6125. ee.WriteMapElemKey()
  6126. }
  6127. ee.EncodeUint(uint64(k2))
  6128. if esep {
  6129. ee.WriteMapElemValue()
  6130. }
  6131. ee.EncodeInt(int64(v2))
  6132. }
  6133. }
  6134. ee.WriteMapEnd()
  6135. }
  6136. func (e *Encoder) fastpathEncMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  6137. fastpathTV.EncMapUint8Int32V(rv2i(rv).(map[uint8]int32), e)
  6138. }
  6139. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, e *Encoder) {
  6140. if v == nil {
  6141. e.e.EncodeNil()
  6142. return
  6143. }
  6144. ee, esep := e.e, e.hh.hasElemSeparators()
  6145. ee.WriteMapStart(len(v))
  6146. if e.h.Canonical {
  6147. v2 := make([]uint64, len(v))
  6148. var i int
  6149. for k, _ := range v {
  6150. v2[i] = uint64(k)
  6151. i++
  6152. }
  6153. sort.Sort(uintSlice(v2))
  6154. for _, k2 := range v2 {
  6155. if esep {
  6156. ee.WriteMapElemKey()
  6157. }
  6158. ee.EncodeUint(uint64(uint8(k2)))
  6159. if esep {
  6160. ee.WriteMapElemValue()
  6161. }
  6162. ee.EncodeInt(int64(v[uint8(k2)]))
  6163. }
  6164. } else {
  6165. for k2, v2 := range v {
  6166. if esep {
  6167. ee.WriteMapElemKey()
  6168. }
  6169. ee.EncodeUint(uint64(k2))
  6170. if esep {
  6171. ee.WriteMapElemValue()
  6172. }
  6173. ee.EncodeInt(int64(v2))
  6174. }
  6175. }
  6176. ee.WriteMapEnd()
  6177. }
  6178. func (e *Encoder) fastpathEncMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  6179. fastpathTV.EncMapUint8Int64V(rv2i(rv).(map[uint8]int64), e)
  6180. }
  6181. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, e *Encoder) {
  6182. if v == nil {
  6183. e.e.EncodeNil()
  6184. return
  6185. }
  6186. ee, esep := e.e, e.hh.hasElemSeparators()
  6187. ee.WriteMapStart(len(v))
  6188. if e.h.Canonical {
  6189. v2 := make([]uint64, len(v))
  6190. var i int
  6191. for k, _ := range v {
  6192. v2[i] = uint64(k)
  6193. i++
  6194. }
  6195. sort.Sort(uintSlice(v2))
  6196. for _, k2 := range v2 {
  6197. if esep {
  6198. ee.WriteMapElemKey()
  6199. }
  6200. ee.EncodeUint(uint64(uint8(k2)))
  6201. if esep {
  6202. ee.WriteMapElemValue()
  6203. }
  6204. ee.EncodeInt(int64(v[uint8(k2)]))
  6205. }
  6206. } else {
  6207. for k2, v2 := range v {
  6208. if esep {
  6209. ee.WriteMapElemKey()
  6210. }
  6211. ee.EncodeUint(uint64(k2))
  6212. if esep {
  6213. ee.WriteMapElemValue()
  6214. }
  6215. ee.EncodeInt(int64(v2))
  6216. }
  6217. }
  6218. ee.WriteMapEnd()
  6219. }
  6220. func (e *Encoder) fastpathEncMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  6221. fastpathTV.EncMapUint8Float32V(rv2i(rv).(map[uint8]float32), e)
  6222. }
  6223. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, e *Encoder) {
  6224. if v == nil {
  6225. e.e.EncodeNil()
  6226. return
  6227. }
  6228. ee, esep := e.e, e.hh.hasElemSeparators()
  6229. ee.WriteMapStart(len(v))
  6230. if e.h.Canonical {
  6231. v2 := make([]uint64, len(v))
  6232. var i int
  6233. for k, _ := range v {
  6234. v2[i] = uint64(k)
  6235. i++
  6236. }
  6237. sort.Sort(uintSlice(v2))
  6238. for _, k2 := range v2 {
  6239. if esep {
  6240. ee.WriteMapElemKey()
  6241. }
  6242. ee.EncodeUint(uint64(uint8(k2)))
  6243. if esep {
  6244. ee.WriteMapElemValue()
  6245. }
  6246. ee.EncodeFloat32(v[uint8(k2)])
  6247. }
  6248. } else {
  6249. for k2, v2 := range v {
  6250. if esep {
  6251. ee.WriteMapElemKey()
  6252. }
  6253. ee.EncodeUint(uint64(k2))
  6254. if esep {
  6255. ee.WriteMapElemValue()
  6256. }
  6257. ee.EncodeFloat32(v2)
  6258. }
  6259. }
  6260. ee.WriteMapEnd()
  6261. }
  6262. func (e *Encoder) fastpathEncMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  6263. fastpathTV.EncMapUint8Float64V(rv2i(rv).(map[uint8]float64), e)
  6264. }
  6265. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, e *Encoder) {
  6266. if v == nil {
  6267. e.e.EncodeNil()
  6268. return
  6269. }
  6270. ee, esep := e.e, e.hh.hasElemSeparators()
  6271. ee.WriteMapStart(len(v))
  6272. if e.h.Canonical {
  6273. v2 := make([]uint64, len(v))
  6274. var i int
  6275. for k, _ := range v {
  6276. v2[i] = uint64(k)
  6277. i++
  6278. }
  6279. sort.Sort(uintSlice(v2))
  6280. for _, k2 := range v2 {
  6281. if esep {
  6282. ee.WriteMapElemKey()
  6283. }
  6284. ee.EncodeUint(uint64(uint8(k2)))
  6285. if esep {
  6286. ee.WriteMapElemValue()
  6287. }
  6288. ee.EncodeFloat64(v[uint8(k2)])
  6289. }
  6290. } else {
  6291. for k2, v2 := range v {
  6292. if esep {
  6293. ee.WriteMapElemKey()
  6294. }
  6295. ee.EncodeUint(uint64(k2))
  6296. if esep {
  6297. ee.WriteMapElemValue()
  6298. }
  6299. ee.EncodeFloat64(v2)
  6300. }
  6301. }
  6302. ee.WriteMapEnd()
  6303. }
  6304. func (e *Encoder) fastpathEncMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  6305. fastpathTV.EncMapUint8BoolV(rv2i(rv).(map[uint8]bool), e)
  6306. }
  6307. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, e *Encoder) {
  6308. if v == nil {
  6309. e.e.EncodeNil()
  6310. return
  6311. }
  6312. ee, esep := e.e, e.hh.hasElemSeparators()
  6313. ee.WriteMapStart(len(v))
  6314. if e.h.Canonical {
  6315. v2 := make([]uint64, len(v))
  6316. var i int
  6317. for k, _ := range v {
  6318. v2[i] = uint64(k)
  6319. i++
  6320. }
  6321. sort.Sort(uintSlice(v2))
  6322. for _, k2 := range v2 {
  6323. if esep {
  6324. ee.WriteMapElemKey()
  6325. }
  6326. ee.EncodeUint(uint64(uint8(k2)))
  6327. if esep {
  6328. ee.WriteMapElemValue()
  6329. }
  6330. ee.EncodeBool(v[uint8(k2)])
  6331. }
  6332. } else {
  6333. for k2, v2 := range v {
  6334. if esep {
  6335. ee.WriteMapElemKey()
  6336. }
  6337. ee.EncodeUint(uint64(k2))
  6338. if esep {
  6339. ee.WriteMapElemValue()
  6340. }
  6341. ee.EncodeBool(v2)
  6342. }
  6343. }
  6344. ee.WriteMapEnd()
  6345. }
  6346. func (e *Encoder) fastpathEncMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  6347. fastpathTV.EncMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), e)
  6348. }
  6349. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, e *Encoder) {
  6350. if v == nil {
  6351. e.e.EncodeNil()
  6352. return
  6353. }
  6354. ee, esep := e.e, e.hh.hasElemSeparators()
  6355. ee.WriteMapStart(len(v))
  6356. if e.h.Canonical {
  6357. v2 := make([]uint64, len(v))
  6358. var i int
  6359. for k, _ := range v {
  6360. v2[i] = uint64(k)
  6361. i++
  6362. }
  6363. sort.Sort(uintSlice(v2))
  6364. for _, k2 := range v2 {
  6365. if esep {
  6366. ee.WriteMapElemKey()
  6367. }
  6368. ee.EncodeUint(uint64(uint16(k2)))
  6369. if esep {
  6370. ee.WriteMapElemValue()
  6371. }
  6372. e.encode(v[uint16(k2)])
  6373. }
  6374. } else {
  6375. for k2, v2 := range v {
  6376. if esep {
  6377. ee.WriteMapElemKey()
  6378. }
  6379. ee.EncodeUint(uint64(k2))
  6380. if esep {
  6381. ee.WriteMapElemValue()
  6382. }
  6383. e.encode(v2)
  6384. }
  6385. }
  6386. ee.WriteMapEnd()
  6387. }
  6388. func (e *Encoder) fastpathEncMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  6389. fastpathTV.EncMapUint16StringV(rv2i(rv).(map[uint16]string), e)
  6390. }
  6391. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, e *Encoder) {
  6392. if v == nil {
  6393. e.e.EncodeNil()
  6394. return
  6395. }
  6396. ee, esep := e.e, e.hh.hasElemSeparators()
  6397. ee.WriteMapStart(len(v))
  6398. if e.h.Canonical {
  6399. v2 := make([]uint64, len(v))
  6400. var i int
  6401. for k, _ := range v {
  6402. v2[i] = uint64(k)
  6403. i++
  6404. }
  6405. sort.Sort(uintSlice(v2))
  6406. for _, k2 := range v2 {
  6407. if esep {
  6408. ee.WriteMapElemKey()
  6409. }
  6410. ee.EncodeUint(uint64(uint16(k2)))
  6411. if esep {
  6412. ee.WriteMapElemValue()
  6413. }
  6414. ee.EncodeString(c_UTF8, v[uint16(k2)])
  6415. }
  6416. } else {
  6417. for k2, v2 := range v {
  6418. if esep {
  6419. ee.WriteMapElemKey()
  6420. }
  6421. ee.EncodeUint(uint64(k2))
  6422. if esep {
  6423. ee.WriteMapElemValue()
  6424. }
  6425. ee.EncodeString(c_UTF8, v2)
  6426. }
  6427. }
  6428. ee.WriteMapEnd()
  6429. }
  6430. func (e *Encoder) fastpathEncMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  6431. fastpathTV.EncMapUint16UintV(rv2i(rv).(map[uint16]uint), e)
  6432. }
  6433. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, e *Encoder) {
  6434. if v == nil {
  6435. e.e.EncodeNil()
  6436. return
  6437. }
  6438. ee, esep := e.e, e.hh.hasElemSeparators()
  6439. ee.WriteMapStart(len(v))
  6440. if e.h.Canonical {
  6441. v2 := make([]uint64, len(v))
  6442. var i int
  6443. for k, _ := range v {
  6444. v2[i] = uint64(k)
  6445. i++
  6446. }
  6447. sort.Sort(uintSlice(v2))
  6448. for _, k2 := range v2 {
  6449. if esep {
  6450. ee.WriteMapElemKey()
  6451. }
  6452. ee.EncodeUint(uint64(uint16(k2)))
  6453. if esep {
  6454. ee.WriteMapElemValue()
  6455. }
  6456. ee.EncodeUint(uint64(v[uint16(k2)]))
  6457. }
  6458. } else {
  6459. for k2, v2 := range v {
  6460. if esep {
  6461. ee.WriteMapElemKey()
  6462. }
  6463. ee.EncodeUint(uint64(k2))
  6464. if esep {
  6465. ee.WriteMapElemValue()
  6466. }
  6467. ee.EncodeUint(uint64(v2))
  6468. }
  6469. }
  6470. ee.WriteMapEnd()
  6471. }
  6472. func (e *Encoder) fastpathEncMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  6473. fastpathTV.EncMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), e)
  6474. }
  6475. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, e *Encoder) {
  6476. if v == nil {
  6477. e.e.EncodeNil()
  6478. return
  6479. }
  6480. ee, esep := e.e, e.hh.hasElemSeparators()
  6481. ee.WriteMapStart(len(v))
  6482. if e.h.Canonical {
  6483. v2 := make([]uint64, len(v))
  6484. var i int
  6485. for k, _ := range v {
  6486. v2[i] = uint64(k)
  6487. i++
  6488. }
  6489. sort.Sort(uintSlice(v2))
  6490. for _, k2 := range v2 {
  6491. if esep {
  6492. ee.WriteMapElemKey()
  6493. }
  6494. ee.EncodeUint(uint64(uint16(k2)))
  6495. if esep {
  6496. ee.WriteMapElemValue()
  6497. }
  6498. ee.EncodeUint(uint64(v[uint16(k2)]))
  6499. }
  6500. } else {
  6501. for k2, v2 := range v {
  6502. if esep {
  6503. ee.WriteMapElemKey()
  6504. }
  6505. ee.EncodeUint(uint64(k2))
  6506. if esep {
  6507. ee.WriteMapElemValue()
  6508. }
  6509. ee.EncodeUint(uint64(v2))
  6510. }
  6511. }
  6512. ee.WriteMapEnd()
  6513. }
  6514. func (e *Encoder) fastpathEncMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  6515. fastpathTV.EncMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), e)
  6516. }
  6517. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, e *Encoder) {
  6518. if v == nil {
  6519. e.e.EncodeNil()
  6520. return
  6521. }
  6522. ee, esep := e.e, e.hh.hasElemSeparators()
  6523. ee.WriteMapStart(len(v))
  6524. if e.h.Canonical {
  6525. v2 := make([]uint64, len(v))
  6526. var i int
  6527. for k, _ := range v {
  6528. v2[i] = uint64(k)
  6529. i++
  6530. }
  6531. sort.Sort(uintSlice(v2))
  6532. for _, k2 := range v2 {
  6533. if esep {
  6534. ee.WriteMapElemKey()
  6535. }
  6536. ee.EncodeUint(uint64(uint16(k2)))
  6537. if esep {
  6538. ee.WriteMapElemValue()
  6539. }
  6540. ee.EncodeUint(uint64(v[uint16(k2)]))
  6541. }
  6542. } else {
  6543. for k2, v2 := range v {
  6544. if esep {
  6545. ee.WriteMapElemKey()
  6546. }
  6547. ee.EncodeUint(uint64(k2))
  6548. if esep {
  6549. ee.WriteMapElemValue()
  6550. }
  6551. ee.EncodeUint(uint64(v2))
  6552. }
  6553. }
  6554. ee.WriteMapEnd()
  6555. }
  6556. func (e *Encoder) fastpathEncMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  6557. fastpathTV.EncMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), e)
  6558. }
  6559. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, e *Encoder) {
  6560. if v == nil {
  6561. e.e.EncodeNil()
  6562. return
  6563. }
  6564. ee, esep := e.e, e.hh.hasElemSeparators()
  6565. ee.WriteMapStart(len(v))
  6566. if e.h.Canonical {
  6567. v2 := make([]uint64, len(v))
  6568. var i int
  6569. for k, _ := range v {
  6570. v2[i] = uint64(k)
  6571. i++
  6572. }
  6573. sort.Sort(uintSlice(v2))
  6574. for _, k2 := range v2 {
  6575. if esep {
  6576. ee.WriteMapElemKey()
  6577. }
  6578. ee.EncodeUint(uint64(uint16(k2)))
  6579. if esep {
  6580. ee.WriteMapElemValue()
  6581. }
  6582. ee.EncodeUint(uint64(v[uint16(k2)]))
  6583. }
  6584. } else {
  6585. for k2, v2 := range v {
  6586. if esep {
  6587. ee.WriteMapElemKey()
  6588. }
  6589. ee.EncodeUint(uint64(k2))
  6590. if esep {
  6591. ee.WriteMapElemValue()
  6592. }
  6593. ee.EncodeUint(uint64(v2))
  6594. }
  6595. }
  6596. ee.WriteMapEnd()
  6597. }
  6598. func (e *Encoder) fastpathEncMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  6599. fastpathTV.EncMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), e)
  6600. }
  6601. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, e *Encoder) {
  6602. if v == nil {
  6603. e.e.EncodeNil()
  6604. return
  6605. }
  6606. ee, esep := e.e, e.hh.hasElemSeparators()
  6607. ee.WriteMapStart(len(v))
  6608. if e.h.Canonical {
  6609. v2 := make([]uint64, len(v))
  6610. var i int
  6611. for k, _ := range v {
  6612. v2[i] = uint64(k)
  6613. i++
  6614. }
  6615. sort.Sort(uintSlice(v2))
  6616. for _, k2 := range v2 {
  6617. if esep {
  6618. ee.WriteMapElemKey()
  6619. }
  6620. ee.EncodeUint(uint64(uint16(k2)))
  6621. if esep {
  6622. ee.WriteMapElemValue()
  6623. }
  6624. ee.EncodeUint(uint64(v[uint16(k2)]))
  6625. }
  6626. } else {
  6627. for k2, v2 := range v {
  6628. if esep {
  6629. ee.WriteMapElemKey()
  6630. }
  6631. ee.EncodeUint(uint64(k2))
  6632. if esep {
  6633. ee.WriteMapElemValue()
  6634. }
  6635. ee.EncodeUint(uint64(v2))
  6636. }
  6637. }
  6638. ee.WriteMapEnd()
  6639. }
  6640. func (e *Encoder) fastpathEncMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  6641. fastpathTV.EncMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), e)
  6642. }
  6643. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, e *Encoder) {
  6644. if v == nil {
  6645. e.e.EncodeNil()
  6646. return
  6647. }
  6648. ee, esep := e.e, e.hh.hasElemSeparators()
  6649. ee.WriteMapStart(len(v))
  6650. if e.h.Canonical {
  6651. v2 := make([]uint64, len(v))
  6652. var i int
  6653. for k, _ := range v {
  6654. v2[i] = uint64(k)
  6655. i++
  6656. }
  6657. sort.Sort(uintSlice(v2))
  6658. for _, k2 := range v2 {
  6659. if esep {
  6660. ee.WriteMapElemKey()
  6661. }
  6662. ee.EncodeUint(uint64(uint16(k2)))
  6663. if esep {
  6664. ee.WriteMapElemValue()
  6665. }
  6666. e.encode(v[uint16(k2)])
  6667. }
  6668. } else {
  6669. for k2, v2 := range v {
  6670. if esep {
  6671. ee.WriteMapElemKey()
  6672. }
  6673. ee.EncodeUint(uint64(k2))
  6674. if esep {
  6675. ee.WriteMapElemValue()
  6676. }
  6677. e.encode(v2)
  6678. }
  6679. }
  6680. ee.WriteMapEnd()
  6681. }
  6682. func (e *Encoder) fastpathEncMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  6683. fastpathTV.EncMapUint16IntV(rv2i(rv).(map[uint16]int), e)
  6684. }
  6685. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, e *Encoder) {
  6686. if v == nil {
  6687. e.e.EncodeNil()
  6688. return
  6689. }
  6690. ee, esep := e.e, e.hh.hasElemSeparators()
  6691. ee.WriteMapStart(len(v))
  6692. if e.h.Canonical {
  6693. v2 := make([]uint64, len(v))
  6694. var i int
  6695. for k, _ := range v {
  6696. v2[i] = uint64(k)
  6697. i++
  6698. }
  6699. sort.Sort(uintSlice(v2))
  6700. for _, k2 := range v2 {
  6701. if esep {
  6702. ee.WriteMapElemKey()
  6703. }
  6704. ee.EncodeUint(uint64(uint16(k2)))
  6705. if esep {
  6706. ee.WriteMapElemValue()
  6707. }
  6708. ee.EncodeInt(int64(v[uint16(k2)]))
  6709. }
  6710. } else {
  6711. for k2, v2 := range v {
  6712. if esep {
  6713. ee.WriteMapElemKey()
  6714. }
  6715. ee.EncodeUint(uint64(k2))
  6716. if esep {
  6717. ee.WriteMapElemValue()
  6718. }
  6719. ee.EncodeInt(int64(v2))
  6720. }
  6721. }
  6722. ee.WriteMapEnd()
  6723. }
  6724. func (e *Encoder) fastpathEncMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  6725. fastpathTV.EncMapUint16Int8V(rv2i(rv).(map[uint16]int8), e)
  6726. }
  6727. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, e *Encoder) {
  6728. if v == nil {
  6729. e.e.EncodeNil()
  6730. return
  6731. }
  6732. ee, esep := e.e, e.hh.hasElemSeparators()
  6733. ee.WriteMapStart(len(v))
  6734. if e.h.Canonical {
  6735. v2 := make([]uint64, len(v))
  6736. var i int
  6737. for k, _ := range v {
  6738. v2[i] = uint64(k)
  6739. i++
  6740. }
  6741. sort.Sort(uintSlice(v2))
  6742. for _, k2 := range v2 {
  6743. if esep {
  6744. ee.WriteMapElemKey()
  6745. }
  6746. ee.EncodeUint(uint64(uint16(k2)))
  6747. if esep {
  6748. ee.WriteMapElemValue()
  6749. }
  6750. ee.EncodeInt(int64(v[uint16(k2)]))
  6751. }
  6752. } else {
  6753. for k2, v2 := range v {
  6754. if esep {
  6755. ee.WriteMapElemKey()
  6756. }
  6757. ee.EncodeUint(uint64(k2))
  6758. if esep {
  6759. ee.WriteMapElemValue()
  6760. }
  6761. ee.EncodeInt(int64(v2))
  6762. }
  6763. }
  6764. ee.WriteMapEnd()
  6765. }
  6766. func (e *Encoder) fastpathEncMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  6767. fastpathTV.EncMapUint16Int16V(rv2i(rv).(map[uint16]int16), e)
  6768. }
  6769. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, e *Encoder) {
  6770. if v == nil {
  6771. e.e.EncodeNil()
  6772. return
  6773. }
  6774. ee, esep := e.e, e.hh.hasElemSeparators()
  6775. ee.WriteMapStart(len(v))
  6776. if e.h.Canonical {
  6777. v2 := make([]uint64, len(v))
  6778. var i int
  6779. for k, _ := range v {
  6780. v2[i] = uint64(k)
  6781. i++
  6782. }
  6783. sort.Sort(uintSlice(v2))
  6784. for _, k2 := range v2 {
  6785. if esep {
  6786. ee.WriteMapElemKey()
  6787. }
  6788. ee.EncodeUint(uint64(uint16(k2)))
  6789. if esep {
  6790. ee.WriteMapElemValue()
  6791. }
  6792. ee.EncodeInt(int64(v[uint16(k2)]))
  6793. }
  6794. } else {
  6795. for k2, v2 := range v {
  6796. if esep {
  6797. ee.WriteMapElemKey()
  6798. }
  6799. ee.EncodeUint(uint64(k2))
  6800. if esep {
  6801. ee.WriteMapElemValue()
  6802. }
  6803. ee.EncodeInt(int64(v2))
  6804. }
  6805. }
  6806. ee.WriteMapEnd()
  6807. }
  6808. func (e *Encoder) fastpathEncMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  6809. fastpathTV.EncMapUint16Int32V(rv2i(rv).(map[uint16]int32), e)
  6810. }
  6811. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, e *Encoder) {
  6812. if v == nil {
  6813. e.e.EncodeNil()
  6814. return
  6815. }
  6816. ee, esep := e.e, e.hh.hasElemSeparators()
  6817. ee.WriteMapStart(len(v))
  6818. if e.h.Canonical {
  6819. v2 := make([]uint64, len(v))
  6820. var i int
  6821. for k, _ := range v {
  6822. v2[i] = uint64(k)
  6823. i++
  6824. }
  6825. sort.Sort(uintSlice(v2))
  6826. for _, k2 := range v2 {
  6827. if esep {
  6828. ee.WriteMapElemKey()
  6829. }
  6830. ee.EncodeUint(uint64(uint16(k2)))
  6831. if esep {
  6832. ee.WriteMapElemValue()
  6833. }
  6834. ee.EncodeInt(int64(v[uint16(k2)]))
  6835. }
  6836. } else {
  6837. for k2, v2 := range v {
  6838. if esep {
  6839. ee.WriteMapElemKey()
  6840. }
  6841. ee.EncodeUint(uint64(k2))
  6842. if esep {
  6843. ee.WriteMapElemValue()
  6844. }
  6845. ee.EncodeInt(int64(v2))
  6846. }
  6847. }
  6848. ee.WriteMapEnd()
  6849. }
  6850. func (e *Encoder) fastpathEncMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  6851. fastpathTV.EncMapUint16Int64V(rv2i(rv).(map[uint16]int64), e)
  6852. }
  6853. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, e *Encoder) {
  6854. if v == nil {
  6855. e.e.EncodeNil()
  6856. return
  6857. }
  6858. ee, esep := e.e, e.hh.hasElemSeparators()
  6859. ee.WriteMapStart(len(v))
  6860. if e.h.Canonical {
  6861. v2 := make([]uint64, len(v))
  6862. var i int
  6863. for k, _ := range v {
  6864. v2[i] = uint64(k)
  6865. i++
  6866. }
  6867. sort.Sort(uintSlice(v2))
  6868. for _, k2 := range v2 {
  6869. if esep {
  6870. ee.WriteMapElemKey()
  6871. }
  6872. ee.EncodeUint(uint64(uint16(k2)))
  6873. if esep {
  6874. ee.WriteMapElemValue()
  6875. }
  6876. ee.EncodeInt(int64(v[uint16(k2)]))
  6877. }
  6878. } else {
  6879. for k2, v2 := range v {
  6880. if esep {
  6881. ee.WriteMapElemKey()
  6882. }
  6883. ee.EncodeUint(uint64(k2))
  6884. if esep {
  6885. ee.WriteMapElemValue()
  6886. }
  6887. ee.EncodeInt(int64(v2))
  6888. }
  6889. }
  6890. ee.WriteMapEnd()
  6891. }
  6892. func (e *Encoder) fastpathEncMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  6893. fastpathTV.EncMapUint16Float32V(rv2i(rv).(map[uint16]float32), e)
  6894. }
  6895. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, e *Encoder) {
  6896. if v == nil {
  6897. e.e.EncodeNil()
  6898. return
  6899. }
  6900. ee, esep := e.e, e.hh.hasElemSeparators()
  6901. ee.WriteMapStart(len(v))
  6902. if e.h.Canonical {
  6903. v2 := make([]uint64, len(v))
  6904. var i int
  6905. for k, _ := range v {
  6906. v2[i] = uint64(k)
  6907. i++
  6908. }
  6909. sort.Sort(uintSlice(v2))
  6910. for _, k2 := range v2 {
  6911. if esep {
  6912. ee.WriteMapElemKey()
  6913. }
  6914. ee.EncodeUint(uint64(uint16(k2)))
  6915. if esep {
  6916. ee.WriteMapElemValue()
  6917. }
  6918. ee.EncodeFloat32(v[uint16(k2)])
  6919. }
  6920. } else {
  6921. for k2, v2 := range v {
  6922. if esep {
  6923. ee.WriteMapElemKey()
  6924. }
  6925. ee.EncodeUint(uint64(k2))
  6926. if esep {
  6927. ee.WriteMapElemValue()
  6928. }
  6929. ee.EncodeFloat32(v2)
  6930. }
  6931. }
  6932. ee.WriteMapEnd()
  6933. }
  6934. func (e *Encoder) fastpathEncMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  6935. fastpathTV.EncMapUint16Float64V(rv2i(rv).(map[uint16]float64), e)
  6936. }
  6937. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, e *Encoder) {
  6938. if v == nil {
  6939. e.e.EncodeNil()
  6940. return
  6941. }
  6942. ee, esep := e.e, e.hh.hasElemSeparators()
  6943. ee.WriteMapStart(len(v))
  6944. if e.h.Canonical {
  6945. v2 := make([]uint64, len(v))
  6946. var i int
  6947. for k, _ := range v {
  6948. v2[i] = uint64(k)
  6949. i++
  6950. }
  6951. sort.Sort(uintSlice(v2))
  6952. for _, k2 := range v2 {
  6953. if esep {
  6954. ee.WriteMapElemKey()
  6955. }
  6956. ee.EncodeUint(uint64(uint16(k2)))
  6957. if esep {
  6958. ee.WriteMapElemValue()
  6959. }
  6960. ee.EncodeFloat64(v[uint16(k2)])
  6961. }
  6962. } else {
  6963. for k2, v2 := range v {
  6964. if esep {
  6965. ee.WriteMapElemKey()
  6966. }
  6967. ee.EncodeUint(uint64(k2))
  6968. if esep {
  6969. ee.WriteMapElemValue()
  6970. }
  6971. ee.EncodeFloat64(v2)
  6972. }
  6973. }
  6974. ee.WriteMapEnd()
  6975. }
  6976. func (e *Encoder) fastpathEncMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  6977. fastpathTV.EncMapUint16BoolV(rv2i(rv).(map[uint16]bool), e)
  6978. }
  6979. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, e *Encoder) {
  6980. if v == nil {
  6981. e.e.EncodeNil()
  6982. return
  6983. }
  6984. ee, esep := e.e, e.hh.hasElemSeparators()
  6985. ee.WriteMapStart(len(v))
  6986. if e.h.Canonical {
  6987. v2 := make([]uint64, len(v))
  6988. var i int
  6989. for k, _ := range v {
  6990. v2[i] = uint64(k)
  6991. i++
  6992. }
  6993. sort.Sort(uintSlice(v2))
  6994. for _, k2 := range v2 {
  6995. if esep {
  6996. ee.WriteMapElemKey()
  6997. }
  6998. ee.EncodeUint(uint64(uint16(k2)))
  6999. if esep {
  7000. ee.WriteMapElemValue()
  7001. }
  7002. ee.EncodeBool(v[uint16(k2)])
  7003. }
  7004. } else {
  7005. for k2, v2 := range v {
  7006. if esep {
  7007. ee.WriteMapElemKey()
  7008. }
  7009. ee.EncodeUint(uint64(k2))
  7010. if esep {
  7011. ee.WriteMapElemValue()
  7012. }
  7013. ee.EncodeBool(v2)
  7014. }
  7015. }
  7016. ee.WriteMapEnd()
  7017. }
  7018. func (e *Encoder) fastpathEncMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  7019. fastpathTV.EncMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), e)
  7020. }
  7021. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, e *Encoder) {
  7022. if v == nil {
  7023. e.e.EncodeNil()
  7024. return
  7025. }
  7026. ee, esep := e.e, e.hh.hasElemSeparators()
  7027. ee.WriteMapStart(len(v))
  7028. if e.h.Canonical {
  7029. v2 := make([]uint64, len(v))
  7030. var i int
  7031. for k, _ := range v {
  7032. v2[i] = uint64(k)
  7033. i++
  7034. }
  7035. sort.Sort(uintSlice(v2))
  7036. for _, k2 := range v2 {
  7037. if esep {
  7038. ee.WriteMapElemKey()
  7039. }
  7040. ee.EncodeUint(uint64(uint32(k2)))
  7041. if esep {
  7042. ee.WriteMapElemValue()
  7043. }
  7044. e.encode(v[uint32(k2)])
  7045. }
  7046. } else {
  7047. for k2, v2 := range v {
  7048. if esep {
  7049. ee.WriteMapElemKey()
  7050. }
  7051. ee.EncodeUint(uint64(k2))
  7052. if esep {
  7053. ee.WriteMapElemValue()
  7054. }
  7055. e.encode(v2)
  7056. }
  7057. }
  7058. ee.WriteMapEnd()
  7059. }
  7060. func (e *Encoder) fastpathEncMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  7061. fastpathTV.EncMapUint32StringV(rv2i(rv).(map[uint32]string), e)
  7062. }
  7063. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, e *Encoder) {
  7064. if v == nil {
  7065. e.e.EncodeNil()
  7066. return
  7067. }
  7068. ee, esep := e.e, e.hh.hasElemSeparators()
  7069. ee.WriteMapStart(len(v))
  7070. if e.h.Canonical {
  7071. v2 := make([]uint64, len(v))
  7072. var i int
  7073. for k, _ := range v {
  7074. v2[i] = uint64(k)
  7075. i++
  7076. }
  7077. sort.Sort(uintSlice(v2))
  7078. for _, k2 := range v2 {
  7079. if esep {
  7080. ee.WriteMapElemKey()
  7081. }
  7082. ee.EncodeUint(uint64(uint32(k2)))
  7083. if esep {
  7084. ee.WriteMapElemValue()
  7085. }
  7086. ee.EncodeString(c_UTF8, v[uint32(k2)])
  7087. }
  7088. } else {
  7089. for k2, v2 := range v {
  7090. if esep {
  7091. ee.WriteMapElemKey()
  7092. }
  7093. ee.EncodeUint(uint64(k2))
  7094. if esep {
  7095. ee.WriteMapElemValue()
  7096. }
  7097. ee.EncodeString(c_UTF8, v2)
  7098. }
  7099. }
  7100. ee.WriteMapEnd()
  7101. }
  7102. func (e *Encoder) fastpathEncMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  7103. fastpathTV.EncMapUint32UintV(rv2i(rv).(map[uint32]uint), e)
  7104. }
  7105. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, e *Encoder) {
  7106. if v == nil {
  7107. e.e.EncodeNil()
  7108. return
  7109. }
  7110. ee, esep := e.e, e.hh.hasElemSeparators()
  7111. ee.WriteMapStart(len(v))
  7112. if e.h.Canonical {
  7113. v2 := make([]uint64, len(v))
  7114. var i int
  7115. for k, _ := range v {
  7116. v2[i] = uint64(k)
  7117. i++
  7118. }
  7119. sort.Sort(uintSlice(v2))
  7120. for _, k2 := range v2 {
  7121. if esep {
  7122. ee.WriteMapElemKey()
  7123. }
  7124. ee.EncodeUint(uint64(uint32(k2)))
  7125. if esep {
  7126. ee.WriteMapElemValue()
  7127. }
  7128. ee.EncodeUint(uint64(v[uint32(k2)]))
  7129. }
  7130. } else {
  7131. for k2, v2 := range v {
  7132. if esep {
  7133. ee.WriteMapElemKey()
  7134. }
  7135. ee.EncodeUint(uint64(k2))
  7136. if esep {
  7137. ee.WriteMapElemValue()
  7138. }
  7139. ee.EncodeUint(uint64(v2))
  7140. }
  7141. }
  7142. ee.WriteMapEnd()
  7143. }
  7144. func (e *Encoder) fastpathEncMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  7145. fastpathTV.EncMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), e)
  7146. }
  7147. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, e *Encoder) {
  7148. if v == nil {
  7149. e.e.EncodeNil()
  7150. return
  7151. }
  7152. ee, esep := e.e, e.hh.hasElemSeparators()
  7153. ee.WriteMapStart(len(v))
  7154. if e.h.Canonical {
  7155. v2 := make([]uint64, len(v))
  7156. var i int
  7157. for k, _ := range v {
  7158. v2[i] = uint64(k)
  7159. i++
  7160. }
  7161. sort.Sort(uintSlice(v2))
  7162. for _, k2 := range v2 {
  7163. if esep {
  7164. ee.WriteMapElemKey()
  7165. }
  7166. ee.EncodeUint(uint64(uint32(k2)))
  7167. if esep {
  7168. ee.WriteMapElemValue()
  7169. }
  7170. ee.EncodeUint(uint64(v[uint32(k2)]))
  7171. }
  7172. } else {
  7173. for k2, v2 := range v {
  7174. if esep {
  7175. ee.WriteMapElemKey()
  7176. }
  7177. ee.EncodeUint(uint64(k2))
  7178. if esep {
  7179. ee.WriteMapElemValue()
  7180. }
  7181. ee.EncodeUint(uint64(v2))
  7182. }
  7183. }
  7184. ee.WriteMapEnd()
  7185. }
  7186. func (e *Encoder) fastpathEncMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  7187. fastpathTV.EncMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), e)
  7188. }
  7189. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, e *Encoder) {
  7190. if v == nil {
  7191. e.e.EncodeNil()
  7192. return
  7193. }
  7194. ee, esep := e.e, e.hh.hasElemSeparators()
  7195. ee.WriteMapStart(len(v))
  7196. if e.h.Canonical {
  7197. v2 := make([]uint64, len(v))
  7198. var i int
  7199. for k, _ := range v {
  7200. v2[i] = uint64(k)
  7201. i++
  7202. }
  7203. sort.Sort(uintSlice(v2))
  7204. for _, k2 := range v2 {
  7205. if esep {
  7206. ee.WriteMapElemKey()
  7207. }
  7208. ee.EncodeUint(uint64(uint32(k2)))
  7209. if esep {
  7210. ee.WriteMapElemValue()
  7211. }
  7212. ee.EncodeUint(uint64(v[uint32(k2)]))
  7213. }
  7214. } else {
  7215. for k2, v2 := range v {
  7216. if esep {
  7217. ee.WriteMapElemKey()
  7218. }
  7219. ee.EncodeUint(uint64(k2))
  7220. if esep {
  7221. ee.WriteMapElemValue()
  7222. }
  7223. ee.EncodeUint(uint64(v2))
  7224. }
  7225. }
  7226. ee.WriteMapEnd()
  7227. }
  7228. func (e *Encoder) fastpathEncMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  7229. fastpathTV.EncMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), e)
  7230. }
  7231. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, e *Encoder) {
  7232. if v == nil {
  7233. e.e.EncodeNil()
  7234. return
  7235. }
  7236. ee, esep := e.e, e.hh.hasElemSeparators()
  7237. ee.WriteMapStart(len(v))
  7238. if e.h.Canonical {
  7239. v2 := make([]uint64, len(v))
  7240. var i int
  7241. for k, _ := range v {
  7242. v2[i] = uint64(k)
  7243. i++
  7244. }
  7245. sort.Sort(uintSlice(v2))
  7246. for _, k2 := range v2 {
  7247. if esep {
  7248. ee.WriteMapElemKey()
  7249. }
  7250. ee.EncodeUint(uint64(uint32(k2)))
  7251. if esep {
  7252. ee.WriteMapElemValue()
  7253. }
  7254. ee.EncodeUint(uint64(v[uint32(k2)]))
  7255. }
  7256. } else {
  7257. for k2, v2 := range v {
  7258. if esep {
  7259. ee.WriteMapElemKey()
  7260. }
  7261. ee.EncodeUint(uint64(k2))
  7262. if esep {
  7263. ee.WriteMapElemValue()
  7264. }
  7265. ee.EncodeUint(uint64(v2))
  7266. }
  7267. }
  7268. ee.WriteMapEnd()
  7269. }
  7270. func (e *Encoder) fastpathEncMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  7271. fastpathTV.EncMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), e)
  7272. }
  7273. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, e *Encoder) {
  7274. if v == nil {
  7275. e.e.EncodeNil()
  7276. return
  7277. }
  7278. ee, esep := e.e, e.hh.hasElemSeparators()
  7279. ee.WriteMapStart(len(v))
  7280. if e.h.Canonical {
  7281. v2 := make([]uint64, len(v))
  7282. var i int
  7283. for k, _ := range v {
  7284. v2[i] = uint64(k)
  7285. i++
  7286. }
  7287. sort.Sort(uintSlice(v2))
  7288. for _, k2 := range v2 {
  7289. if esep {
  7290. ee.WriteMapElemKey()
  7291. }
  7292. ee.EncodeUint(uint64(uint32(k2)))
  7293. if esep {
  7294. ee.WriteMapElemValue()
  7295. }
  7296. ee.EncodeUint(uint64(v[uint32(k2)]))
  7297. }
  7298. } else {
  7299. for k2, v2 := range v {
  7300. if esep {
  7301. ee.WriteMapElemKey()
  7302. }
  7303. ee.EncodeUint(uint64(k2))
  7304. if esep {
  7305. ee.WriteMapElemValue()
  7306. }
  7307. ee.EncodeUint(uint64(v2))
  7308. }
  7309. }
  7310. ee.WriteMapEnd()
  7311. }
  7312. func (e *Encoder) fastpathEncMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  7313. fastpathTV.EncMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), e)
  7314. }
  7315. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, e *Encoder) {
  7316. if v == nil {
  7317. e.e.EncodeNil()
  7318. return
  7319. }
  7320. ee, esep := e.e, e.hh.hasElemSeparators()
  7321. ee.WriteMapStart(len(v))
  7322. if e.h.Canonical {
  7323. v2 := make([]uint64, len(v))
  7324. var i int
  7325. for k, _ := range v {
  7326. v2[i] = uint64(k)
  7327. i++
  7328. }
  7329. sort.Sort(uintSlice(v2))
  7330. for _, k2 := range v2 {
  7331. if esep {
  7332. ee.WriteMapElemKey()
  7333. }
  7334. ee.EncodeUint(uint64(uint32(k2)))
  7335. if esep {
  7336. ee.WriteMapElemValue()
  7337. }
  7338. e.encode(v[uint32(k2)])
  7339. }
  7340. } else {
  7341. for k2, v2 := range v {
  7342. if esep {
  7343. ee.WriteMapElemKey()
  7344. }
  7345. ee.EncodeUint(uint64(k2))
  7346. if esep {
  7347. ee.WriteMapElemValue()
  7348. }
  7349. e.encode(v2)
  7350. }
  7351. }
  7352. ee.WriteMapEnd()
  7353. }
  7354. func (e *Encoder) fastpathEncMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  7355. fastpathTV.EncMapUint32IntV(rv2i(rv).(map[uint32]int), e)
  7356. }
  7357. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, e *Encoder) {
  7358. if v == nil {
  7359. e.e.EncodeNil()
  7360. return
  7361. }
  7362. ee, esep := e.e, e.hh.hasElemSeparators()
  7363. ee.WriteMapStart(len(v))
  7364. if e.h.Canonical {
  7365. v2 := make([]uint64, len(v))
  7366. var i int
  7367. for k, _ := range v {
  7368. v2[i] = uint64(k)
  7369. i++
  7370. }
  7371. sort.Sort(uintSlice(v2))
  7372. for _, k2 := range v2 {
  7373. if esep {
  7374. ee.WriteMapElemKey()
  7375. }
  7376. ee.EncodeUint(uint64(uint32(k2)))
  7377. if esep {
  7378. ee.WriteMapElemValue()
  7379. }
  7380. ee.EncodeInt(int64(v[uint32(k2)]))
  7381. }
  7382. } else {
  7383. for k2, v2 := range v {
  7384. if esep {
  7385. ee.WriteMapElemKey()
  7386. }
  7387. ee.EncodeUint(uint64(k2))
  7388. if esep {
  7389. ee.WriteMapElemValue()
  7390. }
  7391. ee.EncodeInt(int64(v2))
  7392. }
  7393. }
  7394. ee.WriteMapEnd()
  7395. }
  7396. func (e *Encoder) fastpathEncMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  7397. fastpathTV.EncMapUint32Int8V(rv2i(rv).(map[uint32]int8), e)
  7398. }
  7399. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, e *Encoder) {
  7400. if v == nil {
  7401. e.e.EncodeNil()
  7402. return
  7403. }
  7404. ee, esep := e.e, e.hh.hasElemSeparators()
  7405. ee.WriteMapStart(len(v))
  7406. if e.h.Canonical {
  7407. v2 := make([]uint64, len(v))
  7408. var i int
  7409. for k, _ := range v {
  7410. v2[i] = uint64(k)
  7411. i++
  7412. }
  7413. sort.Sort(uintSlice(v2))
  7414. for _, k2 := range v2 {
  7415. if esep {
  7416. ee.WriteMapElemKey()
  7417. }
  7418. ee.EncodeUint(uint64(uint32(k2)))
  7419. if esep {
  7420. ee.WriteMapElemValue()
  7421. }
  7422. ee.EncodeInt(int64(v[uint32(k2)]))
  7423. }
  7424. } else {
  7425. for k2, v2 := range v {
  7426. if esep {
  7427. ee.WriteMapElemKey()
  7428. }
  7429. ee.EncodeUint(uint64(k2))
  7430. if esep {
  7431. ee.WriteMapElemValue()
  7432. }
  7433. ee.EncodeInt(int64(v2))
  7434. }
  7435. }
  7436. ee.WriteMapEnd()
  7437. }
  7438. func (e *Encoder) fastpathEncMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  7439. fastpathTV.EncMapUint32Int16V(rv2i(rv).(map[uint32]int16), e)
  7440. }
  7441. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, e *Encoder) {
  7442. if v == nil {
  7443. e.e.EncodeNil()
  7444. return
  7445. }
  7446. ee, esep := e.e, e.hh.hasElemSeparators()
  7447. ee.WriteMapStart(len(v))
  7448. if e.h.Canonical {
  7449. v2 := make([]uint64, len(v))
  7450. var i int
  7451. for k, _ := range v {
  7452. v2[i] = uint64(k)
  7453. i++
  7454. }
  7455. sort.Sort(uintSlice(v2))
  7456. for _, k2 := range v2 {
  7457. if esep {
  7458. ee.WriteMapElemKey()
  7459. }
  7460. ee.EncodeUint(uint64(uint32(k2)))
  7461. if esep {
  7462. ee.WriteMapElemValue()
  7463. }
  7464. ee.EncodeInt(int64(v[uint32(k2)]))
  7465. }
  7466. } else {
  7467. for k2, v2 := range v {
  7468. if esep {
  7469. ee.WriteMapElemKey()
  7470. }
  7471. ee.EncodeUint(uint64(k2))
  7472. if esep {
  7473. ee.WriteMapElemValue()
  7474. }
  7475. ee.EncodeInt(int64(v2))
  7476. }
  7477. }
  7478. ee.WriteMapEnd()
  7479. }
  7480. func (e *Encoder) fastpathEncMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  7481. fastpathTV.EncMapUint32Int32V(rv2i(rv).(map[uint32]int32), e)
  7482. }
  7483. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, e *Encoder) {
  7484. if v == nil {
  7485. e.e.EncodeNil()
  7486. return
  7487. }
  7488. ee, esep := e.e, e.hh.hasElemSeparators()
  7489. ee.WriteMapStart(len(v))
  7490. if e.h.Canonical {
  7491. v2 := make([]uint64, len(v))
  7492. var i int
  7493. for k, _ := range v {
  7494. v2[i] = uint64(k)
  7495. i++
  7496. }
  7497. sort.Sort(uintSlice(v2))
  7498. for _, k2 := range v2 {
  7499. if esep {
  7500. ee.WriteMapElemKey()
  7501. }
  7502. ee.EncodeUint(uint64(uint32(k2)))
  7503. if esep {
  7504. ee.WriteMapElemValue()
  7505. }
  7506. ee.EncodeInt(int64(v[uint32(k2)]))
  7507. }
  7508. } else {
  7509. for k2, v2 := range v {
  7510. if esep {
  7511. ee.WriteMapElemKey()
  7512. }
  7513. ee.EncodeUint(uint64(k2))
  7514. if esep {
  7515. ee.WriteMapElemValue()
  7516. }
  7517. ee.EncodeInt(int64(v2))
  7518. }
  7519. }
  7520. ee.WriteMapEnd()
  7521. }
  7522. func (e *Encoder) fastpathEncMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  7523. fastpathTV.EncMapUint32Int64V(rv2i(rv).(map[uint32]int64), e)
  7524. }
  7525. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, e *Encoder) {
  7526. if v == nil {
  7527. e.e.EncodeNil()
  7528. return
  7529. }
  7530. ee, esep := e.e, e.hh.hasElemSeparators()
  7531. ee.WriteMapStart(len(v))
  7532. if e.h.Canonical {
  7533. v2 := make([]uint64, len(v))
  7534. var i int
  7535. for k, _ := range v {
  7536. v2[i] = uint64(k)
  7537. i++
  7538. }
  7539. sort.Sort(uintSlice(v2))
  7540. for _, k2 := range v2 {
  7541. if esep {
  7542. ee.WriteMapElemKey()
  7543. }
  7544. ee.EncodeUint(uint64(uint32(k2)))
  7545. if esep {
  7546. ee.WriteMapElemValue()
  7547. }
  7548. ee.EncodeInt(int64(v[uint32(k2)]))
  7549. }
  7550. } else {
  7551. for k2, v2 := range v {
  7552. if esep {
  7553. ee.WriteMapElemKey()
  7554. }
  7555. ee.EncodeUint(uint64(k2))
  7556. if esep {
  7557. ee.WriteMapElemValue()
  7558. }
  7559. ee.EncodeInt(int64(v2))
  7560. }
  7561. }
  7562. ee.WriteMapEnd()
  7563. }
  7564. func (e *Encoder) fastpathEncMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  7565. fastpathTV.EncMapUint32Float32V(rv2i(rv).(map[uint32]float32), e)
  7566. }
  7567. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, e *Encoder) {
  7568. if v == nil {
  7569. e.e.EncodeNil()
  7570. return
  7571. }
  7572. ee, esep := e.e, e.hh.hasElemSeparators()
  7573. ee.WriteMapStart(len(v))
  7574. if e.h.Canonical {
  7575. v2 := make([]uint64, len(v))
  7576. var i int
  7577. for k, _ := range v {
  7578. v2[i] = uint64(k)
  7579. i++
  7580. }
  7581. sort.Sort(uintSlice(v2))
  7582. for _, k2 := range v2 {
  7583. if esep {
  7584. ee.WriteMapElemKey()
  7585. }
  7586. ee.EncodeUint(uint64(uint32(k2)))
  7587. if esep {
  7588. ee.WriteMapElemValue()
  7589. }
  7590. ee.EncodeFloat32(v[uint32(k2)])
  7591. }
  7592. } else {
  7593. for k2, v2 := range v {
  7594. if esep {
  7595. ee.WriteMapElemKey()
  7596. }
  7597. ee.EncodeUint(uint64(k2))
  7598. if esep {
  7599. ee.WriteMapElemValue()
  7600. }
  7601. ee.EncodeFloat32(v2)
  7602. }
  7603. }
  7604. ee.WriteMapEnd()
  7605. }
  7606. func (e *Encoder) fastpathEncMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  7607. fastpathTV.EncMapUint32Float64V(rv2i(rv).(map[uint32]float64), e)
  7608. }
  7609. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, e *Encoder) {
  7610. if v == nil {
  7611. e.e.EncodeNil()
  7612. return
  7613. }
  7614. ee, esep := e.e, e.hh.hasElemSeparators()
  7615. ee.WriteMapStart(len(v))
  7616. if e.h.Canonical {
  7617. v2 := make([]uint64, len(v))
  7618. var i int
  7619. for k, _ := range v {
  7620. v2[i] = uint64(k)
  7621. i++
  7622. }
  7623. sort.Sort(uintSlice(v2))
  7624. for _, k2 := range v2 {
  7625. if esep {
  7626. ee.WriteMapElemKey()
  7627. }
  7628. ee.EncodeUint(uint64(uint32(k2)))
  7629. if esep {
  7630. ee.WriteMapElemValue()
  7631. }
  7632. ee.EncodeFloat64(v[uint32(k2)])
  7633. }
  7634. } else {
  7635. for k2, v2 := range v {
  7636. if esep {
  7637. ee.WriteMapElemKey()
  7638. }
  7639. ee.EncodeUint(uint64(k2))
  7640. if esep {
  7641. ee.WriteMapElemValue()
  7642. }
  7643. ee.EncodeFloat64(v2)
  7644. }
  7645. }
  7646. ee.WriteMapEnd()
  7647. }
  7648. func (e *Encoder) fastpathEncMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  7649. fastpathTV.EncMapUint32BoolV(rv2i(rv).(map[uint32]bool), e)
  7650. }
  7651. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, e *Encoder) {
  7652. if v == nil {
  7653. e.e.EncodeNil()
  7654. return
  7655. }
  7656. ee, esep := e.e, e.hh.hasElemSeparators()
  7657. ee.WriteMapStart(len(v))
  7658. if e.h.Canonical {
  7659. v2 := make([]uint64, len(v))
  7660. var i int
  7661. for k, _ := range v {
  7662. v2[i] = uint64(k)
  7663. i++
  7664. }
  7665. sort.Sort(uintSlice(v2))
  7666. for _, k2 := range v2 {
  7667. if esep {
  7668. ee.WriteMapElemKey()
  7669. }
  7670. ee.EncodeUint(uint64(uint32(k2)))
  7671. if esep {
  7672. ee.WriteMapElemValue()
  7673. }
  7674. ee.EncodeBool(v[uint32(k2)])
  7675. }
  7676. } else {
  7677. for k2, v2 := range v {
  7678. if esep {
  7679. ee.WriteMapElemKey()
  7680. }
  7681. ee.EncodeUint(uint64(k2))
  7682. if esep {
  7683. ee.WriteMapElemValue()
  7684. }
  7685. ee.EncodeBool(v2)
  7686. }
  7687. }
  7688. ee.WriteMapEnd()
  7689. }
  7690. func (e *Encoder) fastpathEncMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  7691. fastpathTV.EncMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), e)
  7692. }
  7693. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, e *Encoder) {
  7694. if v == nil {
  7695. e.e.EncodeNil()
  7696. return
  7697. }
  7698. ee, esep := e.e, e.hh.hasElemSeparators()
  7699. ee.WriteMapStart(len(v))
  7700. if e.h.Canonical {
  7701. v2 := make([]uint64, len(v))
  7702. var i int
  7703. for k, _ := range v {
  7704. v2[i] = uint64(k)
  7705. i++
  7706. }
  7707. sort.Sort(uintSlice(v2))
  7708. for _, k2 := range v2 {
  7709. if esep {
  7710. ee.WriteMapElemKey()
  7711. }
  7712. ee.EncodeUint(uint64(uint64(k2)))
  7713. if esep {
  7714. ee.WriteMapElemValue()
  7715. }
  7716. e.encode(v[uint64(k2)])
  7717. }
  7718. } else {
  7719. for k2, v2 := range v {
  7720. if esep {
  7721. ee.WriteMapElemKey()
  7722. }
  7723. ee.EncodeUint(uint64(k2))
  7724. if esep {
  7725. ee.WriteMapElemValue()
  7726. }
  7727. e.encode(v2)
  7728. }
  7729. }
  7730. ee.WriteMapEnd()
  7731. }
  7732. func (e *Encoder) fastpathEncMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  7733. fastpathTV.EncMapUint64StringV(rv2i(rv).(map[uint64]string), e)
  7734. }
  7735. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, e *Encoder) {
  7736. if v == nil {
  7737. e.e.EncodeNil()
  7738. return
  7739. }
  7740. ee, esep := e.e, e.hh.hasElemSeparators()
  7741. ee.WriteMapStart(len(v))
  7742. if e.h.Canonical {
  7743. v2 := make([]uint64, len(v))
  7744. var i int
  7745. for k, _ := range v {
  7746. v2[i] = uint64(k)
  7747. i++
  7748. }
  7749. sort.Sort(uintSlice(v2))
  7750. for _, k2 := range v2 {
  7751. if esep {
  7752. ee.WriteMapElemKey()
  7753. }
  7754. ee.EncodeUint(uint64(uint64(k2)))
  7755. if esep {
  7756. ee.WriteMapElemValue()
  7757. }
  7758. ee.EncodeString(c_UTF8, v[uint64(k2)])
  7759. }
  7760. } else {
  7761. for k2, v2 := range v {
  7762. if esep {
  7763. ee.WriteMapElemKey()
  7764. }
  7765. ee.EncodeUint(uint64(k2))
  7766. if esep {
  7767. ee.WriteMapElemValue()
  7768. }
  7769. ee.EncodeString(c_UTF8, v2)
  7770. }
  7771. }
  7772. ee.WriteMapEnd()
  7773. }
  7774. func (e *Encoder) fastpathEncMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  7775. fastpathTV.EncMapUint64UintV(rv2i(rv).(map[uint64]uint), e)
  7776. }
  7777. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, e *Encoder) {
  7778. if v == nil {
  7779. e.e.EncodeNil()
  7780. return
  7781. }
  7782. ee, esep := e.e, e.hh.hasElemSeparators()
  7783. ee.WriteMapStart(len(v))
  7784. if e.h.Canonical {
  7785. v2 := make([]uint64, len(v))
  7786. var i int
  7787. for k, _ := range v {
  7788. v2[i] = uint64(k)
  7789. i++
  7790. }
  7791. sort.Sort(uintSlice(v2))
  7792. for _, k2 := range v2 {
  7793. if esep {
  7794. ee.WriteMapElemKey()
  7795. }
  7796. ee.EncodeUint(uint64(uint64(k2)))
  7797. if esep {
  7798. ee.WriteMapElemValue()
  7799. }
  7800. ee.EncodeUint(uint64(v[uint64(k2)]))
  7801. }
  7802. } else {
  7803. for k2, v2 := range v {
  7804. if esep {
  7805. ee.WriteMapElemKey()
  7806. }
  7807. ee.EncodeUint(uint64(k2))
  7808. if esep {
  7809. ee.WriteMapElemValue()
  7810. }
  7811. ee.EncodeUint(uint64(v2))
  7812. }
  7813. }
  7814. ee.WriteMapEnd()
  7815. }
  7816. func (e *Encoder) fastpathEncMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  7817. fastpathTV.EncMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), e)
  7818. }
  7819. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, e *Encoder) {
  7820. if v == nil {
  7821. e.e.EncodeNil()
  7822. return
  7823. }
  7824. ee, esep := e.e, e.hh.hasElemSeparators()
  7825. ee.WriteMapStart(len(v))
  7826. if e.h.Canonical {
  7827. v2 := make([]uint64, len(v))
  7828. var i int
  7829. for k, _ := range v {
  7830. v2[i] = uint64(k)
  7831. i++
  7832. }
  7833. sort.Sort(uintSlice(v2))
  7834. for _, k2 := range v2 {
  7835. if esep {
  7836. ee.WriteMapElemKey()
  7837. }
  7838. ee.EncodeUint(uint64(uint64(k2)))
  7839. if esep {
  7840. ee.WriteMapElemValue()
  7841. }
  7842. ee.EncodeUint(uint64(v[uint64(k2)]))
  7843. }
  7844. } else {
  7845. for k2, v2 := range v {
  7846. if esep {
  7847. ee.WriteMapElemKey()
  7848. }
  7849. ee.EncodeUint(uint64(k2))
  7850. if esep {
  7851. ee.WriteMapElemValue()
  7852. }
  7853. ee.EncodeUint(uint64(v2))
  7854. }
  7855. }
  7856. ee.WriteMapEnd()
  7857. }
  7858. func (e *Encoder) fastpathEncMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  7859. fastpathTV.EncMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), e)
  7860. }
  7861. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, e *Encoder) {
  7862. if v == nil {
  7863. e.e.EncodeNil()
  7864. return
  7865. }
  7866. ee, esep := e.e, e.hh.hasElemSeparators()
  7867. ee.WriteMapStart(len(v))
  7868. if e.h.Canonical {
  7869. v2 := make([]uint64, len(v))
  7870. var i int
  7871. for k, _ := range v {
  7872. v2[i] = uint64(k)
  7873. i++
  7874. }
  7875. sort.Sort(uintSlice(v2))
  7876. for _, k2 := range v2 {
  7877. if esep {
  7878. ee.WriteMapElemKey()
  7879. }
  7880. ee.EncodeUint(uint64(uint64(k2)))
  7881. if esep {
  7882. ee.WriteMapElemValue()
  7883. }
  7884. ee.EncodeUint(uint64(v[uint64(k2)]))
  7885. }
  7886. } else {
  7887. for k2, v2 := range v {
  7888. if esep {
  7889. ee.WriteMapElemKey()
  7890. }
  7891. ee.EncodeUint(uint64(k2))
  7892. if esep {
  7893. ee.WriteMapElemValue()
  7894. }
  7895. ee.EncodeUint(uint64(v2))
  7896. }
  7897. }
  7898. ee.WriteMapEnd()
  7899. }
  7900. func (e *Encoder) fastpathEncMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  7901. fastpathTV.EncMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), e)
  7902. }
  7903. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, e *Encoder) {
  7904. if v == nil {
  7905. e.e.EncodeNil()
  7906. return
  7907. }
  7908. ee, esep := e.e, e.hh.hasElemSeparators()
  7909. ee.WriteMapStart(len(v))
  7910. if e.h.Canonical {
  7911. v2 := make([]uint64, len(v))
  7912. var i int
  7913. for k, _ := range v {
  7914. v2[i] = uint64(k)
  7915. i++
  7916. }
  7917. sort.Sort(uintSlice(v2))
  7918. for _, k2 := range v2 {
  7919. if esep {
  7920. ee.WriteMapElemKey()
  7921. }
  7922. ee.EncodeUint(uint64(uint64(k2)))
  7923. if esep {
  7924. ee.WriteMapElemValue()
  7925. }
  7926. ee.EncodeUint(uint64(v[uint64(k2)]))
  7927. }
  7928. } else {
  7929. for k2, v2 := range v {
  7930. if esep {
  7931. ee.WriteMapElemKey()
  7932. }
  7933. ee.EncodeUint(uint64(k2))
  7934. if esep {
  7935. ee.WriteMapElemValue()
  7936. }
  7937. ee.EncodeUint(uint64(v2))
  7938. }
  7939. }
  7940. ee.WriteMapEnd()
  7941. }
  7942. func (e *Encoder) fastpathEncMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  7943. fastpathTV.EncMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), e)
  7944. }
  7945. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, e *Encoder) {
  7946. if v == nil {
  7947. e.e.EncodeNil()
  7948. return
  7949. }
  7950. ee, esep := e.e, e.hh.hasElemSeparators()
  7951. ee.WriteMapStart(len(v))
  7952. if e.h.Canonical {
  7953. v2 := make([]uint64, len(v))
  7954. var i int
  7955. for k, _ := range v {
  7956. v2[i] = uint64(k)
  7957. i++
  7958. }
  7959. sort.Sort(uintSlice(v2))
  7960. for _, k2 := range v2 {
  7961. if esep {
  7962. ee.WriteMapElemKey()
  7963. }
  7964. ee.EncodeUint(uint64(uint64(k2)))
  7965. if esep {
  7966. ee.WriteMapElemValue()
  7967. }
  7968. ee.EncodeUint(uint64(v[uint64(k2)]))
  7969. }
  7970. } else {
  7971. for k2, v2 := range v {
  7972. if esep {
  7973. ee.WriteMapElemKey()
  7974. }
  7975. ee.EncodeUint(uint64(k2))
  7976. if esep {
  7977. ee.WriteMapElemValue()
  7978. }
  7979. ee.EncodeUint(uint64(v2))
  7980. }
  7981. }
  7982. ee.WriteMapEnd()
  7983. }
  7984. func (e *Encoder) fastpathEncMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  7985. fastpathTV.EncMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), e)
  7986. }
  7987. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, e *Encoder) {
  7988. if v == nil {
  7989. e.e.EncodeNil()
  7990. return
  7991. }
  7992. ee, esep := e.e, e.hh.hasElemSeparators()
  7993. ee.WriteMapStart(len(v))
  7994. if e.h.Canonical {
  7995. v2 := make([]uint64, len(v))
  7996. var i int
  7997. for k, _ := range v {
  7998. v2[i] = uint64(k)
  7999. i++
  8000. }
  8001. sort.Sort(uintSlice(v2))
  8002. for _, k2 := range v2 {
  8003. if esep {
  8004. ee.WriteMapElemKey()
  8005. }
  8006. ee.EncodeUint(uint64(uint64(k2)))
  8007. if esep {
  8008. ee.WriteMapElemValue()
  8009. }
  8010. e.encode(v[uint64(k2)])
  8011. }
  8012. } else {
  8013. for k2, v2 := range v {
  8014. if esep {
  8015. ee.WriteMapElemKey()
  8016. }
  8017. ee.EncodeUint(uint64(k2))
  8018. if esep {
  8019. ee.WriteMapElemValue()
  8020. }
  8021. e.encode(v2)
  8022. }
  8023. }
  8024. ee.WriteMapEnd()
  8025. }
  8026. func (e *Encoder) fastpathEncMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  8027. fastpathTV.EncMapUint64IntV(rv2i(rv).(map[uint64]int), e)
  8028. }
  8029. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, e *Encoder) {
  8030. if v == nil {
  8031. e.e.EncodeNil()
  8032. return
  8033. }
  8034. ee, esep := e.e, e.hh.hasElemSeparators()
  8035. ee.WriteMapStart(len(v))
  8036. if e.h.Canonical {
  8037. v2 := make([]uint64, len(v))
  8038. var i int
  8039. for k, _ := range v {
  8040. v2[i] = uint64(k)
  8041. i++
  8042. }
  8043. sort.Sort(uintSlice(v2))
  8044. for _, k2 := range v2 {
  8045. if esep {
  8046. ee.WriteMapElemKey()
  8047. }
  8048. ee.EncodeUint(uint64(uint64(k2)))
  8049. if esep {
  8050. ee.WriteMapElemValue()
  8051. }
  8052. ee.EncodeInt(int64(v[uint64(k2)]))
  8053. }
  8054. } else {
  8055. for k2, v2 := range v {
  8056. if esep {
  8057. ee.WriteMapElemKey()
  8058. }
  8059. ee.EncodeUint(uint64(k2))
  8060. if esep {
  8061. ee.WriteMapElemValue()
  8062. }
  8063. ee.EncodeInt(int64(v2))
  8064. }
  8065. }
  8066. ee.WriteMapEnd()
  8067. }
  8068. func (e *Encoder) fastpathEncMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  8069. fastpathTV.EncMapUint64Int8V(rv2i(rv).(map[uint64]int8), e)
  8070. }
  8071. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, e *Encoder) {
  8072. if v == nil {
  8073. e.e.EncodeNil()
  8074. return
  8075. }
  8076. ee, esep := e.e, e.hh.hasElemSeparators()
  8077. ee.WriteMapStart(len(v))
  8078. if e.h.Canonical {
  8079. v2 := make([]uint64, len(v))
  8080. var i int
  8081. for k, _ := range v {
  8082. v2[i] = uint64(k)
  8083. i++
  8084. }
  8085. sort.Sort(uintSlice(v2))
  8086. for _, k2 := range v2 {
  8087. if esep {
  8088. ee.WriteMapElemKey()
  8089. }
  8090. ee.EncodeUint(uint64(uint64(k2)))
  8091. if esep {
  8092. ee.WriteMapElemValue()
  8093. }
  8094. ee.EncodeInt(int64(v[uint64(k2)]))
  8095. }
  8096. } else {
  8097. for k2, v2 := range v {
  8098. if esep {
  8099. ee.WriteMapElemKey()
  8100. }
  8101. ee.EncodeUint(uint64(k2))
  8102. if esep {
  8103. ee.WriteMapElemValue()
  8104. }
  8105. ee.EncodeInt(int64(v2))
  8106. }
  8107. }
  8108. ee.WriteMapEnd()
  8109. }
  8110. func (e *Encoder) fastpathEncMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  8111. fastpathTV.EncMapUint64Int16V(rv2i(rv).(map[uint64]int16), e)
  8112. }
  8113. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, e *Encoder) {
  8114. if v == nil {
  8115. e.e.EncodeNil()
  8116. return
  8117. }
  8118. ee, esep := e.e, e.hh.hasElemSeparators()
  8119. ee.WriteMapStart(len(v))
  8120. if e.h.Canonical {
  8121. v2 := make([]uint64, len(v))
  8122. var i int
  8123. for k, _ := range v {
  8124. v2[i] = uint64(k)
  8125. i++
  8126. }
  8127. sort.Sort(uintSlice(v2))
  8128. for _, k2 := range v2 {
  8129. if esep {
  8130. ee.WriteMapElemKey()
  8131. }
  8132. ee.EncodeUint(uint64(uint64(k2)))
  8133. if esep {
  8134. ee.WriteMapElemValue()
  8135. }
  8136. ee.EncodeInt(int64(v[uint64(k2)]))
  8137. }
  8138. } else {
  8139. for k2, v2 := range v {
  8140. if esep {
  8141. ee.WriteMapElemKey()
  8142. }
  8143. ee.EncodeUint(uint64(k2))
  8144. if esep {
  8145. ee.WriteMapElemValue()
  8146. }
  8147. ee.EncodeInt(int64(v2))
  8148. }
  8149. }
  8150. ee.WriteMapEnd()
  8151. }
  8152. func (e *Encoder) fastpathEncMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  8153. fastpathTV.EncMapUint64Int32V(rv2i(rv).(map[uint64]int32), e)
  8154. }
  8155. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, e *Encoder) {
  8156. if v == nil {
  8157. e.e.EncodeNil()
  8158. return
  8159. }
  8160. ee, esep := e.e, e.hh.hasElemSeparators()
  8161. ee.WriteMapStart(len(v))
  8162. if e.h.Canonical {
  8163. v2 := make([]uint64, len(v))
  8164. var i int
  8165. for k, _ := range v {
  8166. v2[i] = uint64(k)
  8167. i++
  8168. }
  8169. sort.Sort(uintSlice(v2))
  8170. for _, k2 := range v2 {
  8171. if esep {
  8172. ee.WriteMapElemKey()
  8173. }
  8174. ee.EncodeUint(uint64(uint64(k2)))
  8175. if esep {
  8176. ee.WriteMapElemValue()
  8177. }
  8178. ee.EncodeInt(int64(v[uint64(k2)]))
  8179. }
  8180. } else {
  8181. for k2, v2 := range v {
  8182. if esep {
  8183. ee.WriteMapElemKey()
  8184. }
  8185. ee.EncodeUint(uint64(k2))
  8186. if esep {
  8187. ee.WriteMapElemValue()
  8188. }
  8189. ee.EncodeInt(int64(v2))
  8190. }
  8191. }
  8192. ee.WriteMapEnd()
  8193. }
  8194. func (e *Encoder) fastpathEncMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  8195. fastpathTV.EncMapUint64Int64V(rv2i(rv).(map[uint64]int64), e)
  8196. }
  8197. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, e *Encoder) {
  8198. if v == nil {
  8199. e.e.EncodeNil()
  8200. return
  8201. }
  8202. ee, esep := e.e, e.hh.hasElemSeparators()
  8203. ee.WriteMapStart(len(v))
  8204. if e.h.Canonical {
  8205. v2 := make([]uint64, len(v))
  8206. var i int
  8207. for k, _ := range v {
  8208. v2[i] = uint64(k)
  8209. i++
  8210. }
  8211. sort.Sort(uintSlice(v2))
  8212. for _, k2 := range v2 {
  8213. if esep {
  8214. ee.WriteMapElemKey()
  8215. }
  8216. ee.EncodeUint(uint64(uint64(k2)))
  8217. if esep {
  8218. ee.WriteMapElemValue()
  8219. }
  8220. ee.EncodeInt(int64(v[uint64(k2)]))
  8221. }
  8222. } else {
  8223. for k2, v2 := range v {
  8224. if esep {
  8225. ee.WriteMapElemKey()
  8226. }
  8227. ee.EncodeUint(uint64(k2))
  8228. if esep {
  8229. ee.WriteMapElemValue()
  8230. }
  8231. ee.EncodeInt(int64(v2))
  8232. }
  8233. }
  8234. ee.WriteMapEnd()
  8235. }
  8236. func (e *Encoder) fastpathEncMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  8237. fastpathTV.EncMapUint64Float32V(rv2i(rv).(map[uint64]float32), e)
  8238. }
  8239. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, e *Encoder) {
  8240. if v == nil {
  8241. e.e.EncodeNil()
  8242. return
  8243. }
  8244. ee, esep := e.e, e.hh.hasElemSeparators()
  8245. ee.WriteMapStart(len(v))
  8246. if e.h.Canonical {
  8247. v2 := make([]uint64, len(v))
  8248. var i int
  8249. for k, _ := range v {
  8250. v2[i] = uint64(k)
  8251. i++
  8252. }
  8253. sort.Sort(uintSlice(v2))
  8254. for _, k2 := range v2 {
  8255. if esep {
  8256. ee.WriteMapElemKey()
  8257. }
  8258. ee.EncodeUint(uint64(uint64(k2)))
  8259. if esep {
  8260. ee.WriteMapElemValue()
  8261. }
  8262. ee.EncodeFloat32(v[uint64(k2)])
  8263. }
  8264. } else {
  8265. for k2, v2 := range v {
  8266. if esep {
  8267. ee.WriteMapElemKey()
  8268. }
  8269. ee.EncodeUint(uint64(k2))
  8270. if esep {
  8271. ee.WriteMapElemValue()
  8272. }
  8273. ee.EncodeFloat32(v2)
  8274. }
  8275. }
  8276. ee.WriteMapEnd()
  8277. }
  8278. func (e *Encoder) fastpathEncMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  8279. fastpathTV.EncMapUint64Float64V(rv2i(rv).(map[uint64]float64), e)
  8280. }
  8281. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, e *Encoder) {
  8282. if v == nil {
  8283. e.e.EncodeNil()
  8284. return
  8285. }
  8286. ee, esep := e.e, e.hh.hasElemSeparators()
  8287. ee.WriteMapStart(len(v))
  8288. if e.h.Canonical {
  8289. v2 := make([]uint64, len(v))
  8290. var i int
  8291. for k, _ := range v {
  8292. v2[i] = uint64(k)
  8293. i++
  8294. }
  8295. sort.Sort(uintSlice(v2))
  8296. for _, k2 := range v2 {
  8297. if esep {
  8298. ee.WriteMapElemKey()
  8299. }
  8300. ee.EncodeUint(uint64(uint64(k2)))
  8301. if esep {
  8302. ee.WriteMapElemValue()
  8303. }
  8304. ee.EncodeFloat64(v[uint64(k2)])
  8305. }
  8306. } else {
  8307. for k2, v2 := range v {
  8308. if esep {
  8309. ee.WriteMapElemKey()
  8310. }
  8311. ee.EncodeUint(uint64(k2))
  8312. if esep {
  8313. ee.WriteMapElemValue()
  8314. }
  8315. ee.EncodeFloat64(v2)
  8316. }
  8317. }
  8318. ee.WriteMapEnd()
  8319. }
  8320. func (e *Encoder) fastpathEncMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  8321. fastpathTV.EncMapUint64BoolV(rv2i(rv).(map[uint64]bool), e)
  8322. }
  8323. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, e *Encoder) {
  8324. if v == nil {
  8325. e.e.EncodeNil()
  8326. return
  8327. }
  8328. ee, esep := e.e, e.hh.hasElemSeparators()
  8329. ee.WriteMapStart(len(v))
  8330. if e.h.Canonical {
  8331. v2 := make([]uint64, len(v))
  8332. var i int
  8333. for k, _ := range v {
  8334. v2[i] = uint64(k)
  8335. i++
  8336. }
  8337. sort.Sort(uintSlice(v2))
  8338. for _, k2 := range v2 {
  8339. if esep {
  8340. ee.WriteMapElemKey()
  8341. }
  8342. ee.EncodeUint(uint64(uint64(k2)))
  8343. if esep {
  8344. ee.WriteMapElemValue()
  8345. }
  8346. ee.EncodeBool(v[uint64(k2)])
  8347. }
  8348. } else {
  8349. for k2, v2 := range v {
  8350. if esep {
  8351. ee.WriteMapElemKey()
  8352. }
  8353. ee.EncodeUint(uint64(k2))
  8354. if esep {
  8355. ee.WriteMapElemValue()
  8356. }
  8357. ee.EncodeBool(v2)
  8358. }
  8359. }
  8360. ee.WriteMapEnd()
  8361. }
  8362. func (e *Encoder) fastpathEncMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  8363. fastpathTV.EncMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), e)
  8364. }
  8365. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, e *Encoder) {
  8366. if v == nil {
  8367. e.e.EncodeNil()
  8368. return
  8369. }
  8370. ee, esep := e.e, e.hh.hasElemSeparators()
  8371. ee.WriteMapStart(len(v))
  8372. if e.h.Canonical {
  8373. v2 := make([]uint64, len(v))
  8374. var i int
  8375. for k, _ := range v {
  8376. v2[i] = uint64(k)
  8377. i++
  8378. }
  8379. sort.Sort(uintSlice(v2))
  8380. for _, k2 := range v2 {
  8381. if esep {
  8382. ee.WriteMapElemKey()
  8383. }
  8384. e.encode(uintptr(k2))
  8385. if esep {
  8386. ee.WriteMapElemValue()
  8387. }
  8388. e.encode(v[uintptr(k2)])
  8389. }
  8390. } else {
  8391. for k2, v2 := range v {
  8392. if esep {
  8393. ee.WriteMapElemKey()
  8394. }
  8395. e.encode(k2)
  8396. if esep {
  8397. ee.WriteMapElemValue()
  8398. }
  8399. e.encode(v2)
  8400. }
  8401. }
  8402. ee.WriteMapEnd()
  8403. }
  8404. func (e *Encoder) fastpathEncMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  8405. fastpathTV.EncMapUintptrStringV(rv2i(rv).(map[uintptr]string), e)
  8406. }
  8407. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, e *Encoder) {
  8408. if v == nil {
  8409. e.e.EncodeNil()
  8410. return
  8411. }
  8412. ee, esep := e.e, e.hh.hasElemSeparators()
  8413. ee.WriteMapStart(len(v))
  8414. if e.h.Canonical {
  8415. v2 := make([]uint64, len(v))
  8416. var i int
  8417. for k, _ := range v {
  8418. v2[i] = uint64(k)
  8419. i++
  8420. }
  8421. sort.Sort(uintSlice(v2))
  8422. for _, k2 := range v2 {
  8423. if esep {
  8424. ee.WriteMapElemKey()
  8425. }
  8426. e.encode(uintptr(k2))
  8427. if esep {
  8428. ee.WriteMapElemValue()
  8429. }
  8430. ee.EncodeString(c_UTF8, v[uintptr(k2)])
  8431. }
  8432. } else {
  8433. for k2, v2 := range v {
  8434. if esep {
  8435. ee.WriteMapElemKey()
  8436. }
  8437. e.encode(k2)
  8438. if esep {
  8439. ee.WriteMapElemValue()
  8440. }
  8441. ee.EncodeString(c_UTF8, v2)
  8442. }
  8443. }
  8444. ee.WriteMapEnd()
  8445. }
  8446. func (e *Encoder) fastpathEncMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  8447. fastpathTV.EncMapUintptrUintV(rv2i(rv).(map[uintptr]uint), e)
  8448. }
  8449. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, e *Encoder) {
  8450. if v == nil {
  8451. e.e.EncodeNil()
  8452. return
  8453. }
  8454. ee, esep := e.e, e.hh.hasElemSeparators()
  8455. ee.WriteMapStart(len(v))
  8456. if e.h.Canonical {
  8457. v2 := make([]uint64, len(v))
  8458. var i int
  8459. for k, _ := range v {
  8460. v2[i] = uint64(k)
  8461. i++
  8462. }
  8463. sort.Sort(uintSlice(v2))
  8464. for _, k2 := range v2 {
  8465. if esep {
  8466. ee.WriteMapElemKey()
  8467. }
  8468. e.encode(uintptr(k2))
  8469. if esep {
  8470. ee.WriteMapElemValue()
  8471. }
  8472. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8473. }
  8474. } else {
  8475. for k2, v2 := range v {
  8476. if esep {
  8477. ee.WriteMapElemKey()
  8478. }
  8479. e.encode(k2)
  8480. if esep {
  8481. ee.WriteMapElemValue()
  8482. }
  8483. ee.EncodeUint(uint64(v2))
  8484. }
  8485. }
  8486. ee.WriteMapEnd()
  8487. }
  8488. func (e *Encoder) fastpathEncMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  8489. fastpathTV.EncMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), e)
  8490. }
  8491. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, e *Encoder) {
  8492. if v == nil {
  8493. e.e.EncodeNil()
  8494. return
  8495. }
  8496. ee, esep := e.e, e.hh.hasElemSeparators()
  8497. ee.WriteMapStart(len(v))
  8498. if e.h.Canonical {
  8499. v2 := make([]uint64, len(v))
  8500. var i int
  8501. for k, _ := range v {
  8502. v2[i] = uint64(k)
  8503. i++
  8504. }
  8505. sort.Sort(uintSlice(v2))
  8506. for _, k2 := range v2 {
  8507. if esep {
  8508. ee.WriteMapElemKey()
  8509. }
  8510. e.encode(uintptr(k2))
  8511. if esep {
  8512. ee.WriteMapElemValue()
  8513. }
  8514. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8515. }
  8516. } else {
  8517. for k2, v2 := range v {
  8518. if esep {
  8519. ee.WriteMapElemKey()
  8520. }
  8521. e.encode(k2)
  8522. if esep {
  8523. ee.WriteMapElemValue()
  8524. }
  8525. ee.EncodeUint(uint64(v2))
  8526. }
  8527. }
  8528. ee.WriteMapEnd()
  8529. }
  8530. func (e *Encoder) fastpathEncMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  8531. fastpathTV.EncMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), e)
  8532. }
  8533. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, e *Encoder) {
  8534. if v == nil {
  8535. e.e.EncodeNil()
  8536. return
  8537. }
  8538. ee, esep := e.e, e.hh.hasElemSeparators()
  8539. ee.WriteMapStart(len(v))
  8540. if e.h.Canonical {
  8541. v2 := make([]uint64, len(v))
  8542. var i int
  8543. for k, _ := range v {
  8544. v2[i] = uint64(k)
  8545. i++
  8546. }
  8547. sort.Sort(uintSlice(v2))
  8548. for _, k2 := range v2 {
  8549. if esep {
  8550. ee.WriteMapElemKey()
  8551. }
  8552. e.encode(uintptr(k2))
  8553. if esep {
  8554. ee.WriteMapElemValue()
  8555. }
  8556. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8557. }
  8558. } else {
  8559. for k2, v2 := range v {
  8560. if esep {
  8561. ee.WriteMapElemKey()
  8562. }
  8563. e.encode(k2)
  8564. if esep {
  8565. ee.WriteMapElemValue()
  8566. }
  8567. ee.EncodeUint(uint64(v2))
  8568. }
  8569. }
  8570. ee.WriteMapEnd()
  8571. }
  8572. func (e *Encoder) fastpathEncMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  8573. fastpathTV.EncMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), e)
  8574. }
  8575. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, e *Encoder) {
  8576. if v == nil {
  8577. e.e.EncodeNil()
  8578. return
  8579. }
  8580. ee, esep := e.e, e.hh.hasElemSeparators()
  8581. ee.WriteMapStart(len(v))
  8582. if e.h.Canonical {
  8583. v2 := make([]uint64, len(v))
  8584. var i int
  8585. for k, _ := range v {
  8586. v2[i] = uint64(k)
  8587. i++
  8588. }
  8589. sort.Sort(uintSlice(v2))
  8590. for _, k2 := range v2 {
  8591. if esep {
  8592. ee.WriteMapElemKey()
  8593. }
  8594. e.encode(uintptr(k2))
  8595. if esep {
  8596. ee.WriteMapElemValue()
  8597. }
  8598. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8599. }
  8600. } else {
  8601. for k2, v2 := range v {
  8602. if esep {
  8603. ee.WriteMapElemKey()
  8604. }
  8605. e.encode(k2)
  8606. if esep {
  8607. ee.WriteMapElemValue()
  8608. }
  8609. ee.EncodeUint(uint64(v2))
  8610. }
  8611. }
  8612. ee.WriteMapEnd()
  8613. }
  8614. func (e *Encoder) fastpathEncMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  8615. fastpathTV.EncMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), e)
  8616. }
  8617. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, e *Encoder) {
  8618. if v == nil {
  8619. e.e.EncodeNil()
  8620. return
  8621. }
  8622. ee, esep := e.e, e.hh.hasElemSeparators()
  8623. ee.WriteMapStart(len(v))
  8624. if e.h.Canonical {
  8625. v2 := make([]uint64, len(v))
  8626. var i int
  8627. for k, _ := range v {
  8628. v2[i] = uint64(k)
  8629. i++
  8630. }
  8631. sort.Sort(uintSlice(v2))
  8632. for _, k2 := range v2 {
  8633. if esep {
  8634. ee.WriteMapElemKey()
  8635. }
  8636. e.encode(uintptr(k2))
  8637. if esep {
  8638. ee.WriteMapElemValue()
  8639. }
  8640. ee.EncodeUint(uint64(v[uintptr(k2)]))
  8641. }
  8642. } else {
  8643. for k2, v2 := range v {
  8644. if esep {
  8645. ee.WriteMapElemKey()
  8646. }
  8647. e.encode(k2)
  8648. if esep {
  8649. ee.WriteMapElemValue()
  8650. }
  8651. ee.EncodeUint(uint64(v2))
  8652. }
  8653. }
  8654. ee.WriteMapEnd()
  8655. }
  8656. func (e *Encoder) fastpathEncMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  8657. fastpathTV.EncMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), e)
  8658. }
  8659. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, e *Encoder) {
  8660. if v == nil {
  8661. e.e.EncodeNil()
  8662. return
  8663. }
  8664. ee, esep := e.e, e.hh.hasElemSeparators()
  8665. ee.WriteMapStart(len(v))
  8666. if e.h.Canonical {
  8667. v2 := make([]uint64, len(v))
  8668. var i int
  8669. for k, _ := range v {
  8670. v2[i] = uint64(k)
  8671. i++
  8672. }
  8673. sort.Sort(uintSlice(v2))
  8674. for _, k2 := range v2 {
  8675. if esep {
  8676. ee.WriteMapElemKey()
  8677. }
  8678. e.encode(uintptr(k2))
  8679. if esep {
  8680. ee.WriteMapElemValue()
  8681. }
  8682. e.encode(v[uintptr(k2)])
  8683. }
  8684. } else {
  8685. for k2, v2 := range v {
  8686. if esep {
  8687. ee.WriteMapElemKey()
  8688. }
  8689. e.encode(k2)
  8690. if esep {
  8691. ee.WriteMapElemValue()
  8692. }
  8693. e.encode(v2)
  8694. }
  8695. }
  8696. ee.WriteMapEnd()
  8697. }
  8698. func (e *Encoder) fastpathEncMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  8699. fastpathTV.EncMapUintptrIntV(rv2i(rv).(map[uintptr]int), e)
  8700. }
  8701. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, e *Encoder) {
  8702. if v == nil {
  8703. e.e.EncodeNil()
  8704. return
  8705. }
  8706. ee, esep := e.e, e.hh.hasElemSeparators()
  8707. ee.WriteMapStart(len(v))
  8708. if e.h.Canonical {
  8709. v2 := make([]uint64, len(v))
  8710. var i int
  8711. for k, _ := range v {
  8712. v2[i] = uint64(k)
  8713. i++
  8714. }
  8715. sort.Sort(uintSlice(v2))
  8716. for _, k2 := range v2 {
  8717. if esep {
  8718. ee.WriteMapElemKey()
  8719. }
  8720. e.encode(uintptr(k2))
  8721. if esep {
  8722. ee.WriteMapElemValue()
  8723. }
  8724. ee.EncodeInt(int64(v[uintptr(k2)]))
  8725. }
  8726. } else {
  8727. for k2, v2 := range v {
  8728. if esep {
  8729. ee.WriteMapElemKey()
  8730. }
  8731. e.encode(k2)
  8732. if esep {
  8733. ee.WriteMapElemValue()
  8734. }
  8735. ee.EncodeInt(int64(v2))
  8736. }
  8737. }
  8738. ee.WriteMapEnd()
  8739. }
  8740. func (e *Encoder) fastpathEncMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  8741. fastpathTV.EncMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), e)
  8742. }
  8743. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, e *Encoder) {
  8744. if v == nil {
  8745. e.e.EncodeNil()
  8746. return
  8747. }
  8748. ee, esep := e.e, e.hh.hasElemSeparators()
  8749. ee.WriteMapStart(len(v))
  8750. if e.h.Canonical {
  8751. v2 := make([]uint64, len(v))
  8752. var i int
  8753. for k, _ := range v {
  8754. v2[i] = uint64(k)
  8755. i++
  8756. }
  8757. sort.Sort(uintSlice(v2))
  8758. for _, k2 := range v2 {
  8759. if esep {
  8760. ee.WriteMapElemKey()
  8761. }
  8762. e.encode(uintptr(k2))
  8763. if esep {
  8764. ee.WriteMapElemValue()
  8765. }
  8766. ee.EncodeInt(int64(v[uintptr(k2)]))
  8767. }
  8768. } else {
  8769. for k2, v2 := range v {
  8770. if esep {
  8771. ee.WriteMapElemKey()
  8772. }
  8773. e.encode(k2)
  8774. if esep {
  8775. ee.WriteMapElemValue()
  8776. }
  8777. ee.EncodeInt(int64(v2))
  8778. }
  8779. }
  8780. ee.WriteMapEnd()
  8781. }
  8782. func (e *Encoder) fastpathEncMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  8783. fastpathTV.EncMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), e)
  8784. }
  8785. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, e *Encoder) {
  8786. if v == nil {
  8787. e.e.EncodeNil()
  8788. return
  8789. }
  8790. ee, esep := e.e, e.hh.hasElemSeparators()
  8791. ee.WriteMapStart(len(v))
  8792. if e.h.Canonical {
  8793. v2 := make([]uint64, len(v))
  8794. var i int
  8795. for k, _ := range v {
  8796. v2[i] = uint64(k)
  8797. i++
  8798. }
  8799. sort.Sort(uintSlice(v2))
  8800. for _, k2 := range v2 {
  8801. if esep {
  8802. ee.WriteMapElemKey()
  8803. }
  8804. e.encode(uintptr(k2))
  8805. if esep {
  8806. ee.WriteMapElemValue()
  8807. }
  8808. ee.EncodeInt(int64(v[uintptr(k2)]))
  8809. }
  8810. } else {
  8811. for k2, v2 := range v {
  8812. if esep {
  8813. ee.WriteMapElemKey()
  8814. }
  8815. e.encode(k2)
  8816. if esep {
  8817. ee.WriteMapElemValue()
  8818. }
  8819. ee.EncodeInt(int64(v2))
  8820. }
  8821. }
  8822. ee.WriteMapEnd()
  8823. }
  8824. func (e *Encoder) fastpathEncMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  8825. fastpathTV.EncMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), e)
  8826. }
  8827. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, e *Encoder) {
  8828. if v == nil {
  8829. e.e.EncodeNil()
  8830. return
  8831. }
  8832. ee, esep := e.e, e.hh.hasElemSeparators()
  8833. ee.WriteMapStart(len(v))
  8834. if e.h.Canonical {
  8835. v2 := make([]uint64, len(v))
  8836. var i int
  8837. for k, _ := range v {
  8838. v2[i] = uint64(k)
  8839. i++
  8840. }
  8841. sort.Sort(uintSlice(v2))
  8842. for _, k2 := range v2 {
  8843. if esep {
  8844. ee.WriteMapElemKey()
  8845. }
  8846. e.encode(uintptr(k2))
  8847. if esep {
  8848. ee.WriteMapElemValue()
  8849. }
  8850. ee.EncodeInt(int64(v[uintptr(k2)]))
  8851. }
  8852. } else {
  8853. for k2, v2 := range v {
  8854. if esep {
  8855. ee.WriteMapElemKey()
  8856. }
  8857. e.encode(k2)
  8858. if esep {
  8859. ee.WriteMapElemValue()
  8860. }
  8861. ee.EncodeInt(int64(v2))
  8862. }
  8863. }
  8864. ee.WriteMapEnd()
  8865. }
  8866. func (e *Encoder) fastpathEncMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  8867. fastpathTV.EncMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), e)
  8868. }
  8869. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, e *Encoder) {
  8870. if v == nil {
  8871. e.e.EncodeNil()
  8872. return
  8873. }
  8874. ee, esep := e.e, e.hh.hasElemSeparators()
  8875. ee.WriteMapStart(len(v))
  8876. if e.h.Canonical {
  8877. v2 := make([]uint64, len(v))
  8878. var i int
  8879. for k, _ := range v {
  8880. v2[i] = uint64(k)
  8881. i++
  8882. }
  8883. sort.Sort(uintSlice(v2))
  8884. for _, k2 := range v2 {
  8885. if esep {
  8886. ee.WriteMapElemKey()
  8887. }
  8888. e.encode(uintptr(k2))
  8889. if esep {
  8890. ee.WriteMapElemValue()
  8891. }
  8892. ee.EncodeInt(int64(v[uintptr(k2)]))
  8893. }
  8894. } else {
  8895. for k2, v2 := range v {
  8896. if esep {
  8897. ee.WriteMapElemKey()
  8898. }
  8899. e.encode(k2)
  8900. if esep {
  8901. ee.WriteMapElemValue()
  8902. }
  8903. ee.EncodeInt(int64(v2))
  8904. }
  8905. }
  8906. ee.WriteMapEnd()
  8907. }
  8908. func (e *Encoder) fastpathEncMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  8909. fastpathTV.EncMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), e)
  8910. }
  8911. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, e *Encoder) {
  8912. if v == nil {
  8913. e.e.EncodeNil()
  8914. return
  8915. }
  8916. ee, esep := e.e, e.hh.hasElemSeparators()
  8917. ee.WriteMapStart(len(v))
  8918. if e.h.Canonical {
  8919. v2 := make([]uint64, len(v))
  8920. var i int
  8921. for k, _ := range v {
  8922. v2[i] = uint64(k)
  8923. i++
  8924. }
  8925. sort.Sort(uintSlice(v2))
  8926. for _, k2 := range v2 {
  8927. if esep {
  8928. ee.WriteMapElemKey()
  8929. }
  8930. e.encode(uintptr(k2))
  8931. if esep {
  8932. ee.WriteMapElemValue()
  8933. }
  8934. ee.EncodeFloat32(v[uintptr(k2)])
  8935. }
  8936. } else {
  8937. for k2, v2 := range v {
  8938. if esep {
  8939. ee.WriteMapElemKey()
  8940. }
  8941. e.encode(k2)
  8942. if esep {
  8943. ee.WriteMapElemValue()
  8944. }
  8945. ee.EncodeFloat32(v2)
  8946. }
  8947. }
  8948. ee.WriteMapEnd()
  8949. }
  8950. func (e *Encoder) fastpathEncMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  8951. fastpathTV.EncMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), e)
  8952. }
  8953. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, e *Encoder) {
  8954. if v == nil {
  8955. e.e.EncodeNil()
  8956. return
  8957. }
  8958. ee, esep := e.e, e.hh.hasElemSeparators()
  8959. ee.WriteMapStart(len(v))
  8960. if e.h.Canonical {
  8961. v2 := make([]uint64, len(v))
  8962. var i int
  8963. for k, _ := range v {
  8964. v2[i] = uint64(k)
  8965. i++
  8966. }
  8967. sort.Sort(uintSlice(v2))
  8968. for _, k2 := range v2 {
  8969. if esep {
  8970. ee.WriteMapElemKey()
  8971. }
  8972. e.encode(uintptr(k2))
  8973. if esep {
  8974. ee.WriteMapElemValue()
  8975. }
  8976. ee.EncodeFloat64(v[uintptr(k2)])
  8977. }
  8978. } else {
  8979. for k2, v2 := range v {
  8980. if esep {
  8981. ee.WriteMapElemKey()
  8982. }
  8983. e.encode(k2)
  8984. if esep {
  8985. ee.WriteMapElemValue()
  8986. }
  8987. ee.EncodeFloat64(v2)
  8988. }
  8989. }
  8990. ee.WriteMapEnd()
  8991. }
  8992. func (e *Encoder) fastpathEncMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  8993. fastpathTV.EncMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), e)
  8994. }
  8995. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, e *Encoder) {
  8996. if v == nil {
  8997. e.e.EncodeNil()
  8998. return
  8999. }
  9000. ee, esep := e.e, e.hh.hasElemSeparators()
  9001. ee.WriteMapStart(len(v))
  9002. if e.h.Canonical {
  9003. v2 := make([]uint64, len(v))
  9004. var i int
  9005. for k, _ := range v {
  9006. v2[i] = uint64(k)
  9007. i++
  9008. }
  9009. sort.Sort(uintSlice(v2))
  9010. for _, k2 := range v2 {
  9011. if esep {
  9012. ee.WriteMapElemKey()
  9013. }
  9014. e.encode(uintptr(k2))
  9015. if esep {
  9016. ee.WriteMapElemValue()
  9017. }
  9018. ee.EncodeBool(v[uintptr(k2)])
  9019. }
  9020. } else {
  9021. for k2, v2 := range v {
  9022. if esep {
  9023. ee.WriteMapElemKey()
  9024. }
  9025. e.encode(k2)
  9026. if esep {
  9027. ee.WriteMapElemValue()
  9028. }
  9029. ee.EncodeBool(v2)
  9030. }
  9031. }
  9032. ee.WriteMapEnd()
  9033. }
  9034. func (e *Encoder) fastpathEncMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  9035. fastpathTV.EncMapIntIntfV(rv2i(rv).(map[int]interface{}), e)
  9036. }
  9037. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, e *Encoder) {
  9038. if v == nil {
  9039. e.e.EncodeNil()
  9040. return
  9041. }
  9042. ee, esep := e.e, e.hh.hasElemSeparators()
  9043. ee.WriteMapStart(len(v))
  9044. if e.h.Canonical {
  9045. v2 := make([]int64, len(v))
  9046. var i int
  9047. for k, _ := range v {
  9048. v2[i] = int64(k)
  9049. i++
  9050. }
  9051. sort.Sort(intSlice(v2))
  9052. for _, k2 := range v2 {
  9053. if esep {
  9054. ee.WriteMapElemKey()
  9055. }
  9056. ee.EncodeInt(int64(int(k2)))
  9057. if esep {
  9058. ee.WriteMapElemValue()
  9059. }
  9060. e.encode(v[int(k2)])
  9061. }
  9062. } else {
  9063. for k2, v2 := range v {
  9064. if esep {
  9065. ee.WriteMapElemKey()
  9066. }
  9067. ee.EncodeInt(int64(k2))
  9068. if esep {
  9069. ee.WriteMapElemValue()
  9070. }
  9071. e.encode(v2)
  9072. }
  9073. }
  9074. ee.WriteMapEnd()
  9075. }
  9076. func (e *Encoder) fastpathEncMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  9077. fastpathTV.EncMapIntStringV(rv2i(rv).(map[int]string), e)
  9078. }
  9079. func (_ fastpathT) EncMapIntStringV(v map[int]string, e *Encoder) {
  9080. if v == nil {
  9081. e.e.EncodeNil()
  9082. return
  9083. }
  9084. ee, esep := e.e, e.hh.hasElemSeparators()
  9085. ee.WriteMapStart(len(v))
  9086. if e.h.Canonical {
  9087. v2 := make([]int64, len(v))
  9088. var i int
  9089. for k, _ := range v {
  9090. v2[i] = int64(k)
  9091. i++
  9092. }
  9093. sort.Sort(intSlice(v2))
  9094. for _, k2 := range v2 {
  9095. if esep {
  9096. ee.WriteMapElemKey()
  9097. }
  9098. ee.EncodeInt(int64(int(k2)))
  9099. if esep {
  9100. ee.WriteMapElemValue()
  9101. }
  9102. ee.EncodeString(c_UTF8, v[int(k2)])
  9103. }
  9104. } else {
  9105. for k2, v2 := range v {
  9106. if esep {
  9107. ee.WriteMapElemKey()
  9108. }
  9109. ee.EncodeInt(int64(k2))
  9110. if esep {
  9111. ee.WriteMapElemValue()
  9112. }
  9113. ee.EncodeString(c_UTF8, v2)
  9114. }
  9115. }
  9116. ee.WriteMapEnd()
  9117. }
  9118. func (e *Encoder) fastpathEncMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  9119. fastpathTV.EncMapIntUintV(rv2i(rv).(map[int]uint), e)
  9120. }
  9121. func (_ fastpathT) EncMapIntUintV(v map[int]uint, e *Encoder) {
  9122. if v == nil {
  9123. e.e.EncodeNil()
  9124. return
  9125. }
  9126. ee, esep := e.e, e.hh.hasElemSeparators()
  9127. ee.WriteMapStart(len(v))
  9128. if e.h.Canonical {
  9129. v2 := make([]int64, len(v))
  9130. var i int
  9131. for k, _ := range v {
  9132. v2[i] = int64(k)
  9133. i++
  9134. }
  9135. sort.Sort(intSlice(v2))
  9136. for _, k2 := range v2 {
  9137. if esep {
  9138. ee.WriteMapElemKey()
  9139. }
  9140. ee.EncodeInt(int64(int(k2)))
  9141. if esep {
  9142. ee.WriteMapElemValue()
  9143. }
  9144. ee.EncodeUint(uint64(v[int(k2)]))
  9145. }
  9146. } else {
  9147. for k2, v2 := range v {
  9148. if esep {
  9149. ee.WriteMapElemKey()
  9150. }
  9151. ee.EncodeInt(int64(k2))
  9152. if esep {
  9153. ee.WriteMapElemValue()
  9154. }
  9155. ee.EncodeUint(uint64(v2))
  9156. }
  9157. }
  9158. ee.WriteMapEnd()
  9159. }
  9160. func (e *Encoder) fastpathEncMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  9161. fastpathTV.EncMapIntUint8V(rv2i(rv).(map[int]uint8), e)
  9162. }
  9163. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, e *Encoder) {
  9164. if v == nil {
  9165. e.e.EncodeNil()
  9166. return
  9167. }
  9168. ee, esep := e.e, e.hh.hasElemSeparators()
  9169. ee.WriteMapStart(len(v))
  9170. if e.h.Canonical {
  9171. v2 := make([]int64, len(v))
  9172. var i int
  9173. for k, _ := range v {
  9174. v2[i] = int64(k)
  9175. i++
  9176. }
  9177. sort.Sort(intSlice(v2))
  9178. for _, k2 := range v2 {
  9179. if esep {
  9180. ee.WriteMapElemKey()
  9181. }
  9182. ee.EncodeInt(int64(int(k2)))
  9183. if esep {
  9184. ee.WriteMapElemValue()
  9185. }
  9186. ee.EncodeUint(uint64(v[int(k2)]))
  9187. }
  9188. } else {
  9189. for k2, v2 := range v {
  9190. if esep {
  9191. ee.WriteMapElemKey()
  9192. }
  9193. ee.EncodeInt(int64(k2))
  9194. if esep {
  9195. ee.WriteMapElemValue()
  9196. }
  9197. ee.EncodeUint(uint64(v2))
  9198. }
  9199. }
  9200. ee.WriteMapEnd()
  9201. }
  9202. func (e *Encoder) fastpathEncMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  9203. fastpathTV.EncMapIntUint16V(rv2i(rv).(map[int]uint16), e)
  9204. }
  9205. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, e *Encoder) {
  9206. if v == nil {
  9207. e.e.EncodeNil()
  9208. return
  9209. }
  9210. ee, esep := e.e, e.hh.hasElemSeparators()
  9211. ee.WriteMapStart(len(v))
  9212. if e.h.Canonical {
  9213. v2 := make([]int64, len(v))
  9214. var i int
  9215. for k, _ := range v {
  9216. v2[i] = int64(k)
  9217. i++
  9218. }
  9219. sort.Sort(intSlice(v2))
  9220. for _, k2 := range v2 {
  9221. if esep {
  9222. ee.WriteMapElemKey()
  9223. }
  9224. ee.EncodeInt(int64(int(k2)))
  9225. if esep {
  9226. ee.WriteMapElemValue()
  9227. }
  9228. ee.EncodeUint(uint64(v[int(k2)]))
  9229. }
  9230. } else {
  9231. for k2, v2 := range v {
  9232. if esep {
  9233. ee.WriteMapElemKey()
  9234. }
  9235. ee.EncodeInt(int64(k2))
  9236. if esep {
  9237. ee.WriteMapElemValue()
  9238. }
  9239. ee.EncodeUint(uint64(v2))
  9240. }
  9241. }
  9242. ee.WriteMapEnd()
  9243. }
  9244. func (e *Encoder) fastpathEncMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  9245. fastpathTV.EncMapIntUint32V(rv2i(rv).(map[int]uint32), e)
  9246. }
  9247. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, e *Encoder) {
  9248. if v == nil {
  9249. e.e.EncodeNil()
  9250. return
  9251. }
  9252. ee, esep := e.e, e.hh.hasElemSeparators()
  9253. ee.WriteMapStart(len(v))
  9254. if e.h.Canonical {
  9255. v2 := make([]int64, len(v))
  9256. var i int
  9257. for k, _ := range v {
  9258. v2[i] = int64(k)
  9259. i++
  9260. }
  9261. sort.Sort(intSlice(v2))
  9262. for _, k2 := range v2 {
  9263. if esep {
  9264. ee.WriteMapElemKey()
  9265. }
  9266. ee.EncodeInt(int64(int(k2)))
  9267. if esep {
  9268. ee.WriteMapElemValue()
  9269. }
  9270. ee.EncodeUint(uint64(v[int(k2)]))
  9271. }
  9272. } else {
  9273. for k2, v2 := range v {
  9274. if esep {
  9275. ee.WriteMapElemKey()
  9276. }
  9277. ee.EncodeInt(int64(k2))
  9278. if esep {
  9279. ee.WriteMapElemValue()
  9280. }
  9281. ee.EncodeUint(uint64(v2))
  9282. }
  9283. }
  9284. ee.WriteMapEnd()
  9285. }
  9286. func (e *Encoder) fastpathEncMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  9287. fastpathTV.EncMapIntUint64V(rv2i(rv).(map[int]uint64), e)
  9288. }
  9289. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, e *Encoder) {
  9290. if v == nil {
  9291. e.e.EncodeNil()
  9292. return
  9293. }
  9294. ee, esep := e.e, e.hh.hasElemSeparators()
  9295. ee.WriteMapStart(len(v))
  9296. if e.h.Canonical {
  9297. v2 := make([]int64, len(v))
  9298. var i int
  9299. for k, _ := range v {
  9300. v2[i] = int64(k)
  9301. i++
  9302. }
  9303. sort.Sort(intSlice(v2))
  9304. for _, k2 := range v2 {
  9305. if esep {
  9306. ee.WriteMapElemKey()
  9307. }
  9308. ee.EncodeInt(int64(int(k2)))
  9309. if esep {
  9310. ee.WriteMapElemValue()
  9311. }
  9312. ee.EncodeUint(uint64(v[int(k2)]))
  9313. }
  9314. } else {
  9315. for k2, v2 := range v {
  9316. if esep {
  9317. ee.WriteMapElemKey()
  9318. }
  9319. ee.EncodeInt(int64(k2))
  9320. if esep {
  9321. ee.WriteMapElemValue()
  9322. }
  9323. ee.EncodeUint(uint64(v2))
  9324. }
  9325. }
  9326. ee.WriteMapEnd()
  9327. }
  9328. func (e *Encoder) fastpathEncMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  9329. fastpathTV.EncMapIntUintptrV(rv2i(rv).(map[int]uintptr), e)
  9330. }
  9331. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, e *Encoder) {
  9332. if v == nil {
  9333. e.e.EncodeNil()
  9334. return
  9335. }
  9336. ee, esep := e.e, e.hh.hasElemSeparators()
  9337. ee.WriteMapStart(len(v))
  9338. if e.h.Canonical {
  9339. v2 := make([]int64, len(v))
  9340. var i int
  9341. for k, _ := range v {
  9342. v2[i] = int64(k)
  9343. i++
  9344. }
  9345. sort.Sort(intSlice(v2))
  9346. for _, k2 := range v2 {
  9347. if esep {
  9348. ee.WriteMapElemKey()
  9349. }
  9350. ee.EncodeInt(int64(int(k2)))
  9351. if esep {
  9352. ee.WriteMapElemValue()
  9353. }
  9354. e.encode(v[int(k2)])
  9355. }
  9356. } else {
  9357. for k2, v2 := range v {
  9358. if esep {
  9359. ee.WriteMapElemKey()
  9360. }
  9361. ee.EncodeInt(int64(k2))
  9362. if esep {
  9363. ee.WriteMapElemValue()
  9364. }
  9365. e.encode(v2)
  9366. }
  9367. }
  9368. ee.WriteMapEnd()
  9369. }
  9370. func (e *Encoder) fastpathEncMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  9371. fastpathTV.EncMapIntIntV(rv2i(rv).(map[int]int), e)
  9372. }
  9373. func (_ fastpathT) EncMapIntIntV(v map[int]int, e *Encoder) {
  9374. if v == nil {
  9375. e.e.EncodeNil()
  9376. return
  9377. }
  9378. ee, esep := e.e, e.hh.hasElemSeparators()
  9379. ee.WriteMapStart(len(v))
  9380. if e.h.Canonical {
  9381. v2 := make([]int64, len(v))
  9382. var i int
  9383. for k, _ := range v {
  9384. v2[i] = int64(k)
  9385. i++
  9386. }
  9387. sort.Sort(intSlice(v2))
  9388. for _, k2 := range v2 {
  9389. if esep {
  9390. ee.WriteMapElemKey()
  9391. }
  9392. ee.EncodeInt(int64(int(k2)))
  9393. if esep {
  9394. ee.WriteMapElemValue()
  9395. }
  9396. ee.EncodeInt(int64(v[int(k2)]))
  9397. }
  9398. } else {
  9399. for k2, v2 := range v {
  9400. if esep {
  9401. ee.WriteMapElemKey()
  9402. }
  9403. ee.EncodeInt(int64(k2))
  9404. if esep {
  9405. ee.WriteMapElemValue()
  9406. }
  9407. ee.EncodeInt(int64(v2))
  9408. }
  9409. }
  9410. ee.WriteMapEnd()
  9411. }
  9412. func (e *Encoder) fastpathEncMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  9413. fastpathTV.EncMapIntInt8V(rv2i(rv).(map[int]int8), e)
  9414. }
  9415. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, e *Encoder) {
  9416. if v == nil {
  9417. e.e.EncodeNil()
  9418. return
  9419. }
  9420. ee, esep := e.e, e.hh.hasElemSeparators()
  9421. ee.WriteMapStart(len(v))
  9422. if e.h.Canonical {
  9423. v2 := make([]int64, len(v))
  9424. var i int
  9425. for k, _ := range v {
  9426. v2[i] = int64(k)
  9427. i++
  9428. }
  9429. sort.Sort(intSlice(v2))
  9430. for _, k2 := range v2 {
  9431. if esep {
  9432. ee.WriteMapElemKey()
  9433. }
  9434. ee.EncodeInt(int64(int(k2)))
  9435. if esep {
  9436. ee.WriteMapElemValue()
  9437. }
  9438. ee.EncodeInt(int64(v[int(k2)]))
  9439. }
  9440. } else {
  9441. for k2, v2 := range v {
  9442. if esep {
  9443. ee.WriteMapElemKey()
  9444. }
  9445. ee.EncodeInt(int64(k2))
  9446. if esep {
  9447. ee.WriteMapElemValue()
  9448. }
  9449. ee.EncodeInt(int64(v2))
  9450. }
  9451. }
  9452. ee.WriteMapEnd()
  9453. }
  9454. func (e *Encoder) fastpathEncMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  9455. fastpathTV.EncMapIntInt16V(rv2i(rv).(map[int]int16), e)
  9456. }
  9457. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, e *Encoder) {
  9458. if v == nil {
  9459. e.e.EncodeNil()
  9460. return
  9461. }
  9462. ee, esep := e.e, e.hh.hasElemSeparators()
  9463. ee.WriteMapStart(len(v))
  9464. if e.h.Canonical {
  9465. v2 := make([]int64, len(v))
  9466. var i int
  9467. for k, _ := range v {
  9468. v2[i] = int64(k)
  9469. i++
  9470. }
  9471. sort.Sort(intSlice(v2))
  9472. for _, k2 := range v2 {
  9473. if esep {
  9474. ee.WriteMapElemKey()
  9475. }
  9476. ee.EncodeInt(int64(int(k2)))
  9477. if esep {
  9478. ee.WriteMapElemValue()
  9479. }
  9480. ee.EncodeInt(int64(v[int(k2)]))
  9481. }
  9482. } else {
  9483. for k2, v2 := range v {
  9484. if esep {
  9485. ee.WriteMapElemKey()
  9486. }
  9487. ee.EncodeInt(int64(k2))
  9488. if esep {
  9489. ee.WriteMapElemValue()
  9490. }
  9491. ee.EncodeInt(int64(v2))
  9492. }
  9493. }
  9494. ee.WriteMapEnd()
  9495. }
  9496. func (e *Encoder) fastpathEncMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  9497. fastpathTV.EncMapIntInt32V(rv2i(rv).(map[int]int32), e)
  9498. }
  9499. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, e *Encoder) {
  9500. if v == nil {
  9501. e.e.EncodeNil()
  9502. return
  9503. }
  9504. ee, esep := e.e, e.hh.hasElemSeparators()
  9505. ee.WriteMapStart(len(v))
  9506. if e.h.Canonical {
  9507. v2 := make([]int64, len(v))
  9508. var i int
  9509. for k, _ := range v {
  9510. v2[i] = int64(k)
  9511. i++
  9512. }
  9513. sort.Sort(intSlice(v2))
  9514. for _, k2 := range v2 {
  9515. if esep {
  9516. ee.WriteMapElemKey()
  9517. }
  9518. ee.EncodeInt(int64(int(k2)))
  9519. if esep {
  9520. ee.WriteMapElemValue()
  9521. }
  9522. ee.EncodeInt(int64(v[int(k2)]))
  9523. }
  9524. } else {
  9525. for k2, v2 := range v {
  9526. if esep {
  9527. ee.WriteMapElemKey()
  9528. }
  9529. ee.EncodeInt(int64(k2))
  9530. if esep {
  9531. ee.WriteMapElemValue()
  9532. }
  9533. ee.EncodeInt(int64(v2))
  9534. }
  9535. }
  9536. ee.WriteMapEnd()
  9537. }
  9538. func (e *Encoder) fastpathEncMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  9539. fastpathTV.EncMapIntInt64V(rv2i(rv).(map[int]int64), e)
  9540. }
  9541. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, e *Encoder) {
  9542. if v == nil {
  9543. e.e.EncodeNil()
  9544. return
  9545. }
  9546. ee, esep := e.e, e.hh.hasElemSeparators()
  9547. ee.WriteMapStart(len(v))
  9548. if e.h.Canonical {
  9549. v2 := make([]int64, len(v))
  9550. var i int
  9551. for k, _ := range v {
  9552. v2[i] = int64(k)
  9553. i++
  9554. }
  9555. sort.Sort(intSlice(v2))
  9556. for _, k2 := range v2 {
  9557. if esep {
  9558. ee.WriteMapElemKey()
  9559. }
  9560. ee.EncodeInt(int64(int(k2)))
  9561. if esep {
  9562. ee.WriteMapElemValue()
  9563. }
  9564. ee.EncodeInt(int64(v[int(k2)]))
  9565. }
  9566. } else {
  9567. for k2, v2 := range v {
  9568. if esep {
  9569. ee.WriteMapElemKey()
  9570. }
  9571. ee.EncodeInt(int64(k2))
  9572. if esep {
  9573. ee.WriteMapElemValue()
  9574. }
  9575. ee.EncodeInt(int64(v2))
  9576. }
  9577. }
  9578. ee.WriteMapEnd()
  9579. }
  9580. func (e *Encoder) fastpathEncMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  9581. fastpathTV.EncMapIntFloat32V(rv2i(rv).(map[int]float32), e)
  9582. }
  9583. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, e *Encoder) {
  9584. if v == nil {
  9585. e.e.EncodeNil()
  9586. return
  9587. }
  9588. ee, esep := e.e, e.hh.hasElemSeparators()
  9589. ee.WriteMapStart(len(v))
  9590. if e.h.Canonical {
  9591. v2 := make([]int64, len(v))
  9592. var i int
  9593. for k, _ := range v {
  9594. v2[i] = int64(k)
  9595. i++
  9596. }
  9597. sort.Sort(intSlice(v2))
  9598. for _, k2 := range v2 {
  9599. if esep {
  9600. ee.WriteMapElemKey()
  9601. }
  9602. ee.EncodeInt(int64(int(k2)))
  9603. if esep {
  9604. ee.WriteMapElemValue()
  9605. }
  9606. ee.EncodeFloat32(v[int(k2)])
  9607. }
  9608. } else {
  9609. for k2, v2 := range v {
  9610. if esep {
  9611. ee.WriteMapElemKey()
  9612. }
  9613. ee.EncodeInt(int64(k2))
  9614. if esep {
  9615. ee.WriteMapElemValue()
  9616. }
  9617. ee.EncodeFloat32(v2)
  9618. }
  9619. }
  9620. ee.WriteMapEnd()
  9621. }
  9622. func (e *Encoder) fastpathEncMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  9623. fastpathTV.EncMapIntFloat64V(rv2i(rv).(map[int]float64), e)
  9624. }
  9625. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, e *Encoder) {
  9626. if v == nil {
  9627. e.e.EncodeNil()
  9628. return
  9629. }
  9630. ee, esep := e.e, e.hh.hasElemSeparators()
  9631. ee.WriteMapStart(len(v))
  9632. if e.h.Canonical {
  9633. v2 := make([]int64, len(v))
  9634. var i int
  9635. for k, _ := range v {
  9636. v2[i] = int64(k)
  9637. i++
  9638. }
  9639. sort.Sort(intSlice(v2))
  9640. for _, k2 := range v2 {
  9641. if esep {
  9642. ee.WriteMapElemKey()
  9643. }
  9644. ee.EncodeInt(int64(int(k2)))
  9645. if esep {
  9646. ee.WriteMapElemValue()
  9647. }
  9648. ee.EncodeFloat64(v[int(k2)])
  9649. }
  9650. } else {
  9651. for k2, v2 := range v {
  9652. if esep {
  9653. ee.WriteMapElemKey()
  9654. }
  9655. ee.EncodeInt(int64(k2))
  9656. if esep {
  9657. ee.WriteMapElemValue()
  9658. }
  9659. ee.EncodeFloat64(v2)
  9660. }
  9661. }
  9662. ee.WriteMapEnd()
  9663. }
  9664. func (e *Encoder) fastpathEncMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  9665. fastpathTV.EncMapIntBoolV(rv2i(rv).(map[int]bool), e)
  9666. }
  9667. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, e *Encoder) {
  9668. if v == nil {
  9669. e.e.EncodeNil()
  9670. return
  9671. }
  9672. ee, esep := e.e, e.hh.hasElemSeparators()
  9673. ee.WriteMapStart(len(v))
  9674. if e.h.Canonical {
  9675. v2 := make([]int64, len(v))
  9676. var i int
  9677. for k, _ := range v {
  9678. v2[i] = int64(k)
  9679. i++
  9680. }
  9681. sort.Sort(intSlice(v2))
  9682. for _, k2 := range v2 {
  9683. if esep {
  9684. ee.WriteMapElemKey()
  9685. }
  9686. ee.EncodeInt(int64(int(k2)))
  9687. if esep {
  9688. ee.WriteMapElemValue()
  9689. }
  9690. ee.EncodeBool(v[int(k2)])
  9691. }
  9692. } else {
  9693. for k2, v2 := range v {
  9694. if esep {
  9695. ee.WriteMapElemKey()
  9696. }
  9697. ee.EncodeInt(int64(k2))
  9698. if esep {
  9699. ee.WriteMapElemValue()
  9700. }
  9701. ee.EncodeBool(v2)
  9702. }
  9703. }
  9704. ee.WriteMapEnd()
  9705. }
  9706. func (e *Encoder) fastpathEncMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  9707. fastpathTV.EncMapInt8IntfV(rv2i(rv).(map[int8]interface{}), e)
  9708. }
  9709. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, e *Encoder) {
  9710. if v == nil {
  9711. e.e.EncodeNil()
  9712. return
  9713. }
  9714. ee, esep := e.e, e.hh.hasElemSeparators()
  9715. ee.WriteMapStart(len(v))
  9716. if e.h.Canonical {
  9717. v2 := make([]int64, len(v))
  9718. var i int
  9719. for k, _ := range v {
  9720. v2[i] = int64(k)
  9721. i++
  9722. }
  9723. sort.Sort(intSlice(v2))
  9724. for _, k2 := range v2 {
  9725. if esep {
  9726. ee.WriteMapElemKey()
  9727. }
  9728. ee.EncodeInt(int64(int8(k2)))
  9729. if esep {
  9730. ee.WriteMapElemValue()
  9731. }
  9732. e.encode(v[int8(k2)])
  9733. }
  9734. } else {
  9735. for k2, v2 := range v {
  9736. if esep {
  9737. ee.WriteMapElemKey()
  9738. }
  9739. ee.EncodeInt(int64(k2))
  9740. if esep {
  9741. ee.WriteMapElemValue()
  9742. }
  9743. e.encode(v2)
  9744. }
  9745. }
  9746. ee.WriteMapEnd()
  9747. }
  9748. func (e *Encoder) fastpathEncMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  9749. fastpathTV.EncMapInt8StringV(rv2i(rv).(map[int8]string), e)
  9750. }
  9751. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, e *Encoder) {
  9752. if v == nil {
  9753. e.e.EncodeNil()
  9754. return
  9755. }
  9756. ee, esep := e.e, e.hh.hasElemSeparators()
  9757. ee.WriteMapStart(len(v))
  9758. if e.h.Canonical {
  9759. v2 := make([]int64, len(v))
  9760. var i int
  9761. for k, _ := range v {
  9762. v2[i] = int64(k)
  9763. i++
  9764. }
  9765. sort.Sort(intSlice(v2))
  9766. for _, k2 := range v2 {
  9767. if esep {
  9768. ee.WriteMapElemKey()
  9769. }
  9770. ee.EncodeInt(int64(int8(k2)))
  9771. if esep {
  9772. ee.WriteMapElemValue()
  9773. }
  9774. ee.EncodeString(c_UTF8, v[int8(k2)])
  9775. }
  9776. } else {
  9777. for k2, v2 := range v {
  9778. if esep {
  9779. ee.WriteMapElemKey()
  9780. }
  9781. ee.EncodeInt(int64(k2))
  9782. if esep {
  9783. ee.WriteMapElemValue()
  9784. }
  9785. ee.EncodeString(c_UTF8, v2)
  9786. }
  9787. }
  9788. ee.WriteMapEnd()
  9789. }
  9790. func (e *Encoder) fastpathEncMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  9791. fastpathTV.EncMapInt8UintV(rv2i(rv).(map[int8]uint), e)
  9792. }
  9793. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, e *Encoder) {
  9794. if v == nil {
  9795. e.e.EncodeNil()
  9796. return
  9797. }
  9798. ee, esep := e.e, e.hh.hasElemSeparators()
  9799. ee.WriteMapStart(len(v))
  9800. if e.h.Canonical {
  9801. v2 := make([]int64, len(v))
  9802. var i int
  9803. for k, _ := range v {
  9804. v2[i] = int64(k)
  9805. i++
  9806. }
  9807. sort.Sort(intSlice(v2))
  9808. for _, k2 := range v2 {
  9809. if esep {
  9810. ee.WriteMapElemKey()
  9811. }
  9812. ee.EncodeInt(int64(int8(k2)))
  9813. if esep {
  9814. ee.WriteMapElemValue()
  9815. }
  9816. ee.EncodeUint(uint64(v[int8(k2)]))
  9817. }
  9818. } else {
  9819. for k2, v2 := range v {
  9820. if esep {
  9821. ee.WriteMapElemKey()
  9822. }
  9823. ee.EncodeInt(int64(k2))
  9824. if esep {
  9825. ee.WriteMapElemValue()
  9826. }
  9827. ee.EncodeUint(uint64(v2))
  9828. }
  9829. }
  9830. ee.WriteMapEnd()
  9831. }
  9832. func (e *Encoder) fastpathEncMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  9833. fastpathTV.EncMapInt8Uint8V(rv2i(rv).(map[int8]uint8), e)
  9834. }
  9835. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, e *Encoder) {
  9836. if v == nil {
  9837. e.e.EncodeNil()
  9838. return
  9839. }
  9840. ee, esep := e.e, e.hh.hasElemSeparators()
  9841. ee.WriteMapStart(len(v))
  9842. if e.h.Canonical {
  9843. v2 := make([]int64, len(v))
  9844. var i int
  9845. for k, _ := range v {
  9846. v2[i] = int64(k)
  9847. i++
  9848. }
  9849. sort.Sort(intSlice(v2))
  9850. for _, k2 := range v2 {
  9851. if esep {
  9852. ee.WriteMapElemKey()
  9853. }
  9854. ee.EncodeInt(int64(int8(k2)))
  9855. if esep {
  9856. ee.WriteMapElemValue()
  9857. }
  9858. ee.EncodeUint(uint64(v[int8(k2)]))
  9859. }
  9860. } else {
  9861. for k2, v2 := range v {
  9862. if esep {
  9863. ee.WriteMapElemKey()
  9864. }
  9865. ee.EncodeInt(int64(k2))
  9866. if esep {
  9867. ee.WriteMapElemValue()
  9868. }
  9869. ee.EncodeUint(uint64(v2))
  9870. }
  9871. }
  9872. ee.WriteMapEnd()
  9873. }
  9874. func (e *Encoder) fastpathEncMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  9875. fastpathTV.EncMapInt8Uint16V(rv2i(rv).(map[int8]uint16), e)
  9876. }
  9877. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, e *Encoder) {
  9878. if v == nil {
  9879. e.e.EncodeNil()
  9880. return
  9881. }
  9882. ee, esep := e.e, e.hh.hasElemSeparators()
  9883. ee.WriteMapStart(len(v))
  9884. if e.h.Canonical {
  9885. v2 := make([]int64, len(v))
  9886. var i int
  9887. for k, _ := range v {
  9888. v2[i] = int64(k)
  9889. i++
  9890. }
  9891. sort.Sort(intSlice(v2))
  9892. for _, k2 := range v2 {
  9893. if esep {
  9894. ee.WriteMapElemKey()
  9895. }
  9896. ee.EncodeInt(int64(int8(k2)))
  9897. if esep {
  9898. ee.WriteMapElemValue()
  9899. }
  9900. ee.EncodeUint(uint64(v[int8(k2)]))
  9901. }
  9902. } else {
  9903. for k2, v2 := range v {
  9904. if esep {
  9905. ee.WriteMapElemKey()
  9906. }
  9907. ee.EncodeInt(int64(k2))
  9908. if esep {
  9909. ee.WriteMapElemValue()
  9910. }
  9911. ee.EncodeUint(uint64(v2))
  9912. }
  9913. }
  9914. ee.WriteMapEnd()
  9915. }
  9916. func (e *Encoder) fastpathEncMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  9917. fastpathTV.EncMapInt8Uint32V(rv2i(rv).(map[int8]uint32), e)
  9918. }
  9919. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, e *Encoder) {
  9920. if v == nil {
  9921. e.e.EncodeNil()
  9922. return
  9923. }
  9924. ee, esep := e.e, e.hh.hasElemSeparators()
  9925. ee.WriteMapStart(len(v))
  9926. if e.h.Canonical {
  9927. v2 := make([]int64, len(v))
  9928. var i int
  9929. for k, _ := range v {
  9930. v2[i] = int64(k)
  9931. i++
  9932. }
  9933. sort.Sort(intSlice(v2))
  9934. for _, k2 := range v2 {
  9935. if esep {
  9936. ee.WriteMapElemKey()
  9937. }
  9938. ee.EncodeInt(int64(int8(k2)))
  9939. if esep {
  9940. ee.WriteMapElemValue()
  9941. }
  9942. ee.EncodeUint(uint64(v[int8(k2)]))
  9943. }
  9944. } else {
  9945. for k2, v2 := range v {
  9946. if esep {
  9947. ee.WriteMapElemKey()
  9948. }
  9949. ee.EncodeInt(int64(k2))
  9950. if esep {
  9951. ee.WriteMapElemValue()
  9952. }
  9953. ee.EncodeUint(uint64(v2))
  9954. }
  9955. }
  9956. ee.WriteMapEnd()
  9957. }
  9958. func (e *Encoder) fastpathEncMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  9959. fastpathTV.EncMapInt8Uint64V(rv2i(rv).(map[int8]uint64), e)
  9960. }
  9961. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, e *Encoder) {
  9962. if v == nil {
  9963. e.e.EncodeNil()
  9964. return
  9965. }
  9966. ee, esep := e.e, e.hh.hasElemSeparators()
  9967. ee.WriteMapStart(len(v))
  9968. if e.h.Canonical {
  9969. v2 := make([]int64, len(v))
  9970. var i int
  9971. for k, _ := range v {
  9972. v2[i] = int64(k)
  9973. i++
  9974. }
  9975. sort.Sort(intSlice(v2))
  9976. for _, k2 := range v2 {
  9977. if esep {
  9978. ee.WriteMapElemKey()
  9979. }
  9980. ee.EncodeInt(int64(int8(k2)))
  9981. if esep {
  9982. ee.WriteMapElemValue()
  9983. }
  9984. ee.EncodeUint(uint64(v[int8(k2)]))
  9985. }
  9986. } else {
  9987. for k2, v2 := range v {
  9988. if esep {
  9989. ee.WriteMapElemKey()
  9990. }
  9991. ee.EncodeInt(int64(k2))
  9992. if esep {
  9993. ee.WriteMapElemValue()
  9994. }
  9995. ee.EncodeUint(uint64(v2))
  9996. }
  9997. }
  9998. ee.WriteMapEnd()
  9999. }
  10000. func (e *Encoder) fastpathEncMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  10001. fastpathTV.EncMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), e)
  10002. }
  10003. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, e *Encoder) {
  10004. if v == nil {
  10005. e.e.EncodeNil()
  10006. return
  10007. }
  10008. ee, esep := e.e, e.hh.hasElemSeparators()
  10009. ee.WriteMapStart(len(v))
  10010. if e.h.Canonical {
  10011. v2 := make([]int64, len(v))
  10012. var i int
  10013. for k, _ := range v {
  10014. v2[i] = int64(k)
  10015. i++
  10016. }
  10017. sort.Sort(intSlice(v2))
  10018. for _, k2 := range v2 {
  10019. if esep {
  10020. ee.WriteMapElemKey()
  10021. }
  10022. ee.EncodeInt(int64(int8(k2)))
  10023. if esep {
  10024. ee.WriteMapElemValue()
  10025. }
  10026. e.encode(v[int8(k2)])
  10027. }
  10028. } else {
  10029. for k2, v2 := range v {
  10030. if esep {
  10031. ee.WriteMapElemKey()
  10032. }
  10033. ee.EncodeInt(int64(k2))
  10034. if esep {
  10035. ee.WriteMapElemValue()
  10036. }
  10037. e.encode(v2)
  10038. }
  10039. }
  10040. ee.WriteMapEnd()
  10041. }
  10042. func (e *Encoder) fastpathEncMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  10043. fastpathTV.EncMapInt8IntV(rv2i(rv).(map[int8]int), e)
  10044. }
  10045. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, e *Encoder) {
  10046. if v == nil {
  10047. e.e.EncodeNil()
  10048. return
  10049. }
  10050. ee, esep := e.e, e.hh.hasElemSeparators()
  10051. ee.WriteMapStart(len(v))
  10052. if e.h.Canonical {
  10053. v2 := make([]int64, len(v))
  10054. var i int
  10055. for k, _ := range v {
  10056. v2[i] = int64(k)
  10057. i++
  10058. }
  10059. sort.Sort(intSlice(v2))
  10060. for _, k2 := range v2 {
  10061. if esep {
  10062. ee.WriteMapElemKey()
  10063. }
  10064. ee.EncodeInt(int64(int8(k2)))
  10065. if esep {
  10066. ee.WriteMapElemValue()
  10067. }
  10068. ee.EncodeInt(int64(v[int8(k2)]))
  10069. }
  10070. } else {
  10071. for k2, v2 := range v {
  10072. if esep {
  10073. ee.WriteMapElemKey()
  10074. }
  10075. ee.EncodeInt(int64(k2))
  10076. if esep {
  10077. ee.WriteMapElemValue()
  10078. }
  10079. ee.EncodeInt(int64(v2))
  10080. }
  10081. }
  10082. ee.WriteMapEnd()
  10083. }
  10084. func (e *Encoder) fastpathEncMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  10085. fastpathTV.EncMapInt8Int8V(rv2i(rv).(map[int8]int8), e)
  10086. }
  10087. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, e *Encoder) {
  10088. if v == nil {
  10089. e.e.EncodeNil()
  10090. return
  10091. }
  10092. ee, esep := e.e, e.hh.hasElemSeparators()
  10093. ee.WriteMapStart(len(v))
  10094. if e.h.Canonical {
  10095. v2 := make([]int64, len(v))
  10096. var i int
  10097. for k, _ := range v {
  10098. v2[i] = int64(k)
  10099. i++
  10100. }
  10101. sort.Sort(intSlice(v2))
  10102. for _, k2 := range v2 {
  10103. if esep {
  10104. ee.WriteMapElemKey()
  10105. }
  10106. ee.EncodeInt(int64(int8(k2)))
  10107. if esep {
  10108. ee.WriteMapElemValue()
  10109. }
  10110. ee.EncodeInt(int64(v[int8(k2)]))
  10111. }
  10112. } else {
  10113. for k2, v2 := range v {
  10114. if esep {
  10115. ee.WriteMapElemKey()
  10116. }
  10117. ee.EncodeInt(int64(k2))
  10118. if esep {
  10119. ee.WriteMapElemValue()
  10120. }
  10121. ee.EncodeInt(int64(v2))
  10122. }
  10123. }
  10124. ee.WriteMapEnd()
  10125. }
  10126. func (e *Encoder) fastpathEncMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  10127. fastpathTV.EncMapInt8Int16V(rv2i(rv).(map[int8]int16), e)
  10128. }
  10129. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, e *Encoder) {
  10130. if v == nil {
  10131. e.e.EncodeNil()
  10132. return
  10133. }
  10134. ee, esep := e.e, e.hh.hasElemSeparators()
  10135. ee.WriteMapStart(len(v))
  10136. if e.h.Canonical {
  10137. v2 := make([]int64, len(v))
  10138. var i int
  10139. for k, _ := range v {
  10140. v2[i] = int64(k)
  10141. i++
  10142. }
  10143. sort.Sort(intSlice(v2))
  10144. for _, k2 := range v2 {
  10145. if esep {
  10146. ee.WriteMapElemKey()
  10147. }
  10148. ee.EncodeInt(int64(int8(k2)))
  10149. if esep {
  10150. ee.WriteMapElemValue()
  10151. }
  10152. ee.EncodeInt(int64(v[int8(k2)]))
  10153. }
  10154. } else {
  10155. for k2, v2 := range v {
  10156. if esep {
  10157. ee.WriteMapElemKey()
  10158. }
  10159. ee.EncodeInt(int64(k2))
  10160. if esep {
  10161. ee.WriteMapElemValue()
  10162. }
  10163. ee.EncodeInt(int64(v2))
  10164. }
  10165. }
  10166. ee.WriteMapEnd()
  10167. }
  10168. func (e *Encoder) fastpathEncMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  10169. fastpathTV.EncMapInt8Int32V(rv2i(rv).(map[int8]int32), e)
  10170. }
  10171. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, e *Encoder) {
  10172. if v == nil {
  10173. e.e.EncodeNil()
  10174. return
  10175. }
  10176. ee, esep := e.e, e.hh.hasElemSeparators()
  10177. ee.WriteMapStart(len(v))
  10178. if e.h.Canonical {
  10179. v2 := make([]int64, len(v))
  10180. var i int
  10181. for k, _ := range v {
  10182. v2[i] = int64(k)
  10183. i++
  10184. }
  10185. sort.Sort(intSlice(v2))
  10186. for _, k2 := range v2 {
  10187. if esep {
  10188. ee.WriteMapElemKey()
  10189. }
  10190. ee.EncodeInt(int64(int8(k2)))
  10191. if esep {
  10192. ee.WriteMapElemValue()
  10193. }
  10194. ee.EncodeInt(int64(v[int8(k2)]))
  10195. }
  10196. } else {
  10197. for k2, v2 := range v {
  10198. if esep {
  10199. ee.WriteMapElemKey()
  10200. }
  10201. ee.EncodeInt(int64(k2))
  10202. if esep {
  10203. ee.WriteMapElemValue()
  10204. }
  10205. ee.EncodeInt(int64(v2))
  10206. }
  10207. }
  10208. ee.WriteMapEnd()
  10209. }
  10210. func (e *Encoder) fastpathEncMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  10211. fastpathTV.EncMapInt8Int64V(rv2i(rv).(map[int8]int64), e)
  10212. }
  10213. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, e *Encoder) {
  10214. if v == nil {
  10215. e.e.EncodeNil()
  10216. return
  10217. }
  10218. ee, esep := e.e, e.hh.hasElemSeparators()
  10219. ee.WriteMapStart(len(v))
  10220. if e.h.Canonical {
  10221. v2 := make([]int64, len(v))
  10222. var i int
  10223. for k, _ := range v {
  10224. v2[i] = int64(k)
  10225. i++
  10226. }
  10227. sort.Sort(intSlice(v2))
  10228. for _, k2 := range v2 {
  10229. if esep {
  10230. ee.WriteMapElemKey()
  10231. }
  10232. ee.EncodeInt(int64(int8(k2)))
  10233. if esep {
  10234. ee.WriteMapElemValue()
  10235. }
  10236. ee.EncodeInt(int64(v[int8(k2)]))
  10237. }
  10238. } else {
  10239. for k2, v2 := range v {
  10240. if esep {
  10241. ee.WriteMapElemKey()
  10242. }
  10243. ee.EncodeInt(int64(k2))
  10244. if esep {
  10245. ee.WriteMapElemValue()
  10246. }
  10247. ee.EncodeInt(int64(v2))
  10248. }
  10249. }
  10250. ee.WriteMapEnd()
  10251. }
  10252. func (e *Encoder) fastpathEncMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  10253. fastpathTV.EncMapInt8Float32V(rv2i(rv).(map[int8]float32), e)
  10254. }
  10255. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, e *Encoder) {
  10256. if v == nil {
  10257. e.e.EncodeNil()
  10258. return
  10259. }
  10260. ee, esep := e.e, e.hh.hasElemSeparators()
  10261. ee.WriteMapStart(len(v))
  10262. if e.h.Canonical {
  10263. v2 := make([]int64, len(v))
  10264. var i int
  10265. for k, _ := range v {
  10266. v2[i] = int64(k)
  10267. i++
  10268. }
  10269. sort.Sort(intSlice(v2))
  10270. for _, k2 := range v2 {
  10271. if esep {
  10272. ee.WriteMapElemKey()
  10273. }
  10274. ee.EncodeInt(int64(int8(k2)))
  10275. if esep {
  10276. ee.WriteMapElemValue()
  10277. }
  10278. ee.EncodeFloat32(v[int8(k2)])
  10279. }
  10280. } else {
  10281. for k2, v2 := range v {
  10282. if esep {
  10283. ee.WriteMapElemKey()
  10284. }
  10285. ee.EncodeInt(int64(k2))
  10286. if esep {
  10287. ee.WriteMapElemValue()
  10288. }
  10289. ee.EncodeFloat32(v2)
  10290. }
  10291. }
  10292. ee.WriteMapEnd()
  10293. }
  10294. func (e *Encoder) fastpathEncMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  10295. fastpathTV.EncMapInt8Float64V(rv2i(rv).(map[int8]float64), e)
  10296. }
  10297. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, e *Encoder) {
  10298. if v == nil {
  10299. e.e.EncodeNil()
  10300. return
  10301. }
  10302. ee, esep := e.e, e.hh.hasElemSeparators()
  10303. ee.WriteMapStart(len(v))
  10304. if e.h.Canonical {
  10305. v2 := make([]int64, len(v))
  10306. var i int
  10307. for k, _ := range v {
  10308. v2[i] = int64(k)
  10309. i++
  10310. }
  10311. sort.Sort(intSlice(v2))
  10312. for _, k2 := range v2 {
  10313. if esep {
  10314. ee.WriteMapElemKey()
  10315. }
  10316. ee.EncodeInt(int64(int8(k2)))
  10317. if esep {
  10318. ee.WriteMapElemValue()
  10319. }
  10320. ee.EncodeFloat64(v[int8(k2)])
  10321. }
  10322. } else {
  10323. for k2, v2 := range v {
  10324. if esep {
  10325. ee.WriteMapElemKey()
  10326. }
  10327. ee.EncodeInt(int64(k2))
  10328. if esep {
  10329. ee.WriteMapElemValue()
  10330. }
  10331. ee.EncodeFloat64(v2)
  10332. }
  10333. }
  10334. ee.WriteMapEnd()
  10335. }
  10336. func (e *Encoder) fastpathEncMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  10337. fastpathTV.EncMapInt8BoolV(rv2i(rv).(map[int8]bool), e)
  10338. }
  10339. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, e *Encoder) {
  10340. if v == nil {
  10341. e.e.EncodeNil()
  10342. return
  10343. }
  10344. ee, esep := e.e, e.hh.hasElemSeparators()
  10345. ee.WriteMapStart(len(v))
  10346. if e.h.Canonical {
  10347. v2 := make([]int64, len(v))
  10348. var i int
  10349. for k, _ := range v {
  10350. v2[i] = int64(k)
  10351. i++
  10352. }
  10353. sort.Sort(intSlice(v2))
  10354. for _, k2 := range v2 {
  10355. if esep {
  10356. ee.WriteMapElemKey()
  10357. }
  10358. ee.EncodeInt(int64(int8(k2)))
  10359. if esep {
  10360. ee.WriteMapElemValue()
  10361. }
  10362. ee.EncodeBool(v[int8(k2)])
  10363. }
  10364. } else {
  10365. for k2, v2 := range v {
  10366. if esep {
  10367. ee.WriteMapElemKey()
  10368. }
  10369. ee.EncodeInt(int64(k2))
  10370. if esep {
  10371. ee.WriteMapElemValue()
  10372. }
  10373. ee.EncodeBool(v2)
  10374. }
  10375. }
  10376. ee.WriteMapEnd()
  10377. }
  10378. func (e *Encoder) fastpathEncMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  10379. fastpathTV.EncMapInt16IntfV(rv2i(rv).(map[int16]interface{}), e)
  10380. }
  10381. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, e *Encoder) {
  10382. if v == nil {
  10383. e.e.EncodeNil()
  10384. return
  10385. }
  10386. ee, esep := e.e, e.hh.hasElemSeparators()
  10387. ee.WriteMapStart(len(v))
  10388. if e.h.Canonical {
  10389. v2 := make([]int64, len(v))
  10390. var i int
  10391. for k, _ := range v {
  10392. v2[i] = int64(k)
  10393. i++
  10394. }
  10395. sort.Sort(intSlice(v2))
  10396. for _, k2 := range v2 {
  10397. if esep {
  10398. ee.WriteMapElemKey()
  10399. }
  10400. ee.EncodeInt(int64(int16(k2)))
  10401. if esep {
  10402. ee.WriteMapElemValue()
  10403. }
  10404. e.encode(v[int16(k2)])
  10405. }
  10406. } else {
  10407. for k2, v2 := range v {
  10408. if esep {
  10409. ee.WriteMapElemKey()
  10410. }
  10411. ee.EncodeInt(int64(k2))
  10412. if esep {
  10413. ee.WriteMapElemValue()
  10414. }
  10415. e.encode(v2)
  10416. }
  10417. }
  10418. ee.WriteMapEnd()
  10419. }
  10420. func (e *Encoder) fastpathEncMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  10421. fastpathTV.EncMapInt16StringV(rv2i(rv).(map[int16]string), e)
  10422. }
  10423. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, e *Encoder) {
  10424. if v == nil {
  10425. e.e.EncodeNil()
  10426. return
  10427. }
  10428. ee, esep := e.e, e.hh.hasElemSeparators()
  10429. ee.WriteMapStart(len(v))
  10430. if e.h.Canonical {
  10431. v2 := make([]int64, len(v))
  10432. var i int
  10433. for k, _ := range v {
  10434. v2[i] = int64(k)
  10435. i++
  10436. }
  10437. sort.Sort(intSlice(v2))
  10438. for _, k2 := range v2 {
  10439. if esep {
  10440. ee.WriteMapElemKey()
  10441. }
  10442. ee.EncodeInt(int64(int16(k2)))
  10443. if esep {
  10444. ee.WriteMapElemValue()
  10445. }
  10446. ee.EncodeString(c_UTF8, v[int16(k2)])
  10447. }
  10448. } else {
  10449. for k2, v2 := range v {
  10450. if esep {
  10451. ee.WriteMapElemKey()
  10452. }
  10453. ee.EncodeInt(int64(k2))
  10454. if esep {
  10455. ee.WriteMapElemValue()
  10456. }
  10457. ee.EncodeString(c_UTF8, v2)
  10458. }
  10459. }
  10460. ee.WriteMapEnd()
  10461. }
  10462. func (e *Encoder) fastpathEncMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  10463. fastpathTV.EncMapInt16UintV(rv2i(rv).(map[int16]uint), e)
  10464. }
  10465. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, e *Encoder) {
  10466. if v == nil {
  10467. e.e.EncodeNil()
  10468. return
  10469. }
  10470. ee, esep := e.e, e.hh.hasElemSeparators()
  10471. ee.WriteMapStart(len(v))
  10472. if e.h.Canonical {
  10473. v2 := make([]int64, len(v))
  10474. var i int
  10475. for k, _ := range v {
  10476. v2[i] = int64(k)
  10477. i++
  10478. }
  10479. sort.Sort(intSlice(v2))
  10480. for _, k2 := range v2 {
  10481. if esep {
  10482. ee.WriteMapElemKey()
  10483. }
  10484. ee.EncodeInt(int64(int16(k2)))
  10485. if esep {
  10486. ee.WriteMapElemValue()
  10487. }
  10488. ee.EncodeUint(uint64(v[int16(k2)]))
  10489. }
  10490. } else {
  10491. for k2, v2 := range v {
  10492. if esep {
  10493. ee.WriteMapElemKey()
  10494. }
  10495. ee.EncodeInt(int64(k2))
  10496. if esep {
  10497. ee.WriteMapElemValue()
  10498. }
  10499. ee.EncodeUint(uint64(v2))
  10500. }
  10501. }
  10502. ee.WriteMapEnd()
  10503. }
  10504. func (e *Encoder) fastpathEncMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  10505. fastpathTV.EncMapInt16Uint8V(rv2i(rv).(map[int16]uint8), e)
  10506. }
  10507. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, e *Encoder) {
  10508. if v == nil {
  10509. e.e.EncodeNil()
  10510. return
  10511. }
  10512. ee, esep := e.e, e.hh.hasElemSeparators()
  10513. ee.WriteMapStart(len(v))
  10514. if e.h.Canonical {
  10515. v2 := make([]int64, len(v))
  10516. var i int
  10517. for k, _ := range v {
  10518. v2[i] = int64(k)
  10519. i++
  10520. }
  10521. sort.Sort(intSlice(v2))
  10522. for _, k2 := range v2 {
  10523. if esep {
  10524. ee.WriteMapElemKey()
  10525. }
  10526. ee.EncodeInt(int64(int16(k2)))
  10527. if esep {
  10528. ee.WriteMapElemValue()
  10529. }
  10530. ee.EncodeUint(uint64(v[int16(k2)]))
  10531. }
  10532. } else {
  10533. for k2, v2 := range v {
  10534. if esep {
  10535. ee.WriteMapElemKey()
  10536. }
  10537. ee.EncodeInt(int64(k2))
  10538. if esep {
  10539. ee.WriteMapElemValue()
  10540. }
  10541. ee.EncodeUint(uint64(v2))
  10542. }
  10543. }
  10544. ee.WriteMapEnd()
  10545. }
  10546. func (e *Encoder) fastpathEncMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  10547. fastpathTV.EncMapInt16Uint16V(rv2i(rv).(map[int16]uint16), e)
  10548. }
  10549. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, e *Encoder) {
  10550. if v == nil {
  10551. e.e.EncodeNil()
  10552. return
  10553. }
  10554. ee, esep := e.e, e.hh.hasElemSeparators()
  10555. ee.WriteMapStart(len(v))
  10556. if e.h.Canonical {
  10557. v2 := make([]int64, len(v))
  10558. var i int
  10559. for k, _ := range v {
  10560. v2[i] = int64(k)
  10561. i++
  10562. }
  10563. sort.Sort(intSlice(v2))
  10564. for _, k2 := range v2 {
  10565. if esep {
  10566. ee.WriteMapElemKey()
  10567. }
  10568. ee.EncodeInt(int64(int16(k2)))
  10569. if esep {
  10570. ee.WriteMapElemValue()
  10571. }
  10572. ee.EncodeUint(uint64(v[int16(k2)]))
  10573. }
  10574. } else {
  10575. for k2, v2 := range v {
  10576. if esep {
  10577. ee.WriteMapElemKey()
  10578. }
  10579. ee.EncodeInt(int64(k2))
  10580. if esep {
  10581. ee.WriteMapElemValue()
  10582. }
  10583. ee.EncodeUint(uint64(v2))
  10584. }
  10585. }
  10586. ee.WriteMapEnd()
  10587. }
  10588. func (e *Encoder) fastpathEncMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  10589. fastpathTV.EncMapInt16Uint32V(rv2i(rv).(map[int16]uint32), e)
  10590. }
  10591. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, e *Encoder) {
  10592. if v == nil {
  10593. e.e.EncodeNil()
  10594. return
  10595. }
  10596. ee, esep := e.e, e.hh.hasElemSeparators()
  10597. ee.WriteMapStart(len(v))
  10598. if e.h.Canonical {
  10599. v2 := make([]int64, len(v))
  10600. var i int
  10601. for k, _ := range v {
  10602. v2[i] = int64(k)
  10603. i++
  10604. }
  10605. sort.Sort(intSlice(v2))
  10606. for _, k2 := range v2 {
  10607. if esep {
  10608. ee.WriteMapElemKey()
  10609. }
  10610. ee.EncodeInt(int64(int16(k2)))
  10611. if esep {
  10612. ee.WriteMapElemValue()
  10613. }
  10614. ee.EncodeUint(uint64(v[int16(k2)]))
  10615. }
  10616. } else {
  10617. for k2, v2 := range v {
  10618. if esep {
  10619. ee.WriteMapElemKey()
  10620. }
  10621. ee.EncodeInt(int64(k2))
  10622. if esep {
  10623. ee.WriteMapElemValue()
  10624. }
  10625. ee.EncodeUint(uint64(v2))
  10626. }
  10627. }
  10628. ee.WriteMapEnd()
  10629. }
  10630. func (e *Encoder) fastpathEncMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  10631. fastpathTV.EncMapInt16Uint64V(rv2i(rv).(map[int16]uint64), e)
  10632. }
  10633. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, e *Encoder) {
  10634. if v == nil {
  10635. e.e.EncodeNil()
  10636. return
  10637. }
  10638. ee, esep := e.e, e.hh.hasElemSeparators()
  10639. ee.WriteMapStart(len(v))
  10640. if e.h.Canonical {
  10641. v2 := make([]int64, len(v))
  10642. var i int
  10643. for k, _ := range v {
  10644. v2[i] = int64(k)
  10645. i++
  10646. }
  10647. sort.Sort(intSlice(v2))
  10648. for _, k2 := range v2 {
  10649. if esep {
  10650. ee.WriteMapElemKey()
  10651. }
  10652. ee.EncodeInt(int64(int16(k2)))
  10653. if esep {
  10654. ee.WriteMapElemValue()
  10655. }
  10656. ee.EncodeUint(uint64(v[int16(k2)]))
  10657. }
  10658. } else {
  10659. for k2, v2 := range v {
  10660. if esep {
  10661. ee.WriteMapElemKey()
  10662. }
  10663. ee.EncodeInt(int64(k2))
  10664. if esep {
  10665. ee.WriteMapElemValue()
  10666. }
  10667. ee.EncodeUint(uint64(v2))
  10668. }
  10669. }
  10670. ee.WriteMapEnd()
  10671. }
  10672. func (e *Encoder) fastpathEncMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  10673. fastpathTV.EncMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), e)
  10674. }
  10675. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, e *Encoder) {
  10676. if v == nil {
  10677. e.e.EncodeNil()
  10678. return
  10679. }
  10680. ee, esep := e.e, e.hh.hasElemSeparators()
  10681. ee.WriteMapStart(len(v))
  10682. if e.h.Canonical {
  10683. v2 := make([]int64, len(v))
  10684. var i int
  10685. for k, _ := range v {
  10686. v2[i] = int64(k)
  10687. i++
  10688. }
  10689. sort.Sort(intSlice(v2))
  10690. for _, k2 := range v2 {
  10691. if esep {
  10692. ee.WriteMapElemKey()
  10693. }
  10694. ee.EncodeInt(int64(int16(k2)))
  10695. if esep {
  10696. ee.WriteMapElemValue()
  10697. }
  10698. e.encode(v[int16(k2)])
  10699. }
  10700. } else {
  10701. for k2, v2 := range v {
  10702. if esep {
  10703. ee.WriteMapElemKey()
  10704. }
  10705. ee.EncodeInt(int64(k2))
  10706. if esep {
  10707. ee.WriteMapElemValue()
  10708. }
  10709. e.encode(v2)
  10710. }
  10711. }
  10712. ee.WriteMapEnd()
  10713. }
  10714. func (e *Encoder) fastpathEncMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  10715. fastpathTV.EncMapInt16IntV(rv2i(rv).(map[int16]int), e)
  10716. }
  10717. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, e *Encoder) {
  10718. if v == nil {
  10719. e.e.EncodeNil()
  10720. return
  10721. }
  10722. ee, esep := e.e, e.hh.hasElemSeparators()
  10723. ee.WriteMapStart(len(v))
  10724. if e.h.Canonical {
  10725. v2 := make([]int64, len(v))
  10726. var i int
  10727. for k, _ := range v {
  10728. v2[i] = int64(k)
  10729. i++
  10730. }
  10731. sort.Sort(intSlice(v2))
  10732. for _, k2 := range v2 {
  10733. if esep {
  10734. ee.WriteMapElemKey()
  10735. }
  10736. ee.EncodeInt(int64(int16(k2)))
  10737. if esep {
  10738. ee.WriteMapElemValue()
  10739. }
  10740. ee.EncodeInt(int64(v[int16(k2)]))
  10741. }
  10742. } else {
  10743. for k2, v2 := range v {
  10744. if esep {
  10745. ee.WriteMapElemKey()
  10746. }
  10747. ee.EncodeInt(int64(k2))
  10748. if esep {
  10749. ee.WriteMapElemValue()
  10750. }
  10751. ee.EncodeInt(int64(v2))
  10752. }
  10753. }
  10754. ee.WriteMapEnd()
  10755. }
  10756. func (e *Encoder) fastpathEncMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  10757. fastpathTV.EncMapInt16Int8V(rv2i(rv).(map[int16]int8), e)
  10758. }
  10759. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, e *Encoder) {
  10760. if v == nil {
  10761. e.e.EncodeNil()
  10762. return
  10763. }
  10764. ee, esep := e.e, e.hh.hasElemSeparators()
  10765. ee.WriteMapStart(len(v))
  10766. if e.h.Canonical {
  10767. v2 := make([]int64, len(v))
  10768. var i int
  10769. for k, _ := range v {
  10770. v2[i] = int64(k)
  10771. i++
  10772. }
  10773. sort.Sort(intSlice(v2))
  10774. for _, k2 := range v2 {
  10775. if esep {
  10776. ee.WriteMapElemKey()
  10777. }
  10778. ee.EncodeInt(int64(int16(k2)))
  10779. if esep {
  10780. ee.WriteMapElemValue()
  10781. }
  10782. ee.EncodeInt(int64(v[int16(k2)]))
  10783. }
  10784. } else {
  10785. for k2, v2 := range v {
  10786. if esep {
  10787. ee.WriteMapElemKey()
  10788. }
  10789. ee.EncodeInt(int64(k2))
  10790. if esep {
  10791. ee.WriteMapElemValue()
  10792. }
  10793. ee.EncodeInt(int64(v2))
  10794. }
  10795. }
  10796. ee.WriteMapEnd()
  10797. }
  10798. func (e *Encoder) fastpathEncMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  10799. fastpathTV.EncMapInt16Int16V(rv2i(rv).(map[int16]int16), e)
  10800. }
  10801. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, e *Encoder) {
  10802. if v == nil {
  10803. e.e.EncodeNil()
  10804. return
  10805. }
  10806. ee, esep := e.e, e.hh.hasElemSeparators()
  10807. ee.WriteMapStart(len(v))
  10808. if e.h.Canonical {
  10809. v2 := make([]int64, len(v))
  10810. var i int
  10811. for k, _ := range v {
  10812. v2[i] = int64(k)
  10813. i++
  10814. }
  10815. sort.Sort(intSlice(v2))
  10816. for _, k2 := range v2 {
  10817. if esep {
  10818. ee.WriteMapElemKey()
  10819. }
  10820. ee.EncodeInt(int64(int16(k2)))
  10821. if esep {
  10822. ee.WriteMapElemValue()
  10823. }
  10824. ee.EncodeInt(int64(v[int16(k2)]))
  10825. }
  10826. } else {
  10827. for k2, v2 := range v {
  10828. if esep {
  10829. ee.WriteMapElemKey()
  10830. }
  10831. ee.EncodeInt(int64(k2))
  10832. if esep {
  10833. ee.WriteMapElemValue()
  10834. }
  10835. ee.EncodeInt(int64(v2))
  10836. }
  10837. }
  10838. ee.WriteMapEnd()
  10839. }
  10840. func (e *Encoder) fastpathEncMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  10841. fastpathTV.EncMapInt16Int32V(rv2i(rv).(map[int16]int32), e)
  10842. }
  10843. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, e *Encoder) {
  10844. if v == nil {
  10845. e.e.EncodeNil()
  10846. return
  10847. }
  10848. ee, esep := e.e, e.hh.hasElemSeparators()
  10849. ee.WriteMapStart(len(v))
  10850. if e.h.Canonical {
  10851. v2 := make([]int64, len(v))
  10852. var i int
  10853. for k, _ := range v {
  10854. v2[i] = int64(k)
  10855. i++
  10856. }
  10857. sort.Sort(intSlice(v2))
  10858. for _, k2 := range v2 {
  10859. if esep {
  10860. ee.WriteMapElemKey()
  10861. }
  10862. ee.EncodeInt(int64(int16(k2)))
  10863. if esep {
  10864. ee.WriteMapElemValue()
  10865. }
  10866. ee.EncodeInt(int64(v[int16(k2)]))
  10867. }
  10868. } else {
  10869. for k2, v2 := range v {
  10870. if esep {
  10871. ee.WriteMapElemKey()
  10872. }
  10873. ee.EncodeInt(int64(k2))
  10874. if esep {
  10875. ee.WriteMapElemValue()
  10876. }
  10877. ee.EncodeInt(int64(v2))
  10878. }
  10879. }
  10880. ee.WriteMapEnd()
  10881. }
  10882. func (e *Encoder) fastpathEncMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  10883. fastpathTV.EncMapInt16Int64V(rv2i(rv).(map[int16]int64), e)
  10884. }
  10885. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, e *Encoder) {
  10886. if v == nil {
  10887. e.e.EncodeNil()
  10888. return
  10889. }
  10890. ee, esep := e.e, e.hh.hasElemSeparators()
  10891. ee.WriteMapStart(len(v))
  10892. if e.h.Canonical {
  10893. v2 := make([]int64, len(v))
  10894. var i int
  10895. for k, _ := range v {
  10896. v2[i] = int64(k)
  10897. i++
  10898. }
  10899. sort.Sort(intSlice(v2))
  10900. for _, k2 := range v2 {
  10901. if esep {
  10902. ee.WriteMapElemKey()
  10903. }
  10904. ee.EncodeInt(int64(int16(k2)))
  10905. if esep {
  10906. ee.WriteMapElemValue()
  10907. }
  10908. ee.EncodeInt(int64(v[int16(k2)]))
  10909. }
  10910. } else {
  10911. for k2, v2 := range v {
  10912. if esep {
  10913. ee.WriteMapElemKey()
  10914. }
  10915. ee.EncodeInt(int64(k2))
  10916. if esep {
  10917. ee.WriteMapElemValue()
  10918. }
  10919. ee.EncodeInt(int64(v2))
  10920. }
  10921. }
  10922. ee.WriteMapEnd()
  10923. }
  10924. func (e *Encoder) fastpathEncMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  10925. fastpathTV.EncMapInt16Float32V(rv2i(rv).(map[int16]float32), e)
  10926. }
  10927. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, e *Encoder) {
  10928. if v == nil {
  10929. e.e.EncodeNil()
  10930. return
  10931. }
  10932. ee, esep := e.e, e.hh.hasElemSeparators()
  10933. ee.WriteMapStart(len(v))
  10934. if e.h.Canonical {
  10935. v2 := make([]int64, len(v))
  10936. var i int
  10937. for k, _ := range v {
  10938. v2[i] = int64(k)
  10939. i++
  10940. }
  10941. sort.Sort(intSlice(v2))
  10942. for _, k2 := range v2 {
  10943. if esep {
  10944. ee.WriteMapElemKey()
  10945. }
  10946. ee.EncodeInt(int64(int16(k2)))
  10947. if esep {
  10948. ee.WriteMapElemValue()
  10949. }
  10950. ee.EncodeFloat32(v[int16(k2)])
  10951. }
  10952. } else {
  10953. for k2, v2 := range v {
  10954. if esep {
  10955. ee.WriteMapElemKey()
  10956. }
  10957. ee.EncodeInt(int64(k2))
  10958. if esep {
  10959. ee.WriteMapElemValue()
  10960. }
  10961. ee.EncodeFloat32(v2)
  10962. }
  10963. }
  10964. ee.WriteMapEnd()
  10965. }
  10966. func (e *Encoder) fastpathEncMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  10967. fastpathTV.EncMapInt16Float64V(rv2i(rv).(map[int16]float64), e)
  10968. }
  10969. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, e *Encoder) {
  10970. if v == nil {
  10971. e.e.EncodeNil()
  10972. return
  10973. }
  10974. ee, esep := e.e, e.hh.hasElemSeparators()
  10975. ee.WriteMapStart(len(v))
  10976. if e.h.Canonical {
  10977. v2 := make([]int64, len(v))
  10978. var i int
  10979. for k, _ := range v {
  10980. v2[i] = int64(k)
  10981. i++
  10982. }
  10983. sort.Sort(intSlice(v2))
  10984. for _, k2 := range v2 {
  10985. if esep {
  10986. ee.WriteMapElemKey()
  10987. }
  10988. ee.EncodeInt(int64(int16(k2)))
  10989. if esep {
  10990. ee.WriteMapElemValue()
  10991. }
  10992. ee.EncodeFloat64(v[int16(k2)])
  10993. }
  10994. } else {
  10995. for k2, v2 := range v {
  10996. if esep {
  10997. ee.WriteMapElemKey()
  10998. }
  10999. ee.EncodeInt(int64(k2))
  11000. if esep {
  11001. ee.WriteMapElemValue()
  11002. }
  11003. ee.EncodeFloat64(v2)
  11004. }
  11005. }
  11006. ee.WriteMapEnd()
  11007. }
  11008. func (e *Encoder) fastpathEncMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  11009. fastpathTV.EncMapInt16BoolV(rv2i(rv).(map[int16]bool), e)
  11010. }
  11011. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, e *Encoder) {
  11012. if v == nil {
  11013. e.e.EncodeNil()
  11014. return
  11015. }
  11016. ee, esep := e.e, e.hh.hasElemSeparators()
  11017. ee.WriteMapStart(len(v))
  11018. if e.h.Canonical {
  11019. v2 := make([]int64, len(v))
  11020. var i int
  11021. for k, _ := range v {
  11022. v2[i] = int64(k)
  11023. i++
  11024. }
  11025. sort.Sort(intSlice(v2))
  11026. for _, k2 := range v2 {
  11027. if esep {
  11028. ee.WriteMapElemKey()
  11029. }
  11030. ee.EncodeInt(int64(int16(k2)))
  11031. if esep {
  11032. ee.WriteMapElemValue()
  11033. }
  11034. ee.EncodeBool(v[int16(k2)])
  11035. }
  11036. } else {
  11037. for k2, v2 := range v {
  11038. if esep {
  11039. ee.WriteMapElemKey()
  11040. }
  11041. ee.EncodeInt(int64(k2))
  11042. if esep {
  11043. ee.WriteMapElemValue()
  11044. }
  11045. ee.EncodeBool(v2)
  11046. }
  11047. }
  11048. ee.WriteMapEnd()
  11049. }
  11050. func (e *Encoder) fastpathEncMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  11051. fastpathTV.EncMapInt32IntfV(rv2i(rv).(map[int32]interface{}), e)
  11052. }
  11053. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, e *Encoder) {
  11054. if v == nil {
  11055. e.e.EncodeNil()
  11056. return
  11057. }
  11058. ee, esep := e.e, e.hh.hasElemSeparators()
  11059. ee.WriteMapStart(len(v))
  11060. if e.h.Canonical {
  11061. v2 := make([]int64, len(v))
  11062. var i int
  11063. for k, _ := range v {
  11064. v2[i] = int64(k)
  11065. i++
  11066. }
  11067. sort.Sort(intSlice(v2))
  11068. for _, k2 := range v2 {
  11069. if esep {
  11070. ee.WriteMapElemKey()
  11071. }
  11072. ee.EncodeInt(int64(int32(k2)))
  11073. if esep {
  11074. ee.WriteMapElemValue()
  11075. }
  11076. e.encode(v[int32(k2)])
  11077. }
  11078. } else {
  11079. for k2, v2 := range v {
  11080. if esep {
  11081. ee.WriteMapElemKey()
  11082. }
  11083. ee.EncodeInt(int64(k2))
  11084. if esep {
  11085. ee.WriteMapElemValue()
  11086. }
  11087. e.encode(v2)
  11088. }
  11089. }
  11090. ee.WriteMapEnd()
  11091. }
  11092. func (e *Encoder) fastpathEncMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  11093. fastpathTV.EncMapInt32StringV(rv2i(rv).(map[int32]string), e)
  11094. }
  11095. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, e *Encoder) {
  11096. if v == nil {
  11097. e.e.EncodeNil()
  11098. return
  11099. }
  11100. ee, esep := e.e, e.hh.hasElemSeparators()
  11101. ee.WriteMapStart(len(v))
  11102. if e.h.Canonical {
  11103. v2 := make([]int64, len(v))
  11104. var i int
  11105. for k, _ := range v {
  11106. v2[i] = int64(k)
  11107. i++
  11108. }
  11109. sort.Sort(intSlice(v2))
  11110. for _, k2 := range v2 {
  11111. if esep {
  11112. ee.WriteMapElemKey()
  11113. }
  11114. ee.EncodeInt(int64(int32(k2)))
  11115. if esep {
  11116. ee.WriteMapElemValue()
  11117. }
  11118. ee.EncodeString(c_UTF8, v[int32(k2)])
  11119. }
  11120. } else {
  11121. for k2, v2 := range v {
  11122. if esep {
  11123. ee.WriteMapElemKey()
  11124. }
  11125. ee.EncodeInt(int64(k2))
  11126. if esep {
  11127. ee.WriteMapElemValue()
  11128. }
  11129. ee.EncodeString(c_UTF8, v2)
  11130. }
  11131. }
  11132. ee.WriteMapEnd()
  11133. }
  11134. func (e *Encoder) fastpathEncMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  11135. fastpathTV.EncMapInt32UintV(rv2i(rv).(map[int32]uint), e)
  11136. }
  11137. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, e *Encoder) {
  11138. if v == nil {
  11139. e.e.EncodeNil()
  11140. return
  11141. }
  11142. ee, esep := e.e, e.hh.hasElemSeparators()
  11143. ee.WriteMapStart(len(v))
  11144. if e.h.Canonical {
  11145. v2 := make([]int64, len(v))
  11146. var i int
  11147. for k, _ := range v {
  11148. v2[i] = int64(k)
  11149. i++
  11150. }
  11151. sort.Sort(intSlice(v2))
  11152. for _, k2 := range v2 {
  11153. if esep {
  11154. ee.WriteMapElemKey()
  11155. }
  11156. ee.EncodeInt(int64(int32(k2)))
  11157. if esep {
  11158. ee.WriteMapElemValue()
  11159. }
  11160. ee.EncodeUint(uint64(v[int32(k2)]))
  11161. }
  11162. } else {
  11163. for k2, v2 := range v {
  11164. if esep {
  11165. ee.WriteMapElemKey()
  11166. }
  11167. ee.EncodeInt(int64(k2))
  11168. if esep {
  11169. ee.WriteMapElemValue()
  11170. }
  11171. ee.EncodeUint(uint64(v2))
  11172. }
  11173. }
  11174. ee.WriteMapEnd()
  11175. }
  11176. func (e *Encoder) fastpathEncMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  11177. fastpathTV.EncMapInt32Uint8V(rv2i(rv).(map[int32]uint8), e)
  11178. }
  11179. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, e *Encoder) {
  11180. if v == nil {
  11181. e.e.EncodeNil()
  11182. return
  11183. }
  11184. ee, esep := e.e, e.hh.hasElemSeparators()
  11185. ee.WriteMapStart(len(v))
  11186. if e.h.Canonical {
  11187. v2 := make([]int64, len(v))
  11188. var i int
  11189. for k, _ := range v {
  11190. v2[i] = int64(k)
  11191. i++
  11192. }
  11193. sort.Sort(intSlice(v2))
  11194. for _, k2 := range v2 {
  11195. if esep {
  11196. ee.WriteMapElemKey()
  11197. }
  11198. ee.EncodeInt(int64(int32(k2)))
  11199. if esep {
  11200. ee.WriteMapElemValue()
  11201. }
  11202. ee.EncodeUint(uint64(v[int32(k2)]))
  11203. }
  11204. } else {
  11205. for k2, v2 := range v {
  11206. if esep {
  11207. ee.WriteMapElemKey()
  11208. }
  11209. ee.EncodeInt(int64(k2))
  11210. if esep {
  11211. ee.WriteMapElemValue()
  11212. }
  11213. ee.EncodeUint(uint64(v2))
  11214. }
  11215. }
  11216. ee.WriteMapEnd()
  11217. }
  11218. func (e *Encoder) fastpathEncMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  11219. fastpathTV.EncMapInt32Uint16V(rv2i(rv).(map[int32]uint16), e)
  11220. }
  11221. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, e *Encoder) {
  11222. if v == nil {
  11223. e.e.EncodeNil()
  11224. return
  11225. }
  11226. ee, esep := e.e, e.hh.hasElemSeparators()
  11227. ee.WriteMapStart(len(v))
  11228. if e.h.Canonical {
  11229. v2 := make([]int64, len(v))
  11230. var i int
  11231. for k, _ := range v {
  11232. v2[i] = int64(k)
  11233. i++
  11234. }
  11235. sort.Sort(intSlice(v2))
  11236. for _, k2 := range v2 {
  11237. if esep {
  11238. ee.WriteMapElemKey()
  11239. }
  11240. ee.EncodeInt(int64(int32(k2)))
  11241. if esep {
  11242. ee.WriteMapElemValue()
  11243. }
  11244. ee.EncodeUint(uint64(v[int32(k2)]))
  11245. }
  11246. } else {
  11247. for k2, v2 := range v {
  11248. if esep {
  11249. ee.WriteMapElemKey()
  11250. }
  11251. ee.EncodeInt(int64(k2))
  11252. if esep {
  11253. ee.WriteMapElemValue()
  11254. }
  11255. ee.EncodeUint(uint64(v2))
  11256. }
  11257. }
  11258. ee.WriteMapEnd()
  11259. }
  11260. func (e *Encoder) fastpathEncMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  11261. fastpathTV.EncMapInt32Uint32V(rv2i(rv).(map[int32]uint32), e)
  11262. }
  11263. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, e *Encoder) {
  11264. if v == nil {
  11265. e.e.EncodeNil()
  11266. return
  11267. }
  11268. ee, esep := e.e, e.hh.hasElemSeparators()
  11269. ee.WriteMapStart(len(v))
  11270. if e.h.Canonical {
  11271. v2 := make([]int64, len(v))
  11272. var i int
  11273. for k, _ := range v {
  11274. v2[i] = int64(k)
  11275. i++
  11276. }
  11277. sort.Sort(intSlice(v2))
  11278. for _, k2 := range v2 {
  11279. if esep {
  11280. ee.WriteMapElemKey()
  11281. }
  11282. ee.EncodeInt(int64(int32(k2)))
  11283. if esep {
  11284. ee.WriteMapElemValue()
  11285. }
  11286. ee.EncodeUint(uint64(v[int32(k2)]))
  11287. }
  11288. } else {
  11289. for k2, v2 := range v {
  11290. if esep {
  11291. ee.WriteMapElemKey()
  11292. }
  11293. ee.EncodeInt(int64(k2))
  11294. if esep {
  11295. ee.WriteMapElemValue()
  11296. }
  11297. ee.EncodeUint(uint64(v2))
  11298. }
  11299. }
  11300. ee.WriteMapEnd()
  11301. }
  11302. func (e *Encoder) fastpathEncMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  11303. fastpathTV.EncMapInt32Uint64V(rv2i(rv).(map[int32]uint64), e)
  11304. }
  11305. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, e *Encoder) {
  11306. if v == nil {
  11307. e.e.EncodeNil()
  11308. return
  11309. }
  11310. ee, esep := e.e, e.hh.hasElemSeparators()
  11311. ee.WriteMapStart(len(v))
  11312. if e.h.Canonical {
  11313. v2 := make([]int64, len(v))
  11314. var i int
  11315. for k, _ := range v {
  11316. v2[i] = int64(k)
  11317. i++
  11318. }
  11319. sort.Sort(intSlice(v2))
  11320. for _, k2 := range v2 {
  11321. if esep {
  11322. ee.WriteMapElemKey()
  11323. }
  11324. ee.EncodeInt(int64(int32(k2)))
  11325. if esep {
  11326. ee.WriteMapElemValue()
  11327. }
  11328. ee.EncodeUint(uint64(v[int32(k2)]))
  11329. }
  11330. } else {
  11331. for k2, v2 := range v {
  11332. if esep {
  11333. ee.WriteMapElemKey()
  11334. }
  11335. ee.EncodeInt(int64(k2))
  11336. if esep {
  11337. ee.WriteMapElemValue()
  11338. }
  11339. ee.EncodeUint(uint64(v2))
  11340. }
  11341. }
  11342. ee.WriteMapEnd()
  11343. }
  11344. func (e *Encoder) fastpathEncMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  11345. fastpathTV.EncMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), e)
  11346. }
  11347. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, e *Encoder) {
  11348. if v == nil {
  11349. e.e.EncodeNil()
  11350. return
  11351. }
  11352. ee, esep := e.e, e.hh.hasElemSeparators()
  11353. ee.WriteMapStart(len(v))
  11354. if e.h.Canonical {
  11355. v2 := make([]int64, len(v))
  11356. var i int
  11357. for k, _ := range v {
  11358. v2[i] = int64(k)
  11359. i++
  11360. }
  11361. sort.Sort(intSlice(v2))
  11362. for _, k2 := range v2 {
  11363. if esep {
  11364. ee.WriteMapElemKey()
  11365. }
  11366. ee.EncodeInt(int64(int32(k2)))
  11367. if esep {
  11368. ee.WriteMapElemValue()
  11369. }
  11370. e.encode(v[int32(k2)])
  11371. }
  11372. } else {
  11373. for k2, v2 := range v {
  11374. if esep {
  11375. ee.WriteMapElemKey()
  11376. }
  11377. ee.EncodeInt(int64(k2))
  11378. if esep {
  11379. ee.WriteMapElemValue()
  11380. }
  11381. e.encode(v2)
  11382. }
  11383. }
  11384. ee.WriteMapEnd()
  11385. }
  11386. func (e *Encoder) fastpathEncMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  11387. fastpathTV.EncMapInt32IntV(rv2i(rv).(map[int32]int), e)
  11388. }
  11389. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, e *Encoder) {
  11390. if v == nil {
  11391. e.e.EncodeNil()
  11392. return
  11393. }
  11394. ee, esep := e.e, e.hh.hasElemSeparators()
  11395. ee.WriteMapStart(len(v))
  11396. if e.h.Canonical {
  11397. v2 := make([]int64, len(v))
  11398. var i int
  11399. for k, _ := range v {
  11400. v2[i] = int64(k)
  11401. i++
  11402. }
  11403. sort.Sort(intSlice(v2))
  11404. for _, k2 := range v2 {
  11405. if esep {
  11406. ee.WriteMapElemKey()
  11407. }
  11408. ee.EncodeInt(int64(int32(k2)))
  11409. if esep {
  11410. ee.WriteMapElemValue()
  11411. }
  11412. ee.EncodeInt(int64(v[int32(k2)]))
  11413. }
  11414. } else {
  11415. for k2, v2 := range v {
  11416. if esep {
  11417. ee.WriteMapElemKey()
  11418. }
  11419. ee.EncodeInt(int64(k2))
  11420. if esep {
  11421. ee.WriteMapElemValue()
  11422. }
  11423. ee.EncodeInt(int64(v2))
  11424. }
  11425. }
  11426. ee.WriteMapEnd()
  11427. }
  11428. func (e *Encoder) fastpathEncMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  11429. fastpathTV.EncMapInt32Int8V(rv2i(rv).(map[int32]int8), e)
  11430. }
  11431. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, e *Encoder) {
  11432. if v == nil {
  11433. e.e.EncodeNil()
  11434. return
  11435. }
  11436. ee, esep := e.e, e.hh.hasElemSeparators()
  11437. ee.WriteMapStart(len(v))
  11438. if e.h.Canonical {
  11439. v2 := make([]int64, len(v))
  11440. var i int
  11441. for k, _ := range v {
  11442. v2[i] = int64(k)
  11443. i++
  11444. }
  11445. sort.Sort(intSlice(v2))
  11446. for _, k2 := range v2 {
  11447. if esep {
  11448. ee.WriteMapElemKey()
  11449. }
  11450. ee.EncodeInt(int64(int32(k2)))
  11451. if esep {
  11452. ee.WriteMapElemValue()
  11453. }
  11454. ee.EncodeInt(int64(v[int32(k2)]))
  11455. }
  11456. } else {
  11457. for k2, v2 := range v {
  11458. if esep {
  11459. ee.WriteMapElemKey()
  11460. }
  11461. ee.EncodeInt(int64(k2))
  11462. if esep {
  11463. ee.WriteMapElemValue()
  11464. }
  11465. ee.EncodeInt(int64(v2))
  11466. }
  11467. }
  11468. ee.WriteMapEnd()
  11469. }
  11470. func (e *Encoder) fastpathEncMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  11471. fastpathTV.EncMapInt32Int16V(rv2i(rv).(map[int32]int16), e)
  11472. }
  11473. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, e *Encoder) {
  11474. if v == nil {
  11475. e.e.EncodeNil()
  11476. return
  11477. }
  11478. ee, esep := e.e, e.hh.hasElemSeparators()
  11479. ee.WriteMapStart(len(v))
  11480. if e.h.Canonical {
  11481. v2 := make([]int64, len(v))
  11482. var i int
  11483. for k, _ := range v {
  11484. v2[i] = int64(k)
  11485. i++
  11486. }
  11487. sort.Sort(intSlice(v2))
  11488. for _, k2 := range v2 {
  11489. if esep {
  11490. ee.WriteMapElemKey()
  11491. }
  11492. ee.EncodeInt(int64(int32(k2)))
  11493. if esep {
  11494. ee.WriteMapElemValue()
  11495. }
  11496. ee.EncodeInt(int64(v[int32(k2)]))
  11497. }
  11498. } else {
  11499. for k2, v2 := range v {
  11500. if esep {
  11501. ee.WriteMapElemKey()
  11502. }
  11503. ee.EncodeInt(int64(k2))
  11504. if esep {
  11505. ee.WriteMapElemValue()
  11506. }
  11507. ee.EncodeInt(int64(v2))
  11508. }
  11509. }
  11510. ee.WriteMapEnd()
  11511. }
  11512. func (e *Encoder) fastpathEncMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  11513. fastpathTV.EncMapInt32Int32V(rv2i(rv).(map[int32]int32), e)
  11514. }
  11515. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, e *Encoder) {
  11516. if v == nil {
  11517. e.e.EncodeNil()
  11518. return
  11519. }
  11520. ee, esep := e.e, e.hh.hasElemSeparators()
  11521. ee.WriteMapStart(len(v))
  11522. if e.h.Canonical {
  11523. v2 := make([]int64, len(v))
  11524. var i int
  11525. for k, _ := range v {
  11526. v2[i] = int64(k)
  11527. i++
  11528. }
  11529. sort.Sort(intSlice(v2))
  11530. for _, k2 := range v2 {
  11531. if esep {
  11532. ee.WriteMapElemKey()
  11533. }
  11534. ee.EncodeInt(int64(int32(k2)))
  11535. if esep {
  11536. ee.WriteMapElemValue()
  11537. }
  11538. ee.EncodeInt(int64(v[int32(k2)]))
  11539. }
  11540. } else {
  11541. for k2, v2 := range v {
  11542. if esep {
  11543. ee.WriteMapElemKey()
  11544. }
  11545. ee.EncodeInt(int64(k2))
  11546. if esep {
  11547. ee.WriteMapElemValue()
  11548. }
  11549. ee.EncodeInt(int64(v2))
  11550. }
  11551. }
  11552. ee.WriteMapEnd()
  11553. }
  11554. func (e *Encoder) fastpathEncMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  11555. fastpathTV.EncMapInt32Int64V(rv2i(rv).(map[int32]int64), e)
  11556. }
  11557. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, e *Encoder) {
  11558. if v == nil {
  11559. e.e.EncodeNil()
  11560. return
  11561. }
  11562. ee, esep := e.e, e.hh.hasElemSeparators()
  11563. ee.WriteMapStart(len(v))
  11564. if e.h.Canonical {
  11565. v2 := make([]int64, len(v))
  11566. var i int
  11567. for k, _ := range v {
  11568. v2[i] = int64(k)
  11569. i++
  11570. }
  11571. sort.Sort(intSlice(v2))
  11572. for _, k2 := range v2 {
  11573. if esep {
  11574. ee.WriteMapElemKey()
  11575. }
  11576. ee.EncodeInt(int64(int32(k2)))
  11577. if esep {
  11578. ee.WriteMapElemValue()
  11579. }
  11580. ee.EncodeInt(int64(v[int32(k2)]))
  11581. }
  11582. } else {
  11583. for k2, v2 := range v {
  11584. if esep {
  11585. ee.WriteMapElemKey()
  11586. }
  11587. ee.EncodeInt(int64(k2))
  11588. if esep {
  11589. ee.WriteMapElemValue()
  11590. }
  11591. ee.EncodeInt(int64(v2))
  11592. }
  11593. }
  11594. ee.WriteMapEnd()
  11595. }
  11596. func (e *Encoder) fastpathEncMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  11597. fastpathTV.EncMapInt32Float32V(rv2i(rv).(map[int32]float32), e)
  11598. }
  11599. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, e *Encoder) {
  11600. if v == nil {
  11601. e.e.EncodeNil()
  11602. return
  11603. }
  11604. ee, esep := e.e, e.hh.hasElemSeparators()
  11605. ee.WriteMapStart(len(v))
  11606. if e.h.Canonical {
  11607. v2 := make([]int64, len(v))
  11608. var i int
  11609. for k, _ := range v {
  11610. v2[i] = int64(k)
  11611. i++
  11612. }
  11613. sort.Sort(intSlice(v2))
  11614. for _, k2 := range v2 {
  11615. if esep {
  11616. ee.WriteMapElemKey()
  11617. }
  11618. ee.EncodeInt(int64(int32(k2)))
  11619. if esep {
  11620. ee.WriteMapElemValue()
  11621. }
  11622. ee.EncodeFloat32(v[int32(k2)])
  11623. }
  11624. } else {
  11625. for k2, v2 := range v {
  11626. if esep {
  11627. ee.WriteMapElemKey()
  11628. }
  11629. ee.EncodeInt(int64(k2))
  11630. if esep {
  11631. ee.WriteMapElemValue()
  11632. }
  11633. ee.EncodeFloat32(v2)
  11634. }
  11635. }
  11636. ee.WriteMapEnd()
  11637. }
  11638. func (e *Encoder) fastpathEncMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  11639. fastpathTV.EncMapInt32Float64V(rv2i(rv).(map[int32]float64), e)
  11640. }
  11641. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, e *Encoder) {
  11642. if v == nil {
  11643. e.e.EncodeNil()
  11644. return
  11645. }
  11646. ee, esep := e.e, e.hh.hasElemSeparators()
  11647. ee.WriteMapStart(len(v))
  11648. if e.h.Canonical {
  11649. v2 := make([]int64, len(v))
  11650. var i int
  11651. for k, _ := range v {
  11652. v2[i] = int64(k)
  11653. i++
  11654. }
  11655. sort.Sort(intSlice(v2))
  11656. for _, k2 := range v2 {
  11657. if esep {
  11658. ee.WriteMapElemKey()
  11659. }
  11660. ee.EncodeInt(int64(int32(k2)))
  11661. if esep {
  11662. ee.WriteMapElemValue()
  11663. }
  11664. ee.EncodeFloat64(v[int32(k2)])
  11665. }
  11666. } else {
  11667. for k2, v2 := range v {
  11668. if esep {
  11669. ee.WriteMapElemKey()
  11670. }
  11671. ee.EncodeInt(int64(k2))
  11672. if esep {
  11673. ee.WriteMapElemValue()
  11674. }
  11675. ee.EncodeFloat64(v2)
  11676. }
  11677. }
  11678. ee.WriteMapEnd()
  11679. }
  11680. func (e *Encoder) fastpathEncMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  11681. fastpathTV.EncMapInt32BoolV(rv2i(rv).(map[int32]bool), e)
  11682. }
  11683. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, e *Encoder) {
  11684. if v == nil {
  11685. e.e.EncodeNil()
  11686. return
  11687. }
  11688. ee, esep := e.e, e.hh.hasElemSeparators()
  11689. ee.WriteMapStart(len(v))
  11690. if e.h.Canonical {
  11691. v2 := make([]int64, len(v))
  11692. var i int
  11693. for k, _ := range v {
  11694. v2[i] = int64(k)
  11695. i++
  11696. }
  11697. sort.Sort(intSlice(v2))
  11698. for _, k2 := range v2 {
  11699. if esep {
  11700. ee.WriteMapElemKey()
  11701. }
  11702. ee.EncodeInt(int64(int32(k2)))
  11703. if esep {
  11704. ee.WriteMapElemValue()
  11705. }
  11706. ee.EncodeBool(v[int32(k2)])
  11707. }
  11708. } else {
  11709. for k2, v2 := range v {
  11710. if esep {
  11711. ee.WriteMapElemKey()
  11712. }
  11713. ee.EncodeInt(int64(k2))
  11714. if esep {
  11715. ee.WriteMapElemValue()
  11716. }
  11717. ee.EncodeBool(v2)
  11718. }
  11719. }
  11720. ee.WriteMapEnd()
  11721. }
  11722. func (e *Encoder) fastpathEncMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  11723. fastpathTV.EncMapInt64IntfV(rv2i(rv).(map[int64]interface{}), e)
  11724. }
  11725. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, e *Encoder) {
  11726. if v == nil {
  11727. e.e.EncodeNil()
  11728. return
  11729. }
  11730. ee, esep := e.e, e.hh.hasElemSeparators()
  11731. ee.WriteMapStart(len(v))
  11732. if e.h.Canonical {
  11733. v2 := make([]int64, len(v))
  11734. var i int
  11735. for k, _ := range v {
  11736. v2[i] = int64(k)
  11737. i++
  11738. }
  11739. sort.Sort(intSlice(v2))
  11740. for _, k2 := range v2 {
  11741. if esep {
  11742. ee.WriteMapElemKey()
  11743. }
  11744. ee.EncodeInt(int64(int64(k2)))
  11745. if esep {
  11746. ee.WriteMapElemValue()
  11747. }
  11748. e.encode(v[int64(k2)])
  11749. }
  11750. } else {
  11751. for k2, v2 := range v {
  11752. if esep {
  11753. ee.WriteMapElemKey()
  11754. }
  11755. ee.EncodeInt(int64(k2))
  11756. if esep {
  11757. ee.WriteMapElemValue()
  11758. }
  11759. e.encode(v2)
  11760. }
  11761. }
  11762. ee.WriteMapEnd()
  11763. }
  11764. func (e *Encoder) fastpathEncMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  11765. fastpathTV.EncMapInt64StringV(rv2i(rv).(map[int64]string), e)
  11766. }
  11767. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, e *Encoder) {
  11768. if v == nil {
  11769. e.e.EncodeNil()
  11770. return
  11771. }
  11772. ee, esep := e.e, e.hh.hasElemSeparators()
  11773. ee.WriteMapStart(len(v))
  11774. if e.h.Canonical {
  11775. v2 := make([]int64, len(v))
  11776. var i int
  11777. for k, _ := range v {
  11778. v2[i] = int64(k)
  11779. i++
  11780. }
  11781. sort.Sort(intSlice(v2))
  11782. for _, k2 := range v2 {
  11783. if esep {
  11784. ee.WriteMapElemKey()
  11785. }
  11786. ee.EncodeInt(int64(int64(k2)))
  11787. if esep {
  11788. ee.WriteMapElemValue()
  11789. }
  11790. ee.EncodeString(c_UTF8, v[int64(k2)])
  11791. }
  11792. } else {
  11793. for k2, v2 := range v {
  11794. if esep {
  11795. ee.WriteMapElemKey()
  11796. }
  11797. ee.EncodeInt(int64(k2))
  11798. if esep {
  11799. ee.WriteMapElemValue()
  11800. }
  11801. ee.EncodeString(c_UTF8, v2)
  11802. }
  11803. }
  11804. ee.WriteMapEnd()
  11805. }
  11806. func (e *Encoder) fastpathEncMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  11807. fastpathTV.EncMapInt64UintV(rv2i(rv).(map[int64]uint), e)
  11808. }
  11809. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, e *Encoder) {
  11810. if v == nil {
  11811. e.e.EncodeNil()
  11812. return
  11813. }
  11814. ee, esep := e.e, e.hh.hasElemSeparators()
  11815. ee.WriteMapStart(len(v))
  11816. if e.h.Canonical {
  11817. v2 := make([]int64, len(v))
  11818. var i int
  11819. for k, _ := range v {
  11820. v2[i] = int64(k)
  11821. i++
  11822. }
  11823. sort.Sort(intSlice(v2))
  11824. for _, k2 := range v2 {
  11825. if esep {
  11826. ee.WriteMapElemKey()
  11827. }
  11828. ee.EncodeInt(int64(int64(k2)))
  11829. if esep {
  11830. ee.WriteMapElemValue()
  11831. }
  11832. ee.EncodeUint(uint64(v[int64(k2)]))
  11833. }
  11834. } else {
  11835. for k2, v2 := range v {
  11836. if esep {
  11837. ee.WriteMapElemKey()
  11838. }
  11839. ee.EncodeInt(int64(k2))
  11840. if esep {
  11841. ee.WriteMapElemValue()
  11842. }
  11843. ee.EncodeUint(uint64(v2))
  11844. }
  11845. }
  11846. ee.WriteMapEnd()
  11847. }
  11848. func (e *Encoder) fastpathEncMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  11849. fastpathTV.EncMapInt64Uint8V(rv2i(rv).(map[int64]uint8), e)
  11850. }
  11851. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, e *Encoder) {
  11852. if v == nil {
  11853. e.e.EncodeNil()
  11854. return
  11855. }
  11856. ee, esep := e.e, e.hh.hasElemSeparators()
  11857. ee.WriteMapStart(len(v))
  11858. if e.h.Canonical {
  11859. v2 := make([]int64, len(v))
  11860. var i int
  11861. for k, _ := range v {
  11862. v2[i] = int64(k)
  11863. i++
  11864. }
  11865. sort.Sort(intSlice(v2))
  11866. for _, k2 := range v2 {
  11867. if esep {
  11868. ee.WriteMapElemKey()
  11869. }
  11870. ee.EncodeInt(int64(int64(k2)))
  11871. if esep {
  11872. ee.WriteMapElemValue()
  11873. }
  11874. ee.EncodeUint(uint64(v[int64(k2)]))
  11875. }
  11876. } else {
  11877. for k2, v2 := range v {
  11878. if esep {
  11879. ee.WriteMapElemKey()
  11880. }
  11881. ee.EncodeInt(int64(k2))
  11882. if esep {
  11883. ee.WriteMapElemValue()
  11884. }
  11885. ee.EncodeUint(uint64(v2))
  11886. }
  11887. }
  11888. ee.WriteMapEnd()
  11889. }
  11890. func (e *Encoder) fastpathEncMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  11891. fastpathTV.EncMapInt64Uint16V(rv2i(rv).(map[int64]uint16), e)
  11892. }
  11893. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, e *Encoder) {
  11894. if v == nil {
  11895. e.e.EncodeNil()
  11896. return
  11897. }
  11898. ee, esep := e.e, e.hh.hasElemSeparators()
  11899. ee.WriteMapStart(len(v))
  11900. if e.h.Canonical {
  11901. v2 := make([]int64, len(v))
  11902. var i int
  11903. for k, _ := range v {
  11904. v2[i] = int64(k)
  11905. i++
  11906. }
  11907. sort.Sort(intSlice(v2))
  11908. for _, k2 := range v2 {
  11909. if esep {
  11910. ee.WriteMapElemKey()
  11911. }
  11912. ee.EncodeInt(int64(int64(k2)))
  11913. if esep {
  11914. ee.WriteMapElemValue()
  11915. }
  11916. ee.EncodeUint(uint64(v[int64(k2)]))
  11917. }
  11918. } else {
  11919. for k2, v2 := range v {
  11920. if esep {
  11921. ee.WriteMapElemKey()
  11922. }
  11923. ee.EncodeInt(int64(k2))
  11924. if esep {
  11925. ee.WriteMapElemValue()
  11926. }
  11927. ee.EncodeUint(uint64(v2))
  11928. }
  11929. }
  11930. ee.WriteMapEnd()
  11931. }
  11932. func (e *Encoder) fastpathEncMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  11933. fastpathTV.EncMapInt64Uint32V(rv2i(rv).(map[int64]uint32), e)
  11934. }
  11935. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, e *Encoder) {
  11936. if v == nil {
  11937. e.e.EncodeNil()
  11938. return
  11939. }
  11940. ee, esep := e.e, e.hh.hasElemSeparators()
  11941. ee.WriteMapStart(len(v))
  11942. if e.h.Canonical {
  11943. v2 := make([]int64, len(v))
  11944. var i int
  11945. for k, _ := range v {
  11946. v2[i] = int64(k)
  11947. i++
  11948. }
  11949. sort.Sort(intSlice(v2))
  11950. for _, k2 := range v2 {
  11951. if esep {
  11952. ee.WriteMapElemKey()
  11953. }
  11954. ee.EncodeInt(int64(int64(k2)))
  11955. if esep {
  11956. ee.WriteMapElemValue()
  11957. }
  11958. ee.EncodeUint(uint64(v[int64(k2)]))
  11959. }
  11960. } else {
  11961. for k2, v2 := range v {
  11962. if esep {
  11963. ee.WriteMapElemKey()
  11964. }
  11965. ee.EncodeInt(int64(k2))
  11966. if esep {
  11967. ee.WriteMapElemValue()
  11968. }
  11969. ee.EncodeUint(uint64(v2))
  11970. }
  11971. }
  11972. ee.WriteMapEnd()
  11973. }
  11974. func (e *Encoder) fastpathEncMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  11975. fastpathTV.EncMapInt64Uint64V(rv2i(rv).(map[int64]uint64), e)
  11976. }
  11977. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, e *Encoder) {
  11978. if v == nil {
  11979. e.e.EncodeNil()
  11980. return
  11981. }
  11982. ee, esep := e.e, e.hh.hasElemSeparators()
  11983. ee.WriteMapStart(len(v))
  11984. if e.h.Canonical {
  11985. v2 := make([]int64, len(v))
  11986. var i int
  11987. for k, _ := range v {
  11988. v2[i] = int64(k)
  11989. i++
  11990. }
  11991. sort.Sort(intSlice(v2))
  11992. for _, k2 := range v2 {
  11993. if esep {
  11994. ee.WriteMapElemKey()
  11995. }
  11996. ee.EncodeInt(int64(int64(k2)))
  11997. if esep {
  11998. ee.WriteMapElemValue()
  11999. }
  12000. ee.EncodeUint(uint64(v[int64(k2)]))
  12001. }
  12002. } else {
  12003. for k2, v2 := range v {
  12004. if esep {
  12005. ee.WriteMapElemKey()
  12006. }
  12007. ee.EncodeInt(int64(k2))
  12008. if esep {
  12009. ee.WriteMapElemValue()
  12010. }
  12011. ee.EncodeUint(uint64(v2))
  12012. }
  12013. }
  12014. ee.WriteMapEnd()
  12015. }
  12016. func (e *Encoder) fastpathEncMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  12017. fastpathTV.EncMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), e)
  12018. }
  12019. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, e *Encoder) {
  12020. if v == nil {
  12021. e.e.EncodeNil()
  12022. return
  12023. }
  12024. ee, esep := e.e, e.hh.hasElemSeparators()
  12025. ee.WriteMapStart(len(v))
  12026. if e.h.Canonical {
  12027. v2 := make([]int64, len(v))
  12028. var i int
  12029. for k, _ := range v {
  12030. v2[i] = int64(k)
  12031. i++
  12032. }
  12033. sort.Sort(intSlice(v2))
  12034. for _, k2 := range v2 {
  12035. if esep {
  12036. ee.WriteMapElemKey()
  12037. }
  12038. ee.EncodeInt(int64(int64(k2)))
  12039. if esep {
  12040. ee.WriteMapElemValue()
  12041. }
  12042. e.encode(v[int64(k2)])
  12043. }
  12044. } else {
  12045. for k2, v2 := range v {
  12046. if esep {
  12047. ee.WriteMapElemKey()
  12048. }
  12049. ee.EncodeInt(int64(k2))
  12050. if esep {
  12051. ee.WriteMapElemValue()
  12052. }
  12053. e.encode(v2)
  12054. }
  12055. }
  12056. ee.WriteMapEnd()
  12057. }
  12058. func (e *Encoder) fastpathEncMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  12059. fastpathTV.EncMapInt64IntV(rv2i(rv).(map[int64]int), e)
  12060. }
  12061. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, e *Encoder) {
  12062. if v == nil {
  12063. e.e.EncodeNil()
  12064. return
  12065. }
  12066. ee, esep := e.e, e.hh.hasElemSeparators()
  12067. ee.WriteMapStart(len(v))
  12068. if e.h.Canonical {
  12069. v2 := make([]int64, len(v))
  12070. var i int
  12071. for k, _ := range v {
  12072. v2[i] = int64(k)
  12073. i++
  12074. }
  12075. sort.Sort(intSlice(v2))
  12076. for _, k2 := range v2 {
  12077. if esep {
  12078. ee.WriteMapElemKey()
  12079. }
  12080. ee.EncodeInt(int64(int64(k2)))
  12081. if esep {
  12082. ee.WriteMapElemValue()
  12083. }
  12084. ee.EncodeInt(int64(v[int64(k2)]))
  12085. }
  12086. } else {
  12087. for k2, v2 := range v {
  12088. if esep {
  12089. ee.WriteMapElemKey()
  12090. }
  12091. ee.EncodeInt(int64(k2))
  12092. if esep {
  12093. ee.WriteMapElemValue()
  12094. }
  12095. ee.EncodeInt(int64(v2))
  12096. }
  12097. }
  12098. ee.WriteMapEnd()
  12099. }
  12100. func (e *Encoder) fastpathEncMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  12101. fastpathTV.EncMapInt64Int8V(rv2i(rv).(map[int64]int8), e)
  12102. }
  12103. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, e *Encoder) {
  12104. if v == nil {
  12105. e.e.EncodeNil()
  12106. return
  12107. }
  12108. ee, esep := e.e, e.hh.hasElemSeparators()
  12109. ee.WriteMapStart(len(v))
  12110. if e.h.Canonical {
  12111. v2 := make([]int64, len(v))
  12112. var i int
  12113. for k, _ := range v {
  12114. v2[i] = int64(k)
  12115. i++
  12116. }
  12117. sort.Sort(intSlice(v2))
  12118. for _, k2 := range v2 {
  12119. if esep {
  12120. ee.WriteMapElemKey()
  12121. }
  12122. ee.EncodeInt(int64(int64(k2)))
  12123. if esep {
  12124. ee.WriteMapElemValue()
  12125. }
  12126. ee.EncodeInt(int64(v[int64(k2)]))
  12127. }
  12128. } else {
  12129. for k2, v2 := range v {
  12130. if esep {
  12131. ee.WriteMapElemKey()
  12132. }
  12133. ee.EncodeInt(int64(k2))
  12134. if esep {
  12135. ee.WriteMapElemValue()
  12136. }
  12137. ee.EncodeInt(int64(v2))
  12138. }
  12139. }
  12140. ee.WriteMapEnd()
  12141. }
  12142. func (e *Encoder) fastpathEncMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  12143. fastpathTV.EncMapInt64Int16V(rv2i(rv).(map[int64]int16), e)
  12144. }
  12145. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, e *Encoder) {
  12146. if v == nil {
  12147. e.e.EncodeNil()
  12148. return
  12149. }
  12150. ee, esep := e.e, e.hh.hasElemSeparators()
  12151. ee.WriteMapStart(len(v))
  12152. if e.h.Canonical {
  12153. v2 := make([]int64, len(v))
  12154. var i int
  12155. for k, _ := range v {
  12156. v2[i] = int64(k)
  12157. i++
  12158. }
  12159. sort.Sort(intSlice(v2))
  12160. for _, k2 := range v2 {
  12161. if esep {
  12162. ee.WriteMapElemKey()
  12163. }
  12164. ee.EncodeInt(int64(int64(k2)))
  12165. if esep {
  12166. ee.WriteMapElemValue()
  12167. }
  12168. ee.EncodeInt(int64(v[int64(k2)]))
  12169. }
  12170. } else {
  12171. for k2, v2 := range v {
  12172. if esep {
  12173. ee.WriteMapElemKey()
  12174. }
  12175. ee.EncodeInt(int64(k2))
  12176. if esep {
  12177. ee.WriteMapElemValue()
  12178. }
  12179. ee.EncodeInt(int64(v2))
  12180. }
  12181. }
  12182. ee.WriteMapEnd()
  12183. }
  12184. func (e *Encoder) fastpathEncMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  12185. fastpathTV.EncMapInt64Int32V(rv2i(rv).(map[int64]int32), e)
  12186. }
  12187. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, e *Encoder) {
  12188. if v == nil {
  12189. e.e.EncodeNil()
  12190. return
  12191. }
  12192. ee, esep := e.e, e.hh.hasElemSeparators()
  12193. ee.WriteMapStart(len(v))
  12194. if e.h.Canonical {
  12195. v2 := make([]int64, len(v))
  12196. var i int
  12197. for k, _ := range v {
  12198. v2[i] = int64(k)
  12199. i++
  12200. }
  12201. sort.Sort(intSlice(v2))
  12202. for _, k2 := range v2 {
  12203. if esep {
  12204. ee.WriteMapElemKey()
  12205. }
  12206. ee.EncodeInt(int64(int64(k2)))
  12207. if esep {
  12208. ee.WriteMapElemValue()
  12209. }
  12210. ee.EncodeInt(int64(v[int64(k2)]))
  12211. }
  12212. } else {
  12213. for k2, v2 := range v {
  12214. if esep {
  12215. ee.WriteMapElemKey()
  12216. }
  12217. ee.EncodeInt(int64(k2))
  12218. if esep {
  12219. ee.WriteMapElemValue()
  12220. }
  12221. ee.EncodeInt(int64(v2))
  12222. }
  12223. }
  12224. ee.WriteMapEnd()
  12225. }
  12226. func (e *Encoder) fastpathEncMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  12227. fastpathTV.EncMapInt64Int64V(rv2i(rv).(map[int64]int64), e)
  12228. }
  12229. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, e *Encoder) {
  12230. if v == nil {
  12231. e.e.EncodeNil()
  12232. return
  12233. }
  12234. ee, esep := e.e, e.hh.hasElemSeparators()
  12235. ee.WriteMapStart(len(v))
  12236. if e.h.Canonical {
  12237. v2 := make([]int64, len(v))
  12238. var i int
  12239. for k, _ := range v {
  12240. v2[i] = int64(k)
  12241. i++
  12242. }
  12243. sort.Sort(intSlice(v2))
  12244. for _, k2 := range v2 {
  12245. if esep {
  12246. ee.WriteMapElemKey()
  12247. }
  12248. ee.EncodeInt(int64(int64(k2)))
  12249. if esep {
  12250. ee.WriteMapElemValue()
  12251. }
  12252. ee.EncodeInt(int64(v[int64(k2)]))
  12253. }
  12254. } else {
  12255. for k2, v2 := range v {
  12256. if esep {
  12257. ee.WriteMapElemKey()
  12258. }
  12259. ee.EncodeInt(int64(k2))
  12260. if esep {
  12261. ee.WriteMapElemValue()
  12262. }
  12263. ee.EncodeInt(int64(v2))
  12264. }
  12265. }
  12266. ee.WriteMapEnd()
  12267. }
  12268. func (e *Encoder) fastpathEncMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  12269. fastpathTV.EncMapInt64Float32V(rv2i(rv).(map[int64]float32), e)
  12270. }
  12271. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, e *Encoder) {
  12272. if v == nil {
  12273. e.e.EncodeNil()
  12274. return
  12275. }
  12276. ee, esep := e.e, e.hh.hasElemSeparators()
  12277. ee.WriteMapStart(len(v))
  12278. if e.h.Canonical {
  12279. v2 := make([]int64, len(v))
  12280. var i int
  12281. for k, _ := range v {
  12282. v2[i] = int64(k)
  12283. i++
  12284. }
  12285. sort.Sort(intSlice(v2))
  12286. for _, k2 := range v2 {
  12287. if esep {
  12288. ee.WriteMapElemKey()
  12289. }
  12290. ee.EncodeInt(int64(int64(k2)))
  12291. if esep {
  12292. ee.WriteMapElemValue()
  12293. }
  12294. ee.EncodeFloat32(v[int64(k2)])
  12295. }
  12296. } else {
  12297. for k2, v2 := range v {
  12298. if esep {
  12299. ee.WriteMapElemKey()
  12300. }
  12301. ee.EncodeInt(int64(k2))
  12302. if esep {
  12303. ee.WriteMapElemValue()
  12304. }
  12305. ee.EncodeFloat32(v2)
  12306. }
  12307. }
  12308. ee.WriteMapEnd()
  12309. }
  12310. func (e *Encoder) fastpathEncMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  12311. fastpathTV.EncMapInt64Float64V(rv2i(rv).(map[int64]float64), e)
  12312. }
  12313. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, e *Encoder) {
  12314. if v == nil {
  12315. e.e.EncodeNil()
  12316. return
  12317. }
  12318. ee, esep := e.e, e.hh.hasElemSeparators()
  12319. ee.WriteMapStart(len(v))
  12320. if e.h.Canonical {
  12321. v2 := make([]int64, len(v))
  12322. var i int
  12323. for k, _ := range v {
  12324. v2[i] = int64(k)
  12325. i++
  12326. }
  12327. sort.Sort(intSlice(v2))
  12328. for _, k2 := range v2 {
  12329. if esep {
  12330. ee.WriteMapElemKey()
  12331. }
  12332. ee.EncodeInt(int64(int64(k2)))
  12333. if esep {
  12334. ee.WriteMapElemValue()
  12335. }
  12336. ee.EncodeFloat64(v[int64(k2)])
  12337. }
  12338. } else {
  12339. for k2, v2 := range v {
  12340. if esep {
  12341. ee.WriteMapElemKey()
  12342. }
  12343. ee.EncodeInt(int64(k2))
  12344. if esep {
  12345. ee.WriteMapElemValue()
  12346. }
  12347. ee.EncodeFloat64(v2)
  12348. }
  12349. }
  12350. ee.WriteMapEnd()
  12351. }
  12352. func (e *Encoder) fastpathEncMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  12353. fastpathTV.EncMapInt64BoolV(rv2i(rv).(map[int64]bool), e)
  12354. }
  12355. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, e *Encoder) {
  12356. if v == nil {
  12357. e.e.EncodeNil()
  12358. return
  12359. }
  12360. ee, esep := e.e, e.hh.hasElemSeparators()
  12361. ee.WriteMapStart(len(v))
  12362. if e.h.Canonical {
  12363. v2 := make([]int64, len(v))
  12364. var i int
  12365. for k, _ := range v {
  12366. v2[i] = int64(k)
  12367. i++
  12368. }
  12369. sort.Sort(intSlice(v2))
  12370. for _, k2 := range v2 {
  12371. if esep {
  12372. ee.WriteMapElemKey()
  12373. }
  12374. ee.EncodeInt(int64(int64(k2)))
  12375. if esep {
  12376. ee.WriteMapElemValue()
  12377. }
  12378. ee.EncodeBool(v[int64(k2)])
  12379. }
  12380. } else {
  12381. for k2, v2 := range v {
  12382. if esep {
  12383. ee.WriteMapElemKey()
  12384. }
  12385. ee.EncodeInt(int64(k2))
  12386. if esep {
  12387. ee.WriteMapElemValue()
  12388. }
  12389. ee.EncodeBool(v2)
  12390. }
  12391. }
  12392. ee.WriteMapEnd()
  12393. }
  12394. func (e *Encoder) fastpathEncMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  12395. fastpathTV.EncMapBoolIntfV(rv2i(rv).(map[bool]interface{}), e)
  12396. }
  12397. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, e *Encoder) {
  12398. if v == nil {
  12399. e.e.EncodeNil()
  12400. return
  12401. }
  12402. ee, esep := e.e, e.hh.hasElemSeparators()
  12403. ee.WriteMapStart(len(v))
  12404. if e.h.Canonical {
  12405. v2 := make([]bool, len(v))
  12406. var i int
  12407. for k, _ := range v {
  12408. v2[i] = bool(k)
  12409. i++
  12410. }
  12411. sort.Sort(boolSlice(v2))
  12412. for _, k2 := range v2 {
  12413. if esep {
  12414. ee.WriteMapElemKey()
  12415. }
  12416. ee.EncodeBool(bool(k2))
  12417. if esep {
  12418. ee.WriteMapElemValue()
  12419. }
  12420. e.encode(v[bool(k2)])
  12421. }
  12422. } else {
  12423. for k2, v2 := range v {
  12424. if esep {
  12425. ee.WriteMapElemKey()
  12426. }
  12427. ee.EncodeBool(k2)
  12428. if esep {
  12429. ee.WriteMapElemValue()
  12430. }
  12431. e.encode(v2)
  12432. }
  12433. }
  12434. ee.WriteMapEnd()
  12435. }
  12436. func (e *Encoder) fastpathEncMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  12437. fastpathTV.EncMapBoolStringV(rv2i(rv).(map[bool]string), e)
  12438. }
  12439. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, e *Encoder) {
  12440. if v == nil {
  12441. e.e.EncodeNil()
  12442. return
  12443. }
  12444. ee, esep := e.e, e.hh.hasElemSeparators()
  12445. ee.WriteMapStart(len(v))
  12446. if e.h.Canonical {
  12447. v2 := make([]bool, len(v))
  12448. var i int
  12449. for k, _ := range v {
  12450. v2[i] = bool(k)
  12451. i++
  12452. }
  12453. sort.Sort(boolSlice(v2))
  12454. for _, k2 := range v2 {
  12455. if esep {
  12456. ee.WriteMapElemKey()
  12457. }
  12458. ee.EncodeBool(bool(k2))
  12459. if esep {
  12460. ee.WriteMapElemValue()
  12461. }
  12462. ee.EncodeString(c_UTF8, v[bool(k2)])
  12463. }
  12464. } else {
  12465. for k2, v2 := range v {
  12466. if esep {
  12467. ee.WriteMapElemKey()
  12468. }
  12469. ee.EncodeBool(k2)
  12470. if esep {
  12471. ee.WriteMapElemValue()
  12472. }
  12473. ee.EncodeString(c_UTF8, v2)
  12474. }
  12475. }
  12476. ee.WriteMapEnd()
  12477. }
  12478. func (e *Encoder) fastpathEncMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  12479. fastpathTV.EncMapBoolUintV(rv2i(rv).(map[bool]uint), e)
  12480. }
  12481. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, e *Encoder) {
  12482. if v == nil {
  12483. e.e.EncodeNil()
  12484. return
  12485. }
  12486. ee, esep := e.e, e.hh.hasElemSeparators()
  12487. ee.WriteMapStart(len(v))
  12488. if e.h.Canonical {
  12489. v2 := make([]bool, len(v))
  12490. var i int
  12491. for k, _ := range v {
  12492. v2[i] = bool(k)
  12493. i++
  12494. }
  12495. sort.Sort(boolSlice(v2))
  12496. for _, k2 := range v2 {
  12497. if esep {
  12498. ee.WriteMapElemKey()
  12499. }
  12500. ee.EncodeBool(bool(k2))
  12501. if esep {
  12502. ee.WriteMapElemValue()
  12503. }
  12504. ee.EncodeUint(uint64(v[bool(k2)]))
  12505. }
  12506. } else {
  12507. for k2, v2 := range v {
  12508. if esep {
  12509. ee.WriteMapElemKey()
  12510. }
  12511. ee.EncodeBool(k2)
  12512. if esep {
  12513. ee.WriteMapElemValue()
  12514. }
  12515. ee.EncodeUint(uint64(v2))
  12516. }
  12517. }
  12518. ee.WriteMapEnd()
  12519. }
  12520. func (e *Encoder) fastpathEncMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  12521. fastpathTV.EncMapBoolUint8V(rv2i(rv).(map[bool]uint8), e)
  12522. }
  12523. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, e *Encoder) {
  12524. if v == nil {
  12525. e.e.EncodeNil()
  12526. return
  12527. }
  12528. ee, esep := e.e, e.hh.hasElemSeparators()
  12529. ee.WriteMapStart(len(v))
  12530. if e.h.Canonical {
  12531. v2 := make([]bool, len(v))
  12532. var i int
  12533. for k, _ := range v {
  12534. v2[i] = bool(k)
  12535. i++
  12536. }
  12537. sort.Sort(boolSlice(v2))
  12538. for _, k2 := range v2 {
  12539. if esep {
  12540. ee.WriteMapElemKey()
  12541. }
  12542. ee.EncodeBool(bool(k2))
  12543. if esep {
  12544. ee.WriteMapElemValue()
  12545. }
  12546. ee.EncodeUint(uint64(v[bool(k2)]))
  12547. }
  12548. } else {
  12549. for k2, v2 := range v {
  12550. if esep {
  12551. ee.WriteMapElemKey()
  12552. }
  12553. ee.EncodeBool(k2)
  12554. if esep {
  12555. ee.WriteMapElemValue()
  12556. }
  12557. ee.EncodeUint(uint64(v2))
  12558. }
  12559. }
  12560. ee.WriteMapEnd()
  12561. }
  12562. func (e *Encoder) fastpathEncMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  12563. fastpathTV.EncMapBoolUint16V(rv2i(rv).(map[bool]uint16), e)
  12564. }
  12565. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, e *Encoder) {
  12566. if v == nil {
  12567. e.e.EncodeNil()
  12568. return
  12569. }
  12570. ee, esep := e.e, e.hh.hasElemSeparators()
  12571. ee.WriteMapStart(len(v))
  12572. if e.h.Canonical {
  12573. v2 := make([]bool, len(v))
  12574. var i int
  12575. for k, _ := range v {
  12576. v2[i] = bool(k)
  12577. i++
  12578. }
  12579. sort.Sort(boolSlice(v2))
  12580. for _, k2 := range v2 {
  12581. if esep {
  12582. ee.WriteMapElemKey()
  12583. }
  12584. ee.EncodeBool(bool(k2))
  12585. if esep {
  12586. ee.WriteMapElemValue()
  12587. }
  12588. ee.EncodeUint(uint64(v[bool(k2)]))
  12589. }
  12590. } else {
  12591. for k2, v2 := range v {
  12592. if esep {
  12593. ee.WriteMapElemKey()
  12594. }
  12595. ee.EncodeBool(k2)
  12596. if esep {
  12597. ee.WriteMapElemValue()
  12598. }
  12599. ee.EncodeUint(uint64(v2))
  12600. }
  12601. }
  12602. ee.WriteMapEnd()
  12603. }
  12604. func (e *Encoder) fastpathEncMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  12605. fastpathTV.EncMapBoolUint32V(rv2i(rv).(map[bool]uint32), e)
  12606. }
  12607. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, e *Encoder) {
  12608. if v == nil {
  12609. e.e.EncodeNil()
  12610. return
  12611. }
  12612. ee, esep := e.e, e.hh.hasElemSeparators()
  12613. ee.WriteMapStart(len(v))
  12614. if e.h.Canonical {
  12615. v2 := make([]bool, len(v))
  12616. var i int
  12617. for k, _ := range v {
  12618. v2[i] = bool(k)
  12619. i++
  12620. }
  12621. sort.Sort(boolSlice(v2))
  12622. for _, k2 := range v2 {
  12623. if esep {
  12624. ee.WriteMapElemKey()
  12625. }
  12626. ee.EncodeBool(bool(k2))
  12627. if esep {
  12628. ee.WriteMapElemValue()
  12629. }
  12630. ee.EncodeUint(uint64(v[bool(k2)]))
  12631. }
  12632. } else {
  12633. for k2, v2 := range v {
  12634. if esep {
  12635. ee.WriteMapElemKey()
  12636. }
  12637. ee.EncodeBool(k2)
  12638. if esep {
  12639. ee.WriteMapElemValue()
  12640. }
  12641. ee.EncodeUint(uint64(v2))
  12642. }
  12643. }
  12644. ee.WriteMapEnd()
  12645. }
  12646. func (e *Encoder) fastpathEncMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  12647. fastpathTV.EncMapBoolUint64V(rv2i(rv).(map[bool]uint64), e)
  12648. }
  12649. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, e *Encoder) {
  12650. if v == nil {
  12651. e.e.EncodeNil()
  12652. return
  12653. }
  12654. ee, esep := e.e, e.hh.hasElemSeparators()
  12655. ee.WriteMapStart(len(v))
  12656. if e.h.Canonical {
  12657. v2 := make([]bool, len(v))
  12658. var i int
  12659. for k, _ := range v {
  12660. v2[i] = bool(k)
  12661. i++
  12662. }
  12663. sort.Sort(boolSlice(v2))
  12664. for _, k2 := range v2 {
  12665. if esep {
  12666. ee.WriteMapElemKey()
  12667. }
  12668. ee.EncodeBool(bool(k2))
  12669. if esep {
  12670. ee.WriteMapElemValue()
  12671. }
  12672. ee.EncodeUint(uint64(v[bool(k2)]))
  12673. }
  12674. } else {
  12675. for k2, v2 := range v {
  12676. if esep {
  12677. ee.WriteMapElemKey()
  12678. }
  12679. ee.EncodeBool(k2)
  12680. if esep {
  12681. ee.WriteMapElemValue()
  12682. }
  12683. ee.EncodeUint(uint64(v2))
  12684. }
  12685. }
  12686. ee.WriteMapEnd()
  12687. }
  12688. func (e *Encoder) fastpathEncMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  12689. fastpathTV.EncMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), e)
  12690. }
  12691. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, e *Encoder) {
  12692. if v == nil {
  12693. e.e.EncodeNil()
  12694. return
  12695. }
  12696. ee, esep := e.e, e.hh.hasElemSeparators()
  12697. ee.WriteMapStart(len(v))
  12698. if e.h.Canonical {
  12699. v2 := make([]bool, len(v))
  12700. var i int
  12701. for k, _ := range v {
  12702. v2[i] = bool(k)
  12703. i++
  12704. }
  12705. sort.Sort(boolSlice(v2))
  12706. for _, k2 := range v2 {
  12707. if esep {
  12708. ee.WriteMapElemKey()
  12709. }
  12710. ee.EncodeBool(bool(k2))
  12711. if esep {
  12712. ee.WriteMapElemValue()
  12713. }
  12714. e.encode(v[bool(k2)])
  12715. }
  12716. } else {
  12717. for k2, v2 := range v {
  12718. if esep {
  12719. ee.WriteMapElemKey()
  12720. }
  12721. ee.EncodeBool(k2)
  12722. if esep {
  12723. ee.WriteMapElemValue()
  12724. }
  12725. e.encode(v2)
  12726. }
  12727. }
  12728. ee.WriteMapEnd()
  12729. }
  12730. func (e *Encoder) fastpathEncMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  12731. fastpathTV.EncMapBoolIntV(rv2i(rv).(map[bool]int), e)
  12732. }
  12733. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, e *Encoder) {
  12734. if v == nil {
  12735. e.e.EncodeNil()
  12736. return
  12737. }
  12738. ee, esep := e.e, e.hh.hasElemSeparators()
  12739. ee.WriteMapStart(len(v))
  12740. if e.h.Canonical {
  12741. v2 := make([]bool, len(v))
  12742. var i int
  12743. for k, _ := range v {
  12744. v2[i] = bool(k)
  12745. i++
  12746. }
  12747. sort.Sort(boolSlice(v2))
  12748. for _, k2 := range v2 {
  12749. if esep {
  12750. ee.WriteMapElemKey()
  12751. }
  12752. ee.EncodeBool(bool(k2))
  12753. if esep {
  12754. ee.WriteMapElemValue()
  12755. }
  12756. ee.EncodeInt(int64(v[bool(k2)]))
  12757. }
  12758. } else {
  12759. for k2, v2 := range v {
  12760. if esep {
  12761. ee.WriteMapElemKey()
  12762. }
  12763. ee.EncodeBool(k2)
  12764. if esep {
  12765. ee.WriteMapElemValue()
  12766. }
  12767. ee.EncodeInt(int64(v2))
  12768. }
  12769. }
  12770. ee.WriteMapEnd()
  12771. }
  12772. func (e *Encoder) fastpathEncMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  12773. fastpathTV.EncMapBoolInt8V(rv2i(rv).(map[bool]int8), e)
  12774. }
  12775. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, e *Encoder) {
  12776. if v == nil {
  12777. e.e.EncodeNil()
  12778. return
  12779. }
  12780. ee, esep := e.e, e.hh.hasElemSeparators()
  12781. ee.WriteMapStart(len(v))
  12782. if e.h.Canonical {
  12783. v2 := make([]bool, len(v))
  12784. var i int
  12785. for k, _ := range v {
  12786. v2[i] = bool(k)
  12787. i++
  12788. }
  12789. sort.Sort(boolSlice(v2))
  12790. for _, k2 := range v2 {
  12791. if esep {
  12792. ee.WriteMapElemKey()
  12793. }
  12794. ee.EncodeBool(bool(k2))
  12795. if esep {
  12796. ee.WriteMapElemValue()
  12797. }
  12798. ee.EncodeInt(int64(v[bool(k2)]))
  12799. }
  12800. } else {
  12801. for k2, v2 := range v {
  12802. if esep {
  12803. ee.WriteMapElemKey()
  12804. }
  12805. ee.EncodeBool(k2)
  12806. if esep {
  12807. ee.WriteMapElemValue()
  12808. }
  12809. ee.EncodeInt(int64(v2))
  12810. }
  12811. }
  12812. ee.WriteMapEnd()
  12813. }
  12814. func (e *Encoder) fastpathEncMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  12815. fastpathTV.EncMapBoolInt16V(rv2i(rv).(map[bool]int16), e)
  12816. }
  12817. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, e *Encoder) {
  12818. if v == nil {
  12819. e.e.EncodeNil()
  12820. return
  12821. }
  12822. ee, esep := e.e, e.hh.hasElemSeparators()
  12823. ee.WriteMapStart(len(v))
  12824. if e.h.Canonical {
  12825. v2 := make([]bool, len(v))
  12826. var i int
  12827. for k, _ := range v {
  12828. v2[i] = bool(k)
  12829. i++
  12830. }
  12831. sort.Sort(boolSlice(v2))
  12832. for _, k2 := range v2 {
  12833. if esep {
  12834. ee.WriteMapElemKey()
  12835. }
  12836. ee.EncodeBool(bool(k2))
  12837. if esep {
  12838. ee.WriteMapElemValue()
  12839. }
  12840. ee.EncodeInt(int64(v[bool(k2)]))
  12841. }
  12842. } else {
  12843. for k2, v2 := range v {
  12844. if esep {
  12845. ee.WriteMapElemKey()
  12846. }
  12847. ee.EncodeBool(k2)
  12848. if esep {
  12849. ee.WriteMapElemValue()
  12850. }
  12851. ee.EncodeInt(int64(v2))
  12852. }
  12853. }
  12854. ee.WriteMapEnd()
  12855. }
  12856. func (e *Encoder) fastpathEncMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  12857. fastpathTV.EncMapBoolInt32V(rv2i(rv).(map[bool]int32), e)
  12858. }
  12859. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, e *Encoder) {
  12860. if v == nil {
  12861. e.e.EncodeNil()
  12862. return
  12863. }
  12864. ee, esep := e.e, e.hh.hasElemSeparators()
  12865. ee.WriteMapStart(len(v))
  12866. if e.h.Canonical {
  12867. v2 := make([]bool, len(v))
  12868. var i int
  12869. for k, _ := range v {
  12870. v2[i] = bool(k)
  12871. i++
  12872. }
  12873. sort.Sort(boolSlice(v2))
  12874. for _, k2 := range v2 {
  12875. if esep {
  12876. ee.WriteMapElemKey()
  12877. }
  12878. ee.EncodeBool(bool(k2))
  12879. if esep {
  12880. ee.WriteMapElemValue()
  12881. }
  12882. ee.EncodeInt(int64(v[bool(k2)]))
  12883. }
  12884. } else {
  12885. for k2, v2 := range v {
  12886. if esep {
  12887. ee.WriteMapElemKey()
  12888. }
  12889. ee.EncodeBool(k2)
  12890. if esep {
  12891. ee.WriteMapElemValue()
  12892. }
  12893. ee.EncodeInt(int64(v2))
  12894. }
  12895. }
  12896. ee.WriteMapEnd()
  12897. }
  12898. func (e *Encoder) fastpathEncMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  12899. fastpathTV.EncMapBoolInt64V(rv2i(rv).(map[bool]int64), e)
  12900. }
  12901. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, e *Encoder) {
  12902. if v == nil {
  12903. e.e.EncodeNil()
  12904. return
  12905. }
  12906. ee, esep := e.e, e.hh.hasElemSeparators()
  12907. ee.WriteMapStart(len(v))
  12908. if e.h.Canonical {
  12909. v2 := make([]bool, len(v))
  12910. var i int
  12911. for k, _ := range v {
  12912. v2[i] = bool(k)
  12913. i++
  12914. }
  12915. sort.Sort(boolSlice(v2))
  12916. for _, k2 := range v2 {
  12917. if esep {
  12918. ee.WriteMapElemKey()
  12919. }
  12920. ee.EncodeBool(bool(k2))
  12921. if esep {
  12922. ee.WriteMapElemValue()
  12923. }
  12924. ee.EncodeInt(int64(v[bool(k2)]))
  12925. }
  12926. } else {
  12927. for k2, v2 := range v {
  12928. if esep {
  12929. ee.WriteMapElemKey()
  12930. }
  12931. ee.EncodeBool(k2)
  12932. if esep {
  12933. ee.WriteMapElemValue()
  12934. }
  12935. ee.EncodeInt(int64(v2))
  12936. }
  12937. }
  12938. ee.WriteMapEnd()
  12939. }
  12940. func (e *Encoder) fastpathEncMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  12941. fastpathTV.EncMapBoolFloat32V(rv2i(rv).(map[bool]float32), e)
  12942. }
  12943. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, e *Encoder) {
  12944. if v == nil {
  12945. e.e.EncodeNil()
  12946. return
  12947. }
  12948. ee, esep := e.e, e.hh.hasElemSeparators()
  12949. ee.WriteMapStart(len(v))
  12950. if e.h.Canonical {
  12951. v2 := make([]bool, len(v))
  12952. var i int
  12953. for k, _ := range v {
  12954. v2[i] = bool(k)
  12955. i++
  12956. }
  12957. sort.Sort(boolSlice(v2))
  12958. for _, k2 := range v2 {
  12959. if esep {
  12960. ee.WriteMapElemKey()
  12961. }
  12962. ee.EncodeBool(bool(k2))
  12963. if esep {
  12964. ee.WriteMapElemValue()
  12965. }
  12966. ee.EncodeFloat32(v[bool(k2)])
  12967. }
  12968. } else {
  12969. for k2, v2 := range v {
  12970. if esep {
  12971. ee.WriteMapElemKey()
  12972. }
  12973. ee.EncodeBool(k2)
  12974. if esep {
  12975. ee.WriteMapElemValue()
  12976. }
  12977. ee.EncodeFloat32(v2)
  12978. }
  12979. }
  12980. ee.WriteMapEnd()
  12981. }
  12982. func (e *Encoder) fastpathEncMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  12983. fastpathTV.EncMapBoolFloat64V(rv2i(rv).(map[bool]float64), e)
  12984. }
  12985. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, e *Encoder) {
  12986. if v == nil {
  12987. e.e.EncodeNil()
  12988. return
  12989. }
  12990. ee, esep := e.e, e.hh.hasElemSeparators()
  12991. ee.WriteMapStart(len(v))
  12992. if e.h.Canonical {
  12993. v2 := make([]bool, len(v))
  12994. var i int
  12995. for k, _ := range v {
  12996. v2[i] = bool(k)
  12997. i++
  12998. }
  12999. sort.Sort(boolSlice(v2))
  13000. for _, k2 := range v2 {
  13001. if esep {
  13002. ee.WriteMapElemKey()
  13003. }
  13004. ee.EncodeBool(bool(k2))
  13005. if esep {
  13006. ee.WriteMapElemValue()
  13007. }
  13008. ee.EncodeFloat64(v[bool(k2)])
  13009. }
  13010. } else {
  13011. for k2, v2 := range v {
  13012. if esep {
  13013. ee.WriteMapElemKey()
  13014. }
  13015. ee.EncodeBool(k2)
  13016. if esep {
  13017. ee.WriteMapElemValue()
  13018. }
  13019. ee.EncodeFloat64(v2)
  13020. }
  13021. }
  13022. ee.WriteMapEnd()
  13023. }
  13024. func (e *Encoder) fastpathEncMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  13025. fastpathTV.EncMapBoolBoolV(rv2i(rv).(map[bool]bool), e)
  13026. }
  13027. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, e *Encoder) {
  13028. if v == nil {
  13029. e.e.EncodeNil()
  13030. return
  13031. }
  13032. ee, esep := e.e, e.hh.hasElemSeparators()
  13033. ee.WriteMapStart(len(v))
  13034. if e.h.Canonical {
  13035. v2 := make([]bool, len(v))
  13036. var i int
  13037. for k, _ := range v {
  13038. v2[i] = bool(k)
  13039. i++
  13040. }
  13041. sort.Sort(boolSlice(v2))
  13042. for _, k2 := range v2 {
  13043. if esep {
  13044. ee.WriteMapElemKey()
  13045. }
  13046. ee.EncodeBool(bool(k2))
  13047. if esep {
  13048. ee.WriteMapElemValue()
  13049. }
  13050. ee.EncodeBool(v[bool(k2)])
  13051. }
  13052. } else {
  13053. for k2, v2 := range v {
  13054. if esep {
  13055. ee.WriteMapElemKey()
  13056. }
  13057. ee.EncodeBool(k2)
  13058. if esep {
  13059. ee.WriteMapElemValue()
  13060. }
  13061. ee.EncodeBool(v2)
  13062. }
  13063. }
  13064. ee.WriteMapEnd()
  13065. }
  13066. // -- decode
  13067. // -- -- fast path type switch
  13068. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  13069. switch v := iv.(type) {
  13070. case []interface{}:
  13071. fastpathTV.DecSliceIntfV(v, false, d)
  13072. case *[]interface{}:
  13073. if v2, changed2 := fastpathTV.DecSliceIntfV(*v, true, d); changed2 {
  13074. *v = v2
  13075. }
  13076. case map[interface{}]interface{}:
  13077. fastpathTV.DecMapIntfIntfV(v, false, d)
  13078. case *map[interface{}]interface{}:
  13079. if v2, changed2 := fastpathTV.DecMapIntfIntfV(*v, true, d); changed2 {
  13080. *v = v2
  13081. }
  13082. case map[interface{}]string:
  13083. fastpathTV.DecMapIntfStringV(v, false, d)
  13084. case *map[interface{}]string:
  13085. if v2, changed2 := fastpathTV.DecMapIntfStringV(*v, true, d); changed2 {
  13086. *v = v2
  13087. }
  13088. case map[interface{}]uint:
  13089. fastpathTV.DecMapIntfUintV(v, false, d)
  13090. case *map[interface{}]uint:
  13091. if v2, changed2 := fastpathTV.DecMapIntfUintV(*v, true, d); changed2 {
  13092. *v = v2
  13093. }
  13094. case map[interface{}]uint8:
  13095. fastpathTV.DecMapIntfUint8V(v, false, d)
  13096. case *map[interface{}]uint8:
  13097. if v2, changed2 := fastpathTV.DecMapIntfUint8V(*v, true, d); changed2 {
  13098. *v = v2
  13099. }
  13100. case map[interface{}]uint16:
  13101. fastpathTV.DecMapIntfUint16V(v, false, d)
  13102. case *map[interface{}]uint16:
  13103. if v2, changed2 := fastpathTV.DecMapIntfUint16V(*v, true, d); changed2 {
  13104. *v = v2
  13105. }
  13106. case map[interface{}]uint32:
  13107. fastpathTV.DecMapIntfUint32V(v, false, d)
  13108. case *map[interface{}]uint32:
  13109. if v2, changed2 := fastpathTV.DecMapIntfUint32V(*v, true, d); changed2 {
  13110. *v = v2
  13111. }
  13112. case map[interface{}]uint64:
  13113. fastpathTV.DecMapIntfUint64V(v, false, d)
  13114. case *map[interface{}]uint64:
  13115. if v2, changed2 := fastpathTV.DecMapIntfUint64V(*v, true, d); changed2 {
  13116. *v = v2
  13117. }
  13118. case map[interface{}]uintptr:
  13119. fastpathTV.DecMapIntfUintptrV(v, false, d)
  13120. case *map[interface{}]uintptr:
  13121. if v2, changed2 := fastpathTV.DecMapIntfUintptrV(*v, true, d); changed2 {
  13122. *v = v2
  13123. }
  13124. case map[interface{}]int:
  13125. fastpathTV.DecMapIntfIntV(v, false, d)
  13126. case *map[interface{}]int:
  13127. if v2, changed2 := fastpathTV.DecMapIntfIntV(*v, true, d); changed2 {
  13128. *v = v2
  13129. }
  13130. case map[interface{}]int8:
  13131. fastpathTV.DecMapIntfInt8V(v, false, d)
  13132. case *map[interface{}]int8:
  13133. if v2, changed2 := fastpathTV.DecMapIntfInt8V(*v, true, d); changed2 {
  13134. *v = v2
  13135. }
  13136. case map[interface{}]int16:
  13137. fastpathTV.DecMapIntfInt16V(v, false, d)
  13138. case *map[interface{}]int16:
  13139. if v2, changed2 := fastpathTV.DecMapIntfInt16V(*v, true, d); changed2 {
  13140. *v = v2
  13141. }
  13142. case map[interface{}]int32:
  13143. fastpathTV.DecMapIntfInt32V(v, false, d)
  13144. case *map[interface{}]int32:
  13145. if v2, changed2 := fastpathTV.DecMapIntfInt32V(*v, true, d); changed2 {
  13146. *v = v2
  13147. }
  13148. case map[interface{}]int64:
  13149. fastpathTV.DecMapIntfInt64V(v, false, d)
  13150. case *map[interface{}]int64:
  13151. if v2, changed2 := fastpathTV.DecMapIntfInt64V(*v, true, d); changed2 {
  13152. *v = v2
  13153. }
  13154. case map[interface{}]float32:
  13155. fastpathTV.DecMapIntfFloat32V(v, false, d)
  13156. case *map[interface{}]float32:
  13157. if v2, changed2 := fastpathTV.DecMapIntfFloat32V(*v, true, d); changed2 {
  13158. *v = v2
  13159. }
  13160. case map[interface{}]float64:
  13161. fastpathTV.DecMapIntfFloat64V(v, false, d)
  13162. case *map[interface{}]float64:
  13163. if v2, changed2 := fastpathTV.DecMapIntfFloat64V(*v, true, d); changed2 {
  13164. *v = v2
  13165. }
  13166. case map[interface{}]bool:
  13167. fastpathTV.DecMapIntfBoolV(v, false, d)
  13168. case *map[interface{}]bool:
  13169. if v2, changed2 := fastpathTV.DecMapIntfBoolV(*v, true, d); changed2 {
  13170. *v = v2
  13171. }
  13172. case []string:
  13173. fastpathTV.DecSliceStringV(v, false, d)
  13174. case *[]string:
  13175. if v2, changed2 := fastpathTV.DecSliceStringV(*v, true, d); changed2 {
  13176. *v = v2
  13177. }
  13178. case map[string]interface{}:
  13179. fastpathTV.DecMapStringIntfV(v, false, d)
  13180. case *map[string]interface{}:
  13181. if v2, changed2 := fastpathTV.DecMapStringIntfV(*v, true, d); changed2 {
  13182. *v = v2
  13183. }
  13184. case map[string]string:
  13185. fastpathTV.DecMapStringStringV(v, false, d)
  13186. case *map[string]string:
  13187. if v2, changed2 := fastpathTV.DecMapStringStringV(*v, true, d); changed2 {
  13188. *v = v2
  13189. }
  13190. case map[string]uint:
  13191. fastpathTV.DecMapStringUintV(v, false, d)
  13192. case *map[string]uint:
  13193. if v2, changed2 := fastpathTV.DecMapStringUintV(*v, true, d); changed2 {
  13194. *v = v2
  13195. }
  13196. case map[string]uint8:
  13197. fastpathTV.DecMapStringUint8V(v, false, d)
  13198. case *map[string]uint8:
  13199. if v2, changed2 := fastpathTV.DecMapStringUint8V(*v, true, d); changed2 {
  13200. *v = v2
  13201. }
  13202. case map[string]uint16:
  13203. fastpathTV.DecMapStringUint16V(v, false, d)
  13204. case *map[string]uint16:
  13205. if v2, changed2 := fastpathTV.DecMapStringUint16V(*v, true, d); changed2 {
  13206. *v = v2
  13207. }
  13208. case map[string]uint32:
  13209. fastpathTV.DecMapStringUint32V(v, false, d)
  13210. case *map[string]uint32:
  13211. if v2, changed2 := fastpathTV.DecMapStringUint32V(*v, true, d); changed2 {
  13212. *v = v2
  13213. }
  13214. case map[string]uint64:
  13215. fastpathTV.DecMapStringUint64V(v, false, d)
  13216. case *map[string]uint64:
  13217. if v2, changed2 := fastpathTV.DecMapStringUint64V(*v, true, d); changed2 {
  13218. *v = v2
  13219. }
  13220. case map[string]uintptr:
  13221. fastpathTV.DecMapStringUintptrV(v, false, d)
  13222. case *map[string]uintptr:
  13223. if v2, changed2 := fastpathTV.DecMapStringUintptrV(*v, true, d); changed2 {
  13224. *v = v2
  13225. }
  13226. case map[string]int:
  13227. fastpathTV.DecMapStringIntV(v, false, d)
  13228. case *map[string]int:
  13229. if v2, changed2 := fastpathTV.DecMapStringIntV(*v, true, d); changed2 {
  13230. *v = v2
  13231. }
  13232. case map[string]int8:
  13233. fastpathTV.DecMapStringInt8V(v, false, d)
  13234. case *map[string]int8:
  13235. if v2, changed2 := fastpathTV.DecMapStringInt8V(*v, true, d); changed2 {
  13236. *v = v2
  13237. }
  13238. case map[string]int16:
  13239. fastpathTV.DecMapStringInt16V(v, false, d)
  13240. case *map[string]int16:
  13241. if v2, changed2 := fastpathTV.DecMapStringInt16V(*v, true, d); changed2 {
  13242. *v = v2
  13243. }
  13244. case map[string]int32:
  13245. fastpathTV.DecMapStringInt32V(v, false, d)
  13246. case *map[string]int32:
  13247. if v2, changed2 := fastpathTV.DecMapStringInt32V(*v, true, d); changed2 {
  13248. *v = v2
  13249. }
  13250. case map[string]int64:
  13251. fastpathTV.DecMapStringInt64V(v, false, d)
  13252. case *map[string]int64:
  13253. if v2, changed2 := fastpathTV.DecMapStringInt64V(*v, true, d); changed2 {
  13254. *v = v2
  13255. }
  13256. case map[string]float32:
  13257. fastpathTV.DecMapStringFloat32V(v, false, d)
  13258. case *map[string]float32:
  13259. if v2, changed2 := fastpathTV.DecMapStringFloat32V(*v, true, d); changed2 {
  13260. *v = v2
  13261. }
  13262. case map[string]float64:
  13263. fastpathTV.DecMapStringFloat64V(v, false, d)
  13264. case *map[string]float64:
  13265. if v2, changed2 := fastpathTV.DecMapStringFloat64V(*v, true, d); changed2 {
  13266. *v = v2
  13267. }
  13268. case map[string]bool:
  13269. fastpathTV.DecMapStringBoolV(v, false, d)
  13270. case *map[string]bool:
  13271. if v2, changed2 := fastpathTV.DecMapStringBoolV(*v, true, d); changed2 {
  13272. *v = v2
  13273. }
  13274. case []float32:
  13275. fastpathTV.DecSliceFloat32V(v, false, d)
  13276. case *[]float32:
  13277. if v2, changed2 := fastpathTV.DecSliceFloat32V(*v, true, d); changed2 {
  13278. *v = v2
  13279. }
  13280. case map[float32]interface{}:
  13281. fastpathTV.DecMapFloat32IntfV(v, false, d)
  13282. case *map[float32]interface{}:
  13283. if v2, changed2 := fastpathTV.DecMapFloat32IntfV(*v, true, d); changed2 {
  13284. *v = v2
  13285. }
  13286. case map[float32]string:
  13287. fastpathTV.DecMapFloat32StringV(v, false, d)
  13288. case *map[float32]string:
  13289. if v2, changed2 := fastpathTV.DecMapFloat32StringV(*v, true, d); changed2 {
  13290. *v = v2
  13291. }
  13292. case map[float32]uint:
  13293. fastpathTV.DecMapFloat32UintV(v, false, d)
  13294. case *map[float32]uint:
  13295. if v2, changed2 := fastpathTV.DecMapFloat32UintV(*v, true, d); changed2 {
  13296. *v = v2
  13297. }
  13298. case map[float32]uint8:
  13299. fastpathTV.DecMapFloat32Uint8V(v, false, d)
  13300. case *map[float32]uint8:
  13301. if v2, changed2 := fastpathTV.DecMapFloat32Uint8V(*v, true, d); changed2 {
  13302. *v = v2
  13303. }
  13304. case map[float32]uint16:
  13305. fastpathTV.DecMapFloat32Uint16V(v, false, d)
  13306. case *map[float32]uint16:
  13307. if v2, changed2 := fastpathTV.DecMapFloat32Uint16V(*v, true, d); changed2 {
  13308. *v = v2
  13309. }
  13310. case map[float32]uint32:
  13311. fastpathTV.DecMapFloat32Uint32V(v, false, d)
  13312. case *map[float32]uint32:
  13313. if v2, changed2 := fastpathTV.DecMapFloat32Uint32V(*v, true, d); changed2 {
  13314. *v = v2
  13315. }
  13316. case map[float32]uint64:
  13317. fastpathTV.DecMapFloat32Uint64V(v, false, d)
  13318. case *map[float32]uint64:
  13319. if v2, changed2 := fastpathTV.DecMapFloat32Uint64V(*v, true, d); changed2 {
  13320. *v = v2
  13321. }
  13322. case map[float32]uintptr:
  13323. fastpathTV.DecMapFloat32UintptrV(v, false, d)
  13324. case *map[float32]uintptr:
  13325. if v2, changed2 := fastpathTV.DecMapFloat32UintptrV(*v, true, d); changed2 {
  13326. *v = v2
  13327. }
  13328. case map[float32]int:
  13329. fastpathTV.DecMapFloat32IntV(v, false, d)
  13330. case *map[float32]int:
  13331. if v2, changed2 := fastpathTV.DecMapFloat32IntV(*v, true, d); changed2 {
  13332. *v = v2
  13333. }
  13334. case map[float32]int8:
  13335. fastpathTV.DecMapFloat32Int8V(v, false, d)
  13336. case *map[float32]int8:
  13337. if v2, changed2 := fastpathTV.DecMapFloat32Int8V(*v, true, d); changed2 {
  13338. *v = v2
  13339. }
  13340. case map[float32]int16:
  13341. fastpathTV.DecMapFloat32Int16V(v, false, d)
  13342. case *map[float32]int16:
  13343. if v2, changed2 := fastpathTV.DecMapFloat32Int16V(*v, true, d); changed2 {
  13344. *v = v2
  13345. }
  13346. case map[float32]int32:
  13347. fastpathTV.DecMapFloat32Int32V(v, false, d)
  13348. case *map[float32]int32:
  13349. if v2, changed2 := fastpathTV.DecMapFloat32Int32V(*v, true, d); changed2 {
  13350. *v = v2
  13351. }
  13352. case map[float32]int64:
  13353. fastpathTV.DecMapFloat32Int64V(v, false, d)
  13354. case *map[float32]int64:
  13355. if v2, changed2 := fastpathTV.DecMapFloat32Int64V(*v, true, d); changed2 {
  13356. *v = v2
  13357. }
  13358. case map[float32]float32:
  13359. fastpathTV.DecMapFloat32Float32V(v, false, d)
  13360. case *map[float32]float32:
  13361. if v2, changed2 := fastpathTV.DecMapFloat32Float32V(*v, true, d); changed2 {
  13362. *v = v2
  13363. }
  13364. case map[float32]float64:
  13365. fastpathTV.DecMapFloat32Float64V(v, false, d)
  13366. case *map[float32]float64:
  13367. if v2, changed2 := fastpathTV.DecMapFloat32Float64V(*v, true, d); changed2 {
  13368. *v = v2
  13369. }
  13370. case map[float32]bool:
  13371. fastpathTV.DecMapFloat32BoolV(v, false, d)
  13372. case *map[float32]bool:
  13373. if v2, changed2 := fastpathTV.DecMapFloat32BoolV(*v, true, d); changed2 {
  13374. *v = v2
  13375. }
  13376. case []float64:
  13377. fastpathTV.DecSliceFloat64V(v, false, d)
  13378. case *[]float64:
  13379. if v2, changed2 := fastpathTV.DecSliceFloat64V(*v, true, d); changed2 {
  13380. *v = v2
  13381. }
  13382. case map[float64]interface{}:
  13383. fastpathTV.DecMapFloat64IntfV(v, false, d)
  13384. case *map[float64]interface{}:
  13385. if v2, changed2 := fastpathTV.DecMapFloat64IntfV(*v, true, d); changed2 {
  13386. *v = v2
  13387. }
  13388. case map[float64]string:
  13389. fastpathTV.DecMapFloat64StringV(v, false, d)
  13390. case *map[float64]string:
  13391. if v2, changed2 := fastpathTV.DecMapFloat64StringV(*v, true, d); changed2 {
  13392. *v = v2
  13393. }
  13394. case map[float64]uint:
  13395. fastpathTV.DecMapFloat64UintV(v, false, d)
  13396. case *map[float64]uint:
  13397. if v2, changed2 := fastpathTV.DecMapFloat64UintV(*v, true, d); changed2 {
  13398. *v = v2
  13399. }
  13400. case map[float64]uint8:
  13401. fastpathTV.DecMapFloat64Uint8V(v, false, d)
  13402. case *map[float64]uint8:
  13403. if v2, changed2 := fastpathTV.DecMapFloat64Uint8V(*v, true, d); changed2 {
  13404. *v = v2
  13405. }
  13406. case map[float64]uint16:
  13407. fastpathTV.DecMapFloat64Uint16V(v, false, d)
  13408. case *map[float64]uint16:
  13409. if v2, changed2 := fastpathTV.DecMapFloat64Uint16V(*v, true, d); changed2 {
  13410. *v = v2
  13411. }
  13412. case map[float64]uint32:
  13413. fastpathTV.DecMapFloat64Uint32V(v, false, d)
  13414. case *map[float64]uint32:
  13415. if v2, changed2 := fastpathTV.DecMapFloat64Uint32V(*v, true, d); changed2 {
  13416. *v = v2
  13417. }
  13418. case map[float64]uint64:
  13419. fastpathTV.DecMapFloat64Uint64V(v, false, d)
  13420. case *map[float64]uint64:
  13421. if v2, changed2 := fastpathTV.DecMapFloat64Uint64V(*v, true, d); changed2 {
  13422. *v = v2
  13423. }
  13424. case map[float64]uintptr:
  13425. fastpathTV.DecMapFloat64UintptrV(v, false, d)
  13426. case *map[float64]uintptr:
  13427. if v2, changed2 := fastpathTV.DecMapFloat64UintptrV(*v, true, d); changed2 {
  13428. *v = v2
  13429. }
  13430. case map[float64]int:
  13431. fastpathTV.DecMapFloat64IntV(v, false, d)
  13432. case *map[float64]int:
  13433. if v2, changed2 := fastpathTV.DecMapFloat64IntV(*v, true, d); changed2 {
  13434. *v = v2
  13435. }
  13436. case map[float64]int8:
  13437. fastpathTV.DecMapFloat64Int8V(v, false, d)
  13438. case *map[float64]int8:
  13439. if v2, changed2 := fastpathTV.DecMapFloat64Int8V(*v, true, d); changed2 {
  13440. *v = v2
  13441. }
  13442. case map[float64]int16:
  13443. fastpathTV.DecMapFloat64Int16V(v, false, d)
  13444. case *map[float64]int16:
  13445. if v2, changed2 := fastpathTV.DecMapFloat64Int16V(*v, true, d); changed2 {
  13446. *v = v2
  13447. }
  13448. case map[float64]int32:
  13449. fastpathTV.DecMapFloat64Int32V(v, false, d)
  13450. case *map[float64]int32:
  13451. if v2, changed2 := fastpathTV.DecMapFloat64Int32V(*v, true, d); changed2 {
  13452. *v = v2
  13453. }
  13454. case map[float64]int64:
  13455. fastpathTV.DecMapFloat64Int64V(v, false, d)
  13456. case *map[float64]int64:
  13457. if v2, changed2 := fastpathTV.DecMapFloat64Int64V(*v, true, d); changed2 {
  13458. *v = v2
  13459. }
  13460. case map[float64]float32:
  13461. fastpathTV.DecMapFloat64Float32V(v, false, d)
  13462. case *map[float64]float32:
  13463. if v2, changed2 := fastpathTV.DecMapFloat64Float32V(*v, true, d); changed2 {
  13464. *v = v2
  13465. }
  13466. case map[float64]float64:
  13467. fastpathTV.DecMapFloat64Float64V(v, false, d)
  13468. case *map[float64]float64:
  13469. if v2, changed2 := fastpathTV.DecMapFloat64Float64V(*v, true, d); changed2 {
  13470. *v = v2
  13471. }
  13472. case map[float64]bool:
  13473. fastpathTV.DecMapFloat64BoolV(v, false, d)
  13474. case *map[float64]bool:
  13475. if v2, changed2 := fastpathTV.DecMapFloat64BoolV(*v, true, d); changed2 {
  13476. *v = v2
  13477. }
  13478. case []uint:
  13479. fastpathTV.DecSliceUintV(v, false, d)
  13480. case *[]uint:
  13481. if v2, changed2 := fastpathTV.DecSliceUintV(*v, true, d); changed2 {
  13482. *v = v2
  13483. }
  13484. case map[uint]interface{}:
  13485. fastpathTV.DecMapUintIntfV(v, false, d)
  13486. case *map[uint]interface{}:
  13487. if v2, changed2 := fastpathTV.DecMapUintIntfV(*v, true, d); changed2 {
  13488. *v = v2
  13489. }
  13490. case map[uint]string:
  13491. fastpathTV.DecMapUintStringV(v, false, d)
  13492. case *map[uint]string:
  13493. if v2, changed2 := fastpathTV.DecMapUintStringV(*v, true, d); changed2 {
  13494. *v = v2
  13495. }
  13496. case map[uint]uint:
  13497. fastpathTV.DecMapUintUintV(v, false, d)
  13498. case *map[uint]uint:
  13499. if v2, changed2 := fastpathTV.DecMapUintUintV(*v, true, d); changed2 {
  13500. *v = v2
  13501. }
  13502. case map[uint]uint8:
  13503. fastpathTV.DecMapUintUint8V(v, false, d)
  13504. case *map[uint]uint8:
  13505. if v2, changed2 := fastpathTV.DecMapUintUint8V(*v, true, d); changed2 {
  13506. *v = v2
  13507. }
  13508. case map[uint]uint16:
  13509. fastpathTV.DecMapUintUint16V(v, false, d)
  13510. case *map[uint]uint16:
  13511. if v2, changed2 := fastpathTV.DecMapUintUint16V(*v, true, d); changed2 {
  13512. *v = v2
  13513. }
  13514. case map[uint]uint32:
  13515. fastpathTV.DecMapUintUint32V(v, false, d)
  13516. case *map[uint]uint32:
  13517. if v2, changed2 := fastpathTV.DecMapUintUint32V(*v, true, d); changed2 {
  13518. *v = v2
  13519. }
  13520. case map[uint]uint64:
  13521. fastpathTV.DecMapUintUint64V(v, false, d)
  13522. case *map[uint]uint64:
  13523. if v2, changed2 := fastpathTV.DecMapUintUint64V(*v, true, d); changed2 {
  13524. *v = v2
  13525. }
  13526. case map[uint]uintptr:
  13527. fastpathTV.DecMapUintUintptrV(v, false, d)
  13528. case *map[uint]uintptr:
  13529. if v2, changed2 := fastpathTV.DecMapUintUintptrV(*v, true, d); changed2 {
  13530. *v = v2
  13531. }
  13532. case map[uint]int:
  13533. fastpathTV.DecMapUintIntV(v, false, d)
  13534. case *map[uint]int:
  13535. if v2, changed2 := fastpathTV.DecMapUintIntV(*v, true, d); changed2 {
  13536. *v = v2
  13537. }
  13538. case map[uint]int8:
  13539. fastpathTV.DecMapUintInt8V(v, false, d)
  13540. case *map[uint]int8:
  13541. if v2, changed2 := fastpathTV.DecMapUintInt8V(*v, true, d); changed2 {
  13542. *v = v2
  13543. }
  13544. case map[uint]int16:
  13545. fastpathTV.DecMapUintInt16V(v, false, d)
  13546. case *map[uint]int16:
  13547. if v2, changed2 := fastpathTV.DecMapUintInt16V(*v, true, d); changed2 {
  13548. *v = v2
  13549. }
  13550. case map[uint]int32:
  13551. fastpathTV.DecMapUintInt32V(v, false, d)
  13552. case *map[uint]int32:
  13553. if v2, changed2 := fastpathTV.DecMapUintInt32V(*v, true, d); changed2 {
  13554. *v = v2
  13555. }
  13556. case map[uint]int64:
  13557. fastpathTV.DecMapUintInt64V(v, false, d)
  13558. case *map[uint]int64:
  13559. if v2, changed2 := fastpathTV.DecMapUintInt64V(*v, true, d); changed2 {
  13560. *v = v2
  13561. }
  13562. case map[uint]float32:
  13563. fastpathTV.DecMapUintFloat32V(v, false, d)
  13564. case *map[uint]float32:
  13565. if v2, changed2 := fastpathTV.DecMapUintFloat32V(*v, true, d); changed2 {
  13566. *v = v2
  13567. }
  13568. case map[uint]float64:
  13569. fastpathTV.DecMapUintFloat64V(v, false, d)
  13570. case *map[uint]float64:
  13571. if v2, changed2 := fastpathTV.DecMapUintFloat64V(*v, true, d); changed2 {
  13572. *v = v2
  13573. }
  13574. case map[uint]bool:
  13575. fastpathTV.DecMapUintBoolV(v, false, d)
  13576. case *map[uint]bool:
  13577. if v2, changed2 := fastpathTV.DecMapUintBoolV(*v, true, d); changed2 {
  13578. *v = v2
  13579. }
  13580. case map[uint8]interface{}:
  13581. fastpathTV.DecMapUint8IntfV(v, false, d)
  13582. case *map[uint8]interface{}:
  13583. if v2, changed2 := fastpathTV.DecMapUint8IntfV(*v, true, d); changed2 {
  13584. *v = v2
  13585. }
  13586. case map[uint8]string:
  13587. fastpathTV.DecMapUint8StringV(v, false, d)
  13588. case *map[uint8]string:
  13589. if v2, changed2 := fastpathTV.DecMapUint8StringV(*v, true, d); changed2 {
  13590. *v = v2
  13591. }
  13592. case map[uint8]uint:
  13593. fastpathTV.DecMapUint8UintV(v, false, d)
  13594. case *map[uint8]uint:
  13595. if v2, changed2 := fastpathTV.DecMapUint8UintV(*v, true, d); changed2 {
  13596. *v = v2
  13597. }
  13598. case map[uint8]uint8:
  13599. fastpathTV.DecMapUint8Uint8V(v, false, d)
  13600. case *map[uint8]uint8:
  13601. if v2, changed2 := fastpathTV.DecMapUint8Uint8V(*v, true, d); changed2 {
  13602. *v = v2
  13603. }
  13604. case map[uint8]uint16:
  13605. fastpathTV.DecMapUint8Uint16V(v, false, d)
  13606. case *map[uint8]uint16:
  13607. if v2, changed2 := fastpathTV.DecMapUint8Uint16V(*v, true, d); changed2 {
  13608. *v = v2
  13609. }
  13610. case map[uint8]uint32:
  13611. fastpathTV.DecMapUint8Uint32V(v, false, d)
  13612. case *map[uint8]uint32:
  13613. if v2, changed2 := fastpathTV.DecMapUint8Uint32V(*v, true, d); changed2 {
  13614. *v = v2
  13615. }
  13616. case map[uint8]uint64:
  13617. fastpathTV.DecMapUint8Uint64V(v, false, d)
  13618. case *map[uint8]uint64:
  13619. if v2, changed2 := fastpathTV.DecMapUint8Uint64V(*v, true, d); changed2 {
  13620. *v = v2
  13621. }
  13622. case map[uint8]uintptr:
  13623. fastpathTV.DecMapUint8UintptrV(v, false, d)
  13624. case *map[uint8]uintptr:
  13625. if v2, changed2 := fastpathTV.DecMapUint8UintptrV(*v, true, d); changed2 {
  13626. *v = v2
  13627. }
  13628. case map[uint8]int:
  13629. fastpathTV.DecMapUint8IntV(v, false, d)
  13630. case *map[uint8]int:
  13631. if v2, changed2 := fastpathTV.DecMapUint8IntV(*v, true, d); changed2 {
  13632. *v = v2
  13633. }
  13634. case map[uint8]int8:
  13635. fastpathTV.DecMapUint8Int8V(v, false, d)
  13636. case *map[uint8]int8:
  13637. if v2, changed2 := fastpathTV.DecMapUint8Int8V(*v, true, d); changed2 {
  13638. *v = v2
  13639. }
  13640. case map[uint8]int16:
  13641. fastpathTV.DecMapUint8Int16V(v, false, d)
  13642. case *map[uint8]int16:
  13643. if v2, changed2 := fastpathTV.DecMapUint8Int16V(*v, true, d); changed2 {
  13644. *v = v2
  13645. }
  13646. case map[uint8]int32:
  13647. fastpathTV.DecMapUint8Int32V(v, false, d)
  13648. case *map[uint8]int32:
  13649. if v2, changed2 := fastpathTV.DecMapUint8Int32V(*v, true, d); changed2 {
  13650. *v = v2
  13651. }
  13652. case map[uint8]int64:
  13653. fastpathTV.DecMapUint8Int64V(v, false, d)
  13654. case *map[uint8]int64:
  13655. if v2, changed2 := fastpathTV.DecMapUint8Int64V(*v, true, d); changed2 {
  13656. *v = v2
  13657. }
  13658. case map[uint8]float32:
  13659. fastpathTV.DecMapUint8Float32V(v, false, d)
  13660. case *map[uint8]float32:
  13661. if v2, changed2 := fastpathTV.DecMapUint8Float32V(*v, true, d); changed2 {
  13662. *v = v2
  13663. }
  13664. case map[uint8]float64:
  13665. fastpathTV.DecMapUint8Float64V(v, false, d)
  13666. case *map[uint8]float64:
  13667. if v2, changed2 := fastpathTV.DecMapUint8Float64V(*v, true, d); changed2 {
  13668. *v = v2
  13669. }
  13670. case map[uint8]bool:
  13671. fastpathTV.DecMapUint8BoolV(v, false, d)
  13672. case *map[uint8]bool:
  13673. if v2, changed2 := fastpathTV.DecMapUint8BoolV(*v, true, d); changed2 {
  13674. *v = v2
  13675. }
  13676. case []uint16:
  13677. fastpathTV.DecSliceUint16V(v, false, d)
  13678. case *[]uint16:
  13679. if v2, changed2 := fastpathTV.DecSliceUint16V(*v, true, d); changed2 {
  13680. *v = v2
  13681. }
  13682. case map[uint16]interface{}:
  13683. fastpathTV.DecMapUint16IntfV(v, false, d)
  13684. case *map[uint16]interface{}:
  13685. if v2, changed2 := fastpathTV.DecMapUint16IntfV(*v, true, d); changed2 {
  13686. *v = v2
  13687. }
  13688. case map[uint16]string:
  13689. fastpathTV.DecMapUint16StringV(v, false, d)
  13690. case *map[uint16]string:
  13691. if v2, changed2 := fastpathTV.DecMapUint16StringV(*v, true, d); changed2 {
  13692. *v = v2
  13693. }
  13694. case map[uint16]uint:
  13695. fastpathTV.DecMapUint16UintV(v, false, d)
  13696. case *map[uint16]uint:
  13697. if v2, changed2 := fastpathTV.DecMapUint16UintV(*v, true, d); changed2 {
  13698. *v = v2
  13699. }
  13700. case map[uint16]uint8:
  13701. fastpathTV.DecMapUint16Uint8V(v, false, d)
  13702. case *map[uint16]uint8:
  13703. if v2, changed2 := fastpathTV.DecMapUint16Uint8V(*v, true, d); changed2 {
  13704. *v = v2
  13705. }
  13706. case map[uint16]uint16:
  13707. fastpathTV.DecMapUint16Uint16V(v, false, d)
  13708. case *map[uint16]uint16:
  13709. if v2, changed2 := fastpathTV.DecMapUint16Uint16V(*v, true, d); changed2 {
  13710. *v = v2
  13711. }
  13712. case map[uint16]uint32:
  13713. fastpathTV.DecMapUint16Uint32V(v, false, d)
  13714. case *map[uint16]uint32:
  13715. if v2, changed2 := fastpathTV.DecMapUint16Uint32V(*v, true, d); changed2 {
  13716. *v = v2
  13717. }
  13718. case map[uint16]uint64:
  13719. fastpathTV.DecMapUint16Uint64V(v, false, d)
  13720. case *map[uint16]uint64:
  13721. if v2, changed2 := fastpathTV.DecMapUint16Uint64V(*v, true, d); changed2 {
  13722. *v = v2
  13723. }
  13724. case map[uint16]uintptr:
  13725. fastpathTV.DecMapUint16UintptrV(v, false, d)
  13726. case *map[uint16]uintptr:
  13727. if v2, changed2 := fastpathTV.DecMapUint16UintptrV(*v, true, d); changed2 {
  13728. *v = v2
  13729. }
  13730. case map[uint16]int:
  13731. fastpathTV.DecMapUint16IntV(v, false, d)
  13732. case *map[uint16]int:
  13733. if v2, changed2 := fastpathTV.DecMapUint16IntV(*v, true, d); changed2 {
  13734. *v = v2
  13735. }
  13736. case map[uint16]int8:
  13737. fastpathTV.DecMapUint16Int8V(v, false, d)
  13738. case *map[uint16]int8:
  13739. if v2, changed2 := fastpathTV.DecMapUint16Int8V(*v, true, d); changed2 {
  13740. *v = v2
  13741. }
  13742. case map[uint16]int16:
  13743. fastpathTV.DecMapUint16Int16V(v, false, d)
  13744. case *map[uint16]int16:
  13745. if v2, changed2 := fastpathTV.DecMapUint16Int16V(*v, true, d); changed2 {
  13746. *v = v2
  13747. }
  13748. case map[uint16]int32:
  13749. fastpathTV.DecMapUint16Int32V(v, false, d)
  13750. case *map[uint16]int32:
  13751. if v2, changed2 := fastpathTV.DecMapUint16Int32V(*v, true, d); changed2 {
  13752. *v = v2
  13753. }
  13754. case map[uint16]int64:
  13755. fastpathTV.DecMapUint16Int64V(v, false, d)
  13756. case *map[uint16]int64:
  13757. if v2, changed2 := fastpathTV.DecMapUint16Int64V(*v, true, d); changed2 {
  13758. *v = v2
  13759. }
  13760. case map[uint16]float32:
  13761. fastpathTV.DecMapUint16Float32V(v, false, d)
  13762. case *map[uint16]float32:
  13763. if v2, changed2 := fastpathTV.DecMapUint16Float32V(*v, true, d); changed2 {
  13764. *v = v2
  13765. }
  13766. case map[uint16]float64:
  13767. fastpathTV.DecMapUint16Float64V(v, false, d)
  13768. case *map[uint16]float64:
  13769. if v2, changed2 := fastpathTV.DecMapUint16Float64V(*v, true, d); changed2 {
  13770. *v = v2
  13771. }
  13772. case map[uint16]bool:
  13773. fastpathTV.DecMapUint16BoolV(v, false, d)
  13774. case *map[uint16]bool:
  13775. if v2, changed2 := fastpathTV.DecMapUint16BoolV(*v, true, d); changed2 {
  13776. *v = v2
  13777. }
  13778. case []uint32:
  13779. fastpathTV.DecSliceUint32V(v, false, d)
  13780. case *[]uint32:
  13781. if v2, changed2 := fastpathTV.DecSliceUint32V(*v, true, d); changed2 {
  13782. *v = v2
  13783. }
  13784. case map[uint32]interface{}:
  13785. fastpathTV.DecMapUint32IntfV(v, false, d)
  13786. case *map[uint32]interface{}:
  13787. if v2, changed2 := fastpathTV.DecMapUint32IntfV(*v, true, d); changed2 {
  13788. *v = v2
  13789. }
  13790. case map[uint32]string:
  13791. fastpathTV.DecMapUint32StringV(v, false, d)
  13792. case *map[uint32]string:
  13793. if v2, changed2 := fastpathTV.DecMapUint32StringV(*v, true, d); changed2 {
  13794. *v = v2
  13795. }
  13796. case map[uint32]uint:
  13797. fastpathTV.DecMapUint32UintV(v, false, d)
  13798. case *map[uint32]uint:
  13799. if v2, changed2 := fastpathTV.DecMapUint32UintV(*v, true, d); changed2 {
  13800. *v = v2
  13801. }
  13802. case map[uint32]uint8:
  13803. fastpathTV.DecMapUint32Uint8V(v, false, d)
  13804. case *map[uint32]uint8:
  13805. if v2, changed2 := fastpathTV.DecMapUint32Uint8V(*v, true, d); changed2 {
  13806. *v = v2
  13807. }
  13808. case map[uint32]uint16:
  13809. fastpathTV.DecMapUint32Uint16V(v, false, d)
  13810. case *map[uint32]uint16:
  13811. if v2, changed2 := fastpathTV.DecMapUint32Uint16V(*v, true, d); changed2 {
  13812. *v = v2
  13813. }
  13814. case map[uint32]uint32:
  13815. fastpathTV.DecMapUint32Uint32V(v, false, d)
  13816. case *map[uint32]uint32:
  13817. if v2, changed2 := fastpathTV.DecMapUint32Uint32V(*v, true, d); changed2 {
  13818. *v = v2
  13819. }
  13820. case map[uint32]uint64:
  13821. fastpathTV.DecMapUint32Uint64V(v, false, d)
  13822. case *map[uint32]uint64:
  13823. if v2, changed2 := fastpathTV.DecMapUint32Uint64V(*v, true, d); changed2 {
  13824. *v = v2
  13825. }
  13826. case map[uint32]uintptr:
  13827. fastpathTV.DecMapUint32UintptrV(v, false, d)
  13828. case *map[uint32]uintptr:
  13829. if v2, changed2 := fastpathTV.DecMapUint32UintptrV(*v, true, d); changed2 {
  13830. *v = v2
  13831. }
  13832. case map[uint32]int:
  13833. fastpathTV.DecMapUint32IntV(v, false, d)
  13834. case *map[uint32]int:
  13835. if v2, changed2 := fastpathTV.DecMapUint32IntV(*v, true, d); changed2 {
  13836. *v = v2
  13837. }
  13838. case map[uint32]int8:
  13839. fastpathTV.DecMapUint32Int8V(v, false, d)
  13840. case *map[uint32]int8:
  13841. if v2, changed2 := fastpathTV.DecMapUint32Int8V(*v, true, d); changed2 {
  13842. *v = v2
  13843. }
  13844. case map[uint32]int16:
  13845. fastpathTV.DecMapUint32Int16V(v, false, d)
  13846. case *map[uint32]int16:
  13847. if v2, changed2 := fastpathTV.DecMapUint32Int16V(*v, true, d); changed2 {
  13848. *v = v2
  13849. }
  13850. case map[uint32]int32:
  13851. fastpathTV.DecMapUint32Int32V(v, false, d)
  13852. case *map[uint32]int32:
  13853. if v2, changed2 := fastpathTV.DecMapUint32Int32V(*v, true, d); changed2 {
  13854. *v = v2
  13855. }
  13856. case map[uint32]int64:
  13857. fastpathTV.DecMapUint32Int64V(v, false, d)
  13858. case *map[uint32]int64:
  13859. if v2, changed2 := fastpathTV.DecMapUint32Int64V(*v, true, d); changed2 {
  13860. *v = v2
  13861. }
  13862. case map[uint32]float32:
  13863. fastpathTV.DecMapUint32Float32V(v, false, d)
  13864. case *map[uint32]float32:
  13865. if v2, changed2 := fastpathTV.DecMapUint32Float32V(*v, true, d); changed2 {
  13866. *v = v2
  13867. }
  13868. case map[uint32]float64:
  13869. fastpathTV.DecMapUint32Float64V(v, false, d)
  13870. case *map[uint32]float64:
  13871. if v2, changed2 := fastpathTV.DecMapUint32Float64V(*v, true, d); changed2 {
  13872. *v = v2
  13873. }
  13874. case map[uint32]bool:
  13875. fastpathTV.DecMapUint32BoolV(v, false, d)
  13876. case *map[uint32]bool:
  13877. if v2, changed2 := fastpathTV.DecMapUint32BoolV(*v, true, d); changed2 {
  13878. *v = v2
  13879. }
  13880. case []uint64:
  13881. fastpathTV.DecSliceUint64V(v, false, d)
  13882. case *[]uint64:
  13883. if v2, changed2 := fastpathTV.DecSliceUint64V(*v, true, d); changed2 {
  13884. *v = v2
  13885. }
  13886. case map[uint64]interface{}:
  13887. fastpathTV.DecMapUint64IntfV(v, false, d)
  13888. case *map[uint64]interface{}:
  13889. if v2, changed2 := fastpathTV.DecMapUint64IntfV(*v, true, d); changed2 {
  13890. *v = v2
  13891. }
  13892. case map[uint64]string:
  13893. fastpathTV.DecMapUint64StringV(v, false, d)
  13894. case *map[uint64]string:
  13895. if v2, changed2 := fastpathTV.DecMapUint64StringV(*v, true, d); changed2 {
  13896. *v = v2
  13897. }
  13898. case map[uint64]uint:
  13899. fastpathTV.DecMapUint64UintV(v, false, d)
  13900. case *map[uint64]uint:
  13901. if v2, changed2 := fastpathTV.DecMapUint64UintV(*v, true, d); changed2 {
  13902. *v = v2
  13903. }
  13904. case map[uint64]uint8:
  13905. fastpathTV.DecMapUint64Uint8V(v, false, d)
  13906. case *map[uint64]uint8:
  13907. if v2, changed2 := fastpathTV.DecMapUint64Uint8V(*v, true, d); changed2 {
  13908. *v = v2
  13909. }
  13910. case map[uint64]uint16:
  13911. fastpathTV.DecMapUint64Uint16V(v, false, d)
  13912. case *map[uint64]uint16:
  13913. if v2, changed2 := fastpathTV.DecMapUint64Uint16V(*v, true, d); changed2 {
  13914. *v = v2
  13915. }
  13916. case map[uint64]uint32:
  13917. fastpathTV.DecMapUint64Uint32V(v, false, d)
  13918. case *map[uint64]uint32:
  13919. if v2, changed2 := fastpathTV.DecMapUint64Uint32V(*v, true, d); changed2 {
  13920. *v = v2
  13921. }
  13922. case map[uint64]uint64:
  13923. fastpathTV.DecMapUint64Uint64V(v, false, d)
  13924. case *map[uint64]uint64:
  13925. if v2, changed2 := fastpathTV.DecMapUint64Uint64V(*v, true, d); changed2 {
  13926. *v = v2
  13927. }
  13928. case map[uint64]uintptr:
  13929. fastpathTV.DecMapUint64UintptrV(v, false, d)
  13930. case *map[uint64]uintptr:
  13931. if v2, changed2 := fastpathTV.DecMapUint64UintptrV(*v, true, d); changed2 {
  13932. *v = v2
  13933. }
  13934. case map[uint64]int:
  13935. fastpathTV.DecMapUint64IntV(v, false, d)
  13936. case *map[uint64]int:
  13937. if v2, changed2 := fastpathTV.DecMapUint64IntV(*v, true, d); changed2 {
  13938. *v = v2
  13939. }
  13940. case map[uint64]int8:
  13941. fastpathTV.DecMapUint64Int8V(v, false, d)
  13942. case *map[uint64]int8:
  13943. if v2, changed2 := fastpathTV.DecMapUint64Int8V(*v, true, d); changed2 {
  13944. *v = v2
  13945. }
  13946. case map[uint64]int16:
  13947. fastpathTV.DecMapUint64Int16V(v, false, d)
  13948. case *map[uint64]int16:
  13949. if v2, changed2 := fastpathTV.DecMapUint64Int16V(*v, true, d); changed2 {
  13950. *v = v2
  13951. }
  13952. case map[uint64]int32:
  13953. fastpathTV.DecMapUint64Int32V(v, false, d)
  13954. case *map[uint64]int32:
  13955. if v2, changed2 := fastpathTV.DecMapUint64Int32V(*v, true, d); changed2 {
  13956. *v = v2
  13957. }
  13958. case map[uint64]int64:
  13959. fastpathTV.DecMapUint64Int64V(v, false, d)
  13960. case *map[uint64]int64:
  13961. if v2, changed2 := fastpathTV.DecMapUint64Int64V(*v, true, d); changed2 {
  13962. *v = v2
  13963. }
  13964. case map[uint64]float32:
  13965. fastpathTV.DecMapUint64Float32V(v, false, d)
  13966. case *map[uint64]float32:
  13967. if v2, changed2 := fastpathTV.DecMapUint64Float32V(*v, true, d); changed2 {
  13968. *v = v2
  13969. }
  13970. case map[uint64]float64:
  13971. fastpathTV.DecMapUint64Float64V(v, false, d)
  13972. case *map[uint64]float64:
  13973. if v2, changed2 := fastpathTV.DecMapUint64Float64V(*v, true, d); changed2 {
  13974. *v = v2
  13975. }
  13976. case map[uint64]bool:
  13977. fastpathTV.DecMapUint64BoolV(v, false, d)
  13978. case *map[uint64]bool:
  13979. if v2, changed2 := fastpathTV.DecMapUint64BoolV(*v, true, d); changed2 {
  13980. *v = v2
  13981. }
  13982. case []uintptr:
  13983. fastpathTV.DecSliceUintptrV(v, false, d)
  13984. case *[]uintptr:
  13985. if v2, changed2 := fastpathTV.DecSliceUintptrV(*v, true, d); changed2 {
  13986. *v = v2
  13987. }
  13988. case map[uintptr]interface{}:
  13989. fastpathTV.DecMapUintptrIntfV(v, false, d)
  13990. case *map[uintptr]interface{}:
  13991. if v2, changed2 := fastpathTV.DecMapUintptrIntfV(*v, true, d); changed2 {
  13992. *v = v2
  13993. }
  13994. case map[uintptr]string:
  13995. fastpathTV.DecMapUintptrStringV(v, false, d)
  13996. case *map[uintptr]string:
  13997. if v2, changed2 := fastpathTV.DecMapUintptrStringV(*v, true, d); changed2 {
  13998. *v = v2
  13999. }
  14000. case map[uintptr]uint:
  14001. fastpathTV.DecMapUintptrUintV(v, false, d)
  14002. case *map[uintptr]uint:
  14003. if v2, changed2 := fastpathTV.DecMapUintptrUintV(*v, true, d); changed2 {
  14004. *v = v2
  14005. }
  14006. case map[uintptr]uint8:
  14007. fastpathTV.DecMapUintptrUint8V(v, false, d)
  14008. case *map[uintptr]uint8:
  14009. if v2, changed2 := fastpathTV.DecMapUintptrUint8V(*v, true, d); changed2 {
  14010. *v = v2
  14011. }
  14012. case map[uintptr]uint16:
  14013. fastpathTV.DecMapUintptrUint16V(v, false, d)
  14014. case *map[uintptr]uint16:
  14015. if v2, changed2 := fastpathTV.DecMapUintptrUint16V(*v, true, d); changed2 {
  14016. *v = v2
  14017. }
  14018. case map[uintptr]uint32:
  14019. fastpathTV.DecMapUintptrUint32V(v, false, d)
  14020. case *map[uintptr]uint32:
  14021. if v2, changed2 := fastpathTV.DecMapUintptrUint32V(*v, true, d); changed2 {
  14022. *v = v2
  14023. }
  14024. case map[uintptr]uint64:
  14025. fastpathTV.DecMapUintptrUint64V(v, false, d)
  14026. case *map[uintptr]uint64:
  14027. if v2, changed2 := fastpathTV.DecMapUintptrUint64V(*v, true, d); changed2 {
  14028. *v = v2
  14029. }
  14030. case map[uintptr]uintptr:
  14031. fastpathTV.DecMapUintptrUintptrV(v, false, d)
  14032. case *map[uintptr]uintptr:
  14033. if v2, changed2 := fastpathTV.DecMapUintptrUintptrV(*v, true, d); changed2 {
  14034. *v = v2
  14035. }
  14036. case map[uintptr]int:
  14037. fastpathTV.DecMapUintptrIntV(v, false, d)
  14038. case *map[uintptr]int:
  14039. if v2, changed2 := fastpathTV.DecMapUintptrIntV(*v, true, d); changed2 {
  14040. *v = v2
  14041. }
  14042. case map[uintptr]int8:
  14043. fastpathTV.DecMapUintptrInt8V(v, false, d)
  14044. case *map[uintptr]int8:
  14045. if v2, changed2 := fastpathTV.DecMapUintptrInt8V(*v, true, d); changed2 {
  14046. *v = v2
  14047. }
  14048. case map[uintptr]int16:
  14049. fastpathTV.DecMapUintptrInt16V(v, false, d)
  14050. case *map[uintptr]int16:
  14051. if v2, changed2 := fastpathTV.DecMapUintptrInt16V(*v, true, d); changed2 {
  14052. *v = v2
  14053. }
  14054. case map[uintptr]int32:
  14055. fastpathTV.DecMapUintptrInt32V(v, false, d)
  14056. case *map[uintptr]int32:
  14057. if v2, changed2 := fastpathTV.DecMapUintptrInt32V(*v, true, d); changed2 {
  14058. *v = v2
  14059. }
  14060. case map[uintptr]int64:
  14061. fastpathTV.DecMapUintptrInt64V(v, false, d)
  14062. case *map[uintptr]int64:
  14063. if v2, changed2 := fastpathTV.DecMapUintptrInt64V(*v, true, d); changed2 {
  14064. *v = v2
  14065. }
  14066. case map[uintptr]float32:
  14067. fastpathTV.DecMapUintptrFloat32V(v, false, d)
  14068. case *map[uintptr]float32:
  14069. if v2, changed2 := fastpathTV.DecMapUintptrFloat32V(*v, true, d); changed2 {
  14070. *v = v2
  14071. }
  14072. case map[uintptr]float64:
  14073. fastpathTV.DecMapUintptrFloat64V(v, false, d)
  14074. case *map[uintptr]float64:
  14075. if v2, changed2 := fastpathTV.DecMapUintptrFloat64V(*v, true, d); changed2 {
  14076. *v = v2
  14077. }
  14078. case map[uintptr]bool:
  14079. fastpathTV.DecMapUintptrBoolV(v, false, d)
  14080. case *map[uintptr]bool:
  14081. if v2, changed2 := fastpathTV.DecMapUintptrBoolV(*v, true, d); changed2 {
  14082. *v = v2
  14083. }
  14084. case []int:
  14085. fastpathTV.DecSliceIntV(v, false, d)
  14086. case *[]int:
  14087. if v2, changed2 := fastpathTV.DecSliceIntV(*v, true, d); changed2 {
  14088. *v = v2
  14089. }
  14090. case map[int]interface{}:
  14091. fastpathTV.DecMapIntIntfV(v, false, d)
  14092. case *map[int]interface{}:
  14093. if v2, changed2 := fastpathTV.DecMapIntIntfV(*v, true, d); changed2 {
  14094. *v = v2
  14095. }
  14096. case map[int]string:
  14097. fastpathTV.DecMapIntStringV(v, false, d)
  14098. case *map[int]string:
  14099. if v2, changed2 := fastpathTV.DecMapIntStringV(*v, true, d); changed2 {
  14100. *v = v2
  14101. }
  14102. case map[int]uint:
  14103. fastpathTV.DecMapIntUintV(v, false, d)
  14104. case *map[int]uint:
  14105. if v2, changed2 := fastpathTV.DecMapIntUintV(*v, true, d); changed2 {
  14106. *v = v2
  14107. }
  14108. case map[int]uint8:
  14109. fastpathTV.DecMapIntUint8V(v, false, d)
  14110. case *map[int]uint8:
  14111. if v2, changed2 := fastpathTV.DecMapIntUint8V(*v, true, d); changed2 {
  14112. *v = v2
  14113. }
  14114. case map[int]uint16:
  14115. fastpathTV.DecMapIntUint16V(v, false, d)
  14116. case *map[int]uint16:
  14117. if v2, changed2 := fastpathTV.DecMapIntUint16V(*v, true, d); changed2 {
  14118. *v = v2
  14119. }
  14120. case map[int]uint32:
  14121. fastpathTV.DecMapIntUint32V(v, false, d)
  14122. case *map[int]uint32:
  14123. if v2, changed2 := fastpathTV.DecMapIntUint32V(*v, true, d); changed2 {
  14124. *v = v2
  14125. }
  14126. case map[int]uint64:
  14127. fastpathTV.DecMapIntUint64V(v, false, d)
  14128. case *map[int]uint64:
  14129. if v2, changed2 := fastpathTV.DecMapIntUint64V(*v, true, d); changed2 {
  14130. *v = v2
  14131. }
  14132. case map[int]uintptr:
  14133. fastpathTV.DecMapIntUintptrV(v, false, d)
  14134. case *map[int]uintptr:
  14135. if v2, changed2 := fastpathTV.DecMapIntUintptrV(*v, true, d); changed2 {
  14136. *v = v2
  14137. }
  14138. case map[int]int:
  14139. fastpathTV.DecMapIntIntV(v, false, d)
  14140. case *map[int]int:
  14141. if v2, changed2 := fastpathTV.DecMapIntIntV(*v, true, d); changed2 {
  14142. *v = v2
  14143. }
  14144. case map[int]int8:
  14145. fastpathTV.DecMapIntInt8V(v, false, d)
  14146. case *map[int]int8:
  14147. if v2, changed2 := fastpathTV.DecMapIntInt8V(*v, true, d); changed2 {
  14148. *v = v2
  14149. }
  14150. case map[int]int16:
  14151. fastpathTV.DecMapIntInt16V(v, false, d)
  14152. case *map[int]int16:
  14153. if v2, changed2 := fastpathTV.DecMapIntInt16V(*v, true, d); changed2 {
  14154. *v = v2
  14155. }
  14156. case map[int]int32:
  14157. fastpathTV.DecMapIntInt32V(v, false, d)
  14158. case *map[int]int32:
  14159. if v2, changed2 := fastpathTV.DecMapIntInt32V(*v, true, d); changed2 {
  14160. *v = v2
  14161. }
  14162. case map[int]int64:
  14163. fastpathTV.DecMapIntInt64V(v, false, d)
  14164. case *map[int]int64:
  14165. if v2, changed2 := fastpathTV.DecMapIntInt64V(*v, true, d); changed2 {
  14166. *v = v2
  14167. }
  14168. case map[int]float32:
  14169. fastpathTV.DecMapIntFloat32V(v, false, d)
  14170. case *map[int]float32:
  14171. if v2, changed2 := fastpathTV.DecMapIntFloat32V(*v, true, d); changed2 {
  14172. *v = v2
  14173. }
  14174. case map[int]float64:
  14175. fastpathTV.DecMapIntFloat64V(v, false, d)
  14176. case *map[int]float64:
  14177. if v2, changed2 := fastpathTV.DecMapIntFloat64V(*v, true, d); changed2 {
  14178. *v = v2
  14179. }
  14180. case map[int]bool:
  14181. fastpathTV.DecMapIntBoolV(v, false, d)
  14182. case *map[int]bool:
  14183. if v2, changed2 := fastpathTV.DecMapIntBoolV(*v, true, d); changed2 {
  14184. *v = v2
  14185. }
  14186. case []int8:
  14187. fastpathTV.DecSliceInt8V(v, false, d)
  14188. case *[]int8:
  14189. if v2, changed2 := fastpathTV.DecSliceInt8V(*v, true, d); changed2 {
  14190. *v = v2
  14191. }
  14192. case map[int8]interface{}:
  14193. fastpathTV.DecMapInt8IntfV(v, false, d)
  14194. case *map[int8]interface{}:
  14195. if v2, changed2 := fastpathTV.DecMapInt8IntfV(*v, true, d); changed2 {
  14196. *v = v2
  14197. }
  14198. case map[int8]string:
  14199. fastpathTV.DecMapInt8StringV(v, false, d)
  14200. case *map[int8]string:
  14201. if v2, changed2 := fastpathTV.DecMapInt8StringV(*v, true, d); changed2 {
  14202. *v = v2
  14203. }
  14204. case map[int8]uint:
  14205. fastpathTV.DecMapInt8UintV(v, false, d)
  14206. case *map[int8]uint:
  14207. if v2, changed2 := fastpathTV.DecMapInt8UintV(*v, true, d); changed2 {
  14208. *v = v2
  14209. }
  14210. case map[int8]uint8:
  14211. fastpathTV.DecMapInt8Uint8V(v, false, d)
  14212. case *map[int8]uint8:
  14213. if v2, changed2 := fastpathTV.DecMapInt8Uint8V(*v, true, d); changed2 {
  14214. *v = v2
  14215. }
  14216. case map[int8]uint16:
  14217. fastpathTV.DecMapInt8Uint16V(v, false, d)
  14218. case *map[int8]uint16:
  14219. if v2, changed2 := fastpathTV.DecMapInt8Uint16V(*v, true, d); changed2 {
  14220. *v = v2
  14221. }
  14222. case map[int8]uint32:
  14223. fastpathTV.DecMapInt8Uint32V(v, false, d)
  14224. case *map[int8]uint32:
  14225. if v2, changed2 := fastpathTV.DecMapInt8Uint32V(*v, true, d); changed2 {
  14226. *v = v2
  14227. }
  14228. case map[int8]uint64:
  14229. fastpathTV.DecMapInt8Uint64V(v, false, d)
  14230. case *map[int8]uint64:
  14231. if v2, changed2 := fastpathTV.DecMapInt8Uint64V(*v, true, d); changed2 {
  14232. *v = v2
  14233. }
  14234. case map[int8]uintptr:
  14235. fastpathTV.DecMapInt8UintptrV(v, false, d)
  14236. case *map[int8]uintptr:
  14237. if v2, changed2 := fastpathTV.DecMapInt8UintptrV(*v, true, d); changed2 {
  14238. *v = v2
  14239. }
  14240. case map[int8]int:
  14241. fastpathTV.DecMapInt8IntV(v, false, d)
  14242. case *map[int8]int:
  14243. if v2, changed2 := fastpathTV.DecMapInt8IntV(*v, true, d); changed2 {
  14244. *v = v2
  14245. }
  14246. case map[int8]int8:
  14247. fastpathTV.DecMapInt8Int8V(v, false, d)
  14248. case *map[int8]int8:
  14249. if v2, changed2 := fastpathTV.DecMapInt8Int8V(*v, true, d); changed2 {
  14250. *v = v2
  14251. }
  14252. case map[int8]int16:
  14253. fastpathTV.DecMapInt8Int16V(v, false, d)
  14254. case *map[int8]int16:
  14255. if v2, changed2 := fastpathTV.DecMapInt8Int16V(*v, true, d); changed2 {
  14256. *v = v2
  14257. }
  14258. case map[int8]int32:
  14259. fastpathTV.DecMapInt8Int32V(v, false, d)
  14260. case *map[int8]int32:
  14261. if v2, changed2 := fastpathTV.DecMapInt8Int32V(*v, true, d); changed2 {
  14262. *v = v2
  14263. }
  14264. case map[int8]int64:
  14265. fastpathTV.DecMapInt8Int64V(v, false, d)
  14266. case *map[int8]int64:
  14267. if v2, changed2 := fastpathTV.DecMapInt8Int64V(*v, true, d); changed2 {
  14268. *v = v2
  14269. }
  14270. case map[int8]float32:
  14271. fastpathTV.DecMapInt8Float32V(v, false, d)
  14272. case *map[int8]float32:
  14273. if v2, changed2 := fastpathTV.DecMapInt8Float32V(*v, true, d); changed2 {
  14274. *v = v2
  14275. }
  14276. case map[int8]float64:
  14277. fastpathTV.DecMapInt8Float64V(v, false, d)
  14278. case *map[int8]float64:
  14279. if v2, changed2 := fastpathTV.DecMapInt8Float64V(*v, true, d); changed2 {
  14280. *v = v2
  14281. }
  14282. case map[int8]bool:
  14283. fastpathTV.DecMapInt8BoolV(v, false, d)
  14284. case *map[int8]bool:
  14285. if v2, changed2 := fastpathTV.DecMapInt8BoolV(*v, true, d); changed2 {
  14286. *v = v2
  14287. }
  14288. case []int16:
  14289. fastpathTV.DecSliceInt16V(v, false, d)
  14290. case *[]int16:
  14291. if v2, changed2 := fastpathTV.DecSliceInt16V(*v, true, d); changed2 {
  14292. *v = v2
  14293. }
  14294. case map[int16]interface{}:
  14295. fastpathTV.DecMapInt16IntfV(v, false, d)
  14296. case *map[int16]interface{}:
  14297. if v2, changed2 := fastpathTV.DecMapInt16IntfV(*v, true, d); changed2 {
  14298. *v = v2
  14299. }
  14300. case map[int16]string:
  14301. fastpathTV.DecMapInt16StringV(v, false, d)
  14302. case *map[int16]string:
  14303. if v2, changed2 := fastpathTV.DecMapInt16StringV(*v, true, d); changed2 {
  14304. *v = v2
  14305. }
  14306. case map[int16]uint:
  14307. fastpathTV.DecMapInt16UintV(v, false, d)
  14308. case *map[int16]uint:
  14309. if v2, changed2 := fastpathTV.DecMapInt16UintV(*v, true, d); changed2 {
  14310. *v = v2
  14311. }
  14312. case map[int16]uint8:
  14313. fastpathTV.DecMapInt16Uint8V(v, false, d)
  14314. case *map[int16]uint8:
  14315. if v2, changed2 := fastpathTV.DecMapInt16Uint8V(*v, true, d); changed2 {
  14316. *v = v2
  14317. }
  14318. case map[int16]uint16:
  14319. fastpathTV.DecMapInt16Uint16V(v, false, d)
  14320. case *map[int16]uint16:
  14321. if v2, changed2 := fastpathTV.DecMapInt16Uint16V(*v, true, d); changed2 {
  14322. *v = v2
  14323. }
  14324. case map[int16]uint32:
  14325. fastpathTV.DecMapInt16Uint32V(v, false, d)
  14326. case *map[int16]uint32:
  14327. if v2, changed2 := fastpathTV.DecMapInt16Uint32V(*v, true, d); changed2 {
  14328. *v = v2
  14329. }
  14330. case map[int16]uint64:
  14331. fastpathTV.DecMapInt16Uint64V(v, false, d)
  14332. case *map[int16]uint64:
  14333. if v2, changed2 := fastpathTV.DecMapInt16Uint64V(*v, true, d); changed2 {
  14334. *v = v2
  14335. }
  14336. case map[int16]uintptr:
  14337. fastpathTV.DecMapInt16UintptrV(v, false, d)
  14338. case *map[int16]uintptr:
  14339. if v2, changed2 := fastpathTV.DecMapInt16UintptrV(*v, true, d); changed2 {
  14340. *v = v2
  14341. }
  14342. case map[int16]int:
  14343. fastpathTV.DecMapInt16IntV(v, false, d)
  14344. case *map[int16]int:
  14345. if v2, changed2 := fastpathTV.DecMapInt16IntV(*v, true, d); changed2 {
  14346. *v = v2
  14347. }
  14348. case map[int16]int8:
  14349. fastpathTV.DecMapInt16Int8V(v, false, d)
  14350. case *map[int16]int8:
  14351. if v2, changed2 := fastpathTV.DecMapInt16Int8V(*v, true, d); changed2 {
  14352. *v = v2
  14353. }
  14354. case map[int16]int16:
  14355. fastpathTV.DecMapInt16Int16V(v, false, d)
  14356. case *map[int16]int16:
  14357. if v2, changed2 := fastpathTV.DecMapInt16Int16V(*v, true, d); changed2 {
  14358. *v = v2
  14359. }
  14360. case map[int16]int32:
  14361. fastpathTV.DecMapInt16Int32V(v, false, d)
  14362. case *map[int16]int32:
  14363. if v2, changed2 := fastpathTV.DecMapInt16Int32V(*v, true, d); changed2 {
  14364. *v = v2
  14365. }
  14366. case map[int16]int64:
  14367. fastpathTV.DecMapInt16Int64V(v, false, d)
  14368. case *map[int16]int64:
  14369. if v2, changed2 := fastpathTV.DecMapInt16Int64V(*v, true, d); changed2 {
  14370. *v = v2
  14371. }
  14372. case map[int16]float32:
  14373. fastpathTV.DecMapInt16Float32V(v, false, d)
  14374. case *map[int16]float32:
  14375. if v2, changed2 := fastpathTV.DecMapInt16Float32V(*v, true, d); changed2 {
  14376. *v = v2
  14377. }
  14378. case map[int16]float64:
  14379. fastpathTV.DecMapInt16Float64V(v, false, d)
  14380. case *map[int16]float64:
  14381. if v2, changed2 := fastpathTV.DecMapInt16Float64V(*v, true, d); changed2 {
  14382. *v = v2
  14383. }
  14384. case map[int16]bool:
  14385. fastpathTV.DecMapInt16BoolV(v, false, d)
  14386. case *map[int16]bool:
  14387. if v2, changed2 := fastpathTV.DecMapInt16BoolV(*v, true, d); changed2 {
  14388. *v = v2
  14389. }
  14390. case []int32:
  14391. fastpathTV.DecSliceInt32V(v, false, d)
  14392. case *[]int32:
  14393. if v2, changed2 := fastpathTV.DecSliceInt32V(*v, true, d); changed2 {
  14394. *v = v2
  14395. }
  14396. case map[int32]interface{}:
  14397. fastpathTV.DecMapInt32IntfV(v, false, d)
  14398. case *map[int32]interface{}:
  14399. if v2, changed2 := fastpathTV.DecMapInt32IntfV(*v, true, d); changed2 {
  14400. *v = v2
  14401. }
  14402. case map[int32]string:
  14403. fastpathTV.DecMapInt32StringV(v, false, d)
  14404. case *map[int32]string:
  14405. if v2, changed2 := fastpathTV.DecMapInt32StringV(*v, true, d); changed2 {
  14406. *v = v2
  14407. }
  14408. case map[int32]uint:
  14409. fastpathTV.DecMapInt32UintV(v, false, d)
  14410. case *map[int32]uint:
  14411. if v2, changed2 := fastpathTV.DecMapInt32UintV(*v, true, d); changed2 {
  14412. *v = v2
  14413. }
  14414. case map[int32]uint8:
  14415. fastpathTV.DecMapInt32Uint8V(v, false, d)
  14416. case *map[int32]uint8:
  14417. if v2, changed2 := fastpathTV.DecMapInt32Uint8V(*v, true, d); changed2 {
  14418. *v = v2
  14419. }
  14420. case map[int32]uint16:
  14421. fastpathTV.DecMapInt32Uint16V(v, false, d)
  14422. case *map[int32]uint16:
  14423. if v2, changed2 := fastpathTV.DecMapInt32Uint16V(*v, true, d); changed2 {
  14424. *v = v2
  14425. }
  14426. case map[int32]uint32:
  14427. fastpathTV.DecMapInt32Uint32V(v, false, d)
  14428. case *map[int32]uint32:
  14429. if v2, changed2 := fastpathTV.DecMapInt32Uint32V(*v, true, d); changed2 {
  14430. *v = v2
  14431. }
  14432. case map[int32]uint64:
  14433. fastpathTV.DecMapInt32Uint64V(v, false, d)
  14434. case *map[int32]uint64:
  14435. if v2, changed2 := fastpathTV.DecMapInt32Uint64V(*v, true, d); changed2 {
  14436. *v = v2
  14437. }
  14438. case map[int32]uintptr:
  14439. fastpathTV.DecMapInt32UintptrV(v, false, d)
  14440. case *map[int32]uintptr:
  14441. if v2, changed2 := fastpathTV.DecMapInt32UintptrV(*v, true, d); changed2 {
  14442. *v = v2
  14443. }
  14444. case map[int32]int:
  14445. fastpathTV.DecMapInt32IntV(v, false, d)
  14446. case *map[int32]int:
  14447. if v2, changed2 := fastpathTV.DecMapInt32IntV(*v, true, d); changed2 {
  14448. *v = v2
  14449. }
  14450. case map[int32]int8:
  14451. fastpathTV.DecMapInt32Int8V(v, false, d)
  14452. case *map[int32]int8:
  14453. if v2, changed2 := fastpathTV.DecMapInt32Int8V(*v, true, d); changed2 {
  14454. *v = v2
  14455. }
  14456. case map[int32]int16:
  14457. fastpathTV.DecMapInt32Int16V(v, false, d)
  14458. case *map[int32]int16:
  14459. if v2, changed2 := fastpathTV.DecMapInt32Int16V(*v, true, d); changed2 {
  14460. *v = v2
  14461. }
  14462. case map[int32]int32:
  14463. fastpathTV.DecMapInt32Int32V(v, false, d)
  14464. case *map[int32]int32:
  14465. if v2, changed2 := fastpathTV.DecMapInt32Int32V(*v, true, d); changed2 {
  14466. *v = v2
  14467. }
  14468. case map[int32]int64:
  14469. fastpathTV.DecMapInt32Int64V(v, false, d)
  14470. case *map[int32]int64:
  14471. if v2, changed2 := fastpathTV.DecMapInt32Int64V(*v, true, d); changed2 {
  14472. *v = v2
  14473. }
  14474. case map[int32]float32:
  14475. fastpathTV.DecMapInt32Float32V(v, false, d)
  14476. case *map[int32]float32:
  14477. if v2, changed2 := fastpathTV.DecMapInt32Float32V(*v, true, d); changed2 {
  14478. *v = v2
  14479. }
  14480. case map[int32]float64:
  14481. fastpathTV.DecMapInt32Float64V(v, false, d)
  14482. case *map[int32]float64:
  14483. if v2, changed2 := fastpathTV.DecMapInt32Float64V(*v, true, d); changed2 {
  14484. *v = v2
  14485. }
  14486. case map[int32]bool:
  14487. fastpathTV.DecMapInt32BoolV(v, false, d)
  14488. case *map[int32]bool:
  14489. if v2, changed2 := fastpathTV.DecMapInt32BoolV(*v, true, d); changed2 {
  14490. *v = v2
  14491. }
  14492. case []int64:
  14493. fastpathTV.DecSliceInt64V(v, false, d)
  14494. case *[]int64:
  14495. if v2, changed2 := fastpathTV.DecSliceInt64V(*v, true, d); changed2 {
  14496. *v = v2
  14497. }
  14498. case map[int64]interface{}:
  14499. fastpathTV.DecMapInt64IntfV(v, false, d)
  14500. case *map[int64]interface{}:
  14501. if v2, changed2 := fastpathTV.DecMapInt64IntfV(*v, true, d); changed2 {
  14502. *v = v2
  14503. }
  14504. case map[int64]string:
  14505. fastpathTV.DecMapInt64StringV(v, false, d)
  14506. case *map[int64]string:
  14507. if v2, changed2 := fastpathTV.DecMapInt64StringV(*v, true, d); changed2 {
  14508. *v = v2
  14509. }
  14510. case map[int64]uint:
  14511. fastpathTV.DecMapInt64UintV(v, false, d)
  14512. case *map[int64]uint:
  14513. if v2, changed2 := fastpathTV.DecMapInt64UintV(*v, true, d); changed2 {
  14514. *v = v2
  14515. }
  14516. case map[int64]uint8:
  14517. fastpathTV.DecMapInt64Uint8V(v, false, d)
  14518. case *map[int64]uint8:
  14519. if v2, changed2 := fastpathTV.DecMapInt64Uint8V(*v, true, d); changed2 {
  14520. *v = v2
  14521. }
  14522. case map[int64]uint16:
  14523. fastpathTV.DecMapInt64Uint16V(v, false, d)
  14524. case *map[int64]uint16:
  14525. if v2, changed2 := fastpathTV.DecMapInt64Uint16V(*v, true, d); changed2 {
  14526. *v = v2
  14527. }
  14528. case map[int64]uint32:
  14529. fastpathTV.DecMapInt64Uint32V(v, false, d)
  14530. case *map[int64]uint32:
  14531. if v2, changed2 := fastpathTV.DecMapInt64Uint32V(*v, true, d); changed2 {
  14532. *v = v2
  14533. }
  14534. case map[int64]uint64:
  14535. fastpathTV.DecMapInt64Uint64V(v, false, d)
  14536. case *map[int64]uint64:
  14537. if v2, changed2 := fastpathTV.DecMapInt64Uint64V(*v, true, d); changed2 {
  14538. *v = v2
  14539. }
  14540. case map[int64]uintptr:
  14541. fastpathTV.DecMapInt64UintptrV(v, false, d)
  14542. case *map[int64]uintptr:
  14543. if v2, changed2 := fastpathTV.DecMapInt64UintptrV(*v, true, d); changed2 {
  14544. *v = v2
  14545. }
  14546. case map[int64]int:
  14547. fastpathTV.DecMapInt64IntV(v, false, d)
  14548. case *map[int64]int:
  14549. if v2, changed2 := fastpathTV.DecMapInt64IntV(*v, true, d); changed2 {
  14550. *v = v2
  14551. }
  14552. case map[int64]int8:
  14553. fastpathTV.DecMapInt64Int8V(v, false, d)
  14554. case *map[int64]int8:
  14555. if v2, changed2 := fastpathTV.DecMapInt64Int8V(*v, true, d); changed2 {
  14556. *v = v2
  14557. }
  14558. case map[int64]int16:
  14559. fastpathTV.DecMapInt64Int16V(v, false, d)
  14560. case *map[int64]int16:
  14561. if v2, changed2 := fastpathTV.DecMapInt64Int16V(*v, true, d); changed2 {
  14562. *v = v2
  14563. }
  14564. case map[int64]int32:
  14565. fastpathTV.DecMapInt64Int32V(v, false, d)
  14566. case *map[int64]int32:
  14567. if v2, changed2 := fastpathTV.DecMapInt64Int32V(*v, true, d); changed2 {
  14568. *v = v2
  14569. }
  14570. case map[int64]int64:
  14571. fastpathTV.DecMapInt64Int64V(v, false, d)
  14572. case *map[int64]int64:
  14573. if v2, changed2 := fastpathTV.DecMapInt64Int64V(*v, true, d); changed2 {
  14574. *v = v2
  14575. }
  14576. case map[int64]float32:
  14577. fastpathTV.DecMapInt64Float32V(v, false, d)
  14578. case *map[int64]float32:
  14579. if v2, changed2 := fastpathTV.DecMapInt64Float32V(*v, true, d); changed2 {
  14580. *v = v2
  14581. }
  14582. case map[int64]float64:
  14583. fastpathTV.DecMapInt64Float64V(v, false, d)
  14584. case *map[int64]float64:
  14585. if v2, changed2 := fastpathTV.DecMapInt64Float64V(*v, true, d); changed2 {
  14586. *v = v2
  14587. }
  14588. case map[int64]bool:
  14589. fastpathTV.DecMapInt64BoolV(v, false, d)
  14590. case *map[int64]bool:
  14591. if v2, changed2 := fastpathTV.DecMapInt64BoolV(*v, true, d); changed2 {
  14592. *v = v2
  14593. }
  14594. case []bool:
  14595. fastpathTV.DecSliceBoolV(v, false, d)
  14596. case *[]bool:
  14597. if v2, changed2 := fastpathTV.DecSliceBoolV(*v, true, d); changed2 {
  14598. *v = v2
  14599. }
  14600. case map[bool]interface{}:
  14601. fastpathTV.DecMapBoolIntfV(v, false, d)
  14602. case *map[bool]interface{}:
  14603. if v2, changed2 := fastpathTV.DecMapBoolIntfV(*v, true, d); changed2 {
  14604. *v = v2
  14605. }
  14606. case map[bool]string:
  14607. fastpathTV.DecMapBoolStringV(v, false, d)
  14608. case *map[bool]string:
  14609. if v2, changed2 := fastpathTV.DecMapBoolStringV(*v, true, d); changed2 {
  14610. *v = v2
  14611. }
  14612. case map[bool]uint:
  14613. fastpathTV.DecMapBoolUintV(v, false, d)
  14614. case *map[bool]uint:
  14615. if v2, changed2 := fastpathTV.DecMapBoolUintV(*v, true, d); changed2 {
  14616. *v = v2
  14617. }
  14618. case map[bool]uint8:
  14619. fastpathTV.DecMapBoolUint8V(v, false, d)
  14620. case *map[bool]uint8:
  14621. if v2, changed2 := fastpathTV.DecMapBoolUint8V(*v, true, d); changed2 {
  14622. *v = v2
  14623. }
  14624. case map[bool]uint16:
  14625. fastpathTV.DecMapBoolUint16V(v, false, d)
  14626. case *map[bool]uint16:
  14627. if v2, changed2 := fastpathTV.DecMapBoolUint16V(*v, true, d); changed2 {
  14628. *v = v2
  14629. }
  14630. case map[bool]uint32:
  14631. fastpathTV.DecMapBoolUint32V(v, false, d)
  14632. case *map[bool]uint32:
  14633. if v2, changed2 := fastpathTV.DecMapBoolUint32V(*v, true, d); changed2 {
  14634. *v = v2
  14635. }
  14636. case map[bool]uint64:
  14637. fastpathTV.DecMapBoolUint64V(v, false, d)
  14638. case *map[bool]uint64:
  14639. if v2, changed2 := fastpathTV.DecMapBoolUint64V(*v, true, d); changed2 {
  14640. *v = v2
  14641. }
  14642. case map[bool]uintptr:
  14643. fastpathTV.DecMapBoolUintptrV(v, false, d)
  14644. case *map[bool]uintptr:
  14645. if v2, changed2 := fastpathTV.DecMapBoolUintptrV(*v, true, d); changed2 {
  14646. *v = v2
  14647. }
  14648. case map[bool]int:
  14649. fastpathTV.DecMapBoolIntV(v, false, d)
  14650. case *map[bool]int:
  14651. if v2, changed2 := fastpathTV.DecMapBoolIntV(*v, true, d); changed2 {
  14652. *v = v2
  14653. }
  14654. case map[bool]int8:
  14655. fastpathTV.DecMapBoolInt8V(v, false, d)
  14656. case *map[bool]int8:
  14657. if v2, changed2 := fastpathTV.DecMapBoolInt8V(*v, true, d); changed2 {
  14658. *v = v2
  14659. }
  14660. case map[bool]int16:
  14661. fastpathTV.DecMapBoolInt16V(v, false, d)
  14662. case *map[bool]int16:
  14663. if v2, changed2 := fastpathTV.DecMapBoolInt16V(*v, true, d); changed2 {
  14664. *v = v2
  14665. }
  14666. case map[bool]int32:
  14667. fastpathTV.DecMapBoolInt32V(v, false, d)
  14668. case *map[bool]int32:
  14669. if v2, changed2 := fastpathTV.DecMapBoolInt32V(*v, true, d); changed2 {
  14670. *v = v2
  14671. }
  14672. case map[bool]int64:
  14673. fastpathTV.DecMapBoolInt64V(v, false, d)
  14674. case *map[bool]int64:
  14675. if v2, changed2 := fastpathTV.DecMapBoolInt64V(*v, true, d); changed2 {
  14676. *v = v2
  14677. }
  14678. case map[bool]float32:
  14679. fastpathTV.DecMapBoolFloat32V(v, false, d)
  14680. case *map[bool]float32:
  14681. if v2, changed2 := fastpathTV.DecMapBoolFloat32V(*v, true, d); changed2 {
  14682. *v = v2
  14683. }
  14684. case map[bool]float64:
  14685. fastpathTV.DecMapBoolFloat64V(v, false, d)
  14686. case *map[bool]float64:
  14687. if v2, changed2 := fastpathTV.DecMapBoolFloat64V(*v, true, d); changed2 {
  14688. *v = v2
  14689. }
  14690. case map[bool]bool:
  14691. fastpathTV.DecMapBoolBoolV(v, false, d)
  14692. case *map[bool]bool:
  14693. if v2, changed2 := fastpathTV.DecMapBoolBoolV(*v, true, d); changed2 {
  14694. *v = v2
  14695. }
  14696. default:
  14697. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  14698. return false
  14699. }
  14700. return true
  14701. }
  14702. func fastpathDecodeSetZeroTypeSwitch(iv interface{}) bool {
  14703. switch v := iv.(type) {
  14704. case *[]interface{}:
  14705. *v = nil
  14706. case *map[interface{}]interface{}:
  14707. *v = nil
  14708. case *map[interface{}]string:
  14709. *v = nil
  14710. case *map[interface{}]uint:
  14711. *v = nil
  14712. case *map[interface{}]uint8:
  14713. *v = nil
  14714. case *map[interface{}]uint16:
  14715. *v = nil
  14716. case *map[interface{}]uint32:
  14717. *v = nil
  14718. case *map[interface{}]uint64:
  14719. *v = nil
  14720. case *map[interface{}]uintptr:
  14721. *v = nil
  14722. case *map[interface{}]int:
  14723. *v = nil
  14724. case *map[interface{}]int8:
  14725. *v = nil
  14726. case *map[interface{}]int16:
  14727. *v = nil
  14728. case *map[interface{}]int32:
  14729. *v = nil
  14730. case *map[interface{}]int64:
  14731. *v = nil
  14732. case *map[interface{}]float32:
  14733. *v = nil
  14734. case *map[interface{}]float64:
  14735. *v = nil
  14736. case *map[interface{}]bool:
  14737. *v = nil
  14738. case *[]string:
  14739. *v = nil
  14740. case *map[string]interface{}:
  14741. *v = nil
  14742. case *map[string]string:
  14743. *v = nil
  14744. case *map[string]uint:
  14745. *v = nil
  14746. case *map[string]uint8:
  14747. *v = nil
  14748. case *map[string]uint16:
  14749. *v = nil
  14750. case *map[string]uint32:
  14751. *v = nil
  14752. case *map[string]uint64:
  14753. *v = nil
  14754. case *map[string]uintptr:
  14755. *v = nil
  14756. case *map[string]int:
  14757. *v = nil
  14758. case *map[string]int8:
  14759. *v = nil
  14760. case *map[string]int16:
  14761. *v = nil
  14762. case *map[string]int32:
  14763. *v = nil
  14764. case *map[string]int64:
  14765. *v = nil
  14766. case *map[string]float32:
  14767. *v = nil
  14768. case *map[string]float64:
  14769. *v = nil
  14770. case *map[string]bool:
  14771. *v = nil
  14772. case *[]float32:
  14773. *v = nil
  14774. case *map[float32]interface{}:
  14775. *v = nil
  14776. case *map[float32]string:
  14777. *v = nil
  14778. case *map[float32]uint:
  14779. *v = nil
  14780. case *map[float32]uint8:
  14781. *v = nil
  14782. case *map[float32]uint16:
  14783. *v = nil
  14784. case *map[float32]uint32:
  14785. *v = nil
  14786. case *map[float32]uint64:
  14787. *v = nil
  14788. case *map[float32]uintptr:
  14789. *v = nil
  14790. case *map[float32]int:
  14791. *v = nil
  14792. case *map[float32]int8:
  14793. *v = nil
  14794. case *map[float32]int16:
  14795. *v = nil
  14796. case *map[float32]int32:
  14797. *v = nil
  14798. case *map[float32]int64:
  14799. *v = nil
  14800. case *map[float32]float32:
  14801. *v = nil
  14802. case *map[float32]float64:
  14803. *v = nil
  14804. case *map[float32]bool:
  14805. *v = nil
  14806. case *[]float64:
  14807. *v = nil
  14808. case *map[float64]interface{}:
  14809. *v = nil
  14810. case *map[float64]string:
  14811. *v = nil
  14812. case *map[float64]uint:
  14813. *v = nil
  14814. case *map[float64]uint8:
  14815. *v = nil
  14816. case *map[float64]uint16:
  14817. *v = nil
  14818. case *map[float64]uint32:
  14819. *v = nil
  14820. case *map[float64]uint64:
  14821. *v = nil
  14822. case *map[float64]uintptr:
  14823. *v = nil
  14824. case *map[float64]int:
  14825. *v = nil
  14826. case *map[float64]int8:
  14827. *v = nil
  14828. case *map[float64]int16:
  14829. *v = nil
  14830. case *map[float64]int32:
  14831. *v = nil
  14832. case *map[float64]int64:
  14833. *v = nil
  14834. case *map[float64]float32:
  14835. *v = nil
  14836. case *map[float64]float64:
  14837. *v = nil
  14838. case *map[float64]bool:
  14839. *v = nil
  14840. case *[]uint:
  14841. *v = nil
  14842. case *map[uint]interface{}:
  14843. *v = nil
  14844. case *map[uint]string:
  14845. *v = nil
  14846. case *map[uint]uint:
  14847. *v = nil
  14848. case *map[uint]uint8:
  14849. *v = nil
  14850. case *map[uint]uint16:
  14851. *v = nil
  14852. case *map[uint]uint32:
  14853. *v = nil
  14854. case *map[uint]uint64:
  14855. *v = nil
  14856. case *map[uint]uintptr:
  14857. *v = nil
  14858. case *map[uint]int:
  14859. *v = nil
  14860. case *map[uint]int8:
  14861. *v = nil
  14862. case *map[uint]int16:
  14863. *v = nil
  14864. case *map[uint]int32:
  14865. *v = nil
  14866. case *map[uint]int64:
  14867. *v = nil
  14868. case *map[uint]float32:
  14869. *v = nil
  14870. case *map[uint]float64:
  14871. *v = nil
  14872. case *map[uint]bool:
  14873. *v = nil
  14874. case *map[uint8]interface{}:
  14875. *v = nil
  14876. case *map[uint8]string:
  14877. *v = nil
  14878. case *map[uint8]uint:
  14879. *v = nil
  14880. case *map[uint8]uint8:
  14881. *v = nil
  14882. case *map[uint8]uint16:
  14883. *v = nil
  14884. case *map[uint8]uint32:
  14885. *v = nil
  14886. case *map[uint8]uint64:
  14887. *v = nil
  14888. case *map[uint8]uintptr:
  14889. *v = nil
  14890. case *map[uint8]int:
  14891. *v = nil
  14892. case *map[uint8]int8:
  14893. *v = nil
  14894. case *map[uint8]int16:
  14895. *v = nil
  14896. case *map[uint8]int32:
  14897. *v = nil
  14898. case *map[uint8]int64:
  14899. *v = nil
  14900. case *map[uint8]float32:
  14901. *v = nil
  14902. case *map[uint8]float64:
  14903. *v = nil
  14904. case *map[uint8]bool:
  14905. *v = nil
  14906. case *[]uint16:
  14907. *v = nil
  14908. case *map[uint16]interface{}:
  14909. *v = nil
  14910. case *map[uint16]string:
  14911. *v = nil
  14912. case *map[uint16]uint:
  14913. *v = nil
  14914. case *map[uint16]uint8:
  14915. *v = nil
  14916. case *map[uint16]uint16:
  14917. *v = nil
  14918. case *map[uint16]uint32:
  14919. *v = nil
  14920. case *map[uint16]uint64:
  14921. *v = nil
  14922. case *map[uint16]uintptr:
  14923. *v = nil
  14924. case *map[uint16]int:
  14925. *v = nil
  14926. case *map[uint16]int8:
  14927. *v = nil
  14928. case *map[uint16]int16:
  14929. *v = nil
  14930. case *map[uint16]int32:
  14931. *v = nil
  14932. case *map[uint16]int64:
  14933. *v = nil
  14934. case *map[uint16]float32:
  14935. *v = nil
  14936. case *map[uint16]float64:
  14937. *v = nil
  14938. case *map[uint16]bool:
  14939. *v = nil
  14940. case *[]uint32:
  14941. *v = nil
  14942. case *map[uint32]interface{}:
  14943. *v = nil
  14944. case *map[uint32]string:
  14945. *v = nil
  14946. case *map[uint32]uint:
  14947. *v = nil
  14948. case *map[uint32]uint8:
  14949. *v = nil
  14950. case *map[uint32]uint16:
  14951. *v = nil
  14952. case *map[uint32]uint32:
  14953. *v = nil
  14954. case *map[uint32]uint64:
  14955. *v = nil
  14956. case *map[uint32]uintptr:
  14957. *v = nil
  14958. case *map[uint32]int:
  14959. *v = nil
  14960. case *map[uint32]int8:
  14961. *v = nil
  14962. case *map[uint32]int16:
  14963. *v = nil
  14964. case *map[uint32]int32:
  14965. *v = nil
  14966. case *map[uint32]int64:
  14967. *v = nil
  14968. case *map[uint32]float32:
  14969. *v = nil
  14970. case *map[uint32]float64:
  14971. *v = nil
  14972. case *map[uint32]bool:
  14973. *v = nil
  14974. case *[]uint64:
  14975. *v = nil
  14976. case *map[uint64]interface{}:
  14977. *v = nil
  14978. case *map[uint64]string:
  14979. *v = nil
  14980. case *map[uint64]uint:
  14981. *v = nil
  14982. case *map[uint64]uint8:
  14983. *v = nil
  14984. case *map[uint64]uint16:
  14985. *v = nil
  14986. case *map[uint64]uint32:
  14987. *v = nil
  14988. case *map[uint64]uint64:
  14989. *v = nil
  14990. case *map[uint64]uintptr:
  14991. *v = nil
  14992. case *map[uint64]int:
  14993. *v = nil
  14994. case *map[uint64]int8:
  14995. *v = nil
  14996. case *map[uint64]int16:
  14997. *v = nil
  14998. case *map[uint64]int32:
  14999. *v = nil
  15000. case *map[uint64]int64:
  15001. *v = nil
  15002. case *map[uint64]float32:
  15003. *v = nil
  15004. case *map[uint64]float64:
  15005. *v = nil
  15006. case *map[uint64]bool:
  15007. *v = nil
  15008. case *[]uintptr:
  15009. *v = nil
  15010. case *map[uintptr]interface{}:
  15011. *v = nil
  15012. case *map[uintptr]string:
  15013. *v = nil
  15014. case *map[uintptr]uint:
  15015. *v = nil
  15016. case *map[uintptr]uint8:
  15017. *v = nil
  15018. case *map[uintptr]uint16:
  15019. *v = nil
  15020. case *map[uintptr]uint32:
  15021. *v = nil
  15022. case *map[uintptr]uint64:
  15023. *v = nil
  15024. case *map[uintptr]uintptr:
  15025. *v = nil
  15026. case *map[uintptr]int:
  15027. *v = nil
  15028. case *map[uintptr]int8:
  15029. *v = nil
  15030. case *map[uintptr]int16:
  15031. *v = nil
  15032. case *map[uintptr]int32:
  15033. *v = nil
  15034. case *map[uintptr]int64:
  15035. *v = nil
  15036. case *map[uintptr]float32:
  15037. *v = nil
  15038. case *map[uintptr]float64:
  15039. *v = nil
  15040. case *map[uintptr]bool:
  15041. *v = nil
  15042. case *[]int:
  15043. *v = nil
  15044. case *map[int]interface{}:
  15045. *v = nil
  15046. case *map[int]string:
  15047. *v = nil
  15048. case *map[int]uint:
  15049. *v = nil
  15050. case *map[int]uint8:
  15051. *v = nil
  15052. case *map[int]uint16:
  15053. *v = nil
  15054. case *map[int]uint32:
  15055. *v = nil
  15056. case *map[int]uint64:
  15057. *v = nil
  15058. case *map[int]uintptr:
  15059. *v = nil
  15060. case *map[int]int:
  15061. *v = nil
  15062. case *map[int]int8:
  15063. *v = nil
  15064. case *map[int]int16:
  15065. *v = nil
  15066. case *map[int]int32:
  15067. *v = nil
  15068. case *map[int]int64:
  15069. *v = nil
  15070. case *map[int]float32:
  15071. *v = nil
  15072. case *map[int]float64:
  15073. *v = nil
  15074. case *map[int]bool:
  15075. *v = nil
  15076. case *[]int8:
  15077. *v = nil
  15078. case *map[int8]interface{}:
  15079. *v = nil
  15080. case *map[int8]string:
  15081. *v = nil
  15082. case *map[int8]uint:
  15083. *v = nil
  15084. case *map[int8]uint8:
  15085. *v = nil
  15086. case *map[int8]uint16:
  15087. *v = nil
  15088. case *map[int8]uint32:
  15089. *v = nil
  15090. case *map[int8]uint64:
  15091. *v = nil
  15092. case *map[int8]uintptr:
  15093. *v = nil
  15094. case *map[int8]int:
  15095. *v = nil
  15096. case *map[int8]int8:
  15097. *v = nil
  15098. case *map[int8]int16:
  15099. *v = nil
  15100. case *map[int8]int32:
  15101. *v = nil
  15102. case *map[int8]int64:
  15103. *v = nil
  15104. case *map[int8]float32:
  15105. *v = nil
  15106. case *map[int8]float64:
  15107. *v = nil
  15108. case *map[int8]bool:
  15109. *v = nil
  15110. case *[]int16:
  15111. *v = nil
  15112. case *map[int16]interface{}:
  15113. *v = nil
  15114. case *map[int16]string:
  15115. *v = nil
  15116. case *map[int16]uint:
  15117. *v = nil
  15118. case *map[int16]uint8:
  15119. *v = nil
  15120. case *map[int16]uint16:
  15121. *v = nil
  15122. case *map[int16]uint32:
  15123. *v = nil
  15124. case *map[int16]uint64:
  15125. *v = nil
  15126. case *map[int16]uintptr:
  15127. *v = nil
  15128. case *map[int16]int:
  15129. *v = nil
  15130. case *map[int16]int8:
  15131. *v = nil
  15132. case *map[int16]int16:
  15133. *v = nil
  15134. case *map[int16]int32:
  15135. *v = nil
  15136. case *map[int16]int64:
  15137. *v = nil
  15138. case *map[int16]float32:
  15139. *v = nil
  15140. case *map[int16]float64:
  15141. *v = nil
  15142. case *map[int16]bool:
  15143. *v = nil
  15144. case *[]int32:
  15145. *v = nil
  15146. case *map[int32]interface{}:
  15147. *v = nil
  15148. case *map[int32]string:
  15149. *v = nil
  15150. case *map[int32]uint:
  15151. *v = nil
  15152. case *map[int32]uint8:
  15153. *v = nil
  15154. case *map[int32]uint16:
  15155. *v = nil
  15156. case *map[int32]uint32:
  15157. *v = nil
  15158. case *map[int32]uint64:
  15159. *v = nil
  15160. case *map[int32]uintptr:
  15161. *v = nil
  15162. case *map[int32]int:
  15163. *v = nil
  15164. case *map[int32]int8:
  15165. *v = nil
  15166. case *map[int32]int16:
  15167. *v = nil
  15168. case *map[int32]int32:
  15169. *v = nil
  15170. case *map[int32]int64:
  15171. *v = nil
  15172. case *map[int32]float32:
  15173. *v = nil
  15174. case *map[int32]float64:
  15175. *v = nil
  15176. case *map[int32]bool:
  15177. *v = nil
  15178. case *[]int64:
  15179. *v = nil
  15180. case *map[int64]interface{}:
  15181. *v = nil
  15182. case *map[int64]string:
  15183. *v = nil
  15184. case *map[int64]uint:
  15185. *v = nil
  15186. case *map[int64]uint8:
  15187. *v = nil
  15188. case *map[int64]uint16:
  15189. *v = nil
  15190. case *map[int64]uint32:
  15191. *v = nil
  15192. case *map[int64]uint64:
  15193. *v = nil
  15194. case *map[int64]uintptr:
  15195. *v = nil
  15196. case *map[int64]int:
  15197. *v = nil
  15198. case *map[int64]int8:
  15199. *v = nil
  15200. case *map[int64]int16:
  15201. *v = nil
  15202. case *map[int64]int32:
  15203. *v = nil
  15204. case *map[int64]int64:
  15205. *v = nil
  15206. case *map[int64]float32:
  15207. *v = nil
  15208. case *map[int64]float64:
  15209. *v = nil
  15210. case *map[int64]bool:
  15211. *v = nil
  15212. case *[]bool:
  15213. *v = nil
  15214. case *map[bool]interface{}:
  15215. *v = nil
  15216. case *map[bool]string:
  15217. *v = nil
  15218. case *map[bool]uint:
  15219. *v = nil
  15220. case *map[bool]uint8:
  15221. *v = nil
  15222. case *map[bool]uint16:
  15223. *v = nil
  15224. case *map[bool]uint32:
  15225. *v = nil
  15226. case *map[bool]uint64:
  15227. *v = nil
  15228. case *map[bool]uintptr:
  15229. *v = nil
  15230. case *map[bool]int:
  15231. *v = nil
  15232. case *map[bool]int8:
  15233. *v = nil
  15234. case *map[bool]int16:
  15235. *v = nil
  15236. case *map[bool]int32:
  15237. *v = nil
  15238. case *map[bool]int64:
  15239. *v = nil
  15240. case *map[bool]float32:
  15241. *v = nil
  15242. case *map[bool]float64:
  15243. *v = nil
  15244. case *map[bool]bool:
  15245. *v = nil
  15246. default:
  15247. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  15248. return false
  15249. }
  15250. return true
  15251. }
  15252. // -- -- fast path functions
  15253. func (d *Decoder) fastpathDecSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  15254. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15255. var vp = rv2i(rv).(*[]interface{})
  15256. if v, changed := fastpathTV.DecSliceIntfV(*vp, !array, d); changed {
  15257. *vp = v
  15258. }
  15259. } else {
  15260. fastpathTV.DecSliceIntfV(rv2i(rv).([]interface{}), !array, d)
  15261. }
  15262. }
  15263. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, d *Decoder) {
  15264. if v, changed := f.DecSliceIntfV(*vp, true, d); changed {
  15265. *vp = v
  15266. }
  15267. }
  15268. func (_ fastpathT) DecSliceIntfV(v []interface{}, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  15269. dd := d.d
  15270. slh, containerLenS := d.decSliceHelperStart()
  15271. if containerLenS == 0 {
  15272. if canChange {
  15273. if v == nil {
  15274. v = []interface{}{}
  15275. } else if len(v) != 0 {
  15276. v = v[:0]
  15277. }
  15278. changed = true
  15279. }
  15280. slh.End()
  15281. return v, changed
  15282. }
  15283. hasLen := containerLenS > 0
  15284. var xlen int
  15285. if hasLen && canChange {
  15286. if containerLenS > cap(v) {
  15287. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  15288. if xlen <= cap(v) {
  15289. v = v[:xlen]
  15290. } else {
  15291. v = make([]interface{}, xlen)
  15292. }
  15293. changed = true
  15294. } else if containerLenS != len(v) {
  15295. v = v[:containerLenS]
  15296. changed = true
  15297. }
  15298. }
  15299. j := 0
  15300. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15301. if j == 0 && len(v) == 0 {
  15302. if hasLen {
  15303. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  15304. } else {
  15305. xlen = 8
  15306. }
  15307. v = make([]interface{}, xlen)
  15308. changed = true
  15309. }
  15310. // if indefinite, etc, then expand the slice if necessary
  15311. var decodeIntoBlank bool
  15312. if j >= len(v) {
  15313. if canChange {
  15314. v = append(v, nil)
  15315. changed = true
  15316. } else {
  15317. d.arrayCannotExpand(len(v), j+1)
  15318. decodeIntoBlank = true
  15319. }
  15320. }
  15321. slh.ElemContainerState(j)
  15322. if decodeIntoBlank {
  15323. d.swallow()
  15324. } else {
  15325. d.decode(&v[j])
  15326. }
  15327. }
  15328. if canChange {
  15329. if j < len(v) {
  15330. v = v[:j]
  15331. changed = true
  15332. } else if j == 0 && v == nil {
  15333. v = make([]interface{}, 0)
  15334. changed = true
  15335. }
  15336. }
  15337. slh.End()
  15338. return v, changed
  15339. }
  15340. func (d *Decoder) fastpathDecSliceStringR(f *codecFnInfo, rv reflect.Value) {
  15341. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15342. var vp = rv2i(rv).(*[]string)
  15343. if v, changed := fastpathTV.DecSliceStringV(*vp, !array, d); changed {
  15344. *vp = v
  15345. }
  15346. } else {
  15347. fastpathTV.DecSliceStringV(rv2i(rv).([]string), !array, d)
  15348. }
  15349. }
  15350. func (f fastpathT) DecSliceStringX(vp *[]string, d *Decoder) {
  15351. if v, changed := f.DecSliceStringV(*vp, true, d); changed {
  15352. *vp = v
  15353. }
  15354. }
  15355. func (_ fastpathT) DecSliceStringV(v []string, canChange bool, d *Decoder) (_ []string, changed bool) {
  15356. dd := d.d
  15357. slh, containerLenS := d.decSliceHelperStart()
  15358. if containerLenS == 0 {
  15359. if canChange {
  15360. if v == nil {
  15361. v = []string{}
  15362. } else if len(v) != 0 {
  15363. v = v[:0]
  15364. }
  15365. changed = true
  15366. }
  15367. slh.End()
  15368. return v, changed
  15369. }
  15370. hasLen := containerLenS > 0
  15371. var xlen int
  15372. if hasLen && canChange {
  15373. if containerLenS > cap(v) {
  15374. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  15375. if xlen <= cap(v) {
  15376. v = v[:xlen]
  15377. } else {
  15378. v = make([]string, xlen)
  15379. }
  15380. changed = true
  15381. } else if containerLenS != len(v) {
  15382. v = v[:containerLenS]
  15383. changed = true
  15384. }
  15385. }
  15386. j := 0
  15387. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15388. if j == 0 && len(v) == 0 {
  15389. if hasLen {
  15390. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  15391. } else {
  15392. xlen = 8
  15393. }
  15394. v = make([]string, xlen)
  15395. changed = true
  15396. }
  15397. // if indefinite, etc, then expand the slice if necessary
  15398. var decodeIntoBlank bool
  15399. if j >= len(v) {
  15400. if canChange {
  15401. v = append(v, "")
  15402. changed = true
  15403. } else {
  15404. d.arrayCannotExpand(len(v), j+1)
  15405. decodeIntoBlank = true
  15406. }
  15407. }
  15408. slh.ElemContainerState(j)
  15409. if decodeIntoBlank {
  15410. d.swallow()
  15411. } else {
  15412. v[j] = dd.DecodeString()
  15413. }
  15414. }
  15415. if canChange {
  15416. if j < len(v) {
  15417. v = v[:j]
  15418. changed = true
  15419. } else if j == 0 && v == nil {
  15420. v = make([]string, 0)
  15421. changed = true
  15422. }
  15423. }
  15424. slh.End()
  15425. return v, changed
  15426. }
  15427. func (d *Decoder) fastpathDecSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  15428. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15429. var vp = rv2i(rv).(*[]float32)
  15430. if v, changed := fastpathTV.DecSliceFloat32V(*vp, !array, d); changed {
  15431. *vp = v
  15432. }
  15433. } else {
  15434. fastpathTV.DecSliceFloat32V(rv2i(rv).([]float32), !array, d)
  15435. }
  15436. }
  15437. func (f fastpathT) DecSliceFloat32X(vp *[]float32, d *Decoder) {
  15438. if v, changed := f.DecSliceFloat32V(*vp, true, d); changed {
  15439. *vp = v
  15440. }
  15441. }
  15442. func (_ fastpathT) DecSliceFloat32V(v []float32, canChange bool, d *Decoder) (_ []float32, changed bool) {
  15443. dd := d.d
  15444. slh, containerLenS := d.decSliceHelperStart()
  15445. if containerLenS == 0 {
  15446. if canChange {
  15447. if v == nil {
  15448. v = []float32{}
  15449. } else if len(v) != 0 {
  15450. v = v[:0]
  15451. }
  15452. changed = true
  15453. }
  15454. slh.End()
  15455. return v, changed
  15456. }
  15457. hasLen := containerLenS > 0
  15458. var xlen int
  15459. if hasLen && canChange {
  15460. if containerLenS > cap(v) {
  15461. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  15462. if xlen <= cap(v) {
  15463. v = v[:xlen]
  15464. } else {
  15465. v = make([]float32, xlen)
  15466. }
  15467. changed = true
  15468. } else if containerLenS != len(v) {
  15469. v = v[:containerLenS]
  15470. changed = true
  15471. }
  15472. }
  15473. j := 0
  15474. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15475. if j == 0 && len(v) == 0 {
  15476. if hasLen {
  15477. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  15478. } else {
  15479. xlen = 8
  15480. }
  15481. v = make([]float32, xlen)
  15482. changed = true
  15483. }
  15484. // if indefinite, etc, then expand the slice if necessary
  15485. var decodeIntoBlank bool
  15486. if j >= len(v) {
  15487. if canChange {
  15488. v = append(v, 0)
  15489. changed = true
  15490. } else {
  15491. d.arrayCannotExpand(len(v), j+1)
  15492. decodeIntoBlank = true
  15493. }
  15494. }
  15495. slh.ElemContainerState(j)
  15496. if decodeIntoBlank {
  15497. d.swallow()
  15498. } else {
  15499. v[j] = float32(dd.DecodeFloat(true))
  15500. }
  15501. }
  15502. if canChange {
  15503. if j < len(v) {
  15504. v = v[:j]
  15505. changed = true
  15506. } else if j == 0 && v == nil {
  15507. v = make([]float32, 0)
  15508. changed = true
  15509. }
  15510. }
  15511. slh.End()
  15512. return v, changed
  15513. }
  15514. func (d *Decoder) fastpathDecSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  15515. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15516. var vp = rv2i(rv).(*[]float64)
  15517. if v, changed := fastpathTV.DecSliceFloat64V(*vp, !array, d); changed {
  15518. *vp = v
  15519. }
  15520. } else {
  15521. fastpathTV.DecSliceFloat64V(rv2i(rv).([]float64), !array, d)
  15522. }
  15523. }
  15524. func (f fastpathT) DecSliceFloat64X(vp *[]float64, d *Decoder) {
  15525. if v, changed := f.DecSliceFloat64V(*vp, true, d); changed {
  15526. *vp = v
  15527. }
  15528. }
  15529. func (_ fastpathT) DecSliceFloat64V(v []float64, canChange bool, d *Decoder) (_ []float64, changed bool) {
  15530. dd := d.d
  15531. slh, containerLenS := d.decSliceHelperStart()
  15532. if containerLenS == 0 {
  15533. if canChange {
  15534. if v == nil {
  15535. v = []float64{}
  15536. } else if len(v) != 0 {
  15537. v = v[:0]
  15538. }
  15539. changed = true
  15540. }
  15541. slh.End()
  15542. return v, changed
  15543. }
  15544. hasLen := containerLenS > 0
  15545. var xlen int
  15546. if hasLen && canChange {
  15547. if containerLenS > cap(v) {
  15548. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15549. if xlen <= cap(v) {
  15550. v = v[:xlen]
  15551. } else {
  15552. v = make([]float64, xlen)
  15553. }
  15554. changed = true
  15555. } else if containerLenS != len(v) {
  15556. v = v[:containerLenS]
  15557. changed = true
  15558. }
  15559. }
  15560. j := 0
  15561. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15562. if j == 0 && len(v) == 0 {
  15563. if hasLen {
  15564. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15565. } else {
  15566. xlen = 8
  15567. }
  15568. v = make([]float64, xlen)
  15569. changed = true
  15570. }
  15571. // if indefinite, etc, then expand the slice if necessary
  15572. var decodeIntoBlank bool
  15573. if j >= len(v) {
  15574. if canChange {
  15575. v = append(v, 0)
  15576. changed = true
  15577. } else {
  15578. d.arrayCannotExpand(len(v), j+1)
  15579. decodeIntoBlank = true
  15580. }
  15581. }
  15582. slh.ElemContainerState(j)
  15583. if decodeIntoBlank {
  15584. d.swallow()
  15585. } else {
  15586. v[j] = dd.DecodeFloat(false)
  15587. }
  15588. }
  15589. if canChange {
  15590. if j < len(v) {
  15591. v = v[:j]
  15592. changed = true
  15593. } else if j == 0 && v == nil {
  15594. v = make([]float64, 0)
  15595. changed = true
  15596. }
  15597. }
  15598. slh.End()
  15599. return v, changed
  15600. }
  15601. func (d *Decoder) fastpathDecSliceUintR(f *codecFnInfo, rv reflect.Value) {
  15602. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15603. var vp = rv2i(rv).(*[]uint)
  15604. if v, changed := fastpathTV.DecSliceUintV(*vp, !array, d); changed {
  15605. *vp = v
  15606. }
  15607. } else {
  15608. fastpathTV.DecSliceUintV(rv2i(rv).([]uint), !array, d)
  15609. }
  15610. }
  15611. func (f fastpathT) DecSliceUintX(vp *[]uint, d *Decoder) {
  15612. if v, changed := f.DecSliceUintV(*vp, true, d); changed {
  15613. *vp = v
  15614. }
  15615. }
  15616. func (_ fastpathT) DecSliceUintV(v []uint, canChange bool, d *Decoder) (_ []uint, changed bool) {
  15617. dd := d.d
  15618. slh, containerLenS := d.decSliceHelperStart()
  15619. if containerLenS == 0 {
  15620. if canChange {
  15621. if v == nil {
  15622. v = []uint{}
  15623. } else if len(v) != 0 {
  15624. v = v[:0]
  15625. }
  15626. changed = true
  15627. }
  15628. slh.End()
  15629. return v, changed
  15630. }
  15631. hasLen := containerLenS > 0
  15632. var xlen int
  15633. if hasLen && canChange {
  15634. if containerLenS > cap(v) {
  15635. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15636. if xlen <= cap(v) {
  15637. v = v[:xlen]
  15638. } else {
  15639. v = make([]uint, xlen)
  15640. }
  15641. changed = true
  15642. } else if containerLenS != len(v) {
  15643. v = v[:containerLenS]
  15644. changed = true
  15645. }
  15646. }
  15647. j := 0
  15648. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15649. if j == 0 && len(v) == 0 {
  15650. if hasLen {
  15651. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15652. } else {
  15653. xlen = 8
  15654. }
  15655. v = make([]uint, xlen)
  15656. changed = true
  15657. }
  15658. // if indefinite, etc, then expand the slice if necessary
  15659. var decodeIntoBlank bool
  15660. if j >= len(v) {
  15661. if canChange {
  15662. v = append(v, 0)
  15663. changed = true
  15664. } else {
  15665. d.arrayCannotExpand(len(v), j+1)
  15666. decodeIntoBlank = true
  15667. }
  15668. }
  15669. slh.ElemContainerState(j)
  15670. if decodeIntoBlank {
  15671. d.swallow()
  15672. } else {
  15673. v[j] = uint(dd.DecodeUint(uintBitsize))
  15674. }
  15675. }
  15676. if canChange {
  15677. if j < len(v) {
  15678. v = v[:j]
  15679. changed = true
  15680. } else if j == 0 && v == nil {
  15681. v = make([]uint, 0)
  15682. changed = true
  15683. }
  15684. }
  15685. slh.End()
  15686. return v, changed
  15687. }
  15688. func (d *Decoder) fastpathDecSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  15689. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15690. var vp = rv2i(rv).(*[]uint16)
  15691. if v, changed := fastpathTV.DecSliceUint16V(*vp, !array, d); changed {
  15692. *vp = v
  15693. }
  15694. } else {
  15695. fastpathTV.DecSliceUint16V(rv2i(rv).([]uint16), !array, d)
  15696. }
  15697. }
  15698. func (f fastpathT) DecSliceUint16X(vp *[]uint16, d *Decoder) {
  15699. if v, changed := f.DecSliceUint16V(*vp, true, d); changed {
  15700. *vp = v
  15701. }
  15702. }
  15703. func (_ fastpathT) DecSliceUint16V(v []uint16, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  15704. dd := d.d
  15705. slh, containerLenS := d.decSliceHelperStart()
  15706. if containerLenS == 0 {
  15707. if canChange {
  15708. if v == nil {
  15709. v = []uint16{}
  15710. } else if len(v) != 0 {
  15711. v = v[:0]
  15712. }
  15713. changed = true
  15714. }
  15715. slh.End()
  15716. return v, changed
  15717. }
  15718. hasLen := containerLenS > 0
  15719. var xlen int
  15720. if hasLen && canChange {
  15721. if containerLenS > cap(v) {
  15722. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  15723. if xlen <= cap(v) {
  15724. v = v[:xlen]
  15725. } else {
  15726. v = make([]uint16, xlen)
  15727. }
  15728. changed = true
  15729. } else if containerLenS != len(v) {
  15730. v = v[:containerLenS]
  15731. changed = true
  15732. }
  15733. }
  15734. j := 0
  15735. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15736. if j == 0 && len(v) == 0 {
  15737. if hasLen {
  15738. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  15739. } else {
  15740. xlen = 8
  15741. }
  15742. v = make([]uint16, xlen)
  15743. changed = true
  15744. }
  15745. // if indefinite, etc, then expand the slice if necessary
  15746. var decodeIntoBlank bool
  15747. if j >= len(v) {
  15748. if canChange {
  15749. v = append(v, 0)
  15750. changed = true
  15751. } else {
  15752. d.arrayCannotExpand(len(v), j+1)
  15753. decodeIntoBlank = true
  15754. }
  15755. }
  15756. slh.ElemContainerState(j)
  15757. if decodeIntoBlank {
  15758. d.swallow()
  15759. } else {
  15760. v[j] = uint16(dd.DecodeUint(16))
  15761. }
  15762. }
  15763. if canChange {
  15764. if j < len(v) {
  15765. v = v[:j]
  15766. changed = true
  15767. } else if j == 0 && v == nil {
  15768. v = make([]uint16, 0)
  15769. changed = true
  15770. }
  15771. }
  15772. slh.End()
  15773. return v, changed
  15774. }
  15775. func (d *Decoder) fastpathDecSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  15776. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15777. var vp = rv2i(rv).(*[]uint32)
  15778. if v, changed := fastpathTV.DecSliceUint32V(*vp, !array, d); changed {
  15779. *vp = v
  15780. }
  15781. } else {
  15782. fastpathTV.DecSliceUint32V(rv2i(rv).([]uint32), !array, d)
  15783. }
  15784. }
  15785. func (f fastpathT) DecSliceUint32X(vp *[]uint32, d *Decoder) {
  15786. if v, changed := f.DecSliceUint32V(*vp, true, d); changed {
  15787. *vp = v
  15788. }
  15789. }
  15790. func (_ fastpathT) DecSliceUint32V(v []uint32, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  15791. dd := d.d
  15792. slh, containerLenS := d.decSliceHelperStart()
  15793. if containerLenS == 0 {
  15794. if canChange {
  15795. if v == nil {
  15796. v = []uint32{}
  15797. } else if len(v) != 0 {
  15798. v = v[:0]
  15799. }
  15800. changed = true
  15801. }
  15802. slh.End()
  15803. return v, changed
  15804. }
  15805. hasLen := containerLenS > 0
  15806. var xlen int
  15807. if hasLen && canChange {
  15808. if containerLenS > cap(v) {
  15809. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  15810. if xlen <= cap(v) {
  15811. v = v[:xlen]
  15812. } else {
  15813. v = make([]uint32, xlen)
  15814. }
  15815. changed = true
  15816. } else if containerLenS != len(v) {
  15817. v = v[:containerLenS]
  15818. changed = true
  15819. }
  15820. }
  15821. j := 0
  15822. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15823. if j == 0 && len(v) == 0 {
  15824. if hasLen {
  15825. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  15826. } else {
  15827. xlen = 8
  15828. }
  15829. v = make([]uint32, xlen)
  15830. changed = true
  15831. }
  15832. // if indefinite, etc, then expand the slice if necessary
  15833. var decodeIntoBlank bool
  15834. if j >= len(v) {
  15835. if canChange {
  15836. v = append(v, 0)
  15837. changed = true
  15838. } else {
  15839. d.arrayCannotExpand(len(v), j+1)
  15840. decodeIntoBlank = true
  15841. }
  15842. }
  15843. slh.ElemContainerState(j)
  15844. if decodeIntoBlank {
  15845. d.swallow()
  15846. } else {
  15847. v[j] = uint32(dd.DecodeUint(32))
  15848. }
  15849. }
  15850. if canChange {
  15851. if j < len(v) {
  15852. v = v[:j]
  15853. changed = true
  15854. } else if j == 0 && v == nil {
  15855. v = make([]uint32, 0)
  15856. changed = true
  15857. }
  15858. }
  15859. slh.End()
  15860. return v, changed
  15861. }
  15862. func (d *Decoder) fastpathDecSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  15863. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15864. var vp = rv2i(rv).(*[]uint64)
  15865. if v, changed := fastpathTV.DecSliceUint64V(*vp, !array, d); changed {
  15866. *vp = v
  15867. }
  15868. } else {
  15869. fastpathTV.DecSliceUint64V(rv2i(rv).([]uint64), !array, d)
  15870. }
  15871. }
  15872. func (f fastpathT) DecSliceUint64X(vp *[]uint64, d *Decoder) {
  15873. if v, changed := f.DecSliceUint64V(*vp, true, d); changed {
  15874. *vp = v
  15875. }
  15876. }
  15877. func (_ fastpathT) DecSliceUint64V(v []uint64, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  15878. dd := d.d
  15879. slh, containerLenS := d.decSliceHelperStart()
  15880. if containerLenS == 0 {
  15881. if canChange {
  15882. if v == nil {
  15883. v = []uint64{}
  15884. } else if len(v) != 0 {
  15885. v = v[:0]
  15886. }
  15887. changed = true
  15888. }
  15889. slh.End()
  15890. return v, changed
  15891. }
  15892. hasLen := containerLenS > 0
  15893. var xlen int
  15894. if hasLen && canChange {
  15895. if containerLenS > cap(v) {
  15896. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15897. if xlen <= cap(v) {
  15898. v = v[:xlen]
  15899. } else {
  15900. v = make([]uint64, xlen)
  15901. }
  15902. changed = true
  15903. } else if containerLenS != len(v) {
  15904. v = v[:containerLenS]
  15905. changed = true
  15906. }
  15907. }
  15908. j := 0
  15909. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15910. if j == 0 && len(v) == 0 {
  15911. if hasLen {
  15912. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15913. } else {
  15914. xlen = 8
  15915. }
  15916. v = make([]uint64, xlen)
  15917. changed = true
  15918. }
  15919. // if indefinite, etc, then expand the slice if necessary
  15920. var decodeIntoBlank bool
  15921. if j >= len(v) {
  15922. if canChange {
  15923. v = append(v, 0)
  15924. changed = true
  15925. } else {
  15926. d.arrayCannotExpand(len(v), j+1)
  15927. decodeIntoBlank = true
  15928. }
  15929. }
  15930. slh.ElemContainerState(j)
  15931. if decodeIntoBlank {
  15932. d.swallow()
  15933. } else {
  15934. v[j] = dd.DecodeUint(64)
  15935. }
  15936. }
  15937. if canChange {
  15938. if j < len(v) {
  15939. v = v[:j]
  15940. changed = true
  15941. } else if j == 0 && v == nil {
  15942. v = make([]uint64, 0)
  15943. changed = true
  15944. }
  15945. }
  15946. slh.End()
  15947. return v, changed
  15948. }
  15949. func (d *Decoder) fastpathDecSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  15950. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15951. var vp = rv2i(rv).(*[]uintptr)
  15952. if v, changed := fastpathTV.DecSliceUintptrV(*vp, !array, d); changed {
  15953. *vp = v
  15954. }
  15955. } else {
  15956. fastpathTV.DecSliceUintptrV(rv2i(rv).([]uintptr), !array, d)
  15957. }
  15958. }
  15959. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, d *Decoder) {
  15960. if v, changed := f.DecSliceUintptrV(*vp, true, d); changed {
  15961. *vp = v
  15962. }
  15963. }
  15964. func (_ fastpathT) DecSliceUintptrV(v []uintptr, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  15965. dd := d.d
  15966. slh, containerLenS := d.decSliceHelperStart()
  15967. if containerLenS == 0 {
  15968. if canChange {
  15969. if v == nil {
  15970. v = []uintptr{}
  15971. } else if len(v) != 0 {
  15972. v = v[:0]
  15973. }
  15974. changed = true
  15975. }
  15976. slh.End()
  15977. return v, changed
  15978. }
  15979. hasLen := containerLenS > 0
  15980. var xlen int
  15981. if hasLen && canChange {
  15982. if containerLenS > cap(v) {
  15983. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15984. if xlen <= cap(v) {
  15985. v = v[:xlen]
  15986. } else {
  15987. v = make([]uintptr, xlen)
  15988. }
  15989. changed = true
  15990. } else if containerLenS != len(v) {
  15991. v = v[:containerLenS]
  15992. changed = true
  15993. }
  15994. }
  15995. j := 0
  15996. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15997. if j == 0 && len(v) == 0 {
  15998. if hasLen {
  15999. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16000. } else {
  16001. xlen = 8
  16002. }
  16003. v = make([]uintptr, xlen)
  16004. changed = true
  16005. }
  16006. // if indefinite, etc, then expand the slice if necessary
  16007. var decodeIntoBlank bool
  16008. if j >= len(v) {
  16009. if canChange {
  16010. v = append(v, 0)
  16011. changed = true
  16012. } else {
  16013. d.arrayCannotExpand(len(v), j+1)
  16014. decodeIntoBlank = true
  16015. }
  16016. }
  16017. slh.ElemContainerState(j)
  16018. if decodeIntoBlank {
  16019. d.swallow()
  16020. } else {
  16021. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  16022. }
  16023. }
  16024. if canChange {
  16025. if j < len(v) {
  16026. v = v[:j]
  16027. changed = true
  16028. } else if j == 0 && v == nil {
  16029. v = make([]uintptr, 0)
  16030. changed = true
  16031. }
  16032. }
  16033. slh.End()
  16034. return v, changed
  16035. }
  16036. func (d *Decoder) fastpathDecSliceIntR(f *codecFnInfo, rv reflect.Value) {
  16037. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16038. var vp = rv2i(rv).(*[]int)
  16039. if v, changed := fastpathTV.DecSliceIntV(*vp, !array, d); changed {
  16040. *vp = v
  16041. }
  16042. } else {
  16043. fastpathTV.DecSliceIntV(rv2i(rv).([]int), !array, d)
  16044. }
  16045. }
  16046. func (f fastpathT) DecSliceIntX(vp *[]int, d *Decoder) {
  16047. if v, changed := f.DecSliceIntV(*vp, true, d); changed {
  16048. *vp = v
  16049. }
  16050. }
  16051. func (_ fastpathT) DecSliceIntV(v []int, canChange bool, d *Decoder) (_ []int, changed bool) {
  16052. dd := d.d
  16053. slh, containerLenS := d.decSliceHelperStart()
  16054. if containerLenS == 0 {
  16055. if canChange {
  16056. if v == nil {
  16057. v = []int{}
  16058. } else if len(v) != 0 {
  16059. v = v[:0]
  16060. }
  16061. changed = true
  16062. }
  16063. slh.End()
  16064. return v, changed
  16065. }
  16066. hasLen := containerLenS > 0
  16067. var xlen int
  16068. if hasLen && canChange {
  16069. if containerLenS > cap(v) {
  16070. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16071. if xlen <= cap(v) {
  16072. v = v[:xlen]
  16073. } else {
  16074. v = make([]int, xlen)
  16075. }
  16076. changed = true
  16077. } else if containerLenS != len(v) {
  16078. v = v[:containerLenS]
  16079. changed = true
  16080. }
  16081. }
  16082. j := 0
  16083. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16084. if j == 0 && len(v) == 0 {
  16085. if hasLen {
  16086. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16087. } else {
  16088. xlen = 8
  16089. }
  16090. v = make([]int, xlen)
  16091. changed = true
  16092. }
  16093. // if indefinite, etc, then expand the slice if necessary
  16094. var decodeIntoBlank bool
  16095. if j >= len(v) {
  16096. if canChange {
  16097. v = append(v, 0)
  16098. changed = true
  16099. } else {
  16100. d.arrayCannotExpand(len(v), j+1)
  16101. decodeIntoBlank = true
  16102. }
  16103. }
  16104. slh.ElemContainerState(j)
  16105. if decodeIntoBlank {
  16106. d.swallow()
  16107. } else {
  16108. v[j] = int(dd.DecodeInt(intBitsize))
  16109. }
  16110. }
  16111. if canChange {
  16112. if j < len(v) {
  16113. v = v[:j]
  16114. changed = true
  16115. } else if j == 0 && v == nil {
  16116. v = make([]int, 0)
  16117. changed = true
  16118. }
  16119. }
  16120. slh.End()
  16121. return v, changed
  16122. }
  16123. func (d *Decoder) fastpathDecSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  16124. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16125. var vp = rv2i(rv).(*[]int8)
  16126. if v, changed := fastpathTV.DecSliceInt8V(*vp, !array, d); changed {
  16127. *vp = v
  16128. }
  16129. } else {
  16130. fastpathTV.DecSliceInt8V(rv2i(rv).([]int8), !array, d)
  16131. }
  16132. }
  16133. func (f fastpathT) DecSliceInt8X(vp *[]int8, d *Decoder) {
  16134. if v, changed := f.DecSliceInt8V(*vp, true, d); changed {
  16135. *vp = v
  16136. }
  16137. }
  16138. func (_ fastpathT) DecSliceInt8V(v []int8, canChange bool, d *Decoder) (_ []int8, changed bool) {
  16139. dd := d.d
  16140. slh, containerLenS := d.decSliceHelperStart()
  16141. if containerLenS == 0 {
  16142. if canChange {
  16143. if v == nil {
  16144. v = []int8{}
  16145. } else if len(v) != 0 {
  16146. v = v[:0]
  16147. }
  16148. changed = true
  16149. }
  16150. slh.End()
  16151. return v, changed
  16152. }
  16153. hasLen := containerLenS > 0
  16154. var xlen int
  16155. if hasLen && canChange {
  16156. if containerLenS > cap(v) {
  16157. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16158. if xlen <= cap(v) {
  16159. v = v[:xlen]
  16160. } else {
  16161. v = make([]int8, xlen)
  16162. }
  16163. changed = true
  16164. } else if containerLenS != len(v) {
  16165. v = v[:containerLenS]
  16166. changed = true
  16167. }
  16168. }
  16169. j := 0
  16170. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16171. if j == 0 && len(v) == 0 {
  16172. if hasLen {
  16173. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16174. } else {
  16175. xlen = 8
  16176. }
  16177. v = make([]int8, xlen)
  16178. changed = true
  16179. }
  16180. // if indefinite, etc, then expand the slice if necessary
  16181. var decodeIntoBlank bool
  16182. if j >= len(v) {
  16183. if canChange {
  16184. v = append(v, 0)
  16185. changed = true
  16186. } else {
  16187. d.arrayCannotExpand(len(v), j+1)
  16188. decodeIntoBlank = true
  16189. }
  16190. }
  16191. slh.ElemContainerState(j)
  16192. if decodeIntoBlank {
  16193. d.swallow()
  16194. } else {
  16195. v[j] = int8(dd.DecodeInt(8))
  16196. }
  16197. }
  16198. if canChange {
  16199. if j < len(v) {
  16200. v = v[:j]
  16201. changed = true
  16202. } else if j == 0 && v == nil {
  16203. v = make([]int8, 0)
  16204. changed = true
  16205. }
  16206. }
  16207. slh.End()
  16208. return v, changed
  16209. }
  16210. func (d *Decoder) fastpathDecSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  16211. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16212. var vp = rv2i(rv).(*[]int16)
  16213. if v, changed := fastpathTV.DecSliceInt16V(*vp, !array, d); changed {
  16214. *vp = v
  16215. }
  16216. } else {
  16217. fastpathTV.DecSliceInt16V(rv2i(rv).([]int16), !array, d)
  16218. }
  16219. }
  16220. func (f fastpathT) DecSliceInt16X(vp *[]int16, d *Decoder) {
  16221. if v, changed := f.DecSliceInt16V(*vp, true, d); changed {
  16222. *vp = v
  16223. }
  16224. }
  16225. func (_ fastpathT) DecSliceInt16V(v []int16, canChange bool, d *Decoder) (_ []int16, changed bool) {
  16226. dd := d.d
  16227. slh, containerLenS := d.decSliceHelperStart()
  16228. if containerLenS == 0 {
  16229. if canChange {
  16230. if v == nil {
  16231. v = []int16{}
  16232. } else if len(v) != 0 {
  16233. v = v[:0]
  16234. }
  16235. changed = true
  16236. }
  16237. slh.End()
  16238. return v, changed
  16239. }
  16240. hasLen := containerLenS > 0
  16241. var xlen int
  16242. if hasLen && canChange {
  16243. if containerLenS > cap(v) {
  16244. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  16245. if xlen <= cap(v) {
  16246. v = v[:xlen]
  16247. } else {
  16248. v = make([]int16, xlen)
  16249. }
  16250. changed = true
  16251. } else if containerLenS != len(v) {
  16252. v = v[:containerLenS]
  16253. changed = true
  16254. }
  16255. }
  16256. j := 0
  16257. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16258. if j == 0 && len(v) == 0 {
  16259. if hasLen {
  16260. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  16261. } else {
  16262. xlen = 8
  16263. }
  16264. v = make([]int16, xlen)
  16265. changed = true
  16266. }
  16267. // if indefinite, etc, then expand the slice if necessary
  16268. var decodeIntoBlank bool
  16269. if j >= len(v) {
  16270. if canChange {
  16271. v = append(v, 0)
  16272. changed = true
  16273. } else {
  16274. d.arrayCannotExpand(len(v), j+1)
  16275. decodeIntoBlank = true
  16276. }
  16277. }
  16278. slh.ElemContainerState(j)
  16279. if decodeIntoBlank {
  16280. d.swallow()
  16281. } else {
  16282. v[j] = int16(dd.DecodeInt(16))
  16283. }
  16284. }
  16285. if canChange {
  16286. if j < len(v) {
  16287. v = v[:j]
  16288. changed = true
  16289. } else if j == 0 && v == nil {
  16290. v = make([]int16, 0)
  16291. changed = true
  16292. }
  16293. }
  16294. slh.End()
  16295. return v, changed
  16296. }
  16297. func (d *Decoder) fastpathDecSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  16298. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16299. var vp = rv2i(rv).(*[]int32)
  16300. if v, changed := fastpathTV.DecSliceInt32V(*vp, !array, d); changed {
  16301. *vp = v
  16302. }
  16303. } else {
  16304. fastpathTV.DecSliceInt32V(rv2i(rv).([]int32), !array, d)
  16305. }
  16306. }
  16307. func (f fastpathT) DecSliceInt32X(vp *[]int32, d *Decoder) {
  16308. if v, changed := f.DecSliceInt32V(*vp, true, d); changed {
  16309. *vp = v
  16310. }
  16311. }
  16312. func (_ fastpathT) DecSliceInt32V(v []int32, canChange bool, d *Decoder) (_ []int32, changed bool) {
  16313. dd := d.d
  16314. slh, containerLenS := d.decSliceHelperStart()
  16315. if containerLenS == 0 {
  16316. if canChange {
  16317. if v == nil {
  16318. v = []int32{}
  16319. } else if len(v) != 0 {
  16320. v = v[:0]
  16321. }
  16322. changed = true
  16323. }
  16324. slh.End()
  16325. return v, changed
  16326. }
  16327. hasLen := containerLenS > 0
  16328. var xlen int
  16329. if hasLen && canChange {
  16330. if containerLenS > cap(v) {
  16331. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16332. if xlen <= cap(v) {
  16333. v = v[:xlen]
  16334. } else {
  16335. v = make([]int32, xlen)
  16336. }
  16337. changed = true
  16338. } else if containerLenS != len(v) {
  16339. v = v[:containerLenS]
  16340. changed = true
  16341. }
  16342. }
  16343. j := 0
  16344. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16345. if j == 0 && len(v) == 0 {
  16346. if hasLen {
  16347. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16348. } else {
  16349. xlen = 8
  16350. }
  16351. v = make([]int32, xlen)
  16352. changed = true
  16353. }
  16354. // if indefinite, etc, then expand the slice if necessary
  16355. var decodeIntoBlank bool
  16356. if j >= len(v) {
  16357. if canChange {
  16358. v = append(v, 0)
  16359. changed = true
  16360. } else {
  16361. d.arrayCannotExpand(len(v), j+1)
  16362. decodeIntoBlank = true
  16363. }
  16364. }
  16365. slh.ElemContainerState(j)
  16366. if decodeIntoBlank {
  16367. d.swallow()
  16368. } else {
  16369. v[j] = int32(dd.DecodeInt(32))
  16370. }
  16371. }
  16372. if canChange {
  16373. if j < len(v) {
  16374. v = v[:j]
  16375. changed = true
  16376. } else if j == 0 && v == nil {
  16377. v = make([]int32, 0)
  16378. changed = true
  16379. }
  16380. }
  16381. slh.End()
  16382. return v, changed
  16383. }
  16384. func (d *Decoder) fastpathDecSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  16385. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16386. var vp = rv2i(rv).(*[]int64)
  16387. if v, changed := fastpathTV.DecSliceInt64V(*vp, !array, d); changed {
  16388. *vp = v
  16389. }
  16390. } else {
  16391. fastpathTV.DecSliceInt64V(rv2i(rv).([]int64), !array, d)
  16392. }
  16393. }
  16394. func (f fastpathT) DecSliceInt64X(vp *[]int64, d *Decoder) {
  16395. if v, changed := f.DecSliceInt64V(*vp, true, d); changed {
  16396. *vp = v
  16397. }
  16398. }
  16399. func (_ fastpathT) DecSliceInt64V(v []int64, canChange bool, d *Decoder) (_ []int64, changed bool) {
  16400. dd := d.d
  16401. slh, containerLenS := d.decSliceHelperStart()
  16402. if containerLenS == 0 {
  16403. if canChange {
  16404. if v == nil {
  16405. v = []int64{}
  16406. } else if len(v) != 0 {
  16407. v = v[:0]
  16408. }
  16409. changed = true
  16410. }
  16411. slh.End()
  16412. return v, changed
  16413. }
  16414. hasLen := containerLenS > 0
  16415. var xlen int
  16416. if hasLen && canChange {
  16417. if containerLenS > cap(v) {
  16418. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16419. if xlen <= cap(v) {
  16420. v = v[:xlen]
  16421. } else {
  16422. v = make([]int64, xlen)
  16423. }
  16424. changed = true
  16425. } else if containerLenS != len(v) {
  16426. v = v[:containerLenS]
  16427. changed = true
  16428. }
  16429. }
  16430. j := 0
  16431. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16432. if j == 0 && len(v) == 0 {
  16433. if hasLen {
  16434. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16435. } else {
  16436. xlen = 8
  16437. }
  16438. v = make([]int64, xlen)
  16439. changed = true
  16440. }
  16441. // if indefinite, etc, then expand the slice if necessary
  16442. var decodeIntoBlank bool
  16443. if j >= len(v) {
  16444. if canChange {
  16445. v = append(v, 0)
  16446. changed = true
  16447. } else {
  16448. d.arrayCannotExpand(len(v), j+1)
  16449. decodeIntoBlank = true
  16450. }
  16451. }
  16452. slh.ElemContainerState(j)
  16453. if decodeIntoBlank {
  16454. d.swallow()
  16455. } else {
  16456. v[j] = dd.DecodeInt(64)
  16457. }
  16458. }
  16459. if canChange {
  16460. if j < len(v) {
  16461. v = v[:j]
  16462. changed = true
  16463. } else if j == 0 && v == nil {
  16464. v = make([]int64, 0)
  16465. changed = true
  16466. }
  16467. }
  16468. slh.End()
  16469. return v, changed
  16470. }
  16471. func (d *Decoder) fastpathDecSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  16472. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16473. var vp = rv2i(rv).(*[]bool)
  16474. if v, changed := fastpathTV.DecSliceBoolV(*vp, !array, d); changed {
  16475. *vp = v
  16476. }
  16477. } else {
  16478. fastpathTV.DecSliceBoolV(rv2i(rv).([]bool), !array, d)
  16479. }
  16480. }
  16481. func (f fastpathT) DecSliceBoolX(vp *[]bool, d *Decoder) {
  16482. if v, changed := f.DecSliceBoolV(*vp, true, d); changed {
  16483. *vp = v
  16484. }
  16485. }
  16486. func (_ fastpathT) DecSliceBoolV(v []bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  16487. dd := d.d
  16488. slh, containerLenS := d.decSliceHelperStart()
  16489. if containerLenS == 0 {
  16490. if canChange {
  16491. if v == nil {
  16492. v = []bool{}
  16493. } else if len(v) != 0 {
  16494. v = v[:0]
  16495. }
  16496. changed = true
  16497. }
  16498. slh.End()
  16499. return v, changed
  16500. }
  16501. hasLen := containerLenS > 0
  16502. var xlen int
  16503. if hasLen && canChange {
  16504. if containerLenS > cap(v) {
  16505. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16506. if xlen <= cap(v) {
  16507. v = v[:xlen]
  16508. } else {
  16509. v = make([]bool, xlen)
  16510. }
  16511. changed = true
  16512. } else if containerLenS != len(v) {
  16513. v = v[:containerLenS]
  16514. changed = true
  16515. }
  16516. }
  16517. j := 0
  16518. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16519. if j == 0 && len(v) == 0 {
  16520. if hasLen {
  16521. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16522. } else {
  16523. xlen = 8
  16524. }
  16525. v = make([]bool, xlen)
  16526. changed = true
  16527. }
  16528. // if indefinite, etc, then expand the slice if necessary
  16529. var decodeIntoBlank bool
  16530. if j >= len(v) {
  16531. if canChange {
  16532. v = append(v, false)
  16533. changed = true
  16534. } else {
  16535. d.arrayCannotExpand(len(v), j+1)
  16536. decodeIntoBlank = true
  16537. }
  16538. }
  16539. slh.ElemContainerState(j)
  16540. if decodeIntoBlank {
  16541. d.swallow()
  16542. } else {
  16543. v[j] = dd.DecodeBool()
  16544. }
  16545. }
  16546. if canChange {
  16547. if j < len(v) {
  16548. v = v[:j]
  16549. changed = true
  16550. } else if j == 0 && v == nil {
  16551. v = make([]bool, 0)
  16552. changed = true
  16553. }
  16554. }
  16555. slh.End()
  16556. return v, changed
  16557. }
  16558. func (d *Decoder) fastpathDecMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  16559. if rv.Kind() == reflect.Ptr {
  16560. vp := rv2i(rv).(*map[interface{}]interface{})
  16561. if v, changed := fastpathTV.DecMapIntfIntfV(*vp, true, d); changed {
  16562. *vp = v
  16563. }
  16564. return
  16565. }
  16566. fastpathTV.DecMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), false, d)
  16567. }
  16568. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, d *Decoder) {
  16569. if v, changed := f.DecMapIntfIntfV(*vp, true, d); changed {
  16570. *vp = v
  16571. }
  16572. }
  16573. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, canChange bool,
  16574. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  16575. dd, esep := d.d, d.hh.hasElemSeparators()
  16576. containerLen := dd.ReadMapStart()
  16577. if canChange && v == nil {
  16578. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  16579. v = make(map[interface{}]interface{}, xlen)
  16580. changed = true
  16581. }
  16582. if containerLen == 0 {
  16583. dd.ReadMapEnd()
  16584. return v, changed
  16585. }
  16586. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  16587. var mk interface{}
  16588. var mv interface{}
  16589. hasLen := containerLen > 0
  16590. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16591. if esep {
  16592. dd.ReadMapElemKey()
  16593. }
  16594. mk = nil
  16595. d.decode(&mk)
  16596. if bv, bok := mk.([]byte); bok {
  16597. mk = d.string(bv)
  16598. }
  16599. if esep {
  16600. dd.ReadMapElemValue()
  16601. }
  16602. if dd.TryDecodeAsNil() {
  16603. if d.h.DeleteOnNilMapValue {
  16604. delete(v, mk)
  16605. } else {
  16606. v[mk] = nil
  16607. }
  16608. continue
  16609. }
  16610. if mapGet {
  16611. mv = v[mk]
  16612. } else {
  16613. mv = nil
  16614. }
  16615. d.decode(&mv)
  16616. if v != nil {
  16617. v[mk] = mv
  16618. }
  16619. }
  16620. dd.ReadMapEnd()
  16621. return v, changed
  16622. }
  16623. func (d *Decoder) fastpathDecMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  16624. if rv.Kind() == reflect.Ptr {
  16625. vp := rv2i(rv).(*map[interface{}]string)
  16626. if v, changed := fastpathTV.DecMapIntfStringV(*vp, true, d); changed {
  16627. *vp = v
  16628. }
  16629. return
  16630. }
  16631. fastpathTV.DecMapIntfStringV(rv2i(rv).(map[interface{}]string), false, d)
  16632. }
  16633. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, d *Decoder) {
  16634. if v, changed := f.DecMapIntfStringV(*vp, true, d); changed {
  16635. *vp = v
  16636. }
  16637. }
  16638. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, canChange bool,
  16639. d *Decoder) (_ map[interface{}]string, changed bool) {
  16640. dd, esep := d.d, d.hh.hasElemSeparators()
  16641. containerLen := dd.ReadMapStart()
  16642. if canChange && v == nil {
  16643. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  16644. v = make(map[interface{}]string, xlen)
  16645. changed = true
  16646. }
  16647. if containerLen == 0 {
  16648. dd.ReadMapEnd()
  16649. return v, changed
  16650. }
  16651. var mk interface{}
  16652. var mv string
  16653. hasLen := containerLen > 0
  16654. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16655. if esep {
  16656. dd.ReadMapElemKey()
  16657. }
  16658. mk = nil
  16659. d.decode(&mk)
  16660. if bv, bok := mk.([]byte); bok {
  16661. mk = d.string(bv)
  16662. }
  16663. if esep {
  16664. dd.ReadMapElemValue()
  16665. }
  16666. if dd.TryDecodeAsNil() {
  16667. if d.h.DeleteOnNilMapValue {
  16668. delete(v, mk)
  16669. } else {
  16670. v[mk] = ""
  16671. }
  16672. continue
  16673. }
  16674. mv = dd.DecodeString()
  16675. if v != nil {
  16676. v[mk] = mv
  16677. }
  16678. }
  16679. dd.ReadMapEnd()
  16680. return v, changed
  16681. }
  16682. func (d *Decoder) fastpathDecMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  16683. if rv.Kind() == reflect.Ptr {
  16684. vp := rv2i(rv).(*map[interface{}]uint)
  16685. if v, changed := fastpathTV.DecMapIntfUintV(*vp, true, d); changed {
  16686. *vp = v
  16687. }
  16688. return
  16689. }
  16690. fastpathTV.DecMapIntfUintV(rv2i(rv).(map[interface{}]uint), false, d)
  16691. }
  16692. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, d *Decoder) {
  16693. if v, changed := f.DecMapIntfUintV(*vp, true, d); changed {
  16694. *vp = v
  16695. }
  16696. }
  16697. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, canChange bool,
  16698. d *Decoder) (_ map[interface{}]uint, changed bool) {
  16699. dd, esep := d.d, d.hh.hasElemSeparators()
  16700. containerLen := dd.ReadMapStart()
  16701. if canChange && v == nil {
  16702. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  16703. v = make(map[interface{}]uint, xlen)
  16704. changed = true
  16705. }
  16706. if containerLen == 0 {
  16707. dd.ReadMapEnd()
  16708. return v, changed
  16709. }
  16710. var mk interface{}
  16711. var mv uint
  16712. hasLen := containerLen > 0
  16713. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16714. if esep {
  16715. dd.ReadMapElemKey()
  16716. }
  16717. mk = nil
  16718. d.decode(&mk)
  16719. if bv, bok := mk.([]byte); bok {
  16720. mk = d.string(bv)
  16721. }
  16722. if esep {
  16723. dd.ReadMapElemValue()
  16724. }
  16725. if dd.TryDecodeAsNil() {
  16726. if d.h.DeleteOnNilMapValue {
  16727. delete(v, mk)
  16728. } else {
  16729. v[mk] = 0
  16730. }
  16731. continue
  16732. }
  16733. mv = uint(dd.DecodeUint(uintBitsize))
  16734. if v != nil {
  16735. v[mk] = mv
  16736. }
  16737. }
  16738. dd.ReadMapEnd()
  16739. return v, changed
  16740. }
  16741. func (d *Decoder) fastpathDecMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  16742. if rv.Kind() == reflect.Ptr {
  16743. vp := rv2i(rv).(*map[interface{}]uint8)
  16744. if v, changed := fastpathTV.DecMapIntfUint8V(*vp, true, d); changed {
  16745. *vp = v
  16746. }
  16747. return
  16748. }
  16749. fastpathTV.DecMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), false, d)
  16750. }
  16751. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, d *Decoder) {
  16752. if v, changed := f.DecMapIntfUint8V(*vp, true, d); changed {
  16753. *vp = v
  16754. }
  16755. }
  16756. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, canChange bool,
  16757. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  16758. dd, esep := d.d, d.hh.hasElemSeparators()
  16759. containerLen := dd.ReadMapStart()
  16760. if canChange && v == nil {
  16761. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  16762. v = make(map[interface{}]uint8, xlen)
  16763. changed = true
  16764. }
  16765. if containerLen == 0 {
  16766. dd.ReadMapEnd()
  16767. return v, changed
  16768. }
  16769. var mk interface{}
  16770. var mv uint8
  16771. hasLen := containerLen > 0
  16772. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16773. if esep {
  16774. dd.ReadMapElemKey()
  16775. }
  16776. mk = nil
  16777. d.decode(&mk)
  16778. if bv, bok := mk.([]byte); bok {
  16779. mk = d.string(bv)
  16780. }
  16781. if esep {
  16782. dd.ReadMapElemValue()
  16783. }
  16784. if dd.TryDecodeAsNil() {
  16785. if d.h.DeleteOnNilMapValue {
  16786. delete(v, mk)
  16787. } else {
  16788. v[mk] = 0
  16789. }
  16790. continue
  16791. }
  16792. mv = uint8(dd.DecodeUint(8))
  16793. if v != nil {
  16794. v[mk] = mv
  16795. }
  16796. }
  16797. dd.ReadMapEnd()
  16798. return v, changed
  16799. }
  16800. func (d *Decoder) fastpathDecMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  16801. if rv.Kind() == reflect.Ptr {
  16802. vp := rv2i(rv).(*map[interface{}]uint16)
  16803. if v, changed := fastpathTV.DecMapIntfUint16V(*vp, true, d); changed {
  16804. *vp = v
  16805. }
  16806. return
  16807. }
  16808. fastpathTV.DecMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), false, d)
  16809. }
  16810. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, d *Decoder) {
  16811. if v, changed := f.DecMapIntfUint16V(*vp, true, d); changed {
  16812. *vp = v
  16813. }
  16814. }
  16815. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, canChange bool,
  16816. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  16817. dd, esep := d.d, d.hh.hasElemSeparators()
  16818. containerLen := dd.ReadMapStart()
  16819. if canChange && v == nil {
  16820. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  16821. v = make(map[interface{}]uint16, xlen)
  16822. changed = true
  16823. }
  16824. if containerLen == 0 {
  16825. dd.ReadMapEnd()
  16826. return v, changed
  16827. }
  16828. var mk interface{}
  16829. var mv uint16
  16830. hasLen := containerLen > 0
  16831. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16832. if esep {
  16833. dd.ReadMapElemKey()
  16834. }
  16835. mk = nil
  16836. d.decode(&mk)
  16837. if bv, bok := mk.([]byte); bok {
  16838. mk = d.string(bv)
  16839. }
  16840. if esep {
  16841. dd.ReadMapElemValue()
  16842. }
  16843. if dd.TryDecodeAsNil() {
  16844. if d.h.DeleteOnNilMapValue {
  16845. delete(v, mk)
  16846. } else {
  16847. v[mk] = 0
  16848. }
  16849. continue
  16850. }
  16851. mv = uint16(dd.DecodeUint(16))
  16852. if v != nil {
  16853. v[mk] = mv
  16854. }
  16855. }
  16856. dd.ReadMapEnd()
  16857. return v, changed
  16858. }
  16859. func (d *Decoder) fastpathDecMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  16860. if rv.Kind() == reflect.Ptr {
  16861. vp := rv2i(rv).(*map[interface{}]uint32)
  16862. if v, changed := fastpathTV.DecMapIntfUint32V(*vp, true, d); changed {
  16863. *vp = v
  16864. }
  16865. return
  16866. }
  16867. fastpathTV.DecMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), false, d)
  16868. }
  16869. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, d *Decoder) {
  16870. if v, changed := f.DecMapIntfUint32V(*vp, true, d); changed {
  16871. *vp = v
  16872. }
  16873. }
  16874. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, canChange bool,
  16875. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  16876. dd, esep := d.d, d.hh.hasElemSeparators()
  16877. containerLen := dd.ReadMapStart()
  16878. if canChange && v == nil {
  16879. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  16880. v = make(map[interface{}]uint32, xlen)
  16881. changed = true
  16882. }
  16883. if containerLen == 0 {
  16884. dd.ReadMapEnd()
  16885. return v, changed
  16886. }
  16887. var mk interface{}
  16888. var mv uint32
  16889. hasLen := containerLen > 0
  16890. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16891. if esep {
  16892. dd.ReadMapElemKey()
  16893. }
  16894. mk = nil
  16895. d.decode(&mk)
  16896. if bv, bok := mk.([]byte); bok {
  16897. mk = d.string(bv)
  16898. }
  16899. if esep {
  16900. dd.ReadMapElemValue()
  16901. }
  16902. if dd.TryDecodeAsNil() {
  16903. if d.h.DeleteOnNilMapValue {
  16904. delete(v, mk)
  16905. } else {
  16906. v[mk] = 0
  16907. }
  16908. continue
  16909. }
  16910. mv = uint32(dd.DecodeUint(32))
  16911. if v != nil {
  16912. v[mk] = mv
  16913. }
  16914. }
  16915. dd.ReadMapEnd()
  16916. return v, changed
  16917. }
  16918. func (d *Decoder) fastpathDecMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  16919. if rv.Kind() == reflect.Ptr {
  16920. vp := rv2i(rv).(*map[interface{}]uint64)
  16921. if v, changed := fastpathTV.DecMapIntfUint64V(*vp, true, d); changed {
  16922. *vp = v
  16923. }
  16924. return
  16925. }
  16926. fastpathTV.DecMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), false, d)
  16927. }
  16928. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, d *Decoder) {
  16929. if v, changed := f.DecMapIntfUint64V(*vp, true, d); changed {
  16930. *vp = v
  16931. }
  16932. }
  16933. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, canChange bool,
  16934. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  16935. dd, esep := d.d, d.hh.hasElemSeparators()
  16936. containerLen := dd.ReadMapStart()
  16937. if canChange && v == nil {
  16938. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  16939. v = make(map[interface{}]uint64, xlen)
  16940. changed = true
  16941. }
  16942. if containerLen == 0 {
  16943. dd.ReadMapEnd()
  16944. return v, changed
  16945. }
  16946. var mk interface{}
  16947. var mv uint64
  16948. hasLen := containerLen > 0
  16949. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16950. if esep {
  16951. dd.ReadMapElemKey()
  16952. }
  16953. mk = nil
  16954. d.decode(&mk)
  16955. if bv, bok := mk.([]byte); bok {
  16956. mk = d.string(bv)
  16957. }
  16958. if esep {
  16959. dd.ReadMapElemValue()
  16960. }
  16961. if dd.TryDecodeAsNil() {
  16962. if d.h.DeleteOnNilMapValue {
  16963. delete(v, mk)
  16964. } else {
  16965. v[mk] = 0
  16966. }
  16967. continue
  16968. }
  16969. mv = dd.DecodeUint(64)
  16970. if v != nil {
  16971. v[mk] = mv
  16972. }
  16973. }
  16974. dd.ReadMapEnd()
  16975. return v, changed
  16976. }
  16977. func (d *Decoder) fastpathDecMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  16978. if rv.Kind() == reflect.Ptr {
  16979. vp := rv2i(rv).(*map[interface{}]uintptr)
  16980. if v, changed := fastpathTV.DecMapIntfUintptrV(*vp, true, d); changed {
  16981. *vp = v
  16982. }
  16983. return
  16984. }
  16985. fastpathTV.DecMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), false, d)
  16986. }
  16987. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, d *Decoder) {
  16988. if v, changed := f.DecMapIntfUintptrV(*vp, true, d); changed {
  16989. *vp = v
  16990. }
  16991. }
  16992. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, canChange bool,
  16993. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  16994. dd, esep := d.d, d.hh.hasElemSeparators()
  16995. containerLen := dd.ReadMapStart()
  16996. if canChange && v == nil {
  16997. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  16998. v = make(map[interface{}]uintptr, xlen)
  16999. changed = true
  17000. }
  17001. if containerLen == 0 {
  17002. dd.ReadMapEnd()
  17003. return v, changed
  17004. }
  17005. var mk interface{}
  17006. var mv uintptr
  17007. hasLen := containerLen > 0
  17008. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17009. if esep {
  17010. dd.ReadMapElemKey()
  17011. }
  17012. mk = nil
  17013. d.decode(&mk)
  17014. if bv, bok := mk.([]byte); bok {
  17015. mk = d.string(bv)
  17016. }
  17017. if esep {
  17018. dd.ReadMapElemValue()
  17019. }
  17020. if dd.TryDecodeAsNil() {
  17021. if d.h.DeleteOnNilMapValue {
  17022. delete(v, mk)
  17023. } else {
  17024. v[mk] = 0
  17025. }
  17026. continue
  17027. }
  17028. mv = uintptr(dd.DecodeUint(uintBitsize))
  17029. if v != nil {
  17030. v[mk] = mv
  17031. }
  17032. }
  17033. dd.ReadMapEnd()
  17034. return v, changed
  17035. }
  17036. func (d *Decoder) fastpathDecMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  17037. if rv.Kind() == reflect.Ptr {
  17038. vp := rv2i(rv).(*map[interface{}]int)
  17039. if v, changed := fastpathTV.DecMapIntfIntV(*vp, true, d); changed {
  17040. *vp = v
  17041. }
  17042. return
  17043. }
  17044. fastpathTV.DecMapIntfIntV(rv2i(rv).(map[interface{}]int), false, d)
  17045. }
  17046. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, d *Decoder) {
  17047. if v, changed := f.DecMapIntfIntV(*vp, true, d); changed {
  17048. *vp = v
  17049. }
  17050. }
  17051. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, canChange bool,
  17052. d *Decoder) (_ map[interface{}]int, changed bool) {
  17053. dd, esep := d.d, d.hh.hasElemSeparators()
  17054. containerLen := dd.ReadMapStart()
  17055. if canChange && v == nil {
  17056. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17057. v = make(map[interface{}]int, xlen)
  17058. changed = true
  17059. }
  17060. if containerLen == 0 {
  17061. dd.ReadMapEnd()
  17062. return v, changed
  17063. }
  17064. var mk interface{}
  17065. var mv int
  17066. hasLen := containerLen > 0
  17067. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17068. if esep {
  17069. dd.ReadMapElemKey()
  17070. }
  17071. mk = nil
  17072. d.decode(&mk)
  17073. if bv, bok := mk.([]byte); bok {
  17074. mk = d.string(bv)
  17075. }
  17076. if esep {
  17077. dd.ReadMapElemValue()
  17078. }
  17079. if dd.TryDecodeAsNil() {
  17080. if d.h.DeleteOnNilMapValue {
  17081. delete(v, mk)
  17082. } else {
  17083. v[mk] = 0
  17084. }
  17085. continue
  17086. }
  17087. mv = int(dd.DecodeInt(intBitsize))
  17088. if v != nil {
  17089. v[mk] = mv
  17090. }
  17091. }
  17092. dd.ReadMapEnd()
  17093. return v, changed
  17094. }
  17095. func (d *Decoder) fastpathDecMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  17096. if rv.Kind() == reflect.Ptr {
  17097. vp := rv2i(rv).(*map[interface{}]int8)
  17098. if v, changed := fastpathTV.DecMapIntfInt8V(*vp, true, d); changed {
  17099. *vp = v
  17100. }
  17101. return
  17102. }
  17103. fastpathTV.DecMapIntfInt8V(rv2i(rv).(map[interface{}]int8), false, d)
  17104. }
  17105. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, d *Decoder) {
  17106. if v, changed := f.DecMapIntfInt8V(*vp, true, d); changed {
  17107. *vp = v
  17108. }
  17109. }
  17110. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, canChange bool,
  17111. d *Decoder) (_ map[interface{}]int8, changed bool) {
  17112. dd, esep := d.d, d.hh.hasElemSeparators()
  17113. containerLen := dd.ReadMapStart()
  17114. if canChange && v == nil {
  17115. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  17116. v = make(map[interface{}]int8, xlen)
  17117. changed = true
  17118. }
  17119. if containerLen == 0 {
  17120. dd.ReadMapEnd()
  17121. return v, changed
  17122. }
  17123. var mk interface{}
  17124. var mv int8
  17125. hasLen := containerLen > 0
  17126. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17127. if esep {
  17128. dd.ReadMapElemKey()
  17129. }
  17130. mk = nil
  17131. d.decode(&mk)
  17132. if bv, bok := mk.([]byte); bok {
  17133. mk = d.string(bv)
  17134. }
  17135. if esep {
  17136. dd.ReadMapElemValue()
  17137. }
  17138. if dd.TryDecodeAsNil() {
  17139. if d.h.DeleteOnNilMapValue {
  17140. delete(v, mk)
  17141. } else {
  17142. v[mk] = 0
  17143. }
  17144. continue
  17145. }
  17146. mv = int8(dd.DecodeInt(8))
  17147. if v != nil {
  17148. v[mk] = mv
  17149. }
  17150. }
  17151. dd.ReadMapEnd()
  17152. return v, changed
  17153. }
  17154. func (d *Decoder) fastpathDecMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  17155. if rv.Kind() == reflect.Ptr {
  17156. vp := rv2i(rv).(*map[interface{}]int16)
  17157. if v, changed := fastpathTV.DecMapIntfInt16V(*vp, true, d); changed {
  17158. *vp = v
  17159. }
  17160. return
  17161. }
  17162. fastpathTV.DecMapIntfInt16V(rv2i(rv).(map[interface{}]int16), false, d)
  17163. }
  17164. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, d *Decoder) {
  17165. if v, changed := f.DecMapIntfInt16V(*vp, true, d); changed {
  17166. *vp = v
  17167. }
  17168. }
  17169. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, canChange bool,
  17170. d *Decoder) (_ map[interface{}]int16, changed bool) {
  17171. dd, esep := d.d, d.hh.hasElemSeparators()
  17172. containerLen := dd.ReadMapStart()
  17173. if canChange && v == nil {
  17174. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  17175. v = make(map[interface{}]int16, xlen)
  17176. changed = true
  17177. }
  17178. if containerLen == 0 {
  17179. dd.ReadMapEnd()
  17180. return v, changed
  17181. }
  17182. var mk interface{}
  17183. var mv int16
  17184. hasLen := containerLen > 0
  17185. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17186. if esep {
  17187. dd.ReadMapElemKey()
  17188. }
  17189. mk = nil
  17190. d.decode(&mk)
  17191. if bv, bok := mk.([]byte); bok {
  17192. mk = d.string(bv)
  17193. }
  17194. if esep {
  17195. dd.ReadMapElemValue()
  17196. }
  17197. if dd.TryDecodeAsNil() {
  17198. if d.h.DeleteOnNilMapValue {
  17199. delete(v, mk)
  17200. } else {
  17201. v[mk] = 0
  17202. }
  17203. continue
  17204. }
  17205. mv = int16(dd.DecodeInt(16))
  17206. if v != nil {
  17207. v[mk] = mv
  17208. }
  17209. }
  17210. dd.ReadMapEnd()
  17211. return v, changed
  17212. }
  17213. func (d *Decoder) fastpathDecMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  17214. if rv.Kind() == reflect.Ptr {
  17215. vp := rv2i(rv).(*map[interface{}]int32)
  17216. if v, changed := fastpathTV.DecMapIntfInt32V(*vp, true, d); changed {
  17217. *vp = v
  17218. }
  17219. return
  17220. }
  17221. fastpathTV.DecMapIntfInt32V(rv2i(rv).(map[interface{}]int32), false, d)
  17222. }
  17223. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, d *Decoder) {
  17224. if v, changed := f.DecMapIntfInt32V(*vp, true, d); changed {
  17225. *vp = v
  17226. }
  17227. }
  17228. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, canChange bool,
  17229. d *Decoder) (_ map[interface{}]int32, changed bool) {
  17230. dd, esep := d.d, d.hh.hasElemSeparators()
  17231. containerLen := dd.ReadMapStart()
  17232. if canChange && v == nil {
  17233. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17234. v = make(map[interface{}]int32, xlen)
  17235. changed = true
  17236. }
  17237. if containerLen == 0 {
  17238. dd.ReadMapEnd()
  17239. return v, changed
  17240. }
  17241. var mk interface{}
  17242. var mv int32
  17243. hasLen := containerLen > 0
  17244. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17245. if esep {
  17246. dd.ReadMapElemKey()
  17247. }
  17248. mk = nil
  17249. d.decode(&mk)
  17250. if bv, bok := mk.([]byte); bok {
  17251. mk = d.string(bv)
  17252. }
  17253. if esep {
  17254. dd.ReadMapElemValue()
  17255. }
  17256. if dd.TryDecodeAsNil() {
  17257. if d.h.DeleteOnNilMapValue {
  17258. delete(v, mk)
  17259. } else {
  17260. v[mk] = 0
  17261. }
  17262. continue
  17263. }
  17264. mv = int32(dd.DecodeInt(32))
  17265. if v != nil {
  17266. v[mk] = mv
  17267. }
  17268. }
  17269. dd.ReadMapEnd()
  17270. return v, changed
  17271. }
  17272. func (d *Decoder) fastpathDecMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  17273. if rv.Kind() == reflect.Ptr {
  17274. vp := rv2i(rv).(*map[interface{}]int64)
  17275. if v, changed := fastpathTV.DecMapIntfInt64V(*vp, true, d); changed {
  17276. *vp = v
  17277. }
  17278. return
  17279. }
  17280. fastpathTV.DecMapIntfInt64V(rv2i(rv).(map[interface{}]int64), false, d)
  17281. }
  17282. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, d *Decoder) {
  17283. if v, changed := f.DecMapIntfInt64V(*vp, true, d); changed {
  17284. *vp = v
  17285. }
  17286. }
  17287. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, canChange bool,
  17288. d *Decoder) (_ map[interface{}]int64, changed bool) {
  17289. dd, esep := d.d, d.hh.hasElemSeparators()
  17290. containerLen := dd.ReadMapStart()
  17291. if canChange && v == nil {
  17292. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17293. v = make(map[interface{}]int64, xlen)
  17294. changed = true
  17295. }
  17296. if containerLen == 0 {
  17297. dd.ReadMapEnd()
  17298. return v, changed
  17299. }
  17300. var mk interface{}
  17301. var mv int64
  17302. hasLen := containerLen > 0
  17303. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17304. if esep {
  17305. dd.ReadMapElemKey()
  17306. }
  17307. mk = nil
  17308. d.decode(&mk)
  17309. if bv, bok := mk.([]byte); bok {
  17310. mk = d.string(bv)
  17311. }
  17312. if esep {
  17313. dd.ReadMapElemValue()
  17314. }
  17315. if dd.TryDecodeAsNil() {
  17316. if d.h.DeleteOnNilMapValue {
  17317. delete(v, mk)
  17318. } else {
  17319. v[mk] = 0
  17320. }
  17321. continue
  17322. }
  17323. mv = dd.DecodeInt(64)
  17324. if v != nil {
  17325. v[mk] = mv
  17326. }
  17327. }
  17328. dd.ReadMapEnd()
  17329. return v, changed
  17330. }
  17331. func (d *Decoder) fastpathDecMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  17332. if rv.Kind() == reflect.Ptr {
  17333. vp := rv2i(rv).(*map[interface{}]float32)
  17334. if v, changed := fastpathTV.DecMapIntfFloat32V(*vp, true, d); changed {
  17335. *vp = v
  17336. }
  17337. return
  17338. }
  17339. fastpathTV.DecMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), false, d)
  17340. }
  17341. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, d *Decoder) {
  17342. if v, changed := f.DecMapIntfFloat32V(*vp, true, d); changed {
  17343. *vp = v
  17344. }
  17345. }
  17346. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, canChange bool,
  17347. d *Decoder) (_ map[interface{}]float32, changed bool) {
  17348. dd, esep := d.d, d.hh.hasElemSeparators()
  17349. containerLen := dd.ReadMapStart()
  17350. if canChange && v == nil {
  17351. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17352. v = make(map[interface{}]float32, xlen)
  17353. changed = true
  17354. }
  17355. if containerLen == 0 {
  17356. dd.ReadMapEnd()
  17357. return v, changed
  17358. }
  17359. var mk interface{}
  17360. var mv float32
  17361. hasLen := containerLen > 0
  17362. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17363. if esep {
  17364. dd.ReadMapElemKey()
  17365. }
  17366. mk = nil
  17367. d.decode(&mk)
  17368. if bv, bok := mk.([]byte); bok {
  17369. mk = d.string(bv)
  17370. }
  17371. if esep {
  17372. dd.ReadMapElemValue()
  17373. }
  17374. if dd.TryDecodeAsNil() {
  17375. if d.h.DeleteOnNilMapValue {
  17376. delete(v, mk)
  17377. } else {
  17378. v[mk] = 0
  17379. }
  17380. continue
  17381. }
  17382. mv = float32(dd.DecodeFloat(true))
  17383. if v != nil {
  17384. v[mk] = mv
  17385. }
  17386. }
  17387. dd.ReadMapEnd()
  17388. return v, changed
  17389. }
  17390. func (d *Decoder) fastpathDecMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  17391. if rv.Kind() == reflect.Ptr {
  17392. vp := rv2i(rv).(*map[interface{}]float64)
  17393. if v, changed := fastpathTV.DecMapIntfFloat64V(*vp, true, d); changed {
  17394. *vp = v
  17395. }
  17396. return
  17397. }
  17398. fastpathTV.DecMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), false, d)
  17399. }
  17400. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, d *Decoder) {
  17401. if v, changed := f.DecMapIntfFloat64V(*vp, true, d); changed {
  17402. *vp = v
  17403. }
  17404. }
  17405. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, canChange bool,
  17406. d *Decoder) (_ map[interface{}]float64, changed bool) {
  17407. dd, esep := d.d, d.hh.hasElemSeparators()
  17408. containerLen := dd.ReadMapStart()
  17409. if canChange && v == nil {
  17410. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17411. v = make(map[interface{}]float64, xlen)
  17412. changed = true
  17413. }
  17414. if containerLen == 0 {
  17415. dd.ReadMapEnd()
  17416. return v, changed
  17417. }
  17418. var mk interface{}
  17419. var mv float64
  17420. hasLen := containerLen > 0
  17421. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17422. if esep {
  17423. dd.ReadMapElemKey()
  17424. }
  17425. mk = nil
  17426. d.decode(&mk)
  17427. if bv, bok := mk.([]byte); bok {
  17428. mk = d.string(bv)
  17429. }
  17430. if esep {
  17431. dd.ReadMapElemValue()
  17432. }
  17433. if dd.TryDecodeAsNil() {
  17434. if d.h.DeleteOnNilMapValue {
  17435. delete(v, mk)
  17436. } else {
  17437. v[mk] = 0
  17438. }
  17439. continue
  17440. }
  17441. mv = dd.DecodeFloat(false)
  17442. if v != nil {
  17443. v[mk] = mv
  17444. }
  17445. }
  17446. dd.ReadMapEnd()
  17447. return v, changed
  17448. }
  17449. func (d *Decoder) fastpathDecMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  17450. if rv.Kind() == reflect.Ptr {
  17451. vp := rv2i(rv).(*map[interface{}]bool)
  17452. if v, changed := fastpathTV.DecMapIntfBoolV(*vp, true, d); changed {
  17453. *vp = v
  17454. }
  17455. return
  17456. }
  17457. fastpathTV.DecMapIntfBoolV(rv2i(rv).(map[interface{}]bool), false, d)
  17458. }
  17459. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, d *Decoder) {
  17460. if v, changed := f.DecMapIntfBoolV(*vp, true, d); changed {
  17461. *vp = v
  17462. }
  17463. }
  17464. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, canChange bool,
  17465. d *Decoder) (_ map[interface{}]bool, changed bool) {
  17466. dd, esep := d.d, d.hh.hasElemSeparators()
  17467. containerLen := dd.ReadMapStart()
  17468. if canChange && v == nil {
  17469. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  17470. v = make(map[interface{}]bool, xlen)
  17471. changed = true
  17472. }
  17473. if containerLen == 0 {
  17474. dd.ReadMapEnd()
  17475. return v, changed
  17476. }
  17477. var mk interface{}
  17478. var mv bool
  17479. hasLen := containerLen > 0
  17480. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17481. if esep {
  17482. dd.ReadMapElemKey()
  17483. }
  17484. mk = nil
  17485. d.decode(&mk)
  17486. if bv, bok := mk.([]byte); bok {
  17487. mk = d.string(bv)
  17488. }
  17489. if esep {
  17490. dd.ReadMapElemValue()
  17491. }
  17492. if dd.TryDecodeAsNil() {
  17493. if d.h.DeleteOnNilMapValue {
  17494. delete(v, mk)
  17495. } else {
  17496. v[mk] = false
  17497. }
  17498. continue
  17499. }
  17500. mv = dd.DecodeBool()
  17501. if v != nil {
  17502. v[mk] = mv
  17503. }
  17504. }
  17505. dd.ReadMapEnd()
  17506. return v, changed
  17507. }
  17508. func (d *Decoder) fastpathDecMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  17509. if rv.Kind() == reflect.Ptr {
  17510. vp := rv2i(rv).(*map[string]interface{})
  17511. if v, changed := fastpathTV.DecMapStringIntfV(*vp, true, d); changed {
  17512. *vp = v
  17513. }
  17514. return
  17515. }
  17516. fastpathTV.DecMapStringIntfV(rv2i(rv).(map[string]interface{}), false, d)
  17517. }
  17518. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, d *Decoder) {
  17519. if v, changed := f.DecMapStringIntfV(*vp, true, d); changed {
  17520. *vp = v
  17521. }
  17522. }
  17523. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, canChange bool,
  17524. d *Decoder) (_ map[string]interface{}, changed bool) {
  17525. dd, esep := d.d, d.hh.hasElemSeparators()
  17526. containerLen := dd.ReadMapStart()
  17527. if canChange && v == nil {
  17528. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  17529. v = make(map[string]interface{}, xlen)
  17530. changed = true
  17531. }
  17532. if containerLen == 0 {
  17533. dd.ReadMapEnd()
  17534. return v, changed
  17535. }
  17536. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  17537. var mk string
  17538. var mv interface{}
  17539. hasLen := containerLen > 0
  17540. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17541. if esep {
  17542. dd.ReadMapElemKey()
  17543. }
  17544. mk = dd.DecodeString()
  17545. if esep {
  17546. dd.ReadMapElemValue()
  17547. }
  17548. if dd.TryDecodeAsNil() {
  17549. if d.h.DeleteOnNilMapValue {
  17550. delete(v, mk)
  17551. } else {
  17552. v[mk] = nil
  17553. }
  17554. continue
  17555. }
  17556. if mapGet {
  17557. mv = v[mk]
  17558. } else {
  17559. mv = nil
  17560. }
  17561. d.decode(&mv)
  17562. if v != nil {
  17563. v[mk] = mv
  17564. }
  17565. }
  17566. dd.ReadMapEnd()
  17567. return v, changed
  17568. }
  17569. func (d *Decoder) fastpathDecMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  17570. if rv.Kind() == reflect.Ptr {
  17571. vp := rv2i(rv).(*map[string]string)
  17572. if v, changed := fastpathTV.DecMapStringStringV(*vp, true, d); changed {
  17573. *vp = v
  17574. }
  17575. return
  17576. }
  17577. fastpathTV.DecMapStringStringV(rv2i(rv).(map[string]string), false, d)
  17578. }
  17579. func (f fastpathT) DecMapStringStringX(vp *map[string]string, d *Decoder) {
  17580. if v, changed := f.DecMapStringStringV(*vp, true, d); changed {
  17581. *vp = v
  17582. }
  17583. }
  17584. func (_ fastpathT) DecMapStringStringV(v map[string]string, canChange bool,
  17585. d *Decoder) (_ map[string]string, changed bool) {
  17586. dd, esep := d.d, d.hh.hasElemSeparators()
  17587. containerLen := dd.ReadMapStart()
  17588. if canChange && v == nil {
  17589. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  17590. v = make(map[string]string, xlen)
  17591. changed = true
  17592. }
  17593. if containerLen == 0 {
  17594. dd.ReadMapEnd()
  17595. return v, changed
  17596. }
  17597. var mk string
  17598. var mv string
  17599. hasLen := containerLen > 0
  17600. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17601. if esep {
  17602. dd.ReadMapElemKey()
  17603. }
  17604. mk = dd.DecodeString()
  17605. if esep {
  17606. dd.ReadMapElemValue()
  17607. }
  17608. if dd.TryDecodeAsNil() {
  17609. if d.h.DeleteOnNilMapValue {
  17610. delete(v, mk)
  17611. } else {
  17612. v[mk] = ""
  17613. }
  17614. continue
  17615. }
  17616. mv = dd.DecodeString()
  17617. if v != nil {
  17618. v[mk] = mv
  17619. }
  17620. }
  17621. dd.ReadMapEnd()
  17622. return v, changed
  17623. }
  17624. func (d *Decoder) fastpathDecMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  17625. if rv.Kind() == reflect.Ptr {
  17626. vp := rv2i(rv).(*map[string]uint)
  17627. if v, changed := fastpathTV.DecMapStringUintV(*vp, true, d); changed {
  17628. *vp = v
  17629. }
  17630. return
  17631. }
  17632. fastpathTV.DecMapStringUintV(rv2i(rv).(map[string]uint), false, d)
  17633. }
  17634. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, d *Decoder) {
  17635. if v, changed := f.DecMapStringUintV(*vp, true, d); changed {
  17636. *vp = v
  17637. }
  17638. }
  17639. func (_ fastpathT) DecMapStringUintV(v map[string]uint, canChange bool,
  17640. d *Decoder) (_ map[string]uint, changed bool) {
  17641. dd, esep := d.d, d.hh.hasElemSeparators()
  17642. containerLen := dd.ReadMapStart()
  17643. if canChange && v == nil {
  17644. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17645. v = make(map[string]uint, xlen)
  17646. changed = true
  17647. }
  17648. if containerLen == 0 {
  17649. dd.ReadMapEnd()
  17650. return v, changed
  17651. }
  17652. var mk string
  17653. var mv uint
  17654. hasLen := containerLen > 0
  17655. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17656. if esep {
  17657. dd.ReadMapElemKey()
  17658. }
  17659. mk = dd.DecodeString()
  17660. if esep {
  17661. dd.ReadMapElemValue()
  17662. }
  17663. if dd.TryDecodeAsNil() {
  17664. if d.h.DeleteOnNilMapValue {
  17665. delete(v, mk)
  17666. } else {
  17667. v[mk] = 0
  17668. }
  17669. continue
  17670. }
  17671. mv = uint(dd.DecodeUint(uintBitsize))
  17672. if v != nil {
  17673. v[mk] = mv
  17674. }
  17675. }
  17676. dd.ReadMapEnd()
  17677. return v, changed
  17678. }
  17679. func (d *Decoder) fastpathDecMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  17680. if rv.Kind() == reflect.Ptr {
  17681. vp := rv2i(rv).(*map[string]uint8)
  17682. if v, changed := fastpathTV.DecMapStringUint8V(*vp, true, d); changed {
  17683. *vp = v
  17684. }
  17685. return
  17686. }
  17687. fastpathTV.DecMapStringUint8V(rv2i(rv).(map[string]uint8), false, d)
  17688. }
  17689. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, d *Decoder) {
  17690. if v, changed := f.DecMapStringUint8V(*vp, true, d); changed {
  17691. *vp = v
  17692. }
  17693. }
  17694. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, canChange bool,
  17695. d *Decoder) (_ map[string]uint8, changed bool) {
  17696. dd, esep := d.d, d.hh.hasElemSeparators()
  17697. containerLen := dd.ReadMapStart()
  17698. if canChange && v == nil {
  17699. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  17700. v = make(map[string]uint8, xlen)
  17701. changed = true
  17702. }
  17703. if containerLen == 0 {
  17704. dd.ReadMapEnd()
  17705. return v, changed
  17706. }
  17707. var mk string
  17708. var mv uint8
  17709. hasLen := containerLen > 0
  17710. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17711. if esep {
  17712. dd.ReadMapElemKey()
  17713. }
  17714. mk = dd.DecodeString()
  17715. if esep {
  17716. dd.ReadMapElemValue()
  17717. }
  17718. if dd.TryDecodeAsNil() {
  17719. if d.h.DeleteOnNilMapValue {
  17720. delete(v, mk)
  17721. } else {
  17722. v[mk] = 0
  17723. }
  17724. continue
  17725. }
  17726. mv = uint8(dd.DecodeUint(8))
  17727. if v != nil {
  17728. v[mk] = mv
  17729. }
  17730. }
  17731. dd.ReadMapEnd()
  17732. return v, changed
  17733. }
  17734. func (d *Decoder) fastpathDecMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  17735. if rv.Kind() == reflect.Ptr {
  17736. vp := rv2i(rv).(*map[string]uint16)
  17737. if v, changed := fastpathTV.DecMapStringUint16V(*vp, true, d); changed {
  17738. *vp = v
  17739. }
  17740. return
  17741. }
  17742. fastpathTV.DecMapStringUint16V(rv2i(rv).(map[string]uint16), false, d)
  17743. }
  17744. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, d *Decoder) {
  17745. if v, changed := f.DecMapStringUint16V(*vp, true, d); changed {
  17746. *vp = v
  17747. }
  17748. }
  17749. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, canChange bool,
  17750. d *Decoder) (_ map[string]uint16, changed bool) {
  17751. dd, esep := d.d, d.hh.hasElemSeparators()
  17752. containerLen := dd.ReadMapStart()
  17753. if canChange && v == nil {
  17754. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  17755. v = make(map[string]uint16, xlen)
  17756. changed = true
  17757. }
  17758. if containerLen == 0 {
  17759. dd.ReadMapEnd()
  17760. return v, changed
  17761. }
  17762. var mk string
  17763. var mv uint16
  17764. hasLen := containerLen > 0
  17765. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17766. if esep {
  17767. dd.ReadMapElemKey()
  17768. }
  17769. mk = dd.DecodeString()
  17770. if esep {
  17771. dd.ReadMapElemValue()
  17772. }
  17773. if dd.TryDecodeAsNil() {
  17774. if d.h.DeleteOnNilMapValue {
  17775. delete(v, mk)
  17776. } else {
  17777. v[mk] = 0
  17778. }
  17779. continue
  17780. }
  17781. mv = uint16(dd.DecodeUint(16))
  17782. if v != nil {
  17783. v[mk] = mv
  17784. }
  17785. }
  17786. dd.ReadMapEnd()
  17787. return v, changed
  17788. }
  17789. func (d *Decoder) fastpathDecMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  17790. if rv.Kind() == reflect.Ptr {
  17791. vp := rv2i(rv).(*map[string]uint32)
  17792. if v, changed := fastpathTV.DecMapStringUint32V(*vp, true, d); changed {
  17793. *vp = v
  17794. }
  17795. return
  17796. }
  17797. fastpathTV.DecMapStringUint32V(rv2i(rv).(map[string]uint32), false, d)
  17798. }
  17799. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, d *Decoder) {
  17800. if v, changed := f.DecMapStringUint32V(*vp, true, d); changed {
  17801. *vp = v
  17802. }
  17803. }
  17804. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, canChange bool,
  17805. d *Decoder) (_ map[string]uint32, changed bool) {
  17806. dd, esep := d.d, d.hh.hasElemSeparators()
  17807. containerLen := dd.ReadMapStart()
  17808. if canChange && v == nil {
  17809. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17810. v = make(map[string]uint32, xlen)
  17811. changed = true
  17812. }
  17813. if containerLen == 0 {
  17814. dd.ReadMapEnd()
  17815. return v, changed
  17816. }
  17817. var mk string
  17818. var mv uint32
  17819. hasLen := containerLen > 0
  17820. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17821. if esep {
  17822. dd.ReadMapElemKey()
  17823. }
  17824. mk = dd.DecodeString()
  17825. if esep {
  17826. dd.ReadMapElemValue()
  17827. }
  17828. if dd.TryDecodeAsNil() {
  17829. if d.h.DeleteOnNilMapValue {
  17830. delete(v, mk)
  17831. } else {
  17832. v[mk] = 0
  17833. }
  17834. continue
  17835. }
  17836. mv = uint32(dd.DecodeUint(32))
  17837. if v != nil {
  17838. v[mk] = mv
  17839. }
  17840. }
  17841. dd.ReadMapEnd()
  17842. return v, changed
  17843. }
  17844. func (d *Decoder) fastpathDecMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  17845. if rv.Kind() == reflect.Ptr {
  17846. vp := rv2i(rv).(*map[string]uint64)
  17847. if v, changed := fastpathTV.DecMapStringUint64V(*vp, true, d); changed {
  17848. *vp = v
  17849. }
  17850. return
  17851. }
  17852. fastpathTV.DecMapStringUint64V(rv2i(rv).(map[string]uint64), false, d)
  17853. }
  17854. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, d *Decoder) {
  17855. if v, changed := f.DecMapStringUint64V(*vp, true, d); changed {
  17856. *vp = v
  17857. }
  17858. }
  17859. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, canChange bool,
  17860. d *Decoder) (_ map[string]uint64, changed bool) {
  17861. dd, esep := d.d, d.hh.hasElemSeparators()
  17862. containerLen := dd.ReadMapStart()
  17863. if canChange && v == nil {
  17864. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17865. v = make(map[string]uint64, xlen)
  17866. changed = true
  17867. }
  17868. if containerLen == 0 {
  17869. dd.ReadMapEnd()
  17870. return v, changed
  17871. }
  17872. var mk string
  17873. var mv uint64
  17874. hasLen := containerLen > 0
  17875. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17876. if esep {
  17877. dd.ReadMapElemKey()
  17878. }
  17879. mk = dd.DecodeString()
  17880. if esep {
  17881. dd.ReadMapElemValue()
  17882. }
  17883. if dd.TryDecodeAsNil() {
  17884. if d.h.DeleteOnNilMapValue {
  17885. delete(v, mk)
  17886. } else {
  17887. v[mk] = 0
  17888. }
  17889. continue
  17890. }
  17891. mv = dd.DecodeUint(64)
  17892. if v != nil {
  17893. v[mk] = mv
  17894. }
  17895. }
  17896. dd.ReadMapEnd()
  17897. return v, changed
  17898. }
  17899. func (d *Decoder) fastpathDecMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  17900. if rv.Kind() == reflect.Ptr {
  17901. vp := rv2i(rv).(*map[string]uintptr)
  17902. if v, changed := fastpathTV.DecMapStringUintptrV(*vp, true, d); changed {
  17903. *vp = v
  17904. }
  17905. return
  17906. }
  17907. fastpathTV.DecMapStringUintptrV(rv2i(rv).(map[string]uintptr), false, d)
  17908. }
  17909. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, d *Decoder) {
  17910. if v, changed := f.DecMapStringUintptrV(*vp, true, d); changed {
  17911. *vp = v
  17912. }
  17913. }
  17914. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, canChange bool,
  17915. d *Decoder) (_ map[string]uintptr, changed bool) {
  17916. dd, esep := d.d, d.hh.hasElemSeparators()
  17917. containerLen := dd.ReadMapStart()
  17918. if canChange && v == nil {
  17919. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17920. v = make(map[string]uintptr, xlen)
  17921. changed = true
  17922. }
  17923. if containerLen == 0 {
  17924. dd.ReadMapEnd()
  17925. return v, changed
  17926. }
  17927. var mk string
  17928. var mv uintptr
  17929. hasLen := containerLen > 0
  17930. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17931. if esep {
  17932. dd.ReadMapElemKey()
  17933. }
  17934. mk = dd.DecodeString()
  17935. if esep {
  17936. dd.ReadMapElemValue()
  17937. }
  17938. if dd.TryDecodeAsNil() {
  17939. if d.h.DeleteOnNilMapValue {
  17940. delete(v, mk)
  17941. } else {
  17942. v[mk] = 0
  17943. }
  17944. continue
  17945. }
  17946. mv = uintptr(dd.DecodeUint(uintBitsize))
  17947. if v != nil {
  17948. v[mk] = mv
  17949. }
  17950. }
  17951. dd.ReadMapEnd()
  17952. return v, changed
  17953. }
  17954. func (d *Decoder) fastpathDecMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  17955. if rv.Kind() == reflect.Ptr {
  17956. vp := rv2i(rv).(*map[string]int)
  17957. if v, changed := fastpathTV.DecMapStringIntV(*vp, true, d); changed {
  17958. *vp = v
  17959. }
  17960. return
  17961. }
  17962. fastpathTV.DecMapStringIntV(rv2i(rv).(map[string]int), false, d)
  17963. }
  17964. func (f fastpathT) DecMapStringIntX(vp *map[string]int, d *Decoder) {
  17965. if v, changed := f.DecMapStringIntV(*vp, true, d); changed {
  17966. *vp = v
  17967. }
  17968. }
  17969. func (_ fastpathT) DecMapStringIntV(v map[string]int, canChange bool,
  17970. d *Decoder) (_ map[string]int, changed bool) {
  17971. dd, esep := d.d, d.hh.hasElemSeparators()
  17972. containerLen := dd.ReadMapStart()
  17973. if canChange && v == nil {
  17974. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17975. v = make(map[string]int, xlen)
  17976. changed = true
  17977. }
  17978. if containerLen == 0 {
  17979. dd.ReadMapEnd()
  17980. return v, changed
  17981. }
  17982. var mk string
  17983. var mv int
  17984. hasLen := containerLen > 0
  17985. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17986. if esep {
  17987. dd.ReadMapElemKey()
  17988. }
  17989. mk = dd.DecodeString()
  17990. if esep {
  17991. dd.ReadMapElemValue()
  17992. }
  17993. if dd.TryDecodeAsNil() {
  17994. if d.h.DeleteOnNilMapValue {
  17995. delete(v, mk)
  17996. } else {
  17997. v[mk] = 0
  17998. }
  17999. continue
  18000. }
  18001. mv = int(dd.DecodeInt(intBitsize))
  18002. if v != nil {
  18003. v[mk] = mv
  18004. }
  18005. }
  18006. dd.ReadMapEnd()
  18007. return v, changed
  18008. }
  18009. func (d *Decoder) fastpathDecMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  18010. if rv.Kind() == reflect.Ptr {
  18011. vp := rv2i(rv).(*map[string]int8)
  18012. if v, changed := fastpathTV.DecMapStringInt8V(*vp, true, d); changed {
  18013. *vp = v
  18014. }
  18015. return
  18016. }
  18017. fastpathTV.DecMapStringInt8V(rv2i(rv).(map[string]int8), false, d)
  18018. }
  18019. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, d *Decoder) {
  18020. if v, changed := f.DecMapStringInt8V(*vp, true, d); changed {
  18021. *vp = v
  18022. }
  18023. }
  18024. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, canChange bool,
  18025. d *Decoder) (_ map[string]int8, changed bool) {
  18026. dd, esep := d.d, d.hh.hasElemSeparators()
  18027. containerLen := dd.ReadMapStart()
  18028. if canChange && v == nil {
  18029. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18030. v = make(map[string]int8, xlen)
  18031. changed = true
  18032. }
  18033. if containerLen == 0 {
  18034. dd.ReadMapEnd()
  18035. return v, changed
  18036. }
  18037. var mk string
  18038. var mv int8
  18039. hasLen := containerLen > 0
  18040. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18041. if esep {
  18042. dd.ReadMapElemKey()
  18043. }
  18044. mk = dd.DecodeString()
  18045. if esep {
  18046. dd.ReadMapElemValue()
  18047. }
  18048. if dd.TryDecodeAsNil() {
  18049. if d.h.DeleteOnNilMapValue {
  18050. delete(v, mk)
  18051. } else {
  18052. v[mk] = 0
  18053. }
  18054. continue
  18055. }
  18056. mv = int8(dd.DecodeInt(8))
  18057. if v != nil {
  18058. v[mk] = mv
  18059. }
  18060. }
  18061. dd.ReadMapEnd()
  18062. return v, changed
  18063. }
  18064. func (d *Decoder) fastpathDecMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  18065. if rv.Kind() == reflect.Ptr {
  18066. vp := rv2i(rv).(*map[string]int16)
  18067. if v, changed := fastpathTV.DecMapStringInt16V(*vp, true, d); changed {
  18068. *vp = v
  18069. }
  18070. return
  18071. }
  18072. fastpathTV.DecMapStringInt16V(rv2i(rv).(map[string]int16), false, d)
  18073. }
  18074. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, d *Decoder) {
  18075. if v, changed := f.DecMapStringInt16V(*vp, true, d); changed {
  18076. *vp = v
  18077. }
  18078. }
  18079. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, canChange bool,
  18080. d *Decoder) (_ map[string]int16, changed bool) {
  18081. dd, esep := d.d, d.hh.hasElemSeparators()
  18082. containerLen := dd.ReadMapStart()
  18083. if canChange && v == nil {
  18084. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  18085. v = make(map[string]int16, xlen)
  18086. changed = true
  18087. }
  18088. if containerLen == 0 {
  18089. dd.ReadMapEnd()
  18090. return v, changed
  18091. }
  18092. var mk string
  18093. var mv int16
  18094. hasLen := containerLen > 0
  18095. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18096. if esep {
  18097. dd.ReadMapElemKey()
  18098. }
  18099. mk = dd.DecodeString()
  18100. if esep {
  18101. dd.ReadMapElemValue()
  18102. }
  18103. if dd.TryDecodeAsNil() {
  18104. if d.h.DeleteOnNilMapValue {
  18105. delete(v, mk)
  18106. } else {
  18107. v[mk] = 0
  18108. }
  18109. continue
  18110. }
  18111. mv = int16(dd.DecodeInt(16))
  18112. if v != nil {
  18113. v[mk] = mv
  18114. }
  18115. }
  18116. dd.ReadMapEnd()
  18117. return v, changed
  18118. }
  18119. func (d *Decoder) fastpathDecMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  18120. if rv.Kind() == reflect.Ptr {
  18121. vp := rv2i(rv).(*map[string]int32)
  18122. if v, changed := fastpathTV.DecMapStringInt32V(*vp, true, d); changed {
  18123. *vp = v
  18124. }
  18125. return
  18126. }
  18127. fastpathTV.DecMapStringInt32V(rv2i(rv).(map[string]int32), false, d)
  18128. }
  18129. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, d *Decoder) {
  18130. if v, changed := f.DecMapStringInt32V(*vp, true, d); changed {
  18131. *vp = v
  18132. }
  18133. }
  18134. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, canChange bool,
  18135. d *Decoder) (_ map[string]int32, changed bool) {
  18136. dd, esep := d.d, d.hh.hasElemSeparators()
  18137. containerLen := dd.ReadMapStart()
  18138. if canChange && v == nil {
  18139. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18140. v = make(map[string]int32, xlen)
  18141. changed = true
  18142. }
  18143. if containerLen == 0 {
  18144. dd.ReadMapEnd()
  18145. return v, changed
  18146. }
  18147. var mk string
  18148. var mv int32
  18149. hasLen := containerLen > 0
  18150. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18151. if esep {
  18152. dd.ReadMapElemKey()
  18153. }
  18154. mk = dd.DecodeString()
  18155. if esep {
  18156. dd.ReadMapElemValue()
  18157. }
  18158. if dd.TryDecodeAsNil() {
  18159. if d.h.DeleteOnNilMapValue {
  18160. delete(v, mk)
  18161. } else {
  18162. v[mk] = 0
  18163. }
  18164. continue
  18165. }
  18166. mv = int32(dd.DecodeInt(32))
  18167. if v != nil {
  18168. v[mk] = mv
  18169. }
  18170. }
  18171. dd.ReadMapEnd()
  18172. return v, changed
  18173. }
  18174. func (d *Decoder) fastpathDecMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  18175. if rv.Kind() == reflect.Ptr {
  18176. vp := rv2i(rv).(*map[string]int64)
  18177. if v, changed := fastpathTV.DecMapStringInt64V(*vp, true, d); changed {
  18178. *vp = v
  18179. }
  18180. return
  18181. }
  18182. fastpathTV.DecMapStringInt64V(rv2i(rv).(map[string]int64), false, d)
  18183. }
  18184. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, d *Decoder) {
  18185. if v, changed := f.DecMapStringInt64V(*vp, true, d); changed {
  18186. *vp = v
  18187. }
  18188. }
  18189. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, canChange bool,
  18190. d *Decoder) (_ map[string]int64, changed bool) {
  18191. dd, esep := d.d, d.hh.hasElemSeparators()
  18192. containerLen := dd.ReadMapStart()
  18193. if canChange && v == nil {
  18194. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18195. v = make(map[string]int64, xlen)
  18196. changed = true
  18197. }
  18198. if containerLen == 0 {
  18199. dd.ReadMapEnd()
  18200. return v, changed
  18201. }
  18202. var mk string
  18203. var mv int64
  18204. hasLen := containerLen > 0
  18205. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18206. if esep {
  18207. dd.ReadMapElemKey()
  18208. }
  18209. mk = dd.DecodeString()
  18210. if esep {
  18211. dd.ReadMapElemValue()
  18212. }
  18213. if dd.TryDecodeAsNil() {
  18214. if d.h.DeleteOnNilMapValue {
  18215. delete(v, mk)
  18216. } else {
  18217. v[mk] = 0
  18218. }
  18219. continue
  18220. }
  18221. mv = dd.DecodeInt(64)
  18222. if v != nil {
  18223. v[mk] = mv
  18224. }
  18225. }
  18226. dd.ReadMapEnd()
  18227. return v, changed
  18228. }
  18229. func (d *Decoder) fastpathDecMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  18230. if rv.Kind() == reflect.Ptr {
  18231. vp := rv2i(rv).(*map[string]float32)
  18232. if v, changed := fastpathTV.DecMapStringFloat32V(*vp, true, d); changed {
  18233. *vp = v
  18234. }
  18235. return
  18236. }
  18237. fastpathTV.DecMapStringFloat32V(rv2i(rv).(map[string]float32), false, d)
  18238. }
  18239. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, d *Decoder) {
  18240. if v, changed := f.DecMapStringFloat32V(*vp, true, d); changed {
  18241. *vp = v
  18242. }
  18243. }
  18244. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, canChange bool,
  18245. d *Decoder) (_ map[string]float32, changed bool) {
  18246. dd, esep := d.d, d.hh.hasElemSeparators()
  18247. containerLen := dd.ReadMapStart()
  18248. if canChange && v == nil {
  18249. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18250. v = make(map[string]float32, xlen)
  18251. changed = true
  18252. }
  18253. if containerLen == 0 {
  18254. dd.ReadMapEnd()
  18255. return v, changed
  18256. }
  18257. var mk string
  18258. var mv float32
  18259. hasLen := containerLen > 0
  18260. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18261. if esep {
  18262. dd.ReadMapElemKey()
  18263. }
  18264. mk = dd.DecodeString()
  18265. if esep {
  18266. dd.ReadMapElemValue()
  18267. }
  18268. if dd.TryDecodeAsNil() {
  18269. if d.h.DeleteOnNilMapValue {
  18270. delete(v, mk)
  18271. } else {
  18272. v[mk] = 0
  18273. }
  18274. continue
  18275. }
  18276. mv = float32(dd.DecodeFloat(true))
  18277. if v != nil {
  18278. v[mk] = mv
  18279. }
  18280. }
  18281. dd.ReadMapEnd()
  18282. return v, changed
  18283. }
  18284. func (d *Decoder) fastpathDecMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  18285. if rv.Kind() == reflect.Ptr {
  18286. vp := rv2i(rv).(*map[string]float64)
  18287. if v, changed := fastpathTV.DecMapStringFloat64V(*vp, true, d); changed {
  18288. *vp = v
  18289. }
  18290. return
  18291. }
  18292. fastpathTV.DecMapStringFloat64V(rv2i(rv).(map[string]float64), false, d)
  18293. }
  18294. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, d *Decoder) {
  18295. if v, changed := f.DecMapStringFloat64V(*vp, true, d); changed {
  18296. *vp = v
  18297. }
  18298. }
  18299. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, canChange bool,
  18300. d *Decoder) (_ map[string]float64, changed bool) {
  18301. dd, esep := d.d, d.hh.hasElemSeparators()
  18302. containerLen := dd.ReadMapStart()
  18303. if canChange && v == nil {
  18304. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18305. v = make(map[string]float64, xlen)
  18306. changed = true
  18307. }
  18308. if containerLen == 0 {
  18309. dd.ReadMapEnd()
  18310. return v, changed
  18311. }
  18312. var mk string
  18313. var mv float64
  18314. hasLen := containerLen > 0
  18315. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18316. if esep {
  18317. dd.ReadMapElemKey()
  18318. }
  18319. mk = dd.DecodeString()
  18320. if esep {
  18321. dd.ReadMapElemValue()
  18322. }
  18323. if dd.TryDecodeAsNil() {
  18324. if d.h.DeleteOnNilMapValue {
  18325. delete(v, mk)
  18326. } else {
  18327. v[mk] = 0
  18328. }
  18329. continue
  18330. }
  18331. mv = dd.DecodeFloat(false)
  18332. if v != nil {
  18333. v[mk] = mv
  18334. }
  18335. }
  18336. dd.ReadMapEnd()
  18337. return v, changed
  18338. }
  18339. func (d *Decoder) fastpathDecMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  18340. if rv.Kind() == reflect.Ptr {
  18341. vp := rv2i(rv).(*map[string]bool)
  18342. if v, changed := fastpathTV.DecMapStringBoolV(*vp, true, d); changed {
  18343. *vp = v
  18344. }
  18345. return
  18346. }
  18347. fastpathTV.DecMapStringBoolV(rv2i(rv).(map[string]bool), false, d)
  18348. }
  18349. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, d *Decoder) {
  18350. if v, changed := f.DecMapStringBoolV(*vp, true, d); changed {
  18351. *vp = v
  18352. }
  18353. }
  18354. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, canChange bool,
  18355. d *Decoder) (_ map[string]bool, changed bool) {
  18356. dd, esep := d.d, d.hh.hasElemSeparators()
  18357. containerLen := dd.ReadMapStart()
  18358. if canChange && v == nil {
  18359. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18360. v = make(map[string]bool, xlen)
  18361. changed = true
  18362. }
  18363. if containerLen == 0 {
  18364. dd.ReadMapEnd()
  18365. return v, changed
  18366. }
  18367. var mk string
  18368. var mv bool
  18369. hasLen := containerLen > 0
  18370. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18371. if esep {
  18372. dd.ReadMapElemKey()
  18373. }
  18374. mk = dd.DecodeString()
  18375. if esep {
  18376. dd.ReadMapElemValue()
  18377. }
  18378. if dd.TryDecodeAsNil() {
  18379. if d.h.DeleteOnNilMapValue {
  18380. delete(v, mk)
  18381. } else {
  18382. v[mk] = false
  18383. }
  18384. continue
  18385. }
  18386. mv = dd.DecodeBool()
  18387. if v != nil {
  18388. v[mk] = mv
  18389. }
  18390. }
  18391. dd.ReadMapEnd()
  18392. return v, changed
  18393. }
  18394. func (d *Decoder) fastpathDecMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  18395. if rv.Kind() == reflect.Ptr {
  18396. vp := rv2i(rv).(*map[float32]interface{})
  18397. if v, changed := fastpathTV.DecMapFloat32IntfV(*vp, true, d); changed {
  18398. *vp = v
  18399. }
  18400. return
  18401. }
  18402. fastpathTV.DecMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), false, d)
  18403. }
  18404. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, d *Decoder) {
  18405. if v, changed := f.DecMapFloat32IntfV(*vp, true, d); changed {
  18406. *vp = v
  18407. }
  18408. }
  18409. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, canChange bool,
  18410. d *Decoder) (_ map[float32]interface{}, changed bool) {
  18411. dd, esep := d.d, d.hh.hasElemSeparators()
  18412. containerLen := dd.ReadMapStart()
  18413. if canChange && v == nil {
  18414. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18415. v = make(map[float32]interface{}, xlen)
  18416. changed = true
  18417. }
  18418. if containerLen == 0 {
  18419. dd.ReadMapEnd()
  18420. return v, changed
  18421. }
  18422. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  18423. var mk float32
  18424. var mv interface{}
  18425. hasLen := containerLen > 0
  18426. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18427. if esep {
  18428. dd.ReadMapElemKey()
  18429. }
  18430. mk = float32(dd.DecodeFloat(true))
  18431. if esep {
  18432. dd.ReadMapElemValue()
  18433. }
  18434. if dd.TryDecodeAsNil() {
  18435. if d.h.DeleteOnNilMapValue {
  18436. delete(v, mk)
  18437. } else {
  18438. v[mk] = nil
  18439. }
  18440. continue
  18441. }
  18442. if mapGet {
  18443. mv = v[mk]
  18444. } else {
  18445. mv = nil
  18446. }
  18447. d.decode(&mv)
  18448. if v != nil {
  18449. v[mk] = mv
  18450. }
  18451. }
  18452. dd.ReadMapEnd()
  18453. return v, changed
  18454. }
  18455. func (d *Decoder) fastpathDecMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  18456. if rv.Kind() == reflect.Ptr {
  18457. vp := rv2i(rv).(*map[float32]string)
  18458. if v, changed := fastpathTV.DecMapFloat32StringV(*vp, true, d); changed {
  18459. *vp = v
  18460. }
  18461. return
  18462. }
  18463. fastpathTV.DecMapFloat32StringV(rv2i(rv).(map[float32]string), false, d)
  18464. }
  18465. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, d *Decoder) {
  18466. if v, changed := f.DecMapFloat32StringV(*vp, true, d); changed {
  18467. *vp = v
  18468. }
  18469. }
  18470. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, canChange bool,
  18471. d *Decoder) (_ map[float32]string, changed bool) {
  18472. dd, esep := d.d, d.hh.hasElemSeparators()
  18473. containerLen := dd.ReadMapStart()
  18474. if canChange && v == nil {
  18475. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18476. v = make(map[float32]string, xlen)
  18477. changed = true
  18478. }
  18479. if containerLen == 0 {
  18480. dd.ReadMapEnd()
  18481. return v, changed
  18482. }
  18483. var mk float32
  18484. var mv string
  18485. hasLen := containerLen > 0
  18486. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18487. if esep {
  18488. dd.ReadMapElemKey()
  18489. }
  18490. mk = float32(dd.DecodeFloat(true))
  18491. if esep {
  18492. dd.ReadMapElemValue()
  18493. }
  18494. if dd.TryDecodeAsNil() {
  18495. if d.h.DeleteOnNilMapValue {
  18496. delete(v, mk)
  18497. } else {
  18498. v[mk] = ""
  18499. }
  18500. continue
  18501. }
  18502. mv = dd.DecodeString()
  18503. if v != nil {
  18504. v[mk] = mv
  18505. }
  18506. }
  18507. dd.ReadMapEnd()
  18508. return v, changed
  18509. }
  18510. func (d *Decoder) fastpathDecMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  18511. if rv.Kind() == reflect.Ptr {
  18512. vp := rv2i(rv).(*map[float32]uint)
  18513. if v, changed := fastpathTV.DecMapFloat32UintV(*vp, true, d); changed {
  18514. *vp = v
  18515. }
  18516. return
  18517. }
  18518. fastpathTV.DecMapFloat32UintV(rv2i(rv).(map[float32]uint), false, d)
  18519. }
  18520. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, d *Decoder) {
  18521. if v, changed := f.DecMapFloat32UintV(*vp, true, d); changed {
  18522. *vp = v
  18523. }
  18524. }
  18525. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, canChange bool,
  18526. d *Decoder) (_ map[float32]uint, changed bool) {
  18527. dd, esep := d.d, d.hh.hasElemSeparators()
  18528. containerLen := dd.ReadMapStart()
  18529. if canChange && v == nil {
  18530. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18531. v = make(map[float32]uint, xlen)
  18532. changed = true
  18533. }
  18534. if containerLen == 0 {
  18535. dd.ReadMapEnd()
  18536. return v, changed
  18537. }
  18538. var mk float32
  18539. var mv uint
  18540. hasLen := containerLen > 0
  18541. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18542. if esep {
  18543. dd.ReadMapElemKey()
  18544. }
  18545. mk = float32(dd.DecodeFloat(true))
  18546. if esep {
  18547. dd.ReadMapElemValue()
  18548. }
  18549. if dd.TryDecodeAsNil() {
  18550. if d.h.DeleteOnNilMapValue {
  18551. delete(v, mk)
  18552. } else {
  18553. v[mk] = 0
  18554. }
  18555. continue
  18556. }
  18557. mv = uint(dd.DecodeUint(uintBitsize))
  18558. if v != nil {
  18559. v[mk] = mv
  18560. }
  18561. }
  18562. dd.ReadMapEnd()
  18563. return v, changed
  18564. }
  18565. func (d *Decoder) fastpathDecMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  18566. if rv.Kind() == reflect.Ptr {
  18567. vp := rv2i(rv).(*map[float32]uint8)
  18568. if v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, true, d); changed {
  18569. *vp = v
  18570. }
  18571. return
  18572. }
  18573. fastpathTV.DecMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), false, d)
  18574. }
  18575. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, d *Decoder) {
  18576. if v, changed := f.DecMapFloat32Uint8V(*vp, true, d); changed {
  18577. *vp = v
  18578. }
  18579. }
  18580. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, canChange bool,
  18581. d *Decoder) (_ map[float32]uint8, changed bool) {
  18582. dd, esep := d.d, d.hh.hasElemSeparators()
  18583. containerLen := dd.ReadMapStart()
  18584. if canChange && v == nil {
  18585. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  18586. v = make(map[float32]uint8, xlen)
  18587. changed = true
  18588. }
  18589. if containerLen == 0 {
  18590. dd.ReadMapEnd()
  18591. return v, changed
  18592. }
  18593. var mk float32
  18594. var mv uint8
  18595. hasLen := containerLen > 0
  18596. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18597. if esep {
  18598. dd.ReadMapElemKey()
  18599. }
  18600. mk = float32(dd.DecodeFloat(true))
  18601. if esep {
  18602. dd.ReadMapElemValue()
  18603. }
  18604. if dd.TryDecodeAsNil() {
  18605. if d.h.DeleteOnNilMapValue {
  18606. delete(v, mk)
  18607. } else {
  18608. v[mk] = 0
  18609. }
  18610. continue
  18611. }
  18612. mv = uint8(dd.DecodeUint(8))
  18613. if v != nil {
  18614. v[mk] = mv
  18615. }
  18616. }
  18617. dd.ReadMapEnd()
  18618. return v, changed
  18619. }
  18620. func (d *Decoder) fastpathDecMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  18621. if rv.Kind() == reflect.Ptr {
  18622. vp := rv2i(rv).(*map[float32]uint16)
  18623. if v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, true, d); changed {
  18624. *vp = v
  18625. }
  18626. return
  18627. }
  18628. fastpathTV.DecMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), false, d)
  18629. }
  18630. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, d *Decoder) {
  18631. if v, changed := f.DecMapFloat32Uint16V(*vp, true, d); changed {
  18632. *vp = v
  18633. }
  18634. }
  18635. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, canChange bool,
  18636. d *Decoder) (_ map[float32]uint16, changed bool) {
  18637. dd, esep := d.d, d.hh.hasElemSeparators()
  18638. containerLen := dd.ReadMapStart()
  18639. if canChange && v == nil {
  18640. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  18641. v = make(map[float32]uint16, xlen)
  18642. changed = true
  18643. }
  18644. if containerLen == 0 {
  18645. dd.ReadMapEnd()
  18646. return v, changed
  18647. }
  18648. var mk float32
  18649. var mv uint16
  18650. hasLen := containerLen > 0
  18651. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18652. if esep {
  18653. dd.ReadMapElemKey()
  18654. }
  18655. mk = float32(dd.DecodeFloat(true))
  18656. if esep {
  18657. dd.ReadMapElemValue()
  18658. }
  18659. if dd.TryDecodeAsNil() {
  18660. if d.h.DeleteOnNilMapValue {
  18661. delete(v, mk)
  18662. } else {
  18663. v[mk] = 0
  18664. }
  18665. continue
  18666. }
  18667. mv = uint16(dd.DecodeUint(16))
  18668. if v != nil {
  18669. v[mk] = mv
  18670. }
  18671. }
  18672. dd.ReadMapEnd()
  18673. return v, changed
  18674. }
  18675. func (d *Decoder) fastpathDecMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  18676. if rv.Kind() == reflect.Ptr {
  18677. vp := rv2i(rv).(*map[float32]uint32)
  18678. if v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, true, d); changed {
  18679. *vp = v
  18680. }
  18681. return
  18682. }
  18683. fastpathTV.DecMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), false, d)
  18684. }
  18685. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, d *Decoder) {
  18686. if v, changed := f.DecMapFloat32Uint32V(*vp, true, d); changed {
  18687. *vp = v
  18688. }
  18689. }
  18690. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, canChange bool,
  18691. d *Decoder) (_ map[float32]uint32, changed bool) {
  18692. dd, esep := d.d, d.hh.hasElemSeparators()
  18693. containerLen := dd.ReadMapStart()
  18694. if canChange && v == nil {
  18695. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  18696. v = make(map[float32]uint32, xlen)
  18697. changed = true
  18698. }
  18699. if containerLen == 0 {
  18700. dd.ReadMapEnd()
  18701. return v, changed
  18702. }
  18703. var mk float32
  18704. var mv uint32
  18705. hasLen := containerLen > 0
  18706. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18707. if esep {
  18708. dd.ReadMapElemKey()
  18709. }
  18710. mk = float32(dd.DecodeFloat(true))
  18711. if esep {
  18712. dd.ReadMapElemValue()
  18713. }
  18714. if dd.TryDecodeAsNil() {
  18715. if d.h.DeleteOnNilMapValue {
  18716. delete(v, mk)
  18717. } else {
  18718. v[mk] = 0
  18719. }
  18720. continue
  18721. }
  18722. mv = uint32(dd.DecodeUint(32))
  18723. if v != nil {
  18724. v[mk] = mv
  18725. }
  18726. }
  18727. dd.ReadMapEnd()
  18728. return v, changed
  18729. }
  18730. func (d *Decoder) fastpathDecMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  18731. if rv.Kind() == reflect.Ptr {
  18732. vp := rv2i(rv).(*map[float32]uint64)
  18733. if v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, true, d); changed {
  18734. *vp = v
  18735. }
  18736. return
  18737. }
  18738. fastpathTV.DecMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), false, d)
  18739. }
  18740. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, d *Decoder) {
  18741. if v, changed := f.DecMapFloat32Uint64V(*vp, true, d); changed {
  18742. *vp = v
  18743. }
  18744. }
  18745. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, canChange bool,
  18746. d *Decoder) (_ map[float32]uint64, changed bool) {
  18747. dd, esep := d.d, d.hh.hasElemSeparators()
  18748. containerLen := dd.ReadMapStart()
  18749. if canChange && v == nil {
  18750. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18751. v = make(map[float32]uint64, xlen)
  18752. changed = true
  18753. }
  18754. if containerLen == 0 {
  18755. dd.ReadMapEnd()
  18756. return v, changed
  18757. }
  18758. var mk float32
  18759. var mv uint64
  18760. hasLen := containerLen > 0
  18761. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18762. if esep {
  18763. dd.ReadMapElemKey()
  18764. }
  18765. mk = float32(dd.DecodeFloat(true))
  18766. if esep {
  18767. dd.ReadMapElemValue()
  18768. }
  18769. if dd.TryDecodeAsNil() {
  18770. if d.h.DeleteOnNilMapValue {
  18771. delete(v, mk)
  18772. } else {
  18773. v[mk] = 0
  18774. }
  18775. continue
  18776. }
  18777. mv = dd.DecodeUint(64)
  18778. if v != nil {
  18779. v[mk] = mv
  18780. }
  18781. }
  18782. dd.ReadMapEnd()
  18783. return v, changed
  18784. }
  18785. func (d *Decoder) fastpathDecMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  18786. if rv.Kind() == reflect.Ptr {
  18787. vp := rv2i(rv).(*map[float32]uintptr)
  18788. if v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, true, d); changed {
  18789. *vp = v
  18790. }
  18791. return
  18792. }
  18793. fastpathTV.DecMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), false, d)
  18794. }
  18795. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, d *Decoder) {
  18796. if v, changed := f.DecMapFloat32UintptrV(*vp, true, d); changed {
  18797. *vp = v
  18798. }
  18799. }
  18800. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, canChange bool,
  18801. d *Decoder) (_ map[float32]uintptr, changed bool) {
  18802. dd, esep := d.d, d.hh.hasElemSeparators()
  18803. containerLen := dd.ReadMapStart()
  18804. if canChange && v == nil {
  18805. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18806. v = make(map[float32]uintptr, xlen)
  18807. changed = true
  18808. }
  18809. if containerLen == 0 {
  18810. dd.ReadMapEnd()
  18811. return v, changed
  18812. }
  18813. var mk float32
  18814. var mv uintptr
  18815. hasLen := containerLen > 0
  18816. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18817. if esep {
  18818. dd.ReadMapElemKey()
  18819. }
  18820. mk = float32(dd.DecodeFloat(true))
  18821. if esep {
  18822. dd.ReadMapElemValue()
  18823. }
  18824. if dd.TryDecodeAsNil() {
  18825. if d.h.DeleteOnNilMapValue {
  18826. delete(v, mk)
  18827. } else {
  18828. v[mk] = 0
  18829. }
  18830. continue
  18831. }
  18832. mv = uintptr(dd.DecodeUint(uintBitsize))
  18833. if v != nil {
  18834. v[mk] = mv
  18835. }
  18836. }
  18837. dd.ReadMapEnd()
  18838. return v, changed
  18839. }
  18840. func (d *Decoder) fastpathDecMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  18841. if rv.Kind() == reflect.Ptr {
  18842. vp := rv2i(rv).(*map[float32]int)
  18843. if v, changed := fastpathTV.DecMapFloat32IntV(*vp, true, d); changed {
  18844. *vp = v
  18845. }
  18846. return
  18847. }
  18848. fastpathTV.DecMapFloat32IntV(rv2i(rv).(map[float32]int), false, d)
  18849. }
  18850. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, d *Decoder) {
  18851. if v, changed := f.DecMapFloat32IntV(*vp, true, d); changed {
  18852. *vp = v
  18853. }
  18854. }
  18855. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, canChange bool,
  18856. d *Decoder) (_ map[float32]int, changed bool) {
  18857. dd, esep := d.d, d.hh.hasElemSeparators()
  18858. containerLen := dd.ReadMapStart()
  18859. if canChange && v == nil {
  18860. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18861. v = make(map[float32]int, xlen)
  18862. changed = true
  18863. }
  18864. if containerLen == 0 {
  18865. dd.ReadMapEnd()
  18866. return v, changed
  18867. }
  18868. var mk float32
  18869. var mv int
  18870. hasLen := containerLen > 0
  18871. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18872. if esep {
  18873. dd.ReadMapElemKey()
  18874. }
  18875. mk = float32(dd.DecodeFloat(true))
  18876. if esep {
  18877. dd.ReadMapElemValue()
  18878. }
  18879. if dd.TryDecodeAsNil() {
  18880. if d.h.DeleteOnNilMapValue {
  18881. delete(v, mk)
  18882. } else {
  18883. v[mk] = 0
  18884. }
  18885. continue
  18886. }
  18887. mv = int(dd.DecodeInt(intBitsize))
  18888. if v != nil {
  18889. v[mk] = mv
  18890. }
  18891. }
  18892. dd.ReadMapEnd()
  18893. return v, changed
  18894. }
  18895. func (d *Decoder) fastpathDecMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  18896. if rv.Kind() == reflect.Ptr {
  18897. vp := rv2i(rv).(*map[float32]int8)
  18898. if v, changed := fastpathTV.DecMapFloat32Int8V(*vp, true, d); changed {
  18899. *vp = v
  18900. }
  18901. return
  18902. }
  18903. fastpathTV.DecMapFloat32Int8V(rv2i(rv).(map[float32]int8), false, d)
  18904. }
  18905. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, d *Decoder) {
  18906. if v, changed := f.DecMapFloat32Int8V(*vp, true, d); changed {
  18907. *vp = v
  18908. }
  18909. }
  18910. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, canChange bool,
  18911. d *Decoder) (_ map[float32]int8, changed bool) {
  18912. dd, esep := d.d, d.hh.hasElemSeparators()
  18913. containerLen := dd.ReadMapStart()
  18914. if canChange && v == nil {
  18915. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  18916. v = make(map[float32]int8, xlen)
  18917. changed = true
  18918. }
  18919. if containerLen == 0 {
  18920. dd.ReadMapEnd()
  18921. return v, changed
  18922. }
  18923. var mk float32
  18924. var mv int8
  18925. hasLen := containerLen > 0
  18926. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18927. if esep {
  18928. dd.ReadMapElemKey()
  18929. }
  18930. mk = float32(dd.DecodeFloat(true))
  18931. if esep {
  18932. dd.ReadMapElemValue()
  18933. }
  18934. if dd.TryDecodeAsNil() {
  18935. if d.h.DeleteOnNilMapValue {
  18936. delete(v, mk)
  18937. } else {
  18938. v[mk] = 0
  18939. }
  18940. continue
  18941. }
  18942. mv = int8(dd.DecodeInt(8))
  18943. if v != nil {
  18944. v[mk] = mv
  18945. }
  18946. }
  18947. dd.ReadMapEnd()
  18948. return v, changed
  18949. }
  18950. func (d *Decoder) fastpathDecMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  18951. if rv.Kind() == reflect.Ptr {
  18952. vp := rv2i(rv).(*map[float32]int16)
  18953. if v, changed := fastpathTV.DecMapFloat32Int16V(*vp, true, d); changed {
  18954. *vp = v
  18955. }
  18956. return
  18957. }
  18958. fastpathTV.DecMapFloat32Int16V(rv2i(rv).(map[float32]int16), false, d)
  18959. }
  18960. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, d *Decoder) {
  18961. if v, changed := f.DecMapFloat32Int16V(*vp, true, d); changed {
  18962. *vp = v
  18963. }
  18964. }
  18965. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, canChange bool,
  18966. d *Decoder) (_ map[float32]int16, changed bool) {
  18967. dd, esep := d.d, d.hh.hasElemSeparators()
  18968. containerLen := dd.ReadMapStart()
  18969. if canChange && v == nil {
  18970. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  18971. v = make(map[float32]int16, xlen)
  18972. changed = true
  18973. }
  18974. if containerLen == 0 {
  18975. dd.ReadMapEnd()
  18976. return v, changed
  18977. }
  18978. var mk float32
  18979. var mv int16
  18980. hasLen := containerLen > 0
  18981. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18982. if esep {
  18983. dd.ReadMapElemKey()
  18984. }
  18985. mk = float32(dd.DecodeFloat(true))
  18986. if esep {
  18987. dd.ReadMapElemValue()
  18988. }
  18989. if dd.TryDecodeAsNil() {
  18990. if d.h.DeleteOnNilMapValue {
  18991. delete(v, mk)
  18992. } else {
  18993. v[mk] = 0
  18994. }
  18995. continue
  18996. }
  18997. mv = int16(dd.DecodeInt(16))
  18998. if v != nil {
  18999. v[mk] = mv
  19000. }
  19001. }
  19002. dd.ReadMapEnd()
  19003. return v, changed
  19004. }
  19005. func (d *Decoder) fastpathDecMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  19006. if rv.Kind() == reflect.Ptr {
  19007. vp := rv2i(rv).(*map[float32]int32)
  19008. if v, changed := fastpathTV.DecMapFloat32Int32V(*vp, true, d); changed {
  19009. *vp = v
  19010. }
  19011. return
  19012. }
  19013. fastpathTV.DecMapFloat32Int32V(rv2i(rv).(map[float32]int32), false, d)
  19014. }
  19015. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, d *Decoder) {
  19016. if v, changed := f.DecMapFloat32Int32V(*vp, true, d); changed {
  19017. *vp = v
  19018. }
  19019. }
  19020. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, canChange bool,
  19021. d *Decoder) (_ map[float32]int32, changed bool) {
  19022. dd, esep := d.d, d.hh.hasElemSeparators()
  19023. containerLen := dd.ReadMapStart()
  19024. if canChange && v == nil {
  19025. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  19026. v = make(map[float32]int32, xlen)
  19027. changed = true
  19028. }
  19029. if containerLen == 0 {
  19030. dd.ReadMapEnd()
  19031. return v, changed
  19032. }
  19033. var mk float32
  19034. var mv int32
  19035. hasLen := containerLen > 0
  19036. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19037. if esep {
  19038. dd.ReadMapElemKey()
  19039. }
  19040. mk = float32(dd.DecodeFloat(true))
  19041. if esep {
  19042. dd.ReadMapElemValue()
  19043. }
  19044. if dd.TryDecodeAsNil() {
  19045. if d.h.DeleteOnNilMapValue {
  19046. delete(v, mk)
  19047. } else {
  19048. v[mk] = 0
  19049. }
  19050. continue
  19051. }
  19052. mv = int32(dd.DecodeInt(32))
  19053. if v != nil {
  19054. v[mk] = mv
  19055. }
  19056. }
  19057. dd.ReadMapEnd()
  19058. return v, changed
  19059. }
  19060. func (d *Decoder) fastpathDecMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  19061. if rv.Kind() == reflect.Ptr {
  19062. vp := rv2i(rv).(*map[float32]int64)
  19063. if v, changed := fastpathTV.DecMapFloat32Int64V(*vp, true, d); changed {
  19064. *vp = v
  19065. }
  19066. return
  19067. }
  19068. fastpathTV.DecMapFloat32Int64V(rv2i(rv).(map[float32]int64), false, d)
  19069. }
  19070. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, d *Decoder) {
  19071. if v, changed := f.DecMapFloat32Int64V(*vp, true, d); changed {
  19072. *vp = v
  19073. }
  19074. }
  19075. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, canChange bool,
  19076. d *Decoder) (_ map[float32]int64, changed bool) {
  19077. dd, esep := d.d, d.hh.hasElemSeparators()
  19078. containerLen := dd.ReadMapStart()
  19079. if canChange && v == nil {
  19080. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19081. v = make(map[float32]int64, xlen)
  19082. changed = true
  19083. }
  19084. if containerLen == 0 {
  19085. dd.ReadMapEnd()
  19086. return v, changed
  19087. }
  19088. var mk float32
  19089. var mv int64
  19090. hasLen := containerLen > 0
  19091. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19092. if esep {
  19093. dd.ReadMapElemKey()
  19094. }
  19095. mk = float32(dd.DecodeFloat(true))
  19096. if esep {
  19097. dd.ReadMapElemValue()
  19098. }
  19099. if dd.TryDecodeAsNil() {
  19100. if d.h.DeleteOnNilMapValue {
  19101. delete(v, mk)
  19102. } else {
  19103. v[mk] = 0
  19104. }
  19105. continue
  19106. }
  19107. mv = dd.DecodeInt(64)
  19108. if v != nil {
  19109. v[mk] = mv
  19110. }
  19111. }
  19112. dd.ReadMapEnd()
  19113. return v, changed
  19114. }
  19115. func (d *Decoder) fastpathDecMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  19116. if rv.Kind() == reflect.Ptr {
  19117. vp := rv2i(rv).(*map[float32]float32)
  19118. if v, changed := fastpathTV.DecMapFloat32Float32V(*vp, true, d); changed {
  19119. *vp = v
  19120. }
  19121. return
  19122. }
  19123. fastpathTV.DecMapFloat32Float32V(rv2i(rv).(map[float32]float32), false, d)
  19124. }
  19125. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, d *Decoder) {
  19126. if v, changed := f.DecMapFloat32Float32V(*vp, true, d); changed {
  19127. *vp = v
  19128. }
  19129. }
  19130. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, canChange bool,
  19131. d *Decoder) (_ map[float32]float32, changed bool) {
  19132. dd, esep := d.d, d.hh.hasElemSeparators()
  19133. containerLen := dd.ReadMapStart()
  19134. if canChange && v == nil {
  19135. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  19136. v = make(map[float32]float32, xlen)
  19137. changed = true
  19138. }
  19139. if containerLen == 0 {
  19140. dd.ReadMapEnd()
  19141. return v, changed
  19142. }
  19143. var mk float32
  19144. var mv float32
  19145. hasLen := containerLen > 0
  19146. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19147. if esep {
  19148. dd.ReadMapElemKey()
  19149. }
  19150. mk = float32(dd.DecodeFloat(true))
  19151. if esep {
  19152. dd.ReadMapElemValue()
  19153. }
  19154. if dd.TryDecodeAsNil() {
  19155. if d.h.DeleteOnNilMapValue {
  19156. delete(v, mk)
  19157. } else {
  19158. v[mk] = 0
  19159. }
  19160. continue
  19161. }
  19162. mv = float32(dd.DecodeFloat(true))
  19163. if v != nil {
  19164. v[mk] = mv
  19165. }
  19166. }
  19167. dd.ReadMapEnd()
  19168. return v, changed
  19169. }
  19170. func (d *Decoder) fastpathDecMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  19171. if rv.Kind() == reflect.Ptr {
  19172. vp := rv2i(rv).(*map[float32]float64)
  19173. if v, changed := fastpathTV.DecMapFloat32Float64V(*vp, true, d); changed {
  19174. *vp = v
  19175. }
  19176. return
  19177. }
  19178. fastpathTV.DecMapFloat32Float64V(rv2i(rv).(map[float32]float64), false, d)
  19179. }
  19180. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, d *Decoder) {
  19181. if v, changed := f.DecMapFloat32Float64V(*vp, true, d); changed {
  19182. *vp = v
  19183. }
  19184. }
  19185. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, canChange bool,
  19186. d *Decoder) (_ map[float32]float64, changed bool) {
  19187. dd, esep := d.d, d.hh.hasElemSeparators()
  19188. containerLen := dd.ReadMapStart()
  19189. if canChange && v == nil {
  19190. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19191. v = make(map[float32]float64, xlen)
  19192. changed = true
  19193. }
  19194. if containerLen == 0 {
  19195. dd.ReadMapEnd()
  19196. return v, changed
  19197. }
  19198. var mk float32
  19199. var mv float64
  19200. hasLen := containerLen > 0
  19201. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19202. if esep {
  19203. dd.ReadMapElemKey()
  19204. }
  19205. mk = float32(dd.DecodeFloat(true))
  19206. if esep {
  19207. dd.ReadMapElemValue()
  19208. }
  19209. if dd.TryDecodeAsNil() {
  19210. if d.h.DeleteOnNilMapValue {
  19211. delete(v, mk)
  19212. } else {
  19213. v[mk] = 0
  19214. }
  19215. continue
  19216. }
  19217. mv = dd.DecodeFloat(false)
  19218. if v != nil {
  19219. v[mk] = mv
  19220. }
  19221. }
  19222. dd.ReadMapEnd()
  19223. return v, changed
  19224. }
  19225. func (d *Decoder) fastpathDecMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  19226. if rv.Kind() == reflect.Ptr {
  19227. vp := rv2i(rv).(*map[float32]bool)
  19228. if v, changed := fastpathTV.DecMapFloat32BoolV(*vp, true, d); changed {
  19229. *vp = v
  19230. }
  19231. return
  19232. }
  19233. fastpathTV.DecMapFloat32BoolV(rv2i(rv).(map[float32]bool), false, d)
  19234. }
  19235. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, d *Decoder) {
  19236. if v, changed := f.DecMapFloat32BoolV(*vp, true, d); changed {
  19237. *vp = v
  19238. }
  19239. }
  19240. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, canChange bool,
  19241. d *Decoder) (_ map[float32]bool, changed bool) {
  19242. dd, esep := d.d, d.hh.hasElemSeparators()
  19243. containerLen := dd.ReadMapStart()
  19244. if canChange && v == nil {
  19245. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  19246. v = make(map[float32]bool, xlen)
  19247. changed = true
  19248. }
  19249. if containerLen == 0 {
  19250. dd.ReadMapEnd()
  19251. return v, changed
  19252. }
  19253. var mk float32
  19254. var mv bool
  19255. hasLen := containerLen > 0
  19256. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19257. if esep {
  19258. dd.ReadMapElemKey()
  19259. }
  19260. mk = float32(dd.DecodeFloat(true))
  19261. if esep {
  19262. dd.ReadMapElemValue()
  19263. }
  19264. if dd.TryDecodeAsNil() {
  19265. if d.h.DeleteOnNilMapValue {
  19266. delete(v, mk)
  19267. } else {
  19268. v[mk] = false
  19269. }
  19270. continue
  19271. }
  19272. mv = dd.DecodeBool()
  19273. if v != nil {
  19274. v[mk] = mv
  19275. }
  19276. }
  19277. dd.ReadMapEnd()
  19278. return v, changed
  19279. }
  19280. func (d *Decoder) fastpathDecMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  19281. if rv.Kind() == reflect.Ptr {
  19282. vp := rv2i(rv).(*map[float64]interface{})
  19283. if v, changed := fastpathTV.DecMapFloat64IntfV(*vp, true, d); changed {
  19284. *vp = v
  19285. }
  19286. return
  19287. }
  19288. fastpathTV.DecMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), false, d)
  19289. }
  19290. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, d *Decoder) {
  19291. if v, changed := f.DecMapFloat64IntfV(*vp, true, d); changed {
  19292. *vp = v
  19293. }
  19294. }
  19295. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, canChange bool,
  19296. d *Decoder) (_ map[float64]interface{}, changed bool) {
  19297. dd, esep := d.d, d.hh.hasElemSeparators()
  19298. containerLen := dd.ReadMapStart()
  19299. if canChange && v == nil {
  19300. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19301. v = make(map[float64]interface{}, xlen)
  19302. changed = true
  19303. }
  19304. if containerLen == 0 {
  19305. dd.ReadMapEnd()
  19306. return v, changed
  19307. }
  19308. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  19309. var mk float64
  19310. var mv interface{}
  19311. hasLen := containerLen > 0
  19312. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19313. if esep {
  19314. dd.ReadMapElemKey()
  19315. }
  19316. mk = dd.DecodeFloat(false)
  19317. if esep {
  19318. dd.ReadMapElemValue()
  19319. }
  19320. if dd.TryDecodeAsNil() {
  19321. if d.h.DeleteOnNilMapValue {
  19322. delete(v, mk)
  19323. } else {
  19324. v[mk] = nil
  19325. }
  19326. continue
  19327. }
  19328. if mapGet {
  19329. mv = v[mk]
  19330. } else {
  19331. mv = nil
  19332. }
  19333. d.decode(&mv)
  19334. if v != nil {
  19335. v[mk] = mv
  19336. }
  19337. }
  19338. dd.ReadMapEnd()
  19339. return v, changed
  19340. }
  19341. func (d *Decoder) fastpathDecMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  19342. if rv.Kind() == reflect.Ptr {
  19343. vp := rv2i(rv).(*map[float64]string)
  19344. if v, changed := fastpathTV.DecMapFloat64StringV(*vp, true, d); changed {
  19345. *vp = v
  19346. }
  19347. return
  19348. }
  19349. fastpathTV.DecMapFloat64StringV(rv2i(rv).(map[float64]string), false, d)
  19350. }
  19351. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, d *Decoder) {
  19352. if v, changed := f.DecMapFloat64StringV(*vp, true, d); changed {
  19353. *vp = v
  19354. }
  19355. }
  19356. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, canChange bool,
  19357. d *Decoder) (_ map[float64]string, changed bool) {
  19358. dd, esep := d.d, d.hh.hasElemSeparators()
  19359. containerLen := dd.ReadMapStart()
  19360. if canChange && v == nil {
  19361. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19362. v = make(map[float64]string, xlen)
  19363. changed = true
  19364. }
  19365. if containerLen == 0 {
  19366. dd.ReadMapEnd()
  19367. return v, changed
  19368. }
  19369. var mk float64
  19370. var mv string
  19371. hasLen := containerLen > 0
  19372. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19373. if esep {
  19374. dd.ReadMapElemKey()
  19375. }
  19376. mk = dd.DecodeFloat(false)
  19377. if esep {
  19378. dd.ReadMapElemValue()
  19379. }
  19380. if dd.TryDecodeAsNil() {
  19381. if d.h.DeleteOnNilMapValue {
  19382. delete(v, mk)
  19383. } else {
  19384. v[mk] = ""
  19385. }
  19386. continue
  19387. }
  19388. mv = dd.DecodeString()
  19389. if v != nil {
  19390. v[mk] = mv
  19391. }
  19392. }
  19393. dd.ReadMapEnd()
  19394. return v, changed
  19395. }
  19396. func (d *Decoder) fastpathDecMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  19397. if rv.Kind() == reflect.Ptr {
  19398. vp := rv2i(rv).(*map[float64]uint)
  19399. if v, changed := fastpathTV.DecMapFloat64UintV(*vp, true, d); changed {
  19400. *vp = v
  19401. }
  19402. return
  19403. }
  19404. fastpathTV.DecMapFloat64UintV(rv2i(rv).(map[float64]uint), false, d)
  19405. }
  19406. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, d *Decoder) {
  19407. if v, changed := f.DecMapFloat64UintV(*vp, true, d); changed {
  19408. *vp = v
  19409. }
  19410. }
  19411. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, canChange bool,
  19412. d *Decoder) (_ map[float64]uint, changed bool) {
  19413. dd, esep := d.d, d.hh.hasElemSeparators()
  19414. containerLen := dd.ReadMapStart()
  19415. if canChange && v == nil {
  19416. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19417. v = make(map[float64]uint, xlen)
  19418. changed = true
  19419. }
  19420. if containerLen == 0 {
  19421. dd.ReadMapEnd()
  19422. return v, changed
  19423. }
  19424. var mk float64
  19425. var mv uint
  19426. hasLen := containerLen > 0
  19427. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19428. if esep {
  19429. dd.ReadMapElemKey()
  19430. }
  19431. mk = dd.DecodeFloat(false)
  19432. if esep {
  19433. dd.ReadMapElemValue()
  19434. }
  19435. if dd.TryDecodeAsNil() {
  19436. if d.h.DeleteOnNilMapValue {
  19437. delete(v, mk)
  19438. } else {
  19439. v[mk] = 0
  19440. }
  19441. continue
  19442. }
  19443. mv = uint(dd.DecodeUint(uintBitsize))
  19444. if v != nil {
  19445. v[mk] = mv
  19446. }
  19447. }
  19448. dd.ReadMapEnd()
  19449. return v, changed
  19450. }
  19451. func (d *Decoder) fastpathDecMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  19452. if rv.Kind() == reflect.Ptr {
  19453. vp := rv2i(rv).(*map[float64]uint8)
  19454. if v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, true, d); changed {
  19455. *vp = v
  19456. }
  19457. return
  19458. }
  19459. fastpathTV.DecMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), false, d)
  19460. }
  19461. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, d *Decoder) {
  19462. if v, changed := f.DecMapFloat64Uint8V(*vp, true, d); changed {
  19463. *vp = v
  19464. }
  19465. }
  19466. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, canChange bool,
  19467. d *Decoder) (_ map[float64]uint8, changed bool) {
  19468. dd, esep := d.d, d.hh.hasElemSeparators()
  19469. containerLen := dd.ReadMapStart()
  19470. if canChange && v == nil {
  19471. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  19472. v = make(map[float64]uint8, xlen)
  19473. changed = true
  19474. }
  19475. if containerLen == 0 {
  19476. dd.ReadMapEnd()
  19477. return v, changed
  19478. }
  19479. var mk float64
  19480. var mv uint8
  19481. hasLen := containerLen > 0
  19482. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19483. if esep {
  19484. dd.ReadMapElemKey()
  19485. }
  19486. mk = dd.DecodeFloat(false)
  19487. if esep {
  19488. dd.ReadMapElemValue()
  19489. }
  19490. if dd.TryDecodeAsNil() {
  19491. if d.h.DeleteOnNilMapValue {
  19492. delete(v, mk)
  19493. } else {
  19494. v[mk] = 0
  19495. }
  19496. continue
  19497. }
  19498. mv = uint8(dd.DecodeUint(8))
  19499. if v != nil {
  19500. v[mk] = mv
  19501. }
  19502. }
  19503. dd.ReadMapEnd()
  19504. return v, changed
  19505. }
  19506. func (d *Decoder) fastpathDecMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  19507. if rv.Kind() == reflect.Ptr {
  19508. vp := rv2i(rv).(*map[float64]uint16)
  19509. if v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, true, d); changed {
  19510. *vp = v
  19511. }
  19512. return
  19513. }
  19514. fastpathTV.DecMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), false, d)
  19515. }
  19516. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, d *Decoder) {
  19517. if v, changed := f.DecMapFloat64Uint16V(*vp, true, d); changed {
  19518. *vp = v
  19519. }
  19520. }
  19521. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, canChange bool,
  19522. d *Decoder) (_ map[float64]uint16, changed bool) {
  19523. dd, esep := d.d, d.hh.hasElemSeparators()
  19524. containerLen := dd.ReadMapStart()
  19525. if canChange && v == nil {
  19526. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  19527. v = make(map[float64]uint16, xlen)
  19528. changed = true
  19529. }
  19530. if containerLen == 0 {
  19531. dd.ReadMapEnd()
  19532. return v, changed
  19533. }
  19534. var mk float64
  19535. var mv uint16
  19536. hasLen := containerLen > 0
  19537. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19538. if esep {
  19539. dd.ReadMapElemKey()
  19540. }
  19541. mk = dd.DecodeFloat(false)
  19542. if esep {
  19543. dd.ReadMapElemValue()
  19544. }
  19545. if dd.TryDecodeAsNil() {
  19546. if d.h.DeleteOnNilMapValue {
  19547. delete(v, mk)
  19548. } else {
  19549. v[mk] = 0
  19550. }
  19551. continue
  19552. }
  19553. mv = uint16(dd.DecodeUint(16))
  19554. if v != nil {
  19555. v[mk] = mv
  19556. }
  19557. }
  19558. dd.ReadMapEnd()
  19559. return v, changed
  19560. }
  19561. func (d *Decoder) fastpathDecMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  19562. if rv.Kind() == reflect.Ptr {
  19563. vp := rv2i(rv).(*map[float64]uint32)
  19564. if v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, true, d); changed {
  19565. *vp = v
  19566. }
  19567. return
  19568. }
  19569. fastpathTV.DecMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), false, d)
  19570. }
  19571. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, d *Decoder) {
  19572. if v, changed := f.DecMapFloat64Uint32V(*vp, true, d); changed {
  19573. *vp = v
  19574. }
  19575. }
  19576. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, canChange bool,
  19577. d *Decoder) (_ map[float64]uint32, changed bool) {
  19578. dd, esep := d.d, d.hh.hasElemSeparators()
  19579. containerLen := dd.ReadMapStart()
  19580. if canChange && v == nil {
  19581. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19582. v = make(map[float64]uint32, xlen)
  19583. changed = true
  19584. }
  19585. if containerLen == 0 {
  19586. dd.ReadMapEnd()
  19587. return v, changed
  19588. }
  19589. var mk float64
  19590. var mv uint32
  19591. hasLen := containerLen > 0
  19592. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19593. if esep {
  19594. dd.ReadMapElemKey()
  19595. }
  19596. mk = dd.DecodeFloat(false)
  19597. if esep {
  19598. dd.ReadMapElemValue()
  19599. }
  19600. if dd.TryDecodeAsNil() {
  19601. if d.h.DeleteOnNilMapValue {
  19602. delete(v, mk)
  19603. } else {
  19604. v[mk] = 0
  19605. }
  19606. continue
  19607. }
  19608. mv = uint32(dd.DecodeUint(32))
  19609. if v != nil {
  19610. v[mk] = mv
  19611. }
  19612. }
  19613. dd.ReadMapEnd()
  19614. return v, changed
  19615. }
  19616. func (d *Decoder) fastpathDecMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  19617. if rv.Kind() == reflect.Ptr {
  19618. vp := rv2i(rv).(*map[float64]uint64)
  19619. if v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, true, d); changed {
  19620. *vp = v
  19621. }
  19622. return
  19623. }
  19624. fastpathTV.DecMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), false, d)
  19625. }
  19626. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, d *Decoder) {
  19627. if v, changed := f.DecMapFloat64Uint64V(*vp, true, d); changed {
  19628. *vp = v
  19629. }
  19630. }
  19631. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, canChange bool,
  19632. d *Decoder) (_ map[float64]uint64, changed bool) {
  19633. dd, esep := d.d, d.hh.hasElemSeparators()
  19634. containerLen := dd.ReadMapStart()
  19635. if canChange && v == nil {
  19636. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19637. v = make(map[float64]uint64, xlen)
  19638. changed = true
  19639. }
  19640. if containerLen == 0 {
  19641. dd.ReadMapEnd()
  19642. return v, changed
  19643. }
  19644. var mk float64
  19645. var mv uint64
  19646. hasLen := containerLen > 0
  19647. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19648. if esep {
  19649. dd.ReadMapElemKey()
  19650. }
  19651. mk = dd.DecodeFloat(false)
  19652. if esep {
  19653. dd.ReadMapElemValue()
  19654. }
  19655. if dd.TryDecodeAsNil() {
  19656. if d.h.DeleteOnNilMapValue {
  19657. delete(v, mk)
  19658. } else {
  19659. v[mk] = 0
  19660. }
  19661. continue
  19662. }
  19663. mv = dd.DecodeUint(64)
  19664. if v != nil {
  19665. v[mk] = mv
  19666. }
  19667. }
  19668. dd.ReadMapEnd()
  19669. return v, changed
  19670. }
  19671. func (d *Decoder) fastpathDecMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  19672. if rv.Kind() == reflect.Ptr {
  19673. vp := rv2i(rv).(*map[float64]uintptr)
  19674. if v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, true, d); changed {
  19675. *vp = v
  19676. }
  19677. return
  19678. }
  19679. fastpathTV.DecMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), false, d)
  19680. }
  19681. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, d *Decoder) {
  19682. if v, changed := f.DecMapFloat64UintptrV(*vp, true, d); changed {
  19683. *vp = v
  19684. }
  19685. }
  19686. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, canChange bool,
  19687. d *Decoder) (_ map[float64]uintptr, changed bool) {
  19688. dd, esep := d.d, d.hh.hasElemSeparators()
  19689. containerLen := dd.ReadMapStart()
  19690. if canChange && v == nil {
  19691. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19692. v = make(map[float64]uintptr, xlen)
  19693. changed = true
  19694. }
  19695. if containerLen == 0 {
  19696. dd.ReadMapEnd()
  19697. return v, changed
  19698. }
  19699. var mk float64
  19700. var mv uintptr
  19701. hasLen := containerLen > 0
  19702. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19703. if esep {
  19704. dd.ReadMapElemKey()
  19705. }
  19706. mk = dd.DecodeFloat(false)
  19707. if esep {
  19708. dd.ReadMapElemValue()
  19709. }
  19710. if dd.TryDecodeAsNil() {
  19711. if d.h.DeleteOnNilMapValue {
  19712. delete(v, mk)
  19713. } else {
  19714. v[mk] = 0
  19715. }
  19716. continue
  19717. }
  19718. mv = uintptr(dd.DecodeUint(uintBitsize))
  19719. if v != nil {
  19720. v[mk] = mv
  19721. }
  19722. }
  19723. dd.ReadMapEnd()
  19724. return v, changed
  19725. }
  19726. func (d *Decoder) fastpathDecMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  19727. if rv.Kind() == reflect.Ptr {
  19728. vp := rv2i(rv).(*map[float64]int)
  19729. if v, changed := fastpathTV.DecMapFloat64IntV(*vp, true, d); changed {
  19730. *vp = v
  19731. }
  19732. return
  19733. }
  19734. fastpathTV.DecMapFloat64IntV(rv2i(rv).(map[float64]int), false, d)
  19735. }
  19736. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, d *Decoder) {
  19737. if v, changed := f.DecMapFloat64IntV(*vp, true, d); changed {
  19738. *vp = v
  19739. }
  19740. }
  19741. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, canChange bool,
  19742. d *Decoder) (_ map[float64]int, changed bool) {
  19743. dd, esep := d.d, d.hh.hasElemSeparators()
  19744. containerLen := dd.ReadMapStart()
  19745. if canChange && v == nil {
  19746. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19747. v = make(map[float64]int, xlen)
  19748. changed = true
  19749. }
  19750. if containerLen == 0 {
  19751. dd.ReadMapEnd()
  19752. return v, changed
  19753. }
  19754. var mk float64
  19755. var mv int
  19756. hasLen := containerLen > 0
  19757. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19758. if esep {
  19759. dd.ReadMapElemKey()
  19760. }
  19761. mk = dd.DecodeFloat(false)
  19762. if esep {
  19763. dd.ReadMapElemValue()
  19764. }
  19765. if dd.TryDecodeAsNil() {
  19766. if d.h.DeleteOnNilMapValue {
  19767. delete(v, mk)
  19768. } else {
  19769. v[mk] = 0
  19770. }
  19771. continue
  19772. }
  19773. mv = int(dd.DecodeInt(intBitsize))
  19774. if v != nil {
  19775. v[mk] = mv
  19776. }
  19777. }
  19778. dd.ReadMapEnd()
  19779. return v, changed
  19780. }
  19781. func (d *Decoder) fastpathDecMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  19782. if rv.Kind() == reflect.Ptr {
  19783. vp := rv2i(rv).(*map[float64]int8)
  19784. if v, changed := fastpathTV.DecMapFloat64Int8V(*vp, true, d); changed {
  19785. *vp = v
  19786. }
  19787. return
  19788. }
  19789. fastpathTV.DecMapFloat64Int8V(rv2i(rv).(map[float64]int8), false, d)
  19790. }
  19791. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, d *Decoder) {
  19792. if v, changed := f.DecMapFloat64Int8V(*vp, true, d); changed {
  19793. *vp = v
  19794. }
  19795. }
  19796. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, canChange bool,
  19797. d *Decoder) (_ map[float64]int8, changed bool) {
  19798. dd, esep := d.d, d.hh.hasElemSeparators()
  19799. containerLen := dd.ReadMapStart()
  19800. if canChange && v == nil {
  19801. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  19802. v = make(map[float64]int8, xlen)
  19803. changed = true
  19804. }
  19805. if containerLen == 0 {
  19806. dd.ReadMapEnd()
  19807. return v, changed
  19808. }
  19809. var mk float64
  19810. var mv int8
  19811. hasLen := containerLen > 0
  19812. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19813. if esep {
  19814. dd.ReadMapElemKey()
  19815. }
  19816. mk = dd.DecodeFloat(false)
  19817. if esep {
  19818. dd.ReadMapElemValue()
  19819. }
  19820. if dd.TryDecodeAsNil() {
  19821. if d.h.DeleteOnNilMapValue {
  19822. delete(v, mk)
  19823. } else {
  19824. v[mk] = 0
  19825. }
  19826. continue
  19827. }
  19828. mv = int8(dd.DecodeInt(8))
  19829. if v != nil {
  19830. v[mk] = mv
  19831. }
  19832. }
  19833. dd.ReadMapEnd()
  19834. return v, changed
  19835. }
  19836. func (d *Decoder) fastpathDecMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  19837. if rv.Kind() == reflect.Ptr {
  19838. vp := rv2i(rv).(*map[float64]int16)
  19839. if v, changed := fastpathTV.DecMapFloat64Int16V(*vp, true, d); changed {
  19840. *vp = v
  19841. }
  19842. return
  19843. }
  19844. fastpathTV.DecMapFloat64Int16V(rv2i(rv).(map[float64]int16), false, d)
  19845. }
  19846. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, d *Decoder) {
  19847. if v, changed := f.DecMapFloat64Int16V(*vp, true, d); changed {
  19848. *vp = v
  19849. }
  19850. }
  19851. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, canChange bool,
  19852. d *Decoder) (_ map[float64]int16, changed bool) {
  19853. dd, esep := d.d, d.hh.hasElemSeparators()
  19854. containerLen := dd.ReadMapStart()
  19855. if canChange && v == nil {
  19856. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  19857. v = make(map[float64]int16, xlen)
  19858. changed = true
  19859. }
  19860. if containerLen == 0 {
  19861. dd.ReadMapEnd()
  19862. return v, changed
  19863. }
  19864. var mk float64
  19865. var mv int16
  19866. hasLen := containerLen > 0
  19867. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19868. if esep {
  19869. dd.ReadMapElemKey()
  19870. }
  19871. mk = dd.DecodeFloat(false)
  19872. if esep {
  19873. dd.ReadMapElemValue()
  19874. }
  19875. if dd.TryDecodeAsNil() {
  19876. if d.h.DeleteOnNilMapValue {
  19877. delete(v, mk)
  19878. } else {
  19879. v[mk] = 0
  19880. }
  19881. continue
  19882. }
  19883. mv = int16(dd.DecodeInt(16))
  19884. if v != nil {
  19885. v[mk] = mv
  19886. }
  19887. }
  19888. dd.ReadMapEnd()
  19889. return v, changed
  19890. }
  19891. func (d *Decoder) fastpathDecMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  19892. if rv.Kind() == reflect.Ptr {
  19893. vp := rv2i(rv).(*map[float64]int32)
  19894. if v, changed := fastpathTV.DecMapFloat64Int32V(*vp, true, d); changed {
  19895. *vp = v
  19896. }
  19897. return
  19898. }
  19899. fastpathTV.DecMapFloat64Int32V(rv2i(rv).(map[float64]int32), false, d)
  19900. }
  19901. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, d *Decoder) {
  19902. if v, changed := f.DecMapFloat64Int32V(*vp, true, d); changed {
  19903. *vp = v
  19904. }
  19905. }
  19906. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, canChange bool,
  19907. d *Decoder) (_ map[float64]int32, changed bool) {
  19908. dd, esep := d.d, d.hh.hasElemSeparators()
  19909. containerLen := dd.ReadMapStart()
  19910. if canChange && v == nil {
  19911. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19912. v = make(map[float64]int32, xlen)
  19913. changed = true
  19914. }
  19915. if containerLen == 0 {
  19916. dd.ReadMapEnd()
  19917. return v, changed
  19918. }
  19919. var mk float64
  19920. var mv int32
  19921. hasLen := containerLen > 0
  19922. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19923. if esep {
  19924. dd.ReadMapElemKey()
  19925. }
  19926. mk = dd.DecodeFloat(false)
  19927. if esep {
  19928. dd.ReadMapElemValue()
  19929. }
  19930. if dd.TryDecodeAsNil() {
  19931. if d.h.DeleteOnNilMapValue {
  19932. delete(v, mk)
  19933. } else {
  19934. v[mk] = 0
  19935. }
  19936. continue
  19937. }
  19938. mv = int32(dd.DecodeInt(32))
  19939. if v != nil {
  19940. v[mk] = mv
  19941. }
  19942. }
  19943. dd.ReadMapEnd()
  19944. return v, changed
  19945. }
  19946. func (d *Decoder) fastpathDecMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  19947. if rv.Kind() == reflect.Ptr {
  19948. vp := rv2i(rv).(*map[float64]int64)
  19949. if v, changed := fastpathTV.DecMapFloat64Int64V(*vp, true, d); changed {
  19950. *vp = v
  19951. }
  19952. return
  19953. }
  19954. fastpathTV.DecMapFloat64Int64V(rv2i(rv).(map[float64]int64), false, d)
  19955. }
  19956. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, d *Decoder) {
  19957. if v, changed := f.DecMapFloat64Int64V(*vp, true, d); changed {
  19958. *vp = v
  19959. }
  19960. }
  19961. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, canChange bool,
  19962. d *Decoder) (_ map[float64]int64, changed bool) {
  19963. dd, esep := d.d, d.hh.hasElemSeparators()
  19964. containerLen := dd.ReadMapStart()
  19965. if canChange && v == nil {
  19966. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19967. v = make(map[float64]int64, xlen)
  19968. changed = true
  19969. }
  19970. if containerLen == 0 {
  19971. dd.ReadMapEnd()
  19972. return v, changed
  19973. }
  19974. var mk float64
  19975. var mv int64
  19976. hasLen := containerLen > 0
  19977. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19978. if esep {
  19979. dd.ReadMapElemKey()
  19980. }
  19981. mk = dd.DecodeFloat(false)
  19982. if esep {
  19983. dd.ReadMapElemValue()
  19984. }
  19985. if dd.TryDecodeAsNil() {
  19986. if d.h.DeleteOnNilMapValue {
  19987. delete(v, mk)
  19988. } else {
  19989. v[mk] = 0
  19990. }
  19991. continue
  19992. }
  19993. mv = dd.DecodeInt(64)
  19994. if v != nil {
  19995. v[mk] = mv
  19996. }
  19997. }
  19998. dd.ReadMapEnd()
  19999. return v, changed
  20000. }
  20001. func (d *Decoder) fastpathDecMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  20002. if rv.Kind() == reflect.Ptr {
  20003. vp := rv2i(rv).(*map[float64]float32)
  20004. if v, changed := fastpathTV.DecMapFloat64Float32V(*vp, true, d); changed {
  20005. *vp = v
  20006. }
  20007. return
  20008. }
  20009. fastpathTV.DecMapFloat64Float32V(rv2i(rv).(map[float64]float32), false, d)
  20010. }
  20011. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, d *Decoder) {
  20012. if v, changed := f.DecMapFloat64Float32V(*vp, true, d); changed {
  20013. *vp = v
  20014. }
  20015. }
  20016. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, canChange bool,
  20017. d *Decoder) (_ map[float64]float32, changed bool) {
  20018. dd, esep := d.d, d.hh.hasElemSeparators()
  20019. containerLen := dd.ReadMapStart()
  20020. if canChange && v == nil {
  20021. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20022. v = make(map[float64]float32, xlen)
  20023. changed = true
  20024. }
  20025. if containerLen == 0 {
  20026. dd.ReadMapEnd()
  20027. return v, changed
  20028. }
  20029. var mk float64
  20030. var mv float32
  20031. hasLen := containerLen > 0
  20032. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20033. if esep {
  20034. dd.ReadMapElemKey()
  20035. }
  20036. mk = dd.DecodeFloat(false)
  20037. if esep {
  20038. dd.ReadMapElemValue()
  20039. }
  20040. if dd.TryDecodeAsNil() {
  20041. if d.h.DeleteOnNilMapValue {
  20042. delete(v, mk)
  20043. } else {
  20044. v[mk] = 0
  20045. }
  20046. continue
  20047. }
  20048. mv = float32(dd.DecodeFloat(true))
  20049. if v != nil {
  20050. v[mk] = mv
  20051. }
  20052. }
  20053. dd.ReadMapEnd()
  20054. return v, changed
  20055. }
  20056. func (d *Decoder) fastpathDecMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  20057. if rv.Kind() == reflect.Ptr {
  20058. vp := rv2i(rv).(*map[float64]float64)
  20059. if v, changed := fastpathTV.DecMapFloat64Float64V(*vp, true, d); changed {
  20060. *vp = v
  20061. }
  20062. return
  20063. }
  20064. fastpathTV.DecMapFloat64Float64V(rv2i(rv).(map[float64]float64), false, d)
  20065. }
  20066. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, d *Decoder) {
  20067. if v, changed := f.DecMapFloat64Float64V(*vp, true, d); changed {
  20068. *vp = v
  20069. }
  20070. }
  20071. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, canChange bool,
  20072. d *Decoder) (_ map[float64]float64, changed bool) {
  20073. dd, esep := d.d, d.hh.hasElemSeparators()
  20074. containerLen := dd.ReadMapStart()
  20075. if canChange && v == nil {
  20076. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20077. v = make(map[float64]float64, xlen)
  20078. changed = true
  20079. }
  20080. if containerLen == 0 {
  20081. dd.ReadMapEnd()
  20082. return v, changed
  20083. }
  20084. var mk float64
  20085. var mv float64
  20086. hasLen := containerLen > 0
  20087. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20088. if esep {
  20089. dd.ReadMapElemKey()
  20090. }
  20091. mk = dd.DecodeFloat(false)
  20092. if esep {
  20093. dd.ReadMapElemValue()
  20094. }
  20095. if dd.TryDecodeAsNil() {
  20096. if d.h.DeleteOnNilMapValue {
  20097. delete(v, mk)
  20098. } else {
  20099. v[mk] = 0
  20100. }
  20101. continue
  20102. }
  20103. mv = dd.DecodeFloat(false)
  20104. if v != nil {
  20105. v[mk] = mv
  20106. }
  20107. }
  20108. dd.ReadMapEnd()
  20109. return v, changed
  20110. }
  20111. func (d *Decoder) fastpathDecMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  20112. if rv.Kind() == reflect.Ptr {
  20113. vp := rv2i(rv).(*map[float64]bool)
  20114. if v, changed := fastpathTV.DecMapFloat64BoolV(*vp, true, d); changed {
  20115. *vp = v
  20116. }
  20117. return
  20118. }
  20119. fastpathTV.DecMapFloat64BoolV(rv2i(rv).(map[float64]bool), false, d)
  20120. }
  20121. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, d *Decoder) {
  20122. if v, changed := f.DecMapFloat64BoolV(*vp, true, d); changed {
  20123. *vp = v
  20124. }
  20125. }
  20126. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, canChange bool,
  20127. d *Decoder) (_ map[float64]bool, changed bool) {
  20128. dd, esep := d.d, d.hh.hasElemSeparators()
  20129. containerLen := dd.ReadMapStart()
  20130. if canChange && v == nil {
  20131. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20132. v = make(map[float64]bool, xlen)
  20133. changed = true
  20134. }
  20135. if containerLen == 0 {
  20136. dd.ReadMapEnd()
  20137. return v, changed
  20138. }
  20139. var mk float64
  20140. var mv bool
  20141. hasLen := containerLen > 0
  20142. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20143. if esep {
  20144. dd.ReadMapElemKey()
  20145. }
  20146. mk = dd.DecodeFloat(false)
  20147. if esep {
  20148. dd.ReadMapElemValue()
  20149. }
  20150. if dd.TryDecodeAsNil() {
  20151. if d.h.DeleteOnNilMapValue {
  20152. delete(v, mk)
  20153. } else {
  20154. v[mk] = false
  20155. }
  20156. continue
  20157. }
  20158. mv = dd.DecodeBool()
  20159. if v != nil {
  20160. v[mk] = mv
  20161. }
  20162. }
  20163. dd.ReadMapEnd()
  20164. return v, changed
  20165. }
  20166. func (d *Decoder) fastpathDecMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  20167. if rv.Kind() == reflect.Ptr {
  20168. vp := rv2i(rv).(*map[uint]interface{})
  20169. if v, changed := fastpathTV.DecMapUintIntfV(*vp, true, d); changed {
  20170. *vp = v
  20171. }
  20172. return
  20173. }
  20174. fastpathTV.DecMapUintIntfV(rv2i(rv).(map[uint]interface{}), false, d)
  20175. }
  20176. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, d *Decoder) {
  20177. if v, changed := f.DecMapUintIntfV(*vp, true, d); changed {
  20178. *vp = v
  20179. }
  20180. }
  20181. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, canChange bool,
  20182. d *Decoder) (_ map[uint]interface{}, changed bool) {
  20183. dd, esep := d.d, d.hh.hasElemSeparators()
  20184. containerLen := dd.ReadMapStart()
  20185. if canChange && v == nil {
  20186. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20187. v = make(map[uint]interface{}, xlen)
  20188. changed = true
  20189. }
  20190. if containerLen == 0 {
  20191. dd.ReadMapEnd()
  20192. return v, changed
  20193. }
  20194. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  20195. var mk uint
  20196. var mv interface{}
  20197. hasLen := containerLen > 0
  20198. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20199. if esep {
  20200. dd.ReadMapElemKey()
  20201. }
  20202. mk = uint(dd.DecodeUint(uintBitsize))
  20203. if esep {
  20204. dd.ReadMapElemValue()
  20205. }
  20206. if dd.TryDecodeAsNil() {
  20207. if d.h.DeleteOnNilMapValue {
  20208. delete(v, mk)
  20209. } else {
  20210. v[mk] = nil
  20211. }
  20212. continue
  20213. }
  20214. if mapGet {
  20215. mv = v[mk]
  20216. } else {
  20217. mv = nil
  20218. }
  20219. d.decode(&mv)
  20220. if v != nil {
  20221. v[mk] = mv
  20222. }
  20223. }
  20224. dd.ReadMapEnd()
  20225. return v, changed
  20226. }
  20227. func (d *Decoder) fastpathDecMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  20228. if rv.Kind() == reflect.Ptr {
  20229. vp := rv2i(rv).(*map[uint]string)
  20230. if v, changed := fastpathTV.DecMapUintStringV(*vp, true, d); changed {
  20231. *vp = v
  20232. }
  20233. return
  20234. }
  20235. fastpathTV.DecMapUintStringV(rv2i(rv).(map[uint]string), false, d)
  20236. }
  20237. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, d *Decoder) {
  20238. if v, changed := f.DecMapUintStringV(*vp, true, d); changed {
  20239. *vp = v
  20240. }
  20241. }
  20242. func (_ fastpathT) DecMapUintStringV(v map[uint]string, canChange bool,
  20243. d *Decoder) (_ map[uint]string, changed bool) {
  20244. dd, esep := d.d, d.hh.hasElemSeparators()
  20245. containerLen := dd.ReadMapStart()
  20246. if canChange && v == nil {
  20247. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20248. v = make(map[uint]string, xlen)
  20249. changed = true
  20250. }
  20251. if containerLen == 0 {
  20252. dd.ReadMapEnd()
  20253. return v, changed
  20254. }
  20255. var mk uint
  20256. var mv string
  20257. hasLen := containerLen > 0
  20258. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20259. if esep {
  20260. dd.ReadMapElemKey()
  20261. }
  20262. mk = uint(dd.DecodeUint(uintBitsize))
  20263. if esep {
  20264. dd.ReadMapElemValue()
  20265. }
  20266. if dd.TryDecodeAsNil() {
  20267. if d.h.DeleteOnNilMapValue {
  20268. delete(v, mk)
  20269. } else {
  20270. v[mk] = ""
  20271. }
  20272. continue
  20273. }
  20274. mv = dd.DecodeString()
  20275. if v != nil {
  20276. v[mk] = mv
  20277. }
  20278. }
  20279. dd.ReadMapEnd()
  20280. return v, changed
  20281. }
  20282. func (d *Decoder) fastpathDecMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  20283. if rv.Kind() == reflect.Ptr {
  20284. vp := rv2i(rv).(*map[uint]uint)
  20285. if v, changed := fastpathTV.DecMapUintUintV(*vp, true, d); changed {
  20286. *vp = v
  20287. }
  20288. return
  20289. }
  20290. fastpathTV.DecMapUintUintV(rv2i(rv).(map[uint]uint), false, d)
  20291. }
  20292. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, d *Decoder) {
  20293. if v, changed := f.DecMapUintUintV(*vp, true, d); changed {
  20294. *vp = v
  20295. }
  20296. }
  20297. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, canChange bool,
  20298. d *Decoder) (_ map[uint]uint, changed bool) {
  20299. dd, esep := d.d, d.hh.hasElemSeparators()
  20300. containerLen := dd.ReadMapStart()
  20301. if canChange && v == nil {
  20302. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20303. v = make(map[uint]uint, xlen)
  20304. changed = true
  20305. }
  20306. if containerLen == 0 {
  20307. dd.ReadMapEnd()
  20308. return v, changed
  20309. }
  20310. var mk uint
  20311. var mv uint
  20312. hasLen := containerLen > 0
  20313. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20314. if esep {
  20315. dd.ReadMapElemKey()
  20316. }
  20317. mk = uint(dd.DecodeUint(uintBitsize))
  20318. if esep {
  20319. dd.ReadMapElemValue()
  20320. }
  20321. if dd.TryDecodeAsNil() {
  20322. if d.h.DeleteOnNilMapValue {
  20323. delete(v, mk)
  20324. } else {
  20325. v[mk] = 0
  20326. }
  20327. continue
  20328. }
  20329. mv = uint(dd.DecodeUint(uintBitsize))
  20330. if v != nil {
  20331. v[mk] = mv
  20332. }
  20333. }
  20334. dd.ReadMapEnd()
  20335. return v, changed
  20336. }
  20337. func (d *Decoder) fastpathDecMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  20338. if rv.Kind() == reflect.Ptr {
  20339. vp := rv2i(rv).(*map[uint]uint8)
  20340. if v, changed := fastpathTV.DecMapUintUint8V(*vp, true, d); changed {
  20341. *vp = v
  20342. }
  20343. return
  20344. }
  20345. fastpathTV.DecMapUintUint8V(rv2i(rv).(map[uint]uint8), false, d)
  20346. }
  20347. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, d *Decoder) {
  20348. if v, changed := f.DecMapUintUint8V(*vp, true, d); changed {
  20349. *vp = v
  20350. }
  20351. }
  20352. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, canChange bool,
  20353. d *Decoder) (_ map[uint]uint8, changed bool) {
  20354. dd, esep := d.d, d.hh.hasElemSeparators()
  20355. containerLen := dd.ReadMapStart()
  20356. if canChange && v == nil {
  20357. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20358. v = make(map[uint]uint8, xlen)
  20359. changed = true
  20360. }
  20361. if containerLen == 0 {
  20362. dd.ReadMapEnd()
  20363. return v, changed
  20364. }
  20365. var mk uint
  20366. var mv uint8
  20367. hasLen := containerLen > 0
  20368. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20369. if esep {
  20370. dd.ReadMapElemKey()
  20371. }
  20372. mk = uint(dd.DecodeUint(uintBitsize))
  20373. if esep {
  20374. dd.ReadMapElemValue()
  20375. }
  20376. if dd.TryDecodeAsNil() {
  20377. if d.h.DeleteOnNilMapValue {
  20378. delete(v, mk)
  20379. } else {
  20380. v[mk] = 0
  20381. }
  20382. continue
  20383. }
  20384. mv = uint8(dd.DecodeUint(8))
  20385. if v != nil {
  20386. v[mk] = mv
  20387. }
  20388. }
  20389. dd.ReadMapEnd()
  20390. return v, changed
  20391. }
  20392. func (d *Decoder) fastpathDecMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  20393. if rv.Kind() == reflect.Ptr {
  20394. vp := rv2i(rv).(*map[uint]uint16)
  20395. if v, changed := fastpathTV.DecMapUintUint16V(*vp, true, d); changed {
  20396. *vp = v
  20397. }
  20398. return
  20399. }
  20400. fastpathTV.DecMapUintUint16V(rv2i(rv).(map[uint]uint16), false, d)
  20401. }
  20402. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, d *Decoder) {
  20403. if v, changed := f.DecMapUintUint16V(*vp, true, d); changed {
  20404. *vp = v
  20405. }
  20406. }
  20407. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, canChange bool,
  20408. d *Decoder) (_ map[uint]uint16, changed bool) {
  20409. dd, esep := d.d, d.hh.hasElemSeparators()
  20410. containerLen := dd.ReadMapStart()
  20411. if canChange && v == nil {
  20412. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  20413. v = make(map[uint]uint16, xlen)
  20414. changed = true
  20415. }
  20416. if containerLen == 0 {
  20417. dd.ReadMapEnd()
  20418. return v, changed
  20419. }
  20420. var mk uint
  20421. var mv uint16
  20422. hasLen := containerLen > 0
  20423. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20424. if esep {
  20425. dd.ReadMapElemKey()
  20426. }
  20427. mk = uint(dd.DecodeUint(uintBitsize))
  20428. if esep {
  20429. dd.ReadMapElemValue()
  20430. }
  20431. if dd.TryDecodeAsNil() {
  20432. if d.h.DeleteOnNilMapValue {
  20433. delete(v, mk)
  20434. } else {
  20435. v[mk] = 0
  20436. }
  20437. continue
  20438. }
  20439. mv = uint16(dd.DecodeUint(16))
  20440. if v != nil {
  20441. v[mk] = mv
  20442. }
  20443. }
  20444. dd.ReadMapEnd()
  20445. return v, changed
  20446. }
  20447. func (d *Decoder) fastpathDecMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  20448. if rv.Kind() == reflect.Ptr {
  20449. vp := rv2i(rv).(*map[uint]uint32)
  20450. if v, changed := fastpathTV.DecMapUintUint32V(*vp, true, d); changed {
  20451. *vp = v
  20452. }
  20453. return
  20454. }
  20455. fastpathTV.DecMapUintUint32V(rv2i(rv).(map[uint]uint32), false, d)
  20456. }
  20457. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, d *Decoder) {
  20458. if v, changed := f.DecMapUintUint32V(*vp, true, d); changed {
  20459. *vp = v
  20460. }
  20461. }
  20462. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, canChange bool,
  20463. d *Decoder) (_ map[uint]uint32, changed bool) {
  20464. dd, esep := d.d, d.hh.hasElemSeparators()
  20465. containerLen := dd.ReadMapStart()
  20466. if canChange && v == nil {
  20467. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20468. v = make(map[uint]uint32, xlen)
  20469. changed = true
  20470. }
  20471. if containerLen == 0 {
  20472. dd.ReadMapEnd()
  20473. return v, changed
  20474. }
  20475. var mk uint
  20476. var mv uint32
  20477. hasLen := containerLen > 0
  20478. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20479. if esep {
  20480. dd.ReadMapElemKey()
  20481. }
  20482. mk = uint(dd.DecodeUint(uintBitsize))
  20483. if esep {
  20484. dd.ReadMapElemValue()
  20485. }
  20486. if dd.TryDecodeAsNil() {
  20487. if d.h.DeleteOnNilMapValue {
  20488. delete(v, mk)
  20489. } else {
  20490. v[mk] = 0
  20491. }
  20492. continue
  20493. }
  20494. mv = uint32(dd.DecodeUint(32))
  20495. if v != nil {
  20496. v[mk] = mv
  20497. }
  20498. }
  20499. dd.ReadMapEnd()
  20500. return v, changed
  20501. }
  20502. func (d *Decoder) fastpathDecMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  20503. if rv.Kind() == reflect.Ptr {
  20504. vp := rv2i(rv).(*map[uint]uint64)
  20505. if v, changed := fastpathTV.DecMapUintUint64V(*vp, true, d); changed {
  20506. *vp = v
  20507. }
  20508. return
  20509. }
  20510. fastpathTV.DecMapUintUint64V(rv2i(rv).(map[uint]uint64), false, d)
  20511. }
  20512. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, d *Decoder) {
  20513. if v, changed := f.DecMapUintUint64V(*vp, true, d); changed {
  20514. *vp = v
  20515. }
  20516. }
  20517. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, canChange bool,
  20518. d *Decoder) (_ map[uint]uint64, changed bool) {
  20519. dd, esep := d.d, d.hh.hasElemSeparators()
  20520. containerLen := dd.ReadMapStart()
  20521. if canChange && v == nil {
  20522. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20523. v = make(map[uint]uint64, xlen)
  20524. changed = true
  20525. }
  20526. if containerLen == 0 {
  20527. dd.ReadMapEnd()
  20528. return v, changed
  20529. }
  20530. var mk uint
  20531. var mv uint64
  20532. hasLen := containerLen > 0
  20533. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20534. if esep {
  20535. dd.ReadMapElemKey()
  20536. }
  20537. mk = uint(dd.DecodeUint(uintBitsize))
  20538. if esep {
  20539. dd.ReadMapElemValue()
  20540. }
  20541. if dd.TryDecodeAsNil() {
  20542. if d.h.DeleteOnNilMapValue {
  20543. delete(v, mk)
  20544. } else {
  20545. v[mk] = 0
  20546. }
  20547. continue
  20548. }
  20549. mv = dd.DecodeUint(64)
  20550. if v != nil {
  20551. v[mk] = mv
  20552. }
  20553. }
  20554. dd.ReadMapEnd()
  20555. return v, changed
  20556. }
  20557. func (d *Decoder) fastpathDecMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  20558. if rv.Kind() == reflect.Ptr {
  20559. vp := rv2i(rv).(*map[uint]uintptr)
  20560. if v, changed := fastpathTV.DecMapUintUintptrV(*vp, true, d); changed {
  20561. *vp = v
  20562. }
  20563. return
  20564. }
  20565. fastpathTV.DecMapUintUintptrV(rv2i(rv).(map[uint]uintptr), false, d)
  20566. }
  20567. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, d *Decoder) {
  20568. if v, changed := f.DecMapUintUintptrV(*vp, true, d); changed {
  20569. *vp = v
  20570. }
  20571. }
  20572. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, canChange bool,
  20573. d *Decoder) (_ map[uint]uintptr, changed bool) {
  20574. dd, esep := d.d, d.hh.hasElemSeparators()
  20575. containerLen := dd.ReadMapStart()
  20576. if canChange && v == nil {
  20577. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20578. v = make(map[uint]uintptr, xlen)
  20579. changed = true
  20580. }
  20581. if containerLen == 0 {
  20582. dd.ReadMapEnd()
  20583. return v, changed
  20584. }
  20585. var mk uint
  20586. var mv uintptr
  20587. hasLen := containerLen > 0
  20588. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20589. if esep {
  20590. dd.ReadMapElemKey()
  20591. }
  20592. mk = uint(dd.DecodeUint(uintBitsize))
  20593. if esep {
  20594. dd.ReadMapElemValue()
  20595. }
  20596. if dd.TryDecodeAsNil() {
  20597. if d.h.DeleteOnNilMapValue {
  20598. delete(v, mk)
  20599. } else {
  20600. v[mk] = 0
  20601. }
  20602. continue
  20603. }
  20604. mv = uintptr(dd.DecodeUint(uintBitsize))
  20605. if v != nil {
  20606. v[mk] = mv
  20607. }
  20608. }
  20609. dd.ReadMapEnd()
  20610. return v, changed
  20611. }
  20612. func (d *Decoder) fastpathDecMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  20613. if rv.Kind() == reflect.Ptr {
  20614. vp := rv2i(rv).(*map[uint]int)
  20615. if v, changed := fastpathTV.DecMapUintIntV(*vp, true, d); changed {
  20616. *vp = v
  20617. }
  20618. return
  20619. }
  20620. fastpathTV.DecMapUintIntV(rv2i(rv).(map[uint]int), false, d)
  20621. }
  20622. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, d *Decoder) {
  20623. if v, changed := f.DecMapUintIntV(*vp, true, d); changed {
  20624. *vp = v
  20625. }
  20626. }
  20627. func (_ fastpathT) DecMapUintIntV(v map[uint]int, canChange bool,
  20628. d *Decoder) (_ map[uint]int, changed bool) {
  20629. dd, esep := d.d, d.hh.hasElemSeparators()
  20630. containerLen := dd.ReadMapStart()
  20631. if canChange && v == nil {
  20632. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20633. v = make(map[uint]int, xlen)
  20634. changed = true
  20635. }
  20636. if containerLen == 0 {
  20637. dd.ReadMapEnd()
  20638. return v, changed
  20639. }
  20640. var mk uint
  20641. var mv int
  20642. hasLen := containerLen > 0
  20643. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20644. if esep {
  20645. dd.ReadMapElemKey()
  20646. }
  20647. mk = uint(dd.DecodeUint(uintBitsize))
  20648. if esep {
  20649. dd.ReadMapElemValue()
  20650. }
  20651. if dd.TryDecodeAsNil() {
  20652. if d.h.DeleteOnNilMapValue {
  20653. delete(v, mk)
  20654. } else {
  20655. v[mk] = 0
  20656. }
  20657. continue
  20658. }
  20659. mv = int(dd.DecodeInt(intBitsize))
  20660. if v != nil {
  20661. v[mk] = mv
  20662. }
  20663. }
  20664. dd.ReadMapEnd()
  20665. return v, changed
  20666. }
  20667. func (d *Decoder) fastpathDecMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  20668. if rv.Kind() == reflect.Ptr {
  20669. vp := rv2i(rv).(*map[uint]int8)
  20670. if v, changed := fastpathTV.DecMapUintInt8V(*vp, true, d); changed {
  20671. *vp = v
  20672. }
  20673. return
  20674. }
  20675. fastpathTV.DecMapUintInt8V(rv2i(rv).(map[uint]int8), false, d)
  20676. }
  20677. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, d *Decoder) {
  20678. if v, changed := f.DecMapUintInt8V(*vp, true, d); changed {
  20679. *vp = v
  20680. }
  20681. }
  20682. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, canChange bool,
  20683. d *Decoder) (_ map[uint]int8, changed bool) {
  20684. dd, esep := d.d, d.hh.hasElemSeparators()
  20685. containerLen := dd.ReadMapStart()
  20686. if canChange && v == nil {
  20687. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20688. v = make(map[uint]int8, xlen)
  20689. changed = true
  20690. }
  20691. if containerLen == 0 {
  20692. dd.ReadMapEnd()
  20693. return v, changed
  20694. }
  20695. var mk uint
  20696. var mv int8
  20697. hasLen := containerLen > 0
  20698. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20699. if esep {
  20700. dd.ReadMapElemKey()
  20701. }
  20702. mk = uint(dd.DecodeUint(uintBitsize))
  20703. if esep {
  20704. dd.ReadMapElemValue()
  20705. }
  20706. if dd.TryDecodeAsNil() {
  20707. if d.h.DeleteOnNilMapValue {
  20708. delete(v, mk)
  20709. } else {
  20710. v[mk] = 0
  20711. }
  20712. continue
  20713. }
  20714. mv = int8(dd.DecodeInt(8))
  20715. if v != nil {
  20716. v[mk] = mv
  20717. }
  20718. }
  20719. dd.ReadMapEnd()
  20720. return v, changed
  20721. }
  20722. func (d *Decoder) fastpathDecMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  20723. if rv.Kind() == reflect.Ptr {
  20724. vp := rv2i(rv).(*map[uint]int16)
  20725. if v, changed := fastpathTV.DecMapUintInt16V(*vp, true, d); changed {
  20726. *vp = v
  20727. }
  20728. return
  20729. }
  20730. fastpathTV.DecMapUintInt16V(rv2i(rv).(map[uint]int16), false, d)
  20731. }
  20732. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, d *Decoder) {
  20733. if v, changed := f.DecMapUintInt16V(*vp, true, d); changed {
  20734. *vp = v
  20735. }
  20736. }
  20737. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, canChange bool,
  20738. d *Decoder) (_ map[uint]int16, changed bool) {
  20739. dd, esep := d.d, d.hh.hasElemSeparators()
  20740. containerLen := dd.ReadMapStart()
  20741. if canChange && v == nil {
  20742. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  20743. v = make(map[uint]int16, xlen)
  20744. changed = true
  20745. }
  20746. if containerLen == 0 {
  20747. dd.ReadMapEnd()
  20748. return v, changed
  20749. }
  20750. var mk uint
  20751. var mv int16
  20752. hasLen := containerLen > 0
  20753. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20754. if esep {
  20755. dd.ReadMapElemKey()
  20756. }
  20757. mk = uint(dd.DecodeUint(uintBitsize))
  20758. if esep {
  20759. dd.ReadMapElemValue()
  20760. }
  20761. if dd.TryDecodeAsNil() {
  20762. if d.h.DeleteOnNilMapValue {
  20763. delete(v, mk)
  20764. } else {
  20765. v[mk] = 0
  20766. }
  20767. continue
  20768. }
  20769. mv = int16(dd.DecodeInt(16))
  20770. if v != nil {
  20771. v[mk] = mv
  20772. }
  20773. }
  20774. dd.ReadMapEnd()
  20775. return v, changed
  20776. }
  20777. func (d *Decoder) fastpathDecMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  20778. if rv.Kind() == reflect.Ptr {
  20779. vp := rv2i(rv).(*map[uint]int32)
  20780. if v, changed := fastpathTV.DecMapUintInt32V(*vp, true, d); changed {
  20781. *vp = v
  20782. }
  20783. return
  20784. }
  20785. fastpathTV.DecMapUintInt32V(rv2i(rv).(map[uint]int32), false, d)
  20786. }
  20787. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, d *Decoder) {
  20788. if v, changed := f.DecMapUintInt32V(*vp, true, d); changed {
  20789. *vp = v
  20790. }
  20791. }
  20792. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, canChange bool,
  20793. d *Decoder) (_ map[uint]int32, changed bool) {
  20794. dd, esep := d.d, d.hh.hasElemSeparators()
  20795. containerLen := dd.ReadMapStart()
  20796. if canChange && v == nil {
  20797. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20798. v = make(map[uint]int32, xlen)
  20799. changed = true
  20800. }
  20801. if containerLen == 0 {
  20802. dd.ReadMapEnd()
  20803. return v, changed
  20804. }
  20805. var mk uint
  20806. var mv int32
  20807. hasLen := containerLen > 0
  20808. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20809. if esep {
  20810. dd.ReadMapElemKey()
  20811. }
  20812. mk = uint(dd.DecodeUint(uintBitsize))
  20813. if esep {
  20814. dd.ReadMapElemValue()
  20815. }
  20816. if dd.TryDecodeAsNil() {
  20817. if d.h.DeleteOnNilMapValue {
  20818. delete(v, mk)
  20819. } else {
  20820. v[mk] = 0
  20821. }
  20822. continue
  20823. }
  20824. mv = int32(dd.DecodeInt(32))
  20825. if v != nil {
  20826. v[mk] = mv
  20827. }
  20828. }
  20829. dd.ReadMapEnd()
  20830. return v, changed
  20831. }
  20832. func (d *Decoder) fastpathDecMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  20833. if rv.Kind() == reflect.Ptr {
  20834. vp := rv2i(rv).(*map[uint]int64)
  20835. if v, changed := fastpathTV.DecMapUintInt64V(*vp, true, d); changed {
  20836. *vp = v
  20837. }
  20838. return
  20839. }
  20840. fastpathTV.DecMapUintInt64V(rv2i(rv).(map[uint]int64), false, d)
  20841. }
  20842. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, d *Decoder) {
  20843. if v, changed := f.DecMapUintInt64V(*vp, true, d); changed {
  20844. *vp = v
  20845. }
  20846. }
  20847. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, canChange bool,
  20848. d *Decoder) (_ map[uint]int64, changed bool) {
  20849. dd, esep := d.d, d.hh.hasElemSeparators()
  20850. containerLen := dd.ReadMapStart()
  20851. if canChange && v == nil {
  20852. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20853. v = make(map[uint]int64, xlen)
  20854. changed = true
  20855. }
  20856. if containerLen == 0 {
  20857. dd.ReadMapEnd()
  20858. return v, changed
  20859. }
  20860. var mk uint
  20861. var mv int64
  20862. hasLen := containerLen > 0
  20863. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20864. if esep {
  20865. dd.ReadMapElemKey()
  20866. }
  20867. mk = uint(dd.DecodeUint(uintBitsize))
  20868. if esep {
  20869. dd.ReadMapElemValue()
  20870. }
  20871. if dd.TryDecodeAsNil() {
  20872. if d.h.DeleteOnNilMapValue {
  20873. delete(v, mk)
  20874. } else {
  20875. v[mk] = 0
  20876. }
  20877. continue
  20878. }
  20879. mv = dd.DecodeInt(64)
  20880. if v != nil {
  20881. v[mk] = mv
  20882. }
  20883. }
  20884. dd.ReadMapEnd()
  20885. return v, changed
  20886. }
  20887. func (d *Decoder) fastpathDecMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  20888. if rv.Kind() == reflect.Ptr {
  20889. vp := rv2i(rv).(*map[uint]float32)
  20890. if v, changed := fastpathTV.DecMapUintFloat32V(*vp, true, d); changed {
  20891. *vp = v
  20892. }
  20893. return
  20894. }
  20895. fastpathTV.DecMapUintFloat32V(rv2i(rv).(map[uint]float32), false, d)
  20896. }
  20897. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, d *Decoder) {
  20898. if v, changed := f.DecMapUintFloat32V(*vp, true, d); changed {
  20899. *vp = v
  20900. }
  20901. }
  20902. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, canChange bool,
  20903. d *Decoder) (_ map[uint]float32, changed bool) {
  20904. dd, esep := d.d, d.hh.hasElemSeparators()
  20905. containerLen := dd.ReadMapStart()
  20906. if canChange && v == nil {
  20907. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20908. v = make(map[uint]float32, xlen)
  20909. changed = true
  20910. }
  20911. if containerLen == 0 {
  20912. dd.ReadMapEnd()
  20913. return v, changed
  20914. }
  20915. var mk uint
  20916. var mv float32
  20917. hasLen := containerLen > 0
  20918. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20919. if esep {
  20920. dd.ReadMapElemKey()
  20921. }
  20922. mk = uint(dd.DecodeUint(uintBitsize))
  20923. if esep {
  20924. dd.ReadMapElemValue()
  20925. }
  20926. if dd.TryDecodeAsNil() {
  20927. if d.h.DeleteOnNilMapValue {
  20928. delete(v, mk)
  20929. } else {
  20930. v[mk] = 0
  20931. }
  20932. continue
  20933. }
  20934. mv = float32(dd.DecodeFloat(true))
  20935. if v != nil {
  20936. v[mk] = mv
  20937. }
  20938. }
  20939. dd.ReadMapEnd()
  20940. return v, changed
  20941. }
  20942. func (d *Decoder) fastpathDecMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  20943. if rv.Kind() == reflect.Ptr {
  20944. vp := rv2i(rv).(*map[uint]float64)
  20945. if v, changed := fastpathTV.DecMapUintFloat64V(*vp, true, d); changed {
  20946. *vp = v
  20947. }
  20948. return
  20949. }
  20950. fastpathTV.DecMapUintFloat64V(rv2i(rv).(map[uint]float64), false, d)
  20951. }
  20952. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, d *Decoder) {
  20953. if v, changed := f.DecMapUintFloat64V(*vp, true, d); changed {
  20954. *vp = v
  20955. }
  20956. }
  20957. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, canChange bool,
  20958. d *Decoder) (_ map[uint]float64, changed bool) {
  20959. dd, esep := d.d, d.hh.hasElemSeparators()
  20960. containerLen := dd.ReadMapStart()
  20961. if canChange && v == nil {
  20962. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20963. v = make(map[uint]float64, xlen)
  20964. changed = true
  20965. }
  20966. if containerLen == 0 {
  20967. dd.ReadMapEnd()
  20968. return v, changed
  20969. }
  20970. var mk uint
  20971. var mv float64
  20972. hasLen := containerLen > 0
  20973. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20974. if esep {
  20975. dd.ReadMapElemKey()
  20976. }
  20977. mk = uint(dd.DecodeUint(uintBitsize))
  20978. if esep {
  20979. dd.ReadMapElemValue()
  20980. }
  20981. if dd.TryDecodeAsNil() {
  20982. if d.h.DeleteOnNilMapValue {
  20983. delete(v, mk)
  20984. } else {
  20985. v[mk] = 0
  20986. }
  20987. continue
  20988. }
  20989. mv = dd.DecodeFloat(false)
  20990. if v != nil {
  20991. v[mk] = mv
  20992. }
  20993. }
  20994. dd.ReadMapEnd()
  20995. return v, changed
  20996. }
  20997. func (d *Decoder) fastpathDecMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  20998. if rv.Kind() == reflect.Ptr {
  20999. vp := rv2i(rv).(*map[uint]bool)
  21000. if v, changed := fastpathTV.DecMapUintBoolV(*vp, true, d); changed {
  21001. *vp = v
  21002. }
  21003. return
  21004. }
  21005. fastpathTV.DecMapUintBoolV(rv2i(rv).(map[uint]bool), false, d)
  21006. }
  21007. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, d *Decoder) {
  21008. if v, changed := f.DecMapUintBoolV(*vp, true, d); changed {
  21009. *vp = v
  21010. }
  21011. }
  21012. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, canChange bool,
  21013. d *Decoder) (_ map[uint]bool, changed bool) {
  21014. dd, esep := d.d, d.hh.hasElemSeparators()
  21015. containerLen := dd.ReadMapStart()
  21016. if canChange && v == nil {
  21017. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21018. v = make(map[uint]bool, xlen)
  21019. changed = true
  21020. }
  21021. if containerLen == 0 {
  21022. dd.ReadMapEnd()
  21023. return v, changed
  21024. }
  21025. var mk uint
  21026. var mv bool
  21027. hasLen := containerLen > 0
  21028. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21029. if esep {
  21030. dd.ReadMapElemKey()
  21031. }
  21032. mk = uint(dd.DecodeUint(uintBitsize))
  21033. if esep {
  21034. dd.ReadMapElemValue()
  21035. }
  21036. if dd.TryDecodeAsNil() {
  21037. if d.h.DeleteOnNilMapValue {
  21038. delete(v, mk)
  21039. } else {
  21040. v[mk] = false
  21041. }
  21042. continue
  21043. }
  21044. mv = dd.DecodeBool()
  21045. if v != nil {
  21046. v[mk] = mv
  21047. }
  21048. }
  21049. dd.ReadMapEnd()
  21050. return v, changed
  21051. }
  21052. func (d *Decoder) fastpathDecMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  21053. if rv.Kind() == reflect.Ptr {
  21054. vp := rv2i(rv).(*map[uint8]interface{})
  21055. if v, changed := fastpathTV.DecMapUint8IntfV(*vp, true, d); changed {
  21056. *vp = v
  21057. }
  21058. return
  21059. }
  21060. fastpathTV.DecMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), false, d)
  21061. }
  21062. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, d *Decoder) {
  21063. if v, changed := f.DecMapUint8IntfV(*vp, true, d); changed {
  21064. *vp = v
  21065. }
  21066. }
  21067. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, canChange bool,
  21068. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  21069. dd, esep := d.d, d.hh.hasElemSeparators()
  21070. containerLen := dd.ReadMapStart()
  21071. if canChange && v == nil {
  21072. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  21073. v = make(map[uint8]interface{}, xlen)
  21074. changed = true
  21075. }
  21076. if containerLen == 0 {
  21077. dd.ReadMapEnd()
  21078. return v, changed
  21079. }
  21080. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  21081. var mk uint8
  21082. var mv interface{}
  21083. hasLen := containerLen > 0
  21084. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21085. if esep {
  21086. dd.ReadMapElemKey()
  21087. }
  21088. mk = uint8(dd.DecodeUint(8))
  21089. if esep {
  21090. dd.ReadMapElemValue()
  21091. }
  21092. if dd.TryDecodeAsNil() {
  21093. if d.h.DeleteOnNilMapValue {
  21094. delete(v, mk)
  21095. } else {
  21096. v[mk] = nil
  21097. }
  21098. continue
  21099. }
  21100. if mapGet {
  21101. mv = v[mk]
  21102. } else {
  21103. mv = nil
  21104. }
  21105. d.decode(&mv)
  21106. if v != nil {
  21107. v[mk] = mv
  21108. }
  21109. }
  21110. dd.ReadMapEnd()
  21111. return v, changed
  21112. }
  21113. func (d *Decoder) fastpathDecMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  21114. if rv.Kind() == reflect.Ptr {
  21115. vp := rv2i(rv).(*map[uint8]string)
  21116. if v, changed := fastpathTV.DecMapUint8StringV(*vp, true, d); changed {
  21117. *vp = v
  21118. }
  21119. return
  21120. }
  21121. fastpathTV.DecMapUint8StringV(rv2i(rv).(map[uint8]string), false, d)
  21122. }
  21123. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, d *Decoder) {
  21124. if v, changed := f.DecMapUint8StringV(*vp, true, d); changed {
  21125. *vp = v
  21126. }
  21127. }
  21128. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, canChange bool,
  21129. d *Decoder) (_ map[uint8]string, changed bool) {
  21130. dd, esep := d.d, d.hh.hasElemSeparators()
  21131. containerLen := dd.ReadMapStart()
  21132. if canChange && v == nil {
  21133. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  21134. v = make(map[uint8]string, xlen)
  21135. changed = true
  21136. }
  21137. if containerLen == 0 {
  21138. dd.ReadMapEnd()
  21139. return v, changed
  21140. }
  21141. var mk uint8
  21142. var mv string
  21143. hasLen := containerLen > 0
  21144. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21145. if esep {
  21146. dd.ReadMapElemKey()
  21147. }
  21148. mk = uint8(dd.DecodeUint(8))
  21149. if esep {
  21150. dd.ReadMapElemValue()
  21151. }
  21152. if dd.TryDecodeAsNil() {
  21153. if d.h.DeleteOnNilMapValue {
  21154. delete(v, mk)
  21155. } else {
  21156. v[mk] = ""
  21157. }
  21158. continue
  21159. }
  21160. mv = dd.DecodeString()
  21161. if v != nil {
  21162. v[mk] = mv
  21163. }
  21164. }
  21165. dd.ReadMapEnd()
  21166. return v, changed
  21167. }
  21168. func (d *Decoder) fastpathDecMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  21169. if rv.Kind() == reflect.Ptr {
  21170. vp := rv2i(rv).(*map[uint8]uint)
  21171. if v, changed := fastpathTV.DecMapUint8UintV(*vp, true, d); changed {
  21172. *vp = v
  21173. }
  21174. return
  21175. }
  21176. fastpathTV.DecMapUint8UintV(rv2i(rv).(map[uint8]uint), false, d)
  21177. }
  21178. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, d *Decoder) {
  21179. if v, changed := f.DecMapUint8UintV(*vp, true, d); changed {
  21180. *vp = v
  21181. }
  21182. }
  21183. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, canChange bool,
  21184. d *Decoder) (_ map[uint8]uint, changed bool) {
  21185. dd, esep := d.d, d.hh.hasElemSeparators()
  21186. containerLen := dd.ReadMapStart()
  21187. if canChange && v == nil {
  21188. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21189. v = make(map[uint8]uint, xlen)
  21190. changed = true
  21191. }
  21192. if containerLen == 0 {
  21193. dd.ReadMapEnd()
  21194. return v, changed
  21195. }
  21196. var mk uint8
  21197. var mv uint
  21198. hasLen := containerLen > 0
  21199. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21200. if esep {
  21201. dd.ReadMapElemKey()
  21202. }
  21203. mk = uint8(dd.DecodeUint(8))
  21204. if esep {
  21205. dd.ReadMapElemValue()
  21206. }
  21207. if dd.TryDecodeAsNil() {
  21208. if d.h.DeleteOnNilMapValue {
  21209. delete(v, mk)
  21210. } else {
  21211. v[mk] = 0
  21212. }
  21213. continue
  21214. }
  21215. mv = uint(dd.DecodeUint(uintBitsize))
  21216. if v != nil {
  21217. v[mk] = mv
  21218. }
  21219. }
  21220. dd.ReadMapEnd()
  21221. return v, changed
  21222. }
  21223. func (d *Decoder) fastpathDecMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  21224. if rv.Kind() == reflect.Ptr {
  21225. vp := rv2i(rv).(*map[uint8]uint8)
  21226. if v, changed := fastpathTV.DecMapUint8Uint8V(*vp, true, d); changed {
  21227. *vp = v
  21228. }
  21229. return
  21230. }
  21231. fastpathTV.DecMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), false, d)
  21232. }
  21233. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, d *Decoder) {
  21234. if v, changed := f.DecMapUint8Uint8V(*vp, true, d); changed {
  21235. *vp = v
  21236. }
  21237. }
  21238. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, canChange bool,
  21239. d *Decoder) (_ map[uint8]uint8, changed bool) {
  21240. dd, esep := d.d, d.hh.hasElemSeparators()
  21241. containerLen := dd.ReadMapStart()
  21242. if canChange && v == nil {
  21243. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  21244. v = make(map[uint8]uint8, xlen)
  21245. changed = true
  21246. }
  21247. if containerLen == 0 {
  21248. dd.ReadMapEnd()
  21249. return v, changed
  21250. }
  21251. var mk uint8
  21252. var mv uint8
  21253. hasLen := containerLen > 0
  21254. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21255. if esep {
  21256. dd.ReadMapElemKey()
  21257. }
  21258. mk = uint8(dd.DecodeUint(8))
  21259. if esep {
  21260. dd.ReadMapElemValue()
  21261. }
  21262. if dd.TryDecodeAsNil() {
  21263. if d.h.DeleteOnNilMapValue {
  21264. delete(v, mk)
  21265. } else {
  21266. v[mk] = 0
  21267. }
  21268. continue
  21269. }
  21270. mv = uint8(dd.DecodeUint(8))
  21271. if v != nil {
  21272. v[mk] = mv
  21273. }
  21274. }
  21275. dd.ReadMapEnd()
  21276. return v, changed
  21277. }
  21278. func (d *Decoder) fastpathDecMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  21279. if rv.Kind() == reflect.Ptr {
  21280. vp := rv2i(rv).(*map[uint8]uint16)
  21281. if v, changed := fastpathTV.DecMapUint8Uint16V(*vp, true, d); changed {
  21282. *vp = v
  21283. }
  21284. return
  21285. }
  21286. fastpathTV.DecMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), false, d)
  21287. }
  21288. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, d *Decoder) {
  21289. if v, changed := f.DecMapUint8Uint16V(*vp, true, d); changed {
  21290. *vp = v
  21291. }
  21292. }
  21293. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, canChange bool,
  21294. d *Decoder) (_ map[uint8]uint16, changed bool) {
  21295. dd, esep := d.d, d.hh.hasElemSeparators()
  21296. containerLen := dd.ReadMapStart()
  21297. if canChange && v == nil {
  21298. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  21299. v = make(map[uint8]uint16, xlen)
  21300. changed = true
  21301. }
  21302. if containerLen == 0 {
  21303. dd.ReadMapEnd()
  21304. return v, changed
  21305. }
  21306. var mk uint8
  21307. var mv uint16
  21308. hasLen := containerLen > 0
  21309. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21310. if esep {
  21311. dd.ReadMapElemKey()
  21312. }
  21313. mk = uint8(dd.DecodeUint(8))
  21314. if esep {
  21315. dd.ReadMapElemValue()
  21316. }
  21317. if dd.TryDecodeAsNil() {
  21318. if d.h.DeleteOnNilMapValue {
  21319. delete(v, mk)
  21320. } else {
  21321. v[mk] = 0
  21322. }
  21323. continue
  21324. }
  21325. mv = uint16(dd.DecodeUint(16))
  21326. if v != nil {
  21327. v[mk] = mv
  21328. }
  21329. }
  21330. dd.ReadMapEnd()
  21331. return v, changed
  21332. }
  21333. func (d *Decoder) fastpathDecMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  21334. if rv.Kind() == reflect.Ptr {
  21335. vp := rv2i(rv).(*map[uint8]uint32)
  21336. if v, changed := fastpathTV.DecMapUint8Uint32V(*vp, true, d); changed {
  21337. *vp = v
  21338. }
  21339. return
  21340. }
  21341. fastpathTV.DecMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), false, d)
  21342. }
  21343. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, d *Decoder) {
  21344. if v, changed := f.DecMapUint8Uint32V(*vp, true, d); changed {
  21345. *vp = v
  21346. }
  21347. }
  21348. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, canChange bool,
  21349. d *Decoder) (_ map[uint8]uint32, changed bool) {
  21350. dd, esep := d.d, d.hh.hasElemSeparators()
  21351. containerLen := dd.ReadMapStart()
  21352. if canChange && v == nil {
  21353. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21354. v = make(map[uint8]uint32, xlen)
  21355. changed = true
  21356. }
  21357. if containerLen == 0 {
  21358. dd.ReadMapEnd()
  21359. return v, changed
  21360. }
  21361. var mk uint8
  21362. var mv uint32
  21363. hasLen := containerLen > 0
  21364. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21365. if esep {
  21366. dd.ReadMapElemKey()
  21367. }
  21368. mk = uint8(dd.DecodeUint(8))
  21369. if esep {
  21370. dd.ReadMapElemValue()
  21371. }
  21372. if dd.TryDecodeAsNil() {
  21373. if d.h.DeleteOnNilMapValue {
  21374. delete(v, mk)
  21375. } else {
  21376. v[mk] = 0
  21377. }
  21378. continue
  21379. }
  21380. mv = uint32(dd.DecodeUint(32))
  21381. if v != nil {
  21382. v[mk] = mv
  21383. }
  21384. }
  21385. dd.ReadMapEnd()
  21386. return v, changed
  21387. }
  21388. func (d *Decoder) fastpathDecMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  21389. if rv.Kind() == reflect.Ptr {
  21390. vp := rv2i(rv).(*map[uint8]uint64)
  21391. if v, changed := fastpathTV.DecMapUint8Uint64V(*vp, true, d); changed {
  21392. *vp = v
  21393. }
  21394. return
  21395. }
  21396. fastpathTV.DecMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), false, d)
  21397. }
  21398. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, d *Decoder) {
  21399. if v, changed := f.DecMapUint8Uint64V(*vp, true, d); changed {
  21400. *vp = v
  21401. }
  21402. }
  21403. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, canChange bool,
  21404. d *Decoder) (_ map[uint8]uint64, changed bool) {
  21405. dd, esep := d.d, d.hh.hasElemSeparators()
  21406. containerLen := dd.ReadMapStart()
  21407. if canChange && v == nil {
  21408. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21409. v = make(map[uint8]uint64, xlen)
  21410. changed = true
  21411. }
  21412. if containerLen == 0 {
  21413. dd.ReadMapEnd()
  21414. return v, changed
  21415. }
  21416. var mk uint8
  21417. var mv uint64
  21418. hasLen := containerLen > 0
  21419. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21420. if esep {
  21421. dd.ReadMapElemKey()
  21422. }
  21423. mk = uint8(dd.DecodeUint(8))
  21424. if esep {
  21425. dd.ReadMapElemValue()
  21426. }
  21427. if dd.TryDecodeAsNil() {
  21428. if d.h.DeleteOnNilMapValue {
  21429. delete(v, mk)
  21430. } else {
  21431. v[mk] = 0
  21432. }
  21433. continue
  21434. }
  21435. mv = dd.DecodeUint(64)
  21436. if v != nil {
  21437. v[mk] = mv
  21438. }
  21439. }
  21440. dd.ReadMapEnd()
  21441. return v, changed
  21442. }
  21443. func (d *Decoder) fastpathDecMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  21444. if rv.Kind() == reflect.Ptr {
  21445. vp := rv2i(rv).(*map[uint8]uintptr)
  21446. if v, changed := fastpathTV.DecMapUint8UintptrV(*vp, true, d); changed {
  21447. *vp = v
  21448. }
  21449. return
  21450. }
  21451. fastpathTV.DecMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), false, d)
  21452. }
  21453. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, d *Decoder) {
  21454. if v, changed := f.DecMapUint8UintptrV(*vp, true, d); changed {
  21455. *vp = v
  21456. }
  21457. }
  21458. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, canChange bool,
  21459. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  21460. dd, esep := d.d, d.hh.hasElemSeparators()
  21461. containerLen := dd.ReadMapStart()
  21462. if canChange && v == nil {
  21463. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21464. v = make(map[uint8]uintptr, xlen)
  21465. changed = true
  21466. }
  21467. if containerLen == 0 {
  21468. dd.ReadMapEnd()
  21469. return v, changed
  21470. }
  21471. var mk uint8
  21472. var mv uintptr
  21473. hasLen := containerLen > 0
  21474. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21475. if esep {
  21476. dd.ReadMapElemKey()
  21477. }
  21478. mk = uint8(dd.DecodeUint(8))
  21479. if esep {
  21480. dd.ReadMapElemValue()
  21481. }
  21482. if dd.TryDecodeAsNil() {
  21483. if d.h.DeleteOnNilMapValue {
  21484. delete(v, mk)
  21485. } else {
  21486. v[mk] = 0
  21487. }
  21488. continue
  21489. }
  21490. mv = uintptr(dd.DecodeUint(uintBitsize))
  21491. if v != nil {
  21492. v[mk] = mv
  21493. }
  21494. }
  21495. dd.ReadMapEnd()
  21496. return v, changed
  21497. }
  21498. func (d *Decoder) fastpathDecMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  21499. if rv.Kind() == reflect.Ptr {
  21500. vp := rv2i(rv).(*map[uint8]int)
  21501. if v, changed := fastpathTV.DecMapUint8IntV(*vp, true, d); changed {
  21502. *vp = v
  21503. }
  21504. return
  21505. }
  21506. fastpathTV.DecMapUint8IntV(rv2i(rv).(map[uint8]int), false, d)
  21507. }
  21508. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, d *Decoder) {
  21509. if v, changed := f.DecMapUint8IntV(*vp, true, d); changed {
  21510. *vp = v
  21511. }
  21512. }
  21513. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, canChange bool,
  21514. d *Decoder) (_ map[uint8]int, changed bool) {
  21515. dd, esep := d.d, d.hh.hasElemSeparators()
  21516. containerLen := dd.ReadMapStart()
  21517. if canChange && v == nil {
  21518. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21519. v = make(map[uint8]int, xlen)
  21520. changed = true
  21521. }
  21522. if containerLen == 0 {
  21523. dd.ReadMapEnd()
  21524. return v, changed
  21525. }
  21526. var mk uint8
  21527. var mv int
  21528. hasLen := containerLen > 0
  21529. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21530. if esep {
  21531. dd.ReadMapElemKey()
  21532. }
  21533. mk = uint8(dd.DecodeUint(8))
  21534. if esep {
  21535. dd.ReadMapElemValue()
  21536. }
  21537. if dd.TryDecodeAsNil() {
  21538. if d.h.DeleteOnNilMapValue {
  21539. delete(v, mk)
  21540. } else {
  21541. v[mk] = 0
  21542. }
  21543. continue
  21544. }
  21545. mv = int(dd.DecodeInt(intBitsize))
  21546. if v != nil {
  21547. v[mk] = mv
  21548. }
  21549. }
  21550. dd.ReadMapEnd()
  21551. return v, changed
  21552. }
  21553. func (d *Decoder) fastpathDecMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  21554. if rv.Kind() == reflect.Ptr {
  21555. vp := rv2i(rv).(*map[uint8]int8)
  21556. if v, changed := fastpathTV.DecMapUint8Int8V(*vp, true, d); changed {
  21557. *vp = v
  21558. }
  21559. return
  21560. }
  21561. fastpathTV.DecMapUint8Int8V(rv2i(rv).(map[uint8]int8), false, d)
  21562. }
  21563. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, d *Decoder) {
  21564. if v, changed := f.DecMapUint8Int8V(*vp, true, d); changed {
  21565. *vp = v
  21566. }
  21567. }
  21568. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, canChange bool,
  21569. d *Decoder) (_ map[uint8]int8, changed bool) {
  21570. dd, esep := d.d, d.hh.hasElemSeparators()
  21571. containerLen := dd.ReadMapStart()
  21572. if canChange && v == nil {
  21573. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  21574. v = make(map[uint8]int8, xlen)
  21575. changed = true
  21576. }
  21577. if containerLen == 0 {
  21578. dd.ReadMapEnd()
  21579. return v, changed
  21580. }
  21581. var mk uint8
  21582. var mv int8
  21583. hasLen := containerLen > 0
  21584. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21585. if esep {
  21586. dd.ReadMapElemKey()
  21587. }
  21588. mk = uint8(dd.DecodeUint(8))
  21589. if esep {
  21590. dd.ReadMapElemValue()
  21591. }
  21592. if dd.TryDecodeAsNil() {
  21593. if d.h.DeleteOnNilMapValue {
  21594. delete(v, mk)
  21595. } else {
  21596. v[mk] = 0
  21597. }
  21598. continue
  21599. }
  21600. mv = int8(dd.DecodeInt(8))
  21601. if v != nil {
  21602. v[mk] = mv
  21603. }
  21604. }
  21605. dd.ReadMapEnd()
  21606. return v, changed
  21607. }
  21608. func (d *Decoder) fastpathDecMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  21609. if rv.Kind() == reflect.Ptr {
  21610. vp := rv2i(rv).(*map[uint8]int16)
  21611. if v, changed := fastpathTV.DecMapUint8Int16V(*vp, true, d); changed {
  21612. *vp = v
  21613. }
  21614. return
  21615. }
  21616. fastpathTV.DecMapUint8Int16V(rv2i(rv).(map[uint8]int16), false, d)
  21617. }
  21618. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, d *Decoder) {
  21619. if v, changed := f.DecMapUint8Int16V(*vp, true, d); changed {
  21620. *vp = v
  21621. }
  21622. }
  21623. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, canChange bool,
  21624. d *Decoder) (_ map[uint8]int16, changed bool) {
  21625. dd, esep := d.d, d.hh.hasElemSeparators()
  21626. containerLen := dd.ReadMapStart()
  21627. if canChange && v == nil {
  21628. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  21629. v = make(map[uint8]int16, xlen)
  21630. changed = true
  21631. }
  21632. if containerLen == 0 {
  21633. dd.ReadMapEnd()
  21634. return v, changed
  21635. }
  21636. var mk uint8
  21637. var mv int16
  21638. hasLen := containerLen > 0
  21639. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21640. if esep {
  21641. dd.ReadMapElemKey()
  21642. }
  21643. mk = uint8(dd.DecodeUint(8))
  21644. if esep {
  21645. dd.ReadMapElemValue()
  21646. }
  21647. if dd.TryDecodeAsNil() {
  21648. if d.h.DeleteOnNilMapValue {
  21649. delete(v, mk)
  21650. } else {
  21651. v[mk] = 0
  21652. }
  21653. continue
  21654. }
  21655. mv = int16(dd.DecodeInt(16))
  21656. if v != nil {
  21657. v[mk] = mv
  21658. }
  21659. }
  21660. dd.ReadMapEnd()
  21661. return v, changed
  21662. }
  21663. func (d *Decoder) fastpathDecMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  21664. if rv.Kind() == reflect.Ptr {
  21665. vp := rv2i(rv).(*map[uint8]int32)
  21666. if v, changed := fastpathTV.DecMapUint8Int32V(*vp, true, d); changed {
  21667. *vp = v
  21668. }
  21669. return
  21670. }
  21671. fastpathTV.DecMapUint8Int32V(rv2i(rv).(map[uint8]int32), false, d)
  21672. }
  21673. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, d *Decoder) {
  21674. if v, changed := f.DecMapUint8Int32V(*vp, true, d); changed {
  21675. *vp = v
  21676. }
  21677. }
  21678. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, canChange bool,
  21679. d *Decoder) (_ map[uint8]int32, changed bool) {
  21680. dd, esep := d.d, d.hh.hasElemSeparators()
  21681. containerLen := dd.ReadMapStart()
  21682. if canChange && v == nil {
  21683. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21684. v = make(map[uint8]int32, xlen)
  21685. changed = true
  21686. }
  21687. if containerLen == 0 {
  21688. dd.ReadMapEnd()
  21689. return v, changed
  21690. }
  21691. var mk uint8
  21692. var mv int32
  21693. hasLen := containerLen > 0
  21694. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21695. if esep {
  21696. dd.ReadMapElemKey()
  21697. }
  21698. mk = uint8(dd.DecodeUint(8))
  21699. if esep {
  21700. dd.ReadMapElemValue()
  21701. }
  21702. if dd.TryDecodeAsNil() {
  21703. if d.h.DeleteOnNilMapValue {
  21704. delete(v, mk)
  21705. } else {
  21706. v[mk] = 0
  21707. }
  21708. continue
  21709. }
  21710. mv = int32(dd.DecodeInt(32))
  21711. if v != nil {
  21712. v[mk] = mv
  21713. }
  21714. }
  21715. dd.ReadMapEnd()
  21716. return v, changed
  21717. }
  21718. func (d *Decoder) fastpathDecMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  21719. if rv.Kind() == reflect.Ptr {
  21720. vp := rv2i(rv).(*map[uint8]int64)
  21721. if v, changed := fastpathTV.DecMapUint8Int64V(*vp, true, d); changed {
  21722. *vp = v
  21723. }
  21724. return
  21725. }
  21726. fastpathTV.DecMapUint8Int64V(rv2i(rv).(map[uint8]int64), false, d)
  21727. }
  21728. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, d *Decoder) {
  21729. if v, changed := f.DecMapUint8Int64V(*vp, true, d); changed {
  21730. *vp = v
  21731. }
  21732. }
  21733. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, canChange bool,
  21734. d *Decoder) (_ map[uint8]int64, changed bool) {
  21735. dd, esep := d.d, d.hh.hasElemSeparators()
  21736. containerLen := dd.ReadMapStart()
  21737. if canChange && v == nil {
  21738. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21739. v = make(map[uint8]int64, xlen)
  21740. changed = true
  21741. }
  21742. if containerLen == 0 {
  21743. dd.ReadMapEnd()
  21744. return v, changed
  21745. }
  21746. var mk uint8
  21747. var mv int64
  21748. hasLen := containerLen > 0
  21749. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21750. if esep {
  21751. dd.ReadMapElemKey()
  21752. }
  21753. mk = uint8(dd.DecodeUint(8))
  21754. if esep {
  21755. dd.ReadMapElemValue()
  21756. }
  21757. if dd.TryDecodeAsNil() {
  21758. if d.h.DeleteOnNilMapValue {
  21759. delete(v, mk)
  21760. } else {
  21761. v[mk] = 0
  21762. }
  21763. continue
  21764. }
  21765. mv = dd.DecodeInt(64)
  21766. if v != nil {
  21767. v[mk] = mv
  21768. }
  21769. }
  21770. dd.ReadMapEnd()
  21771. return v, changed
  21772. }
  21773. func (d *Decoder) fastpathDecMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  21774. if rv.Kind() == reflect.Ptr {
  21775. vp := rv2i(rv).(*map[uint8]float32)
  21776. if v, changed := fastpathTV.DecMapUint8Float32V(*vp, true, d); changed {
  21777. *vp = v
  21778. }
  21779. return
  21780. }
  21781. fastpathTV.DecMapUint8Float32V(rv2i(rv).(map[uint8]float32), false, d)
  21782. }
  21783. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, d *Decoder) {
  21784. if v, changed := f.DecMapUint8Float32V(*vp, true, d); changed {
  21785. *vp = v
  21786. }
  21787. }
  21788. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, canChange bool,
  21789. d *Decoder) (_ map[uint8]float32, changed bool) {
  21790. dd, esep := d.d, d.hh.hasElemSeparators()
  21791. containerLen := dd.ReadMapStart()
  21792. if canChange && v == nil {
  21793. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21794. v = make(map[uint8]float32, xlen)
  21795. changed = true
  21796. }
  21797. if containerLen == 0 {
  21798. dd.ReadMapEnd()
  21799. return v, changed
  21800. }
  21801. var mk uint8
  21802. var mv float32
  21803. hasLen := containerLen > 0
  21804. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21805. if esep {
  21806. dd.ReadMapElemKey()
  21807. }
  21808. mk = uint8(dd.DecodeUint(8))
  21809. if esep {
  21810. dd.ReadMapElemValue()
  21811. }
  21812. if dd.TryDecodeAsNil() {
  21813. if d.h.DeleteOnNilMapValue {
  21814. delete(v, mk)
  21815. } else {
  21816. v[mk] = 0
  21817. }
  21818. continue
  21819. }
  21820. mv = float32(dd.DecodeFloat(true))
  21821. if v != nil {
  21822. v[mk] = mv
  21823. }
  21824. }
  21825. dd.ReadMapEnd()
  21826. return v, changed
  21827. }
  21828. func (d *Decoder) fastpathDecMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  21829. if rv.Kind() == reflect.Ptr {
  21830. vp := rv2i(rv).(*map[uint8]float64)
  21831. if v, changed := fastpathTV.DecMapUint8Float64V(*vp, true, d); changed {
  21832. *vp = v
  21833. }
  21834. return
  21835. }
  21836. fastpathTV.DecMapUint8Float64V(rv2i(rv).(map[uint8]float64), false, d)
  21837. }
  21838. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, d *Decoder) {
  21839. if v, changed := f.DecMapUint8Float64V(*vp, true, d); changed {
  21840. *vp = v
  21841. }
  21842. }
  21843. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, canChange bool,
  21844. d *Decoder) (_ map[uint8]float64, changed bool) {
  21845. dd, esep := d.d, d.hh.hasElemSeparators()
  21846. containerLen := dd.ReadMapStart()
  21847. if canChange && v == nil {
  21848. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21849. v = make(map[uint8]float64, xlen)
  21850. changed = true
  21851. }
  21852. if containerLen == 0 {
  21853. dd.ReadMapEnd()
  21854. return v, changed
  21855. }
  21856. var mk uint8
  21857. var mv float64
  21858. hasLen := containerLen > 0
  21859. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21860. if esep {
  21861. dd.ReadMapElemKey()
  21862. }
  21863. mk = uint8(dd.DecodeUint(8))
  21864. if esep {
  21865. dd.ReadMapElemValue()
  21866. }
  21867. if dd.TryDecodeAsNil() {
  21868. if d.h.DeleteOnNilMapValue {
  21869. delete(v, mk)
  21870. } else {
  21871. v[mk] = 0
  21872. }
  21873. continue
  21874. }
  21875. mv = dd.DecodeFloat(false)
  21876. if v != nil {
  21877. v[mk] = mv
  21878. }
  21879. }
  21880. dd.ReadMapEnd()
  21881. return v, changed
  21882. }
  21883. func (d *Decoder) fastpathDecMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  21884. if rv.Kind() == reflect.Ptr {
  21885. vp := rv2i(rv).(*map[uint8]bool)
  21886. if v, changed := fastpathTV.DecMapUint8BoolV(*vp, true, d); changed {
  21887. *vp = v
  21888. }
  21889. return
  21890. }
  21891. fastpathTV.DecMapUint8BoolV(rv2i(rv).(map[uint8]bool), false, d)
  21892. }
  21893. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, d *Decoder) {
  21894. if v, changed := f.DecMapUint8BoolV(*vp, true, d); changed {
  21895. *vp = v
  21896. }
  21897. }
  21898. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, canChange bool,
  21899. d *Decoder) (_ map[uint8]bool, changed bool) {
  21900. dd, esep := d.d, d.hh.hasElemSeparators()
  21901. containerLen := dd.ReadMapStart()
  21902. if canChange && v == nil {
  21903. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  21904. v = make(map[uint8]bool, xlen)
  21905. changed = true
  21906. }
  21907. if containerLen == 0 {
  21908. dd.ReadMapEnd()
  21909. return v, changed
  21910. }
  21911. var mk uint8
  21912. var mv bool
  21913. hasLen := containerLen > 0
  21914. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21915. if esep {
  21916. dd.ReadMapElemKey()
  21917. }
  21918. mk = uint8(dd.DecodeUint(8))
  21919. if esep {
  21920. dd.ReadMapElemValue()
  21921. }
  21922. if dd.TryDecodeAsNil() {
  21923. if d.h.DeleteOnNilMapValue {
  21924. delete(v, mk)
  21925. } else {
  21926. v[mk] = false
  21927. }
  21928. continue
  21929. }
  21930. mv = dd.DecodeBool()
  21931. if v != nil {
  21932. v[mk] = mv
  21933. }
  21934. }
  21935. dd.ReadMapEnd()
  21936. return v, changed
  21937. }
  21938. func (d *Decoder) fastpathDecMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  21939. if rv.Kind() == reflect.Ptr {
  21940. vp := rv2i(rv).(*map[uint16]interface{})
  21941. if v, changed := fastpathTV.DecMapUint16IntfV(*vp, true, d); changed {
  21942. *vp = v
  21943. }
  21944. return
  21945. }
  21946. fastpathTV.DecMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), false, d)
  21947. }
  21948. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, d *Decoder) {
  21949. if v, changed := f.DecMapUint16IntfV(*vp, true, d); changed {
  21950. *vp = v
  21951. }
  21952. }
  21953. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, canChange bool,
  21954. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  21955. dd, esep := d.d, d.hh.hasElemSeparators()
  21956. containerLen := dd.ReadMapStart()
  21957. if canChange && v == nil {
  21958. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  21959. v = make(map[uint16]interface{}, xlen)
  21960. changed = true
  21961. }
  21962. if containerLen == 0 {
  21963. dd.ReadMapEnd()
  21964. return v, changed
  21965. }
  21966. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  21967. var mk uint16
  21968. var mv interface{}
  21969. hasLen := containerLen > 0
  21970. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21971. if esep {
  21972. dd.ReadMapElemKey()
  21973. }
  21974. mk = uint16(dd.DecodeUint(16))
  21975. if esep {
  21976. dd.ReadMapElemValue()
  21977. }
  21978. if dd.TryDecodeAsNil() {
  21979. if d.h.DeleteOnNilMapValue {
  21980. delete(v, mk)
  21981. } else {
  21982. v[mk] = nil
  21983. }
  21984. continue
  21985. }
  21986. if mapGet {
  21987. mv = v[mk]
  21988. } else {
  21989. mv = nil
  21990. }
  21991. d.decode(&mv)
  21992. if v != nil {
  21993. v[mk] = mv
  21994. }
  21995. }
  21996. dd.ReadMapEnd()
  21997. return v, changed
  21998. }
  21999. func (d *Decoder) fastpathDecMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  22000. if rv.Kind() == reflect.Ptr {
  22001. vp := rv2i(rv).(*map[uint16]string)
  22002. if v, changed := fastpathTV.DecMapUint16StringV(*vp, true, d); changed {
  22003. *vp = v
  22004. }
  22005. return
  22006. }
  22007. fastpathTV.DecMapUint16StringV(rv2i(rv).(map[uint16]string), false, d)
  22008. }
  22009. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, d *Decoder) {
  22010. if v, changed := f.DecMapUint16StringV(*vp, true, d); changed {
  22011. *vp = v
  22012. }
  22013. }
  22014. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, canChange bool,
  22015. d *Decoder) (_ map[uint16]string, changed bool) {
  22016. dd, esep := d.d, d.hh.hasElemSeparators()
  22017. containerLen := dd.ReadMapStart()
  22018. if canChange && v == nil {
  22019. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  22020. v = make(map[uint16]string, xlen)
  22021. changed = true
  22022. }
  22023. if containerLen == 0 {
  22024. dd.ReadMapEnd()
  22025. return v, changed
  22026. }
  22027. var mk uint16
  22028. var mv string
  22029. hasLen := containerLen > 0
  22030. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22031. if esep {
  22032. dd.ReadMapElemKey()
  22033. }
  22034. mk = uint16(dd.DecodeUint(16))
  22035. if esep {
  22036. dd.ReadMapElemValue()
  22037. }
  22038. if dd.TryDecodeAsNil() {
  22039. if d.h.DeleteOnNilMapValue {
  22040. delete(v, mk)
  22041. } else {
  22042. v[mk] = ""
  22043. }
  22044. continue
  22045. }
  22046. mv = dd.DecodeString()
  22047. if v != nil {
  22048. v[mk] = mv
  22049. }
  22050. }
  22051. dd.ReadMapEnd()
  22052. return v, changed
  22053. }
  22054. func (d *Decoder) fastpathDecMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  22055. if rv.Kind() == reflect.Ptr {
  22056. vp := rv2i(rv).(*map[uint16]uint)
  22057. if v, changed := fastpathTV.DecMapUint16UintV(*vp, true, d); changed {
  22058. *vp = v
  22059. }
  22060. return
  22061. }
  22062. fastpathTV.DecMapUint16UintV(rv2i(rv).(map[uint16]uint), false, d)
  22063. }
  22064. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, d *Decoder) {
  22065. if v, changed := f.DecMapUint16UintV(*vp, true, d); changed {
  22066. *vp = v
  22067. }
  22068. }
  22069. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, canChange bool,
  22070. d *Decoder) (_ map[uint16]uint, changed bool) {
  22071. dd, esep := d.d, d.hh.hasElemSeparators()
  22072. containerLen := dd.ReadMapStart()
  22073. if canChange && v == nil {
  22074. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22075. v = make(map[uint16]uint, xlen)
  22076. changed = true
  22077. }
  22078. if containerLen == 0 {
  22079. dd.ReadMapEnd()
  22080. return v, changed
  22081. }
  22082. var mk uint16
  22083. var mv uint
  22084. hasLen := containerLen > 0
  22085. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22086. if esep {
  22087. dd.ReadMapElemKey()
  22088. }
  22089. mk = uint16(dd.DecodeUint(16))
  22090. if esep {
  22091. dd.ReadMapElemValue()
  22092. }
  22093. if dd.TryDecodeAsNil() {
  22094. if d.h.DeleteOnNilMapValue {
  22095. delete(v, mk)
  22096. } else {
  22097. v[mk] = 0
  22098. }
  22099. continue
  22100. }
  22101. mv = uint(dd.DecodeUint(uintBitsize))
  22102. if v != nil {
  22103. v[mk] = mv
  22104. }
  22105. }
  22106. dd.ReadMapEnd()
  22107. return v, changed
  22108. }
  22109. func (d *Decoder) fastpathDecMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  22110. if rv.Kind() == reflect.Ptr {
  22111. vp := rv2i(rv).(*map[uint16]uint8)
  22112. if v, changed := fastpathTV.DecMapUint16Uint8V(*vp, true, d); changed {
  22113. *vp = v
  22114. }
  22115. return
  22116. }
  22117. fastpathTV.DecMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), false, d)
  22118. }
  22119. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, d *Decoder) {
  22120. if v, changed := f.DecMapUint16Uint8V(*vp, true, d); changed {
  22121. *vp = v
  22122. }
  22123. }
  22124. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, canChange bool,
  22125. d *Decoder) (_ map[uint16]uint8, changed bool) {
  22126. dd, esep := d.d, d.hh.hasElemSeparators()
  22127. containerLen := dd.ReadMapStart()
  22128. if canChange && v == nil {
  22129. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  22130. v = make(map[uint16]uint8, xlen)
  22131. changed = true
  22132. }
  22133. if containerLen == 0 {
  22134. dd.ReadMapEnd()
  22135. return v, changed
  22136. }
  22137. var mk uint16
  22138. var mv uint8
  22139. hasLen := containerLen > 0
  22140. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22141. if esep {
  22142. dd.ReadMapElemKey()
  22143. }
  22144. mk = uint16(dd.DecodeUint(16))
  22145. if esep {
  22146. dd.ReadMapElemValue()
  22147. }
  22148. if dd.TryDecodeAsNil() {
  22149. if d.h.DeleteOnNilMapValue {
  22150. delete(v, mk)
  22151. } else {
  22152. v[mk] = 0
  22153. }
  22154. continue
  22155. }
  22156. mv = uint8(dd.DecodeUint(8))
  22157. if v != nil {
  22158. v[mk] = mv
  22159. }
  22160. }
  22161. dd.ReadMapEnd()
  22162. return v, changed
  22163. }
  22164. func (d *Decoder) fastpathDecMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  22165. if rv.Kind() == reflect.Ptr {
  22166. vp := rv2i(rv).(*map[uint16]uint16)
  22167. if v, changed := fastpathTV.DecMapUint16Uint16V(*vp, true, d); changed {
  22168. *vp = v
  22169. }
  22170. return
  22171. }
  22172. fastpathTV.DecMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), false, d)
  22173. }
  22174. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, d *Decoder) {
  22175. if v, changed := f.DecMapUint16Uint16V(*vp, true, d); changed {
  22176. *vp = v
  22177. }
  22178. }
  22179. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, canChange bool,
  22180. d *Decoder) (_ map[uint16]uint16, changed bool) {
  22181. dd, esep := d.d, d.hh.hasElemSeparators()
  22182. containerLen := dd.ReadMapStart()
  22183. if canChange && v == nil {
  22184. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  22185. v = make(map[uint16]uint16, xlen)
  22186. changed = true
  22187. }
  22188. if containerLen == 0 {
  22189. dd.ReadMapEnd()
  22190. return v, changed
  22191. }
  22192. var mk uint16
  22193. var mv uint16
  22194. hasLen := containerLen > 0
  22195. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22196. if esep {
  22197. dd.ReadMapElemKey()
  22198. }
  22199. mk = uint16(dd.DecodeUint(16))
  22200. if esep {
  22201. dd.ReadMapElemValue()
  22202. }
  22203. if dd.TryDecodeAsNil() {
  22204. if d.h.DeleteOnNilMapValue {
  22205. delete(v, mk)
  22206. } else {
  22207. v[mk] = 0
  22208. }
  22209. continue
  22210. }
  22211. mv = uint16(dd.DecodeUint(16))
  22212. if v != nil {
  22213. v[mk] = mv
  22214. }
  22215. }
  22216. dd.ReadMapEnd()
  22217. return v, changed
  22218. }
  22219. func (d *Decoder) fastpathDecMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  22220. if rv.Kind() == reflect.Ptr {
  22221. vp := rv2i(rv).(*map[uint16]uint32)
  22222. if v, changed := fastpathTV.DecMapUint16Uint32V(*vp, true, d); changed {
  22223. *vp = v
  22224. }
  22225. return
  22226. }
  22227. fastpathTV.DecMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), false, d)
  22228. }
  22229. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, d *Decoder) {
  22230. if v, changed := f.DecMapUint16Uint32V(*vp, true, d); changed {
  22231. *vp = v
  22232. }
  22233. }
  22234. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, canChange bool,
  22235. d *Decoder) (_ map[uint16]uint32, changed bool) {
  22236. dd, esep := d.d, d.hh.hasElemSeparators()
  22237. containerLen := dd.ReadMapStart()
  22238. if canChange && v == nil {
  22239. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  22240. v = make(map[uint16]uint32, xlen)
  22241. changed = true
  22242. }
  22243. if containerLen == 0 {
  22244. dd.ReadMapEnd()
  22245. return v, changed
  22246. }
  22247. var mk uint16
  22248. var mv uint32
  22249. hasLen := containerLen > 0
  22250. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22251. if esep {
  22252. dd.ReadMapElemKey()
  22253. }
  22254. mk = uint16(dd.DecodeUint(16))
  22255. if esep {
  22256. dd.ReadMapElemValue()
  22257. }
  22258. if dd.TryDecodeAsNil() {
  22259. if d.h.DeleteOnNilMapValue {
  22260. delete(v, mk)
  22261. } else {
  22262. v[mk] = 0
  22263. }
  22264. continue
  22265. }
  22266. mv = uint32(dd.DecodeUint(32))
  22267. if v != nil {
  22268. v[mk] = mv
  22269. }
  22270. }
  22271. dd.ReadMapEnd()
  22272. return v, changed
  22273. }
  22274. func (d *Decoder) fastpathDecMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  22275. if rv.Kind() == reflect.Ptr {
  22276. vp := rv2i(rv).(*map[uint16]uint64)
  22277. if v, changed := fastpathTV.DecMapUint16Uint64V(*vp, true, d); changed {
  22278. *vp = v
  22279. }
  22280. return
  22281. }
  22282. fastpathTV.DecMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), false, d)
  22283. }
  22284. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, d *Decoder) {
  22285. if v, changed := f.DecMapUint16Uint64V(*vp, true, d); changed {
  22286. *vp = v
  22287. }
  22288. }
  22289. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, canChange bool,
  22290. d *Decoder) (_ map[uint16]uint64, changed bool) {
  22291. dd, esep := d.d, d.hh.hasElemSeparators()
  22292. containerLen := dd.ReadMapStart()
  22293. if canChange && v == nil {
  22294. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22295. v = make(map[uint16]uint64, xlen)
  22296. changed = true
  22297. }
  22298. if containerLen == 0 {
  22299. dd.ReadMapEnd()
  22300. return v, changed
  22301. }
  22302. var mk uint16
  22303. var mv uint64
  22304. hasLen := containerLen > 0
  22305. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22306. if esep {
  22307. dd.ReadMapElemKey()
  22308. }
  22309. mk = uint16(dd.DecodeUint(16))
  22310. if esep {
  22311. dd.ReadMapElemValue()
  22312. }
  22313. if dd.TryDecodeAsNil() {
  22314. if d.h.DeleteOnNilMapValue {
  22315. delete(v, mk)
  22316. } else {
  22317. v[mk] = 0
  22318. }
  22319. continue
  22320. }
  22321. mv = dd.DecodeUint(64)
  22322. if v != nil {
  22323. v[mk] = mv
  22324. }
  22325. }
  22326. dd.ReadMapEnd()
  22327. return v, changed
  22328. }
  22329. func (d *Decoder) fastpathDecMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  22330. if rv.Kind() == reflect.Ptr {
  22331. vp := rv2i(rv).(*map[uint16]uintptr)
  22332. if v, changed := fastpathTV.DecMapUint16UintptrV(*vp, true, d); changed {
  22333. *vp = v
  22334. }
  22335. return
  22336. }
  22337. fastpathTV.DecMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), false, d)
  22338. }
  22339. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, d *Decoder) {
  22340. if v, changed := f.DecMapUint16UintptrV(*vp, true, d); changed {
  22341. *vp = v
  22342. }
  22343. }
  22344. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, canChange bool,
  22345. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  22346. dd, esep := d.d, d.hh.hasElemSeparators()
  22347. containerLen := dd.ReadMapStart()
  22348. if canChange && v == nil {
  22349. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22350. v = make(map[uint16]uintptr, xlen)
  22351. changed = true
  22352. }
  22353. if containerLen == 0 {
  22354. dd.ReadMapEnd()
  22355. return v, changed
  22356. }
  22357. var mk uint16
  22358. var mv uintptr
  22359. hasLen := containerLen > 0
  22360. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22361. if esep {
  22362. dd.ReadMapElemKey()
  22363. }
  22364. mk = uint16(dd.DecodeUint(16))
  22365. if esep {
  22366. dd.ReadMapElemValue()
  22367. }
  22368. if dd.TryDecodeAsNil() {
  22369. if d.h.DeleteOnNilMapValue {
  22370. delete(v, mk)
  22371. } else {
  22372. v[mk] = 0
  22373. }
  22374. continue
  22375. }
  22376. mv = uintptr(dd.DecodeUint(uintBitsize))
  22377. if v != nil {
  22378. v[mk] = mv
  22379. }
  22380. }
  22381. dd.ReadMapEnd()
  22382. return v, changed
  22383. }
  22384. func (d *Decoder) fastpathDecMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  22385. if rv.Kind() == reflect.Ptr {
  22386. vp := rv2i(rv).(*map[uint16]int)
  22387. if v, changed := fastpathTV.DecMapUint16IntV(*vp, true, d); changed {
  22388. *vp = v
  22389. }
  22390. return
  22391. }
  22392. fastpathTV.DecMapUint16IntV(rv2i(rv).(map[uint16]int), false, d)
  22393. }
  22394. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, d *Decoder) {
  22395. if v, changed := f.DecMapUint16IntV(*vp, true, d); changed {
  22396. *vp = v
  22397. }
  22398. }
  22399. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, canChange bool,
  22400. d *Decoder) (_ map[uint16]int, changed bool) {
  22401. dd, esep := d.d, d.hh.hasElemSeparators()
  22402. containerLen := dd.ReadMapStart()
  22403. if canChange && v == nil {
  22404. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22405. v = make(map[uint16]int, xlen)
  22406. changed = true
  22407. }
  22408. if containerLen == 0 {
  22409. dd.ReadMapEnd()
  22410. return v, changed
  22411. }
  22412. var mk uint16
  22413. var mv int
  22414. hasLen := containerLen > 0
  22415. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22416. if esep {
  22417. dd.ReadMapElemKey()
  22418. }
  22419. mk = uint16(dd.DecodeUint(16))
  22420. if esep {
  22421. dd.ReadMapElemValue()
  22422. }
  22423. if dd.TryDecodeAsNil() {
  22424. if d.h.DeleteOnNilMapValue {
  22425. delete(v, mk)
  22426. } else {
  22427. v[mk] = 0
  22428. }
  22429. continue
  22430. }
  22431. mv = int(dd.DecodeInt(intBitsize))
  22432. if v != nil {
  22433. v[mk] = mv
  22434. }
  22435. }
  22436. dd.ReadMapEnd()
  22437. return v, changed
  22438. }
  22439. func (d *Decoder) fastpathDecMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  22440. if rv.Kind() == reflect.Ptr {
  22441. vp := rv2i(rv).(*map[uint16]int8)
  22442. if v, changed := fastpathTV.DecMapUint16Int8V(*vp, true, d); changed {
  22443. *vp = v
  22444. }
  22445. return
  22446. }
  22447. fastpathTV.DecMapUint16Int8V(rv2i(rv).(map[uint16]int8), false, d)
  22448. }
  22449. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, d *Decoder) {
  22450. if v, changed := f.DecMapUint16Int8V(*vp, true, d); changed {
  22451. *vp = v
  22452. }
  22453. }
  22454. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, canChange bool,
  22455. d *Decoder) (_ map[uint16]int8, changed bool) {
  22456. dd, esep := d.d, d.hh.hasElemSeparators()
  22457. containerLen := dd.ReadMapStart()
  22458. if canChange && v == nil {
  22459. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  22460. v = make(map[uint16]int8, xlen)
  22461. changed = true
  22462. }
  22463. if containerLen == 0 {
  22464. dd.ReadMapEnd()
  22465. return v, changed
  22466. }
  22467. var mk uint16
  22468. var mv int8
  22469. hasLen := containerLen > 0
  22470. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22471. if esep {
  22472. dd.ReadMapElemKey()
  22473. }
  22474. mk = uint16(dd.DecodeUint(16))
  22475. if esep {
  22476. dd.ReadMapElemValue()
  22477. }
  22478. if dd.TryDecodeAsNil() {
  22479. if d.h.DeleteOnNilMapValue {
  22480. delete(v, mk)
  22481. } else {
  22482. v[mk] = 0
  22483. }
  22484. continue
  22485. }
  22486. mv = int8(dd.DecodeInt(8))
  22487. if v != nil {
  22488. v[mk] = mv
  22489. }
  22490. }
  22491. dd.ReadMapEnd()
  22492. return v, changed
  22493. }
  22494. func (d *Decoder) fastpathDecMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  22495. if rv.Kind() == reflect.Ptr {
  22496. vp := rv2i(rv).(*map[uint16]int16)
  22497. if v, changed := fastpathTV.DecMapUint16Int16V(*vp, true, d); changed {
  22498. *vp = v
  22499. }
  22500. return
  22501. }
  22502. fastpathTV.DecMapUint16Int16V(rv2i(rv).(map[uint16]int16), false, d)
  22503. }
  22504. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, d *Decoder) {
  22505. if v, changed := f.DecMapUint16Int16V(*vp, true, d); changed {
  22506. *vp = v
  22507. }
  22508. }
  22509. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, canChange bool,
  22510. d *Decoder) (_ map[uint16]int16, changed bool) {
  22511. dd, esep := d.d, d.hh.hasElemSeparators()
  22512. containerLen := dd.ReadMapStart()
  22513. if canChange && v == nil {
  22514. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  22515. v = make(map[uint16]int16, xlen)
  22516. changed = true
  22517. }
  22518. if containerLen == 0 {
  22519. dd.ReadMapEnd()
  22520. return v, changed
  22521. }
  22522. var mk uint16
  22523. var mv int16
  22524. hasLen := containerLen > 0
  22525. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22526. if esep {
  22527. dd.ReadMapElemKey()
  22528. }
  22529. mk = uint16(dd.DecodeUint(16))
  22530. if esep {
  22531. dd.ReadMapElemValue()
  22532. }
  22533. if dd.TryDecodeAsNil() {
  22534. if d.h.DeleteOnNilMapValue {
  22535. delete(v, mk)
  22536. } else {
  22537. v[mk] = 0
  22538. }
  22539. continue
  22540. }
  22541. mv = int16(dd.DecodeInt(16))
  22542. if v != nil {
  22543. v[mk] = mv
  22544. }
  22545. }
  22546. dd.ReadMapEnd()
  22547. return v, changed
  22548. }
  22549. func (d *Decoder) fastpathDecMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  22550. if rv.Kind() == reflect.Ptr {
  22551. vp := rv2i(rv).(*map[uint16]int32)
  22552. if v, changed := fastpathTV.DecMapUint16Int32V(*vp, true, d); changed {
  22553. *vp = v
  22554. }
  22555. return
  22556. }
  22557. fastpathTV.DecMapUint16Int32V(rv2i(rv).(map[uint16]int32), false, d)
  22558. }
  22559. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, d *Decoder) {
  22560. if v, changed := f.DecMapUint16Int32V(*vp, true, d); changed {
  22561. *vp = v
  22562. }
  22563. }
  22564. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, canChange bool,
  22565. d *Decoder) (_ map[uint16]int32, changed bool) {
  22566. dd, esep := d.d, d.hh.hasElemSeparators()
  22567. containerLen := dd.ReadMapStart()
  22568. if canChange && v == nil {
  22569. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  22570. v = make(map[uint16]int32, xlen)
  22571. changed = true
  22572. }
  22573. if containerLen == 0 {
  22574. dd.ReadMapEnd()
  22575. return v, changed
  22576. }
  22577. var mk uint16
  22578. var mv int32
  22579. hasLen := containerLen > 0
  22580. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22581. if esep {
  22582. dd.ReadMapElemKey()
  22583. }
  22584. mk = uint16(dd.DecodeUint(16))
  22585. if esep {
  22586. dd.ReadMapElemValue()
  22587. }
  22588. if dd.TryDecodeAsNil() {
  22589. if d.h.DeleteOnNilMapValue {
  22590. delete(v, mk)
  22591. } else {
  22592. v[mk] = 0
  22593. }
  22594. continue
  22595. }
  22596. mv = int32(dd.DecodeInt(32))
  22597. if v != nil {
  22598. v[mk] = mv
  22599. }
  22600. }
  22601. dd.ReadMapEnd()
  22602. return v, changed
  22603. }
  22604. func (d *Decoder) fastpathDecMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  22605. if rv.Kind() == reflect.Ptr {
  22606. vp := rv2i(rv).(*map[uint16]int64)
  22607. if v, changed := fastpathTV.DecMapUint16Int64V(*vp, true, d); changed {
  22608. *vp = v
  22609. }
  22610. return
  22611. }
  22612. fastpathTV.DecMapUint16Int64V(rv2i(rv).(map[uint16]int64), false, d)
  22613. }
  22614. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, d *Decoder) {
  22615. if v, changed := f.DecMapUint16Int64V(*vp, true, d); changed {
  22616. *vp = v
  22617. }
  22618. }
  22619. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, canChange bool,
  22620. d *Decoder) (_ map[uint16]int64, changed bool) {
  22621. dd, esep := d.d, d.hh.hasElemSeparators()
  22622. containerLen := dd.ReadMapStart()
  22623. if canChange && v == nil {
  22624. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22625. v = make(map[uint16]int64, xlen)
  22626. changed = true
  22627. }
  22628. if containerLen == 0 {
  22629. dd.ReadMapEnd()
  22630. return v, changed
  22631. }
  22632. var mk uint16
  22633. var mv int64
  22634. hasLen := containerLen > 0
  22635. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22636. if esep {
  22637. dd.ReadMapElemKey()
  22638. }
  22639. mk = uint16(dd.DecodeUint(16))
  22640. if esep {
  22641. dd.ReadMapElemValue()
  22642. }
  22643. if dd.TryDecodeAsNil() {
  22644. if d.h.DeleteOnNilMapValue {
  22645. delete(v, mk)
  22646. } else {
  22647. v[mk] = 0
  22648. }
  22649. continue
  22650. }
  22651. mv = dd.DecodeInt(64)
  22652. if v != nil {
  22653. v[mk] = mv
  22654. }
  22655. }
  22656. dd.ReadMapEnd()
  22657. return v, changed
  22658. }
  22659. func (d *Decoder) fastpathDecMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  22660. if rv.Kind() == reflect.Ptr {
  22661. vp := rv2i(rv).(*map[uint16]float32)
  22662. if v, changed := fastpathTV.DecMapUint16Float32V(*vp, true, d); changed {
  22663. *vp = v
  22664. }
  22665. return
  22666. }
  22667. fastpathTV.DecMapUint16Float32V(rv2i(rv).(map[uint16]float32), false, d)
  22668. }
  22669. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, d *Decoder) {
  22670. if v, changed := f.DecMapUint16Float32V(*vp, true, d); changed {
  22671. *vp = v
  22672. }
  22673. }
  22674. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, canChange bool,
  22675. d *Decoder) (_ map[uint16]float32, changed bool) {
  22676. dd, esep := d.d, d.hh.hasElemSeparators()
  22677. containerLen := dd.ReadMapStart()
  22678. if canChange && v == nil {
  22679. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  22680. v = make(map[uint16]float32, xlen)
  22681. changed = true
  22682. }
  22683. if containerLen == 0 {
  22684. dd.ReadMapEnd()
  22685. return v, changed
  22686. }
  22687. var mk uint16
  22688. var mv float32
  22689. hasLen := containerLen > 0
  22690. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22691. if esep {
  22692. dd.ReadMapElemKey()
  22693. }
  22694. mk = uint16(dd.DecodeUint(16))
  22695. if esep {
  22696. dd.ReadMapElemValue()
  22697. }
  22698. if dd.TryDecodeAsNil() {
  22699. if d.h.DeleteOnNilMapValue {
  22700. delete(v, mk)
  22701. } else {
  22702. v[mk] = 0
  22703. }
  22704. continue
  22705. }
  22706. mv = float32(dd.DecodeFloat(true))
  22707. if v != nil {
  22708. v[mk] = mv
  22709. }
  22710. }
  22711. dd.ReadMapEnd()
  22712. return v, changed
  22713. }
  22714. func (d *Decoder) fastpathDecMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  22715. if rv.Kind() == reflect.Ptr {
  22716. vp := rv2i(rv).(*map[uint16]float64)
  22717. if v, changed := fastpathTV.DecMapUint16Float64V(*vp, true, d); changed {
  22718. *vp = v
  22719. }
  22720. return
  22721. }
  22722. fastpathTV.DecMapUint16Float64V(rv2i(rv).(map[uint16]float64), false, d)
  22723. }
  22724. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, d *Decoder) {
  22725. if v, changed := f.DecMapUint16Float64V(*vp, true, d); changed {
  22726. *vp = v
  22727. }
  22728. }
  22729. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, canChange bool,
  22730. d *Decoder) (_ map[uint16]float64, changed bool) {
  22731. dd, esep := d.d, d.hh.hasElemSeparators()
  22732. containerLen := dd.ReadMapStart()
  22733. if canChange && v == nil {
  22734. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22735. v = make(map[uint16]float64, xlen)
  22736. changed = true
  22737. }
  22738. if containerLen == 0 {
  22739. dd.ReadMapEnd()
  22740. return v, changed
  22741. }
  22742. var mk uint16
  22743. var mv float64
  22744. hasLen := containerLen > 0
  22745. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22746. if esep {
  22747. dd.ReadMapElemKey()
  22748. }
  22749. mk = uint16(dd.DecodeUint(16))
  22750. if esep {
  22751. dd.ReadMapElemValue()
  22752. }
  22753. if dd.TryDecodeAsNil() {
  22754. if d.h.DeleteOnNilMapValue {
  22755. delete(v, mk)
  22756. } else {
  22757. v[mk] = 0
  22758. }
  22759. continue
  22760. }
  22761. mv = dd.DecodeFloat(false)
  22762. if v != nil {
  22763. v[mk] = mv
  22764. }
  22765. }
  22766. dd.ReadMapEnd()
  22767. return v, changed
  22768. }
  22769. func (d *Decoder) fastpathDecMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  22770. if rv.Kind() == reflect.Ptr {
  22771. vp := rv2i(rv).(*map[uint16]bool)
  22772. if v, changed := fastpathTV.DecMapUint16BoolV(*vp, true, d); changed {
  22773. *vp = v
  22774. }
  22775. return
  22776. }
  22777. fastpathTV.DecMapUint16BoolV(rv2i(rv).(map[uint16]bool), false, d)
  22778. }
  22779. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, d *Decoder) {
  22780. if v, changed := f.DecMapUint16BoolV(*vp, true, d); changed {
  22781. *vp = v
  22782. }
  22783. }
  22784. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, canChange bool,
  22785. d *Decoder) (_ map[uint16]bool, changed bool) {
  22786. dd, esep := d.d, d.hh.hasElemSeparators()
  22787. containerLen := dd.ReadMapStart()
  22788. if canChange && v == nil {
  22789. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  22790. v = make(map[uint16]bool, xlen)
  22791. changed = true
  22792. }
  22793. if containerLen == 0 {
  22794. dd.ReadMapEnd()
  22795. return v, changed
  22796. }
  22797. var mk uint16
  22798. var mv bool
  22799. hasLen := containerLen > 0
  22800. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22801. if esep {
  22802. dd.ReadMapElemKey()
  22803. }
  22804. mk = uint16(dd.DecodeUint(16))
  22805. if esep {
  22806. dd.ReadMapElemValue()
  22807. }
  22808. if dd.TryDecodeAsNil() {
  22809. if d.h.DeleteOnNilMapValue {
  22810. delete(v, mk)
  22811. } else {
  22812. v[mk] = false
  22813. }
  22814. continue
  22815. }
  22816. mv = dd.DecodeBool()
  22817. if v != nil {
  22818. v[mk] = mv
  22819. }
  22820. }
  22821. dd.ReadMapEnd()
  22822. return v, changed
  22823. }
  22824. func (d *Decoder) fastpathDecMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  22825. if rv.Kind() == reflect.Ptr {
  22826. vp := rv2i(rv).(*map[uint32]interface{})
  22827. if v, changed := fastpathTV.DecMapUint32IntfV(*vp, true, d); changed {
  22828. *vp = v
  22829. }
  22830. return
  22831. }
  22832. fastpathTV.DecMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), false, d)
  22833. }
  22834. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, d *Decoder) {
  22835. if v, changed := f.DecMapUint32IntfV(*vp, true, d); changed {
  22836. *vp = v
  22837. }
  22838. }
  22839. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, canChange bool,
  22840. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  22841. dd, esep := d.d, d.hh.hasElemSeparators()
  22842. containerLen := dd.ReadMapStart()
  22843. if canChange && v == nil {
  22844. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  22845. v = make(map[uint32]interface{}, xlen)
  22846. changed = true
  22847. }
  22848. if containerLen == 0 {
  22849. dd.ReadMapEnd()
  22850. return v, changed
  22851. }
  22852. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  22853. var mk uint32
  22854. var mv interface{}
  22855. hasLen := containerLen > 0
  22856. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22857. if esep {
  22858. dd.ReadMapElemKey()
  22859. }
  22860. mk = uint32(dd.DecodeUint(32))
  22861. if esep {
  22862. dd.ReadMapElemValue()
  22863. }
  22864. if dd.TryDecodeAsNil() {
  22865. if d.h.DeleteOnNilMapValue {
  22866. delete(v, mk)
  22867. } else {
  22868. v[mk] = nil
  22869. }
  22870. continue
  22871. }
  22872. if mapGet {
  22873. mv = v[mk]
  22874. } else {
  22875. mv = nil
  22876. }
  22877. d.decode(&mv)
  22878. if v != nil {
  22879. v[mk] = mv
  22880. }
  22881. }
  22882. dd.ReadMapEnd()
  22883. return v, changed
  22884. }
  22885. func (d *Decoder) fastpathDecMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  22886. if rv.Kind() == reflect.Ptr {
  22887. vp := rv2i(rv).(*map[uint32]string)
  22888. if v, changed := fastpathTV.DecMapUint32StringV(*vp, true, d); changed {
  22889. *vp = v
  22890. }
  22891. return
  22892. }
  22893. fastpathTV.DecMapUint32StringV(rv2i(rv).(map[uint32]string), false, d)
  22894. }
  22895. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, d *Decoder) {
  22896. if v, changed := f.DecMapUint32StringV(*vp, true, d); changed {
  22897. *vp = v
  22898. }
  22899. }
  22900. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, canChange bool,
  22901. d *Decoder) (_ map[uint32]string, changed bool) {
  22902. dd, esep := d.d, d.hh.hasElemSeparators()
  22903. containerLen := dd.ReadMapStart()
  22904. if canChange && v == nil {
  22905. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  22906. v = make(map[uint32]string, xlen)
  22907. changed = true
  22908. }
  22909. if containerLen == 0 {
  22910. dd.ReadMapEnd()
  22911. return v, changed
  22912. }
  22913. var mk uint32
  22914. var mv string
  22915. hasLen := containerLen > 0
  22916. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22917. if esep {
  22918. dd.ReadMapElemKey()
  22919. }
  22920. mk = uint32(dd.DecodeUint(32))
  22921. if esep {
  22922. dd.ReadMapElemValue()
  22923. }
  22924. if dd.TryDecodeAsNil() {
  22925. if d.h.DeleteOnNilMapValue {
  22926. delete(v, mk)
  22927. } else {
  22928. v[mk] = ""
  22929. }
  22930. continue
  22931. }
  22932. mv = dd.DecodeString()
  22933. if v != nil {
  22934. v[mk] = mv
  22935. }
  22936. }
  22937. dd.ReadMapEnd()
  22938. return v, changed
  22939. }
  22940. func (d *Decoder) fastpathDecMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  22941. if rv.Kind() == reflect.Ptr {
  22942. vp := rv2i(rv).(*map[uint32]uint)
  22943. if v, changed := fastpathTV.DecMapUint32UintV(*vp, true, d); changed {
  22944. *vp = v
  22945. }
  22946. return
  22947. }
  22948. fastpathTV.DecMapUint32UintV(rv2i(rv).(map[uint32]uint), false, d)
  22949. }
  22950. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, d *Decoder) {
  22951. if v, changed := f.DecMapUint32UintV(*vp, true, d); changed {
  22952. *vp = v
  22953. }
  22954. }
  22955. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, canChange bool,
  22956. d *Decoder) (_ map[uint32]uint, changed bool) {
  22957. dd, esep := d.d, d.hh.hasElemSeparators()
  22958. containerLen := dd.ReadMapStart()
  22959. if canChange && v == nil {
  22960. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22961. v = make(map[uint32]uint, xlen)
  22962. changed = true
  22963. }
  22964. if containerLen == 0 {
  22965. dd.ReadMapEnd()
  22966. return v, changed
  22967. }
  22968. var mk uint32
  22969. var mv uint
  22970. hasLen := containerLen > 0
  22971. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22972. if esep {
  22973. dd.ReadMapElemKey()
  22974. }
  22975. mk = uint32(dd.DecodeUint(32))
  22976. if esep {
  22977. dd.ReadMapElemValue()
  22978. }
  22979. if dd.TryDecodeAsNil() {
  22980. if d.h.DeleteOnNilMapValue {
  22981. delete(v, mk)
  22982. } else {
  22983. v[mk] = 0
  22984. }
  22985. continue
  22986. }
  22987. mv = uint(dd.DecodeUint(uintBitsize))
  22988. if v != nil {
  22989. v[mk] = mv
  22990. }
  22991. }
  22992. dd.ReadMapEnd()
  22993. return v, changed
  22994. }
  22995. func (d *Decoder) fastpathDecMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  22996. if rv.Kind() == reflect.Ptr {
  22997. vp := rv2i(rv).(*map[uint32]uint8)
  22998. if v, changed := fastpathTV.DecMapUint32Uint8V(*vp, true, d); changed {
  22999. *vp = v
  23000. }
  23001. return
  23002. }
  23003. fastpathTV.DecMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), false, d)
  23004. }
  23005. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, d *Decoder) {
  23006. if v, changed := f.DecMapUint32Uint8V(*vp, true, d); changed {
  23007. *vp = v
  23008. }
  23009. }
  23010. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, canChange bool,
  23011. d *Decoder) (_ map[uint32]uint8, changed bool) {
  23012. dd, esep := d.d, d.hh.hasElemSeparators()
  23013. containerLen := dd.ReadMapStart()
  23014. if canChange && v == nil {
  23015. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  23016. v = make(map[uint32]uint8, xlen)
  23017. changed = true
  23018. }
  23019. if containerLen == 0 {
  23020. dd.ReadMapEnd()
  23021. return v, changed
  23022. }
  23023. var mk uint32
  23024. var mv uint8
  23025. hasLen := containerLen > 0
  23026. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23027. if esep {
  23028. dd.ReadMapElemKey()
  23029. }
  23030. mk = uint32(dd.DecodeUint(32))
  23031. if esep {
  23032. dd.ReadMapElemValue()
  23033. }
  23034. if dd.TryDecodeAsNil() {
  23035. if d.h.DeleteOnNilMapValue {
  23036. delete(v, mk)
  23037. } else {
  23038. v[mk] = 0
  23039. }
  23040. continue
  23041. }
  23042. mv = uint8(dd.DecodeUint(8))
  23043. if v != nil {
  23044. v[mk] = mv
  23045. }
  23046. }
  23047. dd.ReadMapEnd()
  23048. return v, changed
  23049. }
  23050. func (d *Decoder) fastpathDecMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  23051. if rv.Kind() == reflect.Ptr {
  23052. vp := rv2i(rv).(*map[uint32]uint16)
  23053. if v, changed := fastpathTV.DecMapUint32Uint16V(*vp, true, d); changed {
  23054. *vp = v
  23055. }
  23056. return
  23057. }
  23058. fastpathTV.DecMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), false, d)
  23059. }
  23060. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, d *Decoder) {
  23061. if v, changed := f.DecMapUint32Uint16V(*vp, true, d); changed {
  23062. *vp = v
  23063. }
  23064. }
  23065. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, canChange bool,
  23066. d *Decoder) (_ map[uint32]uint16, changed bool) {
  23067. dd, esep := d.d, d.hh.hasElemSeparators()
  23068. containerLen := dd.ReadMapStart()
  23069. if canChange && v == nil {
  23070. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  23071. v = make(map[uint32]uint16, xlen)
  23072. changed = true
  23073. }
  23074. if containerLen == 0 {
  23075. dd.ReadMapEnd()
  23076. return v, changed
  23077. }
  23078. var mk uint32
  23079. var mv uint16
  23080. hasLen := containerLen > 0
  23081. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23082. if esep {
  23083. dd.ReadMapElemKey()
  23084. }
  23085. mk = uint32(dd.DecodeUint(32))
  23086. if esep {
  23087. dd.ReadMapElemValue()
  23088. }
  23089. if dd.TryDecodeAsNil() {
  23090. if d.h.DeleteOnNilMapValue {
  23091. delete(v, mk)
  23092. } else {
  23093. v[mk] = 0
  23094. }
  23095. continue
  23096. }
  23097. mv = uint16(dd.DecodeUint(16))
  23098. if v != nil {
  23099. v[mk] = mv
  23100. }
  23101. }
  23102. dd.ReadMapEnd()
  23103. return v, changed
  23104. }
  23105. func (d *Decoder) fastpathDecMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  23106. if rv.Kind() == reflect.Ptr {
  23107. vp := rv2i(rv).(*map[uint32]uint32)
  23108. if v, changed := fastpathTV.DecMapUint32Uint32V(*vp, true, d); changed {
  23109. *vp = v
  23110. }
  23111. return
  23112. }
  23113. fastpathTV.DecMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), false, d)
  23114. }
  23115. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, d *Decoder) {
  23116. if v, changed := f.DecMapUint32Uint32V(*vp, true, d); changed {
  23117. *vp = v
  23118. }
  23119. }
  23120. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, canChange bool,
  23121. d *Decoder) (_ map[uint32]uint32, changed bool) {
  23122. dd, esep := d.d, d.hh.hasElemSeparators()
  23123. containerLen := dd.ReadMapStart()
  23124. if canChange && v == nil {
  23125. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  23126. v = make(map[uint32]uint32, xlen)
  23127. changed = true
  23128. }
  23129. if containerLen == 0 {
  23130. dd.ReadMapEnd()
  23131. return v, changed
  23132. }
  23133. var mk uint32
  23134. var mv uint32
  23135. hasLen := containerLen > 0
  23136. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23137. if esep {
  23138. dd.ReadMapElemKey()
  23139. }
  23140. mk = uint32(dd.DecodeUint(32))
  23141. if esep {
  23142. dd.ReadMapElemValue()
  23143. }
  23144. if dd.TryDecodeAsNil() {
  23145. if d.h.DeleteOnNilMapValue {
  23146. delete(v, mk)
  23147. } else {
  23148. v[mk] = 0
  23149. }
  23150. continue
  23151. }
  23152. mv = uint32(dd.DecodeUint(32))
  23153. if v != nil {
  23154. v[mk] = mv
  23155. }
  23156. }
  23157. dd.ReadMapEnd()
  23158. return v, changed
  23159. }
  23160. func (d *Decoder) fastpathDecMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  23161. if rv.Kind() == reflect.Ptr {
  23162. vp := rv2i(rv).(*map[uint32]uint64)
  23163. if v, changed := fastpathTV.DecMapUint32Uint64V(*vp, true, d); changed {
  23164. *vp = v
  23165. }
  23166. return
  23167. }
  23168. fastpathTV.DecMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), false, d)
  23169. }
  23170. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, d *Decoder) {
  23171. if v, changed := f.DecMapUint32Uint64V(*vp, true, d); changed {
  23172. *vp = v
  23173. }
  23174. }
  23175. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, canChange bool,
  23176. d *Decoder) (_ map[uint32]uint64, changed bool) {
  23177. dd, esep := d.d, d.hh.hasElemSeparators()
  23178. containerLen := dd.ReadMapStart()
  23179. if canChange && v == nil {
  23180. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23181. v = make(map[uint32]uint64, xlen)
  23182. changed = true
  23183. }
  23184. if containerLen == 0 {
  23185. dd.ReadMapEnd()
  23186. return v, changed
  23187. }
  23188. var mk uint32
  23189. var mv uint64
  23190. hasLen := containerLen > 0
  23191. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23192. if esep {
  23193. dd.ReadMapElemKey()
  23194. }
  23195. mk = uint32(dd.DecodeUint(32))
  23196. if esep {
  23197. dd.ReadMapElemValue()
  23198. }
  23199. if dd.TryDecodeAsNil() {
  23200. if d.h.DeleteOnNilMapValue {
  23201. delete(v, mk)
  23202. } else {
  23203. v[mk] = 0
  23204. }
  23205. continue
  23206. }
  23207. mv = dd.DecodeUint(64)
  23208. if v != nil {
  23209. v[mk] = mv
  23210. }
  23211. }
  23212. dd.ReadMapEnd()
  23213. return v, changed
  23214. }
  23215. func (d *Decoder) fastpathDecMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  23216. if rv.Kind() == reflect.Ptr {
  23217. vp := rv2i(rv).(*map[uint32]uintptr)
  23218. if v, changed := fastpathTV.DecMapUint32UintptrV(*vp, true, d); changed {
  23219. *vp = v
  23220. }
  23221. return
  23222. }
  23223. fastpathTV.DecMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), false, d)
  23224. }
  23225. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, d *Decoder) {
  23226. if v, changed := f.DecMapUint32UintptrV(*vp, true, d); changed {
  23227. *vp = v
  23228. }
  23229. }
  23230. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, canChange bool,
  23231. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  23232. dd, esep := d.d, d.hh.hasElemSeparators()
  23233. containerLen := dd.ReadMapStart()
  23234. if canChange && v == nil {
  23235. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23236. v = make(map[uint32]uintptr, xlen)
  23237. changed = true
  23238. }
  23239. if containerLen == 0 {
  23240. dd.ReadMapEnd()
  23241. return v, changed
  23242. }
  23243. var mk uint32
  23244. var mv uintptr
  23245. hasLen := containerLen > 0
  23246. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23247. if esep {
  23248. dd.ReadMapElemKey()
  23249. }
  23250. mk = uint32(dd.DecodeUint(32))
  23251. if esep {
  23252. dd.ReadMapElemValue()
  23253. }
  23254. if dd.TryDecodeAsNil() {
  23255. if d.h.DeleteOnNilMapValue {
  23256. delete(v, mk)
  23257. } else {
  23258. v[mk] = 0
  23259. }
  23260. continue
  23261. }
  23262. mv = uintptr(dd.DecodeUint(uintBitsize))
  23263. if v != nil {
  23264. v[mk] = mv
  23265. }
  23266. }
  23267. dd.ReadMapEnd()
  23268. return v, changed
  23269. }
  23270. func (d *Decoder) fastpathDecMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  23271. if rv.Kind() == reflect.Ptr {
  23272. vp := rv2i(rv).(*map[uint32]int)
  23273. if v, changed := fastpathTV.DecMapUint32IntV(*vp, true, d); changed {
  23274. *vp = v
  23275. }
  23276. return
  23277. }
  23278. fastpathTV.DecMapUint32IntV(rv2i(rv).(map[uint32]int), false, d)
  23279. }
  23280. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, d *Decoder) {
  23281. if v, changed := f.DecMapUint32IntV(*vp, true, d); changed {
  23282. *vp = v
  23283. }
  23284. }
  23285. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, canChange bool,
  23286. d *Decoder) (_ map[uint32]int, changed bool) {
  23287. dd, esep := d.d, d.hh.hasElemSeparators()
  23288. containerLen := dd.ReadMapStart()
  23289. if canChange && v == nil {
  23290. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23291. v = make(map[uint32]int, xlen)
  23292. changed = true
  23293. }
  23294. if containerLen == 0 {
  23295. dd.ReadMapEnd()
  23296. return v, changed
  23297. }
  23298. var mk uint32
  23299. var mv int
  23300. hasLen := containerLen > 0
  23301. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23302. if esep {
  23303. dd.ReadMapElemKey()
  23304. }
  23305. mk = uint32(dd.DecodeUint(32))
  23306. if esep {
  23307. dd.ReadMapElemValue()
  23308. }
  23309. if dd.TryDecodeAsNil() {
  23310. if d.h.DeleteOnNilMapValue {
  23311. delete(v, mk)
  23312. } else {
  23313. v[mk] = 0
  23314. }
  23315. continue
  23316. }
  23317. mv = int(dd.DecodeInt(intBitsize))
  23318. if v != nil {
  23319. v[mk] = mv
  23320. }
  23321. }
  23322. dd.ReadMapEnd()
  23323. return v, changed
  23324. }
  23325. func (d *Decoder) fastpathDecMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  23326. if rv.Kind() == reflect.Ptr {
  23327. vp := rv2i(rv).(*map[uint32]int8)
  23328. if v, changed := fastpathTV.DecMapUint32Int8V(*vp, true, d); changed {
  23329. *vp = v
  23330. }
  23331. return
  23332. }
  23333. fastpathTV.DecMapUint32Int8V(rv2i(rv).(map[uint32]int8), false, d)
  23334. }
  23335. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, d *Decoder) {
  23336. if v, changed := f.DecMapUint32Int8V(*vp, true, d); changed {
  23337. *vp = v
  23338. }
  23339. }
  23340. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, canChange bool,
  23341. d *Decoder) (_ map[uint32]int8, changed bool) {
  23342. dd, esep := d.d, d.hh.hasElemSeparators()
  23343. containerLen := dd.ReadMapStart()
  23344. if canChange && v == nil {
  23345. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  23346. v = make(map[uint32]int8, xlen)
  23347. changed = true
  23348. }
  23349. if containerLen == 0 {
  23350. dd.ReadMapEnd()
  23351. return v, changed
  23352. }
  23353. var mk uint32
  23354. var mv int8
  23355. hasLen := containerLen > 0
  23356. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23357. if esep {
  23358. dd.ReadMapElemKey()
  23359. }
  23360. mk = uint32(dd.DecodeUint(32))
  23361. if esep {
  23362. dd.ReadMapElemValue()
  23363. }
  23364. if dd.TryDecodeAsNil() {
  23365. if d.h.DeleteOnNilMapValue {
  23366. delete(v, mk)
  23367. } else {
  23368. v[mk] = 0
  23369. }
  23370. continue
  23371. }
  23372. mv = int8(dd.DecodeInt(8))
  23373. if v != nil {
  23374. v[mk] = mv
  23375. }
  23376. }
  23377. dd.ReadMapEnd()
  23378. return v, changed
  23379. }
  23380. func (d *Decoder) fastpathDecMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  23381. if rv.Kind() == reflect.Ptr {
  23382. vp := rv2i(rv).(*map[uint32]int16)
  23383. if v, changed := fastpathTV.DecMapUint32Int16V(*vp, true, d); changed {
  23384. *vp = v
  23385. }
  23386. return
  23387. }
  23388. fastpathTV.DecMapUint32Int16V(rv2i(rv).(map[uint32]int16), false, d)
  23389. }
  23390. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, d *Decoder) {
  23391. if v, changed := f.DecMapUint32Int16V(*vp, true, d); changed {
  23392. *vp = v
  23393. }
  23394. }
  23395. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, canChange bool,
  23396. d *Decoder) (_ map[uint32]int16, changed bool) {
  23397. dd, esep := d.d, d.hh.hasElemSeparators()
  23398. containerLen := dd.ReadMapStart()
  23399. if canChange && v == nil {
  23400. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  23401. v = make(map[uint32]int16, xlen)
  23402. changed = true
  23403. }
  23404. if containerLen == 0 {
  23405. dd.ReadMapEnd()
  23406. return v, changed
  23407. }
  23408. var mk uint32
  23409. var mv int16
  23410. hasLen := containerLen > 0
  23411. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23412. if esep {
  23413. dd.ReadMapElemKey()
  23414. }
  23415. mk = uint32(dd.DecodeUint(32))
  23416. if esep {
  23417. dd.ReadMapElemValue()
  23418. }
  23419. if dd.TryDecodeAsNil() {
  23420. if d.h.DeleteOnNilMapValue {
  23421. delete(v, mk)
  23422. } else {
  23423. v[mk] = 0
  23424. }
  23425. continue
  23426. }
  23427. mv = int16(dd.DecodeInt(16))
  23428. if v != nil {
  23429. v[mk] = mv
  23430. }
  23431. }
  23432. dd.ReadMapEnd()
  23433. return v, changed
  23434. }
  23435. func (d *Decoder) fastpathDecMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  23436. if rv.Kind() == reflect.Ptr {
  23437. vp := rv2i(rv).(*map[uint32]int32)
  23438. if v, changed := fastpathTV.DecMapUint32Int32V(*vp, true, d); changed {
  23439. *vp = v
  23440. }
  23441. return
  23442. }
  23443. fastpathTV.DecMapUint32Int32V(rv2i(rv).(map[uint32]int32), false, d)
  23444. }
  23445. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, d *Decoder) {
  23446. if v, changed := f.DecMapUint32Int32V(*vp, true, d); changed {
  23447. *vp = v
  23448. }
  23449. }
  23450. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, canChange bool,
  23451. d *Decoder) (_ map[uint32]int32, changed bool) {
  23452. dd, esep := d.d, d.hh.hasElemSeparators()
  23453. containerLen := dd.ReadMapStart()
  23454. if canChange && v == nil {
  23455. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  23456. v = make(map[uint32]int32, xlen)
  23457. changed = true
  23458. }
  23459. if containerLen == 0 {
  23460. dd.ReadMapEnd()
  23461. return v, changed
  23462. }
  23463. var mk uint32
  23464. var mv int32
  23465. hasLen := containerLen > 0
  23466. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23467. if esep {
  23468. dd.ReadMapElemKey()
  23469. }
  23470. mk = uint32(dd.DecodeUint(32))
  23471. if esep {
  23472. dd.ReadMapElemValue()
  23473. }
  23474. if dd.TryDecodeAsNil() {
  23475. if d.h.DeleteOnNilMapValue {
  23476. delete(v, mk)
  23477. } else {
  23478. v[mk] = 0
  23479. }
  23480. continue
  23481. }
  23482. mv = int32(dd.DecodeInt(32))
  23483. if v != nil {
  23484. v[mk] = mv
  23485. }
  23486. }
  23487. dd.ReadMapEnd()
  23488. return v, changed
  23489. }
  23490. func (d *Decoder) fastpathDecMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  23491. if rv.Kind() == reflect.Ptr {
  23492. vp := rv2i(rv).(*map[uint32]int64)
  23493. if v, changed := fastpathTV.DecMapUint32Int64V(*vp, true, d); changed {
  23494. *vp = v
  23495. }
  23496. return
  23497. }
  23498. fastpathTV.DecMapUint32Int64V(rv2i(rv).(map[uint32]int64), false, d)
  23499. }
  23500. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, d *Decoder) {
  23501. if v, changed := f.DecMapUint32Int64V(*vp, true, d); changed {
  23502. *vp = v
  23503. }
  23504. }
  23505. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, canChange bool,
  23506. d *Decoder) (_ map[uint32]int64, changed bool) {
  23507. dd, esep := d.d, d.hh.hasElemSeparators()
  23508. containerLen := dd.ReadMapStart()
  23509. if canChange && v == nil {
  23510. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23511. v = make(map[uint32]int64, xlen)
  23512. changed = true
  23513. }
  23514. if containerLen == 0 {
  23515. dd.ReadMapEnd()
  23516. return v, changed
  23517. }
  23518. var mk uint32
  23519. var mv int64
  23520. hasLen := containerLen > 0
  23521. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23522. if esep {
  23523. dd.ReadMapElemKey()
  23524. }
  23525. mk = uint32(dd.DecodeUint(32))
  23526. if esep {
  23527. dd.ReadMapElemValue()
  23528. }
  23529. if dd.TryDecodeAsNil() {
  23530. if d.h.DeleteOnNilMapValue {
  23531. delete(v, mk)
  23532. } else {
  23533. v[mk] = 0
  23534. }
  23535. continue
  23536. }
  23537. mv = dd.DecodeInt(64)
  23538. if v != nil {
  23539. v[mk] = mv
  23540. }
  23541. }
  23542. dd.ReadMapEnd()
  23543. return v, changed
  23544. }
  23545. func (d *Decoder) fastpathDecMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  23546. if rv.Kind() == reflect.Ptr {
  23547. vp := rv2i(rv).(*map[uint32]float32)
  23548. if v, changed := fastpathTV.DecMapUint32Float32V(*vp, true, d); changed {
  23549. *vp = v
  23550. }
  23551. return
  23552. }
  23553. fastpathTV.DecMapUint32Float32V(rv2i(rv).(map[uint32]float32), false, d)
  23554. }
  23555. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, d *Decoder) {
  23556. if v, changed := f.DecMapUint32Float32V(*vp, true, d); changed {
  23557. *vp = v
  23558. }
  23559. }
  23560. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, canChange bool,
  23561. d *Decoder) (_ map[uint32]float32, changed bool) {
  23562. dd, esep := d.d, d.hh.hasElemSeparators()
  23563. containerLen := dd.ReadMapStart()
  23564. if canChange && v == nil {
  23565. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  23566. v = make(map[uint32]float32, xlen)
  23567. changed = true
  23568. }
  23569. if containerLen == 0 {
  23570. dd.ReadMapEnd()
  23571. return v, changed
  23572. }
  23573. var mk uint32
  23574. var mv float32
  23575. hasLen := containerLen > 0
  23576. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23577. if esep {
  23578. dd.ReadMapElemKey()
  23579. }
  23580. mk = uint32(dd.DecodeUint(32))
  23581. if esep {
  23582. dd.ReadMapElemValue()
  23583. }
  23584. if dd.TryDecodeAsNil() {
  23585. if d.h.DeleteOnNilMapValue {
  23586. delete(v, mk)
  23587. } else {
  23588. v[mk] = 0
  23589. }
  23590. continue
  23591. }
  23592. mv = float32(dd.DecodeFloat(true))
  23593. if v != nil {
  23594. v[mk] = mv
  23595. }
  23596. }
  23597. dd.ReadMapEnd()
  23598. return v, changed
  23599. }
  23600. func (d *Decoder) fastpathDecMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  23601. if rv.Kind() == reflect.Ptr {
  23602. vp := rv2i(rv).(*map[uint32]float64)
  23603. if v, changed := fastpathTV.DecMapUint32Float64V(*vp, true, d); changed {
  23604. *vp = v
  23605. }
  23606. return
  23607. }
  23608. fastpathTV.DecMapUint32Float64V(rv2i(rv).(map[uint32]float64), false, d)
  23609. }
  23610. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, d *Decoder) {
  23611. if v, changed := f.DecMapUint32Float64V(*vp, true, d); changed {
  23612. *vp = v
  23613. }
  23614. }
  23615. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, canChange bool,
  23616. d *Decoder) (_ map[uint32]float64, changed bool) {
  23617. dd, esep := d.d, d.hh.hasElemSeparators()
  23618. containerLen := dd.ReadMapStart()
  23619. if canChange && v == nil {
  23620. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23621. v = make(map[uint32]float64, xlen)
  23622. changed = true
  23623. }
  23624. if containerLen == 0 {
  23625. dd.ReadMapEnd()
  23626. return v, changed
  23627. }
  23628. var mk uint32
  23629. var mv float64
  23630. hasLen := containerLen > 0
  23631. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23632. if esep {
  23633. dd.ReadMapElemKey()
  23634. }
  23635. mk = uint32(dd.DecodeUint(32))
  23636. if esep {
  23637. dd.ReadMapElemValue()
  23638. }
  23639. if dd.TryDecodeAsNil() {
  23640. if d.h.DeleteOnNilMapValue {
  23641. delete(v, mk)
  23642. } else {
  23643. v[mk] = 0
  23644. }
  23645. continue
  23646. }
  23647. mv = dd.DecodeFloat(false)
  23648. if v != nil {
  23649. v[mk] = mv
  23650. }
  23651. }
  23652. dd.ReadMapEnd()
  23653. return v, changed
  23654. }
  23655. func (d *Decoder) fastpathDecMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  23656. if rv.Kind() == reflect.Ptr {
  23657. vp := rv2i(rv).(*map[uint32]bool)
  23658. if v, changed := fastpathTV.DecMapUint32BoolV(*vp, true, d); changed {
  23659. *vp = v
  23660. }
  23661. return
  23662. }
  23663. fastpathTV.DecMapUint32BoolV(rv2i(rv).(map[uint32]bool), false, d)
  23664. }
  23665. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, d *Decoder) {
  23666. if v, changed := f.DecMapUint32BoolV(*vp, true, d); changed {
  23667. *vp = v
  23668. }
  23669. }
  23670. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, canChange bool,
  23671. d *Decoder) (_ map[uint32]bool, changed bool) {
  23672. dd, esep := d.d, d.hh.hasElemSeparators()
  23673. containerLen := dd.ReadMapStart()
  23674. if canChange && v == nil {
  23675. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  23676. v = make(map[uint32]bool, xlen)
  23677. changed = true
  23678. }
  23679. if containerLen == 0 {
  23680. dd.ReadMapEnd()
  23681. return v, changed
  23682. }
  23683. var mk uint32
  23684. var mv bool
  23685. hasLen := containerLen > 0
  23686. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23687. if esep {
  23688. dd.ReadMapElemKey()
  23689. }
  23690. mk = uint32(dd.DecodeUint(32))
  23691. if esep {
  23692. dd.ReadMapElemValue()
  23693. }
  23694. if dd.TryDecodeAsNil() {
  23695. if d.h.DeleteOnNilMapValue {
  23696. delete(v, mk)
  23697. } else {
  23698. v[mk] = false
  23699. }
  23700. continue
  23701. }
  23702. mv = dd.DecodeBool()
  23703. if v != nil {
  23704. v[mk] = mv
  23705. }
  23706. }
  23707. dd.ReadMapEnd()
  23708. return v, changed
  23709. }
  23710. func (d *Decoder) fastpathDecMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  23711. if rv.Kind() == reflect.Ptr {
  23712. vp := rv2i(rv).(*map[uint64]interface{})
  23713. if v, changed := fastpathTV.DecMapUint64IntfV(*vp, true, d); changed {
  23714. *vp = v
  23715. }
  23716. return
  23717. }
  23718. fastpathTV.DecMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), false, d)
  23719. }
  23720. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, d *Decoder) {
  23721. if v, changed := f.DecMapUint64IntfV(*vp, true, d); changed {
  23722. *vp = v
  23723. }
  23724. }
  23725. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, canChange bool,
  23726. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  23727. dd, esep := d.d, d.hh.hasElemSeparators()
  23728. containerLen := dd.ReadMapStart()
  23729. if canChange && v == nil {
  23730. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  23731. v = make(map[uint64]interface{}, xlen)
  23732. changed = true
  23733. }
  23734. if containerLen == 0 {
  23735. dd.ReadMapEnd()
  23736. return v, changed
  23737. }
  23738. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  23739. var mk uint64
  23740. var mv interface{}
  23741. hasLen := containerLen > 0
  23742. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23743. if esep {
  23744. dd.ReadMapElemKey()
  23745. }
  23746. mk = dd.DecodeUint(64)
  23747. if esep {
  23748. dd.ReadMapElemValue()
  23749. }
  23750. if dd.TryDecodeAsNil() {
  23751. if d.h.DeleteOnNilMapValue {
  23752. delete(v, mk)
  23753. } else {
  23754. v[mk] = nil
  23755. }
  23756. continue
  23757. }
  23758. if mapGet {
  23759. mv = v[mk]
  23760. } else {
  23761. mv = nil
  23762. }
  23763. d.decode(&mv)
  23764. if v != nil {
  23765. v[mk] = mv
  23766. }
  23767. }
  23768. dd.ReadMapEnd()
  23769. return v, changed
  23770. }
  23771. func (d *Decoder) fastpathDecMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  23772. if rv.Kind() == reflect.Ptr {
  23773. vp := rv2i(rv).(*map[uint64]string)
  23774. if v, changed := fastpathTV.DecMapUint64StringV(*vp, true, d); changed {
  23775. *vp = v
  23776. }
  23777. return
  23778. }
  23779. fastpathTV.DecMapUint64StringV(rv2i(rv).(map[uint64]string), false, d)
  23780. }
  23781. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, d *Decoder) {
  23782. if v, changed := f.DecMapUint64StringV(*vp, true, d); changed {
  23783. *vp = v
  23784. }
  23785. }
  23786. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, canChange bool,
  23787. d *Decoder) (_ map[uint64]string, changed bool) {
  23788. dd, esep := d.d, d.hh.hasElemSeparators()
  23789. containerLen := dd.ReadMapStart()
  23790. if canChange && v == nil {
  23791. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  23792. v = make(map[uint64]string, xlen)
  23793. changed = true
  23794. }
  23795. if containerLen == 0 {
  23796. dd.ReadMapEnd()
  23797. return v, changed
  23798. }
  23799. var mk uint64
  23800. var mv string
  23801. hasLen := containerLen > 0
  23802. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23803. if esep {
  23804. dd.ReadMapElemKey()
  23805. }
  23806. mk = dd.DecodeUint(64)
  23807. if esep {
  23808. dd.ReadMapElemValue()
  23809. }
  23810. if dd.TryDecodeAsNil() {
  23811. if d.h.DeleteOnNilMapValue {
  23812. delete(v, mk)
  23813. } else {
  23814. v[mk] = ""
  23815. }
  23816. continue
  23817. }
  23818. mv = dd.DecodeString()
  23819. if v != nil {
  23820. v[mk] = mv
  23821. }
  23822. }
  23823. dd.ReadMapEnd()
  23824. return v, changed
  23825. }
  23826. func (d *Decoder) fastpathDecMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  23827. if rv.Kind() == reflect.Ptr {
  23828. vp := rv2i(rv).(*map[uint64]uint)
  23829. if v, changed := fastpathTV.DecMapUint64UintV(*vp, true, d); changed {
  23830. *vp = v
  23831. }
  23832. return
  23833. }
  23834. fastpathTV.DecMapUint64UintV(rv2i(rv).(map[uint64]uint), false, d)
  23835. }
  23836. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, d *Decoder) {
  23837. if v, changed := f.DecMapUint64UintV(*vp, true, d); changed {
  23838. *vp = v
  23839. }
  23840. }
  23841. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, canChange bool,
  23842. d *Decoder) (_ map[uint64]uint, changed bool) {
  23843. dd, esep := d.d, d.hh.hasElemSeparators()
  23844. containerLen := dd.ReadMapStart()
  23845. if canChange && v == nil {
  23846. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23847. v = make(map[uint64]uint, xlen)
  23848. changed = true
  23849. }
  23850. if containerLen == 0 {
  23851. dd.ReadMapEnd()
  23852. return v, changed
  23853. }
  23854. var mk uint64
  23855. var mv uint
  23856. hasLen := containerLen > 0
  23857. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23858. if esep {
  23859. dd.ReadMapElemKey()
  23860. }
  23861. mk = dd.DecodeUint(64)
  23862. if esep {
  23863. dd.ReadMapElemValue()
  23864. }
  23865. if dd.TryDecodeAsNil() {
  23866. if d.h.DeleteOnNilMapValue {
  23867. delete(v, mk)
  23868. } else {
  23869. v[mk] = 0
  23870. }
  23871. continue
  23872. }
  23873. mv = uint(dd.DecodeUint(uintBitsize))
  23874. if v != nil {
  23875. v[mk] = mv
  23876. }
  23877. }
  23878. dd.ReadMapEnd()
  23879. return v, changed
  23880. }
  23881. func (d *Decoder) fastpathDecMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  23882. if rv.Kind() == reflect.Ptr {
  23883. vp := rv2i(rv).(*map[uint64]uint8)
  23884. if v, changed := fastpathTV.DecMapUint64Uint8V(*vp, true, d); changed {
  23885. *vp = v
  23886. }
  23887. return
  23888. }
  23889. fastpathTV.DecMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), false, d)
  23890. }
  23891. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, d *Decoder) {
  23892. if v, changed := f.DecMapUint64Uint8V(*vp, true, d); changed {
  23893. *vp = v
  23894. }
  23895. }
  23896. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, canChange bool,
  23897. d *Decoder) (_ map[uint64]uint8, changed bool) {
  23898. dd, esep := d.d, d.hh.hasElemSeparators()
  23899. containerLen := dd.ReadMapStart()
  23900. if canChange && v == nil {
  23901. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23902. v = make(map[uint64]uint8, xlen)
  23903. changed = true
  23904. }
  23905. if containerLen == 0 {
  23906. dd.ReadMapEnd()
  23907. return v, changed
  23908. }
  23909. var mk uint64
  23910. var mv uint8
  23911. hasLen := containerLen > 0
  23912. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23913. if esep {
  23914. dd.ReadMapElemKey()
  23915. }
  23916. mk = dd.DecodeUint(64)
  23917. if esep {
  23918. dd.ReadMapElemValue()
  23919. }
  23920. if dd.TryDecodeAsNil() {
  23921. if d.h.DeleteOnNilMapValue {
  23922. delete(v, mk)
  23923. } else {
  23924. v[mk] = 0
  23925. }
  23926. continue
  23927. }
  23928. mv = uint8(dd.DecodeUint(8))
  23929. if v != nil {
  23930. v[mk] = mv
  23931. }
  23932. }
  23933. dd.ReadMapEnd()
  23934. return v, changed
  23935. }
  23936. func (d *Decoder) fastpathDecMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  23937. if rv.Kind() == reflect.Ptr {
  23938. vp := rv2i(rv).(*map[uint64]uint16)
  23939. if v, changed := fastpathTV.DecMapUint64Uint16V(*vp, true, d); changed {
  23940. *vp = v
  23941. }
  23942. return
  23943. }
  23944. fastpathTV.DecMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), false, d)
  23945. }
  23946. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, d *Decoder) {
  23947. if v, changed := f.DecMapUint64Uint16V(*vp, true, d); changed {
  23948. *vp = v
  23949. }
  23950. }
  23951. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, canChange bool,
  23952. d *Decoder) (_ map[uint64]uint16, changed bool) {
  23953. dd, esep := d.d, d.hh.hasElemSeparators()
  23954. containerLen := dd.ReadMapStart()
  23955. if canChange && v == nil {
  23956. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23957. v = make(map[uint64]uint16, xlen)
  23958. changed = true
  23959. }
  23960. if containerLen == 0 {
  23961. dd.ReadMapEnd()
  23962. return v, changed
  23963. }
  23964. var mk uint64
  23965. var mv uint16
  23966. hasLen := containerLen > 0
  23967. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23968. if esep {
  23969. dd.ReadMapElemKey()
  23970. }
  23971. mk = dd.DecodeUint(64)
  23972. if esep {
  23973. dd.ReadMapElemValue()
  23974. }
  23975. if dd.TryDecodeAsNil() {
  23976. if d.h.DeleteOnNilMapValue {
  23977. delete(v, mk)
  23978. } else {
  23979. v[mk] = 0
  23980. }
  23981. continue
  23982. }
  23983. mv = uint16(dd.DecodeUint(16))
  23984. if v != nil {
  23985. v[mk] = mv
  23986. }
  23987. }
  23988. dd.ReadMapEnd()
  23989. return v, changed
  23990. }
  23991. func (d *Decoder) fastpathDecMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  23992. if rv.Kind() == reflect.Ptr {
  23993. vp := rv2i(rv).(*map[uint64]uint32)
  23994. if v, changed := fastpathTV.DecMapUint64Uint32V(*vp, true, d); changed {
  23995. *vp = v
  23996. }
  23997. return
  23998. }
  23999. fastpathTV.DecMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), false, d)
  24000. }
  24001. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, d *Decoder) {
  24002. if v, changed := f.DecMapUint64Uint32V(*vp, true, d); changed {
  24003. *vp = v
  24004. }
  24005. }
  24006. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, canChange bool,
  24007. d *Decoder) (_ map[uint64]uint32, changed bool) {
  24008. dd, esep := d.d, d.hh.hasElemSeparators()
  24009. containerLen := dd.ReadMapStart()
  24010. if canChange && v == nil {
  24011. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24012. v = make(map[uint64]uint32, xlen)
  24013. changed = true
  24014. }
  24015. if containerLen == 0 {
  24016. dd.ReadMapEnd()
  24017. return v, changed
  24018. }
  24019. var mk uint64
  24020. var mv uint32
  24021. hasLen := containerLen > 0
  24022. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24023. if esep {
  24024. dd.ReadMapElemKey()
  24025. }
  24026. mk = dd.DecodeUint(64)
  24027. if esep {
  24028. dd.ReadMapElemValue()
  24029. }
  24030. if dd.TryDecodeAsNil() {
  24031. if d.h.DeleteOnNilMapValue {
  24032. delete(v, mk)
  24033. } else {
  24034. v[mk] = 0
  24035. }
  24036. continue
  24037. }
  24038. mv = uint32(dd.DecodeUint(32))
  24039. if v != nil {
  24040. v[mk] = mv
  24041. }
  24042. }
  24043. dd.ReadMapEnd()
  24044. return v, changed
  24045. }
  24046. func (d *Decoder) fastpathDecMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  24047. if rv.Kind() == reflect.Ptr {
  24048. vp := rv2i(rv).(*map[uint64]uint64)
  24049. if v, changed := fastpathTV.DecMapUint64Uint64V(*vp, true, d); changed {
  24050. *vp = v
  24051. }
  24052. return
  24053. }
  24054. fastpathTV.DecMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), false, d)
  24055. }
  24056. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, d *Decoder) {
  24057. if v, changed := f.DecMapUint64Uint64V(*vp, true, d); changed {
  24058. *vp = v
  24059. }
  24060. }
  24061. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, canChange bool,
  24062. d *Decoder) (_ map[uint64]uint64, changed bool) {
  24063. dd, esep := d.d, d.hh.hasElemSeparators()
  24064. containerLen := dd.ReadMapStart()
  24065. if canChange && v == nil {
  24066. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24067. v = make(map[uint64]uint64, xlen)
  24068. changed = true
  24069. }
  24070. if containerLen == 0 {
  24071. dd.ReadMapEnd()
  24072. return v, changed
  24073. }
  24074. var mk uint64
  24075. var mv uint64
  24076. hasLen := containerLen > 0
  24077. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24078. if esep {
  24079. dd.ReadMapElemKey()
  24080. }
  24081. mk = dd.DecodeUint(64)
  24082. if esep {
  24083. dd.ReadMapElemValue()
  24084. }
  24085. if dd.TryDecodeAsNil() {
  24086. if d.h.DeleteOnNilMapValue {
  24087. delete(v, mk)
  24088. } else {
  24089. v[mk] = 0
  24090. }
  24091. continue
  24092. }
  24093. mv = dd.DecodeUint(64)
  24094. if v != nil {
  24095. v[mk] = mv
  24096. }
  24097. }
  24098. dd.ReadMapEnd()
  24099. return v, changed
  24100. }
  24101. func (d *Decoder) fastpathDecMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  24102. if rv.Kind() == reflect.Ptr {
  24103. vp := rv2i(rv).(*map[uint64]uintptr)
  24104. if v, changed := fastpathTV.DecMapUint64UintptrV(*vp, true, d); changed {
  24105. *vp = v
  24106. }
  24107. return
  24108. }
  24109. fastpathTV.DecMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), false, d)
  24110. }
  24111. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, d *Decoder) {
  24112. if v, changed := f.DecMapUint64UintptrV(*vp, true, d); changed {
  24113. *vp = v
  24114. }
  24115. }
  24116. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, canChange bool,
  24117. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  24118. dd, esep := d.d, d.hh.hasElemSeparators()
  24119. containerLen := dd.ReadMapStart()
  24120. if canChange && v == nil {
  24121. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24122. v = make(map[uint64]uintptr, xlen)
  24123. changed = true
  24124. }
  24125. if containerLen == 0 {
  24126. dd.ReadMapEnd()
  24127. return v, changed
  24128. }
  24129. var mk uint64
  24130. var mv uintptr
  24131. hasLen := containerLen > 0
  24132. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24133. if esep {
  24134. dd.ReadMapElemKey()
  24135. }
  24136. mk = dd.DecodeUint(64)
  24137. if esep {
  24138. dd.ReadMapElemValue()
  24139. }
  24140. if dd.TryDecodeAsNil() {
  24141. if d.h.DeleteOnNilMapValue {
  24142. delete(v, mk)
  24143. } else {
  24144. v[mk] = 0
  24145. }
  24146. continue
  24147. }
  24148. mv = uintptr(dd.DecodeUint(uintBitsize))
  24149. if v != nil {
  24150. v[mk] = mv
  24151. }
  24152. }
  24153. dd.ReadMapEnd()
  24154. return v, changed
  24155. }
  24156. func (d *Decoder) fastpathDecMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  24157. if rv.Kind() == reflect.Ptr {
  24158. vp := rv2i(rv).(*map[uint64]int)
  24159. if v, changed := fastpathTV.DecMapUint64IntV(*vp, true, d); changed {
  24160. *vp = v
  24161. }
  24162. return
  24163. }
  24164. fastpathTV.DecMapUint64IntV(rv2i(rv).(map[uint64]int), false, d)
  24165. }
  24166. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, d *Decoder) {
  24167. if v, changed := f.DecMapUint64IntV(*vp, true, d); changed {
  24168. *vp = v
  24169. }
  24170. }
  24171. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, canChange bool,
  24172. d *Decoder) (_ map[uint64]int, changed bool) {
  24173. dd, esep := d.d, d.hh.hasElemSeparators()
  24174. containerLen := dd.ReadMapStart()
  24175. if canChange && v == nil {
  24176. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24177. v = make(map[uint64]int, xlen)
  24178. changed = true
  24179. }
  24180. if containerLen == 0 {
  24181. dd.ReadMapEnd()
  24182. return v, changed
  24183. }
  24184. var mk uint64
  24185. var mv int
  24186. hasLen := containerLen > 0
  24187. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24188. if esep {
  24189. dd.ReadMapElemKey()
  24190. }
  24191. mk = dd.DecodeUint(64)
  24192. if esep {
  24193. dd.ReadMapElemValue()
  24194. }
  24195. if dd.TryDecodeAsNil() {
  24196. if d.h.DeleteOnNilMapValue {
  24197. delete(v, mk)
  24198. } else {
  24199. v[mk] = 0
  24200. }
  24201. continue
  24202. }
  24203. mv = int(dd.DecodeInt(intBitsize))
  24204. if v != nil {
  24205. v[mk] = mv
  24206. }
  24207. }
  24208. dd.ReadMapEnd()
  24209. return v, changed
  24210. }
  24211. func (d *Decoder) fastpathDecMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  24212. if rv.Kind() == reflect.Ptr {
  24213. vp := rv2i(rv).(*map[uint64]int8)
  24214. if v, changed := fastpathTV.DecMapUint64Int8V(*vp, true, d); changed {
  24215. *vp = v
  24216. }
  24217. return
  24218. }
  24219. fastpathTV.DecMapUint64Int8V(rv2i(rv).(map[uint64]int8), false, d)
  24220. }
  24221. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, d *Decoder) {
  24222. if v, changed := f.DecMapUint64Int8V(*vp, true, d); changed {
  24223. *vp = v
  24224. }
  24225. }
  24226. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, canChange bool,
  24227. d *Decoder) (_ map[uint64]int8, changed bool) {
  24228. dd, esep := d.d, d.hh.hasElemSeparators()
  24229. containerLen := dd.ReadMapStart()
  24230. if canChange && v == nil {
  24231. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24232. v = make(map[uint64]int8, xlen)
  24233. changed = true
  24234. }
  24235. if containerLen == 0 {
  24236. dd.ReadMapEnd()
  24237. return v, changed
  24238. }
  24239. var mk uint64
  24240. var mv int8
  24241. hasLen := containerLen > 0
  24242. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24243. if esep {
  24244. dd.ReadMapElemKey()
  24245. }
  24246. mk = dd.DecodeUint(64)
  24247. if esep {
  24248. dd.ReadMapElemValue()
  24249. }
  24250. if dd.TryDecodeAsNil() {
  24251. if d.h.DeleteOnNilMapValue {
  24252. delete(v, mk)
  24253. } else {
  24254. v[mk] = 0
  24255. }
  24256. continue
  24257. }
  24258. mv = int8(dd.DecodeInt(8))
  24259. if v != nil {
  24260. v[mk] = mv
  24261. }
  24262. }
  24263. dd.ReadMapEnd()
  24264. return v, changed
  24265. }
  24266. func (d *Decoder) fastpathDecMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  24267. if rv.Kind() == reflect.Ptr {
  24268. vp := rv2i(rv).(*map[uint64]int16)
  24269. if v, changed := fastpathTV.DecMapUint64Int16V(*vp, true, d); changed {
  24270. *vp = v
  24271. }
  24272. return
  24273. }
  24274. fastpathTV.DecMapUint64Int16V(rv2i(rv).(map[uint64]int16), false, d)
  24275. }
  24276. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, d *Decoder) {
  24277. if v, changed := f.DecMapUint64Int16V(*vp, true, d); changed {
  24278. *vp = v
  24279. }
  24280. }
  24281. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, canChange bool,
  24282. d *Decoder) (_ map[uint64]int16, changed bool) {
  24283. dd, esep := d.d, d.hh.hasElemSeparators()
  24284. containerLen := dd.ReadMapStart()
  24285. if canChange && v == nil {
  24286. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24287. v = make(map[uint64]int16, xlen)
  24288. changed = true
  24289. }
  24290. if containerLen == 0 {
  24291. dd.ReadMapEnd()
  24292. return v, changed
  24293. }
  24294. var mk uint64
  24295. var mv int16
  24296. hasLen := containerLen > 0
  24297. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24298. if esep {
  24299. dd.ReadMapElemKey()
  24300. }
  24301. mk = dd.DecodeUint(64)
  24302. if esep {
  24303. dd.ReadMapElemValue()
  24304. }
  24305. if dd.TryDecodeAsNil() {
  24306. if d.h.DeleteOnNilMapValue {
  24307. delete(v, mk)
  24308. } else {
  24309. v[mk] = 0
  24310. }
  24311. continue
  24312. }
  24313. mv = int16(dd.DecodeInt(16))
  24314. if v != nil {
  24315. v[mk] = mv
  24316. }
  24317. }
  24318. dd.ReadMapEnd()
  24319. return v, changed
  24320. }
  24321. func (d *Decoder) fastpathDecMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  24322. if rv.Kind() == reflect.Ptr {
  24323. vp := rv2i(rv).(*map[uint64]int32)
  24324. if v, changed := fastpathTV.DecMapUint64Int32V(*vp, true, d); changed {
  24325. *vp = v
  24326. }
  24327. return
  24328. }
  24329. fastpathTV.DecMapUint64Int32V(rv2i(rv).(map[uint64]int32), false, d)
  24330. }
  24331. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, d *Decoder) {
  24332. if v, changed := f.DecMapUint64Int32V(*vp, true, d); changed {
  24333. *vp = v
  24334. }
  24335. }
  24336. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, canChange bool,
  24337. d *Decoder) (_ map[uint64]int32, changed bool) {
  24338. dd, esep := d.d, d.hh.hasElemSeparators()
  24339. containerLen := dd.ReadMapStart()
  24340. if canChange && v == nil {
  24341. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24342. v = make(map[uint64]int32, xlen)
  24343. changed = true
  24344. }
  24345. if containerLen == 0 {
  24346. dd.ReadMapEnd()
  24347. return v, changed
  24348. }
  24349. var mk uint64
  24350. var mv int32
  24351. hasLen := containerLen > 0
  24352. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24353. if esep {
  24354. dd.ReadMapElemKey()
  24355. }
  24356. mk = dd.DecodeUint(64)
  24357. if esep {
  24358. dd.ReadMapElemValue()
  24359. }
  24360. if dd.TryDecodeAsNil() {
  24361. if d.h.DeleteOnNilMapValue {
  24362. delete(v, mk)
  24363. } else {
  24364. v[mk] = 0
  24365. }
  24366. continue
  24367. }
  24368. mv = int32(dd.DecodeInt(32))
  24369. if v != nil {
  24370. v[mk] = mv
  24371. }
  24372. }
  24373. dd.ReadMapEnd()
  24374. return v, changed
  24375. }
  24376. func (d *Decoder) fastpathDecMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  24377. if rv.Kind() == reflect.Ptr {
  24378. vp := rv2i(rv).(*map[uint64]int64)
  24379. if v, changed := fastpathTV.DecMapUint64Int64V(*vp, true, d); changed {
  24380. *vp = v
  24381. }
  24382. return
  24383. }
  24384. fastpathTV.DecMapUint64Int64V(rv2i(rv).(map[uint64]int64), false, d)
  24385. }
  24386. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, d *Decoder) {
  24387. if v, changed := f.DecMapUint64Int64V(*vp, true, d); changed {
  24388. *vp = v
  24389. }
  24390. }
  24391. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, canChange bool,
  24392. d *Decoder) (_ map[uint64]int64, changed bool) {
  24393. dd, esep := d.d, d.hh.hasElemSeparators()
  24394. containerLen := dd.ReadMapStart()
  24395. if canChange && v == nil {
  24396. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24397. v = make(map[uint64]int64, xlen)
  24398. changed = true
  24399. }
  24400. if containerLen == 0 {
  24401. dd.ReadMapEnd()
  24402. return v, changed
  24403. }
  24404. var mk uint64
  24405. var mv int64
  24406. hasLen := containerLen > 0
  24407. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24408. if esep {
  24409. dd.ReadMapElemKey()
  24410. }
  24411. mk = dd.DecodeUint(64)
  24412. if esep {
  24413. dd.ReadMapElemValue()
  24414. }
  24415. if dd.TryDecodeAsNil() {
  24416. if d.h.DeleteOnNilMapValue {
  24417. delete(v, mk)
  24418. } else {
  24419. v[mk] = 0
  24420. }
  24421. continue
  24422. }
  24423. mv = dd.DecodeInt(64)
  24424. if v != nil {
  24425. v[mk] = mv
  24426. }
  24427. }
  24428. dd.ReadMapEnd()
  24429. return v, changed
  24430. }
  24431. func (d *Decoder) fastpathDecMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  24432. if rv.Kind() == reflect.Ptr {
  24433. vp := rv2i(rv).(*map[uint64]float32)
  24434. if v, changed := fastpathTV.DecMapUint64Float32V(*vp, true, d); changed {
  24435. *vp = v
  24436. }
  24437. return
  24438. }
  24439. fastpathTV.DecMapUint64Float32V(rv2i(rv).(map[uint64]float32), false, d)
  24440. }
  24441. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, d *Decoder) {
  24442. if v, changed := f.DecMapUint64Float32V(*vp, true, d); changed {
  24443. *vp = v
  24444. }
  24445. }
  24446. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, canChange bool,
  24447. d *Decoder) (_ map[uint64]float32, changed bool) {
  24448. dd, esep := d.d, d.hh.hasElemSeparators()
  24449. containerLen := dd.ReadMapStart()
  24450. if canChange && v == nil {
  24451. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24452. v = make(map[uint64]float32, xlen)
  24453. changed = true
  24454. }
  24455. if containerLen == 0 {
  24456. dd.ReadMapEnd()
  24457. return v, changed
  24458. }
  24459. var mk uint64
  24460. var mv float32
  24461. hasLen := containerLen > 0
  24462. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24463. if esep {
  24464. dd.ReadMapElemKey()
  24465. }
  24466. mk = dd.DecodeUint(64)
  24467. if esep {
  24468. dd.ReadMapElemValue()
  24469. }
  24470. if dd.TryDecodeAsNil() {
  24471. if d.h.DeleteOnNilMapValue {
  24472. delete(v, mk)
  24473. } else {
  24474. v[mk] = 0
  24475. }
  24476. continue
  24477. }
  24478. mv = float32(dd.DecodeFloat(true))
  24479. if v != nil {
  24480. v[mk] = mv
  24481. }
  24482. }
  24483. dd.ReadMapEnd()
  24484. return v, changed
  24485. }
  24486. func (d *Decoder) fastpathDecMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  24487. if rv.Kind() == reflect.Ptr {
  24488. vp := rv2i(rv).(*map[uint64]float64)
  24489. if v, changed := fastpathTV.DecMapUint64Float64V(*vp, true, d); changed {
  24490. *vp = v
  24491. }
  24492. return
  24493. }
  24494. fastpathTV.DecMapUint64Float64V(rv2i(rv).(map[uint64]float64), false, d)
  24495. }
  24496. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, d *Decoder) {
  24497. if v, changed := f.DecMapUint64Float64V(*vp, true, d); changed {
  24498. *vp = v
  24499. }
  24500. }
  24501. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, canChange bool,
  24502. d *Decoder) (_ map[uint64]float64, changed bool) {
  24503. dd, esep := d.d, d.hh.hasElemSeparators()
  24504. containerLen := dd.ReadMapStart()
  24505. if canChange && v == nil {
  24506. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24507. v = make(map[uint64]float64, xlen)
  24508. changed = true
  24509. }
  24510. if containerLen == 0 {
  24511. dd.ReadMapEnd()
  24512. return v, changed
  24513. }
  24514. var mk uint64
  24515. var mv float64
  24516. hasLen := containerLen > 0
  24517. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24518. if esep {
  24519. dd.ReadMapElemKey()
  24520. }
  24521. mk = dd.DecodeUint(64)
  24522. if esep {
  24523. dd.ReadMapElemValue()
  24524. }
  24525. if dd.TryDecodeAsNil() {
  24526. if d.h.DeleteOnNilMapValue {
  24527. delete(v, mk)
  24528. } else {
  24529. v[mk] = 0
  24530. }
  24531. continue
  24532. }
  24533. mv = dd.DecodeFloat(false)
  24534. if v != nil {
  24535. v[mk] = mv
  24536. }
  24537. }
  24538. dd.ReadMapEnd()
  24539. return v, changed
  24540. }
  24541. func (d *Decoder) fastpathDecMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  24542. if rv.Kind() == reflect.Ptr {
  24543. vp := rv2i(rv).(*map[uint64]bool)
  24544. if v, changed := fastpathTV.DecMapUint64BoolV(*vp, true, d); changed {
  24545. *vp = v
  24546. }
  24547. return
  24548. }
  24549. fastpathTV.DecMapUint64BoolV(rv2i(rv).(map[uint64]bool), false, d)
  24550. }
  24551. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, d *Decoder) {
  24552. if v, changed := f.DecMapUint64BoolV(*vp, true, d); changed {
  24553. *vp = v
  24554. }
  24555. }
  24556. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, canChange bool,
  24557. d *Decoder) (_ map[uint64]bool, changed bool) {
  24558. dd, esep := d.d, d.hh.hasElemSeparators()
  24559. containerLen := dd.ReadMapStart()
  24560. if canChange && v == nil {
  24561. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24562. v = make(map[uint64]bool, xlen)
  24563. changed = true
  24564. }
  24565. if containerLen == 0 {
  24566. dd.ReadMapEnd()
  24567. return v, changed
  24568. }
  24569. var mk uint64
  24570. var mv bool
  24571. hasLen := containerLen > 0
  24572. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24573. if esep {
  24574. dd.ReadMapElemKey()
  24575. }
  24576. mk = dd.DecodeUint(64)
  24577. if esep {
  24578. dd.ReadMapElemValue()
  24579. }
  24580. if dd.TryDecodeAsNil() {
  24581. if d.h.DeleteOnNilMapValue {
  24582. delete(v, mk)
  24583. } else {
  24584. v[mk] = false
  24585. }
  24586. continue
  24587. }
  24588. mv = dd.DecodeBool()
  24589. if v != nil {
  24590. v[mk] = mv
  24591. }
  24592. }
  24593. dd.ReadMapEnd()
  24594. return v, changed
  24595. }
  24596. func (d *Decoder) fastpathDecMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  24597. if rv.Kind() == reflect.Ptr {
  24598. vp := rv2i(rv).(*map[uintptr]interface{})
  24599. if v, changed := fastpathTV.DecMapUintptrIntfV(*vp, true, d); changed {
  24600. *vp = v
  24601. }
  24602. return
  24603. }
  24604. fastpathTV.DecMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), false, d)
  24605. }
  24606. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, d *Decoder) {
  24607. if v, changed := f.DecMapUintptrIntfV(*vp, true, d); changed {
  24608. *vp = v
  24609. }
  24610. }
  24611. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, canChange bool,
  24612. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  24613. dd, esep := d.d, d.hh.hasElemSeparators()
  24614. containerLen := dd.ReadMapStart()
  24615. if canChange && v == nil {
  24616. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  24617. v = make(map[uintptr]interface{}, xlen)
  24618. changed = true
  24619. }
  24620. if containerLen == 0 {
  24621. dd.ReadMapEnd()
  24622. return v, changed
  24623. }
  24624. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  24625. var mk uintptr
  24626. var mv interface{}
  24627. hasLen := containerLen > 0
  24628. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24629. if esep {
  24630. dd.ReadMapElemKey()
  24631. }
  24632. mk = uintptr(dd.DecodeUint(uintBitsize))
  24633. if esep {
  24634. dd.ReadMapElemValue()
  24635. }
  24636. if dd.TryDecodeAsNil() {
  24637. if d.h.DeleteOnNilMapValue {
  24638. delete(v, mk)
  24639. } else {
  24640. v[mk] = nil
  24641. }
  24642. continue
  24643. }
  24644. if mapGet {
  24645. mv = v[mk]
  24646. } else {
  24647. mv = nil
  24648. }
  24649. d.decode(&mv)
  24650. if v != nil {
  24651. v[mk] = mv
  24652. }
  24653. }
  24654. dd.ReadMapEnd()
  24655. return v, changed
  24656. }
  24657. func (d *Decoder) fastpathDecMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  24658. if rv.Kind() == reflect.Ptr {
  24659. vp := rv2i(rv).(*map[uintptr]string)
  24660. if v, changed := fastpathTV.DecMapUintptrStringV(*vp, true, d); changed {
  24661. *vp = v
  24662. }
  24663. return
  24664. }
  24665. fastpathTV.DecMapUintptrStringV(rv2i(rv).(map[uintptr]string), false, d)
  24666. }
  24667. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, d *Decoder) {
  24668. if v, changed := f.DecMapUintptrStringV(*vp, true, d); changed {
  24669. *vp = v
  24670. }
  24671. }
  24672. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, canChange bool,
  24673. d *Decoder) (_ map[uintptr]string, changed bool) {
  24674. dd, esep := d.d, d.hh.hasElemSeparators()
  24675. containerLen := dd.ReadMapStart()
  24676. if canChange && v == nil {
  24677. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  24678. v = make(map[uintptr]string, xlen)
  24679. changed = true
  24680. }
  24681. if containerLen == 0 {
  24682. dd.ReadMapEnd()
  24683. return v, changed
  24684. }
  24685. var mk uintptr
  24686. var mv string
  24687. hasLen := containerLen > 0
  24688. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24689. if esep {
  24690. dd.ReadMapElemKey()
  24691. }
  24692. mk = uintptr(dd.DecodeUint(uintBitsize))
  24693. if esep {
  24694. dd.ReadMapElemValue()
  24695. }
  24696. if dd.TryDecodeAsNil() {
  24697. if d.h.DeleteOnNilMapValue {
  24698. delete(v, mk)
  24699. } else {
  24700. v[mk] = ""
  24701. }
  24702. continue
  24703. }
  24704. mv = dd.DecodeString()
  24705. if v != nil {
  24706. v[mk] = mv
  24707. }
  24708. }
  24709. dd.ReadMapEnd()
  24710. return v, changed
  24711. }
  24712. func (d *Decoder) fastpathDecMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  24713. if rv.Kind() == reflect.Ptr {
  24714. vp := rv2i(rv).(*map[uintptr]uint)
  24715. if v, changed := fastpathTV.DecMapUintptrUintV(*vp, true, d); changed {
  24716. *vp = v
  24717. }
  24718. return
  24719. }
  24720. fastpathTV.DecMapUintptrUintV(rv2i(rv).(map[uintptr]uint), false, d)
  24721. }
  24722. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, d *Decoder) {
  24723. if v, changed := f.DecMapUintptrUintV(*vp, true, d); changed {
  24724. *vp = v
  24725. }
  24726. }
  24727. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, canChange bool,
  24728. d *Decoder) (_ map[uintptr]uint, changed bool) {
  24729. dd, esep := d.d, d.hh.hasElemSeparators()
  24730. containerLen := dd.ReadMapStart()
  24731. if canChange && v == nil {
  24732. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24733. v = make(map[uintptr]uint, xlen)
  24734. changed = true
  24735. }
  24736. if containerLen == 0 {
  24737. dd.ReadMapEnd()
  24738. return v, changed
  24739. }
  24740. var mk uintptr
  24741. var mv uint
  24742. hasLen := containerLen > 0
  24743. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24744. if esep {
  24745. dd.ReadMapElemKey()
  24746. }
  24747. mk = uintptr(dd.DecodeUint(uintBitsize))
  24748. if esep {
  24749. dd.ReadMapElemValue()
  24750. }
  24751. if dd.TryDecodeAsNil() {
  24752. if d.h.DeleteOnNilMapValue {
  24753. delete(v, mk)
  24754. } else {
  24755. v[mk] = 0
  24756. }
  24757. continue
  24758. }
  24759. mv = uint(dd.DecodeUint(uintBitsize))
  24760. if v != nil {
  24761. v[mk] = mv
  24762. }
  24763. }
  24764. dd.ReadMapEnd()
  24765. return v, changed
  24766. }
  24767. func (d *Decoder) fastpathDecMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  24768. if rv.Kind() == reflect.Ptr {
  24769. vp := rv2i(rv).(*map[uintptr]uint8)
  24770. if v, changed := fastpathTV.DecMapUintptrUint8V(*vp, true, d); changed {
  24771. *vp = v
  24772. }
  24773. return
  24774. }
  24775. fastpathTV.DecMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), false, d)
  24776. }
  24777. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, d *Decoder) {
  24778. if v, changed := f.DecMapUintptrUint8V(*vp, true, d); changed {
  24779. *vp = v
  24780. }
  24781. }
  24782. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, canChange bool,
  24783. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  24784. dd, esep := d.d, d.hh.hasElemSeparators()
  24785. containerLen := dd.ReadMapStart()
  24786. if canChange && v == nil {
  24787. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24788. v = make(map[uintptr]uint8, xlen)
  24789. changed = true
  24790. }
  24791. if containerLen == 0 {
  24792. dd.ReadMapEnd()
  24793. return v, changed
  24794. }
  24795. var mk uintptr
  24796. var mv uint8
  24797. hasLen := containerLen > 0
  24798. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24799. if esep {
  24800. dd.ReadMapElemKey()
  24801. }
  24802. mk = uintptr(dd.DecodeUint(uintBitsize))
  24803. if esep {
  24804. dd.ReadMapElemValue()
  24805. }
  24806. if dd.TryDecodeAsNil() {
  24807. if d.h.DeleteOnNilMapValue {
  24808. delete(v, mk)
  24809. } else {
  24810. v[mk] = 0
  24811. }
  24812. continue
  24813. }
  24814. mv = uint8(dd.DecodeUint(8))
  24815. if v != nil {
  24816. v[mk] = mv
  24817. }
  24818. }
  24819. dd.ReadMapEnd()
  24820. return v, changed
  24821. }
  24822. func (d *Decoder) fastpathDecMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  24823. if rv.Kind() == reflect.Ptr {
  24824. vp := rv2i(rv).(*map[uintptr]uint16)
  24825. if v, changed := fastpathTV.DecMapUintptrUint16V(*vp, true, d); changed {
  24826. *vp = v
  24827. }
  24828. return
  24829. }
  24830. fastpathTV.DecMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), false, d)
  24831. }
  24832. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, d *Decoder) {
  24833. if v, changed := f.DecMapUintptrUint16V(*vp, true, d); changed {
  24834. *vp = v
  24835. }
  24836. }
  24837. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, canChange bool,
  24838. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  24839. dd, esep := d.d, d.hh.hasElemSeparators()
  24840. containerLen := dd.ReadMapStart()
  24841. if canChange && v == nil {
  24842. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24843. v = make(map[uintptr]uint16, xlen)
  24844. changed = true
  24845. }
  24846. if containerLen == 0 {
  24847. dd.ReadMapEnd()
  24848. return v, changed
  24849. }
  24850. var mk uintptr
  24851. var mv uint16
  24852. hasLen := containerLen > 0
  24853. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24854. if esep {
  24855. dd.ReadMapElemKey()
  24856. }
  24857. mk = uintptr(dd.DecodeUint(uintBitsize))
  24858. if esep {
  24859. dd.ReadMapElemValue()
  24860. }
  24861. if dd.TryDecodeAsNil() {
  24862. if d.h.DeleteOnNilMapValue {
  24863. delete(v, mk)
  24864. } else {
  24865. v[mk] = 0
  24866. }
  24867. continue
  24868. }
  24869. mv = uint16(dd.DecodeUint(16))
  24870. if v != nil {
  24871. v[mk] = mv
  24872. }
  24873. }
  24874. dd.ReadMapEnd()
  24875. return v, changed
  24876. }
  24877. func (d *Decoder) fastpathDecMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  24878. if rv.Kind() == reflect.Ptr {
  24879. vp := rv2i(rv).(*map[uintptr]uint32)
  24880. if v, changed := fastpathTV.DecMapUintptrUint32V(*vp, true, d); changed {
  24881. *vp = v
  24882. }
  24883. return
  24884. }
  24885. fastpathTV.DecMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), false, d)
  24886. }
  24887. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, d *Decoder) {
  24888. if v, changed := f.DecMapUintptrUint32V(*vp, true, d); changed {
  24889. *vp = v
  24890. }
  24891. }
  24892. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, canChange bool,
  24893. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  24894. dd, esep := d.d, d.hh.hasElemSeparators()
  24895. containerLen := dd.ReadMapStart()
  24896. if canChange && v == nil {
  24897. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24898. v = make(map[uintptr]uint32, xlen)
  24899. changed = true
  24900. }
  24901. if containerLen == 0 {
  24902. dd.ReadMapEnd()
  24903. return v, changed
  24904. }
  24905. var mk uintptr
  24906. var mv uint32
  24907. hasLen := containerLen > 0
  24908. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24909. if esep {
  24910. dd.ReadMapElemKey()
  24911. }
  24912. mk = uintptr(dd.DecodeUint(uintBitsize))
  24913. if esep {
  24914. dd.ReadMapElemValue()
  24915. }
  24916. if dd.TryDecodeAsNil() {
  24917. if d.h.DeleteOnNilMapValue {
  24918. delete(v, mk)
  24919. } else {
  24920. v[mk] = 0
  24921. }
  24922. continue
  24923. }
  24924. mv = uint32(dd.DecodeUint(32))
  24925. if v != nil {
  24926. v[mk] = mv
  24927. }
  24928. }
  24929. dd.ReadMapEnd()
  24930. return v, changed
  24931. }
  24932. func (d *Decoder) fastpathDecMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  24933. if rv.Kind() == reflect.Ptr {
  24934. vp := rv2i(rv).(*map[uintptr]uint64)
  24935. if v, changed := fastpathTV.DecMapUintptrUint64V(*vp, true, d); changed {
  24936. *vp = v
  24937. }
  24938. return
  24939. }
  24940. fastpathTV.DecMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), false, d)
  24941. }
  24942. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, d *Decoder) {
  24943. if v, changed := f.DecMapUintptrUint64V(*vp, true, d); changed {
  24944. *vp = v
  24945. }
  24946. }
  24947. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, canChange bool,
  24948. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  24949. dd, esep := d.d, d.hh.hasElemSeparators()
  24950. containerLen := dd.ReadMapStart()
  24951. if canChange && v == nil {
  24952. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24953. v = make(map[uintptr]uint64, xlen)
  24954. changed = true
  24955. }
  24956. if containerLen == 0 {
  24957. dd.ReadMapEnd()
  24958. return v, changed
  24959. }
  24960. var mk uintptr
  24961. var mv uint64
  24962. hasLen := containerLen > 0
  24963. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24964. if esep {
  24965. dd.ReadMapElemKey()
  24966. }
  24967. mk = uintptr(dd.DecodeUint(uintBitsize))
  24968. if esep {
  24969. dd.ReadMapElemValue()
  24970. }
  24971. if dd.TryDecodeAsNil() {
  24972. if d.h.DeleteOnNilMapValue {
  24973. delete(v, mk)
  24974. } else {
  24975. v[mk] = 0
  24976. }
  24977. continue
  24978. }
  24979. mv = dd.DecodeUint(64)
  24980. if v != nil {
  24981. v[mk] = mv
  24982. }
  24983. }
  24984. dd.ReadMapEnd()
  24985. return v, changed
  24986. }
  24987. func (d *Decoder) fastpathDecMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  24988. if rv.Kind() == reflect.Ptr {
  24989. vp := rv2i(rv).(*map[uintptr]uintptr)
  24990. if v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, true, d); changed {
  24991. *vp = v
  24992. }
  24993. return
  24994. }
  24995. fastpathTV.DecMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), false, d)
  24996. }
  24997. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, d *Decoder) {
  24998. if v, changed := f.DecMapUintptrUintptrV(*vp, true, d); changed {
  24999. *vp = v
  25000. }
  25001. }
  25002. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, canChange bool,
  25003. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  25004. dd, esep := d.d, d.hh.hasElemSeparators()
  25005. containerLen := dd.ReadMapStart()
  25006. if canChange && v == nil {
  25007. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25008. v = make(map[uintptr]uintptr, xlen)
  25009. changed = true
  25010. }
  25011. if containerLen == 0 {
  25012. dd.ReadMapEnd()
  25013. return v, changed
  25014. }
  25015. var mk uintptr
  25016. var mv uintptr
  25017. hasLen := containerLen > 0
  25018. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25019. if esep {
  25020. dd.ReadMapElemKey()
  25021. }
  25022. mk = uintptr(dd.DecodeUint(uintBitsize))
  25023. if esep {
  25024. dd.ReadMapElemValue()
  25025. }
  25026. if dd.TryDecodeAsNil() {
  25027. if d.h.DeleteOnNilMapValue {
  25028. delete(v, mk)
  25029. } else {
  25030. v[mk] = 0
  25031. }
  25032. continue
  25033. }
  25034. mv = uintptr(dd.DecodeUint(uintBitsize))
  25035. if v != nil {
  25036. v[mk] = mv
  25037. }
  25038. }
  25039. dd.ReadMapEnd()
  25040. return v, changed
  25041. }
  25042. func (d *Decoder) fastpathDecMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  25043. if rv.Kind() == reflect.Ptr {
  25044. vp := rv2i(rv).(*map[uintptr]int)
  25045. if v, changed := fastpathTV.DecMapUintptrIntV(*vp, true, d); changed {
  25046. *vp = v
  25047. }
  25048. return
  25049. }
  25050. fastpathTV.DecMapUintptrIntV(rv2i(rv).(map[uintptr]int), false, d)
  25051. }
  25052. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, d *Decoder) {
  25053. if v, changed := f.DecMapUintptrIntV(*vp, true, d); changed {
  25054. *vp = v
  25055. }
  25056. }
  25057. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, canChange bool,
  25058. d *Decoder) (_ map[uintptr]int, changed bool) {
  25059. dd, esep := d.d, d.hh.hasElemSeparators()
  25060. containerLen := dd.ReadMapStart()
  25061. if canChange && v == nil {
  25062. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25063. v = make(map[uintptr]int, xlen)
  25064. changed = true
  25065. }
  25066. if containerLen == 0 {
  25067. dd.ReadMapEnd()
  25068. return v, changed
  25069. }
  25070. var mk uintptr
  25071. var mv int
  25072. hasLen := containerLen > 0
  25073. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25074. if esep {
  25075. dd.ReadMapElemKey()
  25076. }
  25077. mk = uintptr(dd.DecodeUint(uintBitsize))
  25078. if esep {
  25079. dd.ReadMapElemValue()
  25080. }
  25081. if dd.TryDecodeAsNil() {
  25082. if d.h.DeleteOnNilMapValue {
  25083. delete(v, mk)
  25084. } else {
  25085. v[mk] = 0
  25086. }
  25087. continue
  25088. }
  25089. mv = int(dd.DecodeInt(intBitsize))
  25090. if v != nil {
  25091. v[mk] = mv
  25092. }
  25093. }
  25094. dd.ReadMapEnd()
  25095. return v, changed
  25096. }
  25097. func (d *Decoder) fastpathDecMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  25098. if rv.Kind() == reflect.Ptr {
  25099. vp := rv2i(rv).(*map[uintptr]int8)
  25100. if v, changed := fastpathTV.DecMapUintptrInt8V(*vp, true, d); changed {
  25101. *vp = v
  25102. }
  25103. return
  25104. }
  25105. fastpathTV.DecMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), false, d)
  25106. }
  25107. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, d *Decoder) {
  25108. if v, changed := f.DecMapUintptrInt8V(*vp, true, d); changed {
  25109. *vp = v
  25110. }
  25111. }
  25112. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, canChange bool,
  25113. d *Decoder) (_ map[uintptr]int8, changed bool) {
  25114. dd, esep := d.d, d.hh.hasElemSeparators()
  25115. containerLen := dd.ReadMapStart()
  25116. if canChange && v == nil {
  25117. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25118. v = make(map[uintptr]int8, xlen)
  25119. changed = true
  25120. }
  25121. if containerLen == 0 {
  25122. dd.ReadMapEnd()
  25123. return v, changed
  25124. }
  25125. var mk uintptr
  25126. var mv int8
  25127. hasLen := containerLen > 0
  25128. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25129. if esep {
  25130. dd.ReadMapElemKey()
  25131. }
  25132. mk = uintptr(dd.DecodeUint(uintBitsize))
  25133. if esep {
  25134. dd.ReadMapElemValue()
  25135. }
  25136. if dd.TryDecodeAsNil() {
  25137. if d.h.DeleteOnNilMapValue {
  25138. delete(v, mk)
  25139. } else {
  25140. v[mk] = 0
  25141. }
  25142. continue
  25143. }
  25144. mv = int8(dd.DecodeInt(8))
  25145. if v != nil {
  25146. v[mk] = mv
  25147. }
  25148. }
  25149. dd.ReadMapEnd()
  25150. return v, changed
  25151. }
  25152. func (d *Decoder) fastpathDecMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  25153. if rv.Kind() == reflect.Ptr {
  25154. vp := rv2i(rv).(*map[uintptr]int16)
  25155. if v, changed := fastpathTV.DecMapUintptrInt16V(*vp, true, d); changed {
  25156. *vp = v
  25157. }
  25158. return
  25159. }
  25160. fastpathTV.DecMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), false, d)
  25161. }
  25162. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, d *Decoder) {
  25163. if v, changed := f.DecMapUintptrInt16V(*vp, true, d); changed {
  25164. *vp = v
  25165. }
  25166. }
  25167. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, canChange bool,
  25168. d *Decoder) (_ map[uintptr]int16, changed bool) {
  25169. dd, esep := d.d, d.hh.hasElemSeparators()
  25170. containerLen := dd.ReadMapStart()
  25171. if canChange && v == nil {
  25172. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25173. v = make(map[uintptr]int16, xlen)
  25174. changed = true
  25175. }
  25176. if containerLen == 0 {
  25177. dd.ReadMapEnd()
  25178. return v, changed
  25179. }
  25180. var mk uintptr
  25181. var mv int16
  25182. hasLen := containerLen > 0
  25183. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25184. if esep {
  25185. dd.ReadMapElemKey()
  25186. }
  25187. mk = uintptr(dd.DecodeUint(uintBitsize))
  25188. if esep {
  25189. dd.ReadMapElemValue()
  25190. }
  25191. if dd.TryDecodeAsNil() {
  25192. if d.h.DeleteOnNilMapValue {
  25193. delete(v, mk)
  25194. } else {
  25195. v[mk] = 0
  25196. }
  25197. continue
  25198. }
  25199. mv = int16(dd.DecodeInt(16))
  25200. if v != nil {
  25201. v[mk] = mv
  25202. }
  25203. }
  25204. dd.ReadMapEnd()
  25205. return v, changed
  25206. }
  25207. func (d *Decoder) fastpathDecMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  25208. if rv.Kind() == reflect.Ptr {
  25209. vp := rv2i(rv).(*map[uintptr]int32)
  25210. if v, changed := fastpathTV.DecMapUintptrInt32V(*vp, true, d); changed {
  25211. *vp = v
  25212. }
  25213. return
  25214. }
  25215. fastpathTV.DecMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), false, d)
  25216. }
  25217. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, d *Decoder) {
  25218. if v, changed := f.DecMapUintptrInt32V(*vp, true, d); changed {
  25219. *vp = v
  25220. }
  25221. }
  25222. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, canChange bool,
  25223. d *Decoder) (_ map[uintptr]int32, changed bool) {
  25224. dd, esep := d.d, d.hh.hasElemSeparators()
  25225. containerLen := dd.ReadMapStart()
  25226. if canChange && v == nil {
  25227. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25228. v = make(map[uintptr]int32, xlen)
  25229. changed = true
  25230. }
  25231. if containerLen == 0 {
  25232. dd.ReadMapEnd()
  25233. return v, changed
  25234. }
  25235. var mk uintptr
  25236. var mv int32
  25237. hasLen := containerLen > 0
  25238. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25239. if esep {
  25240. dd.ReadMapElemKey()
  25241. }
  25242. mk = uintptr(dd.DecodeUint(uintBitsize))
  25243. if esep {
  25244. dd.ReadMapElemValue()
  25245. }
  25246. if dd.TryDecodeAsNil() {
  25247. if d.h.DeleteOnNilMapValue {
  25248. delete(v, mk)
  25249. } else {
  25250. v[mk] = 0
  25251. }
  25252. continue
  25253. }
  25254. mv = int32(dd.DecodeInt(32))
  25255. if v != nil {
  25256. v[mk] = mv
  25257. }
  25258. }
  25259. dd.ReadMapEnd()
  25260. return v, changed
  25261. }
  25262. func (d *Decoder) fastpathDecMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  25263. if rv.Kind() == reflect.Ptr {
  25264. vp := rv2i(rv).(*map[uintptr]int64)
  25265. if v, changed := fastpathTV.DecMapUintptrInt64V(*vp, true, d); changed {
  25266. *vp = v
  25267. }
  25268. return
  25269. }
  25270. fastpathTV.DecMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), false, d)
  25271. }
  25272. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, d *Decoder) {
  25273. if v, changed := f.DecMapUintptrInt64V(*vp, true, d); changed {
  25274. *vp = v
  25275. }
  25276. }
  25277. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, canChange bool,
  25278. d *Decoder) (_ map[uintptr]int64, changed bool) {
  25279. dd, esep := d.d, d.hh.hasElemSeparators()
  25280. containerLen := dd.ReadMapStart()
  25281. if canChange && v == nil {
  25282. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25283. v = make(map[uintptr]int64, xlen)
  25284. changed = true
  25285. }
  25286. if containerLen == 0 {
  25287. dd.ReadMapEnd()
  25288. return v, changed
  25289. }
  25290. var mk uintptr
  25291. var mv int64
  25292. hasLen := containerLen > 0
  25293. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25294. if esep {
  25295. dd.ReadMapElemKey()
  25296. }
  25297. mk = uintptr(dd.DecodeUint(uintBitsize))
  25298. if esep {
  25299. dd.ReadMapElemValue()
  25300. }
  25301. if dd.TryDecodeAsNil() {
  25302. if d.h.DeleteOnNilMapValue {
  25303. delete(v, mk)
  25304. } else {
  25305. v[mk] = 0
  25306. }
  25307. continue
  25308. }
  25309. mv = dd.DecodeInt(64)
  25310. if v != nil {
  25311. v[mk] = mv
  25312. }
  25313. }
  25314. dd.ReadMapEnd()
  25315. return v, changed
  25316. }
  25317. func (d *Decoder) fastpathDecMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  25318. if rv.Kind() == reflect.Ptr {
  25319. vp := rv2i(rv).(*map[uintptr]float32)
  25320. if v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, true, d); changed {
  25321. *vp = v
  25322. }
  25323. return
  25324. }
  25325. fastpathTV.DecMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), false, d)
  25326. }
  25327. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, d *Decoder) {
  25328. if v, changed := f.DecMapUintptrFloat32V(*vp, true, d); changed {
  25329. *vp = v
  25330. }
  25331. }
  25332. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, canChange bool,
  25333. d *Decoder) (_ map[uintptr]float32, changed bool) {
  25334. dd, esep := d.d, d.hh.hasElemSeparators()
  25335. containerLen := dd.ReadMapStart()
  25336. if canChange && v == nil {
  25337. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25338. v = make(map[uintptr]float32, xlen)
  25339. changed = true
  25340. }
  25341. if containerLen == 0 {
  25342. dd.ReadMapEnd()
  25343. return v, changed
  25344. }
  25345. var mk uintptr
  25346. var mv float32
  25347. hasLen := containerLen > 0
  25348. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25349. if esep {
  25350. dd.ReadMapElemKey()
  25351. }
  25352. mk = uintptr(dd.DecodeUint(uintBitsize))
  25353. if esep {
  25354. dd.ReadMapElemValue()
  25355. }
  25356. if dd.TryDecodeAsNil() {
  25357. if d.h.DeleteOnNilMapValue {
  25358. delete(v, mk)
  25359. } else {
  25360. v[mk] = 0
  25361. }
  25362. continue
  25363. }
  25364. mv = float32(dd.DecodeFloat(true))
  25365. if v != nil {
  25366. v[mk] = mv
  25367. }
  25368. }
  25369. dd.ReadMapEnd()
  25370. return v, changed
  25371. }
  25372. func (d *Decoder) fastpathDecMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  25373. if rv.Kind() == reflect.Ptr {
  25374. vp := rv2i(rv).(*map[uintptr]float64)
  25375. if v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, true, d); changed {
  25376. *vp = v
  25377. }
  25378. return
  25379. }
  25380. fastpathTV.DecMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), false, d)
  25381. }
  25382. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, d *Decoder) {
  25383. if v, changed := f.DecMapUintptrFloat64V(*vp, true, d); changed {
  25384. *vp = v
  25385. }
  25386. }
  25387. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, canChange bool,
  25388. d *Decoder) (_ map[uintptr]float64, changed bool) {
  25389. dd, esep := d.d, d.hh.hasElemSeparators()
  25390. containerLen := dd.ReadMapStart()
  25391. if canChange && v == nil {
  25392. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25393. v = make(map[uintptr]float64, xlen)
  25394. changed = true
  25395. }
  25396. if containerLen == 0 {
  25397. dd.ReadMapEnd()
  25398. return v, changed
  25399. }
  25400. var mk uintptr
  25401. var mv float64
  25402. hasLen := containerLen > 0
  25403. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25404. if esep {
  25405. dd.ReadMapElemKey()
  25406. }
  25407. mk = uintptr(dd.DecodeUint(uintBitsize))
  25408. if esep {
  25409. dd.ReadMapElemValue()
  25410. }
  25411. if dd.TryDecodeAsNil() {
  25412. if d.h.DeleteOnNilMapValue {
  25413. delete(v, mk)
  25414. } else {
  25415. v[mk] = 0
  25416. }
  25417. continue
  25418. }
  25419. mv = dd.DecodeFloat(false)
  25420. if v != nil {
  25421. v[mk] = mv
  25422. }
  25423. }
  25424. dd.ReadMapEnd()
  25425. return v, changed
  25426. }
  25427. func (d *Decoder) fastpathDecMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  25428. if rv.Kind() == reflect.Ptr {
  25429. vp := rv2i(rv).(*map[uintptr]bool)
  25430. if v, changed := fastpathTV.DecMapUintptrBoolV(*vp, true, d); changed {
  25431. *vp = v
  25432. }
  25433. return
  25434. }
  25435. fastpathTV.DecMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), false, d)
  25436. }
  25437. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, d *Decoder) {
  25438. if v, changed := f.DecMapUintptrBoolV(*vp, true, d); changed {
  25439. *vp = v
  25440. }
  25441. }
  25442. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, canChange bool,
  25443. d *Decoder) (_ map[uintptr]bool, changed bool) {
  25444. dd, esep := d.d, d.hh.hasElemSeparators()
  25445. containerLen := dd.ReadMapStart()
  25446. if canChange && v == nil {
  25447. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25448. v = make(map[uintptr]bool, xlen)
  25449. changed = true
  25450. }
  25451. if containerLen == 0 {
  25452. dd.ReadMapEnd()
  25453. return v, changed
  25454. }
  25455. var mk uintptr
  25456. var mv bool
  25457. hasLen := containerLen > 0
  25458. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25459. if esep {
  25460. dd.ReadMapElemKey()
  25461. }
  25462. mk = uintptr(dd.DecodeUint(uintBitsize))
  25463. if esep {
  25464. dd.ReadMapElemValue()
  25465. }
  25466. if dd.TryDecodeAsNil() {
  25467. if d.h.DeleteOnNilMapValue {
  25468. delete(v, mk)
  25469. } else {
  25470. v[mk] = false
  25471. }
  25472. continue
  25473. }
  25474. mv = dd.DecodeBool()
  25475. if v != nil {
  25476. v[mk] = mv
  25477. }
  25478. }
  25479. dd.ReadMapEnd()
  25480. return v, changed
  25481. }
  25482. func (d *Decoder) fastpathDecMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  25483. if rv.Kind() == reflect.Ptr {
  25484. vp := rv2i(rv).(*map[int]interface{})
  25485. if v, changed := fastpathTV.DecMapIntIntfV(*vp, true, d); changed {
  25486. *vp = v
  25487. }
  25488. return
  25489. }
  25490. fastpathTV.DecMapIntIntfV(rv2i(rv).(map[int]interface{}), false, d)
  25491. }
  25492. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, d *Decoder) {
  25493. if v, changed := f.DecMapIntIntfV(*vp, true, d); changed {
  25494. *vp = v
  25495. }
  25496. }
  25497. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, canChange bool,
  25498. d *Decoder) (_ map[int]interface{}, changed bool) {
  25499. dd, esep := d.d, d.hh.hasElemSeparators()
  25500. containerLen := dd.ReadMapStart()
  25501. if canChange && v == nil {
  25502. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  25503. v = make(map[int]interface{}, xlen)
  25504. changed = true
  25505. }
  25506. if containerLen == 0 {
  25507. dd.ReadMapEnd()
  25508. return v, changed
  25509. }
  25510. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  25511. var mk int
  25512. var mv interface{}
  25513. hasLen := containerLen > 0
  25514. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25515. if esep {
  25516. dd.ReadMapElemKey()
  25517. }
  25518. mk = int(dd.DecodeInt(intBitsize))
  25519. if esep {
  25520. dd.ReadMapElemValue()
  25521. }
  25522. if dd.TryDecodeAsNil() {
  25523. if d.h.DeleteOnNilMapValue {
  25524. delete(v, mk)
  25525. } else {
  25526. v[mk] = nil
  25527. }
  25528. continue
  25529. }
  25530. if mapGet {
  25531. mv = v[mk]
  25532. } else {
  25533. mv = nil
  25534. }
  25535. d.decode(&mv)
  25536. if v != nil {
  25537. v[mk] = mv
  25538. }
  25539. }
  25540. dd.ReadMapEnd()
  25541. return v, changed
  25542. }
  25543. func (d *Decoder) fastpathDecMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  25544. if rv.Kind() == reflect.Ptr {
  25545. vp := rv2i(rv).(*map[int]string)
  25546. if v, changed := fastpathTV.DecMapIntStringV(*vp, true, d); changed {
  25547. *vp = v
  25548. }
  25549. return
  25550. }
  25551. fastpathTV.DecMapIntStringV(rv2i(rv).(map[int]string), false, d)
  25552. }
  25553. func (f fastpathT) DecMapIntStringX(vp *map[int]string, d *Decoder) {
  25554. if v, changed := f.DecMapIntStringV(*vp, true, d); changed {
  25555. *vp = v
  25556. }
  25557. }
  25558. func (_ fastpathT) DecMapIntStringV(v map[int]string, canChange bool,
  25559. d *Decoder) (_ map[int]string, changed bool) {
  25560. dd, esep := d.d, d.hh.hasElemSeparators()
  25561. containerLen := dd.ReadMapStart()
  25562. if canChange && v == nil {
  25563. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  25564. v = make(map[int]string, xlen)
  25565. changed = true
  25566. }
  25567. if containerLen == 0 {
  25568. dd.ReadMapEnd()
  25569. return v, changed
  25570. }
  25571. var mk int
  25572. var mv string
  25573. hasLen := containerLen > 0
  25574. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25575. if esep {
  25576. dd.ReadMapElemKey()
  25577. }
  25578. mk = int(dd.DecodeInt(intBitsize))
  25579. if esep {
  25580. dd.ReadMapElemValue()
  25581. }
  25582. if dd.TryDecodeAsNil() {
  25583. if d.h.DeleteOnNilMapValue {
  25584. delete(v, mk)
  25585. } else {
  25586. v[mk] = ""
  25587. }
  25588. continue
  25589. }
  25590. mv = dd.DecodeString()
  25591. if v != nil {
  25592. v[mk] = mv
  25593. }
  25594. }
  25595. dd.ReadMapEnd()
  25596. return v, changed
  25597. }
  25598. func (d *Decoder) fastpathDecMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  25599. if rv.Kind() == reflect.Ptr {
  25600. vp := rv2i(rv).(*map[int]uint)
  25601. if v, changed := fastpathTV.DecMapIntUintV(*vp, true, d); changed {
  25602. *vp = v
  25603. }
  25604. return
  25605. }
  25606. fastpathTV.DecMapIntUintV(rv2i(rv).(map[int]uint), false, d)
  25607. }
  25608. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, d *Decoder) {
  25609. if v, changed := f.DecMapIntUintV(*vp, true, d); changed {
  25610. *vp = v
  25611. }
  25612. }
  25613. func (_ fastpathT) DecMapIntUintV(v map[int]uint, canChange bool,
  25614. d *Decoder) (_ map[int]uint, changed bool) {
  25615. dd, esep := d.d, d.hh.hasElemSeparators()
  25616. containerLen := dd.ReadMapStart()
  25617. if canChange && v == nil {
  25618. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25619. v = make(map[int]uint, xlen)
  25620. changed = true
  25621. }
  25622. if containerLen == 0 {
  25623. dd.ReadMapEnd()
  25624. return v, changed
  25625. }
  25626. var mk int
  25627. var mv uint
  25628. hasLen := containerLen > 0
  25629. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25630. if esep {
  25631. dd.ReadMapElemKey()
  25632. }
  25633. mk = int(dd.DecodeInt(intBitsize))
  25634. if esep {
  25635. dd.ReadMapElemValue()
  25636. }
  25637. if dd.TryDecodeAsNil() {
  25638. if d.h.DeleteOnNilMapValue {
  25639. delete(v, mk)
  25640. } else {
  25641. v[mk] = 0
  25642. }
  25643. continue
  25644. }
  25645. mv = uint(dd.DecodeUint(uintBitsize))
  25646. if v != nil {
  25647. v[mk] = mv
  25648. }
  25649. }
  25650. dd.ReadMapEnd()
  25651. return v, changed
  25652. }
  25653. func (d *Decoder) fastpathDecMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  25654. if rv.Kind() == reflect.Ptr {
  25655. vp := rv2i(rv).(*map[int]uint8)
  25656. if v, changed := fastpathTV.DecMapIntUint8V(*vp, true, d); changed {
  25657. *vp = v
  25658. }
  25659. return
  25660. }
  25661. fastpathTV.DecMapIntUint8V(rv2i(rv).(map[int]uint8), false, d)
  25662. }
  25663. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, d *Decoder) {
  25664. if v, changed := f.DecMapIntUint8V(*vp, true, d); changed {
  25665. *vp = v
  25666. }
  25667. }
  25668. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, canChange bool,
  25669. d *Decoder) (_ map[int]uint8, changed bool) {
  25670. dd, esep := d.d, d.hh.hasElemSeparators()
  25671. containerLen := dd.ReadMapStart()
  25672. if canChange && v == nil {
  25673. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25674. v = make(map[int]uint8, xlen)
  25675. changed = true
  25676. }
  25677. if containerLen == 0 {
  25678. dd.ReadMapEnd()
  25679. return v, changed
  25680. }
  25681. var mk int
  25682. var mv uint8
  25683. hasLen := containerLen > 0
  25684. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25685. if esep {
  25686. dd.ReadMapElemKey()
  25687. }
  25688. mk = int(dd.DecodeInt(intBitsize))
  25689. if esep {
  25690. dd.ReadMapElemValue()
  25691. }
  25692. if dd.TryDecodeAsNil() {
  25693. if d.h.DeleteOnNilMapValue {
  25694. delete(v, mk)
  25695. } else {
  25696. v[mk] = 0
  25697. }
  25698. continue
  25699. }
  25700. mv = uint8(dd.DecodeUint(8))
  25701. if v != nil {
  25702. v[mk] = mv
  25703. }
  25704. }
  25705. dd.ReadMapEnd()
  25706. return v, changed
  25707. }
  25708. func (d *Decoder) fastpathDecMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  25709. if rv.Kind() == reflect.Ptr {
  25710. vp := rv2i(rv).(*map[int]uint16)
  25711. if v, changed := fastpathTV.DecMapIntUint16V(*vp, true, d); changed {
  25712. *vp = v
  25713. }
  25714. return
  25715. }
  25716. fastpathTV.DecMapIntUint16V(rv2i(rv).(map[int]uint16), false, d)
  25717. }
  25718. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, d *Decoder) {
  25719. if v, changed := f.DecMapIntUint16V(*vp, true, d); changed {
  25720. *vp = v
  25721. }
  25722. }
  25723. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, canChange bool,
  25724. d *Decoder) (_ map[int]uint16, changed bool) {
  25725. dd, esep := d.d, d.hh.hasElemSeparators()
  25726. containerLen := dd.ReadMapStart()
  25727. if canChange && v == nil {
  25728. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25729. v = make(map[int]uint16, xlen)
  25730. changed = true
  25731. }
  25732. if containerLen == 0 {
  25733. dd.ReadMapEnd()
  25734. return v, changed
  25735. }
  25736. var mk int
  25737. var mv uint16
  25738. hasLen := containerLen > 0
  25739. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25740. if esep {
  25741. dd.ReadMapElemKey()
  25742. }
  25743. mk = int(dd.DecodeInt(intBitsize))
  25744. if esep {
  25745. dd.ReadMapElemValue()
  25746. }
  25747. if dd.TryDecodeAsNil() {
  25748. if d.h.DeleteOnNilMapValue {
  25749. delete(v, mk)
  25750. } else {
  25751. v[mk] = 0
  25752. }
  25753. continue
  25754. }
  25755. mv = uint16(dd.DecodeUint(16))
  25756. if v != nil {
  25757. v[mk] = mv
  25758. }
  25759. }
  25760. dd.ReadMapEnd()
  25761. return v, changed
  25762. }
  25763. func (d *Decoder) fastpathDecMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  25764. if rv.Kind() == reflect.Ptr {
  25765. vp := rv2i(rv).(*map[int]uint32)
  25766. if v, changed := fastpathTV.DecMapIntUint32V(*vp, true, d); changed {
  25767. *vp = v
  25768. }
  25769. return
  25770. }
  25771. fastpathTV.DecMapIntUint32V(rv2i(rv).(map[int]uint32), false, d)
  25772. }
  25773. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, d *Decoder) {
  25774. if v, changed := f.DecMapIntUint32V(*vp, true, d); changed {
  25775. *vp = v
  25776. }
  25777. }
  25778. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, canChange bool,
  25779. d *Decoder) (_ map[int]uint32, changed bool) {
  25780. dd, esep := d.d, d.hh.hasElemSeparators()
  25781. containerLen := dd.ReadMapStart()
  25782. if canChange && v == nil {
  25783. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25784. v = make(map[int]uint32, xlen)
  25785. changed = true
  25786. }
  25787. if containerLen == 0 {
  25788. dd.ReadMapEnd()
  25789. return v, changed
  25790. }
  25791. var mk int
  25792. var mv uint32
  25793. hasLen := containerLen > 0
  25794. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25795. if esep {
  25796. dd.ReadMapElemKey()
  25797. }
  25798. mk = int(dd.DecodeInt(intBitsize))
  25799. if esep {
  25800. dd.ReadMapElemValue()
  25801. }
  25802. if dd.TryDecodeAsNil() {
  25803. if d.h.DeleteOnNilMapValue {
  25804. delete(v, mk)
  25805. } else {
  25806. v[mk] = 0
  25807. }
  25808. continue
  25809. }
  25810. mv = uint32(dd.DecodeUint(32))
  25811. if v != nil {
  25812. v[mk] = mv
  25813. }
  25814. }
  25815. dd.ReadMapEnd()
  25816. return v, changed
  25817. }
  25818. func (d *Decoder) fastpathDecMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  25819. if rv.Kind() == reflect.Ptr {
  25820. vp := rv2i(rv).(*map[int]uint64)
  25821. if v, changed := fastpathTV.DecMapIntUint64V(*vp, true, d); changed {
  25822. *vp = v
  25823. }
  25824. return
  25825. }
  25826. fastpathTV.DecMapIntUint64V(rv2i(rv).(map[int]uint64), false, d)
  25827. }
  25828. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, d *Decoder) {
  25829. if v, changed := f.DecMapIntUint64V(*vp, true, d); changed {
  25830. *vp = v
  25831. }
  25832. }
  25833. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, canChange bool,
  25834. d *Decoder) (_ map[int]uint64, changed bool) {
  25835. dd, esep := d.d, d.hh.hasElemSeparators()
  25836. containerLen := dd.ReadMapStart()
  25837. if canChange && v == nil {
  25838. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25839. v = make(map[int]uint64, xlen)
  25840. changed = true
  25841. }
  25842. if containerLen == 0 {
  25843. dd.ReadMapEnd()
  25844. return v, changed
  25845. }
  25846. var mk int
  25847. var mv uint64
  25848. hasLen := containerLen > 0
  25849. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25850. if esep {
  25851. dd.ReadMapElemKey()
  25852. }
  25853. mk = int(dd.DecodeInt(intBitsize))
  25854. if esep {
  25855. dd.ReadMapElemValue()
  25856. }
  25857. if dd.TryDecodeAsNil() {
  25858. if d.h.DeleteOnNilMapValue {
  25859. delete(v, mk)
  25860. } else {
  25861. v[mk] = 0
  25862. }
  25863. continue
  25864. }
  25865. mv = dd.DecodeUint(64)
  25866. if v != nil {
  25867. v[mk] = mv
  25868. }
  25869. }
  25870. dd.ReadMapEnd()
  25871. return v, changed
  25872. }
  25873. func (d *Decoder) fastpathDecMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  25874. if rv.Kind() == reflect.Ptr {
  25875. vp := rv2i(rv).(*map[int]uintptr)
  25876. if v, changed := fastpathTV.DecMapIntUintptrV(*vp, true, d); changed {
  25877. *vp = v
  25878. }
  25879. return
  25880. }
  25881. fastpathTV.DecMapIntUintptrV(rv2i(rv).(map[int]uintptr), false, d)
  25882. }
  25883. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, d *Decoder) {
  25884. if v, changed := f.DecMapIntUintptrV(*vp, true, d); changed {
  25885. *vp = v
  25886. }
  25887. }
  25888. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, canChange bool,
  25889. d *Decoder) (_ map[int]uintptr, changed bool) {
  25890. dd, esep := d.d, d.hh.hasElemSeparators()
  25891. containerLen := dd.ReadMapStart()
  25892. if canChange && v == nil {
  25893. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25894. v = make(map[int]uintptr, xlen)
  25895. changed = true
  25896. }
  25897. if containerLen == 0 {
  25898. dd.ReadMapEnd()
  25899. return v, changed
  25900. }
  25901. var mk int
  25902. var mv uintptr
  25903. hasLen := containerLen > 0
  25904. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25905. if esep {
  25906. dd.ReadMapElemKey()
  25907. }
  25908. mk = int(dd.DecodeInt(intBitsize))
  25909. if esep {
  25910. dd.ReadMapElemValue()
  25911. }
  25912. if dd.TryDecodeAsNil() {
  25913. if d.h.DeleteOnNilMapValue {
  25914. delete(v, mk)
  25915. } else {
  25916. v[mk] = 0
  25917. }
  25918. continue
  25919. }
  25920. mv = uintptr(dd.DecodeUint(uintBitsize))
  25921. if v != nil {
  25922. v[mk] = mv
  25923. }
  25924. }
  25925. dd.ReadMapEnd()
  25926. return v, changed
  25927. }
  25928. func (d *Decoder) fastpathDecMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  25929. if rv.Kind() == reflect.Ptr {
  25930. vp := rv2i(rv).(*map[int]int)
  25931. if v, changed := fastpathTV.DecMapIntIntV(*vp, true, d); changed {
  25932. *vp = v
  25933. }
  25934. return
  25935. }
  25936. fastpathTV.DecMapIntIntV(rv2i(rv).(map[int]int), false, d)
  25937. }
  25938. func (f fastpathT) DecMapIntIntX(vp *map[int]int, d *Decoder) {
  25939. if v, changed := f.DecMapIntIntV(*vp, true, d); changed {
  25940. *vp = v
  25941. }
  25942. }
  25943. func (_ fastpathT) DecMapIntIntV(v map[int]int, canChange bool,
  25944. d *Decoder) (_ map[int]int, changed bool) {
  25945. dd, esep := d.d, d.hh.hasElemSeparators()
  25946. containerLen := dd.ReadMapStart()
  25947. if canChange && v == nil {
  25948. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25949. v = make(map[int]int, xlen)
  25950. changed = true
  25951. }
  25952. if containerLen == 0 {
  25953. dd.ReadMapEnd()
  25954. return v, changed
  25955. }
  25956. var mk int
  25957. var mv int
  25958. hasLen := containerLen > 0
  25959. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25960. if esep {
  25961. dd.ReadMapElemKey()
  25962. }
  25963. mk = int(dd.DecodeInt(intBitsize))
  25964. if esep {
  25965. dd.ReadMapElemValue()
  25966. }
  25967. if dd.TryDecodeAsNil() {
  25968. if d.h.DeleteOnNilMapValue {
  25969. delete(v, mk)
  25970. } else {
  25971. v[mk] = 0
  25972. }
  25973. continue
  25974. }
  25975. mv = int(dd.DecodeInt(intBitsize))
  25976. if v != nil {
  25977. v[mk] = mv
  25978. }
  25979. }
  25980. dd.ReadMapEnd()
  25981. return v, changed
  25982. }
  25983. func (d *Decoder) fastpathDecMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  25984. if rv.Kind() == reflect.Ptr {
  25985. vp := rv2i(rv).(*map[int]int8)
  25986. if v, changed := fastpathTV.DecMapIntInt8V(*vp, true, d); changed {
  25987. *vp = v
  25988. }
  25989. return
  25990. }
  25991. fastpathTV.DecMapIntInt8V(rv2i(rv).(map[int]int8), false, d)
  25992. }
  25993. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, d *Decoder) {
  25994. if v, changed := f.DecMapIntInt8V(*vp, true, d); changed {
  25995. *vp = v
  25996. }
  25997. }
  25998. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, canChange bool,
  25999. d *Decoder) (_ map[int]int8, changed bool) {
  26000. dd, esep := d.d, d.hh.hasElemSeparators()
  26001. containerLen := dd.ReadMapStart()
  26002. if canChange && v == nil {
  26003. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26004. v = make(map[int]int8, xlen)
  26005. changed = true
  26006. }
  26007. if containerLen == 0 {
  26008. dd.ReadMapEnd()
  26009. return v, changed
  26010. }
  26011. var mk int
  26012. var mv int8
  26013. hasLen := containerLen > 0
  26014. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26015. if esep {
  26016. dd.ReadMapElemKey()
  26017. }
  26018. mk = int(dd.DecodeInt(intBitsize))
  26019. if esep {
  26020. dd.ReadMapElemValue()
  26021. }
  26022. if dd.TryDecodeAsNil() {
  26023. if d.h.DeleteOnNilMapValue {
  26024. delete(v, mk)
  26025. } else {
  26026. v[mk] = 0
  26027. }
  26028. continue
  26029. }
  26030. mv = int8(dd.DecodeInt(8))
  26031. if v != nil {
  26032. v[mk] = mv
  26033. }
  26034. }
  26035. dd.ReadMapEnd()
  26036. return v, changed
  26037. }
  26038. func (d *Decoder) fastpathDecMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  26039. if rv.Kind() == reflect.Ptr {
  26040. vp := rv2i(rv).(*map[int]int16)
  26041. if v, changed := fastpathTV.DecMapIntInt16V(*vp, true, d); changed {
  26042. *vp = v
  26043. }
  26044. return
  26045. }
  26046. fastpathTV.DecMapIntInt16V(rv2i(rv).(map[int]int16), false, d)
  26047. }
  26048. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, d *Decoder) {
  26049. if v, changed := f.DecMapIntInt16V(*vp, true, d); changed {
  26050. *vp = v
  26051. }
  26052. }
  26053. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, canChange bool,
  26054. d *Decoder) (_ map[int]int16, changed bool) {
  26055. dd, esep := d.d, d.hh.hasElemSeparators()
  26056. containerLen := dd.ReadMapStart()
  26057. if canChange && v == nil {
  26058. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26059. v = make(map[int]int16, xlen)
  26060. changed = true
  26061. }
  26062. if containerLen == 0 {
  26063. dd.ReadMapEnd()
  26064. return v, changed
  26065. }
  26066. var mk int
  26067. var mv int16
  26068. hasLen := containerLen > 0
  26069. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26070. if esep {
  26071. dd.ReadMapElemKey()
  26072. }
  26073. mk = int(dd.DecodeInt(intBitsize))
  26074. if esep {
  26075. dd.ReadMapElemValue()
  26076. }
  26077. if dd.TryDecodeAsNil() {
  26078. if d.h.DeleteOnNilMapValue {
  26079. delete(v, mk)
  26080. } else {
  26081. v[mk] = 0
  26082. }
  26083. continue
  26084. }
  26085. mv = int16(dd.DecodeInt(16))
  26086. if v != nil {
  26087. v[mk] = mv
  26088. }
  26089. }
  26090. dd.ReadMapEnd()
  26091. return v, changed
  26092. }
  26093. func (d *Decoder) fastpathDecMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  26094. if rv.Kind() == reflect.Ptr {
  26095. vp := rv2i(rv).(*map[int]int32)
  26096. if v, changed := fastpathTV.DecMapIntInt32V(*vp, true, d); changed {
  26097. *vp = v
  26098. }
  26099. return
  26100. }
  26101. fastpathTV.DecMapIntInt32V(rv2i(rv).(map[int]int32), false, d)
  26102. }
  26103. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, d *Decoder) {
  26104. if v, changed := f.DecMapIntInt32V(*vp, true, d); changed {
  26105. *vp = v
  26106. }
  26107. }
  26108. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, canChange bool,
  26109. d *Decoder) (_ map[int]int32, changed bool) {
  26110. dd, esep := d.d, d.hh.hasElemSeparators()
  26111. containerLen := dd.ReadMapStart()
  26112. if canChange && v == nil {
  26113. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26114. v = make(map[int]int32, xlen)
  26115. changed = true
  26116. }
  26117. if containerLen == 0 {
  26118. dd.ReadMapEnd()
  26119. return v, changed
  26120. }
  26121. var mk int
  26122. var mv int32
  26123. hasLen := containerLen > 0
  26124. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26125. if esep {
  26126. dd.ReadMapElemKey()
  26127. }
  26128. mk = int(dd.DecodeInt(intBitsize))
  26129. if esep {
  26130. dd.ReadMapElemValue()
  26131. }
  26132. if dd.TryDecodeAsNil() {
  26133. if d.h.DeleteOnNilMapValue {
  26134. delete(v, mk)
  26135. } else {
  26136. v[mk] = 0
  26137. }
  26138. continue
  26139. }
  26140. mv = int32(dd.DecodeInt(32))
  26141. if v != nil {
  26142. v[mk] = mv
  26143. }
  26144. }
  26145. dd.ReadMapEnd()
  26146. return v, changed
  26147. }
  26148. func (d *Decoder) fastpathDecMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  26149. if rv.Kind() == reflect.Ptr {
  26150. vp := rv2i(rv).(*map[int]int64)
  26151. if v, changed := fastpathTV.DecMapIntInt64V(*vp, true, d); changed {
  26152. *vp = v
  26153. }
  26154. return
  26155. }
  26156. fastpathTV.DecMapIntInt64V(rv2i(rv).(map[int]int64), false, d)
  26157. }
  26158. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, d *Decoder) {
  26159. if v, changed := f.DecMapIntInt64V(*vp, true, d); changed {
  26160. *vp = v
  26161. }
  26162. }
  26163. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, canChange bool,
  26164. d *Decoder) (_ map[int]int64, changed bool) {
  26165. dd, esep := d.d, d.hh.hasElemSeparators()
  26166. containerLen := dd.ReadMapStart()
  26167. if canChange && v == nil {
  26168. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26169. v = make(map[int]int64, xlen)
  26170. changed = true
  26171. }
  26172. if containerLen == 0 {
  26173. dd.ReadMapEnd()
  26174. return v, changed
  26175. }
  26176. var mk int
  26177. var mv int64
  26178. hasLen := containerLen > 0
  26179. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26180. if esep {
  26181. dd.ReadMapElemKey()
  26182. }
  26183. mk = int(dd.DecodeInt(intBitsize))
  26184. if esep {
  26185. dd.ReadMapElemValue()
  26186. }
  26187. if dd.TryDecodeAsNil() {
  26188. if d.h.DeleteOnNilMapValue {
  26189. delete(v, mk)
  26190. } else {
  26191. v[mk] = 0
  26192. }
  26193. continue
  26194. }
  26195. mv = dd.DecodeInt(64)
  26196. if v != nil {
  26197. v[mk] = mv
  26198. }
  26199. }
  26200. dd.ReadMapEnd()
  26201. return v, changed
  26202. }
  26203. func (d *Decoder) fastpathDecMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  26204. if rv.Kind() == reflect.Ptr {
  26205. vp := rv2i(rv).(*map[int]float32)
  26206. if v, changed := fastpathTV.DecMapIntFloat32V(*vp, true, d); changed {
  26207. *vp = v
  26208. }
  26209. return
  26210. }
  26211. fastpathTV.DecMapIntFloat32V(rv2i(rv).(map[int]float32), false, d)
  26212. }
  26213. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, d *Decoder) {
  26214. if v, changed := f.DecMapIntFloat32V(*vp, true, d); changed {
  26215. *vp = v
  26216. }
  26217. }
  26218. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, canChange bool,
  26219. d *Decoder) (_ map[int]float32, changed bool) {
  26220. dd, esep := d.d, d.hh.hasElemSeparators()
  26221. containerLen := dd.ReadMapStart()
  26222. if canChange && v == nil {
  26223. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26224. v = make(map[int]float32, xlen)
  26225. changed = true
  26226. }
  26227. if containerLen == 0 {
  26228. dd.ReadMapEnd()
  26229. return v, changed
  26230. }
  26231. var mk int
  26232. var mv float32
  26233. hasLen := containerLen > 0
  26234. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26235. if esep {
  26236. dd.ReadMapElemKey()
  26237. }
  26238. mk = int(dd.DecodeInt(intBitsize))
  26239. if esep {
  26240. dd.ReadMapElemValue()
  26241. }
  26242. if dd.TryDecodeAsNil() {
  26243. if d.h.DeleteOnNilMapValue {
  26244. delete(v, mk)
  26245. } else {
  26246. v[mk] = 0
  26247. }
  26248. continue
  26249. }
  26250. mv = float32(dd.DecodeFloat(true))
  26251. if v != nil {
  26252. v[mk] = mv
  26253. }
  26254. }
  26255. dd.ReadMapEnd()
  26256. return v, changed
  26257. }
  26258. func (d *Decoder) fastpathDecMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  26259. if rv.Kind() == reflect.Ptr {
  26260. vp := rv2i(rv).(*map[int]float64)
  26261. if v, changed := fastpathTV.DecMapIntFloat64V(*vp, true, d); changed {
  26262. *vp = v
  26263. }
  26264. return
  26265. }
  26266. fastpathTV.DecMapIntFloat64V(rv2i(rv).(map[int]float64), false, d)
  26267. }
  26268. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, d *Decoder) {
  26269. if v, changed := f.DecMapIntFloat64V(*vp, true, d); changed {
  26270. *vp = v
  26271. }
  26272. }
  26273. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, canChange bool,
  26274. d *Decoder) (_ map[int]float64, changed bool) {
  26275. dd, esep := d.d, d.hh.hasElemSeparators()
  26276. containerLen := dd.ReadMapStart()
  26277. if canChange && v == nil {
  26278. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26279. v = make(map[int]float64, xlen)
  26280. changed = true
  26281. }
  26282. if containerLen == 0 {
  26283. dd.ReadMapEnd()
  26284. return v, changed
  26285. }
  26286. var mk int
  26287. var mv float64
  26288. hasLen := containerLen > 0
  26289. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26290. if esep {
  26291. dd.ReadMapElemKey()
  26292. }
  26293. mk = int(dd.DecodeInt(intBitsize))
  26294. if esep {
  26295. dd.ReadMapElemValue()
  26296. }
  26297. if dd.TryDecodeAsNil() {
  26298. if d.h.DeleteOnNilMapValue {
  26299. delete(v, mk)
  26300. } else {
  26301. v[mk] = 0
  26302. }
  26303. continue
  26304. }
  26305. mv = dd.DecodeFloat(false)
  26306. if v != nil {
  26307. v[mk] = mv
  26308. }
  26309. }
  26310. dd.ReadMapEnd()
  26311. return v, changed
  26312. }
  26313. func (d *Decoder) fastpathDecMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  26314. if rv.Kind() == reflect.Ptr {
  26315. vp := rv2i(rv).(*map[int]bool)
  26316. if v, changed := fastpathTV.DecMapIntBoolV(*vp, true, d); changed {
  26317. *vp = v
  26318. }
  26319. return
  26320. }
  26321. fastpathTV.DecMapIntBoolV(rv2i(rv).(map[int]bool), false, d)
  26322. }
  26323. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, d *Decoder) {
  26324. if v, changed := f.DecMapIntBoolV(*vp, true, d); changed {
  26325. *vp = v
  26326. }
  26327. }
  26328. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, canChange bool,
  26329. d *Decoder) (_ map[int]bool, changed bool) {
  26330. dd, esep := d.d, d.hh.hasElemSeparators()
  26331. containerLen := dd.ReadMapStart()
  26332. if canChange && v == nil {
  26333. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26334. v = make(map[int]bool, xlen)
  26335. changed = true
  26336. }
  26337. if containerLen == 0 {
  26338. dd.ReadMapEnd()
  26339. return v, changed
  26340. }
  26341. var mk int
  26342. var mv bool
  26343. hasLen := containerLen > 0
  26344. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26345. if esep {
  26346. dd.ReadMapElemKey()
  26347. }
  26348. mk = int(dd.DecodeInt(intBitsize))
  26349. if esep {
  26350. dd.ReadMapElemValue()
  26351. }
  26352. if dd.TryDecodeAsNil() {
  26353. if d.h.DeleteOnNilMapValue {
  26354. delete(v, mk)
  26355. } else {
  26356. v[mk] = false
  26357. }
  26358. continue
  26359. }
  26360. mv = dd.DecodeBool()
  26361. if v != nil {
  26362. v[mk] = mv
  26363. }
  26364. }
  26365. dd.ReadMapEnd()
  26366. return v, changed
  26367. }
  26368. func (d *Decoder) fastpathDecMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  26369. if rv.Kind() == reflect.Ptr {
  26370. vp := rv2i(rv).(*map[int8]interface{})
  26371. if v, changed := fastpathTV.DecMapInt8IntfV(*vp, true, d); changed {
  26372. *vp = v
  26373. }
  26374. return
  26375. }
  26376. fastpathTV.DecMapInt8IntfV(rv2i(rv).(map[int8]interface{}), false, d)
  26377. }
  26378. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, d *Decoder) {
  26379. if v, changed := f.DecMapInt8IntfV(*vp, true, d); changed {
  26380. *vp = v
  26381. }
  26382. }
  26383. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, canChange bool,
  26384. d *Decoder) (_ map[int8]interface{}, changed bool) {
  26385. dd, esep := d.d, d.hh.hasElemSeparators()
  26386. containerLen := dd.ReadMapStart()
  26387. if canChange && v == nil {
  26388. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  26389. v = make(map[int8]interface{}, xlen)
  26390. changed = true
  26391. }
  26392. if containerLen == 0 {
  26393. dd.ReadMapEnd()
  26394. return v, changed
  26395. }
  26396. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  26397. var mk int8
  26398. var mv interface{}
  26399. hasLen := containerLen > 0
  26400. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26401. if esep {
  26402. dd.ReadMapElemKey()
  26403. }
  26404. mk = int8(dd.DecodeInt(8))
  26405. if esep {
  26406. dd.ReadMapElemValue()
  26407. }
  26408. if dd.TryDecodeAsNil() {
  26409. if d.h.DeleteOnNilMapValue {
  26410. delete(v, mk)
  26411. } else {
  26412. v[mk] = nil
  26413. }
  26414. continue
  26415. }
  26416. if mapGet {
  26417. mv = v[mk]
  26418. } else {
  26419. mv = nil
  26420. }
  26421. d.decode(&mv)
  26422. if v != nil {
  26423. v[mk] = mv
  26424. }
  26425. }
  26426. dd.ReadMapEnd()
  26427. return v, changed
  26428. }
  26429. func (d *Decoder) fastpathDecMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  26430. if rv.Kind() == reflect.Ptr {
  26431. vp := rv2i(rv).(*map[int8]string)
  26432. if v, changed := fastpathTV.DecMapInt8StringV(*vp, true, d); changed {
  26433. *vp = v
  26434. }
  26435. return
  26436. }
  26437. fastpathTV.DecMapInt8StringV(rv2i(rv).(map[int8]string), false, d)
  26438. }
  26439. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, d *Decoder) {
  26440. if v, changed := f.DecMapInt8StringV(*vp, true, d); changed {
  26441. *vp = v
  26442. }
  26443. }
  26444. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, canChange bool,
  26445. d *Decoder) (_ map[int8]string, changed bool) {
  26446. dd, esep := d.d, d.hh.hasElemSeparators()
  26447. containerLen := dd.ReadMapStart()
  26448. if canChange && v == nil {
  26449. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  26450. v = make(map[int8]string, xlen)
  26451. changed = true
  26452. }
  26453. if containerLen == 0 {
  26454. dd.ReadMapEnd()
  26455. return v, changed
  26456. }
  26457. var mk int8
  26458. var mv string
  26459. hasLen := containerLen > 0
  26460. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26461. if esep {
  26462. dd.ReadMapElemKey()
  26463. }
  26464. mk = int8(dd.DecodeInt(8))
  26465. if esep {
  26466. dd.ReadMapElemValue()
  26467. }
  26468. if dd.TryDecodeAsNil() {
  26469. if d.h.DeleteOnNilMapValue {
  26470. delete(v, mk)
  26471. } else {
  26472. v[mk] = ""
  26473. }
  26474. continue
  26475. }
  26476. mv = dd.DecodeString()
  26477. if v != nil {
  26478. v[mk] = mv
  26479. }
  26480. }
  26481. dd.ReadMapEnd()
  26482. return v, changed
  26483. }
  26484. func (d *Decoder) fastpathDecMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  26485. if rv.Kind() == reflect.Ptr {
  26486. vp := rv2i(rv).(*map[int8]uint)
  26487. if v, changed := fastpathTV.DecMapInt8UintV(*vp, true, d); changed {
  26488. *vp = v
  26489. }
  26490. return
  26491. }
  26492. fastpathTV.DecMapInt8UintV(rv2i(rv).(map[int8]uint), false, d)
  26493. }
  26494. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, d *Decoder) {
  26495. if v, changed := f.DecMapInt8UintV(*vp, true, d); changed {
  26496. *vp = v
  26497. }
  26498. }
  26499. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, canChange bool,
  26500. d *Decoder) (_ map[int8]uint, changed bool) {
  26501. dd, esep := d.d, d.hh.hasElemSeparators()
  26502. containerLen := dd.ReadMapStart()
  26503. if canChange && v == nil {
  26504. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26505. v = make(map[int8]uint, xlen)
  26506. changed = true
  26507. }
  26508. if containerLen == 0 {
  26509. dd.ReadMapEnd()
  26510. return v, changed
  26511. }
  26512. var mk int8
  26513. var mv uint
  26514. hasLen := containerLen > 0
  26515. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26516. if esep {
  26517. dd.ReadMapElemKey()
  26518. }
  26519. mk = int8(dd.DecodeInt(8))
  26520. if esep {
  26521. dd.ReadMapElemValue()
  26522. }
  26523. if dd.TryDecodeAsNil() {
  26524. if d.h.DeleteOnNilMapValue {
  26525. delete(v, mk)
  26526. } else {
  26527. v[mk] = 0
  26528. }
  26529. continue
  26530. }
  26531. mv = uint(dd.DecodeUint(uintBitsize))
  26532. if v != nil {
  26533. v[mk] = mv
  26534. }
  26535. }
  26536. dd.ReadMapEnd()
  26537. return v, changed
  26538. }
  26539. func (d *Decoder) fastpathDecMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  26540. if rv.Kind() == reflect.Ptr {
  26541. vp := rv2i(rv).(*map[int8]uint8)
  26542. if v, changed := fastpathTV.DecMapInt8Uint8V(*vp, true, d); changed {
  26543. *vp = v
  26544. }
  26545. return
  26546. }
  26547. fastpathTV.DecMapInt8Uint8V(rv2i(rv).(map[int8]uint8), false, d)
  26548. }
  26549. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, d *Decoder) {
  26550. if v, changed := f.DecMapInt8Uint8V(*vp, true, d); changed {
  26551. *vp = v
  26552. }
  26553. }
  26554. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, canChange bool,
  26555. d *Decoder) (_ map[int8]uint8, changed bool) {
  26556. dd, esep := d.d, d.hh.hasElemSeparators()
  26557. containerLen := dd.ReadMapStart()
  26558. if canChange && v == nil {
  26559. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  26560. v = make(map[int8]uint8, xlen)
  26561. changed = true
  26562. }
  26563. if containerLen == 0 {
  26564. dd.ReadMapEnd()
  26565. return v, changed
  26566. }
  26567. var mk int8
  26568. var mv uint8
  26569. hasLen := containerLen > 0
  26570. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26571. if esep {
  26572. dd.ReadMapElemKey()
  26573. }
  26574. mk = int8(dd.DecodeInt(8))
  26575. if esep {
  26576. dd.ReadMapElemValue()
  26577. }
  26578. if dd.TryDecodeAsNil() {
  26579. if d.h.DeleteOnNilMapValue {
  26580. delete(v, mk)
  26581. } else {
  26582. v[mk] = 0
  26583. }
  26584. continue
  26585. }
  26586. mv = uint8(dd.DecodeUint(8))
  26587. if v != nil {
  26588. v[mk] = mv
  26589. }
  26590. }
  26591. dd.ReadMapEnd()
  26592. return v, changed
  26593. }
  26594. func (d *Decoder) fastpathDecMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  26595. if rv.Kind() == reflect.Ptr {
  26596. vp := rv2i(rv).(*map[int8]uint16)
  26597. if v, changed := fastpathTV.DecMapInt8Uint16V(*vp, true, d); changed {
  26598. *vp = v
  26599. }
  26600. return
  26601. }
  26602. fastpathTV.DecMapInt8Uint16V(rv2i(rv).(map[int8]uint16), false, d)
  26603. }
  26604. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, d *Decoder) {
  26605. if v, changed := f.DecMapInt8Uint16V(*vp, true, d); changed {
  26606. *vp = v
  26607. }
  26608. }
  26609. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, canChange bool,
  26610. d *Decoder) (_ map[int8]uint16, changed bool) {
  26611. dd, esep := d.d, d.hh.hasElemSeparators()
  26612. containerLen := dd.ReadMapStart()
  26613. if canChange && v == nil {
  26614. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  26615. v = make(map[int8]uint16, xlen)
  26616. changed = true
  26617. }
  26618. if containerLen == 0 {
  26619. dd.ReadMapEnd()
  26620. return v, changed
  26621. }
  26622. var mk int8
  26623. var mv uint16
  26624. hasLen := containerLen > 0
  26625. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26626. if esep {
  26627. dd.ReadMapElemKey()
  26628. }
  26629. mk = int8(dd.DecodeInt(8))
  26630. if esep {
  26631. dd.ReadMapElemValue()
  26632. }
  26633. if dd.TryDecodeAsNil() {
  26634. if d.h.DeleteOnNilMapValue {
  26635. delete(v, mk)
  26636. } else {
  26637. v[mk] = 0
  26638. }
  26639. continue
  26640. }
  26641. mv = uint16(dd.DecodeUint(16))
  26642. if v != nil {
  26643. v[mk] = mv
  26644. }
  26645. }
  26646. dd.ReadMapEnd()
  26647. return v, changed
  26648. }
  26649. func (d *Decoder) fastpathDecMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  26650. if rv.Kind() == reflect.Ptr {
  26651. vp := rv2i(rv).(*map[int8]uint32)
  26652. if v, changed := fastpathTV.DecMapInt8Uint32V(*vp, true, d); changed {
  26653. *vp = v
  26654. }
  26655. return
  26656. }
  26657. fastpathTV.DecMapInt8Uint32V(rv2i(rv).(map[int8]uint32), false, d)
  26658. }
  26659. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, d *Decoder) {
  26660. if v, changed := f.DecMapInt8Uint32V(*vp, true, d); changed {
  26661. *vp = v
  26662. }
  26663. }
  26664. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, canChange bool,
  26665. d *Decoder) (_ map[int8]uint32, changed bool) {
  26666. dd, esep := d.d, d.hh.hasElemSeparators()
  26667. containerLen := dd.ReadMapStart()
  26668. if canChange && v == nil {
  26669. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26670. v = make(map[int8]uint32, xlen)
  26671. changed = true
  26672. }
  26673. if containerLen == 0 {
  26674. dd.ReadMapEnd()
  26675. return v, changed
  26676. }
  26677. var mk int8
  26678. var mv uint32
  26679. hasLen := containerLen > 0
  26680. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26681. if esep {
  26682. dd.ReadMapElemKey()
  26683. }
  26684. mk = int8(dd.DecodeInt(8))
  26685. if esep {
  26686. dd.ReadMapElemValue()
  26687. }
  26688. if dd.TryDecodeAsNil() {
  26689. if d.h.DeleteOnNilMapValue {
  26690. delete(v, mk)
  26691. } else {
  26692. v[mk] = 0
  26693. }
  26694. continue
  26695. }
  26696. mv = uint32(dd.DecodeUint(32))
  26697. if v != nil {
  26698. v[mk] = mv
  26699. }
  26700. }
  26701. dd.ReadMapEnd()
  26702. return v, changed
  26703. }
  26704. func (d *Decoder) fastpathDecMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  26705. if rv.Kind() == reflect.Ptr {
  26706. vp := rv2i(rv).(*map[int8]uint64)
  26707. if v, changed := fastpathTV.DecMapInt8Uint64V(*vp, true, d); changed {
  26708. *vp = v
  26709. }
  26710. return
  26711. }
  26712. fastpathTV.DecMapInt8Uint64V(rv2i(rv).(map[int8]uint64), false, d)
  26713. }
  26714. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, d *Decoder) {
  26715. if v, changed := f.DecMapInt8Uint64V(*vp, true, d); changed {
  26716. *vp = v
  26717. }
  26718. }
  26719. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, canChange bool,
  26720. d *Decoder) (_ map[int8]uint64, changed bool) {
  26721. dd, esep := d.d, d.hh.hasElemSeparators()
  26722. containerLen := dd.ReadMapStart()
  26723. if canChange && v == nil {
  26724. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26725. v = make(map[int8]uint64, xlen)
  26726. changed = true
  26727. }
  26728. if containerLen == 0 {
  26729. dd.ReadMapEnd()
  26730. return v, changed
  26731. }
  26732. var mk int8
  26733. var mv uint64
  26734. hasLen := containerLen > 0
  26735. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26736. if esep {
  26737. dd.ReadMapElemKey()
  26738. }
  26739. mk = int8(dd.DecodeInt(8))
  26740. if esep {
  26741. dd.ReadMapElemValue()
  26742. }
  26743. if dd.TryDecodeAsNil() {
  26744. if d.h.DeleteOnNilMapValue {
  26745. delete(v, mk)
  26746. } else {
  26747. v[mk] = 0
  26748. }
  26749. continue
  26750. }
  26751. mv = dd.DecodeUint(64)
  26752. if v != nil {
  26753. v[mk] = mv
  26754. }
  26755. }
  26756. dd.ReadMapEnd()
  26757. return v, changed
  26758. }
  26759. func (d *Decoder) fastpathDecMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  26760. if rv.Kind() == reflect.Ptr {
  26761. vp := rv2i(rv).(*map[int8]uintptr)
  26762. if v, changed := fastpathTV.DecMapInt8UintptrV(*vp, true, d); changed {
  26763. *vp = v
  26764. }
  26765. return
  26766. }
  26767. fastpathTV.DecMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), false, d)
  26768. }
  26769. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, d *Decoder) {
  26770. if v, changed := f.DecMapInt8UintptrV(*vp, true, d); changed {
  26771. *vp = v
  26772. }
  26773. }
  26774. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, canChange bool,
  26775. d *Decoder) (_ map[int8]uintptr, changed bool) {
  26776. dd, esep := d.d, d.hh.hasElemSeparators()
  26777. containerLen := dd.ReadMapStart()
  26778. if canChange && v == nil {
  26779. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26780. v = make(map[int8]uintptr, xlen)
  26781. changed = true
  26782. }
  26783. if containerLen == 0 {
  26784. dd.ReadMapEnd()
  26785. return v, changed
  26786. }
  26787. var mk int8
  26788. var mv uintptr
  26789. hasLen := containerLen > 0
  26790. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26791. if esep {
  26792. dd.ReadMapElemKey()
  26793. }
  26794. mk = int8(dd.DecodeInt(8))
  26795. if esep {
  26796. dd.ReadMapElemValue()
  26797. }
  26798. if dd.TryDecodeAsNil() {
  26799. if d.h.DeleteOnNilMapValue {
  26800. delete(v, mk)
  26801. } else {
  26802. v[mk] = 0
  26803. }
  26804. continue
  26805. }
  26806. mv = uintptr(dd.DecodeUint(uintBitsize))
  26807. if v != nil {
  26808. v[mk] = mv
  26809. }
  26810. }
  26811. dd.ReadMapEnd()
  26812. return v, changed
  26813. }
  26814. func (d *Decoder) fastpathDecMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  26815. if rv.Kind() == reflect.Ptr {
  26816. vp := rv2i(rv).(*map[int8]int)
  26817. if v, changed := fastpathTV.DecMapInt8IntV(*vp, true, d); changed {
  26818. *vp = v
  26819. }
  26820. return
  26821. }
  26822. fastpathTV.DecMapInt8IntV(rv2i(rv).(map[int8]int), false, d)
  26823. }
  26824. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, d *Decoder) {
  26825. if v, changed := f.DecMapInt8IntV(*vp, true, d); changed {
  26826. *vp = v
  26827. }
  26828. }
  26829. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, canChange bool,
  26830. d *Decoder) (_ map[int8]int, changed bool) {
  26831. dd, esep := d.d, d.hh.hasElemSeparators()
  26832. containerLen := dd.ReadMapStart()
  26833. if canChange && v == nil {
  26834. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26835. v = make(map[int8]int, xlen)
  26836. changed = true
  26837. }
  26838. if containerLen == 0 {
  26839. dd.ReadMapEnd()
  26840. return v, changed
  26841. }
  26842. var mk int8
  26843. var mv int
  26844. hasLen := containerLen > 0
  26845. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26846. if esep {
  26847. dd.ReadMapElemKey()
  26848. }
  26849. mk = int8(dd.DecodeInt(8))
  26850. if esep {
  26851. dd.ReadMapElemValue()
  26852. }
  26853. if dd.TryDecodeAsNil() {
  26854. if d.h.DeleteOnNilMapValue {
  26855. delete(v, mk)
  26856. } else {
  26857. v[mk] = 0
  26858. }
  26859. continue
  26860. }
  26861. mv = int(dd.DecodeInt(intBitsize))
  26862. if v != nil {
  26863. v[mk] = mv
  26864. }
  26865. }
  26866. dd.ReadMapEnd()
  26867. return v, changed
  26868. }
  26869. func (d *Decoder) fastpathDecMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  26870. if rv.Kind() == reflect.Ptr {
  26871. vp := rv2i(rv).(*map[int8]int8)
  26872. if v, changed := fastpathTV.DecMapInt8Int8V(*vp, true, d); changed {
  26873. *vp = v
  26874. }
  26875. return
  26876. }
  26877. fastpathTV.DecMapInt8Int8V(rv2i(rv).(map[int8]int8), false, d)
  26878. }
  26879. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, d *Decoder) {
  26880. if v, changed := f.DecMapInt8Int8V(*vp, true, d); changed {
  26881. *vp = v
  26882. }
  26883. }
  26884. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, canChange bool,
  26885. d *Decoder) (_ map[int8]int8, changed bool) {
  26886. dd, esep := d.d, d.hh.hasElemSeparators()
  26887. containerLen := dd.ReadMapStart()
  26888. if canChange && v == nil {
  26889. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  26890. v = make(map[int8]int8, xlen)
  26891. changed = true
  26892. }
  26893. if containerLen == 0 {
  26894. dd.ReadMapEnd()
  26895. return v, changed
  26896. }
  26897. var mk int8
  26898. var mv int8
  26899. hasLen := containerLen > 0
  26900. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26901. if esep {
  26902. dd.ReadMapElemKey()
  26903. }
  26904. mk = int8(dd.DecodeInt(8))
  26905. if esep {
  26906. dd.ReadMapElemValue()
  26907. }
  26908. if dd.TryDecodeAsNil() {
  26909. if d.h.DeleteOnNilMapValue {
  26910. delete(v, mk)
  26911. } else {
  26912. v[mk] = 0
  26913. }
  26914. continue
  26915. }
  26916. mv = int8(dd.DecodeInt(8))
  26917. if v != nil {
  26918. v[mk] = mv
  26919. }
  26920. }
  26921. dd.ReadMapEnd()
  26922. return v, changed
  26923. }
  26924. func (d *Decoder) fastpathDecMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  26925. if rv.Kind() == reflect.Ptr {
  26926. vp := rv2i(rv).(*map[int8]int16)
  26927. if v, changed := fastpathTV.DecMapInt8Int16V(*vp, true, d); changed {
  26928. *vp = v
  26929. }
  26930. return
  26931. }
  26932. fastpathTV.DecMapInt8Int16V(rv2i(rv).(map[int8]int16), false, d)
  26933. }
  26934. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, d *Decoder) {
  26935. if v, changed := f.DecMapInt8Int16V(*vp, true, d); changed {
  26936. *vp = v
  26937. }
  26938. }
  26939. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, canChange bool,
  26940. d *Decoder) (_ map[int8]int16, changed bool) {
  26941. dd, esep := d.d, d.hh.hasElemSeparators()
  26942. containerLen := dd.ReadMapStart()
  26943. if canChange && v == nil {
  26944. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  26945. v = make(map[int8]int16, xlen)
  26946. changed = true
  26947. }
  26948. if containerLen == 0 {
  26949. dd.ReadMapEnd()
  26950. return v, changed
  26951. }
  26952. var mk int8
  26953. var mv int16
  26954. hasLen := containerLen > 0
  26955. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26956. if esep {
  26957. dd.ReadMapElemKey()
  26958. }
  26959. mk = int8(dd.DecodeInt(8))
  26960. if esep {
  26961. dd.ReadMapElemValue()
  26962. }
  26963. if dd.TryDecodeAsNil() {
  26964. if d.h.DeleteOnNilMapValue {
  26965. delete(v, mk)
  26966. } else {
  26967. v[mk] = 0
  26968. }
  26969. continue
  26970. }
  26971. mv = int16(dd.DecodeInt(16))
  26972. if v != nil {
  26973. v[mk] = mv
  26974. }
  26975. }
  26976. dd.ReadMapEnd()
  26977. return v, changed
  26978. }
  26979. func (d *Decoder) fastpathDecMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  26980. if rv.Kind() == reflect.Ptr {
  26981. vp := rv2i(rv).(*map[int8]int32)
  26982. if v, changed := fastpathTV.DecMapInt8Int32V(*vp, true, d); changed {
  26983. *vp = v
  26984. }
  26985. return
  26986. }
  26987. fastpathTV.DecMapInt8Int32V(rv2i(rv).(map[int8]int32), false, d)
  26988. }
  26989. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, d *Decoder) {
  26990. if v, changed := f.DecMapInt8Int32V(*vp, true, d); changed {
  26991. *vp = v
  26992. }
  26993. }
  26994. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, canChange bool,
  26995. d *Decoder) (_ map[int8]int32, changed bool) {
  26996. dd, esep := d.d, d.hh.hasElemSeparators()
  26997. containerLen := dd.ReadMapStart()
  26998. if canChange && v == nil {
  26999. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27000. v = make(map[int8]int32, xlen)
  27001. changed = true
  27002. }
  27003. if containerLen == 0 {
  27004. dd.ReadMapEnd()
  27005. return v, changed
  27006. }
  27007. var mk int8
  27008. var mv int32
  27009. hasLen := containerLen > 0
  27010. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27011. if esep {
  27012. dd.ReadMapElemKey()
  27013. }
  27014. mk = int8(dd.DecodeInt(8))
  27015. if esep {
  27016. dd.ReadMapElemValue()
  27017. }
  27018. if dd.TryDecodeAsNil() {
  27019. if d.h.DeleteOnNilMapValue {
  27020. delete(v, mk)
  27021. } else {
  27022. v[mk] = 0
  27023. }
  27024. continue
  27025. }
  27026. mv = int32(dd.DecodeInt(32))
  27027. if v != nil {
  27028. v[mk] = mv
  27029. }
  27030. }
  27031. dd.ReadMapEnd()
  27032. return v, changed
  27033. }
  27034. func (d *Decoder) fastpathDecMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  27035. if rv.Kind() == reflect.Ptr {
  27036. vp := rv2i(rv).(*map[int8]int64)
  27037. if v, changed := fastpathTV.DecMapInt8Int64V(*vp, true, d); changed {
  27038. *vp = v
  27039. }
  27040. return
  27041. }
  27042. fastpathTV.DecMapInt8Int64V(rv2i(rv).(map[int8]int64), false, d)
  27043. }
  27044. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, d *Decoder) {
  27045. if v, changed := f.DecMapInt8Int64V(*vp, true, d); changed {
  27046. *vp = v
  27047. }
  27048. }
  27049. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, canChange bool,
  27050. d *Decoder) (_ map[int8]int64, changed bool) {
  27051. dd, esep := d.d, d.hh.hasElemSeparators()
  27052. containerLen := dd.ReadMapStart()
  27053. if canChange && v == nil {
  27054. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27055. v = make(map[int8]int64, xlen)
  27056. changed = true
  27057. }
  27058. if containerLen == 0 {
  27059. dd.ReadMapEnd()
  27060. return v, changed
  27061. }
  27062. var mk int8
  27063. var mv int64
  27064. hasLen := containerLen > 0
  27065. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27066. if esep {
  27067. dd.ReadMapElemKey()
  27068. }
  27069. mk = int8(dd.DecodeInt(8))
  27070. if esep {
  27071. dd.ReadMapElemValue()
  27072. }
  27073. if dd.TryDecodeAsNil() {
  27074. if d.h.DeleteOnNilMapValue {
  27075. delete(v, mk)
  27076. } else {
  27077. v[mk] = 0
  27078. }
  27079. continue
  27080. }
  27081. mv = dd.DecodeInt(64)
  27082. if v != nil {
  27083. v[mk] = mv
  27084. }
  27085. }
  27086. dd.ReadMapEnd()
  27087. return v, changed
  27088. }
  27089. func (d *Decoder) fastpathDecMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  27090. if rv.Kind() == reflect.Ptr {
  27091. vp := rv2i(rv).(*map[int8]float32)
  27092. if v, changed := fastpathTV.DecMapInt8Float32V(*vp, true, d); changed {
  27093. *vp = v
  27094. }
  27095. return
  27096. }
  27097. fastpathTV.DecMapInt8Float32V(rv2i(rv).(map[int8]float32), false, d)
  27098. }
  27099. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, d *Decoder) {
  27100. if v, changed := f.DecMapInt8Float32V(*vp, true, d); changed {
  27101. *vp = v
  27102. }
  27103. }
  27104. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, canChange bool,
  27105. d *Decoder) (_ map[int8]float32, changed bool) {
  27106. dd, esep := d.d, d.hh.hasElemSeparators()
  27107. containerLen := dd.ReadMapStart()
  27108. if canChange && v == nil {
  27109. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27110. v = make(map[int8]float32, xlen)
  27111. changed = true
  27112. }
  27113. if containerLen == 0 {
  27114. dd.ReadMapEnd()
  27115. return v, changed
  27116. }
  27117. var mk int8
  27118. var mv float32
  27119. hasLen := containerLen > 0
  27120. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27121. if esep {
  27122. dd.ReadMapElemKey()
  27123. }
  27124. mk = int8(dd.DecodeInt(8))
  27125. if esep {
  27126. dd.ReadMapElemValue()
  27127. }
  27128. if dd.TryDecodeAsNil() {
  27129. if d.h.DeleteOnNilMapValue {
  27130. delete(v, mk)
  27131. } else {
  27132. v[mk] = 0
  27133. }
  27134. continue
  27135. }
  27136. mv = float32(dd.DecodeFloat(true))
  27137. if v != nil {
  27138. v[mk] = mv
  27139. }
  27140. }
  27141. dd.ReadMapEnd()
  27142. return v, changed
  27143. }
  27144. func (d *Decoder) fastpathDecMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  27145. if rv.Kind() == reflect.Ptr {
  27146. vp := rv2i(rv).(*map[int8]float64)
  27147. if v, changed := fastpathTV.DecMapInt8Float64V(*vp, true, d); changed {
  27148. *vp = v
  27149. }
  27150. return
  27151. }
  27152. fastpathTV.DecMapInt8Float64V(rv2i(rv).(map[int8]float64), false, d)
  27153. }
  27154. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, d *Decoder) {
  27155. if v, changed := f.DecMapInt8Float64V(*vp, true, d); changed {
  27156. *vp = v
  27157. }
  27158. }
  27159. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, canChange bool,
  27160. d *Decoder) (_ map[int8]float64, changed bool) {
  27161. dd, esep := d.d, d.hh.hasElemSeparators()
  27162. containerLen := dd.ReadMapStart()
  27163. if canChange && v == nil {
  27164. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27165. v = make(map[int8]float64, xlen)
  27166. changed = true
  27167. }
  27168. if containerLen == 0 {
  27169. dd.ReadMapEnd()
  27170. return v, changed
  27171. }
  27172. var mk int8
  27173. var mv float64
  27174. hasLen := containerLen > 0
  27175. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27176. if esep {
  27177. dd.ReadMapElemKey()
  27178. }
  27179. mk = int8(dd.DecodeInt(8))
  27180. if esep {
  27181. dd.ReadMapElemValue()
  27182. }
  27183. if dd.TryDecodeAsNil() {
  27184. if d.h.DeleteOnNilMapValue {
  27185. delete(v, mk)
  27186. } else {
  27187. v[mk] = 0
  27188. }
  27189. continue
  27190. }
  27191. mv = dd.DecodeFloat(false)
  27192. if v != nil {
  27193. v[mk] = mv
  27194. }
  27195. }
  27196. dd.ReadMapEnd()
  27197. return v, changed
  27198. }
  27199. func (d *Decoder) fastpathDecMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  27200. if rv.Kind() == reflect.Ptr {
  27201. vp := rv2i(rv).(*map[int8]bool)
  27202. if v, changed := fastpathTV.DecMapInt8BoolV(*vp, true, d); changed {
  27203. *vp = v
  27204. }
  27205. return
  27206. }
  27207. fastpathTV.DecMapInt8BoolV(rv2i(rv).(map[int8]bool), false, d)
  27208. }
  27209. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, d *Decoder) {
  27210. if v, changed := f.DecMapInt8BoolV(*vp, true, d); changed {
  27211. *vp = v
  27212. }
  27213. }
  27214. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, canChange bool,
  27215. d *Decoder) (_ map[int8]bool, changed bool) {
  27216. dd, esep := d.d, d.hh.hasElemSeparators()
  27217. containerLen := dd.ReadMapStart()
  27218. if canChange && v == nil {
  27219. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  27220. v = make(map[int8]bool, xlen)
  27221. changed = true
  27222. }
  27223. if containerLen == 0 {
  27224. dd.ReadMapEnd()
  27225. return v, changed
  27226. }
  27227. var mk int8
  27228. var mv bool
  27229. hasLen := containerLen > 0
  27230. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27231. if esep {
  27232. dd.ReadMapElemKey()
  27233. }
  27234. mk = int8(dd.DecodeInt(8))
  27235. if esep {
  27236. dd.ReadMapElemValue()
  27237. }
  27238. if dd.TryDecodeAsNil() {
  27239. if d.h.DeleteOnNilMapValue {
  27240. delete(v, mk)
  27241. } else {
  27242. v[mk] = false
  27243. }
  27244. continue
  27245. }
  27246. mv = dd.DecodeBool()
  27247. if v != nil {
  27248. v[mk] = mv
  27249. }
  27250. }
  27251. dd.ReadMapEnd()
  27252. return v, changed
  27253. }
  27254. func (d *Decoder) fastpathDecMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  27255. if rv.Kind() == reflect.Ptr {
  27256. vp := rv2i(rv).(*map[int16]interface{})
  27257. if v, changed := fastpathTV.DecMapInt16IntfV(*vp, true, d); changed {
  27258. *vp = v
  27259. }
  27260. return
  27261. }
  27262. fastpathTV.DecMapInt16IntfV(rv2i(rv).(map[int16]interface{}), false, d)
  27263. }
  27264. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, d *Decoder) {
  27265. if v, changed := f.DecMapInt16IntfV(*vp, true, d); changed {
  27266. *vp = v
  27267. }
  27268. }
  27269. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, canChange bool,
  27270. d *Decoder) (_ map[int16]interface{}, changed bool) {
  27271. dd, esep := d.d, d.hh.hasElemSeparators()
  27272. containerLen := dd.ReadMapStart()
  27273. if canChange && v == nil {
  27274. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  27275. v = make(map[int16]interface{}, xlen)
  27276. changed = true
  27277. }
  27278. if containerLen == 0 {
  27279. dd.ReadMapEnd()
  27280. return v, changed
  27281. }
  27282. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  27283. var mk int16
  27284. var mv interface{}
  27285. hasLen := containerLen > 0
  27286. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27287. if esep {
  27288. dd.ReadMapElemKey()
  27289. }
  27290. mk = int16(dd.DecodeInt(16))
  27291. if esep {
  27292. dd.ReadMapElemValue()
  27293. }
  27294. if dd.TryDecodeAsNil() {
  27295. if d.h.DeleteOnNilMapValue {
  27296. delete(v, mk)
  27297. } else {
  27298. v[mk] = nil
  27299. }
  27300. continue
  27301. }
  27302. if mapGet {
  27303. mv = v[mk]
  27304. } else {
  27305. mv = nil
  27306. }
  27307. d.decode(&mv)
  27308. if v != nil {
  27309. v[mk] = mv
  27310. }
  27311. }
  27312. dd.ReadMapEnd()
  27313. return v, changed
  27314. }
  27315. func (d *Decoder) fastpathDecMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  27316. if rv.Kind() == reflect.Ptr {
  27317. vp := rv2i(rv).(*map[int16]string)
  27318. if v, changed := fastpathTV.DecMapInt16StringV(*vp, true, d); changed {
  27319. *vp = v
  27320. }
  27321. return
  27322. }
  27323. fastpathTV.DecMapInt16StringV(rv2i(rv).(map[int16]string), false, d)
  27324. }
  27325. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, d *Decoder) {
  27326. if v, changed := f.DecMapInt16StringV(*vp, true, d); changed {
  27327. *vp = v
  27328. }
  27329. }
  27330. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, canChange bool,
  27331. d *Decoder) (_ map[int16]string, changed bool) {
  27332. dd, esep := d.d, d.hh.hasElemSeparators()
  27333. containerLen := dd.ReadMapStart()
  27334. if canChange && v == nil {
  27335. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  27336. v = make(map[int16]string, xlen)
  27337. changed = true
  27338. }
  27339. if containerLen == 0 {
  27340. dd.ReadMapEnd()
  27341. return v, changed
  27342. }
  27343. var mk int16
  27344. var mv string
  27345. hasLen := containerLen > 0
  27346. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27347. if esep {
  27348. dd.ReadMapElemKey()
  27349. }
  27350. mk = int16(dd.DecodeInt(16))
  27351. if esep {
  27352. dd.ReadMapElemValue()
  27353. }
  27354. if dd.TryDecodeAsNil() {
  27355. if d.h.DeleteOnNilMapValue {
  27356. delete(v, mk)
  27357. } else {
  27358. v[mk] = ""
  27359. }
  27360. continue
  27361. }
  27362. mv = dd.DecodeString()
  27363. if v != nil {
  27364. v[mk] = mv
  27365. }
  27366. }
  27367. dd.ReadMapEnd()
  27368. return v, changed
  27369. }
  27370. func (d *Decoder) fastpathDecMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  27371. if rv.Kind() == reflect.Ptr {
  27372. vp := rv2i(rv).(*map[int16]uint)
  27373. if v, changed := fastpathTV.DecMapInt16UintV(*vp, true, d); changed {
  27374. *vp = v
  27375. }
  27376. return
  27377. }
  27378. fastpathTV.DecMapInt16UintV(rv2i(rv).(map[int16]uint), false, d)
  27379. }
  27380. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, d *Decoder) {
  27381. if v, changed := f.DecMapInt16UintV(*vp, true, d); changed {
  27382. *vp = v
  27383. }
  27384. }
  27385. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, canChange bool,
  27386. d *Decoder) (_ map[int16]uint, changed bool) {
  27387. dd, esep := d.d, d.hh.hasElemSeparators()
  27388. containerLen := dd.ReadMapStart()
  27389. if canChange && v == nil {
  27390. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27391. v = make(map[int16]uint, xlen)
  27392. changed = true
  27393. }
  27394. if containerLen == 0 {
  27395. dd.ReadMapEnd()
  27396. return v, changed
  27397. }
  27398. var mk int16
  27399. var mv uint
  27400. hasLen := containerLen > 0
  27401. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27402. if esep {
  27403. dd.ReadMapElemKey()
  27404. }
  27405. mk = int16(dd.DecodeInt(16))
  27406. if esep {
  27407. dd.ReadMapElemValue()
  27408. }
  27409. if dd.TryDecodeAsNil() {
  27410. if d.h.DeleteOnNilMapValue {
  27411. delete(v, mk)
  27412. } else {
  27413. v[mk] = 0
  27414. }
  27415. continue
  27416. }
  27417. mv = uint(dd.DecodeUint(uintBitsize))
  27418. if v != nil {
  27419. v[mk] = mv
  27420. }
  27421. }
  27422. dd.ReadMapEnd()
  27423. return v, changed
  27424. }
  27425. func (d *Decoder) fastpathDecMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  27426. if rv.Kind() == reflect.Ptr {
  27427. vp := rv2i(rv).(*map[int16]uint8)
  27428. if v, changed := fastpathTV.DecMapInt16Uint8V(*vp, true, d); changed {
  27429. *vp = v
  27430. }
  27431. return
  27432. }
  27433. fastpathTV.DecMapInt16Uint8V(rv2i(rv).(map[int16]uint8), false, d)
  27434. }
  27435. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, d *Decoder) {
  27436. if v, changed := f.DecMapInt16Uint8V(*vp, true, d); changed {
  27437. *vp = v
  27438. }
  27439. }
  27440. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, canChange bool,
  27441. d *Decoder) (_ map[int16]uint8, changed bool) {
  27442. dd, esep := d.d, d.hh.hasElemSeparators()
  27443. containerLen := dd.ReadMapStart()
  27444. if canChange && v == nil {
  27445. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  27446. v = make(map[int16]uint8, xlen)
  27447. changed = true
  27448. }
  27449. if containerLen == 0 {
  27450. dd.ReadMapEnd()
  27451. return v, changed
  27452. }
  27453. var mk int16
  27454. var mv uint8
  27455. hasLen := containerLen > 0
  27456. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27457. if esep {
  27458. dd.ReadMapElemKey()
  27459. }
  27460. mk = int16(dd.DecodeInt(16))
  27461. if esep {
  27462. dd.ReadMapElemValue()
  27463. }
  27464. if dd.TryDecodeAsNil() {
  27465. if d.h.DeleteOnNilMapValue {
  27466. delete(v, mk)
  27467. } else {
  27468. v[mk] = 0
  27469. }
  27470. continue
  27471. }
  27472. mv = uint8(dd.DecodeUint(8))
  27473. if v != nil {
  27474. v[mk] = mv
  27475. }
  27476. }
  27477. dd.ReadMapEnd()
  27478. return v, changed
  27479. }
  27480. func (d *Decoder) fastpathDecMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  27481. if rv.Kind() == reflect.Ptr {
  27482. vp := rv2i(rv).(*map[int16]uint16)
  27483. if v, changed := fastpathTV.DecMapInt16Uint16V(*vp, true, d); changed {
  27484. *vp = v
  27485. }
  27486. return
  27487. }
  27488. fastpathTV.DecMapInt16Uint16V(rv2i(rv).(map[int16]uint16), false, d)
  27489. }
  27490. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, d *Decoder) {
  27491. if v, changed := f.DecMapInt16Uint16V(*vp, true, d); changed {
  27492. *vp = v
  27493. }
  27494. }
  27495. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, canChange bool,
  27496. d *Decoder) (_ map[int16]uint16, changed bool) {
  27497. dd, esep := d.d, d.hh.hasElemSeparators()
  27498. containerLen := dd.ReadMapStart()
  27499. if canChange && v == nil {
  27500. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  27501. v = make(map[int16]uint16, xlen)
  27502. changed = true
  27503. }
  27504. if containerLen == 0 {
  27505. dd.ReadMapEnd()
  27506. return v, changed
  27507. }
  27508. var mk int16
  27509. var mv uint16
  27510. hasLen := containerLen > 0
  27511. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27512. if esep {
  27513. dd.ReadMapElemKey()
  27514. }
  27515. mk = int16(dd.DecodeInt(16))
  27516. if esep {
  27517. dd.ReadMapElemValue()
  27518. }
  27519. if dd.TryDecodeAsNil() {
  27520. if d.h.DeleteOnNilMapValue {
  27521. delete(v, mk)
  27522. } else {
  27523. v[mk] = 0
  27524. }
  27525. continue
  27526. }
  27527. mv = uint16(dd.DecodeUint(16))
  27528. if v != nil {
  27529. v[mk] = mv
  27530. }
  27531. }
  27532. dd.ReadMapEnd()
  27533. return v, changed
  27534. }
  27535. func (d *Decoder) fastpathDecMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  27536. if rv.Kind() == reflect.Ptr {
  27537. vp := rv2i(rv).(*map[int16]uint32)
  27538. if v, changed := fastpathTV.DecMapInt16Uint32V(*vp, true, d); changed {
  27539. *vp = v
  27540. }
  27541. return
  27542. }
  27543. fastpathTV.DecMapInt16Uint32V(rv2i(rv).(map[int16]uint32), false, d)
  27544. }
  27545. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, d *Decoder) {
  27546. if v, changed := f.DecMapInt16Uint32V(*vp, true, d); changed {
  27547. *vp = v
  27548. }
  27549. }
  27550. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, canChange bool,
  27551. d *Decoder) (_ map[int16]uint32, changed bool) {
  27552. dd, esep := d.d, d.hh.hasElemSeparators()
  27553. containerLen := dd.ReadMapStart()
  27554. if canChange && v == nil {
  27555. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  27556. v = make(map[int16]uint32, xlen)
  27557. changed = true
  27558. }
  27559. if containerLen == 0 {
  27560. dd.ReadMapEnd()
  27561. return v, changed
  27562. }
  27563. var mk int16
  27564. var mv uint32
  27565. hasLen := containerLen > 0
  27566. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27567. if esep {
  27568. dd.ReadMapElemKey()
  27569. }
  27570. mk = int16(dd.DecodeInt(16))
  27571. if esep {
  27572. dd.ReadMapElemValue()
  27573. }
  27574. if dd.TryDecodeAsNil() {
  27575. if d.h.DeleteOnNilMapValue {
  27576. delete(v, mk)
  27577. } else {
  27578. v[mk] = 0
  27579. }
  27580. continue
  27581. }
  27582. mv = uint32(dd.DecodeUint(32))
  27583. if v != nil {
  27584. v[mk] = mv
  27585. }
  27586. }
  27587. dd.ReadMapEnd()
  27588. return v, changed
  27589. }
  27590. func (d *Decoder) fastpathDecMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  27591. if rv.Kind() == reflect.Ptr {
  27592. vp := rv2i(rv).(*map[int16]uint64)
  27593. if v, changed := fastpathTV.DecMapInt16Uint64V(*vp, true, d); changed {
  27594. *vp = v
  27595. }
  27596. return
  27597. }
  27598. fastpathTV.DecMapInt16Uint64V(rv2i(rv).(map[int16]uint64), false, d)
  27599. }
  27600. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, d *Decoder) {
  27601. if v, changed := f.DecMapInt16Uint64V(*vp, true, d); changed {
  27602. *vp = v
  27603. }
  27604. }
  27605. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, canChange bool,
  27606. d *Decoder) (_ map[int16]uint64, changed bool) {
  27607. dd, esep := d.d, d.hh.hasElemSeparators()
  27608. containerLen := dd.ReadMapStart()
  27609. if canChange && v == nil {
  27610. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27611. v = make(map[int16]uint64, xlen)
  27612. changed = true
  27613. }
  27614. if containerLen == 0 {
  27615. dd.ReadMapEnd()
  27616. return v, changed
  27617. }
  27618. var mk int16
  27619. var mv uint64
  27620. hasLen := containerLen > 0
  27621. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27622. if esep {
  27623. dd.ReadMapElemKey()
  27624. }
  27625. mk = int16(dd.DecodeInt(16))
  27626. if esep {
  27627. dd.ReadMapElemValue()
  27628. }
  27629. if dd.TryDecodeAsNil() {
  27630. if d.h.DeleteOnNilMapValue {
  27631. delete(v, mk)
  27632. } else {
  27633. v[mk] = 0
  27634. }
  27635. continue
  27636. }
  27637. mv = dd.DecodeUint(64)
  27638. if v != nil {
  27639. v[mk] = mv
  27640. }
  27641. }
  27642. dd.ReadMapEnd()
  27643. return v, changed
  27644. }
  27645. func (d *Decoder) fastpathDecMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  27646. if rv.Kind() == reflect.Ptr {
  27647. vp := rv2i(rv).(*map[int16]uintptr)
  27648. if v, changed := fastpathTV.DecMapInt16UintptrV(*vp, true, d); changed {
  27649. *vp = v
  27650. }
  27651. return
  27652. }
  27653. fastpathTV.DecMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), false, d)
  27654. }
  27655. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, d *Decoder) {
  27656. if v, changed := f.DecMapInt16UintptrV(*vp, true, d); changed {
  27657. *vp = v
  27658. }
  27659. }
  27660. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, canChange bool,
  27661. d *Decoder) (_ map[int16]uintptr, changed bool) {
  27662. dd, esep := d.d, d.hh.hasElemSeparators()
  27663. containerLen := dd.ReadMapStart()
  27664. if canChange && v == nil {
  27665. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27666. v = make(map[int16]uintptr, xlen)
  27667. changed = true
  27668. }
  27669. if containerLen == 0 {
  27670. dd.ReadMapEnd()
  27671. return v, changed
  27672. }
  27673. var mk int16
  27674. var mv uintptr
  27675. hasLen := containerLen > 0
  27676. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27677. if esep {
  27678. dd.ReadMapElemKey()
  27679. }
  27680. mk = int16(dd.DecodeInt(16))
  27681. if esep {
  27682. dd.ReadMapElemValue()
  27683. }
  27684. if dd.TryDecodeAsNil() {
  27685. if d.h.DeleteOnNilMapValue {
  27686. delete(v, mk)
  27687. } else {
  27688. v[mk] = 0
  27689. }
  27690. continue
  27691. }
  27692. mv = uintptr(dd.DecodeUint(uintBitsize))
  27693. if v != nil {
  27694. v[mk] = mv
  27695. }
  27696. }
  27697. dd.ReadMapEnd()
  27698. return v, changed
  27699. }
  27700. func (d *Decoder) fastpathDecMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  27701. if rv.Kind() == reflect.Ptr {
  27702. vp := rv2i(rv).(*map[int16]int)
  27703. if v, changed := fastpathTV.DecMapInt16IntV(*vp, true, d); changed {
  27704. *vp = v
  27705. }
  27706. return
  27707. }
  27708. fastpathTV.DecMapInt16IntV(rv2i(rv).(map[int16]int), false, d)
  27709. }
  27710. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, d *Decoder) {
  27711. if v, changed := f.DecMapInt16IntV(*vp, true, d); changed {
  27712. *vp = v
  27713. }
  27714. }
  27715. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, canChange bool,
  27716. d *Decoder) (_ map[int16]int, changed bool) {
  27717. dd, esep := d.d, d.hh.hasElemSeparators()
  27718. containerLen := dd.ReadMapStart()
  27719. if canChange && v == nil {
  27720. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27721. v = make(map[int16]int, xlen)
  27722. changed = true
  27723. }
  27724. if containerLen == 0 {
  27725. dd.ReadMapEnd()
  27726. return v, changed
  27727. }
  27728. var mk int16
  27729. var mv int
  27730. hasLen := containerLen > 0
  27731. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27732. if esep {
  27733. dd.ReadMapElemKey()
  27734. }
  27735. mk = int16(dd.DecodeInt(16))
  27736. if esep {
  27737. dd.ReadMapElemValue()
  27738. }
  27739. if dd.TryDecodeAsNil() {
  27740. if d.h.DeleteOnNilMapValue {
  27741. delete(v, mk)
  27742. } else {
  27743. v[mk] = 0
  27744. }
  27745. continue
  27746. }
  27747. mv = int(dd.DecodeInt(intBitsize))
  27748. if v != nil {
  27749. v[mk] = mv
  27750. }
  27751. }
  27752. dd.ReadMapEnd()
  27753. return v, changed
  27754. }
  27755. func (d *Decoder) fastpathDecMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  27756. if rv.Kind() == reflect.Ptr {
  27757. vp := rv2i(rv).(*map[int16]int8)
  27758. if v, changed := fastpathTV.DecMapInt16Int8V(*vp, true, d); changed {
  27759. *vp = v
  27760. }
  27761. return
  27762. }
  27763. fastpathTV.DecMapInt16Int8V(rv2i(rv).(map[int16]int8), false, d)
  27764. }
  27765. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, d *Decoder) {
  27766. if v, changed := f.DecMapInt16Int8V(*vp, true, d); changed {
  27767. *vp = v
  27768. }
  27769. }
  27770. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, canChange bool,
  27771. d *Decoder) (_ map[int16]int8, changed bool) {
  27772. dd, esep := d.d, d.hh.hasElemSeparators()
  27773. containerLen := dd.ReadMapStart()
  27774. if canChange && v == nil {
  27775. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  27776. v = make(map[int16]int8, xlen)
  27777. changed = true
  27778. }
  27779. if containerLen == 0 {
  27780. dd.ReadMapEnd()
  27781. return v, changed
  27782. }
  27783. var mk int16
  27784. var mv int8
  27785. hasLen := containerLen > 0
  27786. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27787. if esep {
  27788. dd.ReadMapElemKey()
  27789. }
  27790. mk = int16(dd.DecodeInt(16))
  27791. if esep {
  27792. dd.ReadMapElemValue()
  27793. }
  27794. if dd.TryDecodeAsNil() {
  27795. if d.h.DeleteOnNilMapValue {
  27796. delete(v, mk)
  27797. } else {
  27798. v[mk] = 0
  27799. }
  27800. continue
  27801. }
  27802. mv = int8(dd.DecodeInt(8))
  27803. if v != nil {
  27804. v[mk] = mv
  27805. }
  27806. }
  27807. dd.ReadMapEnd()
  27808. return v, changed
  27809. }
  27810. func (d *Decoder) fastpathDecMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  27811. if rv.Kind() == reflect.Ptr {
  27812. vp := rv2i(rv).(*map[int16]int16)
  27813. if v, changed := fastpathTV.DecMapInt16Int16V(*vp, true, d); changed {
  27814. *vp = v
  27815. }
  27816. return
  27817. }
  27818. fastpathTV.DecMapInt16Int16V(rv2i(rv).(map[int16]int16), false, d)
  27819. }
  27820. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, d *Decoder) {
  27821. if v, changed := f.DecMapInt16Int16V(*vp, true, d); changed {
  27822. *vp = v
  27823. }
  27824. }
  27825. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, canChange bool,
  27826. d *Decoder) (_ map[int16]int16, changed bool) {
  27827. dd, esep := d.d, d.hh.hasElemSeparators()
  27828. containerLen := dd.ReadMapStart()
  27829. if canChange && v == nil {
  27830. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  27831. v = make(map[int16]int16, xlen)
  27832. changed = true
  27833. }
  27834. if containerLen == 0 {
  27835. dd.ReadMapEnd()
  27836. return v, changed
  27837. }
  27838. var mk int16
  27839. var mv int16
  27840. hasLen := containerLen > 0
  27841. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27842. if esep {
  27843. dd.ReadMapElemKey()
  27844. }
  27845. mk = int16(dd.DecodeInt(16))
  27846. if esep {
  27847. dd.ReadMapElemValue()
  27848. }
  27849. if dd.TryDecodeAsNil() {
  27850. if d.h.DeleteOnNilMapValue {
  27851. delete(v, mk)
  27852. } else {
  27853. v[mk] = 0
  27854. }
  27855. continue
  27856. }
  27857. mv = int16(dd.DecodeInt(16))
  27858. if v != nil {
  27859. v[mk] = mv
  27860. }
  27861. }
  27862. dd.ReadMapEnd()
  27863. return v, changed
  27864. }
  27865. func (d *Decoder) fastpathDecMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  27866. if rv.Kind() == reflect.Ptr {
  27867. vp := rv2i(rv).(*map[int16]int32)
  27868. if v, changed := fastpathTV.DecMapInt16Int32V(*vp, true, d); changed {
  27869. *vp = v
  27870. }
  27871. return
  27872. }
  27873. fastpathTV.DecMapInt16Int32V(rv2i(rv).(map[int16]int32), false, d)
  27874. }
  27875. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, d *Decoder) {
  27876. if v, changed := f.DecMapInt16Int32V(*vp, true, d); changed {
  27877. *vp = v
  27878. }
  27879. }
  27880. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, canChange bool,
  27881. d *Decoder) (_ map[int16]int32, changed bool) {
  27882. dd, esep := d.d, d.hh.hasElemSeparators()
  27883. containerLen := dd.ReadMapStart()
  27884. if canChange && v == nil {
  27885. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  27886. v = make(map[int16]int32, xlen)
  27887. changed = true
  27888. }
  27889. if containerLen == 0 {
  27890. dd.ReadMapEnd()
  27891. return v, changed
  27892. }
  27893. var mk int16
  27894. var mv int32
  27895. hasLen := containerLen > 0
  27896. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27897. if esep {
  27898. dd.ReadMapElemKey()
  27899. }
  27900. mk = int16(dd.DecodeInt(16))
  27901. if esep {
  27902. dd.ReadMapElemValue()
  27903. }
  27904. if dd.TryDecodeAsNil() {
  27905. if d.h.DeleteOnNilMapValue {
  27906. delete(v, mk)
  27907. } else {
  27908. v[mk] = 0
  27909. }
  27910. continue
  27911. }
  27912. mv = int32(dd.DecodeInt(32))
  27913. if v != nil {
  27914. v[mk] = mv
  27915. }
  27916. }
  27917. dd.ReadMapEnd()
  27918. return v, changed
  27919. }
  27920. func (d *Decoder) fastpathDecMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  27921. if rv.Kind() == reflect.Ptr {
  27922. vp := rv2i(rv).(*map[int16]int64)
  27923. if v, changed := fastpathTV.DecMapInt16Int64V(*vp, true, d); changed {
  27924. *vp = v
  27925. }
  27926. return
  27927. }
  27928. fastpathTV.DecMapInt16Int64V(rv2i(rv).(map[int16]int64), false, d)
  27929. }
  27930. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, d *Decoder) {
  27931. if v, changed := f.DecMapInt16Int64V(*vp, true, d); changed {
  27932. *vp = v
  27933. }
  27934. }
  27935. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, canChange bool,
  27936. d *Decoder) (_ map[int16]int64, changed bool) {
  27937. dd, esep := d.d, d.hh.hasElemSeparators()
  27938. containerLen := dd.ReadMapStart()
  27939. if canChange && v == nil {
  27940. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27941. v = make(map[int16]int64, xlen)
  27942. changed = true
  27943. }
  27944. if containerLen == 0 {
  27945. dd.ReadMapEnd()
  27946. return v, changed
  27947. }
  27948. var mk int16
  27949. var mv int64
  27950. hasLen := containerLen > 0
  27951. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27952. if esep {
  27953. dd.ReadMapElemKey()
  27954. }
  27955. mk = int16(dd.DecodeInt(16))
  27956. if esep {
  27957. dd.ReadMapElemValue()
  27958. }
  27959. if dd.TryDecodeAsNil() {
  27960. if d.h.DeleteOnNilMapValue {
  27961. delete(v, mk)
  27962. } else {
  27963. v[mk] = 0
  27964. }
  27965. continue
  27966. }
  27967. mv = dd.DecodeInt(64)
  27968. if v != nil {
  27969. v[mk] = mv
  27970. }
  27971. }
  27972. dd.ReadMapEnd()
  27973. return v, changed
  27974. }
  27975. func (d *Decoder) fastpathDecMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  27976. if rv.Kind() == reflect.Ptr {
  27977. vp := rv2i(rv).(*map[int16]float32)
  27978. if v, changed := fastpathTV.DecMapInt16Float32V(*vp, true, d); changed {
  27979. *vp = v
  27980. }
  27981. return
  27982. }
  27983. fastpathTV.DecMapInt16Float32V(rv2i(rv).(map[int16]float32), false, d)
  27984. }
  27985. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, d *Decoder) {
  27986. if v, changed := f.DecMapInt16Float32V(*vp, true, d); changed {
  27987. *vp = v
  27988. }
  27989. }
  27990. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, canChange bool,
  27991. d *Decoder) (_ map[int16]float32, changed bool) {
  27992. dd, esep := d.d, d.hh.hasElemSeparators()
  27993. containerLen := dd.ReadMapStart()
  27994. if canChange && v == nil {
  27995. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  27996. v = make(map[int16]float32, xlen)
  27997. changed = true
  27998. }
  27999. if containerLen == 0 {
  28000. dd.ReadMapEnd()
  28001. return v, changed
  28002. }
  28003. var mk int16
  28004. var mv float32
  28005. hasLen := containerLen > 0
  28006. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28007. if esep {
  28008. dd.ReadMapElemKey()
  28009. }
  28010. mk = int16(dd.DecodeInt(16))
  28011. if esep {
  28012. dd.ReadMapElemValue()
  28013. }
  28014. if dd.TryDecodeAsNil() {
  28015. if d.h.DeleteOnNilMapValue {
  28016. delete(v, mk)
  28017. } else {
  28018. v[mk] = 0
  28019. }
  28020. continue
  28021. }
  28022. mv = float32(dd.DecodeFloat(true))
  28023. if v != nil {
  28024. v[mk] = mv
  28025. }
  28026. }
  28027. dd.ReadMapEnd()
  28028. return v, changed
  28029. }
  28030. func (d *Decoder) fastpathDecMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  28031. if rv.Kind() == reflect.Ptr {
  28032. vp := rv2i(rv).(*map[int16]float64)
  28033. if v, changed := fastpathTV.DecMapInt16Float64V(*vp, true, d); changed {
  28034. *vp = v
  28035. }
  28036. return
  28037. }
  28038. fastpathTV.DecMapInt16Float64V(rv2i(rv).(map[int16]float64), false, d)
  28039. }
  28040. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, d *Decoder) {
  28041. if v, changed := f.DecMapInt16Float64V(*vp, true, d); changed {
  28042. *vp = v
  28043. }
  28044. }
  28045. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, canChange bool,
  28046. d *Decoder) (_ map[int16]float64, changed bool) {
  28047. dd, esep := d.d, d.hh.hasElemSeparators()
  28048. containerLen := dd.ReadMapStart()
  28049. if canChange && v == nil {
  28050. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28051. v = make(map[int16]float64, xlen)
  28052. changed = true
  28053. }
  28054. if containerLen == 0 {
  28055. dd.ReadMapEnd()
  28056. return v, changed
  28057. }
  28058. var mk int16
  28059. var mv float64
  28060. hasLen := containerLen > 0
  28061. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28062. if esep {
  28063. dd.ReadMapElemKey()
  28064. }
  28065. mk = int16(dd.DecodeInt(16))
  28066. if esep {
  28067. dd.ReadMapElemValue()
  28068. }
  28069. if dd.TryDecodeAsNil() {
  28070. if d.h.DeleteOnNilMapValue {
  28071. delete(v, mk)
  28072. } else {
  28073. v[mk] = 0
  28074. }
  28075. continue
  28076. }
  28077. mv = dd.DecodeFloat(false)
  28078. if v != nil {
  28079. v[mk] = mv
  28080. }
  28081. }
  28082. dd.ReadMapEnd()
  28083. return v, changed
  28084. }
  28085. func (d *Decoder) fastpathDecMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  28086. if rv.Kind() == reflect.Ptr {
  28087. vp := rv2i(rv).(*map[int16]bool)
  28088. if v, changed := fastpathTV.DecMapInt16BoolV(*vp, true, d); changed {
  28089. *vp = v
  28090. }
  28091. return
  28092. }
  28093. fastpathTV.DecMapInt16BoolV(rv2i(rv).(map[int16]bool), false, d)
  28094. }
  28095. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, d *Decoder) {
  28096. if v, changed := f.DecMapInt16BoolV(*vp, true, d); changed {
  28097. *vp = v
  28098. }
  28099. }
  28100. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, canChange bool,
  28101. d *Decoder) (_ map[int16]bool, changed bool) {
  28102. dd, esep := d.d, d.hh.hasElemSeparators()
  28103. containerLen := dd.ReadMapStart()
  28104. if canChange && v == nil {
  28105. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  28106. v = make(map[int16]bool, xlen)
  28107. changed = true
  28108. }
  28109. if containerLen == 0 {
  28110. dd.ReadMapEnd()
  28111. return v, changed
  28112. }
  28113. var mk int16
  28114. var mv bool
  28115. hasLen := containerLen > 0
  28116. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28117. if esep {
  28118. dd.ReadMapElemKey()
  28119. }
  28120. mk = int16(dd.DecodeInt(16))
  28121. if esep {
  28122. dd.ReadMapElemValue()
  28123. }
  28124. if dd.TryDecodeAsNil() {
  28125. if d.h.DeleteOnNilMapValue {
  28126. delete(v, mk)
  28127. } else {
  28128. v[mk] = false
  28129. }
  28130. continue
  28131. }
  28132. mv = dd.DecodeBool()
  28133. if v != nil {
  28134. v[mk] = mv
  28135. }
  28136. }
  28137. dd.ReadMapEnd()
  28138. return v, changed
  28139. }
  28140. func (d *Decoder) fastpathDecMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  28141. if rv.Kind() == reflect.Ptr {
  28142. vp := rv2i(rv).(*map[int32]interface{})
  28143. if v, changed := fastpathTV.DecMapInt32IntfV(*vp, true, d); changed {
  28144. *vp = v
  28145. }
  28146. return
  28147. }
  28148. fastpathTV.DecMapInt32IntfV(rv2i(rv).(map[int32]interface{}), false, d)
  28149. }
  28150. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, d *Decoder) {
  28151. if v, changed := f.DecMapInt32IntfV(*vp, true, d); changed {
  28152. *vp = v
  28153. }
  28154. }
  28155. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, canChange bool,
  28156. d *Decoder) (_ map[int32]interface{}, changed bool) {
  28157. dd, esep := d.d, d.hh.hasElemSeparators()
  28158. containerLen := dd.ReadMapStart()
  28159. if canChange && v == nil {
  28160. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  28161. v = make(map[int32]interface{}, xlen)
  28162. changed = true
  28163. }
  28164. if containerLen == 0 {
  28165. dd.ReadMapEnd()
  28166. return v, changed
  28167. }
  28168. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  28169. var mk int32
  28170. var mv interface{}
  28171. hasLen := containerLen > 0
  28172. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28173. if esep {
  28174. dd.ReadMapElemKey()
  28175. }
  28176. mk = int32(dd.DecodeInt(32))
  28177. if esep {
  28178. dd.ReadMapElemValue()
  28179. }
  28180. if dd.TryDecodeAsNil() {
  28181. if d.h.DeleteOnNilMapValue {
  28182. delete(v, mk)
  28183. } else {
  28184. v[mk] = nil
  28185. }
  28186. continue
  28187. }
  28188. if mapGet {
  28189. mv = v[mk]
  28190. } else {
  28191. mv = nil
  28192. }
  28193. d.decode(&mv)
  28194. if v != nil {
  28195. v[mk] = mv
  28196. }
  28197. }
  28198. dd.ReadMapEnd()
  28199. return v, changed
  28200. }
  28201. func (d *Decoder) fastpathDecMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  28202. if rv.Kind() == reflect.Ptr {
  28203. vp := rv2i(rv).(*map[int32]string)
  28204. if v, changed := fastpathTV.DecMapInt32StringV(*vp, true, d); changed {
  28205. *vp = v
  28206. }
  28207. return
  28208. }
  28209. fastpathTV.DecMapInt32StringV(rv2i(rv).(map[int32]string), false, d)
  28210. }
  28211. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, d *Decoder) {
  28212. if v, changed := f.DecMapInt32StringV(*vp, true, d); changed {
  28213. *vp = v
  28214. }
  28215. }
  28216. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, canChange bool,
  28217. d *Decoder) (_ map[int32]string, changed bool) {
  28218. dd, esep := d.d, d.hh.hasElemSeparators()
  28219. containerLen := dd.ReadMapStart()
  28220. if canChange && v == nil {
  28221. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  28222. v = make(map[int32]string, xlen)
  28223. changed = true
  28224. }
  28225. if containerLen == 0 {
  28226. dd.ReadMapEnd()
  28227. return v, changed
  28228. }
  28229. var mk int32
  28230. var mv string
  28231. hasLen := containerLen > 0
  28232. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28233. if esep {
  28234. dd.ReadMapElemKey()
  28235. }
  28236. mk = int32(dd.DecodeInt(32))
  28237. if esep {
  28238. dd.ReadMapElemValue()
  28239. }
  28240. if dd.TryDecodeAsNil() {
  28241. if d.h.DeleteOnNilMapValue {
  28242. delete(v, mk)
  28243. } else {
  28244. v[mk] = ""
  28245. }
  28246. continue
  28247. }
  28248. mv = dd.DecodeString()
  28249. if v != nil {
  28250. v[mk] = mv
  28251. }
  28252. }
  28253. dd.ReadMapEnd()
  28254. return v, changed
  28255. }
  28256. func (d *Decoder) fastpathDecMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  28257. if rv.Kind() == reflect.Ptr {
  28258. vp := rv2i(rv).(*map[int32]uint)
  28259. if v, changed := fastpathTV.DecMapInt32UintV(*vp, true, d); changed {
  28260. *vp = v
  28261. }
  28262. return
  28263. }
  28264. fastpathTV.DecMapInt32UintV(rv2i(rv).(map[int32]uint), false, d)
  28265. }
  28266. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, d *Decoder) {
  28267. if v, changed := f.DecMapInt32UintV(*vp, true, d); changed {
  28268. *vp = v
  28269. }
  28270. }
  28271. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, canChange bool,
  28272. d *Decoder) (_ map[int32]uint, changed bool) {
  28273. dd, esep := d.d, d.hh.hasElemSeparators()
  28274. containerLen := dd.ReadMapStart()
  28275. if canChange && v == nil {
  28276. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28277. v = make(map[int32]uint, xlen)
  28278. changed = true
  28279. }
  28280. if containerLen == 0 {
  28281. dd.ReadMapEnd()
  28282. return v, changed
  28283. }
  28284. var mk int32
  28285. var mv uint
  28286. hasLen := containerLen > 0
  28287. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28288. if esep {
  28289. dd.ReadMapElemKey()
  28290. }
  28291. mk = int32(dd.DecodeInt(32))
  28292. if esep {
  28293. dd.ReadMapElemValue()
  28294. }
  28295. if dd.TryDecodeAsNil() {
  28296. if d.h.DeleteOnNilMapValue {
  28297. delete(v, mk)
  28298. } else {
  28299. v[mk] = 0
  28300. }
  28301. continue
  28302. }
  28303. mv = uint(dd.DecodeUint(uintBitsize))
  28304. if v != nil {
  28305. v[mk] = mv
  28306. }
  28307. }
  28308. dd.ReadMapEnd()
  28309. return v, changed
  28310. }
  28311. func (d *Decoder) fastpathDecMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  28312. if rv.Kind() == reflect.Ptr {
  28313. vp := rv2i(rv).(*map[int32]uint8)
  28314. if v, changed := fastpathTV.DecMapInt32Uint8V(*vp, true, d); changed {
  28315. *vp = v
  28316. }
  28317. return
  28318. }
  28319. fastpathTV.DecMapInt32Uint8V(rv2i(rv).(map[int32]uint8), false, d)
  28320. }
  28321. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, d *Decoder) {
  28322. if v, changed := f.DecMapInt32Uint8V(*vp, true, d); changed {
  28323. *vp = v
  28324. }
  28325. }
  28326. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, canChange bool,
  28327. d *Decoder) (_ map[int32]uint8, changed bool) {
  28328. dd, esep := d.d, d.hh.hasElemSeparators()
  28329. containerLen := dd.ReadMapStart()
  28330. if canChange && v == nil {
  28331. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28332. v = make(map[int32]uint8, xlen)
  28333. changed = true
  28334. }
  28335. if containerLen == 0 {
  28336. dd.ReadMapEnd()
  28337. return v, changed
  28338. }
  28339. var mk int32
  28340. var mv uint8
  28341. hasLen := containerLen > 0
  28342. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28343. if esep {
  28344. dd.ReadMapElemKey()
  28345. }
  28346. mk = int32(dd.DecodeInt(32))
  28347. if esep {
  28348. dd.ReadMapElemValue()
  28349. }
  28350. if dd.TryDecodeAsNil() {
  28351. if d.h.DeleteOnNilMapValue {
  28352. delete(v, mk)
  28353. } else {
  28354. v[mk] = 0
  28355. }
  28356. continue
  28357. }
  28358. mv = uint8(dd.DecodeUint(8))
  28359. if v != nil {
  28360. v[mk] = mv
  28361. }
  28362. }
  28363. dd.ReadMapEnd()
  28364. return v, changed
  28365. }
  28366. func (d *Decoder) fastpathDecMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  28367. if rv.Kind() == reflect.Ptr {
  28368. vp := rv2i(rv).(*map[int32]uint16)
  28369. if v, changed := fastpathTV.DecMapInt32Uint16V(*vp, true, d); changed {
  28370. *vp = v
  28371. }
  28372. return
  28373. }
  28374. fastpathTV.DecMapInt32Uint16V(rv2i(rv).(map[int32]uint16), false, d)
  28375. }
  28376. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, d *Decoder) {
  28377. if v, changed := f.DecMapInt32Uint16V(*vp, true, d); changed {
  28378. *vp = v
  28379. }
  28380. }
  28381. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, canChange bool,
  28382. d *Decoder) (_ map[int32]uint16, changed bool) {
  28383. dd, esep := d.d, d.hh.hasElemSeparators()
  28384. containerLen := dd.ReadMapStart()
  28385. if canChange && v == nil {
  28386. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  28387. v = make(map[int32]uint16, xlen)
  28388. changed = true
  28389. }
  28390. if containerLen == 0 {
  28391. dd.ReadMapEnd()
  28392. return v, changed
  28393. }
  28394. var mk int32
  28395. var mv uint16
  28396. hasLen := containerLen > 0
  28397. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28398. if esep {
  28399. dd.ReadMapElemKey()
  28400. }
  28401. mk = int32(dd.DecodeInt(32))
  28402. if esep {
  28403. dd.ReadMapElemValue()
  28404. }
  28405. if dd.TryDecodeAsNil() {
  28406. if d.h.DeleteOnNilMapValue {
  28407. delete(v, mk)
  28408. } else {
  28409. v[mk] = 0
  28410. }
  28411. continue
  28412. }
  28413. mv = uint16(dd.DecodeUint(16))
  28414. if v != nil {
  28415. v[mk] = mv
  28416. }
  28417. }
  28418. dd.ReadMapEnd()
  28419. return v, changed
  28420. }
  28421. func (d *Decoder) fastpathDecMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  28422. if rv.Kind() == reflect.Ptr {
  28423. vp := rv2i(rv).(*map[int32]uint32)
  28424. if v, changed := fastpathTV.DecMapInt32Uint32V(*vp, true, d); changed {
  28425. *vp = v
  28426. }
  28427. return
  28428. }
  28429. fastpathTV.DecMapInt32Uint32V(rv2i(rv).(map[int32]uint32), false, d)
  28430. }
  28431. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, d *Decoder) {
  28432. if v, changed := f.DecMapInt32Uint32V(*vp, true, d); changed {
  28433. *vp = v
  28434. }
  28435. }
  28436. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, canChange bool,
  28437. d *Decoder) (_ map[int32]uint32, changed bool) {
  28438. dd, esep := d.d, d.hh.hasElemSeparators()
  28439. containerLen := dd.ReadMapStart()
  28440. if canChange && v == nil {
  28441. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  28442. v = make(map[int32]uint32, xlen)
  28443. changed = true
  28444. }
  28445. if containerLen == 0 {
  28446. dd.ReadMapEnd()
  28447. return v, changed
  28448. }
  28449. var mk int32
  28450. var mv uint32
  28451. hasLen := containerLen > 0
  28452. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28453. if esep {
  28454. dd.ReadMapElemKey()
  28455. }
  28456. mk = int32(dd.DecodeInt(32))
  28457. if esep {
  28458. dd.ReadMapElemValue()
  28459. }
  28460. if dd.TryDecodeAsNil() {
  28461. if d.h.DeleteOnNilMapValue {
  28462. delete(v, mk)
  28463. } else {
  28464. v[mk] = 0
  28465. }
  28466. continue
  28467. }
  28468. mv = uint32(dd.DecodeUint(32))
  28469. if v != nil {
  28470. v[mk] = mv
  28471. }
  28472. }
  28473. dd.ReadMapEnd()
  28474. return v, changed
  28475. }
  28476. func (d *Decoder) fastpathDecMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  28477. if rv.Kind() == reflect.Ptr {
  28478. vp := rv2i(rv).(*map[int32]uint64)
  28479. if v, changed := fastpathTV.DecMapInt32Uint64V(*vp, true, d); changed {
  28480. *vp = v
  28481. }
  28482. return
  28483. }
  28484. fastpathTV.DecMapInt32Uint64V(rv2i(rv).(map[int32]uint64), false, d)
  28485. }
  28486. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, d *Decoder) {
  28487. if v, changed := f.DecMapInt32Uint64V(*vp, true, d); changed {
  28488. *vp = v
  28489. }
  28490. }
  28491. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, canChange bool,
  28492. d *Decoder) (_ map[int32]uint64, changed bool) {
  28493. dd, esep := d.d, d.hh.hasElemSeparators()
  28494. containerLen := dd.ReadMapStart()
  28495. if canChange && v == nil {
  28496. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28497. v = make(map[int32]uint64, xlen)
  28498. changed = true
  28499. }
  28500. if containerLen == 0 {
  28501. dd.ReadMapEnd()
  28502. return v, changed
  28503. }
  28504. var mk int32
  28505. var mv uint64
  28506. hasLen := containerLen > 0
  28507. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28508. if esep {
  28509. dd.ReadMapElemKey()
  28510. }
  28511. mk = int32(dd.DecodeInt(32))
  28512. if esep {
  28513. dd.ReadMapElemValue()
  28514. }
  28515. if dd.TryDecodeAsNil() {
  28516. if d.h.DeleteOnNilMapValue {
  28517. delete(v, mk)
  28518. } else {
  28519. v[mk] = 0
  28520. }
  28521. continue
  28522. }
  28523. mv = dd.DecodeUint(64)
  28524. if v != nil {
  28525. v[mk] = mv
  28526. }
  28527. }
  28528. dd.ReadMapEnd()
  28529. return v, changed
  28530. }
  28531. func (d *Decoder) fastpathDecMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  28532. if rv.Kind() == reflect.Ptr {
  28533. vp := rv2i(rv).(*map[int32]uintptr)
  28534. if v, changed := fastpathTV.DecMapInt32UintptrV(*vp, true, d); changed {
  28535. *vp = v
  28536. }
  28537. return
  28538. }
  28539. fastpathTV.DecMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), false, d)
  28540. }
  28541. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, d *Decoder) {
  28542. if v, changed := f.DecMapInt32UintptrV(*vp, true, d); changed {
  28543. *vp = v
  28544. }
  28545. }
  28546. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, canChange bool,
  28547. d *Decoder) (_ map[int32]uintptr, changed bool) {
  28548. dd, esep := d.d, d.hh.hasElemSeparators()
  28549. containerLen := dd.ReadMapStart()
  28550. if canChange && v == nil {
  28551. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28552. v = make(map[int32]uintptr, xlen)
  28553. changed = true
  28554. }
  28555. if containerLen == 0 {
  28556. dd.ReadMapEnd()
  28557. return v, changed
  28558. }
  28559. var mk int32
  28560. var mv uintptr
  28561. hasLen := containerLen > 0
  28562. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28563. if esep {
  28564. dd.ReadMapElemKey()
  28565. }
  28566. mk = int32(dd.DecodeInt(32))
  28567. if esep {
  28568. dd.ReadMapElemValue()
  28569. }
  28570. if dd.TryDecodeAsNil() {
  28571. if d.h.DeleteOnNilMapValue {
  28572. delete(v, mk)
  28573. } else {
  28574. v[mk] = 0
  28575. }
  28576. continue
  28577. }
  28578. mv = uintptr(dd.DecodeUint(uintBitsize))
  28579. if v != nil {
  28580. v[mk] = mv
  28581. }
  28582. }
  28583. dd.ReadMapEnd()
  28584. return v, changed
  28585. }
  28586. func (d *Decoder) fastpathDecMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  28587. if rv.Kind() == reflect.Ptr {
  28588. vp := rv2i(rv).(*map[int32]int)
  28589. if v, changed := fastpathTV.DecMapInt32IntV(*vp, true, d); changed {
  28590. *vp = v
  28591. }
  28592. return
  28593. }
  28594. fastpathTV.DecMapInt32IntV(rv2i(rv).(map[int32]int), false, d)
  28595. }
  28596. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, d *Decoder) {
  28597. if v, changed := f.DecMapInt32IntV(*vp, true, d); changed {
  28598. *vp = v
  28599. }
  28600. }
  28601. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, canChange bool,
  28602. d *Decoder) (_ map[int32]int, changed bool) {
  28603. dd, esep := d.d, d.hh.hasElemSeparators()
  28604. containerLen := dd.ReadMapStart()
  28605. if canChange && v == nil {
  28606. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28607. v = make(map[int32]int, xlen)
  28608. changed = true
  28609. }
  28610. if containerLen == 0 {
  28611. dd.ReadMapEnd()
  28612. return v, changed
  28613. }
  28614. var mk int32
  28615. var mv int
  28616. hasLen := containerLen > 0
  28617. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28618. if esep {
  28619. dd.ReadMapElemKey()
  28620. }
  28621. mk = int32(dd.DecodeInt(32))
  28622. if esep {
  28623. dd.ReadMapElemValue()
  28624. }
  28625. if dd.TryDecodeAsNil() {
  28626. if d.h.DeleteOnNilMapValue {
  28627. delete(v, mk)
  28628. } else {
  28629. v[mk] = 0
  28630. }
  28631. continue
  28632. }
  28633. mv = int(dd.DecodeInt(intBitsize))
  28634. if v != nil {
  28635. v[mk] = mv
  28636. }
  28637. }
  28638. dd.ReadMapEnd()
  28639. return v, changed
  28640. }
  28641. func (d *Decoder) fastpathDecMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  28642. if rv.Kind() == reflect.Ptr {
  28643. vp := rv2i(rv).(*map[int32]int8)
  28644. if v, changed := fastpathTV.DecMapInt32Int8V(*vp, true, d); changed {
  28645. *vp = v
  28646. }
  28647. return
  28648. }
  28649. fastpathTV.DecMapInt32Int8V(rv2i(rv).(map[int32]int8), false, d)
  28650. }
  28651. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, d *Decoder) {
  28652. if v, changed := f.DecMapInt32Int8V(*vp, true, d); changed {
  28653. *vp = v
  28654. }
  28655. }
  28656. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, canChange bool,
  28657. d *Decoder) (_ map[int32]int8, changed bool) {
  28658. dd, esep := d.d, d.hh.hasElemSeparators()
  28659. containerLen := dd.ReadMapStart()
  28660. if canChange && v == nil {
  28661. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28662. v = make(map[int32]int8, xlen)
  28663. changed = true
  28664. }
  28665. if containerLen == 0 {
  28666. dd.ReadMapEnd()
  28667. return v, changed
  28668. }
  28669. var mk int32
  28670. var mv int8
  28671. hasLen := containerLen > 0
  28672. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28673. if esep {
  28674. dd.ReadMapElemKey()
  28675. }
  28676. mk = int32(dd.DecodeInt(32))
  28677. if esep {
  28678. dd.ReadMapElemValue()
  28679. }
  28680. if dd.TryDecodeAsNil() {
  28681. if d.h.DeleteOnNilMapValue {
  28682. delete(v, mk)
  28683. } else {
  28684. v[mk] = 0
  28685. }
  28686. continue
  28687. }
  28688. mv = int8(dd.DecodeInt(8))
  28689. if v != nil {
  28690. v[mk] = mv
  28691. }
  28692. }
  28693. dd.ReadMapEnd()
  28694. return v, changed
  28695. }
  28696. func (d *Decoder) fastpathDecMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  28697. if rv.Kind() == reflect.Ptr {
  28698. vp := rv2i(rv).(*map[int32]int16)
  28699. if v, changed := fastpathTV.DecMapInt32Int16V(*vp, true, d); changed {
  28700. *vp = v
  28701. }
  28702. return
  28703. }
  28704. fastpathTV.DecMapInt32Int16V(rv2i(rv).(map[int32]int16), false, d)
  28705. }
  28706. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, d *Decoder) {
  28707. if v, changed := f.DecMapInt32Int16V(*vp, true, d); changed {
  28708. *vp = v
  28709. }
  28710. }
  28711. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, canChange bool,
  28712. d *Decoder) (_ map[int32]int16, changed bool) {
  28713. dd, esep := d.d, d.hh.hasElemSeparators()
  28714. containerLen := dd.ReadMapStart()
  28715. if canChange && v == nil {
  28716. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  28717. v = make(map[int32]int16, xlen)
  28718. changed = true
  28719. }
  28720. if containerLen == 0 {
  28721. dd.ReadMapEnd()
  28722. return v, changed
  28723. }
  28724. var mk int32
  28725. var mv int16
  28726. hasLen := containerLen > 0
  28727. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28728. if esep {
  28729. dd.ReadMapElemKey()
  28730. }
  28731. mk = int32(dd.DecodeInt(32))
  28732. if esep {
  28733. dd.ReadMapElemValue()
  28734. }
  28735. if dd.TryDecodeAsNil() {
  28736. if d.h.DeleteOnNilMapValue {
  28737. delete(v, mk)
  28738. } else {
  28739. v[mk] = 0
  28740. }
  28741. continue
  28742. }
  28743. mv = int16(dd.DecodeInt(16))
  28744. if v != nil {
  28745. v[mk] = mv
  28746. }
  28747. }
  28748. dd.ReadMapEnd()
  28749. return v, changed
  28750. }
  28751. func (d *Decoder) fastpathDecMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  28752. if rv.Kind() == reflect.Ptr {
  28753. vp := rv2i(rv).(*map[int32]int32)
  28754. if v, changed := fastpathTV.DecMapInt32Int32V(*vp, true, d); changed {
  28755. *vp = v
  28756. }
  28757. return
  28758. }
  28759. fastpathTV.DecMapInt32Int32V(rv2i(rv).(map[int32]int32), false, d)
  28760. }
  28761. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, d *Decoder) {
  28762. if v, changed := f.DecMapInt32Int32V(*vp, true, d); changed {
  28763. *vp = v
  28764. }
  28765. }
  28766. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, canChange bool,
  28767. d *Decoder) (_ map[int32]int32, changed bool) {
  28768. dd, esep := d.d, d.hh.hasElemSeparators()
  28769. containerLen := dd.ReadMapStart()
  28770. if canChange && v == nil {
  28771. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  28772. v = make(map[int32]int32, xlen)
  28773. changed = true
  28774. }
  28775. if containerLen == 0 {
  28776. dd.ReadMapEnd()
  28777. return v, changed
  28778. }
  28779. var mk int32
  28780. var mv int32
  28781. hasLen := containerLen > 0
  28782. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28783. if esep {
  28784. dd.ReadMapElemKey()
  28785. }
  28786. mk = int32(dd.DecodeInt(32))
  28787. if esep {
  28788. dd.ReadMapElemValue()
  28789. }
  28790. if dd.TryDecodeAsNil() {
  28791. if d.h.DeleteOnNilMapValue {
  28792. delete(v, mk)
  28793. } else {
  28794. v[mk] = 0
  28795. }
  28796. continue
  28797. }
  28798. mv = int32(dd.DecodeInt(32))
  28799. if v != nil {
  28800. v[mk] = mv
  28801. }
  28802. }
  28803. dd.ReadMapEnd()
  28804. return v, changed
  28805. }
  28806. func (d *Decoder) fastpathDecMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  28807. if rv.Kind() == reflect.Ptr {
  28808. vp := rv2i(rv).(*map[int32]int64)
  28809. if v, changed := fastpathTV.DecMapInt32Int64V(*vp, true, d); changed {
  28810. *vp = v
  28811. }
  28812. return
  28813. }
  28814. fastpathTV.DecMapInt32Int64V(rv2i(rv).(map[int32]int64), false, d)
  28815. }
  28816. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, d *Decoder) {
  28817. if v, changed := f.DecMapInt32Int64V(*vp, true, d); changed {
  28818. *vp = v
  28819. }
  28820. }
  28821. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, canChange bool,
  28822. d *Decoder) (_ map[int32]int64, changed bool) {
  28823. dd, esep := d.d, d.hh.hasElemSeparators()
  28824. containerLen := dd.ReadMapStart()
  28825. if canChange && v == nil {
  28826. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28827. v = make(map[int32]int64, xlen)
  28828. changed = true
  28829. }
  28830. if containerLen == 0 {
  28831. dd.ReadMapEnd()
  28832. return v, changed
  28833. }
  28834. var mk int32
  28835. var mv int64
  28836. hasLen := containerLen > 0
  28837. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28838. if esep {
  28839. dd.ReadMapElemKey()
  28840. }
  28841. mk = int32(dd.DecodeInt(32))
  28842. if esep {
  28843. dd.ReadMapElemValue()
  28844. }
  28845. if dd.TryDecodeAsNil() {
  28846. if d.h.DeleteOnNilMapValue {
  28847. delete(v, mk)
  28848. } else {
  28849. v[mk] = 0
  28850. }
  28851. continue
  28852. }
  28853. mv = dd.DecodeInt(64)
  28854. if v != nil {
  28855. v[mk] = mv
  28856. }
  28857. }
  28858. dd.ReadMapEnd()
  28859. return v, changed
  28860. }
  28861. func (d *Decoder) fastpathDecMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  28862. if rv.Kind() == reflect.Ptr {
  28863. vp := rv2i(rv).(*map[int32]float32)
  28864. if v, changed := fastpathTV.DecMapInt32Float32V(*vp, true, d); changed {
  28865. *vp = v
  28866. }
  28867. return
  28868. }
  28869. fastpathTV.DecMapInt32Float32V(rv2i(rv).(map[int32]float32), false, d)
  28870. }
  28871. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, d *Decoder) {
  28872. if v, changed := f.DecMapInt32Float32V(*vp, true, d); changed {
  28873. *vp = v
  28874. }
  28875. }
  28876. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, canChange bool,
  28877. d *Decoder) (_ map[int32]float32, changed bool) {
  28878. dd, esep := d.d, d.hh.hasElemSeparators()
  28879. containerLen := dd.ReadMapStart()
  28880. if canChange && v == nil {
  28881. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  28882. v = make(map[int32]float32, xlen)
  28883. changed = true
  28884. }
  28885. if containerLen == 0 {
  28886. dd.ReadMapEnd()
  28887. return v, changed
  28888. }
  28889. var mk int32
  28890. var mv float32
  28891. hasLen := containerLen > 0
  28892. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28893. if esep {
  28894. dd.ReadMapElemKey()
  28895. }
  28896. mk = int32(dd.DecodeInt(32))
  28897. if esep {
  28898. dd.ReadMapElemValue()
  28899. }
  28900. if dd.TryDecodeAsNil() {
  28901. if d.h.DeleteOnNilMapValue {
  28902. delete(v, mk)
  28903. } else {
  28904. v[mk] = 0
  28905. }
  28906. continue
  28907. }
  28908. mv = float32(dd.DecodeFloat(true))
  28909. if v != nil {
  28910. v[mk] = mv
  28911. }
  28912. }
  28913. dd.ReadMapEnd()
  28914. return v, changed
  28915. }
  28916. func (d *Decoder) fastpathDecMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  28917. if rv.Kind() == reflect.Ptr {
  28918. vp := rv2i(rv).(*map[int32]float64)
  28919. if v, changed := fastpathTV.DecMapInt32Float64V(*vp, true, d); changed {
  28920. *vp = v
  28921. }
  28922. return
  28923. }
  28924. fastpathTV.DecMapInt32Float64V(rv2i(rv).(map[int32]float64), false, d)
  28925. }
  28926. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, d *Decoder) {
  28927. if v, changed := f.DecMapInt32Float64V(*vp, true, d); changed {
  28928. *vp = v
  28929. }
  28930. }
  28931. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, canChange bool,
  28932. d *Decoder) (_ map[int32]float64, changed bool) {
  28933. dd, esep := d.d, d.hh.hasElemSeparators()
  28934. containerLen := dd.ReadMapStart()
  28935. if canChange && v == nil {
  28936. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28937. v = make(map[int32]float64, xlen)
  28938. changed = true
  28939. }
  28940. if containerLen == 0 {
  28941. dd.ReadMapEnd()
  28942. return v, changed
  28943. }
  28944. var mk int32
  28945. var mv float64
  28946. hasLen := containerLen > 0
  28947. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28948. if esep {
  28949. dd.ReadMapElemKey()
  28950. }
  28951. mk = int32(dd.DecodeInt(32))
  28952. if esep {
  28953. dd.ReadMapElemValue()
  28954. }
  28955. if dd.TryDecodeAsNil() {
  28956. if d.h.DeleteOnNilMapValue {
  28957. delete(v, mk)
  28958. } else {
  28959. v[mk] = 0
  28960. }
  28961. continue
  28962. }
  28963. mv = dd.DecodeFloat(false)
  28964. if v != nil {
  28965. v[mk] = mv
  28966. }
  28967. }
  28968. dd.ReadMapEnd()
  28969. return v, changed
  28970. }
  28971. func (d *Decoder) fastpathDecMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  28972. if rv.Kind() == reflect.Ptr {
  28973. vp := rv2i(rv).(*map[int32]bool)
  28974. if v, changed := fastpathTV.DecMapInt32BoolV(*vp, true, d); changed {
  28975. *vp = v
  28976. }
  28977. return
  28978. }
  28979. fastpathTV.DecMapInt32BoolV(rv2i(rv).(map[int32]bool), false, d)
  28980. }
  28981. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, d *Decoder) {
  28982. if v, changed := f.DecMapInt32BoolV(*vp, true, d); changed {
  28983. *vp = v
  28984. }
  28985. }
  28986. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, canChange bool,
  28987. d *Decoder) (_ map[int32]bool, changed bool) {
  28988. dd, esep := d.d, d.hh.hasElemSeparators()
  28989. containerLen := dd.ReadMapStart()
  28990. if canChange && v == nil {
  28991. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28992. v = make(map[int32]bool, xlen)
  28993. changed = true
  28994. }
  28995. if containerLen == 0 {
  28996. dd.ReadMapEnd()
  28997. return v, changed
  28998. }
  28999. var mk int32
  29000. var mv bool
  29001. hasLen := containerLen > 0
  29002. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29003. if esep {
  29004. dd.ReadMapElemKey()
  29005. }
  29006. mk = int32(dd.DecodeInt(32))
  29007. if esep {
  29008. dd.ReadMapElemValue()
  29009. }
  29010. if dd.TryDecodeAsNil() {
  29011. if d.h.DeleteOnNilMapValue {
  29012. delete(v, mk)
  29013. } else {
  29014. v[mk] = false
  29015. }
  29016. continue
  29017. }
  29018. mv = dd.DecodeBool()
  29019. if v != nil {
  29020. v[mk] = mv
  29021. }
  29022. }
  29023. dd.ReadMapEnd()
  29024. return v, changed
  29025. }
  29026. func (d *Decoder) fastpathDecMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  29027. if rv.Kind() == reflect.Ptr {
  29028. vp := rv2i(rv).(*map[int64]interface{})
  29029. if v, changed := fastpathTV.DecMapInt64IntfV(*vp, true, d); changed {
  29030. *vp = v
  29031. }
  29032. return
  29033. }
  29034. fastpathTV.DecMapInt64IntfV(rv2i(rv).(map[int64]interface{}), false, d)
  29035. }
  29036. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, d *Decoder) {
  29037. if v, changed := f.DecMapInt64IntfV(*vp, true, d); changed {
  29038. *vp = v
  29039. }
  29040. }
  29041. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, canChange bool,
  29042. d *Decoder) (_ map[int64]interface{}, changed bool) {
  29043. dd, esep := d.d, d.hh.hasElemSeparators()
  29044. containerLen := dd.ReadMapStart()
  29045. if canChange && v == nil {
  29046. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  29047. v = make(map[int64]interface{}, xlen)
  29048. changed = true
  29049. }
  29050. if containerLen == 0 {
  29051. dd.ReadMapEnd()
  29052. return v, changed
  29053. }
  29054. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  29055. var mk int64
  29056. var mv interface{}
  29057. hasLen := containerLen > 0
  29058. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29059. if esep {
  29060. dd.ReadMapElemKey()
  29061. }
  29062. mk = dd.DecodeInt(64)
  29063. if esep {
  29064. dd.ReadMapElemValue()
  29065. }
  29066. if dd.TryDecodeAsNil() {
  29067. if d.h.DeleteOnNilMapValue {
  29068. delete(v, mk)
  29069. } else {
  29070. v[mk] = nil
  29071. }
  29072. continue
  29073. }
  29074. if mapGet {
  29075. mv = v[mk]
  29076. } else {
  29077. mv = nil
  29078. }
  29079. d.decode(&mv)
  29080. if v != nil {
  29081. v[mk] = mv
  29082. }
  29083. }
  29084. dd.ReadMapEnd()
  29085. return v, changed
  29086. }
  29087. func (d *Decoder) fastpathDecMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  29088. if rv.Kind() == reflect.Ptr {
  29089. vp := rv2i(rv).(*map[int64]string)
  29090. if v, changed := fastpathTV.DecMapInt64StringV(*vp, true, d); changed {
  29091. *vp = v
  29092. }
  29093. return
  29094. }
  29095. fastpathTV.DecMapInt64StringV(rv2i(rv).(map[int64]string), false, d)
  29096. }
  29097. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, d *Decoder) {
  29098. if v, changed := f.DecMapInt64StringV(*vp, true, d); changed {
  29099. *vp = v
  29100. }
  29101. }
  29102. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, canChange bool,
  29103. d *Decoder) (_ map[int64]string, changed bool) {
  29104. dd, esep := d.d, d.hh.hasElemSeparators()
  29105. containerLen := dd.ReadMapStart()
  29106. if canChange && v == nil {
  29107. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  29108. v = make(map[int64]string, xlen)
  29109. changed = true
  29110. }
  29111. if containerLen == 0 {
  29112. dd.ReadMapEnd()
  29113. return v, changed
  29114. }
  29115. var mk int64
  29116. var mv string
  29117. hasLen := containerLen > 0
  29118. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29119. if esep {
  29120. dd.ReadMapElemKey()
  29121. }
  29122. mk = dd.DecodeInt(64)
  29123. if esep {
  29124. dd.ReadMapElemValue()
  29125. }
  29126. if dd.TryDecodeAsNil() {
  29127. if d.h.DeleteOnNilMapValue {
  29128. delete(v, mk)
  29129. } else {
  29130. v[mk] = ""
  29131. }
  29132. continue
  29133. }
  29134. mv = dd.DecodeString()
  29135. if v != nil {
  29136. v[mk] = mv
  29137. }
  29138. }
  29139. dd.ReadMapEnd()
  29140. return v, changed
  29141. }
  29142. func (d *Decoder) fastpathDecMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  29143. if rv.Kind() == reflect.Ptr {
  29144. vp := rv2i(rv).(*map[int64]uint)
  29145. if v, changed := fastpathTV.DecMapInt64UintV(*vp, true, d); changed {
  29146. *vp = v
  29147. }
  29148. return
  29149. }
  29150. fastpathTV.DecMapInt64UintV(rv2i(rv).(map[int64]uint), false, d)
  29151. }
  29152. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, d *Decoder) {
  29153. if v, changed := f.DecMapInt64UintV(*vp, true, d); changed {
  29154. *vp = v
  29155. }
  29156. }
  29157. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, canChange bool,
  29158. d *Decoder) (_ map[int64]uint, changed bool) {
  29159. dd, esep := d.d, d.hh.hasElemSeparators()
  29160. containerLen := dd.ReadMapStart()
  29161. if canChange && v == nil {
  29162. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29163. v = make(map[int64]uint, xlen)
  29164. changed = true
  29165. }
  29166. if containerLen == 0 {
  29167. dd.ReadMapEnd()
  29168. return v, changed
  29169. }
  29170. var mk int64
  29171. var mv uint
  29172. hasLen := containerLen > 0
  29173. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29174. if esep {
  29175. dd.ReadMapElemKey()
  29176. }
  29177. mk = dd.DecodeInt(64)
  29178. if esep {
  29179. dd.ReadMapElemValue()
  29180. }
  29181. if dd.TryDecodeAsNil() {
  29182. if d.h.DeleteOnNilMapValue {
  29183. delete(v, mk)
  29184. } else {
  29185. v[mk] = 0
  29186. }
  29187. continue
  29188. }
  29189. mv = uint(dd.DecodeUint(uintBitsize))
  29190. if v != nil {
  29191. v[mk] = mv
  29192. }
  29193. }
  29194. dd.ReadMapEnd()
  29195. return v, changed
  29196. }
  29197. func (d *Decoder) fastpathDecMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  29198. if rv.Kind() == reflect.Ptr {
  29199. vp := rv2i(rv).(*map[int64]uint8)
  29200. if v, changed := fastpathTV.DecMapInt64Uint8V(*vp, true, d); changed {
  29201. *vp = v
  29202. }
  29203. return
  29204. }
  29205. fastpathTV.DecMapInt64Uint8V(rv2i(rv).(map[int64]uint8), false, d)
  29206. }
  29207. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, d *Decoder) {
  29208. if v, changed := f.DecMapInt64Uint8V(*vp, true, d); changed {
  29209. *vp = v
  29210. }
  29211. }
  29212. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, canChange bool,
  29213. d *Decoder) (_ map[int64]uint8, changed bool) {
  29214. dd, esep := d.d, d.hh.hasElemSeparators()
  29215. containerLen := dd.ReadMapStart()
  29216. if canChange && v == nil {
  29217. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29218. v = make(map[int64]uint8, xlen)
  29219. changed = true
  29220. }
  29221. if containerLen == 0 {
  29222. dd.ReadMapEnd()
  29223. return v, changed
  29224. }
  29225. var mk int64
  29226. var mv uint8
  29227. hasLen := containerLen > 0
  29228. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29229. if esep {
  29230. dd.ReadMapElemKey()
  29231. }
  29232. mk = dd.DecodeInt(64)
  29233. if esep {
  29234. dd.ReadMapElemValue()
  29235. }
  29236. if dd.TryDecodeAsNil() {
  29237. if d.h.DeleteOnNilMapValue {
  29238. delete(v, mk)
  29239. } else {
  29240. v[mk] = 0
  29241. }
  29242. continue
  29243. }
  29244. mv = uint8(dd.DecodeUint(8))
  29245. if v != nil {
  29246. v[mk] = mv
  29247. }
  29248. }
  29249. dd.ReadMapEnd()
  29250. return v, changed
  29251. }
  29252. func (d *Decoder) fastpathDecMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  29253. if rv.Kind() == reflect.Ptr {
  29254. vp := rv2i(rv).(*map[int64]uint16)
  29255. if v, changed := fastpathTV.DecMapInt64Uint16V(*vp, true, d); changed {
  29256. *vp = v
  29257. }
  29258. return
  29259. }
  29260. fastpathTV.DecMapInt64Uint16V(rv2i(rv).(map[int64]uint16), false, d)
  29261. }
  29262. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, d *Decoder) {
  29263. if v, changed := f.DecMapInt64Uint16V(*vp, true, d); changed {
  29264. *vp = v
  29265. }
  29266. }
  29267. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, canChange bool,
  29268. d *Decoder) (_ map[int64]uint16, changed bool) {
  29269. dd, esep := d.d, d.hh.hasElemSeparators()
  29270. containerLen := dd.ReadMapStart()
  29271. if canChange && v == nil {
  29272. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29273. v = make(map[int64]uint16, xlen)
  29274. changed = true
  29275. }
  29276. if containerLen == 0 {
  29277. dd.ReadMapEnd()
  29278. return v, changed
  29279. }
  29280. var mk int64
  29281. var mv uint16
  29282. hasLen := containerLen > 0
  29283. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29284. if esep {
  29285. dd.ReadMapElemKey()
  29286. }
  29287. mk = dd.DecodeInt(64)
  29288. if esep {
  29289. dd.ReadMapElemValue()
  29290. }
  29291. if dd.TryDecodeAsNil() {
  29292. if d.h.DeleteOnNilMapValue {
  29293. delete(v, mk)
  29294. } else {
  29295. v[mk] = 0
  29296. }
  29297. continue
  29298. }
  29299. mv = uint16(dd.DecodeUint(16))
  29300. if v != nil {
  29301. v[mk] = mv
  29302. }
  29303. }
  29304. dd.ReadMapEnd()
  29305. return v, changed
  29306. }
  29307. func (d *Decoder) fastpathDecMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  29308. if rv.Kind() == reflect.Ptr {
  29309. vp := rv2i(rv).(*map[int64]uint32)
  29310. if v, changed := fastpathTV.DecMapInt64Uint32V(*vp, true, d); changed {
  29311. *vp = v
  29312. }
  29313. return
  29314. }
  29315. fastpathTV.DecMapInt64Uint32V(rv2i(rv).(map[int64]uint32), false, d)
  29316. }
  29317. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, d *Decoder) {
  29318. if v, changed := f.DecMapInt64Uint32V(*vp, true, d); changed {
  29319. *vp = v
  29320. }
  29321. }
  29322. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, canChange bool,
  29323. d *Decoder) (_ map[int64]uint32, changed bool) {
  29324. dd, esep := d.d, d.hh.hasElemSeparators()
  29325. containerLen := dd.ReadMapStart()
  29326. if canChange && v == nil {
  29327. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29328. v = make(map[int64]uint32, xlen)
  29329. changed = true
  29330. }
  29331. if containerLen == 0 {
  29332. dd.ReadMapEnd()
  29333. return v, changed
  29334. }
  29335. var mk int64
  29336. var mv uint32
  29337. hasLen := containerLen > 0
  29338. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29339. if esep {
  29340. dd.ReadMapElemKey()
  29341. }
  29342. mk = dd.DecodeInt(64)
  29343. if esep {
  29344. dd.ReadMapElemValue()
  29345. }
  29346. if dd.TryDecodeAsNil() {
  29347. if d.h.DeleteOnNilMapValue {
  29348. delete(v, mk)
  29349. } else {
  29350. v[mk] = 0
  29351. }
  29352. continue
  29353. }
  29354. mv = uint32(dd.DecodeUint(32))
  29355. if v != nil {
  29356. v[mk] = mv
  29357. }
  29358. }
  29359. dd.ReadMapEnd()
  29360. return v, changed
  29361. }
  29362. func (d *Decoder) fastpathDecMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  29363. if rv.Kind() == reflect.Ptr {
  29364. vp := rv2i(rv).(*map[int64]uint64)
  29365. if v, changed := fastpathTV.DecMapInt64Uint64V(*vp, true, d); changed {
  29366. *vp = v
  29367. }
  29368. return
  29369. }
  29370. fastpathTV.DecMapInt64Uint64V(rv2i(rv).(map[int64]uint64), false, d)
  29371. }
  29372. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, d *Decoder) {
  29373. if v, changed := f.DecMapInt64Uint64V(*vp, true, d); changed {
  29374. *vp = v
  29375. }
  29376. }
  29377. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, canChange bool,
  29378. d *Decoder) (_ map[int64]uint64, changed bool) {
  29379. dd, esep := d.d, d.hh.hasElemSeparators()
  29380. containerLen := dd.ReadMapStart()
  29381. if canChange && v == nil {
  29382. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29383. v = make(map[int64]uint64, xlen)
  29384. changed = true
  29385. }
  29386. if containerLen == 0 {
  29387. dd.ReadMapEnd()
  29388. return v, changed
  29389. }
  29390. var mk int64
  29391. var mv uint64
  29392. hasLen := containerLen > 0
  29393. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29394. if esep {
  29395. dd.ReadMapElemKey()
  29396. }
  29397. mk = dd.DecodeInt(64)
  29398. if esep {
  29399. dd.ReadMapElemValue()
  29400. }
  29401. if dd.TryDecodeAsNil() {
  29402. if d.h.DeleteOnNilMapValue {
  29403. delete(v, mk)
  29404. } else {
  29405. v[mk] = 0
  29406. }
  29407. continue
  29408. }
  29409. mv = dd.DecodeUint(64)
  29410. if v != nil {
  29411. v[mk] = mv
  29412. }
  29413. }
  29414. dd.ReadMapEnd()
  29415. return v, changed
  29416. }
  29417. func (d *Decoder) fastpathDecMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  29418. if rv.Kind() == reflect.Ptr {
  29419. vp := rv2i(rv).(*map[int64]uintptr)
  29420. if v, changed := fastpathTV.DecMapInt64UintptrV(*vp, true, d); changed {
  29421. *vp = v
  29422. }
  29423. return
  29424. }
  29425. fastpathTV.DecMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), false, d)
  29426. }
  29427. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, d *Decoder) {
  29428. if v, changed := f.DecMapInt64UintptrV(*vp, true, d); changed {
  29429. *vp = v
  29430. }
  29431. }
  29432. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, canChange bool,
  29433. d *Decoder) (_ map[int64]uintptr, changed bool) {
  29434. dd, esep := d.d, d.hh.hasElemSeparators()
  29435. containerLen := dd.ReadMapStart()
  29436. if canChange && v == nil {
  29437. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29438. v = make(map[int64]uintptr, xlen)
  29439. changed = true
  29440. }
  29441. if containerLen == 0 {
  29442. dd.ReadMapEnd()
  29443. return v, changed
  29444. }
  29445. var mk int64
  29446. var mv uintptr
  29447. hasLen := containerLen > 0
  29448. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29449. if esep {
  29450. dd.ReadMapElemKey()
  29451. }
  29452. mk = dd.DecodeInt(64)
  29453. if esep {
  29454. dd.ReadMapElemValue()
  29455. }
  29456. if dd.TryDecodeAsNil() {
  29457. if d.h.DeleteOnNilMapValue {
  29458. delete(v, mk)
  29459. } else {
  29460. v[mk] = 0
  29461. }
  29462. continue
  29463. }
  29464. mv = uintptr(dd.DecodeUint(uintBitsize))
  29465. if v != nil {
  29466. v[mk] = mv
  29467. }
  29468. }
  29469. dd.ReadMapEnd()
  29470. return v, changed
  29471. }
  29472. func (d *Decoder) fastpathDecMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  29473. if rv.Kind() == reflect.Ptr {
  29474. vp := rv2i(rv).(*map[int64]int)
  29475. if v, changed := fastpathTV.DecMapInt64IntV(*vp, true, d); changed {
  29476. *vp = v
  29477. }
  29478. return
  29479. }
  29480. fastpathTV.DecMapInt64IntV(rv2i(rv).(map[int64]int), false, d)
  29481. }
  29482. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, d *Decoder) {
  29483. if v, changed := f.DecMapInt64IntV(*vp, true, d); changed {
  29484. *vp = v
  29485. }
  29486. }
  29487. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, canChange bool,
  29488. d *Decoder) (_ map[int64]int, changed bool) {
  29489. dd, esep := d.d, d.hh.hasElemSeparators()
  29490. containerLen := dd.ReadMapStart()
  29491. if canChange && v == nil {
  29492. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29493. v = make(map[int64]int, xlen)
  29494. changed = true
  29495. }
  29496. if containerLen == 0 {
  29497. dd.ReadMapEnd()
  29498. return v, changed
  29499. }
  29500. var mk int64
  29501. var mv int
  29502. hasLen := containerLen > 0
  29503. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29504. if esep {
  29505. dd.ReadMapElemKey()
  29506. }
  29507. mk = dd.DecodeInt(64)
  29508. if esep {
  29509. dd.ReadMapElemValue()
  29510. }
  29511. if dd.TryDecodeAsNil() {
  29512. if d.h.DeleteOnNilMapValue {
  29513. delete(v, mk)
  29514. } else {
  29515. v[mk] = 0
  29516. }
  29517. continue
  29518. }
  29519. mv = int(dd.DecodeInt(intBitsize))
  29520. if v != nil {
  29521. v[mk] = mv
  29522. }
  29523. }
  29524. dd.ReadMapEnd()
  29525. return v, changed
  29526. }
  29527. func (d *Decoder) fastpathDecMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  29528. if rv.Kind() == reflect.Ptr {
  29529. vp := rv2i(rv).(*map[int64]int8)
  29530. if v, changed := fastpathTV.DecMapInt64Int8V(*vp, true, d); changed {
  29531. *vp = v
  29532. }
  29533. return
  29534. }
  29535. fastpathTV.DecMapInt64Int8V(rv2i(rv).(map[int64]int8), false, d)
  29536. }
  29537. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, d *Decoder) {
  29538. if v, changed := f.DecMapInt64Int8V(*vp, true, d); changed {
  29539. *vp = v
  29540. }
  29541. }
  29542. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, canChange bool,
  29543. d *Decoder) (_ map[int64]int8, changed bool) {
  29544. dd, esep := d.d, d.hh.hasElemSeparators()
  29545. containerLen := dd.ReadMapStart()
  29546. if canChange && v == nil {
  29547. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29548. v = make(map[int64]int8, xlen)
  29549. changed = true
  29550. }
  29551. if containerLen == 0 {
  29552. dd.ReadMapEnd()
  29553. return v, changed
  29554. }
  29555. var mk int64
  29556. var mv int8
  29557. hasLen := containerLen > 0
  29558. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29559. if esep {
  29560. dd.ReadMapElemKey()
  29561. }
  29562. mk = dd.DecodeInt(64)
  29563. if esep {
  29564. dd.ReadMapElemValue()
  29565. }
  29566. if dd.TryDecodeAsNil() {
  29567. if d.h.DeleteOnNilMapValue {
  29568. delete(v, mk)
  29569. } else {
  29570. v[mk] = 0
  29571. }
  29572. continue
  29573. }
  29574. mv = int8(dd.DecodeInt(8))
  29575. if v != nil {
  29576. v[mk] = mv
  29577. }
  29578. }
  29579. dd.ReadMapEnd()
  29580. return v, changed
  29581. }
  29582. func (d *Decoder) fastpathDecMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  29583. if rv.Kind() == reflect.Ptr {
  29584. vp := rv2i(rv).(*map[int64]int16)
  29585. if v, changed := fastpathTV.DecMapInt64Int16V(*vp, true, d); changed {
  29586. *vp = v
  29587. }
  29588. return
  29589. }
  29590. fastpathTV.DecMapInt64Int16V(rv2i(rv).(map[int64]int16), false, d)
  29591. }
  29592. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, d *Decoder) {
  29593. if v, changed := f.DecMapInt64Int16V(*vp, true, d); changed {
  29594. *vp = v
  29595. }
  29596. }
  29597. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, canChange bool,
  29598. d *Decoder) (_ map[int64]int16, changed bool) {
  29599. dd, esep := d.d, d.hh.hasElemSeparators()
  29600. containerLen := dd.ReadMapStart()
  29601. if canChange && v == nil {
  29602. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29603. v = make(map[int64]int16, xlen)
  29604. changed = true
  29605. }
  29606. if containerLen == 0 {
  29607. dd.ReadMapEnd()
  29608. return v, changed
  29609. }
  29610. var mk int64
  29611. var mv int16
  29612. hasLen := containerLen > 0
  29613. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29614. if esep {
  29615. dd.ReadMapElemKey()
  29616. }
  29617. mk = dd.DecodeInt(64)
  29618. if esep {
  29619. dd.ReadMapElemValue()
  29620. }
  29621. if dd.TryDecodeAsNil() {
  29622. if d.h.DeleteOnNilMapValue {
  29623. delete(v, mk)
  29624. } else {
  29625. v[mk] = 0
  29626. }
  29627. continue
  29628. }
  29629. mv = int16(dd.DecodeInt(16))
  29630. if v != nil {
  29631. v[mk] = mv
  29632. }
  29633. }
  29634. dd.ReadMapEnd()
  29635. return v, changed
  29636. }
  29637. func (d *Decoder) fastpathDecMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  29638. if rv.Kind() == reflect.Ptr {
  29639. vp := rv2i(rv).(*map[int64]int32)
  29640. if v, changed := fastpathTV.DecMapInt64Int32V(*vp, true, d); changed {
  29641. *vp = v
  29642. }
  29643. return
  29644. }
  29645. fastpathTV.DecMapInt64Int32V(rv2i(rv).(map[int64]int32), false, d)
  29646. }
  29647. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, d *Decoder) {
  29648. if v, changed := f.DecMapInt64Int32V(*vp, true, d); changed {
  29649. *vp = v
  29650. }
  29651. }
  29652. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, canChange bool,
  29653. d *Decoder) (_ map[int64]int32, changed bool) {
  29654. dd, esep := d.d, d.hh.hasElemSeparators()
  29655. containerLen := dd.ReadMapStart()
  29656. if canChange && v == nil {
  29657. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29658. v = make(map[int64]int32, xlen)
  29659. changed = true
  29660. }
  29661. if containerLen == 0 {
  29662. dd.ReadMapEnd()
  29663. return v, changed
  29664. }
  29665. var mk int64
  29666. var mv int32
  29667. hasLen := containerLen > 0
  29668. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29669. if esep {
  29670. dd.ReadMapElemKey()
  29671. }
  29672. mk = dd.DecodeInt(64)
  29673. if esep {
  29674. dd.ReadMapElemValue()
  29675. }
  29676. if dd.TryDecodeAsNil() {
  29677. if d.h.DeleteOnNilMapValue {
  29678. delete(v, mk)
  29679. } else {
  29680. v[mk] = 0
  29681. }
  29682. continue
  29683. }
  29684. mv = int32(dd.DecodeInt(32))
  29685. if v != nil {
  29686. v[mk] = mv
  29687. }
  29688. }
  29689. dd.ReadMapEnd()
  29690. return v, changed
  29691. }
  29692. func (d *Decoder) fastpathDecMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  29693. if rv.Kind() == reflect.Ptr {
  29694. vp := rv2i(rv).(*map[int64]int64)
  29695. if v, changed := fastpathTV.DecMapInt64Int64V(*vp, true, d); changed {
  29696. *vp = v
  29697. }
  29698. return
  29699. }
  29700. fastpathTV.DecMapInt64Int64V(rv2i(rv).(map[int64]int64), false, d)
  29701. }
  29702. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, d *Decoder) {
  29703. if v, changed := f.DecMapInt64Int64V(*vp, true, d); changed {
  29704. *vp = v
  29705. }
  29706. }
  29707. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, canChange bool,
  29708. d *Decoder) (_ map[int64]int64, changed bool) {
  29709. dd, esep := d.d, d.hh.hasElemSeparators()
  29710. containerLen := dd.ReadMapStart()
  29711. if canChange && v == nil {
  29712. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29713. v = make(map[int64]int64, xlen)
  29714. changed = true
  29715. }
  29716. if containerLen == 0 {
  29717. dd.ReadMapEnd()
  29718. return v, changed
  29719. }
  29720. var mk int64
  29721. var mv int64
  29722. hasLen := containerLen > 0
  29723. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29724. if esep {
  29725. dd.ReadMapElemKey()
  29726. }
  29727. mk = dd.DecodeInt(64)
  29728. if esep {
  29729. dd.ReadMapElemValue()
  29730. }
  29731. if dd.TryDecodeAsNil() {
  29732. if d.h.DeleteOnNilMapValue {
  29733. delete(v, mk)
  29734. } else {
  29735. v[mk] = 0
  29736. }
  29737. continue
  29738. }
  29739. mv = dd.DecodeInt(64)
  29740. if v != nil {
  29741. v[mk] = mv
  29742. }
  29743. }
  29744. dd.ReadMapEnd()
  29745. return v, changed
  29746. }
  29747. func (d *Decoder) fastpathDecMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  29748. if rv.Kind() == reflect.Ptr {
  29749. vp := rv2i(rv).(*map[int64]float32)
  29750. if v, changed := fastpathTV.DecMapInt64Float32V(*vp, true, d); changed {
  29751. *vp = v
  29752. }
  29753. return
  29754. }
  29755. fastpathTV.DecMapInt64Float32V(rv2i(rv).(map[int64]float32), false, d)
  29756. }
  29757. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, d *Decoder) {
  29758. if v, changed := f.DecMapInt64Float32V(*vp, true, d); changed {
  29759. *vp = v
  29760. }
  29761. }
  29762. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, canChange bool,
  29763. d *Decoder) (_ map[int64]float32, changed bool) {
  29764. dd, esep := d.d, d.hh.hasElemSeparators()
  29765. containerLen := dd.ReadMapStart()
  29766. if canChange && v == nil {
  29767. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29768. v = make(map[int64]float32, xlen)
  29769. changed = true
  29770. }
  29771. if containerLen == 0 {
  29772. dd.ReadMapEnd()
  29773. return v, changed
  29774. }
  29775. var mk int64
  29776. var mv float32
  29777. hasLen := containerLen > 0
  29778. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29779. if esep {
  29780. dd.ReadMapElemKey()
  29781. }
  29782. mk = dd.DecodeInt(64)
  29783. if esep {
  29784. dd.ReadMapElemValue()
  29785. }
  29786. if dd.TryDecodeAsNil() {
  29787. if d.h.DeleteOnNilMapValue {
  29788. delete(v, mk)
  29789. } else {
  29790. v[mk] = 0
  29791. }
  29792. continue
  29793. }
  29794. mv = float32(dd.DecodeFloat(true))
  29795. if v != nil {
  29796. v[mk] = mv
  29797. }
  29798. }
  29799. dd.ReadMapEnd()
  29800. return v, changed
  29801. }
  29802. func (d *Decoder) fastpathDecMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  29803. if rv.Kind() == reflect.Ptr {
  29804. vp := rv2i(rv).(*map[int64]float64)
  29805. if v, changed := fastpathTV.DecMapInt64Float64V(*vp, true, d); changed {
  29806. *vp = v
  29807. }
  29808. return
  29809. }
  29810. fastpathTV.DecMapInt64Float64V(rv2i(rv).(map[int64]float64), false, d)
  29811. }
  29812. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, d *Decoder) {
  29813. if v, changed := f.DecMapInt64Float64V(*vp, true, d); changed {
  29814. *vp = v
  29815. }
  29816. }
  29817. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, canChange bool,
  29818. d *Decoder) (_ map[int64]float64, changed bool) {
  29819. dd, esep := d.d, d.hh.hasElemSeparators()
  29820. containerLen := dd.ReadMapStart()
  29821. if canChange && v == nil {
  29822. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29823. v = make(map[int64]float64, xlen)
  29824. changed = true
  29825. }
  29826. if containerLen == 0 {
  29827. dd.ReadMapEnd()
  29828. return v, changed
  29829. }
  29830. var mk int64
  29831. var mv float64
  29832. hasLen := containerLen > 0
  29833. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29834. if esep {
  29835. dd.ReadMapElemKey()
  29836. }
  29837. mk = dd.DecodeInt(64)
  29838. if esep {
  29839. dd.ReadMapElemValue()
  29840. }
  29841. if dd.TryDecodeAsNil() {
  29842. if d.h.DeleteOnNilMapValue {
  29843. delete(v, mk)
  29844. } else {
  29845. v[mk] = 0
  29846. }
  29847. continue
  29848. }
  29849. mv = dd.DecodeFloat(false)
  29850. if v != nil {
  29851. v[mk] = mv
  29852. }
  29853. }
  29854. dd.ReadMapEnd()
  29855. return v, changed
  29856. }
  29857. func (d *Decoder) fastpathDecMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  29858. if rv.Kind() == reflect.Ptr {
  29859. vp := rv2i(rv).(*map[int64]bool)
  29860. if v, changed := fastpathTV.DecMapInt64BoolV(*vp, true, d); changed {
  29861. *vp = v
  29862. }
  29863. return
  29864. }
  29865. fastpathTV.DecMapInt64BoolV(rv2i(rv).(map[int64]bool), false, d)
  29866. }
  29867. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, d *Decoder) {
  29868. if v, changed := f.DecMapInt64BoolV(*vp, true, d); changed {
  29869. *vp = v
  29870. }
  29871. }
  29872. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, canChange bool,
  29873. d *Decoder) (_ map[int64]bool, changed bool) {
  29874. dd, esep := d.d, d.hh.hasElemSeparators()
  29875. containerLen := dd.ReadMapStart()
  29876. if canChange && v == nil {
  29877. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29878. v = make(map[int64]bool, xlen)
  29879. changed = true
  29880. }
  29881. if containerLen == 0 {
  29882. dd.ReadMapEnd()
  29883. return v, changed
  29884. }
  29885. var mk int64
  29886. var mv bool
  29887. hasLen := containerLen > 0
  29888. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29889. if esep {
  29890. dd.ReadMapElemKey()
  29891. }
  29892. mk = dd.DecodeInt(64)
  29893. if esep {
  29894. dd.ReadMapElemValue()
  29895. }
  29896. if dd.TryDecodeAsNil() {
  29897. if d.h.DeleteOnNilMapValue {
  29898. delete(v, mk)
  29899. } else {
  29900. v[mk] = false
  29901. }
  29902. continue
  29903. }
  29904. mv = dd.DecodeBool()
  29905. if v != nil {
  29906. v[mk] = mv
  29907. }
  29908. }
  29909. dd.ReadMapEnd()
  29910. return v, changed
  29911. }
  29912. func (d *Decoder) fastpathDecMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  29913. if rv.Kind() == reflect.Ptr {
  29914. vp := rv2i(rv).(*map[bool]interface{})
  29915. if v, changed := fastpathTV.DecMapBoolIntfV(*vp, true, d); changed {
  29916. *vp = v
  29917. }
  29918. return
  29919. }
  29920. fastpathTV.DecMapBoolIntfV(rv2i(rv).(map[bool]interface{}), false, d)
  29921. }
  29922. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, d *Decoder) {
  29923. if v, changed := f.DecMapBoolIntfV(*vp, true, d); changed {
  29924. *vp = v
  29925. }
  29926. }
  29927. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, canChange bool,
  29928. d *Decoder) (_ map[bool]interface{}, changed bool) {
  29929. dd, esep := d.d, d.hh.hasElemSeparators()
  29930. containerLen := dd.ReadMapStart()
  29931. if canChange && v == nil {
  29932. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29933. v = make(map[bool]interface{}, xlen)
  29934. changed = true
  29935. }
  29936. if containerLen == 0 {
  29937. dd.ReadMapEnd()
  29938. return v, changed
  29939. }
  29940. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  29941. var mk bool
  29942. var mv interface{}
  29943. hasLen := containerLen > 0
  29944. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29945. if esep {
  29946. dd.ReadMapElemKey()
  29947. }
  29948. mk = dd.DecodeBool()
  29949. if esep {
  29950. dd.ReadMapElemValue()
  29951. }
  29952. if dd.TryDecodeAsNil() {
  29953. if d.h.DeleteOnNilMapValue {
  29954. delete(v, mk)
  29955. } else {
  29956. v[mk] = nil
  29957. }
  29958. continue
  29959. }
  29960. if mapGet {
  29961. mv = v[mk]
  29962. } else {
  29963. mv = nil
  29964. }
  29965. d.decode(&mv)
  29966. if v != nil {
  29967. v[mk] = mv
  29968. }
  29969. }
  29970. dd.ReadMapEnd()
  29971. return v, changed
  29972. }
  29973. func (d *Decoder) fastpathDecMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  29974. if rv.Kind() == reflect.Ptr {
  29975. vp := rv2i(rv).(*map[bool]string)
  29976. if v, changed := fastpathTV.DecMapBoolStringV(*vp, true, d); changed {
  29977. *vp = v
  29978. }
  29979. return
  29980. }
  29981. fastpathTV.DecMapBoolStringV(rv2i(rv).(map[bool]string), false, d)
  29982. }
  29983. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, d *Decoder) {
  29984. if v, changed := f.DecMapBoolStringV(*vp, true, d); changed {
  29985. *vp = v
  29986. }
  29987. }
  29988. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, canChange bool,
  29989. d *Decoder) (_ map[bool]string, changed bool) {
  29990. dd, esep := d.d, d.hh.hasElemSeparators()
  29991. containerLen := dd.ReadMapStart()
  29992. if canChange && v == nil {
  29993. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29994. v = make(map[bool]string, xlen)
  29995. changed = true
  29996. }
  29997. if containerLen == 0 {
  29998. dd.ReadMapEnd()
  29999. return v, changed
  30000. }
  30001. var mk bool
  30002. var mv string
  30003. hasLen := containerLen > 0
  30004. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30005. if esep {
  30006. dd.ReadMapElemKey()
  30007. }
  30008. mk = dd.DecodeBool()
  30009. if esep {
  30010. dd.ReadMapElemValue()
  30011. }
  30012. if dd.TryDecodeAsNil() {
  30013. if d.h.DeleteOnNilMapValue {
  30014. delete(v, mk)
  30015. } else {
  30016. v[mk] = ""
  30017. }
  30018. continue
  30019. }
  30020. mv = dd.DecodeString()
  30021. if v != nil {
  30022. v[mk] = mv
  30023. }
  30024. }
  30025. dd.ReadMapEnd()
  30026. return v, changed
  30027. }
  30028. func (d *Decoder) fastpathDecMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  30029. if rv.Kind() == reflect.Ptr {
  30030. vp := rv2i(rv).(*map[bool]uint)
  30031. if v, changed := fastpathTV.DecMapBoolUintV(*vp, true, d); changed {
  30032. *vp = v
  30033. }
  30034. return
  30035. }
  30036. fastpathTV.DecMapBoolUintV(rv2i(rv).(map[bool]uint), false, d)
  30037. }
  30038. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, d *Decoder) {
  30039. if v, changed := f.DecMapBoolUintV(*vp, true, d); changed {
  30040. *vp = v
  30041. }
  30042. }
  30043. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, canChange bool,
  30044. d *Decoder) (_ map[bool]uint, changed bool) {
  30045. dd, esep := d.d, d.hh.hasElemSeparators()
  30046. containerLen := dd.ReadMapStart()
  30047. if canChange && v == nil {
  30048. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30049. v = make(map[bool]uint, xlen)
  30050. changed = true
  30051. }
  30052. if containerLen == 0 {
  30053. dd.ReadMapEnd()
  30054. return v, changed
  30055. }
  30056. var mk bool
  30057. var mv uint
  30058. hasLen := containerLen > 0
  30059. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30060. if esep {
  30061. dd.ReadMapElemKey()
  30062. }
  30063. mk = dd.DecodeBool()
  30064. if esep {
  30065. dd.ReadMapElemValue()
  30066. }
  30067. if dd.TryDecodeAsNil() {
  30068. if d.h.DeleteOnNilMapValue {
  30069. delete(v, mk)
  30070. } else {
  30071. v[mk] = 0
  30072. }
  30073. continue
  30074. }
  30075. mv = uint(dd.DecodeUint(uintBitsize))
  30076. if v != nil {
  30077. v[mk] = mv
  30078. }
  30079. }
  30080. dd.ReadMapEnd()
  30081. return v, changed
  30082. }
  30083. func (d *Decoder) fastpathDecMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  30084. if rv.Kind() == reflect.Ptr {
  30085. vp := rv2i(rv).(*map[bool]uint8)
  30086. if v, changed := fastpathTV.DecMapBoolUint8V(*vp, true, d); changed {
  30087. *vp = v
  30088. }
  30089. return
  30090. }
  30091. fastpathTV.DecMapBoolUint8V(rv2i(rv).(map[bool]uint8), false, d)
  30092. }
  30093. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, d *Decoder) {
  30094. if v, changed := f.DecMapBoolUint8V(*vp, true, d); changed {
  30095. *vp = v
  30096. }
  30097. }
  30098. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, canChange bool,
  30099. d *Decoder) (_ map[bool]uint8, changed bool) {
  30100. dd, esep := d.d, d.hh.hasElemSeparators()
  30101. containerLen := dd.ReadMapStart()
  30102. if canChange && v == nil {
  30103. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30104. v = make(map[bool]uint8, xlen)
  30105. changed = true
  30106. }
  30107. if containerLen == 0 {
  30108. dd.ReadMapEnd()
  30109. return v, changed
  30110. }
  30111. var mk bool
  30112. var mv uint8
  30113. hasLen := containerLen > 0
  30114. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30115. if esep {
  30116. dd.ReadMapElemKey()
  30117. }
  30118. mk = dd.DecodeBool()
  30119. if esep {
  30120. dd.ReadMapElemValue()
  30121. }
  30122. if dd.TryDecodeAsNil() {
  30123. if d.h.DeleteOnNilMapValue {
  30124. delete(v, mk)
  30125. } else {
  30126. v[mk] = 0
  30127. }
  30128. continue
  30129. }
  30130. mv = uint8(dd.DecodeUint(8))
  30131. if v != nil {
  30132. v[mk] = mv
  30133. }
  30134. }
  30135. dd.ReadMapEnd()
  30136. return v, changed
  30137. }
  30138. func (d *Decoder) fastpathDecMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  30139. if rv.Kind() == reflect.Ptr {
  30140. vp := rv2i(rv).(*map[bool]uint16)
  30141. if v, changed := fastpathTV.DecMapBoolUint16V(*vp, true, d); changed {
  30142. *vp = v
  30143. }
  30144. return
  30145. }
  30146. fastpathTV.DecMapBoolUint16V(rv2i(rv).(map[bool]uint16), false, d)
  30147. }
  30148. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, d *Decoder) {
  30149. if v, changed := f.DecMapBoolUint16V(*vp, true, d); changed {
  30150. *vp = v
  30151. }
  30152. }
  30153. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, canChange bool,
  30154. d *Decoder) (_ map[bool]uint16, changed bool) {
  30155. dd, esep := d.d, d.hh.hasElemSeparators()
  30156. containerLen := dd.ReadMapStart()
  30157. if canChange && v == nil {
  30158. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30159. v = make(map[bool]uint16, xlen)
  30160. changed = true
  30161. }
  30162. if containerLen == 0 {
  30163. dd.ReadMapEnd()
  30164. return v, changed
  30165. }
  30166. var mk bool
  30167. var mv uint16
  30168. hasLen := containerLen > 0
  30169. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30170. if esep {
  30171. dd.ReadMapElemKey()
  30172. }
  30173. mk = dd.DecodeBool()
  30174. if esep {
  30175. dd.ReadMapElemValue()
  30176. }
  30177. if dd.TryDecodeAsNil() {
  30178. if d.h.DeleteOnNilMapValue {
  30179. delete(v, mk)
  30180. } else {
  30181. v[mk] = 0
  30182. }
  30183. continue
  30184. }
  30185. mv = uint16(dd.DecodeUint(16))
  30186. if v != nil {
  30187. v[mk] = mv
  30188. }
  30189. }
  30190. dd.ReadMapEnd()
  30191. return v, changed
  30192. }
  30193. func (d *Decoder) fastpathDecMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  30194. if rv.Kind() == reflect.Ptr {
  30195. vp := rv2i(rv).(*map[bool]uint32)
  30196. if v, changed := fastpathTV.DecMapBoolUint32V(*vp, true, d); changed {
  30197. *vp = v
  30198. }
  30199. return
  30200. }
  30201. fastpathTV.DecMapBoolUint32V(rv2i(rv).(map[bool]uint32), false, d)
  30202. }
  30203. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, d *Decoder) {
  30204. if v, changed := f.DecMapBoolUint32V(*vp, true, d); changed {
  30205. *vp = v
  30206. }
  30207. }
  30208. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, canChange bool,
  30209. d *Decoder) (_ map[bool]uint32, changed bool) {
  30210. dd, esep := d.d, d.hh.hasElemSeparators()
  30211. containerLen := dd.ReadMapStart()
  30212. if canChange && v == nil {
  30213. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30214. v = make(map[bool]uint32, xlen)
  30215. changed = true
  30216. }
  30217. if containerLen == 0 {
  30218. dd.ReadMapEnd()
  30219. return v, changed
  30220. }
  30221. var mk bool
  30222. var mv uint32
  30223. hasLen := containerLen > 0
  30224. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30225. if esep {
  30226. dd.ReadMapElemKey()
  30227. }
  30228. mk = dd.DecodeBool()
  30229. if esep {
  30230. dd.ReadMapElemValue()
  30231. }
  30232. if dd.TryDecodeAsNil() {
  30233. if d.h.DeleteOnNilMapValue {
  30234. delete(v, mk)
  30235. } else {
  30236. v[mk] = 0
  30237. }
  30238. continue
  30239. }
  30240. mv = uint32(dd.DecodeUint(32))
  30241. if v != nil {
  30242. v[mk] = mv
  30243. }
  30244. }
  30245. dd.ReadMapEnd()
  30246. return v, changed
  30247. }
  30248. func (d *Decoder) fastpathDecMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  30249. if rv.Kind() == reflect.Ptr {
  30250. vp := rv2i(rv).(*map[bool]uint64)
  30251. if v, changed := fastpathTV.DecMapBoolUint64V(*vp, true, d); changed {
  30252. *vp = v
  30253. }
  30254. return
  30255. }
  30256. fastpathTV.DecMapBoolUint64V(rv2i(rv).(map[bool]uint64), false, d)
  30257. }
  30258. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, d *Decoder) {
  30259. if v, changed := f.DecMapBoolUint64V(*vp, true, d); changed {
  30260. *vp = v
  30261. }
  30262. }
  30263. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, canChange bool,
  30264. d *Decoder) (_ map[bool]uint64, changed bool) {
  30265. dd, esep := d.d, d.hh.hasElemSeparators()
  30266. containerLen := dd.ReadMapStart()
  30267. if canChange && v == nil {
  30268. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30269. v = make(map[bool]uint64, xlen)
  30270. changed = true
  30271. }
  30272. if containerLen == 0 {
  30273. dd.ReadMapEnd()
  30274. return v, changed
  30275. }
  30276. var mk bool
  30277. var mv uint64
  30278. hasLen := containerLen > 0
  30279. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30280. if esep {
  30281. dd.ReadMapElemKey()
  30282. }
  30283. mk = dd.DecodeBool()
  30284. if esep {
  30285. dd.ReadMapElemValue()
  30286. }
  30287. if dd.TryDecodeAsNil() {
  30288. if d.h.DeleteOnNilMapValue {
  30289. delete(v, mk)
  30290. } else {
  30291. v[mk] = 0
  30292. }
  30293. continue
  30294. }
  30295. mv = dd.DecodeUint(64)
  30296. if v != nil {
  30297. v[mk] = mv
  30298. }
  30299. }
  30300. dd.ReadMapEnd()
  30301. return v, changed
  30302. }
  30303. func (d *Decoder) fastpathDecMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  30304. if rv.Kind() == reflect.Ptr {
  30305. vp := rv2i(rv).(*map[bool]uintptr)
  30306. if v, changed := fastpathTV.DecMapBoolUintptrV(*vp, true, d); changed {
  30307. *vp = v
  30308. }
  30309. return
  30310. }
  30311. fastpathTV.DecMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), false, d)
  30312. }
  30313. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, d *Decoder) {
  30314. if v, changed := f.DecMapBoolUintptrV(*vp, true, d); changed {
  30315. *vp = v
  30316. }
  30317. }
  30318. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, canChange bool,
  30319. d *Decoder) (_ map[bool]uintptr, changed bool) {
  30320. dd, esep := d.d, d.hh.hasElemSeparators()
  30321. containerLen := dd.ReadMapStart()
  30322. if canChange && v == nil {
  30323. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30324. v = make(map[bool]uintptr, xlen)
  30325. changed = true
  30326. }
  30327. if containerLen == 0 {
  30328. dd.ReadMapEnd()
  30329. return v, changed
  30330. }
  30331. var mk bool
  30332. var mv uintptr
  30333. hasLen := containerLen > 0
  30334. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30335. if esep {
  30336. dd.ReadMapElemKey()
  30337. }
  30338. mk = dd.DecodeBool()
  30339. if esep {
  30340. dd.ReadMapElemValue()
  30341. }
  30342. if dd.TryDecodeAsNil() {
  30343. if d.h.DeleteOnNilMapValue {
  30344. delete(v, mk)
  30345. } else {
  30346. v[mk] = 0
  30347. }
  30348. continue
  30349. }
  30350. mv = uintptr(dd.DecodeUint(uintBitsize))
  30351. if v != nil {
  30352. v[mk] = mv
  30353. }
  30354. }
  30355. dd.ReadMapEnd()
  30356. return v, changed
  30357. }
  30358. func (d *Decoder) fastpathDecMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  30359. if rv.Kind() == reflect.Ptr {
  30360. vp := rv2i(rv).(*map[bool]int)
  30361. if v, changed := fastpathTV.DecMapBoolIntV(*vp, true, d); changed {
  30362. *vp = v
  30363. }
  30364. return
  30365. }
  30366. fastpathTV.DecMapBoolIntV(rv2i(rv).(map[bool]int), false, d)
  30367. }
  30368. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, d *Decoder) {
  30369. if v, changed := f.DecMapBoolIntV(*vp, true, d); changed {
  30370. *vp = v
  30371. }
  30372. }
  30373. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, canChange bool,
  30374. d *Decoder) (_ map[bool]int, changed bool) {
  30375. dd, esep := d.d, d.hh.hasElemSeparators()
  30376. containerLen := dd.ReadMapStart()
  30377. if canChange && v == nil {
  30378. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30379. v = make(map[bool]int, xlen)
  30380. changed = true
  30381. }
  30382. if containerLen == 0 {
  30383. dd.ReadMapEnd()
  30384. return v, changed
  30385. }
  30386. var mk bool
  30387. var mv int
  30388. hasLen := containerLen > 0
  30389. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30390. if esep {
  30391. dd.ReadMapElemKey()
  30392. }
  30393. mk = dd.DecodeBool()
  30394. if esep {
  30395. dd.ReadMapElemValue()
  30396. }
  30397. if dd.TryDecodeAsNil() {
  30398. if d.h.DeleteOnNilMapValue {
  30399. delete(v, mk)
  30400. } else {
  30401. v[mk] = 0
  30402. }
  30403. continue
  30404. }
  30405. mv = int(dd.DecodeInt(intBitsize))
  30406. if v != nil {
  30407. v[mk] = mv
  30408. }
  30409. }
  30410. dd.ReadMapEnd()
  30411. return v, changed
  30412. }
  30413. func (d *Decoder) fastpathDecMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  30414. if rv.Kind() == reflect.Ptr {
  30415. vp := rv2i(rv).(*map[bool]int8)
  30416. if v, changed := fastpathTV.DecMapBoolInt8V(*vp, true, d); changed {
  30417. *vp = v
  30418. }
  30419. return
  30420. }
  30421. fastpathTV.DecMapBoolInt8V(rv2i(rv).(map[bool]int8), false, d)
  30422. }
  30423. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, d *Decoder) {
  30424. if v, changed := f.DecMapBoolInt8V(*vp, true, d); changed {
  30425. *vp = v
  30426. }
  30427. }
  30428. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, canChange bool,
  30429. d *Decoder) (_ map[bool]int8, changed bool) {
  30430. dd, esep := d.d, d.hh.hasElemSeparators()
  30431. containerLen := dd.ReadMapStart()
  30432. if canChange && v == nil {
  30433. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30434. v = make(map[bool]int8, xlen)
  30435. changed = true
  30436. }
  30437. if containerLen == 0 {
  30438. dd.ReadMapEnd()
  30439. return v, changed
  30440. }
  30441. var mk bool
  30442. var mv int8
  30443. hasLen := containerLen > 0
  30444. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30445. if esep {
  30446. dd.ReadMapElemKey()
  30447. }
  30448. mk = dd.DecodeBool()
  30449. if esep {
  30450. dd.ReadMapElemValue()
  30451. }
  30452. if dd.TryDecodeAsNil() {
  30453. if d.h.DeleteOnNilMapValue {
  30454. delete(v, mk)
  30455. } else {
  30456. v[mk] = 0
  30457. }
  30458. continue
  30459. }
  30460. mv = int8(dd.DecodeInt(8))
  30461. if v != nil {
  30462. v[mk] = mv
  30463. }
  30464. }
  30465. dd.ReadMapEnd()
  30466. return v, changed
  30467. }
  30468. func (d *Decoder) fastpathDecMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  30469. if rv.Kind() == reflect.Ptr {
  30470. vp := rv2i(rv).(*map[bool]int16)
  30471. if v, changed := fastpathTV.DecMapBoolInt16V(*vp, true, d); changed {
  30472. *vp = v
  30473. }
  30474. return
  30475. }
  30476. fastpathTV.DecMapBoolInt16V(rv2i(rv).(map[bool]int16), false, d)
  30477. }
  30478. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, d *Decoder) {
  30479. if v, changed := f.DecMapBoolInt16V(*vp, true, d); changed {
  30480. *vp = v
  30481. }
  30482. }
  30483. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, canChange bool,
  30484. d *Decoder) (_ map[bool]int16, changed bool) {
  30485. dd, esep := d.d, d.hh.hasElemSeparators()
  30486. containerLen := dd.ReadMapStart()
  30487. if canChange && v == nil {
  30488. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30489. v = make(map[bool]int16, xlen)
  30490. changed = true
  30491. }
  30492. if containerLen == 0 {
  30493. dd.ReadMapEnd()
  30494. return v, changed
  30495. }
  30496. var mk bool
  30497. var mv int16
  30498. hasLen := containerLen > 0
  30499. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30500. if esep {
  30501. dd.ReadMapElemKey()
  30502. }
  30503. mk = dd.DecodeBool()
  30504. if esep {
  30505. dd.ReadMapElemValue()
  30506. }
  30507. if dd.TryDecodeAsNil() {
  30508. if d.h.DeleteOnNilMapValue {
  30509. delete(v, mk)
  30510. } else {
  30511. v[mk] = 0
  30512. }
  30513. continue
  30514. }
  30515. mv = int16(dd.DecodeInt(16))
  30516. if v != nil {
  30517. v[mk] = mv
  30518. }
  30519. }
  30520. dd.ReadMapEnd()
  30521. return v, changed
  30522. }
  30523. func (d *Decoder) fastpathDecMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  30524. if rv.Kind() == reflect.Ptr {
  30525. vp := rv2i(rv).(*map[bool]int32)
  30526. if v, changed := fastpathTV.DecMapBoolInt32V(*vp, true, d); changed {
  30527. *vp = v
  30528. }
  30529. return
  30530. }
  30531. fastpathTV.DecMapBoolInt32V(rv2i(rv).(map[bool]int32), false, d)
  30532. }
  30533. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, d *Decoder) {
  30534. if v, changed := f.DecMapBoolInt32V(*vp, true, d); changed {
  30535. *vp = v
  30536. }
  30537. }
  30538. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, canChange bool,
  30539. d *Decoder) (_ map[bool]int32, changed bool) {
  30540. dd, esep := d.d, d.hh.hasElemSeparators()
  30541. containerLen := dd.ReadMapStart()
  30542. if canChange && v == nil {
  30543. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30544. v = make(map[bool]int32, xlen)
  30545. changed = true
  30546. }
  30547. if containerLen == 0 {
  30548. dd.ReadMapEnd()
  30549. return v, changed
  30550. }
  30551. var mk bool
  30552. var mv int32
  30553. hasLen := containerLen > 0
  30554. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30555. if esep {
  30556. dd.ReadMapElemKey()
  30557. }
  30558. mk = dd.DecodeBool()
  30559. if esep {
  30560. dd.ReadMapElemValue()
  30561. }
  30562. if dd.TryDecodeAsNil() {
  30563. if d.h.DeleteOnNilMapValue {
  30564. delete(v, mk)
  30565. } else {
  30566. v[mk] = 0
  30567. }
  30568. continue
  30569. }
  30570. mv = int32(dd.DecodeInt(32))
  30571. if v != nil {
  30572. v[mk] = mv
  30573. }
  30574. }
  30575. dd.ReadMapEnd()
  30576. return v, changed
  30577. }
  30578. func (d *Decoder) fastpathDecMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  30579. if rv.Kind() == reflect.Ptr {
  30580. vp := rv2i(rv).(*map[bool]int64)
  30581. if v, changed := fastpathTV.DecMapBoolInt64V(*vp, true, d); changed {
  30582. *vp = v
  30583. }
  30584. return
  30585. }
  30586. fastpathTV.DecMapBoolInt64V(rv2i(rv).(map[bool]int64), false, d)
  30587. }
  30588. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, d *Decoder) {
  30589. if v, changed := f.DecMapBoolInt64V(*vp, true, d); changed {
  30590. *vp = v
  30591. }
  30592. }
  30593. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, canChange bool,
  30594. d *Decoder) (_ map[bool]int64, changed bool) {
  30595. dd, esep := d.d, d.hh.hasElemSeparators()
  30596. containerLen := dd.ReadMapStart()
  30597. if canChange && v == nil {
  30598. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30599. v = make(map[bool]int64, xlen)
  30600. changed = true
  30601. }
  30602. if containerLen == 0 {
  30603. dd.ReadMapEnd()
  30604. return v, changed
  30605. }
  30606. var mk bool
  30607. var mv int64
  30608. hasLen := containerLen > 0
  30609. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30610. if esep {
  30611. dd.ReadMapElemKey()
  30612. }
  30613. mk = dd.DecodeBool()
  30614. if esep {
  30615. dd.ReadMapElemValue()
  30616. }
  30617. if dd.TryDecodeAsNil() {
  30618. if d.h.DeleteOnNilMapValue {
  30619. delete(v, mk)
  30620. } else {
  30621. v[mk] = 0
  30622. }
  30623. continue
  30624. }
  30625. mv = dd.DecodeInt(64)
  30626. if v != nil {
  30627. v[mk] = mv
  30628. }
  30629. }
  30630. dd.ReadMapEnd()
  30631. return v, changed
  30632. }
  30633. func (d *Decoder) fastpathDecMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  30634. if rv.Kind() == reflect.Ptr {
  30635. vp := rv2i(rv).(*map[bool]float32)
  30636. if v, changed := fastpathTV.DecMapBoolFloat32V(*vp, true, d); changed {
  30637. *vp = v
  30638. }
  30639. return
  30640. }
  30641. fastpathTV.DecMapBoolFloat32V(rv2i(rv).(map[bool]float32), false, d)
  30642. }
  30643. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, d *Decoder) {
  30644. if v, changed := f.DecMapBoolFloat32V(*vp, true, d); changed {
  30645. *vp = v
  30646. }
  30647. }
  30648. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, canChange bool,
  30649. d *Decoder) (_ map[bool]float32, changed bool) {
  30650. dd, esep := d.d, d.hh.hasElemSeparators()
  30651. containerLen := dd.ReadMapStart()
  30652. if canChange && v == nil {
  30653. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30654. v = make(map[bool]float32, xlen)
  30655. changed = true
  30656. }
  30657. if containerLen == 0 {
  30658. dd.ReadMapEnd()
  30659. return v, changed
  30660. }
  30661. var mk bool
  30662. var mv float32
  30663. hasLen := containerLen > 0
  30664. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30665. if esep {
  30666. dd.ReadMapElemKey()
  30667. }
  30668. mk = dd.DecodeBool()
  30669. if esep {
  30670. dd.ReadMapElemValue()
  30671. }
  30672. if dd.TryDecodeAsNil() {
  30673. if d.h.DeleteOnNilMapValue {
  30674. delete(v, mk)
  30675. } else {
  30676. v[mk] = 0
  30677. }
  30678. continue
  30679. }
  30680. mv = float32(dd.DecodeFloat(true))
  30681. if v != nil {
  30682. v[mk] = mv
  30683. }
  30684. }
  30685. dd.ReadMapEnd()
  30686. return v, changed
  30687. }
  30688. func (d *Decoder) fastpathDecMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  30689. if rv.Kind() == reflect.Ptr {
  30690. vp := rv2i(rv).(*map[bool]float64)
  30691. if v, changed := fastpathTV.DecMapBoolFloat64V(*vp, true, d); changed {
  30692. *vp = v
  30693. }
  30694. return
  30695. }
  30696. fastpathTV.DecMapBoolFloat64V(rv2i(rv).(map[bool]float64), false, d)
  30697. }
  30698. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, d *Decoder) {
  30699. if v, changed := f.DecMapBoolFloat64V(*vp, true, d); changed {
  30700. *vp = v
  30701. }
  30702. }
  30703. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, canChange bool,
  30704. d *Decoder) (_ map[bool]float64, changed bool) {
  30705. dd, esep := d.d, d.hh.hasElemSeparators()
  30706. containerLen := dd.ReadMapStart()
  30707. if canChange && v == nil {
  30708. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30709. v = make(map[bool]float64, xlen)
  30710. changed = true
  30711. }
  30712. if containerLen == 0 {
  30713. dd.ReadMapEnd()
  30714. return v, changed
  30715. }
  30716. var mk bool
  30717. var mv float64
  30718. hasLen := containerLen > 0
  30719. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30720. if esep {
  30721. dd.ReadMapElemKey()
  30722. }
  30723. mk = dd.DecodeBool()
  30724. if esep {
  30725. dd.ReadMapElemValue()
  30726. }
  30727. if dd.TryDecodeAsNil() {
  30728. if d.h.DeleteOnNilMapValue {
  30729. delete(v, mk)
  30730. } else {
  30731. v[mk] = 0
  30732. }
  30733. continue
  30734. }
  30735. mv = dd.DecodeFloat(false)
  30736. if v != nil {
  30737. v[mk] = mv
  30738. }
  30739. }
  30740. dd.ReadMapEnd()
  30741. return v, changed
  30742. }
  30743. func (d *Decoder) fastpathDecMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  30744. if rv.Kind() == reflect.Ptr {
  30745. vp := rv2i(rv).(*map[bool]bool)
  30746. if v, changed := fastpathTV.DecMapBoolBoolV(*vp, true, d); changed {
  30747. *vp = v
  30748. }
  30749. return
  30750. }
  30751. fastpathTV.DecMapBoolBoolV(rv2i(rv).(map[bool]bool), false, d)
  30752. }
  30753. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, d *Decoder) {
  30754. if v, changed := f.DecMapBoolBoolV(*vp, true, d); changed {
  30755. *vp = v
  30756. }
  30757. }
  30758. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, canChange bool,
  30759. d *Decoder) (_ map[bool]bool, changed bool) {
  30760. dd, esep := d.d, d.hh.hasElemSeparators()
  30761. containerLen := dd.ReadMapStart()
  30762. if canChange && v == nil {
  30763. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30764. v = make(map[bool]bool, xlen)
  30765. changed = true
  30766. }
  30767. if containerLen == 0 {
  30768. dd.ReadMapEnd()
  30769. return v, changed
  30770. }
  30771. var mk bool
  30772. var mv bool
  30773. hasLen := containerLen > 0
  30774. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30775. if esep {
  30776. dd.ReadMapElemKey()
  30777. }
  30778. mk = dd.DecodeBool()
  30779. if esep {
  30780. dd.ReadMapElemValue()
  30781. }
  30782. if dd.TryDecodeAsNil() {
  30783. if d.h.DeleteOnNilMapValue {
  30784. delete(v, mk)
  30785. } else {
  30786. v[mk] = false
  30787. }
  30788. continue
  30789. }
  30790. mv = dd.DecodeBool()
  30791. if v != nil {
  30792. v[mk] = mv
  30793. }
  30794. }
  30795. dd.ReadMapEnd()
  30796. return v, changed
  30797. }