fast-path.generated.go 719 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659
  1. // +build !notfastpath
  2. // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a MIT license found in the LICENSE file.
  4. // ************************************************************
  5. // DO NOT EDIT.
  6. // THIS FILE IS AUTO-GENERATED from fast-path.go.tmpl
  7. // ************************************************************
  8. package codec
  9. // Fast path functions try to create a fast path encode or decode implementation
  10. // for common maps and slices.
  11. //
  12. // We define the functions and register then in this single file
  13. // so as not to pollute the encode.go and decode.go, and create a dependency in there.
  14. // This file can be omitted without causing a build failure.
  15. //
  16. // The advantage of fast paths is:
  17. // - Many calls bypass reflection altogether
  18. //
  19. // Currently support
  20. // - slice of all builtin types,
  21. // - map of all builtin types to string or interface value
  22. // - symmetrical maps of all builtin types (e.g. str-str, uint8-uint8)
  23. // This should provide adequate "typical" implementations.
  24. //
  25. // Note that fast track decode functions must handle values for which an address cannot be obtained.
  26. // For example:
  27. // m2 := map[string]int{}
  28. // p2 := []interface{}{m2}
  29. // // decoding into p2 will bomb if fast track functions do not treat like unaddressable.
  30. //
  31. import (
  32. "reflect"
  33. "sort"
  34. )
  35. const fastpathEnabled = true
  36. type fastpathT struct{}
  37. var fastpathTV fastpathT
  38. type fastpathE struct {
  39. rtid uintptr
  40. rt reflect.Type
  41. encfn func(*Encoder, *codecFnInfo, reflect.Value)
  42. decfn func(*Decoder, *codecFnInfo, reflect.Value)
  43. }
  44. type fastpathA [271]fastpathE
  45. func (x *fastpathA) index(rtid uintptr) int {
  46. // use binary search to grab the index (adapted from sort/search.go)
  47. h, i, j := 0, 0, 271 // len(x)
  48. for i < j {
  49. h = i + (j-i)/2
  50. if x[h].rtid < rtid {
  51. i = h + 1
  52. } else {
  53. j = h
  54. }
  55. }
  56. if i < 271 && x[i].rtid == rtid {
  57. return i
  58. }
  59. return -1
  60. }
  61. type fastpathAslice []fastpathE
  62. func (x fastpathAslice) Len() int { return len(x) }
  63. func (x fastpathAslice) Less(i, j int) bool { return x[i].rtid < x[j].rtid }
  64. func (x fastpathAslice) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
  65. var fastpathAV fastpathA
  66. // due to possible initialization loop error, make fastpath in an init()
  67. func init() {
  68. i := 0
  69. fn := func(v interface{},
  70. fe func(*Encoder, *codecFnInfo, reflect.Value),
  71. fd func(*Decoder, *codecFnInfo, reflect.Value)) (f fastpathE) {
  72. xrt := reflect.TypeOf(v)
  73. xptr := rt2id(xrt)
  74. if useLookupRecognizedTypes {
  75. recognizedRtids = append(recognizedRtids, xptr)
  76. recognizedRtidPtrs = append(recognizedRtidPtrs, rt2id(reflect.PtrTo(xrt)))
  77. }
  78. fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
  79. i++
  80. return
  81. }
  82. fn([]interface{}(nil), (*Encoder).fastpathEncSliceIntfR, (*Decoder).fastpathDecSliceIntfR)
  83. fn([]string(nil), (*Encoder).fastpathEncSliceStringR, (*Decoder).fastpathDecSliceStringR)
  84. fn([]float32(nil), (*Encoder).fastpathEncSliceFloat32R, (*Decoder).fastpathDecSliceFloat32R)
  85. fn([]float64(nil), (*Encoder).fastpathEncSliceFloat64R, (*Decoder).fastpathDecSliceFloat64R)
  86. fn([]uint(nil), (*Encoder).fastpathEncSliceUintR, (*Decoder).fastpathDecSliceUintR)
  87. fn([]uint16(nil), (*Encoder).fastpathEncSliceUint16R, (*Decoder).fastpathDecSliceUint16R)
  88. fn([]uint32(nil), (*Encoder).fastpathEncSliceUint32R, (*Decoder).fastpathDecSliceUint32R)
  89. fn([]uint64(nil), (*Encoder).fastpathEncSliceUint64R, (*Decoder).fastpathDecSliceUint64R)
  90. fn([]uintptr(nil), (*Encoder).fastpathEncSliceUintptrR, (*Decoder).fastpathDecSliceUintptrR)
  91. fn([]int(nil), (*Encoder).fastpathEncSliceIntR, (*Decoder).fastpathDecSliceIntR)
  92. fn([]int8(nil), (*Encoder).fastpathEncSliceInt8R, (*Decoder).fastpathDecSliceInt8R)
  93. fn([]int16(nil), (*Encoder).fastpathEncSliceInt16R, (*Decoder).fastpathDecSliceInt16R)
  94. fn([]int32(nil), (*Encoder).fastpathEncSliceInt32R, (*Decoder).fastpathDecSliceInt32R)
  95. fn([]int64(nil), (*Encoder).fastpathEncSliceInt64R, (*Decoder).fastpathDecSliceInt64R)
  96. fn([]bool(nil), (*Encoder).fastpathEncSliceBoolR, (*Decoder).fastpathDecSliceBoolR)
  97. fn(map[interface{}]interface{}(nil), (*Encoder).fastpathEncMapIntfIntfR, (*Decoder).fastpathDecMapIntfIntfR)
  98. fn(map[interface{}]string(nil), (*Encoder).fastpathEncMapIntfStringR, (*Decoder).fastpathDecMapIntfStringR)
  99. fn(map[interface{}]uint(nil), (*Encoder).fastpathEncMapIntfUintR, (*Decoder).fastpathDecMapIntfUintR)
  100. fn(map[interface{}]uint8(nil), (*Encoder).fastpathEncMapIntfUint8R, (*Decoder).fastpathDecMapIntfUint8R)
  101. fn(map[interface{}]uint16(nil), (*Encoder).fastpathEncMapIntfUint16R, (*Decoder).fastpathDecMapIntfUint16R)
  102. fn(map[interface{}]uint32(nil), (*Encoder).fastpathEncMapIntfUint32R, (*Decoder).fastpathDecMapIntfUint32R)
  103. fn(map[interface{}]uint64(nil), (*Encoder).fastpathEncMapIntfUint64R, (*Decoder).fastpathDecMapIntfUint64R)
  104. fn(map[interface{}]uintptr(nil), (*Encoder).fastpathEncMapIntfUintptrR, (*Decoder).fastpathDecMapIntfUintptrR)
  105. fn(map[interface{}]int(nil), (*Encoder).fastpathEncMapIntfIntR, (*Decoder).fastpathDecMapIntfIntR)
  106. fn(map[interface{}]int8(nil), (*Encoder).fastpathEncMapIntfInt8R, (*Decoder).fastpathDecMapIntfInt8R)
  107. fn(map[interface{}]int16(nil), (*Encoder).fastpathEncMapIntfInt16R, (*Decoder).fastpathDecMapIntfInt16R)
  108. fn(map[interface{}]int32(nil), (*Encoder).fastpathEncMapIntfInt32R, (*Decoder).fastpathDecMapIntfInt32R)
  109. fn(map[interface{}]int64(nil), (*Encoder).fastpathEncMapIntfInt64R, (*Decoder).fastpathDecMapIntfInt64R)
  110. fn(map[interface{}]float32(nil), (*Encoder).fastpathEncMapIntfFloat32R, (*Decoder).fastpathDecMapIntfFloat32R)
  111. fn(map[interface{}]float64(nil), (*Encoder).fastpathEncMapIntfFloat64R, (*Decoder).fastpathDecMapIntfFloat64R)
  112. fn(map[interface{}]bool(nil), (*Encoder).fastpathEncMapIntfBoolR, (*Decoder).fastpathDecMapIntfBoolR)
  113. fn(map[string]interface{}(nil), (*Encoder).fastpathEncMapStringIntfR, (*Decoder).fastpathDecMapStringIntfR)
  114. fn(map[string]string(nil), (*Encoder).fastpathEncMapStringStringR, (*Decoder).fastpathDecMapStringStringR)
  115. fn(map[string]uint(nil), (*Encoder).fastpathEncMapStringUintR, (*Decoder).fastpathDecMapStringUintR)
  116. fn(map[string]uint8(nil), (*Encoder).fastpathEncMapStringUint8R, (*Decoder).fastpathDecMapStringUint8R)
  117. fn(map[string]uint16(nil), (*Encoder).fastpathEncMapStringUint16R, (*Decoder).fastpathDecMapStringUint16R)
  118. fn(map[string]uint32(nil), (*Encoder).fastpathEncMapStringUint32R, (*Decoder).fastpathDecMapStringUint32R)
  119. fn(map[string]uint64(nil), (*Encoder).fastpathEncMapStringUint64R, (*Decoder).fastpathDecMapStringUint64R)
  120. fn(map[string]uintptr(nil), (*Encoder).fastpathEncMapStringUintptrR, (*Decoder).fastpathDecMapStringUintptrR)
  121. fn(map[string]int(nil), (*Encoder).fastpathEncMapStringIntR, (*Decoder).fastpathDecMapStringIntR)
  122. fn(map[string]int8(nil), (*Encoder).fastpathEncMapStringInt8R, (*Decoder).fastpathDecMapStringInt8R)
  123. fn(map[string]int16(nil), (*Encoder).fastpathEncMapStringInt16R, (*Decoder).fastpathDecMapStringInt16R)
  124. fn(map[string]int32(nil), (*Encoder).fastpathEncMapStringInt32R, (*Decoder).fastpathDecMapStringInt32R)
  125. fn(map[string]int64(nil), (*Encoder).fastpathEncMapStringInt64R, (*Decoder).fastpathDecMapStringInt64R)
  126. fn(map[string]float32(nil), (*Encoder).fastpathEncMapStringFloat32R, (*Decoder).fastpathDecMapStringFloat32R)
  127. fn(map[string]float64(nil), (*Encoder).fastpathEncMapStringFloat64R, (*Decoder).fastpathDecMapStringFloat64R)
  128. fn(map[string]bool(nil), (*Encoder).fastpathEncMapStringBoolR, (*Decoder).fastpathDecMapStringBoolR)
  129. fn(map[float32]interface{}(nil), (*Encoder).fastpathEncMapFloat32IntfR, (*Decoder).fastpathDecMapFloat32IntfR)
  130. fn(map[float32]string(nil), (*Encoder).fastpathEncMapFloat32StringR, (*Decoder).fastpathDecMapFloat32StringR)
  131. fn(map[float32]uint(nil), (*Encoder).fastpathEncMapFloat32UintR, (*Decoder).fastpathDecMapFloat32UintR)
  132. fn(map[float32]uint8(nil), (*Encoder).fastpathEncMapFloat32Uint8R, (*Decoder).fastpathDecMapFloat32Uint8R)
  133. fn(map[float32]uint16(nil), (*Encoder).fastpathEncMapFloat32Uint16R, (*Decoder).fastpathDecMapFloat32Uint16R)
  134. fn(map[float32]uint32(nil), (*Encoder).fastpathEncMapFloat32Uint32R, (*Decoder).fastpathDecMapFloat32Uint32R)
  135. fn(map[float32]uint64(nil), (*Encoder).fastpathEncMapFloat32Uint64R, (*Decoder).fastpathDecMapFloat32Uint64R)
  136. fn(map[float32]uintptr(nil), (*Encoder).fastpathEncMapFloat32UintptrR, (*Decoder).fastpathDecMapFloat32UintptrR)
  137. fn(map[float32]int(nil), (*Encoder).fastpathEncMapFloat32IntR, (*Decoder).fastpathDecMapFloat32IntR)
  138. fn(map[float32]int8(nil), (*Encoder).fastpathEncMapFloat32Int8R, (*Decoder).fastpathDecMapFloat32Int8R)
  139. fn(map[float32]int16(nil), (*Encoder).fastpathEncMapFloat32Int16R, (*Decoder).fastpathDecMapFloat32Int16R)
  140. fn(map[float32]int32(nil), (*Encoder).fastpathEncMapFloat32Int32R, (*Decoder).fastpathDecMapFloat32Int32R)
  141. fn(map[float32]int64(nil), (*Encoder).fastpathEncMapFloat32Int64R, (*Decoder).fastpathDecMapFloat32Int64R)
  142. fn(map[float32]float32(nil), (*Encoder).fastpathEncMapFloat32Float32R, (*Decoder).fastpathDecMapFloat32Float32R)
  143. fn(map[float32]float64(nil), (*Encoder).fastpathEncMapFloat32Float64R, (*Decoder).fastpathDecMapFloat32Float64R)
  144. fn(map[float32]bool(nil), (*Encoder).fastpathEncMapFloat32BoolR, (*Decoder).fastpathDecMapFloat32BoolR)
  145. fn(map[float64]interface{}(nil), (*Encoder).fastpathEncMapFloat64IntfR, (*Decoder).fastpathDecMapFloat64IntfR)
  146. fn(map[float64]string(nil), (*Encoder).fastpathEncMapFloat64StringR, (*Decoder).fastpathDecMapFloat64StringR)
  147. fn(map[float64]uint(nil), (*Encoder).fastpathEncMapFloat64UintR, (*Decoder).fastpathDecMapFloat64UintR)
  148. fn(map[float64]uint8(nil), (*Encoder).fastpathEncMapFloat64Uint8R, (*Decoder).fastpathDecMapFloat64Uint8R)
  149. fn(map[float64]uint16(nil), (*Encoder).fastpathEncMapFloat64Uint16R, (*Decoder).fastpathDecMapFloat64Uint16R)
  150. fn(map[float64]uint32(nil), (*Encoder).fastpathEncMapFloat64Uint32R, (*Decoder).fastpathDecMapFloat64Uint32R)
  151. fn(map[float64]uint64(nil), (*Encoder).fastpathEncMapFloat64Uint64R, (*Decoder).fastpathDecMapFloat64Uint64R)
  152. fn(map[float64]uintptr(nil), (*Encoder).fastpathEncMapFloat64UintptrR, (*Decoder).fastpathDecMapFloat64UintptrR)
  153. fn(map[float64]int(nil), (*Encoder).fastpathEncMapFloat64IntR, (*Decoder).fastpathDecMapFloat64IntR)
  154. fn(map[float64]int8(nil), (*Encoder).fastpathEncMapFloat64Int8R, (*Decoder).fastpathDecMapFloat64Int8R)
  155. fn(map[float64]int16(nil), (*Encoder).fastpathEncMapFloat64Int16R, (*Decoder).fastpathDecMapFloat64Int16R)
  156. fn(map[float64]int32(nil), (*Encoder).fastpathEncMapFloat64Int32R, (*Decoder).fastpathDecMapFloat64Int32R)
  157. fn(map[float64]int64(nil), (*Encoder).fastpathEncMapFloat64Int64R, (*Decoder).fastpathDecMapFloat64Int64R)
  158. fn(map[float64]float32(nil), (*Encoder).fastpathEncMapFloat64Float32R, (*Decoder).fastpathDecMapFloat64Float32R)
  159. fn(map[float64]float64(nil), (*Encoder).fastpathEncMapFloat64Float64R, (*Decoder).fastpathDecMapFloat64Float64R)
  160. fn(map[float64]bool(nil), (*Encoder).fastpathEncMapFloat64BoolR, (*Decoder).fastpathDecMapFloat64BoolR)
  161. fn(map[uint]interface{}(nil), (*Encoder).fastpathEncMapUintIntfR, (*Decoder).fastpathDecMapUintIntfR)
  162. fn(map[uint]string(nil), (*Encoder).fastpathEncMapUintStringR, (*Decoder).fastpathDecMapUintStringR)
  163. fn(map[uint]uint(nil), (*Encoder).fastpathEncMapUintUintR, (*Decoder).fastpathDecMapUintUintR)
  164. fn(map[uint]uint8(nil), (*Encoder).fastpathEncMapUintUint8R, (*Decoder).fastpathDecMapUintUint8R)
  165. fn(map[uint]uint16(nil), (*Encoder).fastpathEncMapUintUint16R, (*Decoder).fastpathDecMapUintUint16R)
  166. fn(map[uint]uint32(nil), (*Encoder).fastpathEncMapUintUint32R, (*Decoder).fastpathDecMapUintUint32R)
  167. fn(map[uint]uint64(nil), (*Encoder).fastpathEncMapUintUint64R, (*Decoder).fastpathDecMapUintUint64R)
  168. fn(map[uint]uintptr(nil), (*Encoder).fastpathEncMapUintUintptrR, (*Decoder).fastpathDecMapUintUintptrR)
  169. fn(map[uint]int(nil), (*Encoder).fastpathEncMapUintIntR, (*Decoder).fastpathDecMapUintIntR)
  170. fn(map[uint]int8(nil), (*Encoder).fastpathEncMapUintInt8R, (*Decoder).fastpathDecMapUintInt8R)
  171. fn(map[uint]int16(nil), (*Encoder).fastpathEncMapUintInt16R, (*Decoder).fastpathDecMapUintInt16R)
  172. fn(map[uint]int32(nil), (*Encoder).fastpathEncMapUintInt32R, (*Decoder).fastpathDecMapUintInt32R)
  173. fn(map[uint]int64(nil), (*Encoder).fastpathEncMapUintInt64R, (*Decoder).fastpathDecMapUintInt64R)
  174. fn(map[uint]float32(nil), (*Encoder).fastpathEncMapUintFloat32R, (*Decoder).fastpathDecMapUintFloat32R)
  175. fn(map[uint]float64(nil), (*Encoder).fastpathEncMapUintFloat64R, (*Decoder).fastpathDecMapUintFloat64R)
  176. fn(map[uint]bool(nil), (*Encoder).fastpathEncMapUintBoolR, (*Decoder).fastpathDecMapUintBoolR)
  177. fn(map[uint8]interface{}(nil), (*Encoder).fastpathEncMapUint8IntfR, (*Decoder).fastpathDecMapUint8IntfR)
  178. fn(map[uint8]string(nil), (*Encoder).fastpathEncMapUint8StringR, (*Decoder).fastpathDecMapUint8StringR)
  179. fn(map[uint8]uint(nil), (*Encoder).fastpathEncMapUint8UintR, (*Decoder).fastpathDecMapUint8UintR)
  180. fn(map[uint8]uint8(nil), (*Encoder).fastpathEncMapUint8Uint8R, (*Decoder).fastpathDecMapUint8Uint8R)
  181. fn(map[uint8]uint16(nil), (*Encoder).fastpathEncMapUint8Uint16R, (*Decoder).fastpathDecMapUint8Uint16R)
  182. fn(map[uint8]uint32(nil), (*Encoder).fastpathEncMapUint8Uint32R, (*Decoder).fastpathDecMapUint8Uint32R)
  183. fn(map[uint8]uint64(nil), (*Encoder).fastpathEncMapUint8Uint64R, (*Decoder).fastpathDecMapUint8Uint64R)
  184. fn(map[uint8]uintptr(nil), (*Encoder).fastpathEncMapUint8UintptrR, (*Decoder).fastpathDecMapUint8UintptrR)
  185. fn(map[uint8]int(nil), (*Encoder).fastpathEncMapUint8IntR, (*Decoder).fastpathDecMapUint8IntR)
  186. fn(map[uint8]int8(nil), (*Encoder).fastpathEncMapUint8Int8R, (*Decoder).fastpathDecMapUint8Int8R)
  187. fn(map[uint8]int16(nil), (*Encoder).fastpathEncMapUint8Int16R, (*Decoder).fastpathDecMapUint8Int16R)
  188. fn(map[uint8]int32(nil), (*Encoder).fastpathEncMapUint8Int32R, (*Decoder).fastpathDecMapUint8Int32R)
  189. fn(map[uint8]int64(nil), (*Encoder).fastpathEncMapUint8Int64R, (*Decoder).fastpathDecMapUint8Int64R)
  190. fn(map[uint8]float32(nil), (*Encoder).fastpathEncMapUint8Float32R, (*Decoder).fastpathDecMapUint8Float32R)
  191. fn(map[uint8]float64(nil), (*Encoder).fastpathEncMapUint8Float64R, (*Decoder).fastpathDecMapUint8Float64R)
  192. fn(map[uint8]bool(nil), (*Encoder).fastpathEncMapUint8BoolR, (*Decoder).fastpathDecMapUint8BoolR)
  193. fn(map[uint16]interface{}(nil), (*Encoder).fastpathEncMapUint16IntfR, (*Decoder).fastpathDecMapUint16IntfR)
  194. fn(map[uint16]string(nil), (*Encoder).fastpathEncMapUint16StringR, (*Decoder).fastpathDecMapUint16StringR)
  195. fn(map[uint16]uint(nil), (*Encoder).fastpathEncMapUint16UintR, (*Decoder).fastpathDecMapUint16UintR)
  196. fn(map[uint16]uint8(nil), (*Encoder).fastpathEncMapUint16Uint8R, (*Decoder).fastpathDecMapUint16Uint8R)
  197. fn(map[uint16]uint16(nil), (*Encoder).fastpathEncMapUint16Uint16R, (*Decoder).fastpathDecMapUint16Uint16R)
  198. fn(map[uint16]uint32(nil), (*Encoder).fastpathEncMapUint16Uint32R, (*Decoder).fastpathDecMapUint16Uint32R)
  199. fn(map[uint16]uint64(nil), (*Encoder).fastpathEncMapUint16Uint64R, (*Decoder).fastpathDecMapUint16Uint64R)
  200. fn(map[uint16]uintptr(nil), (*Encoder).fastpathEncMapUint16UintptrR, (*Decoder).fastpathDecMapUint16UintptrR)
  201. fn(map[uint16]int(nil), (*Encoder).fastpathEncMapUint16IntR, (*Decoder).fastpathDecMapUint16IntR)
  202. fn(map[uint16]int8(nil), (*Encoder).fastpathEncMapUint16Int8R, (*Decoder).fastpathDecMapUint16Int8R)
  203. fn(map[uint16]int16(nil), (*Encoder).fastpathEncMapUint16Int16R, (*Decoder).fastpathDecMapUint16Int16R)
  204. fn(map[uint16]int32(nil), (*Encoder).fastpathEncMapUint16Int32R, (*Decoder).fastpathDecMapUint16Int32R)
  205. fn(map[uint16]int64(nil), (*Encoder).fastpathEncMapUint16Int64R, (*Decoder).fastpathDecMapUint16Int64R)
  206. fn(map[uint16]float32(nil), (*Encoder).fastpathEncMapUint16Float32R, (*Decoder).fastpathDecMapUint16Float32R)
  207. fn(map[uint16]float64(nil), (*Encoder).fastpathEncMapUint16Float64R, (*Decoder).fastpathDecMapUint16Float64R)
  208. fn(map[uint16]bool(nil), (*Encoder).fastpathEncMapUint16BoolR, (*Decoder).fastpathDecMapUint16BoolR)
  209. fn(map[uint32]interface{}(nil), (*Encoder).fastpathEncMapUint32IntfR, (*Decoder).fastpathDecMapUint32IntfR)
  210. fn(map[uint32]string(nil), (*Encoder).fastpathEncMapUint32StringR, (*Decoder).fastpathDecMapUint32StringR)
  211. fn(map[uint32]uint(nil), (*Encoder).fastpathEncMapUint32UintR, (*Decoder).fastpathDecMapUint32UintR)
  212. fn(map[uint32]uint8(nil), (*Encoder).fastpathEncMapUint32Uint8R, (*Decoder).fastpathDecMapUint32Uint8R)
  213. fn(map[uint32]uint16(nil), (*Encoder).fastpathEncMapUint32Uint16R, (*Decoder).fastpathDecMapUint32Uint16R)
  214. fn(map[uint32]uint32(nil), (*Encoder).fastpathEncMapUint32Uint32R, (*Decoder).fastpathDecMapUint32Uint32R)
  215. fn(map[uint32]uint64(nil), (*Encoder).fastpathEncMapUint32Uint64R, (*Decoder).fastpathDecMapUint32Uint64R)
  216. fn(map[uint32]uintptr(nil), (*Encoder).fastpathEncMapUint32UintptrR, (*Decoder).fastpathDecMapUint32UintptrR)
  217. fn(map[uint32]int(nil), (*Encoder).fastpathEncMapUint32IntR, (*Decoder).fastpathDecMapUint32IntR)
  218. fn(map[uint32]int8(nil), (*Encoder).fastpathEncMapUint32Int8R, (*Decoder).fastpathDecMapUint32Int8R)
  219. fn(map[uint32]int16(nil), (*Encoder).fastpathEncMapUint32Int16R, (*Decoder).fastpathDecMapUint32Int16R)
  220. fn(map[uint32]int32(nil), (*Encoder).fastpathEncMapUint32Int32R, (*Decoder).fastpathDecMapUint32Int32R)
  221. fn(map[uint32]int64(nil), (*Encoder).fastpathEncMapUint32Int64R, (*Decoder).fastpathDecMapUint32Int64R)
  222. fn(map[uint32]float32(nil), (*Encoder).fastpathEncMapUint32Float32R, (*Decoder).fastpathDecMapUint32Float32R)
  223. fn(map[uint32]float64(nil), (*Encoder).fastpathEncMapUint32Float64R, (*Decoder).fastpathDecMapUint32Float64R)
  224. fn(map[uint32]bool(nil), (*Encoder).fastpathEncMapUint32BoolR, (*Decoder).fastpathDecMapUint32BoolR)
  225. fn(map[uint64]interface{}(nil), (*Encoder).fastpathEncMapUint64IntfR, (*Decoder).fastpathDecMapUint64IntfR)
  226. fn(map[uint64]string(nil), (*Encoder).fastpathEncMapUint64StringR, (*Decoder).fastpathDecMapUint64StringR)
  227. fn(map[uint64]uint(nil), (*Encoder).fastpathEncMapUint64UintR, (*Decoder).fastpathDecMapUint64UintR)
  228. fn(map[uint64]uint8(nil), (*Encoder).fastpathEncMapUint64Uint8R, (*Decoder).fastpathDecMapUint64Uint8R)
  229. fn(map[uint64]uint16(nil), (*Encoder).fastpathEncMapUint64Uint16R, (*Decoder).fastpathDecMapUint64Uint16R)
  230. fn(map[uint64]uint32(nil), (*Encoder).fastpathEncMapUint64Uint32R, (*Decoder).fastpathDecMapUint64Uint32R)
  231. fn(map[uint64]uint64(nil), (*Encoder).fastpathEncMapUint64Uint64R, (*Decoder).fastpathDecMapUint64Uint64R)
  232. fn(map[uint64]uintptr(nil), (*Encoder).fastpathEncMapUint64UintptrR, (*Decoder).fastpathDecMapUint64UintptrR)
  233. fn(map[uint64]int(nil), (*Encoder).fastpathEncMapUint64IntR, (*Decoder).fastpathDecMapUint64IntR)
  234. fn(map[uint64]int8(nil), (*Encoder).fastpathEncMapUint64Int8R, (*Decoder).fastpathDecMapUint64Int8R)
  235. fn(map[uint64]int16(nil), (*Encoder).fastpathEncMapUint64Int16R, (*Decoder).fastpathDecMapUint64Int16R)
  236. fn(map[uint64]int32(nil), (*Encoder).fastpathEncMapUint64Int32R, (*Decoder).fastpathDecMapUint64Int32R)
  237. fn(map[uint64]int64(nil), (*Encoder).fastpathEncMapUint64Int64R, (*Decoder).fastpathDecMapUint64Int64R)
  238. fn(map[uint64]float32(nil), (*Encoder).fastpathEncMapUint64Float32R, (*Decoder).fastpathDecMapUint64Float32R)
  239. fn(map[uint64]float64(nil), (*Encoder).fastpathEncMapUint64Float64R, (*Decoder).fastpathDecMapUint64Float64R)
  240. fn(map[uint64]bool(nil), (*Encoder).fastpathEncMapUint64BoolR, (*Decoder).fastpathDecMapUint64BoolR)
  241. fn(map[uintptr]interface{}(nil), (*Encoder).fastpathEncMapUintptrIntfR, (*Decoder).fastpathDecMapUintptrIntfR)
  242. fn(map[uintptr]string(nil), (*Encoder).fastpathEncMapUintptrStringR, (*Decoder).fastpathDecMapUintptrStringR)
  243. fn(map[uintptr]uint(nil), (*Encoder).fastpathEncMapUintptrUintR, (*Decoder).fastpathDecMapUintptrUintR)
  244. fn(map[uintptr]uint8(nil), (*Encoder).fastpathEncMapUintptrUint8R, (*Decoder).fastpathDecMapUintptrUint8R)
  245. fn(map[uintptr]uint16(nil), (*Encoder).fastpathEncMapUintptrUint16R, (*Decoder).fastpathDecMapUintptrUint16R)
  246. fn(map[uintptr]uint32(nil), (*Encoder).fastpathEncMapUintptrUint32R, (*Decoder).fastpathDecMapUintptrUint32R)
  247. fn(map[uintptr]uint64(nil), (*Encoder).fastpathEncMapUintptrUint64R, (*Decoder).fastpathDecMapUintptrUint64R)
  248. fn(map[uintptr]uintptr(nil), (*Encoder).fastpathEncMapUintptrUintptrR, (*Decoder).fastpathDecMapUintptrUintptrR)
  249. fn(map[uintptr]int(nil), (*Encoder).fastpathEncMapUintptrIntR, (*Decoder).fastpathDecMapUintptrIntR)
  250. fn(map[uintptr]int8(nil), (*Encoder).fastpathEncMapUintptrInt8R, (*Decoder).fastpathDecMapUintptrInt8R)
  251. fn(map[uintptr]int16(nil), (*Encoder).fastpathEncMapUintptrInt16R, (*Decoder).fastpathDecMapUintptrInt16R)
  252. fn(map[uintptr]int32(nil), (*Encoder).fastpathEncMapUintptrInt32R, (*Decoder).fastpathDecMapUintptrInt32R)
  253. fn(map[uintptr]int64(nil), (*Encoder).fastpathEncMapUintptrInt64R, (*Decoder).fastpathDecMapUintptrInt64R)
  254. fn(map[uintptr]float32(nil), (*Encoder).fastpathEncMapUintptrFloat32R, (*Decoder).fastpathDecMapUintptrFloat32R)
  255. fn(map[uintptr]float64(nil), (*Encoder).fastpathEncMapUintptrFloat64R, (*Decoder).fastpathDecMapUintptrFloat64R)
  256. fn(map[uintptr]bool(nil), (*Encoder).fastpathEncMapUintptrBoolR, (*Decoder).fastpathDecMapUintptrBoolR)
  257. fn(map[int]interface{}(nil), (*Encoder).fastpathEncMapIntIntfR, (*Decoder).fastpathDecMapIntIntfR)
  258. fn(map[int]string(nil), (*Encoder).fastpathEncMapIntStringR, (*Decoder).fastpathDecMapIntStringR)
  259. fn(map[int]uint(nil), (*Encoder).fastpathEncMapIntUintR, (*Decoder).fastpathDecMapIntUintR)
  260. fn(map[int]uint8(nil), (*Encoder).fastpathEncMapIntUint8R, (*Decoder).fastpathDecMapIntUint8R)
  261. fn(map[int]uint16(nil), (*Encoder).fastpathEncMapIntUint16R, (*Decoder).fastpathDecMapIntUint16R)
  262. fn(map[int]uint32(nil), (*Encoder).fastpathEncMapIntUint32R, (*Decoder).fastpathDecMapIntUint32R)
  263. fn(map[int]uint64(nil), (*Encoder).fastpathEncMapIntUint64R, (*Decoder).fastpathDecMapIntUint64R)
  264. fn(map[int]uintptr(nil), (*Encoder).fastpathEncMapIntUintptrR, (*Decoder).fastpathDecMapIntUintptrR)
  265. fn(map[int]int(nil), (*Encoder).fastpathEncMapIntIntR, (*Decoder).fastpathDecMapIntIntR)
  266. fn(map[int]int8(nil), (*Encoder).fastpathEncMapIntInt8R, (*Decoder).fastpathDecMapIntInt8R)
  267. fn(map[int]int16(nil), (*Encoder).fastpathEncMapIntInt16R, (*Decoder).fastpathDecMapIntInt16R)
  268. fn(map[int]int32(nil), (*Encoder).fastpathEncMapIntInt32R, (*Decoder).fastpathDecMapIntInt32R)
  269. fn(map[int]int64(nil), (*Encoder).fastpathEncMapIntInt64R, (*Decoder).fastpathDecMapIntInt64R)
  270. fn(map[int]float32(nil), (*Encoder).fastpathEncMapIntFloat32R, (*Decoder).fastpathDecMapIntFloat32R)
  271. fn(map[int]float64(nil), (*Encoder).fastpathEncMapIntFloat64R, (*Decoder).fastpathDecMapIntFloat64R)
  272. fn(map[int]bool(nil), (*Encoder).fastpathEncMapIntBoolR, (*Decoder).fastpathDecMapIntBoolR)
  273. fn(map[int8]interface{}(nil), (*Encoder).fastpathEncMapInt8IntfR, (*Decoder).fastpathDecMapInt8IntfR)
  274. fn(map[int8]string(nil), (*Encoder).fastpathEncMapInt8StringR, (*Decoder).fastpathDecMapInt8StringR)
  275. fn(map[int8]uint(nil), (*Encoder).fastpathEncMapInt8UintR, (*Decoder).fastpathDecMapInt8UintR)
  276. fn(map[int8]uint8(nil), (*Encoder).fastpathEncMapInt8Uint8R, (*Decoder).fastpathDecMapInt8Uint8R)
  277. fn(map[int8]uint16(nil), (*Encoder).fastpathEncMapInt8Uint16R, (*Decoder).fastpathDecMapInt8Uint16R)
  278. fn(map[int8]uint32(nil), (*Encoder).fastpathEncMapInt8Uint32R, (*Decoder).fastpathDecMapInt8Uint32R)
  279. fn(map[int8]uint64(nil), (*Encoder).fastpathEncMapInt8Uint64R, (*Decoder).fastpathDecMapInt8Uint64R)
  280. fn(map[int8]uintptr(nil), (*Encoder).fastpathEncMapInt8UintptrR, (*Decoder).fastpathDecMapInt8UintptrR)
  281. fn(map[int8]int(nil), (*Encoder).fastpathEncMapInt8IntR, (*Decoder).fastpathDecMapInt8IntR)
  282. fn(map[int8]int8(nil), (*Encoder).fastpathEncMapInt8Int8R, (*Decoder).fastpathDecMapInt8Int8R)
  283. fn(map[int8]int16(nil), (*Encoder).fastpathEncMapInt8Int16R, (*Decoder).fastpathDecMapInt8Int16R)
  284. fn(map[int8]int32(nil), (*Encoder).fastpathEncMapInt8Int32R, (*Decoder).fastpathDecMapInt8Int32R)
  285. fn(map[int8]int64(nil), (*Encoder).fastpathEncMapInt8Int64R, (*Decoder).fastpathDecMapInt8Int64R)
  286. fn(map[int8]float32(nil), (*Encoder).fastpathEncMapInt8Float32R, (*Decoder).fastpathDecMapInt8Float32R)
  287. fn(map[int8]float64(nil), (*Encoder).fastpathEncMapInt8Float64R, (*Decoder).fastpathDecMapInt8Float64R)
  288. fn(map[int8]bool(nil), (*Encoder).fastpathEncMapInt8BoolR, (*Decoder).fastpathDecMapInt8BoolR)
  289. fn(map[int16]interface{}(nil), (*Encoder).fastpathEncMapInt16IntfR, (*Decoder).fastpathDecMapInt16IntfR)
  290. fn(map[int16]string(nil), (*Encoder).fastpathEncMapInt16StringR, (*Decoder).fastpathDecMapInt16StringR)
  291. fn(map[int16]uint(nil), (*Encoder).fastpathEncMapInt16UintR, (*Decoder).fastpathDecMapInt16UintR)
  292. fn(map[int16]uint8(nil), (*Encoder).fastpathEncMapInt16Uint8R, (*Decoder).fastpathDecMapInt16Uint8R)
  293. fn(map[int16]uint16(nil), (*Encoder).fastpathEncMapInt16Uint16R, (*Decoder).fastpathDecMapInt16Uint16R)
  294. fn(map[int16]uint32(nil), (*Encoder).fastpathEncMapInt16Uint32R, (*Decoder).fastpathDecMapInt16Uint32R)
  295. fn(map[int16]uint64(nil), (*Encoder).fastpathEncMapInt16Uint64R, (*Decoder).fastpathDecMapInt16Uint64R)
  296. fn(map[int16]uintptr(nil), (*Encoder).fastpathEncMapInt16UintptrR, (*Decoder).fastpathDecMapInt16UintptrR)
  297. fn(map[int16]int(nil), (*Encoder).fastpathEncMapInt16IntR, (*Decoder).fastpathDecMapInt16IntR)
  298. fn(map[int16]int8(nil), (*Encoder).fastpathEncMapInt16Int8R, (*Decoder).fastpathDecMapInt16Int8R)
  299. fn(map[int16]int16(nil), (*Encoder).fastpathEncMapInt16Int16R, (*Decoder).fastpathDecMapInt16Int16R)
  300. fn(map[int16]int32(nil), (*Encoder).fastpathEncMapInt16Int32R, (*Decoder).fastpathDecMapInt16Int32R)
  301. fn(map[int16]int64(nil), (*Encoder).fastpathEncMapInt16Int64R, (*Decoder).fastpathDecMapInt16Int64R)
  302. fn(map[int16]float32(nil), (*Encoder).fastpathEncMapInt16Float32R, (*Decoder).fastpathDecMapInt16Float32R)
  303. fn(map[int16]float64(nil), (*Encoder).fastpathEncMapInt16Float64R, (*Decoder).fastpathDecMapInt16Float64R)
  304. fn(map[int16]bool(nil), (*Encoder).fastpathEncMapInt16BoolR, (*Decoder).fastpathDecMapInt16BoolR)
  305. fn(map[int32]interface{}(nil), (*Encoder).fastpathEncMapInt32IntfR, (*Decoder).fastpathDecMapInt32IntfR)
  306. fn(map[int32]string(nil), (*Encoder).fastpathEncMapInt32StringR, (*Decoder).fastpathDecMapInt32StringR)
  307. fn(map[int32]uint(nil), (*Encoder).fastpathEncMapInt32UintR, (*Decoder).fastpathDecMapInt32UintR)
  308. fn(map[int32]uint8(nil), (*Encoder).fastpathEncMapInt32Uint8R, (*Decoder).fastpathDecMapInt32Uint8R)
  309. fn(map[int32]uint16(nil), (*Encoder).fastpathEncMapInt32Uint16R, (*Decoder).fastpathDecMapInt32Uint16R)
  310. fn(map[int32]uint32(nil), (*Encoder).fastpathEncMapInt32Uint32R, (*Decoder).fastpathDecMapInt32Uint32R)
  311. fn(map[int32]uint64(nil), (*Encoder).fastpathEncMapInt32Uint64R, (*Decoder).fastpathDecMapInt32Uint64R)
  312. fn(map[int32]uintptr(nil), (*Encoder).fastpathEncMapInt32UintptrR, (*Decoder).fastpathDecMapInt32UintptrR)
  313. fn(map[int32]int(nil), (*Encoder).fastpathEncMapInt32IntR, (*Decoder).fastpathDecMapInt32IntR)
  314. fn(map[int32]int8(nil), (*Encoder).fastpathEncMapInt32Int8R, (*Decoder).fastpathDecMapInt32Int8R)
  315. fn(map[int32]int16(nil), (*Encoder).fastpathEncMapInt32Int16R, (*Decoder).fastpathDecMapInt32Int16R)
  316. fn(map[int32]int32(nil), (*Encoder).fastpathEncMapInt32Int32R, (*Decoder).fastpathDecMapInt32Int32R)
  317. fn(map[int32]int64(nil), (*Encoder).fastpathEncMapInt32Int64R, (*Decoder).fastpathDecMapInt32Int64R)
  318. fn(map[int32]float32(nil), (*Encoder).fastpathEncMapInt32Float32R, (*Decoder).fastpathDecMapInt32Float32R)
  319. fn(map[int32]float64(nil), (*Encoder).fastpathEncMapInt32Float64R, (*Decoder).fastpathDecMapInt32Float64R)
  320. fn(map[int32]bool(nil), (*Encoder).fastpathEncMapInt32BoolR, (*Decoder).fastpathDecMapInt32BoolR)
  321. fn(map[int64]interface{}(nil), (*Encoder).fastpathEncMapInt64IntfR, (*Decoder).fastpathDecMapInt64IntfR)
  322. fn(map[int64]string(nil), (*Encoder).fastpathEncMapInt64StringR, (*Decoder).fastpathDecMapInt64StringR)
  323. fn(map[int64]uint(nil), (*Encoder).fastpathEncMapInt64UintR, (*Decoder).fastpathDecMapInt64UintR)
  324. fn(map[int64]uint8(nil), (*Encoder).fastpathEncMapInt64Uint8R, (*Decoder).fastpathDecMapInt64Uint8R)
  325. fn(map[int64]uint16(nil), (*Encoder).fastpathEncMapInt64Uint16R, (*Decoder).fastpathDecMapInt64Uint16R)
  326. fn(map[int64]uint32(nil), (*Encoder).fastpathEncMapInt64Uint32R, (*Decoder).fastpathDecMapInt64Uint32R)
  327. fn(map[int64]uint64(nil), (*Encoder).fastpathEncMapInt64Uint64R, (*Decoder).fastpathDecMapInt64Uint64R)
  328. fn(map[int64]uintptr(nil), (*Encoder).fastpathEncMapInt64UintptrR, (*Decoder).fastpathDecMapInt64UintptrR)
  329. fn(map[int64]int(nil), (*Encoder).fastpathEncMapInt64IntR, (*Decoder).fastpathDecMapInt64IntR)
  330. fn(map[int64]int8(nil), (*Encoder).fastpathEncMapInt64Int8R, (*Decoder).fastpathDecMapInt64Int8R)
  331. fn(map[int64]int16(nil), (*Encoder).fastpathEncMapInt64Int16R, (*Decoder).fastpathDecMapInt64Int16R)
  332. fn(map[int64]int32(nil), (*Encoder).fastpathEncMapInt64Int32R, (*Decoder).fastpathDecMapInt64Int32R)
  333. fn(map[int64]int64(nil), (*Encoder).fastpathEncMapInt64Int64R, (*Decoder).fastpathDecMapInt64Int64R)
  334. fn(map[int64]float32(nil), (*Encoder).fastpathEncMapInt64Float32R, (*Decoder).fastpathDecMapInt64Float32R)
  335. fn(map[int64]float64(nil), (*Encoder).fastpathEncMapInt64Float64R, (*Decoder).fastpathDecMapInt64Float64R)
  336. fn(map[int64]bool(nil), (*Encoder).fastpathEncMapInt64BoolR, (*Decoder).fastpathDecMapInt64BoolR)
  337. fn(map[bool]interface{}(nil), (*Encoder).fastpathEncMapBoolIntfR, (*Decoder).fastpathDecMapBoolIntfR)
  338. fn(map[bool]string(nil), (*Encoder).fastpathEncMapBoolStringR, (*Decoder).fastpathDecMapBoolStringR)
  339. fn(map[bool]uint(nil), (*Encoder).fastpathEncMapBoolUintR, (*Decoder).fastpathDecMapBoolUintR)
  340. fn(map[bool]uint8(nil), (*Encoder).fastpathEncMapBoolUint8R, (*Decoder).fastpathDecMapBoolUint8R)
  341. fn(map[bool]uint16(nil), (*Encoder).fastpathEncMapBoolUint16R, (*Decoder).fastpathDecMapBoolUint16R)
  342. fn(map[bool]uint32(nil), (*Encoder).fastpathEncMapBoolUint32R, (*Decoder).fastpathDecMapBoolUint32R)
  343. fn(map[bool]uint64(nil), (*Encoder).fastpathEncMapBoolUint64R, (*Decoder).fastpathDecMapBoolUint64R)
  344. fn(map[bool]uintptr(nil), (*Encoder).fastpathEncMapBoolUintptrR, (*Decoder).fastpathDecMapBoolUintptrR)
  345. fn(map[bool]int(nil), (*Encoder).fastpathEncMapBoolIntR, (*Decoder).fastpathDecMapBoolIntR)
  346. fn(map[bool]int8(nil), (*Encoder).fastpathEncMapBoolInt8R, (*Decoder).fastpathDecMapBoolInt8R)
  347. fn(map[bool]int16(nil), (*Encoder).fastpathEncMapBoolInt16R, (*Decoder).fastpathDecMapBoolInt16R)
  348. fn(map[bool]int32(nil), (*Encoder).fastpathEncMapBoolInt32R, (*Decoder).fastpathDecMapBoolInt32R)
  349. fn(map[bool]int64(nil), (*Encoder).fastpathEncMapBoolInt64R, (*Decoder).fastpathDecMapBoolInt64R)
  350. fn(map[bool]float32(nil), (*Encoder).fastpathEncMapBoolFloat32R, (*Decoder).fastpathDecMapBoolFloat32R)
  351. fn(map[bool]float64(nil), (*Encoder).fastpathEncMapBoolFloat64R, (*Decoder).fastpathDecMapBoolFloat64R)
  352. fn(map[bool]bool(nil), (*Encoder).fastpathEncMapBoolBoolR, (*Decoder).fastpathDecMapBoolBoolR)
  353. sort.Sort(fastpathAslice(fastpathAV[:]))
  354. }
  355. // -- encode
  356. // -- -- fast path type switch
  357. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  358. switch v := iv.(type) {
  359. case []interface{}:
  360. fastpathTV.EncSliceIntfV(v, e)
  361. case *[]interface{}:
  362. fastpathTV.EncSliceIntfV(*v, e)
  363. case map[interface{}]interface{}:
  364. fastpathTV.EncMapIntfIntfV(v, e)
  365. case *map[interface{}]interface{}:
  366. fastpathTV.EncMapIntfIntfV(*v, e)
  367. case map[interface{}]string:
  368. fastpathTV.EncMapIntfStringV(v, e)
  369. case *map[interface{}]string:
  370. fastpathTV.EncMapIntfStringV(*v, e)
  371. case map[interface{}]uint:
  372. fastpathTV.EncMapIntfUintV(v, e)
  373. case *map[interface{}]uint:
  374. fastpathTV.EncMapIntfUintV(*v, e)
  375. case map[interface{}]uint8:
  376. fastpathTV.EncMapIntfUint8V(v, e)
  377. case *map[interface{}]uint8:
  378. fastpathTV.EncMapIntfUint8V(*v, e)
  379. case map[interface{}]uint16:
  380. fastpathTV.EncMapIntfUint16V(v, e)
  381. case *map[interface{}]uint16:
  382. fastpathTV.EncMapIntfUint16V(*v, e)
  383. case map[interface{}]uint32:
  384. fastpathTV.EncMapIntfUint32V(v, e)
  385. case *map[interface{}]uint32:
  386. fastpathTV.EncMapIntfUint32V(*v, e)
  387. case map[interface{}]uint64:
  388. fastpathTV.EncMapIntfUint64V(v, e)
  389. case *map[interface{}]uint64:
  390. fastpathTV.EncMapIntfUint64V(*v, e)
  391. case map[interface{}]uintptr:
  392. fastpathTV.EncMapIntfUintptrV(v, e)
  393. case *map[interface{}]uintptr:
  394. fastpathTV.EncMapIntfUintptrV(*v, e)
  395. case map[interface{}]int:
  396. fastpathTV.EncMapIntfIntV(v, e)
  397. case *map[interface{}]int:
  398. fastpathTV.EncMapIntfIntV(*v, e)
  399. case map[interface{}]int8:
  400. fastpathTV.EncMapIntfInt8V(v, e)
  401. case *map[interface{}]int8:
  402. fastpathTV.EncMapIntfInt8V(*v, e)
  403. case map[interface{}]int16:
  404. fastpathTV.EncMapIntfInt16V(v, e)
  405. case *map[interface{}]int16:
  406. fastpathTV.EncMapIntfInt16V(*v, e)
  407. case map[interface{}]int32:
  408. fastpathTV.EncMapIntfInt32V(v, e)
  409. case *map[interface{}]int32:
  410. fastpathTV.EncMapIntfInt32V(*v, e)
  411. case map[interface{}]int64:
  412. fastpathTV.EncMapIntfInt64V(v, e)
  413. case *map[interface{}]int64:
  414. fastpathTV.EncMapIntfInt64V(*v, e)
  415. case map[interface{}]float32:
  416. fastpathTV.EncMapIntfFloat32V(v, e)
  417. case *map[interface{}]float32:
  418. fastpathTV.EncMapIntfFloat32V(*v, e)
  419. case map[interface{}]float64:
  420. fastpathTV.EncMapIntfFloat64V(v, e)
  421. case *map[interface{}]float64:
  422. fastpathTV.EncMapIntfFloat64V(*v, e)
  423. case map[interface{}]bool:
  424. fastpathTV.EncMapIntfBoolV(v, e)
  425. case *map[interface{}]bool:
  426. fastpathTV.EncMapIntfBoolV(*v, e)
  427. case []string:
  428. fastpathTV.EncSliceStringV(v, e)
  429. case *[]string:
  430. fastpathTV.EncSliceStringV(*v, e)
  431. case map[string]interface{}:
  432. fastpathTV.EncMapStringIntfV(v, e)
  433. case *map[string]interface{}:
  434. fastpathTV.EncMapStringIntfV(*v, e)
  435. case map[string]string:
  436. fastpathTV.EncMapStringStringV(v, e)
  437. case *map[string]string:
  438. fastpathTV.EncMapStringStringV(*v, e)
  439. case map[string]uint:
  440. fastpathTV.EncMapStringUintV(v, e)
  441. case *map[string]uint:
  442. fastpathTV.EncMapStringUintV(*v, e)
  443. case map[string]uint8:
  444. fastpathTV.EncMapStringUint8V(v, e)
  445. case *map[string]uint8:
  446. fastpathTV.EncMapStringUint8V(*v, e)
  447. case map[string]uint16:
  448. fastpathTV.EncMapStringUint16V(v, e)
  449. case *map[string]uint16:
  450. fastpathTV.EncMapStringUint16V(*v, e)
  451. case map[string]uint32:
  452. fastpathTV.EncMapStringUint32V(v, e)
  453. case *map[string]uint32:
  454. fastpathTV.EncMapStringUint32V(*v, e)
  455. case map[string]uint64:
  456. fastpathTV.EncMapStringUint64V(v, e)
  457. case *map[string]uint64:
  458. fastpathTV.EncMapStringUint64V(*v, e)
  459. case map[string]uintptr:
  460. fastpathTV.EncMapStringUintptrV(v, e)
  461. case *map[string]uintptr:
  462. fastpathTV.EncMapStringUintptrV(*v, e)
  463. case map[string]int:
  464. fastpathTV.EncMapStringIntV(v, e)
  465. case *map[string]int:
  466. fastpathTV.EncMapStringIntV(*v, e)
  467. case map[string]int8:
  468. fastpathTV.EncMapStringInt8V(v, e)
  469. case *map[string]int8:
  470. fastpathTV.EncMapStringInt8V(*v, e)
  471. case map[string]int16:
  472. fastpathTV.EncMapStringInt16V(v, e)
  473. case *map[string]int16:
  474. fastpathTV.EncMapStringInt16V(*v, e)
  475. case map[string]int32:
  476. fastpathTV.EncMapStringInt32V(v, e)
  477. case *map[string]int32:
  478. fastpathTV.EncMapStringInt32V(*v, e)
  479. case map[string]int64:
  480. fastpathTV.EncMapStringInt64V(v, e)
  481. case *map[string]int64:
  482. fastpathTV.EncMapStringInt64V(*v, e)
  483. case map[string]float32:
  484. fastpathTV.EncMapStringFloat32V(v, e)
  485. case *map[string]float32:
  486. fastpathTV.EncMapStringFloat32V(*v, e)
  487. case map[string]float64:
  488. fastpathTV.EncMapStringFloat64V(v, e)
  489. case *map[string]float64:
  490. fastpathTV.EncMapStringFloat64V(*v, e)
  491. case map[string]bool:
  492. fastpathTV.EncMapStringBoolV(v, e)
  493. case *map[string]bool:
  494. fastpathTV.EncMapStringBoolV(*v, e)
  495. case []float32:
  496. fastpathTV.EncSliceFloat32V(v, e)
  497. case *[]float32:
  498. fastpathTV.EncSliceFloat32V(*v, e)
  499. case map[float32]interface{}:
  500. fastpathTV.EncMapFloat32IntfV(v, e)
  501. case *map[float32]interface{}:
  502. fastpathTV.EncMapFloat32IntfV(*v, e)
  503. case map[float32]string:
  504. fastpathTV.EncMapFloat32StringV(v, e)
  505. case *map[float32]string:
  506. fastpathTV.EncMapFloat32StringV(*v, e)
  507. case map[float32]uint:
  508. fastpathTV.EncMapFloat32UintV(v, e)
  509. case *map[float32]uint:
  510. fastpathTV.EncMapFloat32UintV(*v, e)
  511. case map[float32]uint8:
  512. fastpathTV.EncMapFloat32Uint8V(v, e)
  513. case *map[float32]uint8:
  514. fastpathTV.EncMapFloat32Uint8V(*v, e)
  515. case map[float32]uint16:
  516. fastpathTV.EncMapFloat32Uint16V(v, e)
  517. case *map[float32]uint16:
  518. fastpathTV.EncMapFloat32Uint16V(*v, e)
  519. case map[float32]uint32:
  520. fastpathTV.EncMapFloat32Uint32V(v, e)
  521. case *map[float32]uint32:
  522. fastpathTV.EncMapFloat32Uint32V(*v, e)
  523. case map[float32]uint64:
  524. fastpathTV.EncMapFloat32Uint64V(v, e)
  525. case *map[float32]uint64:
  526. fastpathTV.EncMapFloat32Uint64V(*v, e)
  527. case map[float32]uintptr:
  528. fastpathTV.EncMapFloat32UintptrV(v, e)
  529. case *map[float32]uintptr:
  530. fastpathTV.EncMapFloat32UintptrV(*v, e)
  531. case map[float32]int:
  532. fastpathTV.EncMapFloat32IntV(v, e)
  533. case *map[float32]int:
  534. fastpathTV.EncMapFloat32IntV(*v, e)
  535. case map[float32]int8:
  536. fastpathTV.EncMapFloat32Int8V(v, e)
  537. case *map[float32]int8:
  538. fastpathTV.EncMapFloat32Int8V(*v, e)
  539. case map[float32]int16:
  540. fastpathTV.EncMapFloat32Int16V(v, e)
  541. case *map[float32]int16:
  542. fastpathTV.EncMapFloat32Int16V(*v, e)
  543. case map[float32]int32:
  544. fastpathTV.EncMapFloat32Int32V(v, e)
  545. case *map[float32]int32:
  546. fastpathTV.EncMapFloat32Int32V(*v, e)
  547. case map[float32]int64:
  548. fastpathTV.EncMapFloat32Int64V(v, e)
  549. case *map[float32]int64:
  550. fastpathTV.EncMapFloat32Int64V(*v, e)
  551. case map[float32]float32:
  552. fastpathTV.EncMapFloat32Float32V(v, e)
  553. case *map[float32]float32:
  554. fastpathTV.EncMapFloat32Float32V(*v, e)
  555. case map[float32]float64:
  556. fastpathTV.EncMapFloat32Float64V(v, e)
  557. case *map[float32]float64:
  558. fastpathTV.EncMapFloat32Float64V(*v, e)
  559. case map[float32]bool:
  560. fastpathTV.EncMapFloat32BoolV(v, e)
  561. case *map[float32]bool:
  562. fastpathTV.EncMapFloat32BoolV(*v, e)
  563. case []float64:
  564. fastpathTV.EncSliceFloat64V(v, e)
  565. case *[]float64:
  566. fastpathTV.EncSliceFloat64V(*v, e)
  567. case map[float64]interface{}:
  568. fastpathTV.EncMapFloat64IntfV(v, e)
  569. case *map[float64]interface{}:
  570. fastpathTV.EncMapFloat64IntfV(*v, e)
  571. case map[float64]string:
  572. fastpathTV.EncMapFloat64StringV(v, e)
  573. case *map[float64]string:
  574. fastpathTV.EncMapFloat64StringV(*v, e)
  575. case map[float64]uint:
  576. fastpathTV.EncMapFloat64UintV(v, e)
  577. case *map[float64]uint:
  578. fastpathTV.EncMapFloat64UintV(*v, e)
  579. case map[float64]uint8:
  580. fastpathTV.EncMapFloat64Uint8V(v, e)
  581. case *map[float64]uint8:
  582. fastpathTV.EncMapFloat64Uint8V(*v, e)
  583. case map[float64]uint16:
  584. fastpathTV.EncMapFloat64Uint16V(v, e)
  585. case *map[float64]uint16:
  586. fastpathTV.EncMapFloat64Uint16V(*v, e)
  587. case map[float64]uint32:
  588. fastpathTV.EncMapFloat64Uint32V(v, e)
  589. case *map[float64]uint32:
  590. fastpathTV.EncMapFloat64Uint32V(*v, e)
  591. case map[float64]uint64:
  592. fastpathTV.EncMapFloat64Uint64V(v, e)
  593. case *map[float64]uint64:
  594. fastpathTV.EncMapFloat64Uint64V(*v, e)
  595. case map[float64]uintptr:
  596. fastpathTV.EncMapFloat64UintptrV(v, e)
  597. case *map[float64]uintptr:
  598. fastpathTV.EncMapFloat64UintptrV(*v, e)
  599. case map[float64]int:
  600. fastpathTV.EncMapFloat64IntV(v, e)
  601. case *map[float64]int:
  602. fastpathTV.EncMapFloat64IntV(*v, e)
  603. case map[float64]int8:
  604. fastpathTV.EncMapFloat64Int8V(v, e)
  605. case *map[float64]int8:
  606. fastpathTV.EncMapFloat64Int8V(*v, e)
  607. case map[float64]int16:
  608. fastpathTV.EncMapFloat64Int16V(v, e)
  609. case *map[float64]int16:
  610. fastpathTV.EncMapFloat64Int16V(*v, e)
  611. case map[float64]int32:
  612. fastpathTV.EncMapFloat64Int32V(v, e)
  613. case *map[float64]int32:
  614. fastpathTV.EncMapFloat64Int32V(*v, e)
  615. case map[float64]int64:
  616. fastpathTV.EncMapFloat64Int64V(v, e)
  617. case *map[float64]int64:
  618. fastpathTV.EncMapFloat64Int64V(*v, e)
  619. case map[float64]float32:
  620. fastpathTV.EncMapFloat64Float32V(v, e)
  621. case *map[float64]float32:
  622. fastpathTV.EncMapFloat64Float32V(*v, e)
  623. case map[float64]float64:
  624. fastpathTV.EncMapFloat64Float64V(v, e)
  625. case *map[float64]float64:
  626. fastpathTV.EncMapFloat64Float64V(*v, e)
  627. case map[float64]bool:
  628. fastpathTV.EncMapFloat64BoolV(v, e)
  629. case *map[float64]bool:
  630. fastpathTV.EncMapFloat64BoolV(*v, e)
  631. case []uint:
  632. fastpathTV.EncSliceUintV(v, e)
  633. case *[]uint:
  634. fastpathTV.EncSliceUintV(*v, e)
  635. case map[uint]interface{}:
  636. fastpathTV.EncMapUintIntfV(v, e)
  637. case *map[uint]interface{}:
  638. fastpathTV.EncMapUintIntfV(*v, e)
  639. case map[uint]string:
  640. fastpathTV.EncMapUintStringV(v, e)
  641. case *map[uint]string:
  642. fastpathTV.EncMapUintStringV(*v, e)
  643. case map[uint]uint:
  644. fastpathTV.EncMapUintUintV(v, e)
  645. case *map[uint]uint:
  646. fastpathTV.EncMapUintUintV(*v, e)
  647. case map[uint]uint8:
  648. fastpathTV.EncMapUintUint8V(v, e)
  649. case *map[uint]uint8:
  650. fastpathTV.EncMapUintUint8V(*v, e)
  651. case map[uint]uint16:
  652. fastpathTV.EncMapUintUint16V(v, e)
  653. case *map[uint]uint16:
  654. fastpathTV.EncMapUintUint16V(*v, e)
  655. case map[uint]uint32:
  656. fastpathTV.EncMapUintUint32V(v, e)
  657. case *map[uint]uint32:
  658. fastpathTV.EncMapUintUint32V(*v, e)
  659. case map[uint]uint64:
  660. fastpathTV.EncMapUintUint64V(v, e)
  661. case *map[uint]uint64:
  662. fastpathTV.EncMapUintUint64V(*v, e)
  663. case map[uint]uintptr:
  664. fastpathTV.EncMapUintUintptrV(v, e)
  665. case *map[uint]uintptr:
  666. fastpathTV.EncMapUintUintptrV(*v, e)
  667. case map[uint]int:
  668. fastpathTV.EncMapUintIntV(v, e)
  669. case *map[uint]int:
  670. fastpathTV.EncMapUintIntV(*v, e)
  671. case map[uint]int8:
  672. fastpathTV.EncMapUintInt8V(v, e)
  673. case *map[uint]int8:
  674. fastpathTV.EncMapUintInt8V(*v, e)
  675. case map[uint]int16:
  676. fastpathTV.EncMapUintInt16V(v, e)
  677. case *map[uint]int16:
  678. fastpathTV.EncMapUintInt16V(*v, e)
  679. case map[uint]int32:
  680. fastpathTV.EncMapUintInt32V(v, e)
  681. case *map[uint]int32:
  682. fastpathTV.EncMapUintInt32V(*v, e)
  683. case map[uint]int64:
  684. fastpathTV.EncMapUintInt64V(v, e)
  685. case *map[uint]int64:
  686. fastpathTV.EncMapUintInt64V(*v, e)
  687. case map[uint]float32:
  688. fastpathTV.EncMapUintFloat32V(v, e)
  689. case *map[uint]float32:
  690. fastpathTV.EncMapUintFloat32V(*v, e)
  691. case map[uint]float64:
  692. fastpathTV.EncMapUintFloat64V(v, e)
  693. case *map[uint]float64:
  694. fastpathTV.EncMapUintFloat64V(*v, e)
  695. case map[uint]bool:
  696. fastpathTV.EncMapUintBoolV(v, e)
  697. case *map[uint]bool:
  698. fastpathTV.EncMapUintBoolV(*v, e)
  699. case map[uint8]interface{}:
  700. fastpathTV.EncMapUint8IntfV(v, e)
  701. case *map[uint8]interface{}:
  702. fastpathTV.EncMapUint8IntfV(*v, e)
  703. case map[uint8]string:
  704. fastpathTV.EncMapUint8StringV(v, e)
  705. case *map[uint8]string:
  706. fastpathTV.EncMapUint8StringV(*v, e)
  707. case map[uint8]uint:
  708. fastpathTV.EncMapUint8UintV(v, e)
  709. case *map[uint8]uint:
  710. fastpathTV.EncMapUint8UintV(*v, e)
  711. case map[uint8]uint8:
  712. fastpathTV.EncMapUint8Uint8V(v, e)
  713. case *map[uint8]uint8:
  714. fastpathTV.EncMapUint8Uint8V(*v, e)
  715. case map[uint8]uint16:
  716. fastpathTV.EncMapUint8Uint16V(v, e)
  717. case *map[uint8]uint16:
  718. fastpathTV.EncMapUint8Uint16V(*v, e)
  719. case map[uint8]uint32:
  720. fastpathTV.EncMapUint8Uint32V(v, e)
  721. case *map[uint8]uint32:
  722. fastpathTV.EncMapUint8Uint32V(*v, e)
  723. case map[uint8]uint64:
  724. fastpathTV.EncMapUint8Uint64V(v, e)
  725. case *map[uint8]uint64:
  726. fastpathTV.EncMapUint8Uint64V(*v, e)
  727. case map[uint8]uintptr:
  728. fastpathTV.EncMapUint8UintptrV(v, e)
  729. case *map[uint8]uintptr:
  730. fastpathTV.EncMapUint8UintptrV(*v, e)
  731. case map[uint8]int:
  732. fastpathTV.EncMapUint8IntV(v, e)
  733. case *map[uint8]int:
  734. fastpathTV.EncMapUint8IntV(*v, e)
  735. case map[uint8]int8:
  736. fastpathTV.EncMapUint8Int8V(v, e)
  737. case *map[uint8]int8:
  738. fastpathTV.EncMapUint8Int8V(*v, e)
  739. case map[uint8]int16:
  740. fastpathTV.EncMapUint8Int16V(v, e)
  741. case *map[uint8]int16:
  742. fastpathTV.EncMapUint8Int16V(*v, e)
  743. case map[uint8]int32:
  744. fastpathTV.EncMapUint8Int32V(v, e)
  745. case *map[uint8]int32:
  746. fastpathTV.EncMapUint8Int32V(*v, e)
  747. case map[uint8]int64:
  748. fastpathTV.EncMapUint8Int64V(v, e)
  749. case *map[uint8]int64:
  750. fastpathTV.EncMapUint8Int64V(*v, e)
  751. case map[uint8]float32:
  752. fastpathTV.EncMapUint8Float32V(v, e)
  753. case *map[uint8]float32:
  754. fastpathTV.EncMapUint8Float32V(*v, e)
  755. case map[uint8]float64:
  756. fastpathTV.EncMapUint8Float64V(v, e)
  757. case *map[uint8]float64:
  758. fastpathTV.EncMapUint8Float64V(*v, e)
  759. case map[uint8]bool:
  760. fastpathTV.EncMapUint8BoolV(v, e)
  761. case *map[uint8]bool:
  762. fastpathTV.EncMapUint8BoolV(*v, e)
  763. case []uint16:
  764. fastpathTV.EncSliceUint16V(v, e)
  765. case *[]uint16:
  766. fastpathTV.EncSliceUint16V(*v, e)
  767. case map[uint16]interface{}:
  768. fastpathTV.EncMapUint16IntfV(v, e)
  769. case *map[uint16]interface{}:
  770. fastpathTV.EncMapUint16IntfV(*v, e)
  771. case map[uint16]string:
  772. fastpathTV.EncMapUint16StringV(v, e)
  773. case *map[uint16]string:
  774. fastpathTV.EncMapUint16StringV(*v, e)
  775. case map[uint16]uint:
  776. fastpathTV.EncMapUint16UintV(v, e)
  777. case *map[uint16]uint:
  778. fastpathTV.EncMapUint16UintV(*v, e)
  779. case map[uint16]uint8:
  780. fastpathTV.EncMapUint16Uint8V(v, e)
  781. case *map[uint16]uint8:
  782. fastpathTV.EncMapUint16Uint8V(*v, e)
  783. case map[uint16]uint16:
  784. fastpathTV.EncMapUint16Uint16V(v, e)
  785. case *map[uint16]uint16:
  786. fastpathTV.EncMapUint16Uint16V(*v, e)
  787. case map[uint16]uint32:
  788. fastpathTV.EncMapUint16Uint32V(v, e)
  789. case *map[uint16]uint32:
  790. fastpathTV.EncMapUint16Uint32V(*v, e)
  791. case map[uint16]uint64:
  792. fastpathTV.EncMapUint16Uint64V(v, e)
  793. case *map[uint16]uint64:
  794. fastpathTV.EncMapUint16Uint64V(*v, e)
  795. case map[uint16]uintptr:
  796. fastpathTV.EncMapUint16UintptrV(v, e)
  797. case *map[uint16]uintptr:
  798. fastpathTV.EncMapUint16UintptrV(*v, e)
  799. case map[uint16]int:
  800. fastpathTV.EncMapUint16IntV(v, e)
  801. case *map[uint16]int:
  802. fastpathTV.EncMapUint16IntV(*v, e)
  803. case map[uint16]int8:
  804. fastpathTV.EncMapUint16Int8V(v, e)
  805. case *map[uint16]int8:
  806. fastpathTV.EncMapUint16Int8V(*v, e)
  807. case map[uint16]int16:
  808. fastpathTV.EncMapUint16Int16V(v, e)
  809. case *map[uint16]int16:
  810. fastpathTV.EncMapUint16Int16V(*v, e)
  811. case map[uint16]int32:
  812. fastpathTV.EncMapUint16Int32V(v, e)
  813. case *map[uint16]int32:
  814. fastpathTV.EncMapUint16Int32V(*v, e)
  815. case map[uint16]int64:
  816. fastpathTV.EncMapUint16Int64V(v, e)
  817. case *map[uint16]int64:
  818. fastpathTV.EncMapUint16Int64V(*v, e)
  819. case map[uint16]float32:
  820. fastpathTV.EncMapUint16Float32V(v, e)
  821. case *map[uint16]float32:
  822. fastpathTV.EncMapUint16Float32V(*v, e)
  823. case map[uint16]float64:
  824. fastpathTV.EncMapUint16Float64V(v, e)
  825. case *map[uint16]float64:
  826. fastpathTV.EncMapUint16Float64V(*v, e)
  827. case map[uint16]bool:
  828. fastpathTV.EncMapUint16BoolV(v, e)
  829. case *map[uint16]bool:
  830. fastpathTV.EncMapUint16BoolV(*v, e)
  831. case []uint32:
  832. fastpathTV.EncSliceUint32V(v, e)
  833. case *[]uint32:
  834. fastpathTV.EncSliceUint32V(*v, e)
  835. case map[uint32]interface{}:
  836. fastpathTV.EncMapUint32IntfV(v, e)
  837. case *map[uint32]interface{}:
  838. fastpathTV.EncMapUint32IntfV(*v, e)
  839. case map[uint32]string:
  840. fastpathTV.EncMapUint32StringV(v, e)
  841. case *map[uint32]string:
  842. fastpathTV.EncMapUint32StringV(*v, e)
  843. case map[uint32]uint:
  844. fastpathTV.EncMapUint32UintV(v, e)
  845. case *map[uint32]uint:
  846. fastpathTV.EncMapUint32UintV(*v, e)
  847. case map[uint32]uint8:
  848. fastpathTV.EncMapUint32Uint8V(v, e)
  849. case *map[uint32]uint8:
  850. fastpathTV.EncMapUint32Uint8V(*v, e)
  851. case map[uint32]uint16:
  852. fastpathTV.EncMapUint32Uint16V(v, e)
  853. case *map[uint32]uint16:
  854. fastpathTV.EncMapUint32Uint16V(*v, e)
  855. case map[uint32]uint32:
  856. fastpathTV.EncMapUint32Uint32V(v, e)
  857. case *map[uint32]uint32:
  858. fastpathTV.EncMapUint32Uint32V(*v, e)
  859. case map[uint32]uint64:
  860. fastpathTV.EncMapUint32Uint64V(v, e)
  861. case *map[uint32]uint64:
  862. fastpathTV.EncMapUint32Uint64V(*v, e)
  863. case map[uint32]uintptr:
  864. fastpathTV.EncMapUint32UintptrV(v, e)
  865. case *map[uint32]uintptr:
  866. fastpathTV.EncMapUint32UintptrV(*v, e)
  867. case map[uint32]int:
  868. fastpathTV.EncMapUint32IntV(v, e)
  869. case *map[uint32]int:
  870. fastpathTV.EncMapUint32IntV(*v, e)
  871. case map[uint32]int8:
  872. fastpathTV.EncMapUint32Int8V(v, e)
  873. case *map[uint32]int8:
  874. fastpathTV.EncMapUint32Int8V(*v, e)
  875. case map[uint32]int16:
  876. fastpathTV.EncMapUint32Int16V(v, e)
  877. case *map[uint32]int16:
  878. fastpathTV.EncMapUint32Int16V(*v, e)
  879. case map[uint32]int32:
  880. fastpathTV.EncMapUint32Int32V(v, e)
  881. case *map[uint32]int32:
  882. fastpathTV.EncMapUint32Int32V(*v, e)
  883. case map[uint32]int64:
  884. fastpathTV.EncMapUint32Int64V(v, e)
  885. case *map[uint32]int64:
  886. fastpathTV.EncMapUint32Int64V(*v, e)
  887. case map[uint32]float32:
  888. fastpathTV.EncMapUint32Float32V(v, e)
  889. case *map[uint32]float32:
  890. fastpathTV.EncMapUint32Float32V(*v, e)
  891. case map[uint32]float64:
  892. fastpathTV.EncMapUint32Float64V(v, e)
  893. case *map[uint32]float64:
  894. fastpathTV.EncMapUint32Float64V(*v, e)
  895. case map[uint32]bool:
  896. fastpathTV.EncMapUint32BoolV(v, e)
  897. case *map[uint32]bool:
  898. fastpathTV.EncMapUint32BoolV(*v, e)
  899. case []uint64:
  900. fastpathTV.EncSliceUint64V(v, e)
  901. case *[]uint64:
  902. fastpathTV.EncSliceUint64V(*v, e)
  903. case map[uint64]interface{}:
  904. fastpathTV.EncMapUint64IntfV(v, e)
  905. case *map[uint64]interface{}:
  906. fastpathTV.EncMapUint64IntfV(*v, e)
  907. case map[uint64]string:
  908. fastpathTV.EncMapUint64StringV(v, e)
  909. case *map[uint64]string:
  910. fastpathTV.EncMapUint64StringV(*v, e)
  911. case map[uint64]uint:
  912. fastpathTV.EncMapUint64UintV(v, e)
  913. case *map[uint64]uint:
  914. fastpathTV.EncMapUint64UintV(*v, e)
  915. case map[uint64]uint8:
  916. fastpathTV.EncMapUint64Uint8V(v, e)
  917. case *map[uint64]uint8:
  918. fastpathTV.EncMapUint64Uint8V(*v, e)
  919. case map[uint64]uint16:
  920. fastpathTV.EncMapUint64Uint16V(v, e)
  921. case *map[uint64]uint16:
  922. fastpathTV.EncMapUint64Uint16V(*v, e)
  923. case map[uint64]uint32:
  924. fastpathTV.EncMapUint64Uint32V(v, e)
  925. case *map[uint64]uint32:
  926. fastpathTV.EncMapUint64Uint32V(*v, e)
  927. case map[uint64]uint64:
  928. fastpathTV.EncMapUint64Uint64V(v, e)
  929. case *map[uint64]uint64:
  930. fastpathTV.EncMapUint64Uint64V(*v, e)
  931. case map[uint64]uintptr:
  932. fastpathTV.EncMapUint64UintptrV(v, e)
  933. case *map[uint64]uintptr:
  934. fastpathTV.EncMapUint64UintptrV(*v, e)
  935. case map[uint64]int:
  936. fastpathTV.EncMapUint64IntV(v, e)
  937. case *map[uint64]int:
  938. fastpathTV.EncMapUint64IntV(*v, e)
  939. case map[uint64]int8:
  940. fastpathTV.EncMapUint64Int8V(v, e)
  941. case *map[uint64]int8:
  942. fastpathTV.EncMapUint64Int8V(*v, e)
  943. case map[uint64]int16:
  944. fastpathTV.EncMapUint64Int16V(v, e)
  945. case *map[uint64]int16:
  946. fastpathTV.EncMapUint64Int16V(*v, e)
  947. case map[uint64]int32:
  948. fastpathTV.EncMapUint64Int32V(v, e)
  949. case *map[uint64]int32:
  950. fastpathTV.EncMapUint64Int32V(*v, e)
  951. case map[uint64]int64:
  952. fastpathTV.EncMapUint64Int64V(v, e)
  953. case *map[uint64]int64:
  954. fastpathTV.EncMapUint64Int64V(*v, e)
  955. case map[uint64]float32:
  956. fastpathTV.EncMapUint64Float32V(v, e)
  957. case *map[uint64]float32:
  958. fastpathTV.EncMapUint64Float32V(*v, e)
  959. case map[uint64]float64:
  960. fastpathTV.EncMapUint64Float64V(v, e)
  961. case *map[uint64]float64:
  962. fastpathTV.EncMapUint64Float64V(*v, e)
  963. case map[uint64]bool:
  964. fastpathTV.EncMapUint64BoolV(v, e)
  965. case *map[uint64]bool:
  966. fastpathTV.EncMapUint64BoolV(*v, e)
  967. case []uintptr:
  968. fastpathTV.EncSliceUintptrV(v, e)
  969. case *[]uintptr:
  970. fastpathTV.EncSliceUintptrV(*v, e)
  971. case map[uintptr]interface{}:
  972. fastpathTV.EncMapUintptrIntfV(v, e)
  973. case *map[uintptr]interface{}:
  974. fastpathTV.EncMapUintptrIntfV(*v, e)
  975. case map[uintptr]string:
  976. fastpathTV.EncMapUintptrStringV(v, e)
  977. case *map[uintptr]string:
  978. fastpathTV.EncMapUintptrStringV(*v, e)
  979. case map[uintptr]uint:
  980. fastpathTV.EncMapUintptrUintV(v, e)
  981. case *map[uintptr]uint:
  982. fastpathTV.EncMapUintptrUintV(*v, e)
  983. case map[uintptr]uint8:
  984. fastpathTV.EncMapUintptrUint8V(v, e)
  985. case *map[uintptr]uint8:
  986. fastpathTV.EncMapUintptrUint8V(*v, e)
  987. case map[uintptr]uint16:
  988. fastpathTV.EncMapUintptrUint16V(v, e)
  989. case *map[uintptr]uint16:
  990. fastpathTV.EncMapUintptrUint16V(*v, e)
  991. case map[uintptr]uint32:
  992. fastpathTV.EncMapUintptrUint32V(v, e)
  993. case *map[uintptr]uint32:
  994. fastpathTV.EncMapUintptrUint32V(*v, e)
  995. case map[uintptr]uint64:
  996. fastpathTV.EncMapUintptrUint64V(v, e)
  997. case *map[uintptr]uint64:
  998. fastpathTV.EncMapUintptrUint64V(*v, e)
  999. case map[uintptr]uintptr:
  1000. fastpathTV.EncMapUintptrUintptrV(v, e)
  1001. case *map[uintptr]uintptr:
  1002. fastpathTV.EncMapUintptrUintptrV(*v, e)
  1003. case map[uintptr]int:
  1004. fastpathTV.EncMapUintptrIntV(v, e)
  1005. case *map[uintptr]int:
  1006. fastpathTV.EncMapUintptrIntV(*v, e)
  1007. case map[uintptr]int8:
  1008. fastpathTV.EncMapUintptrInt8V(v, e)
  1009. case *map[uintptr]int8:
  1010. fastpathTV.EncMapUintptrInt8V(*v, e)
  1011. case map[uintptr]int16:
  1012. fastpathTV.EncMapUintptrInt16V(v, e)
  1013. case *map[uintptr]int16:
  1014. fastpathTV.EncMapUintptrInt16V(*v, e)
  1015. case map[uintptr]int32:
  1016. fastpathTV.EncMapUintptrInt32V(v, e)
  1017. case *map[uintptr]int32:
  1018. fastpathTV.EncMapUintptrInt32V(*v, e)
  1019. case map[uintptr]int64:
  1020. fastpathTV.EncMapUintptrInt64V(v, e)
  1021. case *map[uintptr]int64:
  1022. fastpathTV.EncMapUintptrInt64V(*v, e)
  1023. case map[uintptr]float32:
  1024. fastpathTV.EncMapUintptrFloat32V(v, e)
  1025. case *map[uintptr]float32:
  1026. fastpathTV.EncMapUintptrFloat32V(*v, e)
  1027. case map[uintptr]float64:
  1028. fastpathTV.EncMapUintptrFloat64V(v, e)
  1029. case *map[uintptr]float64:
  1030. fastpathTV.EncMapUintptrFloat64V(*v, e)
  1031. case map[uintptr]bool:
  1032. fastpathTV.EncMapUintptrBoolV(v, e)
  1033. case *map[uintptr]bool:
  1034. fastpathTV.EncMapUintptrBoolV(*v, e)
  1035. case []int:
  1036. fastpathTV.EncSliceIntV(v, e)
  1037. case *[]int:
  1038. fastpathTV.EncSliceIntV(*v, e)
  1039. case map[int]interface{}:
  1040. fastpathTV.EncMapIntIntfV(v, e)
  1041. case *map[int]interface{}:
  1042. fastpathTV.EncMapIntIntfV(*v, e)
  1043. case map[int]string:
  1044. fastpathTV.EncMapIntStringV(v, e)
  1045. case *map[int]string:
  1046. fastpathTV.EncMapIntStringV(*v, e)
  1047. case map[int]uint:
  1048. fastpathTV.EncMapIntUintV(v, e)
  1049. case *map[int]uint:
  1050. fastpathTV.EncMapIntUintV(*v, e)
  1051. case map[int]uint8:
  1052. fastpathTV.EncMapIntUint8V(v, e)
  1053. case *map[int]uint8:
  1054. fastpathTV.EncMapIntUint8V(*v, e)
  1055. case map[int]uint16:
  1056. fastpathTV.EncMapIntUint16V(v, e)
  1057. case *map[int]uint16:
  1058. fastpathTV.EncMapIntUint16V(*v, e)
  1059. case map[int]uint32:
  1060. fastpathTV.EncMapIntUint32V(v, e)
  1061. case *map[int]uint32:
  1062. fastpathTV.EncMapIntUint32V(*v, e)
  1063. case map[int]uint64:
  1064. fastpathTV.EncMapIntUint64V(v, e)
  1065. case *map[int]uint64:
  1066. fastpathTV.EncMapIntUint64V(*v, e)
  1067. case map[int]uintptr:
  1068. fastpathTV.EncMapIntUintptrV(v, e)
  1069. case *map[int]uintptr:
  1070. fastpathTV.EncMapIntUintptrV(*v, e)
  1071. case map[int]int:
  1072. fastpathTV.EncMapIntIntV(v, e)
  1073. case *map[int]int:
  1074. fastpathTV.EncMapIntIntV(*v, e)
  1075. case map[int]int8:
  1076. fastpathTV.EncMapIntInt8V(v, e)
  1077. case *map[int]int8:
  1078. fastpathTV.EncMapIntInt8V(*v, e)
  1079. case map[int]int16:
  1080. fastpathTV.EncMapIntInt16V(v, e)
  1081. case *map[int]int16:
  1082. fastpathTV.EncMapIntInt16V(*v, e)
  1083. case map[int]int32:
  1084. fastpathTV.EncMapIntInt32V(v, e)
  1085. case *map[int]int32:
  1086. fastpathTV.EncMapIntInt32V(*v, e)
  1087. case map[int]int64:
  1088. fastpathTV.EncMapIntInt64V(v, e)
  1089. case *map[int]int64:
  1090. fastpathTV.EncMapIntInt64V(*v, e)
  1091. case map[int]float32:
  1092. fastpathTV.EncMapIntFloat32V(v, e)
  1093. case *map[int]float32:
  1094. fastpathTV.EncMapIntFloat32V(*v, e)
  1095. case map[int]float64:
  1096. fastpathTV.EncMapIntFloat64V(v, e)
  1097. case *map[int]float64:
  1098. fastpathTV.EncMapIntFloat64V(*v, e)
  1099. case map[int]bool:
  1100. fastpathTV.EncMapIntBoolV(v, e)
  1101. case *map[int]bool:
  1102. fastpathTV.EncMapIntBoolV(*v, e)
  1103. case []int8:
  1104. fastpathTV.EncSliceInt8V(v, e)
  1105. case *[]int8:
  1106. fastpathTV.EncSliceInt8V(*v, e)
  1107. case map[int8]interface{}:
  1108. fastpathTV.EncMapInt8IntfV(v, e)
  1109. case *map[int8]interface{}:
  1110. fastpathTV.EncMapInt8IntfV(*v, e)
  1111. case map[int8]string:
  1112. fastpathTV.EncMapInt8StringV(v, e)
  1113. case *map[int8]string:
  1114. fastpathTV.EncMapInt8StringV(*v, e)
  1115. case map[int8]uint:
  1116. fastpathTV.EncMapInt8UintV(v, e)
  1117. case *map[int8]uint:
  1118. fastpathTV.EncMapInt8UintV(*v, e)
  1119. case map[int8]uint8:
  1120. fastpathTV.EncMapInt8Uint8V(v, e)
  1121. case *map[int8]uint8:
  1122. fastpathTV.EncMapInt8Uint8V(*v, e)
  1123. case map[int8]uint16:
  1124. fastpathTV.EncMapInt8Uint16V(v, e)
  1125. case *map[int8]uint16:
  1126. fastpathTV.EncMapInt8Uint16V(*v, e)
  1127. case map[int8]uint32:
  1128. fastpathTV.EncMapInt8Uint32V(v, e)
  1129. case *map[int8]uint32:
  1130. fastpathTV.EncMapInt8Uint32V(*v, e)
  1131. case map[int8]uint64:
  1132. fastpathTV.EncMapInt8Uint64V(v, e)
  1133. case *map[int8]uint64:
  1134. fastpathTV.EncMapInt8Uint64V(*v, e)
  1135. case map[int8]uintptr:
  1136. fastpathTV.EncMapInt8UintptrV(v, e)
  1137. case *map[int8]uintptr:
  1138. fastpathTV.EncMapInt8UintptrV(*v, e)
  1139. case map[int8]int:
  1140. fastpathTV.EncMapInt8IntV(v, e)
  1141. case *map[int8]int:
  1142. fastpathTV.EncMapInt8IntV(*v, e)
  1143. case map[int8]int8:
  1144. fastpathTV.EncMapInt8Int8V(v, e)
  1145. case *map[int8]int8:
  1146. fastpathTV.EncMapInt8Int8V(*v, e)
  1147. case map[int8]int16:
  1148. fastpathTV.EncMapInt8Int16V(v, e)
  1149. case *map[int8]int16:
  1150. fastpathTV.EncMapInt8Int16V(*v, e)
  1151. case map[int8]int32:
  1152. fastpathTV.EncMapInt8Int32V(v, e)
  1153. case *map[int8]int32:
  1154. fastpathTV.EncMapInt8Int32V(*v, e)
  1155. case map[int8]int64:
  1156. fastpathTV.EncMapInt8Int64V(v, e)
  1157. case *map[int8]int64:
  1158. fastpathTV.EncMapInt8Int64V(*v, e)
  1159. case map[int8]float32:
  1160. fastpathTV.EncMapInt8Float32V(v, e)
  1161. case *map[int8]float32:
  1162. fastpathTV.EncMapInt8Float32V(*v, e)
  1163. case map[int8]float64:
  1164. fastpathTV.EncMapInt8Float64V(v, e)
  1165. case *map[int8]float64:
  1166. fastpathTV.EncMapInt8Float64V(*v, e)
  1167. case map[int8]bool:
  1168. fastpathTV.EncMapInt8BoolV(v, e)
  1169. case *map[int8]bool:
  1170. fastpathTV.EncMapInt8BoolV(*v, e)
  1171. case []int16:
  1172. fastpathTV.EncSliceInt16V(v, e)
  1173. case *[]int16:
  1174. fastpathTV.EncSliceInt16V(*v, e)
  1175. case map[int16]interface{}:
  1176. fastpathTV.EncMapInt16IntfV(v, e)
  1177. case *map[int16]interface{}:
  1178. fastpathTV.EncMapInt16IntfV(*v, e)
  1179. case map[int16]string:
  1180. fastpathTV.EncMapInt16StringV(v, e)
  1181. case *map[int16]string:
  1182. fastpathTV.EncMapInt16StringV(*v, e)
  1183. case map[int16]uint:
  1184. fastpathTV.EncMapInt16UintV(v, e)
  1185. case *map[int16]uint:
  1186. fastpathTV.EncMapInt16UintV(*v, e)
  1187. case map[int16]uint8:
  1188. fastpathTV.EncMapInt16Uint8V(v, e)
  1189. case *map[int16]uint8:
  1190. fastpathTV.EncMapInt16Uint8V(*v, e)
  1191. case map[int16]uint16:
  1192. fastpathTV.EncMapInt16Uint16V(v, e)
  1193. case *map[int16]uint16:
  1194. fastpathTV.EncMapInt16Uint16V(*v, e)
  1195. case map[int16]uint32:
  1196. fastpathTV.EncMapInt16Uint32V(v, e)
  1197. case *map[int16]uint32:
  1198. fastpathTV.EncMapInt16Uint32V(*v, e)
  1199. case map[int16]uint64:
  1200. fastpathTV.EncMapInt16Uint64V(v, e)
  1201. case *map[int16]uint64:
  1202. fastpathTV.EncMapInt16Uint64V(*v, e)
  1203. case map[int16]uintptr:
  1204. fastpathTV.EncMapInt16UintptrV(v, e)
  1205. case *map[int16]uintptr:
  1206. fastpathTV.EncMapInt16UintptrV(*v, e)
  1207. case map[int16]int:
  1208. fastpathTV.EncMapInt16IntV(v, e)
  1209. case *map[int16]int:
  1210. fastpathTV.EncMapInt16IntV(*v, e)
  1211. case map[int16]int8:
  1212. fastpathTV.EncMapInt16Int8V(v, e)
  1213. case *map[int16]int8:
  1214. fastpathTV.EncMapInt16Int8V(*v, e)
  1215. case map[int16]int16:
  1216. fastpathTV.EncMapInt16Int16V(v, e)
  1217. case *map[int16]int16:
  1218. fastpathTV.EncMapInt16Int16V(*v, e)
  1219. case map[int16]int32:
  1220. fastpathTV.EncMapInt16Int32V(v, e)
  1221. case *map[int16]int32:
  1222. fastpathTV.EncMapInt16Int32V(*v, e)
  1223. case map[int16]int64:
  1224. fastpathTV.EncMapInt16Int64V(v, e)
  1225. case *map[int16]int64:
  1226. fastpathTV.EncMapInt16Int64V(*v, e)
  1227. case map[int16]float32:
  1228. fastpathTV.EncMapInt16Float32V(v, e)
  1229. case *map[int16]float32:
  1230. fastpathTV.EncMapInt16Float32V(*v, e)
  1231. case map[int16]float64:
  1232. fastpathTV.EncMapInt16Float64V(v, e)
  1233. case *map[int16]float64:
  1234. fastpathTV.EncMapInt16Float64V(*v, e)
  1235. case map[int16]bool:
  1236. fastpathTV.EncMapInt16BoolV(v, e)
  1237. case *map[int16]bool:
  1238. fastpathTV.EncMapInt16BoolV(*v, e)
  1239. case []int32:
  1240. fastpathTV.EncSliceInt32V(v, e)
  1241. case *[]int32:
  1242. fastpathTV.EncSliceInt32V(*v, e)
  1243. case map[int32]interface{}:
  1244. fastpathTV.EncMapInt32IntfV(v, e)
  1245. case *map[int32]interface{}:
  1246. fastpathTV.EncMapInt32IntfV(*v, e)
  1247. case map[int32]string:
  1248. fastpathTV.EncMapInt32StringV(v, e)
  1249. case *map[int32]string:
  1250. fastpathTV.EncMapInt32StringV(*v, e)
  1251. case map[int32]uint:
  1252. fastpathTV.EncMapInt32UintV(v, e)
  1253. case *map[int32]uint:
  1254. fastpathTV.EncMapInt32UintV(*v, e)
  1255. case map[int32]uint8:
  1256. fastpathTV.EncMapInt32Uint8V(v, e)
  1257. case *map[int32]uint8:
  1258. fastpathTV.EncMapInt32Uint8V(*v, e)
  1259. case map[int32]uint16:
  1260. fastpathTV.EncMapInt32Uint16V(v, e)
  1261. case *map[int32]uint16:
  1262. fastpathTV.EncMapInt32Uint16V(*v, e)
  1263. case map[int32]uint32:
  1264. fastpathTV.EncMapInt32Uint32V(v, e)
  1265. case *map[int32]uint32:
  1266. fastpathTV.EncMapInt32Uint32V(*v, e)
  1267. case map[int32]uint64:
  1268. fastpathTV.EncMapInt32Uint64V(v, e)
  1269. case *map[int32]uint64:
  1270. fastpathTV.EncMapInt32Uint64V(*v, e)
  1271. case map[int32]uintptr:
  1272. fastpathTV.EncMapInt32UintptrV(v, e)
  1273. case *map[int32]uintptr:
  1274. fastpathTV.EncMapInt32UintptrV(*v, e)
  1275. case map[int32]int:
  1276. fastpathTV.EncMapInt32IntV(v, e)
  1277. case *map[int32]int:
  1278. fastpathTV.EncMapInt32IntV(*v, e)
  1279. case map[int32]int8:
  1280. fastpathTV.EncMapInt32Int8V(v, e)
  1281. case *map[int32]int8:
  1282. fastpathTV.EncMapInt32Int8V(*v, e)
  1283. case map[int32]int16:
  1284. fastpathTV.EncMapInt32Int16V(v, e)
  1285. case *map[int32]int16:
  1286. fastpathTV.EncMapInt32Int16V(*v, e)
  1287. case map[int32]int32:
  1288. fastpathTV.EncMapInt32Int32V(v, e)
  1289. case *map[int32]int32:
  1290. fastpathTV.EncMapInt32Int32V(*v, e)
  1291. case map[int32]int64:
  1292. fastpathTV.EncMapInt32Int64V(v, e)
  1293. case *map[int32]int64:
  1294. fastpathTV.EncMapInt32Int64V(*v, e)
  1295. case map[int32]float32:
  1296. fastpathTV.EncMapInt32Float32V(v, e)
  1297. case *map[int32]float32:
  1298. fastpathTV.EncMapInt32Float32V(*v, e)
  1299. case map[int32]float64:
  1300. fastpathTV.EncMapInt32Float64V(v, e)
  1301. case *map[int32]float64:
  1302. fastpathTV.EncMapInt32Float64V(*v, e)
  1303. case map[int32]bool:
  1304. fastpathTV.EncMapInt32BoolV(v, e)
  1305. case *map[int32]bool:
  1306. fastpathTV.EncMapInt32BoolV(*v, e)
  1307. case []int64:
  1308. fastpathTV.EncSliceInt64V(v, e)
  1309. case *[]int64:
  1310. fastpathTV.EncSliceInt64V(*v, e)
  1311. case map[int64]interface{}:
  1312. fastpathTV.EncMapInt64IntfV(v, e)
  1313. case *map[int64]interface{}:
  1314. fastpathTV.EncMapInt64IntfV(*v, e)
  1315. case map[int64]string:
  1316. fastpathTV.EncMapInt64StringV(v, e)
  1317. case *map[int64]string:
  1318. fastpathTV.EncMapInt64StringV(*v, e)
  1319. case map[int64]uint:
  1320. fastpathTV.EncMapInt64UintV(v, e)
  1321. case *map[int64]uint:
  1322. fastpathTV.EncMapInt64UintV(*v, e)
  1323. case map[int64]uint8:
  1324. fastpathTV.EncMapInt64Uint8V(v, e)
  1325. case *map[int64]uint8:
  1326. fastpathTV.EncMapInt64Uint8V(*v, e)
  1327. case map[int64]uint16:
  1328. fastpathTV.EncMapInt64Uint16V(v, e)
  1329. case *map[int64]uint16:
  1330. fastpathTV.EncMapInt64Uint16V(*v, e)
  1331. case map[int64]uint32:
  1332. fastpathTV.EncMapInt64Uint32V(v, e)
  1333. case *map[int64]uint32:
  1334. fastpathTV.EncMapInt64Uint32V(*v, e)
  1335. case map[int64]uint64:
  1336. fastpathTV.EncMapInt64Uint64V(v, e)
  1337. case *map[int64]uint64:
  1338. fastpathTV.EncMapInt64Uint64V(*v, e)
  1339. case map[int64]uintptr:
  1340. fastpathTV.EncMapInt64UintptrV(v, e)
  1341. case *map[int64]uintptr:
  1342. fastpathTV.EncMapInt64UintptrV(*v, e)
  1343. case map[int64]int:
  1344. fastpathTV.EncMapInt64IntV(v, e)
  1345. case *map[int64]int:
  1346. fastpathTV.EncMapInt64IntV(*v, e)
  1347. case map[int64]int8:
  1348. fastpathTV.EncMapInt64Int8V(v, e)
  1349. case *map[int64]int8:
  1350. fastpathTV.EncMapInt64Int8V(*v, e)
  1351. case map[int64]int16:
  1352. fastpathTV.EncMapInt64Int16V(v, e)
  1353. case *map[int64]int16:
  1354. fastpathTV.EncMapInt64Int16V(*v, e)
  1355. case map[int64]int32:
  1356. fastpathTV.EncMapInt64Int32V(v, e)
  1357. case *map[int64]int32:
  1358. fastpathTV.EncMapInt64Int32V(*v, e)
  1359. case map[int64]int64:
  1360. fastpathTV.EncMapInt64Int64V(v, e)
  1361. case *map[int64]int64:
  1362. fastpathTV.EncMapInt64Int64V(*v, e)
  1363. case map[int64]float32:
  1364. fastpathTV.EncMapInt64Float32V(v, e)
  1365. case *map[int64]float32:
  1366. fastpathTV.EncMapInt64Float32V(*v, e)
  1367. case map[int64]float64:
  1368. fastpathTV.EncMapInt64Float64V(v, e)
  1369. case *map[int64]float64:
  1370. fastpathTV.EncMapInt64Float64V(*v, e)
  1371. case map[int64]bool:
  1372. fastpathTV.EncMapInt64BoolV(v, e)
  1373. case *map[int64]bool:
  1374. fastpathTV.EncMapInt64BoolV(*v, e)
  1375. case []bool:
  1376. fastpathTV.EncSliceBoolV(v, e)
  1377. case *[]bool:
  1378. fastpathTV.EncSliceBoolV(*v, e)
  1379. case map[bool]interface{}:
  1380. fastpathTV.EncMapBoolIntfV(v, e)
  1381. case *map[bool]interface{}:
  1382. fastpathTV.EncMapBoolIntfV(*v, e)
  1383. case map[bool]string:
  1384. fastpathTV.EncMapBoolStringV(v, e)
  1385. case *map[bool]string:
  1386. fastpathTV.EncMapBoolStringV(*v, e)
  1387. case map[bool]uint:
  1388. fastpathTV.EncMapBoolUintV(v, e)
  1389. case *map[bool]uint:
  1390. fastpathTV.EncMapBoolUintV(*v, e)
  1391. case map[bool]uint8:
  1392. fastpathTV.EncMapBoolUint8V(v, e)
  1393. case *map[bool]uint8:
  1394. fastpathTV.EncMapBoolUint8V(*v, e)
  1395. case map[bool]uint16:
  1396. fastpathTV.EncMapBoolUint16V(v, e)
  1397. case *map[bool]uint16:
  1398. fastpathTV.EncMapBoolUint16V(*v, e)
  1399. case map[bool]uint32:
  1400. fastpathTV.EncMapBoolUint32V(v, e)
  1401. case *map[bool]uint32:
  1402. fastpathTV.EncMapBoolUint32V(*v, e)
  1403. case map[bool]uint64:
  1404. fastpathTV.EncMapBoolUint64V(v, e)
  1405. case *map[bool]uint64:
  1406. fastpathTV.EncMapBoolUint64V(*v, e)
  1407. case map[bool]uintptr:
  1408. fastpathTV.EncMapBoolUintptrV(v, e)
  1409. case *map[bool]uintptr:
  1410. fastpathTV.EncMapBoolUintptrV(*v, e)
  1411. case map[bool]int:
  1412. fastpathTV.EncMapBoolIntV(v, e)
  1413. case *map[bool]int:
  1414. fastpathTV.EncMapBoolIntV(*v, e)
  1415. case map[bool]int8:
  1416. fastpathTV.EncMapBoolInt8V(v, e)
  1417. case *map[bool]int8:
  1418. fastpathTV.EncMapBoolInt8V(*v, e)
  1419. case map[bool]int16:
  1420. fastpathTV.EncMapBoolInt16V(v, e)
  1421. case *map[bool]int16:
  1422. fastpathTV.EncMapBoolInt16V(*v, e)
  1423. case map[bool]int32:
  1424. fastpathTV.EncMapBoolInt32V(v, e)
  1425. case *map[bool]int32:
  1426. fastpathTV.EncMapBoolInt32V(*v, e)
  1427. case map[bool]int64:
  1428. fastpathTV.EncMapBoolInt64V(v, e)
  1429. case *map[bool]int64:
  1430. fastpathTV.EncMapBoolInt64V(*v, e)
  1431. case map[bool]float32:
  1432. fastpathTV.EncMapBoolFloat32V(v, e)
  1433. case *map[bool]float32:
  1434. fastpathTV.EncMapBoolFloat32V(*v, e)
  1435. case map[bool]float64:
  1436. fastpathTV.EncMapBoolFloat64V(v, e)
  1437. case *map[bool]float64:
  1438. fastpathTV.EncMapBoolFloat64V(*v, e)
  1439. case map[bool]bool:
  1440. fastpathTV.EncMapBoolBoolV(v, e)
  1441. case *map[bool]bool:
  1442. fastpathTV.EncMapBoolBoolV(*v, e)
  1443. default:
  1444. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  1445. return false
  1446. }
  1447. return true
  1448. }
  1449. // -- -- fast path functions
  1450. func (e *Encoder) fastpathEncSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  1451. if f.ti.mbs {
  1452. fastpathTV.EncAsMapSliceIntfV(rv2i(rv).([]interface{}), e)
  1453. } else {
  1454. fastpathTV.EncSliceIntfV(rv2i(rv).([]interface{}), e)
  1455. }
  1456. }
  1457. func (_ fastpathT) EncSliceIntfV(v []interface{}, e *Encoder) {
  1458. ee, esep := e.e, e.hh.hasElemSeparators()
  1459. ee.WriteArrayStart(len(v))
  1460. for _, v2 := range v {
  1461. if esep {
  1462. ee.WriteArrayElem()
  1463. }
  1464. e.encode(v2)
  1465. }
  1466. ee.WriteArrayEnd()
  1467. }
  1468. func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, e *Encoder) {
  1469. ee, esep := e.e, e.hh.hasElemSeparators()
  1470. if len(v)%2 == 1 {
  1471. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1472. return
  1473. }
  1474. ee.WriteMapStart(len(v) / 2)
  1475. for j, v2 := range v {
  1476. if esep {
  1477. if j%2 == 0 {
  1478. ee.WriteMapElemKey()
  1479. } else {
  1480. ee.WriteMapElemValue()
  1481. }
  1482. }
  1483. e.encode(v2)
  1484. }
  1485. ee.WriteMapEnd()
  1486. }
  1487. func (e *Encoder) fastpathEncSliceStringR(f *codecFnInfo, rv reflect.Value) {
  1488. if f.ti.mbs {
  1489. fastpathTV.EncAsMapSliceStringV(rv2i(rv).([]string), e)
  1490. } else {
  1491. fastpathTV.EncSliceStringV(rv2i(rv).([]string), e)
  1492. }
  1493. }
  1494. func (_ fastpathT) EncSliceStringV(v []string, e *Encoder) {
  1495. ee, esep := e.e, e.hh.hasElemSeparators()
  1496. ee.WriteArrayStart(len(v))
  1497. for _, v2 := range v {
  1498. if esep {
  1499. ee.WriteArrayElem()
  1500. }
  1501. ee.EncodeString(c_UTF8, v2)
  1502. }
  1503. ee.WriteArrayEnd()
  1504. }
  1505. func (_ fastpathT) EncAsMapSliceStringV(v []string, e *Encoder) {
  1506. ee, esep := e.e, e.hh.hasElemSeparators()
  1507. if len(v)%2 == 1 {
  1508. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1509. return
  1510. }
  1511. ee.WriteMapStart(len(v) / 2)
  1512. for j, v2 := range v {
  1513. if esep {
  1514. if j%2 == 0 {
  1515. ee.WriteMapElemKey()
  1516. } else {
  1517. ee.WriteMapElemValue()
  1518. }
  1519. }
  1520. ee.EncodeString(c_UTF8, v2)
  1521. }
  1522. ee.WriteMapEnd()
  1523. }
  1524. func (e *Encoder) fastpathEncSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  1525. if f.ti.mbs {
  1526. fastpathTV.EncAsMapSliceFloat32V(rv2i(rv).([]float32), e)
  1527. } else {
  1528. fastpathTV.EncSliceFloat32V(rv2i(rv).([]float32), e)
  1529. }
  1530. }
  1531. func (_ fastpathT) EncSliceFloat32V(v []float32, e *Encoder) {
  1532. ee, esep := e.e, e.hh.hasElemSeparators()
  1533. ee.WriteArrayStart(len(v))
  1534. for _, v2 := range v {
  1535. if esep {
  1536. ee.WriteArrayElem()
  1537. }
  1538. ee.EncodeFloat32(v2)
  1539. }
  1540. ee.WriteArrayEnd()
  1541. }
  1542. func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, e *Encoder) {
  1543. ee, esep := e.e, e.hh.hasElemSeparators()
  1544. if len(v)%2 == 1 {
  1545. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1546. return
  1547. }
  1548. ee.WriteMapStart(len(v) / 2)
  1549. for j, v2 := range v {
  1550. if esep {
  1551. if j%2 == 0 {
  1552. ee.WriteMapElemKey()
  1553. } else {
  1554. ee.WriteMapElemValue()
  1555. }
  1556. }
  1557. ee.EncodeFloat32(v2)
  1558. }
  1559. ee.WriteMapEnd()
  1560. }
  1561. func (e *Encoder) fastpathEncSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  1562. if f.ti.mbs {
  1563. fastpathTV.EncAsMapSliceFloat64V(rv2i(rv).([]float64), e)
  1564. } else {
  1565. fastpathTV.EncSliceFloat64V(rv2i(rv).([]float64), e)
  1566. }
  1567. }
  1568. func (_ fastpathT) EncSliceFloat64V(v []float64, e *Encoder) {
  1569. ee, esep := e.e, e.hh.hasElemSeparators()
  1570. ee.WriteArrayStart(len(v))
  1571. for _, v2 := range v {
  1572. if esep {
  1573. ee.WriteArrayElem()
  1574. }
  1575. ee.EncodeFloat64(v2)
  1576. }
  1577. ee.WriteArrayEnd()
  1578. }
  1579. func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, e *Encoder) {
  1580. ee, esep := e.e, e.hh.hasElemSeparators()
  1581. if len(v)%2 == 1 {
  1582. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1583. return
  1584. }
  1585. ee.WriteMapStart(len(v) / 2)
  1586. for j, v2 := range v {
  1587. if esep {
  1588. if j%2 == 0 {
  1589. ee.WriteMapElemKey()
  1590. } else {
  1591. ee.WriteMapElemValue()
  1592. }
  1593. }
  1594. ee.EncodeFloat64(v2)
  1595. }
  1596. ee.WriteMapEnd()
  1597. }
  1598. func (e *Encoder) fastpathEncSliceUintR(f *codecFnInfo, rv reflect.Value) {
  1599. if f.ti.mbs {
  1600. fastpathTV.EncAsMapSliceUintV(rv2i(rv).([]uint), e)
  1601. } else {
  1602. fastpathTV.EncSliceUintV(rv2i(rv).([]uint), e)
  1603. }
  1604. }
  1605. func (_ fastpathT) EncSliceUintV(v []uint, e *Encoder) {
  1606. ee, esep := e.e, e.hh.hasElemSeparators()
  1607. ee.WriteArrayStart(len(v))
  1608. for _, v2 := range v {
  1609. if esep {
  1610. ee.WriteArrayElem()
  1611. }
  1612. ee.EncodeUint(uint64(v2))
  1613. }
  1614. ee.WriteArrayEnd()
  1615. }
  1616. func (_ fastpathT) EncAsMapSliceUintV(v []uint, e *Encoder) {
  1617. ee, esep := e.e, e.hh.hasElemSeparators()
  1618. if len(v)%2 == 1 {
  1619. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1620. return
  1621. }
  1622. ee.WriteMapStart(len(v) / 2)
  1623. for j, v2 := range v {
  1624. if esep {
  1625. if j%2 == 0 {
  1626. ee.WriteMapElemKey()
  1627. } else {
  1628. ee.WriteMapElemValue()
  1629. }
  1630. }
  1631. ee.EncodeUint(uint64(v2))
  1632. }
  1633. ee.WriteMapEnd()
  1634. }
  1635. func (e *Encoder) fastpathEncSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  1636. if f.ti.mbs {
  1637. fastpathTV.EncAsMapSliceUint16V(rv2i(rv).([]uint16), e)
  1638. } else {
  1639. fastpathTV.EncSliceUint16V(rv2i(rv).([]uint16), e)
  1640. }
  1641. }
  1642. func (_ fastpathT) EncSliceUint16V(v []uint16, e *Encoder) {
  1643. ee, esep := e.e, e.hh.hasElemSeparators()
  1644. ee.WriteArrayStart(len(v))
  1645. for _, v2 := range v {
  1646. if esep {
  1647. ee.WriteArrayElem()
  1648. }
  1649. ee.EncodeUint(uint64(v2))
  1650. }
  1651. ee.WriteArrayEnd()
  1652. }
  1653. func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, e *Encoder) {
  1654. ee, esep := e.e, e.hh.hasElemSeparators()
  1655. if len(v)%2 == 1 {
  1656. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1657. return
  1658. }
  1659. ee.WriteMapStart(len(v) / 2)
  1660. for j, v2 := range v {
  1661. if esep {
  1662. if j%2 == 0 {
  1663. ee.WriteMapElemKey()
  1664. } else {
  1665. ee.WriteMapElemValue()
  1666. }
  1667. }
  1668. ee.EncodeUint(uint64(v2))
  1669. }
  1670. ee.WriteMapEnd()
  1671. }
  1672. func (e *Encoder) fastpathEncSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  1673. if f.ti.mbs {
  1674. fastpathTV.EncAsMapSliceUint32V(rv2i(rv).([]uint32), e)
  1675. } else {
  1676. fastpathTV.EncSliceUint32V(rv2i(rv).([]uint32), e)
  1677. }
  1678. }
  1679. func (_ fastpathT) EncSliceUint32V(v []uint32, e *Encoder) {
  1680. ee, esep := e.e, e.hh.hasElemSeparators()
  1681. ee.WriteArrayStart(len(v))
  1682. for _, v2 := range v {
  1683. if esep {
  1684. ee.WriteArrayElem()
  1685. }
  1686. ee.EncodeUint(uint64(v2))
  1687. }
  1688. ee.WriteArrayEnd()
  1689. }
  1690. func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, e *Encoder) {
  1691. ee, esep := e.e, e.hh.hasElemSeparators()
  1692. if len(v)%2 == 1 {
  1693. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1694. return
  1695. }
  1696. ee.WriteMapStart(len(v) / 2)
  1697. for j, v2 := range v {
  1698. if esep {
  1699. if j%2 == 0 {
  1700. ee.WriteMapElemKey()
  1701. } else {
  1702. ee.WriteMapElemValue()
  1703. }
  1704. }
  1705. ee.EncodeUint(uint64(v2))
  1706. }
  1707. ee.WriteMapEnd()
  1708. }
  1709. func (e *Encoder) fastpathEncSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  1710. if f.ti.mbs {
  1711. fastpathTV.EncAsMapSliceUint64V(rv2i(rv).([]uint64), e)
  1712. } else {
  1713. fastpathTV.EncSliceUint64V(rv2i(rv).([]uint64), e)
  1714. }
  1715. }
  1716. func (_ fastpathT) EncSliceUint64V(v []uint64, e *Encoder) {
  1717. ee, esep := e.e, e.hh.hasElemSeparators()
  1718. ee.WriteArrayStart(len(v))
  1719. for _, v2 := range v {
  1720. if esep {
  1721. ee.WriteArrayElem()
  1722. }
  1723. ee.EncodeUint(uint64(v2))
  1724. }
  1725. ee.WriteArrayEnd()
  1726. }
  1727. func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, e *Encoder) {
  1728. ee, esep := e.e, e.hh.hasElemSeparators()
  1729. if len(v)%2 == 1 {
  1730. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1731. return
  1732. }
  1733. ee.WriteMapStart(len(v) / 2)
  1734. for j, v2 := range v {
  1735. if esep {
  1736. if j%2 == 0 {
  1737. ee.WriteMapElemKey()
  1738. } else {
  1739. ee.WriteMapElemValue()
  1740. }
  1741. }
  1742. ee.EncodeUint(uint64(v2))
  1743. }
  1744. ee.WriteMapEnd()
  1745. }
  1746. func (e *Encoder) fastpathEncSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  1747. if f.ti.mbs {
  1748. fastpathTV.EncAsMapSliceUintptrV(rv2i(rv).([]uintptr), e)
  1749. } else {
  1750. fastpathTV.EncSliceUintptrV(rv2i(rv).([]uintptr), e)
  1751. }
  1752. }
  1753. func (_ fastpathT) EncSliceUintptrV(v []uintptr, e *Encoder) {
  1754. ee, esep := e.e, e.hh.hasElemSeparators()
  1755. ee.WriteArrayStart(len(v))
  1756. for _, v2 := range v {
  1757. if esep {
  1758. ee.WriteArrayElem()
  1759. }
  1760. e.encode(v2)
  1761. }
  1762. ee.WriteArrayEnd()
  1763. }
  1764. func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, e *Encoder) {
  1765. ee, esep := e.e, e.hh.hasElemSeparators()
  1766. if len(v)%2 == 1 {
  1767. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1768. return
  1769. }
  1770. ee.WriteMapStart(len(v) / 2)
  1771. for j, v2 := range v {
  1772. if esep {
  1773. if j%2 == 0 {
  1774. ee.WriteMapElemKey()
  1775. } else {
  1776. ee.WriteMapElemValue()
  1777. }
  1778. }
  1779. e.encode(v2)
  1780. }
  1781. ee.WriteMapEnd()
  1782. }
  1783. func (e *Encoder) fastpathEncSliceIntR(f *codecFnInfo, rv reflect.Value) {
  1784. if f.ti.mbs {
  1785. fastpathTV.EncAsMapSliceIntV(rv2i(rv).([]int), e)
  1786. } else {
  1787. fastpathTV.EncSliceIntV(rv2i(rv).([]int), e)
  1788. }
  1789. }
  1790. func (_ fastpathT) EncSliceIntV(v []int, e *Encoder) {
  1791. ee, esep := e.e, e.hh.hasElemSeparators()
  1792. ee.WriteArrayStart(len(v))
  1793. for _, v2 := range v {
  1794. if esep {
  1795. ee.WriteArrayElem()
  1796. }
  1797. ee.EncodeInt(int64(v2))
  1798. }
  1799. ee.WriteArrayEnd()
  1800. }
  1801. func (_ fastpathT) EncAsMapSliceIntV(v []int, e *Encoder) {
  1802. ee, esep := e.e, e.hh.hasElemSeparators()
  1803. if len(v)%2 == 1 {
  1804. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1805. return
  1806. }
  1807. ee.WriteMapStart(len(v) / 2)
  1808. for j, v2 := range v {
  1809. if esep {
  1810. if j%2 == 0 {
  1811. ee.WriteMapElemKey()
  1812. } else {
  1813. ee.WriteMapElemValue()
  1814. }
  1815. }
  1816. ee.EncodeInt(int64(v2))
  1817. }
  1818. ee.WriteMapEnd()
  1819. }
  1820. func (e *Encoder) fastpathEncSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  1821. if f.ti.mbs {
  1822. fastpathTV.EncAsMapSliceInt8V(rv2i(rv).([]int8), e)
  1823. } else {
  1824. fastpathTV.EncSliceInt8V(rv2i(rv).([]int8), e)
  1825. }
  1826. }
  1827. func (_ fastpathT) EncSliceInt8V(v []int8, e *Encoder) {
  1828. ee, esep := e.e, e.hh.hasElemSeparators()
  1829. ee.WriteArrayStart(len(v))
  1830. for _, v2 := range v {
  1831. if esep {
  1832. ee.WriteArrayElem()
  1833. }
  1834. ee.EncodeInt(int64(v2))
  1835. }
  1836. ee.WriteArrayEnd()
  1837. }
  1838. func (_ fastpathT) EncAsMapSliceInt8V(v []int8, e *Encoder) {
  1839. ee, esep := e.e, e.hh.hasElemSeparators()
  1840. if len(v)%2 == 1 {
  1841. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1842. return
  1843. }
  1844. ee.WriteMapStart(len(v) / 2)
  1845. for j, v2 := range v {
  1846. if esep {
  1847. if j%2 == 0 {
  1848. ee.WriteMapElemKey()
  1849. } else {
  1850. ee.WriteMapElemValue()
  1851. }
  1852. }
  1853. ee.EncodeInt(int64(v2))
  1854. }
  1855. ee.WriteMapEnd()
  1856. }
  1857. func (e *Encoder) fastpathEncSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  1858. if f.ti.mbs {
  1859. fastpathTV.EncAsMapSliceInt16V(rv2i(rv).([]int16), e)
  1860. } else {
  1861. fastpathTV.EncSliceInt16V(rv2i(rv).([]int16), e)
  1862. }
  1863. }
  1864. func (_ fastpathT) EncSliceInt16V(v []int16, e *Encoder) {
  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) EncAsMapSliceInt16V(v []int16, 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) fastpathEncSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  1895. if f.ti.mbs {
  1896. fastpathTV.EncAsMapSliceInt32V(rv2i(rv).([]int32), e)
  1897. } else {
  1898. fastpathTV.EncSliceInt32V(rv2i(rv).([]int32), e)
  1899. }
  1900. }
  1901. func (_ fastpathT) EncSliceInt32V(v []int32, e *Encoder) {
  1902. ee, esep := e.e, e.hh.hasElemSeparators()
  1903. ee.WriteArrayStart(len(v))
  1904. for _, v2 := range v {
  1905. if esep {
  1906. ee.WriteArrayElem()
  1907. }
  1908. ee.EncodeInt(int64(v2))
  1909. }
  1910. ee.WriteArrayEnd()
  1911. }
  1912. func (_ fastpathT) EncAsMapSliceInt32V(v []int32, e *Encoder) {
  1913. ee, esep := e.e, e.hh.hasElemSeparators()
  1914. if len(v)%2 == 1 {
  1915. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1916. return
  1917. }
  1918. ee.WriteMapStart(len(v) / 2)
  1919. for j, v2 := range v {
  1920. if esep {
  1921. if j%2 == 0 {
  1922. ee.WriteMapElemKey()
  1923. } else {
  1924. ee.WriteMapElemValue()
  1925. }
  1926. }
  1927. ee.EncodeInt(int64(v2))
  1928. }
  1929. ee.WriteMapEnd()
  1930. }
  1931. func (e *Encoder) fastpathEncSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  1932. if f.ti.mbs {
  1933. fastpathTV.EncAsMapSliceInt64V(rv2i(rv).([]int64), e)
  1934. } else {
  1935. fastpathTV.EncSliceInt64V(rv2i(rv).([]int64), e)
  1936. }
  1937. }
  1938. func (_ fastpathT) EncSliceInt64V(v []int64, e *Encoder) {
  1939. ee, esep := e.e, e.hh.hasElemSeparators()
  1940. ee.WriteArrayStart(len(v))
  1941. for _, v2 := range v {
  1942. if esep {
  1943. ee.WriteArrayElem()
  1944. }
  1945. ee.EncodeInt(int64(v2))
  1946. }
  1947. ee.WriteArrayEnd()
  1948. }
  1949. func (_ fastpathT) EncAsMapSliceInt64V(v []int64, e *Encoder) {
  1950. ee, esep := e.e, e.hh.hasElemSeparators()
  1951. if len(v)%2 == 1 {
  1952. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1953. return
  1954. }
  1955. ee.WriteMapStart(len(v) / 2)
  1956. for j, v2 := range v {
  1957. if esep {
  1958. if j%2 == 0 {
  1959. ee.WriteMapElemKey()
  1960. } else {
  1961. ee.WriteMapElemValue()
  1962. }
  1963. }
  1964. ee.EncodeInt(int64(v2))
  1965. }
  1966. ee.WriteMapEnd()
  1967. }
  1968. func (e *Encoder) fastpathEncSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  1969. if f.ti.mbs {
  1970. fastpathTV.EncAsMapSliceBoolV(rv2i(rv).([]bool), e)
  1971. } else {
  1972. fastpathTV.EncSliceBoolV(rv2i(rv).([]bool), e)
  1973. }
  1974. }
  1975. func (_ fastpathT) EncSliceBoolV(v []bool, e *Encoder) {
  1976. ee, esep := e.e, e.hh.hasElemSeparators()
  1977. ee.WriteArrayStart(len(v))
  1978. for _, v2 := range v {
  1979. if esep {
  1980. ee.WriteArrayElem()
  1981. }
  1982. ee.EncodeBool(v2)
  1983. }
  1984. ee.WriteArrayEnd()
  1985. }
  1986. func (_ fastpathT) EncAsMapSliceBoolV(v []bool, e *Encoder) {
  1987. ee, esep := e.e, e.hh.hasElemSeparators()
  1988. if len(v)%2 == 1 {
  1989. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1990. return
  1991. }
  1992. ee.WriteMapStart(len(v) / 2)
  1993. for j, v2 := range v {
  1994. if esep {
  1995. if j%2 == 0 {
  1996. ee.WriteMapElemKey()
  1997. } else {
  1998. ee.WriteMapElemValue()
  1999. }
  2000. }
  2001. ee.EncodeBool(v2)
  2002. }
  2003. ee.WriteMapEnd()
  2004. }
  2005. func (e *Encoder) fastpathEncMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  2006. fastpathTV.EncMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), e)
  2007. }
  2008. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, e *Encoder) {
  2009. ee, esep := e.e, e.hh.hasElemSeparators()
  2010. ee.WriteMapStart(len(v))
  2011. if e.h.Canonical {
  2012. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2013. e2 := NewEncoderBytes(&mksv, e.hh)
  2014. v2 := make([]bytesI, len(v))
  2015. var i, l int
  2016. var vp *bytesI
  2017. for k2, _ := range v {
  2018. l = len(mksv)
  2019. e2.MustEncode(k2)
  2020. vp = &v2[i]
  2021. vp.v = mksv[l:]
  2022. vp.i = k2
  2023. i++
  2024. }
  2025. sort.Sort(bytesISlice(v2))
  2026. for j := range v2 {
  2027. if esep {
  2028. ee.WriteMapElemKey()
  2029. }
  2030. e.asis(v2[j].v)
  2031. if esep {
  2032. ee.WriteMapElemValue()
  2033. }
  2034. e.encode(v[v2[j].i])
  2035. }
  2036. } else {
  2037. for k2, v2 := range v {
  2038. if esep {
  2039. ee.WriteMapElemKey()
  2040. }
  2041. e.encode(k2)
  2042. if esep {
  2043. ee.WriteMapElemValue()
  2044. }
  2045. e.encode(v2)
  2046. }
  2047. }
  2048. ee.WriteMapEnd()
  2049. }
  2050. func (e *Encoder) fastpathEncMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  2051. fastpathTV.EncMapIntfStringV(rv2i(rv).(map[interface{}]string), e)
  2052. }
  2053. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, e *Encoder) {
  2054. ee, esep := e.e, e.hh.hasElemSeparators()
  2055. ee.WriteMapStart(len(v))
  2056. if e.h.Canonical {
  2057. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2058. e2 := NewEncoderBytes(&mksv, e.hh)
  2059. v2 := make([]bytesI, len(v))
  2060. var i, l int
  2061. var vp *bytesI
  2062. for k2, _ := range v {
  2063. l = len(mksv)
  2064. e2.MustEncode(k2)
  2065. vp = &v2[i]
  2066. vp.v = mksv[l:]
  2067. vp.i = k2
  2068. i++
  2069. }
  2070. sort.Sort(bytesISlice(v2))
  2071. for j := range v2 {
  2072. if esep {
  2073. ee.WriteMapElemKey()
  2074. }
  2075. e.asis(v2[j].v)
  2076. if esep {
  2077. ee.WriteMapElemValue()
  2078. }
  2079. e.encode(v[v2[j].i])
  2080. }
  2081. } else {
  2082. for k2, v2 := range v {
  2083. if esep {
  2084. ee.WriteMapElemKey()
  2085. }
  2086. e.encode(k2)
  2087. if esep {
  2088. ee.WriteMapElemValue()
  2089. }
  2090. ee.EncodeString(c_UTF8, v2)
  2091. }
  2092. }
  2093. ee.WriteMapEnd()
  2094. }
  2095. func (e *Encoder) fastpathEncMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  2096. fastpathTV.EncMapIntfUintV(rv2i(rv).(map[interface{}]uint), e)
  2097. }
  2098. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, e *Encoder) {
  2099. ee, esep := e.e, e.hh.hasElemSeparators()
  2100. ee.WriteMapStart(len(v))
  2101. if e.h.Canonical {
  2102. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2103. e2 := NewEncoderBytes(&mksv, e.hh)
  2104. v2 := make([]bytesI, len(v))
  2105. var i, l int
  2106. var vp *bytesI
  2107. for k2, _ := range v {
  2108. l = len(mksv)
  2109. e2.MustEncode(k2)
  2110. vp = &v2[i]
  2111. vp.v = mksv[l:]
  2112. vp.i = k2
  2113. i++
  2114. }
  2115. sort.Sort(bytesISlice(v2))
  2116. for j := range v2 {
  2117. if esep {
  2118. ee.WriteMapElemKey()
  2119. }
  2120. e.asis(v2[j].v)
  2121. if esep {
  2122. ee.WriteMapElemValue()
  2123. }
  2124. e.encode(v[v2[j].i])
  2125. }
  2126. } else {
  2127. for k2, v2 := range v {
  2128. if esep {
  2129. ee.WriteMapElemKey()
  2130. }
  2131. e.encode(k2)
  2132. if esep {
  2133. ee.WriteMapElemValue()
  2134. }
  2135. ee.EncodeUint(uint64(v2))
  2136. }
  2137. }
  2138. ee.WriteMapEnd()
  2139. }
  2140. func (e *Encoder) fastpathEncMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  2141. fastpathTV.EncMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), e)
  2142. }
  2143. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, e *Encoder) {
  2144. ee, esep := e.e, e.hh.hasElemSeparators()
  2145. ee.WriteMapStart(len(v))
  2146. if e.h.Canonical {
  2147. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2148. e2 := NewEncoderBytes(&mksv, e.hh)
  2149. v2 := make([]bytesI, len(v))
  2150. var i, l int
  2151. var vp *bytesI
  2152. for k2, _ := range v {
  2153. l = len(mksv)
  2154. e2.MustEncode(k2)
  2155. vp = &v2[i]
  2156. vp.v = mksv[l:]
  2157. vp.i = k2
  2158. i++
  2159. }
  2160. sort.Sort(bytesISlice(v2))
  2161. for j := range v2 {
  2162. if esep {
  2163. ee.WriteMapElemKey()
  2164. }
  2165. e.asis(v2[j].v)
  2166. if esep {
  2167. ee.WriteMapElemValue()
  2168. }
  2169. e.encode(v[v2[j].i])
  2170. }
  2171. } else {
  2172. for k2, v2 := range v {
  2173. if esep {
  2174. ee.WriteMapElemKey()
  2175. }
  2176. e.encode(k2)
  2177. if esep {
  2178. ee.WriteMapElemValue()
  2179. }
  2180. ee.EncodeUint(uint64(v2))
  2181. }
  2182. }
  2183. ee.WriteMapEnd()
  2184. }
  2185. func (e *Encoder) fastpathEncMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  2186. fastpathTV.EncMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), e)
  2187. }
  2188. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, e *Encoder) {
  2189. ee, esep := e.e, e.hh.hasElemSeparators()
  2190. ee.WriteMapStart(len(v))
  2191. if e.h.Canonical {
  2192. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2193. e2 := NewEncoderBytes(&mksv, e.hh)
  2194. v2 := make([]bytesI, len(v))
  2195. var i, l int
  2196. var vp *bytesI
  2197. for k2, _ := range v {
  2198. l = len(mksv)
  2199. e2.MustEncode(k2)
  2200. vp = &v2[i]
  2201. vp.v = mksv[l:]
  2202. vp.i = k2
  2203. i++
  2204. }
  2205. sort.Sort(bytesISlice(v2))
  2206. for j := range v2 {
  2207. if esep {
  2208. ee.WriteMapElemKey()
  2209. }
  2210. e.asis(v2[j].v)
  2211. if esep {
  2212. ee.WriteMapElemValue()
  2213. }
  2214. e.encode(v[v2[j].i])
  2215. }
  2216. } else {
  2217. for k2, v2 := range v {
  2218. if esep {
  2219. ee.WriteMapElemKey()
  2220. }
  2221. e.encode(k2)
  2222. if esep {
  2223. ee.WriteMapElemValue()
  2224. }
  2225. ee.EncodeUint(uint64(v2))
  2226. }
  2227. }
  2228. ee.WriteMapEnd()
  2229. }
  2230. func (e *Encoder) fastpathEncMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  2231. fastpathTV.EncMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), e)
  2232. }
  2233. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, e *Encoder) {
  2234. ee, esep := e.e, e.hh.hasElemSeparators()
  2235. ee.WriteMapStart(len(v))
  2236. if e.h.Canonical {
  2237. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2238. e2 := NewEncoderBytes(&mksv, e.hh)
  2239. v2 := make([]bytesI, len(v))
  2240. var i, l int
  2241. var vp *bytesI
  2242. for k2, _ := range v {
  2243. l = len(mksv)
  2244. e2.MustEncode(k2)
  2245. vp = &v2[i]
  2246. vp.v = mksv[l:]
  2247. vp.i = k2
  2248. i++
  2249. }
  2250. sort.Sort(bytesISlice(v2))
  2251. for j := range v2 {
  2252. if esep {
  2253. ee.WriteMapElemKey()
  2254. }
  2255. e.asis(v2[j].v)
  2256. if esep {
  2257. ee.WriteMapElemValue()
  2258. }
  2259. e.encode(v[v2[j].i])
  2260. }
  2261. } else {
  2262. for k2, v2 := range v {
  2263. if esep {
  2264. ee.WriteMapElemKey()
  2265. }
  2266. e.encode(k2)
  2267. if esep {
  2268. ee.WriteMapElemValue()
  2269. }
  2270. ee.EncodeUint(uint64(v2))
  2271. }
  2272. }
  2273. ee.WriteMapEnd()
  2274. }
  2275. func (e *Encoder) fastpathEncMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  2276. fastpathTV.EncMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), e)
  2277. }
  2278. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, e *Encoder) {
  2279. ee, esep := e.e, e.hh.hasElemSeparators()
  2280. ee.WriteMapStart(len(v))
  2281. if e.h.Canonical {
  2282. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2283. e2 := NewEncoderBytes(&mksv, e.hh)
  2284. v2 := make([]bytesI, len(v))
  2285. var i, l int
  2286. var vp *bytesI
  2287. for k2, _ := range v {
  2288. l = len(mksv)
  2289. e2.MustEncode(k2)
  2290. vp = &v2[i]
  2291. vp.v = mksv[l:]
  2292. vp.i = k2
  2293. i++
  2294. }
  2295. sort.Sort(bytesISlice(v2))
  2296. for j := range v2 {
  2297. if esep {
  2298. ee.WriteMapElemKey()
  2299. }
  2300. e.asis(v2[j].v)
  2301. if esep {
  2302. ee.WriteMapElemValue()
  2303. }
  2304. e.encode(v[v2[j].i])
  2305. }
  2306. } else {
  2307. for k2, v2 := range v {
  2308. if esep {
  2309. ee.WriteMapElemKey()
  2310. }
  2311. e.encode(k2)
  2312. if esep {
  2313. ee.WriteMapElemValue()
  2314. }
  2315. ee.EncodeUint(uint64(v2))
  2316. }
  2317. }
  2318. ee.WriteMapEnd()
  2319. }
  2320. func (e *Encoder) fastpathEncMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  2321. fastpathTV.EncMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), e)
  2322. }
  2323. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, e *Encoder) {
  2324. ee, esep := e.e, e.hh.hasElemSeparators()
  2325. ee.WriteMapStart(len(v))
  2326. if e.h.Canonical {
  2327. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2328. e2 := NewEncoderBytes(&mksv, e.hh)
  2329. v2 := make([]bytesI, len(v))
  2330. var i, l int
  2331. var vp *bytesI
  2332. for k2, _ := range v {
  2333. l = len(mksv)
  2334. e2.MustEncode(k2)
  2335. vp = &v2[i]
  2336. vp.v = mksv[l:]
  2337. vp.i = k2
  2338. i++
  2339. }
  2340. sort.Sort(bytesISlice(v2))
  2341. for j := range v2 {
  2342. if esep {
  2343. ee.WriteMapElemKey()
  2344. }
  2345. e.asis(v2[j].v)
  2346. if esep {
  2347. ee.WriteMapElemValue()
  2348. }
  2349. e.encode(v[v2[j].i])
  2350. }
  2351. } else {
  2352. for k2, v2 := range v {
  2353. if esep {
  2354. ee.WriteMapElemKey()
  2355. }
  2356. e.encode(k2)
  2357. if esep {
  2358. ee.WriteMapElemValue()
  2359. }
  2360. e.encode(v2)
  2361. }
  2362. }
  2363. ee.WriteMapEnd()
  2364. }
  2365. func (e *Encoder) fastpathEncMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  2366. fastpathTV.EncMapIntfIntV(rv2i(rv).(map[interface{}]int), e)
  2367. }
  2368. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, e *Encoder) {
  2369. ee, esep := e.e, e.hh.hasElemSeparators()
  2370. ee.WriteMapStart(len(v))
  2371. if e.h.Canonical {
  2372. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2373. e2 := NewEncoderBytes(&mksv, e.hh)
  2374. v2 := make([]bytesI, len(v))
  2375. var i, l int
  2376. var vp *bytesI
  2377. for k2, _ := range v {
  2378. l = len(mksv)
  2379. e2.MustEncode(k2)
  2380. vp = &v2[i]
  2381. vp.v = mksv[l:]
  2382. vp.i = k2
  2383. i++
  2384. }
  2385. sort.Sort(bytesISlice(v2))
  2386. for j := range v2 {
  2387. if esep {
  2388. ee.WriteMapElemKey()
  2389. }
  2390. e.asis(v2[j].v)
  2391. if esep {
  2392. ee.WriteMapElemValue()
  2393. }
  2394. e.encode(v[v2[j].i])
  2395. }
  2396. } else {
  2397. for k2, v2 := range v {
  2398. if esep {
  2399. ee.WriteMapElemKey()
  2400. }
  2401. e.encode(k2)
  2402. if esep {
  2403. ee.WriteMapElemValue()
  2404. }
  2405. ee.EncodeInt(int64(v2))
  2406. }
  2407. }
  2408. ee.WriteMapEnd()
  2409. }
  2410. func (e *Encoder) fastpathEncMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  2411. fastpathTV.EncMapIntfInt8V(rv2i(rv).(map[interface{}]int8), e)
  2412. }
  2413. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, e *Encoder) {
  2414. ee, esep := e.e, e.hh.hasElemSeparators()
  2415. ee.WriteMapStart(len(v))
  2416. if e.h.Canonical {
  2417. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2418. e2 := NewEncoderBytes(&mksv, e.hh)
  2419. v2 := make([]bytesI, len(v))
  2420. var i, l int
  2421. var vp *bytesI
  2422. for k2, _ := range v {
  2423. l = len(mksv)
  2424. e2.MustEncode(k2)
  2425. vp = &v2[i]
  2426. vp.v = mksv[l:]
  2427. vp.i = k2
  2428. i++
  2429. }
  2430. sort.Sort(bytesISlice(v2))
  2431. for j := range v2 {
  2432. if esep {
  2433. ee.WriteMapElemKey()
  2434. }
  2435. e.asis(v2[j].v)
  2436. if esep {
  2437. ee.WriteMapElemValue()
  2438. }
  2439. e.encode(v[v2[j].i])
  2440. }
  2441. } else {
  2442. for k2, v2 := range v {
  2443. if esep {
  2444. ee.WriteMapElemKey()
  2445. }
  2446. e.encode(k2)
  2447. if esep {
  2448. ee.WriteMapElemValue()
  2449. }
  2450. ee.EncodeInt(int64(v2))
  2451. }
  2452. }
  2453. ee.WriteMapEnd()
  2454. }
  2455. func (e *Encoder) fastpathEncMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  2456. fastpathTV.EncMapIntfInt16V(rv2i(rv).(map[interface{}]int16), e)
  2457. }
  2458. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, e *Encoder) {
  2459. ee, esep := e.e, e.hh.hasElemSeparators()
  2460. ee.WriteMapStart(len(v))
  2461. if e.h.Canonical {
  2462. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2463. e2 := NewEncoderBytes(&mksv, e.hh)
  2464. v2 := make([]bytesI, len(v))
  2465. var i, l int
  2466. var vp *bytesI
  2467. for k2, _ := range v {
  2468. l = len(mksv)
  2469. e2.MustEncode(k2)
  2470. vp = &v2[i]
  2471. vp.v = mksv[l:]
  2472. vp.i = k2
  2473. i++
  2474. }
  2475. sort.Sort(bytesISlice(v2))
  2476. for j := range v2 {
  2477. if esep {
  2478. ee.WriteMapElemKey()
  2479. }
  2480. e.asis(v2[j].v)
  2481. if esep {
  2482. ee.WriteMapElemValue()
  2483. }
  2484. e.encode(v[v2[j].i])
  2485. }
  2486. } else {
  2487. for k2, v2 := range v {
  2488. if esep {
  2489. ee.WriteMapElemKey()
  2490. }
  2491. e.encode(k2)
  2492. if esep {
  2493. ee.WriteMapElemValue()
  2494. }
  2495. ee.EncodeInt(int64(v2))
  2496. }
  2497. }
  2498. ee.WriteMapEnd()
  2499. }
  2500. func (e *Encoder) fastpathEncMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  2501. fastpathTV.EncMapIntfInt32V(rv2i(rv).(map[interface{}]int32), e)
  2502. }
  2503. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, e *Encoder) {
  2504. ee, esep := e.e, e.hh.hasElemSeparators()
  2505. ee.WriteMapStart(len(v))
  2506. if e.h.Canonical {
  2507. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2508. e2 := NewEncoderBytes(&mksv, e.hh)
  2509. v2 := make([]bytesI, len(v))
  2510. var i, l int
  2511. var vp *bytesI
  2512. for k2, _ := range v {
  2513. l = len(mksv)
  2514. e2.MustEncode(k2)
  2515. vp = &v2[i]
  2516. vp.v = mksv[l:]
  2517. vp.i = k2
  2518. i++
  2519. }
  2520. sort.Sort(bytesISlice(v2))
  2521. for j := range v2 {
  2522. if esep {
  2523. ee.WriteMapElemKey()
  2524. }
  2525. e.asis(v2[j].v)
  2526. if esep {
  2527. ee.WriteMapElemValue()
  2528. }
  2529. e.encode(v[v2[j].i])
  2530. }
  2531. } else {
  2532. for k2, v2 := range v {
  2533. if esep {
  2534. ee.WriteMapElemKey()
  2535. }
  2536. e.encode(k2)
  2537. if esep {
  2538. ee.WriteMapElemValue()
  2539. }
  2540. ee.EncodeInt(int64(v2))
  2541. }
  2542. }
  2543. ee.WriteMapEnd()
  2544. }
  2545. func (e *Encoder) fastpathEncMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  2546. fastpathTV.EncMapIntfInt64V(rv2i(rv).(map[interface{}]int64), e)
  2547. }
  2548. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, e *Encoder) {
  2549. ee, esep := e.e, e.hh.hasElemSeparators()
  2550. ee.WriteMapStart(len(v))
  2551. if e.h.Canonical {
  2552. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2553. e2 := NewEncoderBytes(&mksv, e.hh)
  2554. v2 := make([]bytesI, len(v))
  2555. var i, l int
  2556. var vp *bytesI
  2557. for k2, _ := range v {
  2558. l = len(mksv)
  2559. e2.MustEncode(k2)
  2560. vp = &v2[i]
  2561. vp.v = mksv[l:]
  2562. vp.i = k2
  2563. i++
  2564. }
  2565. sort.Sort(bytesISlice(v2))
  2566. for j := range v2 {
  2567. if esep {
  2568. ee.WriteMapElemKey()
  2569. }
  2570. e.asis(v2[j].v)
  2571. if esep {
  2572. ee.WriteMapElemValue()
  2573. }
  2574. e.encode(v[v2[j].i])
  2575. }
  2576. } else {
  2577. for k2, v2 := range v {
  2578. if esep {
  2579. ee.WriteMapElemKey()
  2580. }
  2581. e.encode(k2)
  2582. if esep {
  2583. ee.WriteMapElemValue()
  2584. }
  2585. ee.EncodeInt(int64(v2))
  2586. }
  2587. }
  2588. ee.WriteMapEnd()
  2589. }
  2590. func (e *Encoder) fastpathEncMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  2591. fastpathTV.EncMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), e)
  2592. }
  2593. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, e *Encoder) {
  2594. ee, esep := e.e, e.hh.hasElemSeparators()
  2595. ee.WriteMapStart(len(v))
  2596. if e.h.Canonical {
  2597. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2598. e2 := NewEncoderBytes(&mksv, e.hh)
  2599. v2 := make([]bytesI, len(v))
  2600. var i, l int
  2601. var vp *bytesI
  2602. for k2, _ := range v {
  2603. l = len(mksv)
  2604. e2.MustEncode(k2)
  2605. vp = &v2[i]
  2606. vp.v = mksv[l:]
  2607. vp.i = k2
  2608. i++
  2609. }
  2610. sort.Sort(bytesISlice(v2))
  2611. for j := range v2 {
  2612. if esep {
  2613. ee.WriteMapElemKey()
  2614. }
  2615. e.asis(v2[j].v)
  2616. if esep {
  2617. ee.WriteMapElemValue()
  2618. }
  2619. e.encode(v[v2[j].i])
  2620. }
  2621. } else {
  2622. for k2, v2 := range v {
  2623. if esep {
  2624. ee.WriteMapElemKey()
  2625. }
  2626. e.encode(k2)
  2627. if esep {
  2628. ee.WriteMapElemValue()
  2629. }
  2630. ee.EncodeFloat32(v2)
  2631. }
  2632. }
  2633. ee.WriteMapEnd()
  2634. }
  2635. func (e *Encoder) fastpathEncMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  2636. fastpathTV.EncMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), e)
  2637. }
  2638. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, e *Encoder) {
  2639. ee, esep := e.e, e.hh.hasElemSeparators()
  2640. ee.WriteMapStart(len(v))
  2641. if e.h.Canonical {
  2642. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2643. e2 := NewEncoderBytes(&mksv, e.hh)
  2644. v2 := make([]bytesI, len(v))
  2645. var i, l int
  2646. var vp *bytesI
  2647. for k2, _ := range v {
  2648. l = len(mksv)
  2649. e2.MustEncode(k2)
  2650. vp = &v2[i]
  2651. vp.v = mksv[l:]
  2652. vp.i = k2
  2653. i++
  2654. }
  2655. sort.Sort(bytesISlice(v2))
  2656. for j := range v2 {
  2657. if esep {
  2658. ee.WriteMapElemKey()
  2659. }
  2660. e.asis(v2[j].v)
  2661. if esep {
  2662. ee.WriteMapElemValue()
  2663. }
  2664. e.encode(v[v2[j].i])
  2665. }
  2666. } else {
  2667. for k2, v2 := range v {
  2668. if esep {
  2669. ee.WriteMapElemKey()
  2670. }
  2671. e.encode(k2)
  2672. if esep {
  2673. ee.WriteMapElemValue()
  2674. }
  2675. ee.EncodeFloat64(v2)
  2676. }
  2677. }
  2678. ee.WriteMapEnd()
  2679. }
  2680. func (e *Encoder) fastpathEncMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  2681. fastpathTV.EncMapIntfBoolV(rv2i(rv).(map[interface{}]bool), e)
  2682. }
  2683. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, e *Encoder) {
  2684. ee, esep := e.e, e.hh.hasElemSeparators()
  2685. ee.WriteMapStart(len(v))
  2686. if e.h.Canonical {
  2687. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2688. e2 := NewEncoderBytes(&mksv, e.hh)
  2689. v2 := make([]bytesI, len(v))
  2690. var i, l int
  2691. var vp *bytesI
  2692. for k2, _ := range v {
  2693. l = len(mksv)
  2694. e2.MustEncode(k2)
  2695. vp = &v2[i]
  2696. vp.v = mksv[l:]
  2697. vp.i = k2
  2698. i++
  2699. }
  2700. sort.Sort(bytesISlice(v2))
  2701. for j := range v2 {
  2702. if esep {
  2703. ee.WriteMapElemKey()
  2704. }
  2705. e.asis(v2[j].v)
  2706. if esep {
  2707. ee.WriteMapElemValue()
  2708. }
  2709. e.encode(v[v2[j].i])
  2710. }
  2711. } else {
  2712. for k2, v2 := range v {
  2713. if esep {
  2714. ee.WriteMapElemKey()
  2715. }
  2716. e.encode(k2)
  2717. if esep {
  2718. ee.WriteMapElemValue()
  2719. }
  2720. ee.EncodeBool(v2)
  2721. }
  2722. }
  2723. ee.WriteMapEnd()
  2724. }
  2725. func (e *Encoder) fastpathEncMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  2726. fastpathTV.EncMapStringIntfV(rv2i(rv).(map[string]interface{}), e)
  2727. }
  2728. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, e *Encoder) {
  2729. ee, esep := e.e, e.hh.hasElemSeparators()
  2730. ee.WriteMapStart(len(v))
  2731. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2732. if e.h.Canonical {
  2733. v2 := make([]string, len(v))
  2734. var i int
  2735. for k, _ := range v {
  2736. v2[i] = string(k)
  2737. i++
  2738. }
  2739. sort.Sort(stringSlice(v2))
  2740. for _, k2 := range v2 {
  2741. if esep {
  2742. ee.WriteMapElemKey()
  2743. }
  2744. if asSymbols {
  2745. ee.EncodeSymbol(k2)
  2746. } else {
  2747. ee.EncodeString(c_UTF8, k2)
  2748. }
  2749. if esep {
  2750. ee.WriteMapElemValue()
  2751. }
  2752. e.encode(v[string(k2)])
  2753. }
  2754. } else {
  2755. for k2, v2 := range v {
  2756. if esep {
  2757. ee.WriteMapElemKey()
  2758. }
  2759. if asSymbols {
  2760. ee.EncodeSymbol(k2)
  2761. } else {
  2762. ee.EncodeString(c_UTF8, k2)
  2763. }
  2764. if esep {
  2765. ee.WriteMapElemValue()
  2766. }
  2767. e.encode(v2)
  2768. }
  2769. }
  2770. ee.WriteMapEnd()
  2771. }
  2772. func (e *Encoder) fastpathEncMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  2773. fastpathTV.EncMapStringStringV(rv2i(rv).(map[string]string), e)
  2774. }
  2775. func (_ fastpathT) EncMapStringStringV(v map[string]string, e *Encoder) {
  2776. ee, esep := e.e, e.hh.hasElemSeparators()
  2777. ee.WriteMapStart(len(v))
  2778. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2779. if e.h.Canonical {
  2780. v2 := make([]string, len(v))
  2781. var i int
  2782. for k, _ := range v {
  2783. v2[i] = string(k)
  2784. i++
  2785. }
  2786. sort.Sort(stringSlice(v2))
  2787. for _, k2 := range v2 {
  2788. if esep {
  2789. ee.WriteMapElemKey()
  2790. }
  2791. if asSymbols {
  2792. ee.EncodeSymbol(k2)
  2793. } else {
  2794. ee.EncodeString(c_UTF8, k2)
  2795. }
  2796. if esep {
  2797. ee.WriteMapElemValue()
  2798. }
  2799. ee.EncodeString(c_UTF8, v[string(k2)])
  2800. }
  2801. } else {
  2802. for k2, v2 := range v {
  2803. if esep {
  2804. ee.WriteMapElemKey()
  2805. }
  2806. if asSymbols {
  2807. ee.EncodeSymbol(k2)
  2808. } else {
  2809. ee.EncodeString(c_UTF8, k2)
  2810. }
  2811. if esep {
  2812. ee.WriteMapElemValue()
  2813. }
  2814. ee.EncodeString(c_UTF8, v2)
  2815. }
  2816. }
  2817. ee.WriteMapEnd()
  2818. }
  2819. func (e *Encoder) fastpathEncMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  2820. fastpathTV.EncMapStringUintV(rv2i(rv).(map[string]uint), e)
  2821. }
  2822. func (_ fastpathT) EncMapStringUintV(v map[string]uint, e *Encoder) {
  2823. ee, esep := e.e, e.hh.hasElemSeparators()
  2824. ee.WriteMapStart(len(v))
  2825. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2826. if e.h.Canonical {
  2827. v2 := make([]string, len(v))
  2828. var i int
  2829. for k, _ := range v {
  2830. v2[i] = string(k)
  2831. i++
  2832. }
  2833. sort.Sort(stringSlice(v2))
  2834. for _, k2 := range v2 {
  2835. if esep {
  2836. ee.WriteMapElemKey()
  2837. }
  2838. if asSymbols {
  2839. ee.EncodeSymbol(k2)
  2840. } else {
  2841. ee.EncodeString(c_UTF8, k2)
  2842. }
  2843. if esep {
  2844. ee.WriteMapElemValue()
  2845. }
  2846. ee.EncodeUint(uint64(v[string(k2)]))
  2847. }
  2848. } else {
  2849. for k2, v2 := range v {
  2850. if esep {
  2851. ee.WriteMapElemKey()
  2852. }
  2853. if asSymbols {
  2854. ee.EncodeSymbol(k2)
  2855. } else {
  2856. ee.EncodeString(c_UTF8, k2)
  2857. }
  2858. if esep {
  2859. ee.WriteMapElemValue()
  2860. }
  2861. ee.EncodeUint(uint64(v2))
  2862. }
  2863. }
  2864. ee.WriteMapEnd()
  2865. }
  2866. func (e *Encoder) fastpathEncMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  2867. fastpathTV.EncMapStringUint8V(rv2i(rv).(map[string]uint8), e)
  2868. }
  2869. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, e *Encoder) {
  2870. ee, esep := e.e, e.hh.hasElemSeparators()
  2871. ee.WriteMapStart(len(v))
  2872. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2873. if e.h.Canonical {
  2874. v2 := make([]string, len(v))
  2875. var i int
  2876. for k, _ := range v {
  2877. v2[i] = string(k)
  2878. i++
  2879. }
  2880. sort.Sort(stringSlice(v2))
  2881. for _, k2 := range v2 {
  2882. if esep {
  2883. ee.WriteMapElemKey()
  2884. }
  2885. if asSymbols {
  2886. ee.EncodeSymbol(k2)
  2887. } else {
  2888. ee.EncodeString(c_UTF8, k2)
  2889. }
  2890. if esep {
  2891. ee.WriteMapElemValue()
  2892. }
  2893. ee.EncodeUint(uint64(v[string(k2)]))
  2894. }
  2895. } else {
  2896. for k2, v2 := range v {
  2897. if esep {
  2898. ee.WriteMapElemKey()
  2899. }
  2900. if asSymbols {
  2901. ee.EncodeSymbol(k2)
  2902. } else {
  2903. ee.EncodeString(c_UTF8, k2)
  2904. }
  2905. if esep {
  2906. ee.WriteMapElemValue()
  2907. }
  2908. ee.EncodeUint(uint64(v2))
  2909. }
  2910. }
  2911. ee.WriteMapEnd()
  2912. }
  2913. func (e *Encoder) fastpathEncMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  2914. fastpathTV.EncMapStringUint16V(rv2i(rv).(map[string]uint16), e)
  2915. }
  2916. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, e *Encoder) {
  2917. ee, esep := e.e, e.hh.hasElemSeparators()
  2918. ee.WriteMapStart(len(v))
  2919. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2920. if e.h.Canonical {
  2921. v2 := make([]string, len(v))
  2922. var i int
  2923. for k, _ := range v {
  2924. v2[i] = string(k)
  2925. i++
  2926. }
  2927. sort.Sort(stringSlice(v2))
  2928. for _, k2 := range v2 {
  2929. if esep {
  2930. ee.WriteMapElemKey()
  2931. }
  2932. if asSymbols {
  2933. ee.EncodeSymbol(k2)
  2934. } else {
  2935. ee.EncodeString(c_UTF8, k2)
  2936. }
  2937. if esep {
  2938. ee.WriteMapElemValue()
  2939. }
  2940. ee.EncodeUint(uint64(v[string(k2)]))
  2941. }
  2942. } else {
  2943. for k2, v2 := range v {
  2944. if esep {
  2945. ee.WriteMapElemKey()
  2946. }
  2947. if asSymbols {
  2948. ee.EncodeSymbol(k2)
  2949. } else {
  2950. ee.EncodeString(c_UTF8, k2)
  2951. }
  2952. if esep {
  2953. ee.WriteMapElemValue()
  2954. }
  2955. ee.EncodeUint(uint64(v2))
  2956. }
  2957. }
  2958. ee.WriteMapEnd()
  2959. }
  2960. func (e *Encoder) fastpathEncMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  2961. fastpathTV.EncMapStringUint32V(rv2i(rv).(map[string]uint32), e)
  2962. }
  2963. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, e *Encoder) {
  2964. ee, esep := e.e, e.hh.hasElemSeparators()
  2965. ee.WriteMapStart(len(v))
  2966. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2967. if e.h.Canonical {
  2968. v2 := make([]string, len(v))
  2969. var i int
  2970. for k, _ := range v {
  2971. v2[i] = string(k)
  2972. i++
  2973. }
  2974. sort.Sort(stringSlice(v2))
  2975. for _, k2 := range v2 {
  2976. if esep {
  2977. ee.WriteMapElemKey()
  2978. }
  2979. if asSymbols {
  2980. ee.EncodeSymbol(k2)
  2981. } else {
  2982. ee.EncodeString(c_UTF8, k2)
  2983. }
  2984. if esep {
  2985. ee.WriteMapElemValue()
  2986. }
  2987. ee.EncodeUint(uint64(v[string(k2)]))
  2988. }
  2989. } else {
  2990. for k2, v2 := range v {
  2991. if esep {
  2992. ee.WriteMapElemKey()
  2993. }
  2994. if asSymbols {
  2995. ee.EncodeSymbol(k2)
  2996. } else {
  2997. ee.EncodeString(c_UTF8, k2)
  2998. }
  2999. if esep {
  3000. ee.WriteMapElemValue()
  3001. }
  3002. ee.EncodeUint(uint64(v2))
  3003. }
  3004. }
  3005. ee.WriteMapEnd()
  3006. }
  3007. func (e *Encoder) fastpathEncMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  3008. fastpathTV.EncMapStringUint64V(rv2i(rv).(map[string]uint64), e)
  3009. }
  3010. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, e *Encoder) {
  3011. ee, esep := e.e, e.hh.hasElemSeparators()
  3012. ee.WriteMapStart(len(v))
  3013. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3014. if e.h.Canonical {
  3015. v2 := make([]string, len(v))
  3016. var i int
  3017. for k, _ := range v {
  3018. v2[i] = string(k)
  3019. i++
  3020. }
  3021. sort.Sort(stringSlice(v2))
  3022. for _, k2 := range v2 {
  3023. if esep {
  3024. ee.WriteMapElemKey()
  3025. }
  3026. if asSymbols {
  3027. ee.EncodeSymbol(k2)
  3028. } else {
  3029. ee.EncodeString(c_UTF8, k2)
  3030. }
  3031. if esep {
  3032. ee.WriteMapElemValue()
  3033. }
  3034. ee.EncodeUint(uint64(v[string(k2)]))
  3035. }
  3036. } else {
  3037. for k2, v2 := range v {
  3038. if esep {
  3039. ee.WriteMapElemKey()
  3040. }
  3041. if asSymbols {
  3042. ee.EncodeSymbol(k2)
  3043. } else {
  3044. ee.EncodeString(c_UTF8, k2)
  3045. }
  3046. if esep {
  3047. ee.WriteMapElemValue()
  3048. }
  3049. ee.EncodeUint(uint64(v2))
  3050. }
  3051. }
  3052. ee.WriteMapEnd()
  3053. }
  3054. func (e *Encoder) fastpathEncMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  3055. fastpathTV.EncMapStringUintptrV(rv2i(rv).(map[string]uintptr), e)
  3056. }
  3057. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, e *Encoder) {
  3058. ee, esep := e.e, e.hh.hasElemSeparators()
  3059. ee.WriteMapStart(len(v))
  3060. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3061. if e.h.Canonical {
  3062. v2 := make([]string, len(v))
  3063. var i int
  3064. for k, _ := range v {
  3065. v2[i] = string(k)
  3066. i++
  3067. }
  3068. sort.Sort(stringSlice(v2))
  3069. for _, k2 := range v2 {
  3070. if esep {
  3071. ee.WriteMapElemKey()
  3072. }
  3073. if asSymbols {
  3074. ee.EncodeSymbol(k2)
  3075. } else {
  3076. ee.EncodeString(c_UTF8, k2)
  3077. }
  3078. if esep {
  3079. ee.WriteMapElemValue()
  3080. }
  3081. e.encode(v[string(k2)])
  3082. }
  3083. } else {
  3084. for k2, v2 := range v {
  3085. if esep {
  3086. ee.WriteMapElemKey()
  3087. }
  3088. if asSymbols {
  3089. ee.EncodeSymbol(k2)
  3090. } else {
  3091. ee.EncodeString(c_UTF8, k2)
  3092. }
  3093. if esep {
  3094. ee.WriteMapElemValue()
  3095. }
  3096. e.encode(v2)
  3097. }
  3098. }
  3099. ee.WriteMapEnd()
  3100. }
  3101. func (e *Encoder) fastpathEncMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  3102. fastpathTV.EncMapStringIntV(rv2i(rv).(map[string]int), e)
  3103. }
  3104. func (_ fastpathT) EncMapStringIntV(v map[string]int, e *Encoder) {
  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.EncodeInt(int64(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.EncodeInt(int64(v2))
  3144. }
  3145. }
  3146. ee.WriteMapEnd()
  3147. }
  3148. func (e *Encoder) fastpathEncMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  3149. fastpathTV.EncMapStringInt8V(rv2i(rv).(map[string]int8), e)
  3150. }
  3151. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, e *Encoder) {
  3152. ee, esep := e.e, e.hh.hasElemSeparators()
  3153. ee.WriteMapStart(len(v))
  3154. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3155. if e.h.Canonical {
  3156. v2 := make([]string, len(v))
  3157. var i int
  3158. for k, _ := range v {
  3159. v2[i] = string(k)
  3160. i++
  3161. }
  3162. sort.Sort(stringSlice(v2))
  3163. for _, k2 := range v2 {
  3164. if esep {
  3165. ee.WriteMapElemKey()
  3166. }
  3167. if asSymbols {
  3168. ee.EncodeSymbol(k2)
  3169. } else {
  3170. ee.EncodeString(c_UTF8, k2)
  3171. }
  3172. if esep {
  3173. ee.WriteMapElemValue()
  3174. }
  3175. ee.EncodeInt(int64(v[string(k2)]))
  3176. }
  3177. } else {
  3178. for k2, v2 := range v {
  3179. if esep {
  3180. ee.WriteMapElemKey()
  3181. }
  3182. if asSymbols {
  3183. ee.EncodeSymbol(k2)
  3184. } else {
  3185. ee.EncodeString(c_UTF8, k2)
  3186. }
  3187. if esep {
  3188. ee.WriteMapElemValue()
  3189. }
  3190. ee.EncodeInt(int64(v2))
  3191. }
  3192. }
  3193. ee.WriteMapEnd()
  3194. }
  3195. func (e *Encoder) fastpathEncMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  3196. fastpathTV.EncMapStringInt16V(rv2i(rv).(map[string]int16), e)
  3197. }
  3198. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, e *Encoder) {
  3199. ee, esep := e.e, e.hh.hasElemSeparators()
  3200. ee.WriteMapStart(len(v))
  3201. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3202. if e.h.Canonical {
  3203. v2 := make([]string, len(v))
  3204. var i int
  3205. for k, _ := range v {
  3206. v2[i] = string(k)
  3207. i++
  3208. }
  3209. sort.Sort(stringSlice(v2))
  3210. for _, k2 := range v2 {
  3211. if esep {
  3212. ee.WriteMapElemKey()
  3213. }
  3214. if asSymbols {
  3215. ee.EncodeSymbol(k2)
  3216. } else {
  3217. ee.EncodeString(c_UTF8, k2)
  3218. }
  3219. if esep {
  3220. ee.WriteMapElemValue()
  3221. }
  3222. ee.EncodeInt(int64(v[string(k2)]))
  3223. }
  3224. } else {
  3225. for k2, v2 := range v {
  3226. if esep {
  3227. ee.WriteMapElemKey()
  3228. }
  3229. if asSymbols {
  3230. ee.EncodeSymbol(k2)
  3231. } else {
  3232. ee.EncodeString(c_UTF8, k2)
  3233. }
  3234. if esep {
  3235. ee.WriteMapElemValue()
  3236. }
  3237. ee.EncodeInt(int64(v2))
  3238. }
  3239. }
  3240. ee.WriteMapEnd()
  3241. }
  3242. func (e *Encoder) fastpathEncMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  3243. fastpathTV.EncMapStringInt32V(rv2i(rv).(map[string]int32), e)
  3244. }
  3245. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, e *Encoder) {
  3246. ee, esep := e.e, e.hh.hasElemSeparators()
  3247. ee.WriteMapStart(len(v))
  3248. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3249. if e.h.Canonical {
  3250. v2 := make([]string, len(v))
  3251. var i int
  3252. for k, _ := range v {
  3253. v2[i] = string(k)
  3254. i++
  3255. }
  3256. sort.Sort(stringSlice(v2))
  3257. for _, k2 := range v2 {
  3258. if esep {
  3259. ee.WriteMapElemKey()
  3260. }
  3261. if asSymbols {
  3262. ee.EncodeSymbol(k2)
  3263. } else {
  3264. ee.EncodeString(c_UTF8, k2)
  3265. }
  3266. if esep {
  3267. ee.WriteMapElemValue()
  3268. }
  3269. ee.EncodeInt(int64(v[string(k2)]))
  3270. }
  3271. } else {
  3272. for k2, v2 := range v {
  3273. if esep {
  3274. ee.WriteMapElemKey()
  3275. }
  3276. if asSymbols {
  3277. ee.EncodeSymbol(k2)
  3278. } else {
  3279. ee.EncodeString(c_UTF8, k2)
  3280. }
  3281. if esep {
  3282. ee.WriteMapElemValue()
  3283. }
  3284. ee.EncodeInt(int64(v2))
  3285. }
  3286. }
  3287. ee.WriteMapEnd()
  3288. }
  3289. func (e *Encoder) fastpathEncMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  3290. fastpathTV.EncMapStringInt64V(rv2i(rv).(map[string]int64), e)
  3291. }
  3292. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, e *Encoder) {
  3293. ee, esep := e.e, e.hh.hasElemSeparators()
  3294. ee.WriteMapStart(len(v))
  3295. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3296. if e.h.Canonical {
  3297. v2 := make([]string, len(v))
  3298. var i int
  3299. for k, _ := range v {
  3300. v2[i] = string(k)
  3301. i++
  3302. }
  3303. sort.Sort(stringSlice(v2))
  3304. for _, k2 := range v2 {
  3305. if esep {
  3306. ee.WriteMapElemKey()
  3307. }
  3308. if asSymbols {
  3309. ee.EncodeSymbol(k2)
  3310. } else {
  3311. ee.EncodeString(c_UTF8, k2)
  3312. }
  3313. if esep {
  3314. ee.WriteMapElemValue()
  3315. }
  3316. ee.EncodeInt(int64(v[string(k2)]))
  3317. }
  3318. } else {
  3319. for k2, v2 := range v {
  3320. if esep {
  3321. ee.WriteMapElemKey()
  3322. }
  3323. if asSymbols {
  3324. ee.EncodeSymbol(k2)
  3325. } else {
  3326. ee.EncodeString(c_UTF8, k2)
  3327. }
  3328. if esep {
  3329. ee.WriteMapElemValue()
  3330. }
  3331. ee.EncodeInt(int64(v2))
  3332. }
  3333. }
  3334. ee.WriteMapEnd()
  3335. }
  3336. func (e *Encoder) fastpathEncMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  3337. fastpathTV.EncMapStringFloat32V(rv2i(rv).(map[string]float32), e)
  3338. }
  3339. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, e *Encoder) {
  3340. ee, esep := e.e, e.hh.hasElemSeparators()
  3341. ee.WriteMapStart(len(v))
  3342. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3343. if e.h.Canonical {
  3344. v2 := make([]string, len(v))
  3345. var i int
  3346. for k, _ := range v {
  3347. v2[i] = string(k)
  3348. i++
  3349. }
  3350. sort.Sort(stringSlice(v2))
  3351. for _, k2 := range v2 {
  3352. if esep {
  3353. ee.WriteMapElemKey()
  3354. }
  3355. if asSymbols {
  3356. ee.EncodeSymbol(k2)
  3357. } else {
  3358. ee.EncodeString(c_UTF8, k2)
  3359. }
  3360. if esep {
  3361. ee.WriteMapElemValue()
  3362. }
  3363. ee.EncodeFloat32(v[string(k2)])
  3364. }
  3365. } else {
  3366. for k2, v2 := range v {
  3367. if esep {
  3368. ee.WriteMapElemKey()
  3369. }
  3370. if asSymbols {
  3371. ee.EncodeSymbol(k2)
  3372. } else {
  3373. ee.EncodeString(c_UTF8, k2)
  3374. }
  3375. if esep {
  3376. ee.WriteMapElemValue()
  3377. }
  3378. ee.EncodeFloat32(v2)
  3379. }
  3380. }
  3381. ee.WriteMapEnd()
  3382. }
  3383. func (e *Encoder) fastpathEncMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  3384. fastpathTV.EncMapStringFloat64V(rv2i(rv).(map[string]float64), e)
  3385. }
  3386. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, e *Encoder) {
  3387. ee, esep := e.e, e.hh.hasElemSeparators()
  3388. ee.WriteMapStart(len(v))
  3389. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3390. if e.h.Canonical {
  3391. v2 := make([]string, len(v))
  3392. var i int
  3393. for k, _ := range v {
  3394. v2[i] = string(k)
  3395. i++
  3396. }
  3397. sort.Sort(stringSlice(v2))
  3398. for _, k2 := range v2 {
  3399. if esep {
  3400. ee.WriteMapElemKey()
  3401. }
  3402. if asSymbols {
  3403. ee.EncodeSymbol(k2)
  3404. } else {
  3405. ee.EncodeString(c_UTF8, k2)
  3406. }
  3407. if esep {
  3408. ee.WriteMapElemValue()
  3409. }
  3410. ee.EncodeFloat64(v[string(k2)])
  3411. }
  3412. } else {
  3413. for k2, v2 := range v {
  3414. if esep {
  3415. ee.WriteMapElemKey()
  3416. }
  3417. if asSymbols {
  3418. ee.EncodeSymbol(k2)
  3419. } else {
  3420. ee.EncodeString(c_UTF8, k2)
  3421. }
  3422. if esep {
  3423. ee.WriteMapElemValue()
  3424. }
  3425. ee.EncodeFloat64(v2)
  3426. }
  3427. }
  3428. ee.WriteMapEnd()
  3429. }
  3430. func (e *Encoder) fastpathEncMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  3431. fastpathTV.EncMapStringBoolV(rv2i(rv).(map[string]bool), e)
  3432. }
  3433. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, e *Encoder) {
  3434. ee, esep := e.e, e.hh.hasElemSeparators()
  3435. ee.WriteMapStart(len(v))
  3436. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3437. if e.h.Canonical {
  3438. v2 := make([]string, len(v))
  3439. var i int
  3440. for k, _ := range v {
  3441. v2[i] = string(k)
  3442. i++
  3443. }
  3444. sort.Sort(stringSlice(v2))
  3445. for _, k2 := range v2 {
  3446. if esep {
  3447. ee.WriteMapElemKey()
  3448. }
  3449. if asSymbols {
  3450. ee.EncodeSymbol(k2)
  3451. } else {
  3452. ee.EncodeString(c_UTF8, k2)
  3453. }
  3454. if esep {
  3455. ee.WriteMapElemValue()
  3456. }
  3457. ee.EncodeBool(v[string(k2)])
  3458. }
  3459. } else {
  3460. for k2, v2 := range v {
  3461. if esep {
  3462. ee.WriteMapElemKey()
  3463. }
  3464. if asSymbols {
  3465. ee.EncodeSymbol(k2)
  3466. } else {
  3467. ee.EncodeString(c_UTF8, k2)
  3468. }
  3469. if esep {
  3470. ee.WriteMapElemValue()
  3471. }
  3472. ee.EncodeBool(v2)
  3473. }
  3474. }
  3475. ee.WriteMapEnd()
  3476. }
  3477. func (e *Encoder) fastpathEncMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  3478. fastpathTV.EncMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), e)
  3479. }
  3480. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, e *Encoder) {
  3481. ee, esep := e.e, e.hh.hasElemSeparators()
  3482. ee.WriteMapStart(len(v))
  3483. if e.h.Canonical {
  3484. v2 := make([]float64, len(v))
  3485. var i int
  3486. for k, _ := range v {
  3487. v2[i] = float64(k)
  3488. i++
  3489. }
  3490. sort.Sort(floatSlice(v2))
  3491. for _, k2 := range v2 {
  3492. if esep {
  3493. ee.WriteMapElemKey()
  3494. }
  3495. ee.EncodeFloat32(float32(k2))
  3496. if esep {
  3497. ee.WriteMapElemValue()
  3498. }
  3499. e.encode(v[float32(k2)])
  3500. }
  3501. } else {
  3502. for k2, v2 := range v {
  3503. if esep {
  3504. ee.WriteMapElemKey()
  3505. }
  3506. ee.EncodeFloat32(k2)
  3507. if esep {
  3508. ee.WriteMapElemValue()
  3509. }
  3510. e.encode(v2)
  3511. }
  3512. }
  3513. ee.WriteMapEnd()
  3514. }
  3515. func (e *Encoder) fastpathEncMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  3516. fastpathTV.EncMapFloat32StringV(rv2i(rv).(map[float32]string), e)
  3517. }
  3518. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, e *Encoder) {
  3519. ee, esep := e.e, e.hh.hasElemSeparators()
  3520. ee.WriteMapStart(len(v))
  3521. if e.h.Canonical {
  3522. v2 := make([]float64, len(v))
  3523. var i int
  3524. for k, _ := range v {
  3525. v2[i] = float64(k)
  3526. i++
  3527. }
  3528. sort.Sort(floatSlice(v2))
  3529. for _, k2 := range v2 {
  3530. if esep {
  3531. ee.WriteMapElemKey()
  3532. }
  3533. ee.EncodeFloat32(float32(k2))
  3534. if esep {
  3535. ee.WriteMapElemValue()
  3536. }
  3537. ee.EncodeString(c_UTF8, v[float32(k2)])
  3538. }
  3539. } else {
  3540. for k2, v2 := range v {
  3541. if esep {
  3542. ee.WriteMapElemKey()
  3543. }
  3544. ee.EncodeFloat32(k2)
  3545. if esep {
  3546. ee.WriteMapElemValue()
  3547. }
  3548. ee.EncodeString(c_UTF8, v2)
  3549. }
  3550. }
  3551. ee.WriteMapEnd()
  3552. }
  3553. func (e *Encoder) fastpathEncMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  3554. fastpathTV.EncMapFloat32UintV(rv2i(rv).(map[float32]uint), e)
  3555. }
  3556. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, e *Encoder) {
  3557. ee, esep := e.e, e.hh.hasElemSeparators()
  3558. ee.WriteMapStart(len(v))
  3559. if e.h.Canonical {
  3560. v2 := make([]float64, len(v))
  3561. var i int
  3562. for k, _ := range v {
  3563. v2[i] = float64(k)
  3564. i++
  3565. }
  3566. sort.Sort(floatSlice(v2))
  3567. for _, k2 := range v2 {
  3568. if esep {
  3569. ee.WriteMapElemKey()
  3570. }
  3571. ee.EncodeFloat32(float32(k2))
  3572. if esep {
  3573. ee.WriteMapElemValue()
  3574. }
  3575. ee.EncodeUint(uint64(v[float32(k2)]))
  3576. }
  3577. } else {
  3578. for k2, v2 := range v {
  3579. if esep {
  3580. ee.WriteMapElemKey()
  3581. }
  3582. ee.EncodeFloat32(k2)
  3583. if esep {
  3584. ee.WriteMapElemValue()
  3585. }
  3586. ee.EncodeUint(uint64(v2))
  3587. }
  3588. }
  3589. ee.WriteMapEnd()
  3590. }
  3591. func (e *Encoder) fastpathEncMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  3592. fastpathTV.EncMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), e)
  3593. }
  3594. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, e *Encoder) {
  3595. ee, esep := e.e, e.hh.hasElemSeparators()
  3596. ee.WriteMapStart(len(v))
  3597. if e.h.Canonical {
  3598. v2 := make([]float64, len(v))
  3599. var i int
  3600. for k, _ := range v {
  3601. v2[i] = float64(k)
  3602. i++
  3603. }
  3604. sort.Sort(floatSlice(v2))
  3605. for _, k2 := range v2 {
  3606. if esep {
  3607. ee.WriteMapElemKey()
  3608. }
  3609. ee.EncodeFloat32(float32(k2))
  3610. if esep {
  3611. ee.WriteMapElemValue()
  3612. }
  3613. ee.EncodeUint(uint64(v[float32(k2)]))
  3614. }
  3615. } else {
  3616. for k2, v2 := range v {
  3617. if esep {
  3618. ee.WriteMapElemKey()
  3619. }
  3620. ee.EncodeFloat32(k2)
  3621. if esep {
  3622. ee.WriteMapElemValue()
  3623. }
  3624. ee.EncodeUint(uint64(v2))
  3625. }
  3626. }
  3627. ee.WriteMapEnd()
  3628. }
  3629. func (e *Encoder) fastpathEncMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  3630. fastpathTV.EncMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), e)
  3631. }
  3632. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, e *Encoder) {
  3633. ee, esep := e.e, e.hh.hasElemSeparators()
  3634. ee.WriteMapStart(len(v))
  3635. if e.h.Canonical {
  3636. v2 := make([]float64, len(v))
  3637. var i int
  3638. for k, _ := range v {
  3639. v2[i] = float64(k)
  3640. i++
  3641. }
  3642. sort.Sort(floatSlice(v2))
  3643. for _, k2 := range v2 {
  3644. if esep {
  3645. ee.WriteMapElemKey()
  3646. }
  3647. ee.EncodeFloat32(float32(k2))
  3648. if esep {
  3649. ee.WriteMapElemValue()
  3650. }
  3651. ee.EncodeUint(uint64(v[float32(k2)]))
  3652. }
  3653. } else {
  3654. for k2, v2 := range v {
  3655. if esep {
  3656. ee.WriteMapElemKey()
  3657. }
  3658. ee.EncodeFloat32(k2)
  3659. if esep {
  3660. ee.WriteMapElemValue()
  3661. }
  3662. ee.EncodeUint(uint64(v2))
  3663. }
  3664. }
  3665. ee.WriteMapEnd()
  3666. }
  3667. func (e *Encoder) fastpathEncMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  3668. fastpathTV.EncMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), e)
  3669. }
  3670. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, e *Encoder) {
  3671. ee, esep := e.e, e.hh.hasElemSeparators()
  3672. ee.WriteMapStart(len(v))
  3673. if e.h.Canonical {
  3674. v2 := make([]float64, len(v))
  3675. var i int
  3676. for k, _ := range v {
  3677. v2[i] = float64(k)
  3678. i++
  3679. }
  3680. sort.Sort(floatSlice(v2))
  3681. for _, k2 := range v2 {
  3682. if esep {
  3683. ee.WriteMapElemKey()
  3684. }
  3685. ee.EncodeFloat32(float32(k2))
  3686. if esep {
  3687. ee.WriteMapElemValue()
  3688. }
  3689. ee.EncodeUint(uint64(v[float32(k2)]))
  3690. }
  3691. } else {
  3692. for k2, v2 := range v {
  3693. if esep {
  3694. ee.WriteMapElemKey()
  3695. }
  3696. ee.EncodeFloat32(k2)
  3697. if esep {
  3698. ee.WriteMapElemValue()
  3699. }
  3700. ee.EncodeUint(uint64(v2))
  3701. }
  3702. }
  3703. ee.WriteMapEnd()
  3704. }
  3705. func (e *Encoder) fastpathEncMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  3706. fastpathTV.EncMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), e)
  3707. }
  3708. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, e *Encoder) {
  3709. ee, esep := e.e, e.hh.hasElemSeparators()
  3710. ee.WriteMapStart(len(v))
  3711. if e.h.Canonical {
  3712. v2 := make([]float64, len(v))
  3713. var i int
  3714. for k, _ := range v {
  3715. v2[i] = float64(k)
  3716. i++
  3717. }
  3718. sort.Sort(floatSlice(v2))
  3719. for _, k2 := range v2 {
  3720. if esep {
  3721. ee.WriteMapElemKey()
  3722. }
  3723. ee.EncodeFloat32(float32(k2))
  3724. if esep {
  3725. ee.WriteMapElemValue()
  3726. }
  3727. ee.EncodeUint(uint64(v[float32(k2)]))
  3728. }
  3729. } else {
  3730. for k2, v2 := range v {
  3731. if esep {
  3732. ee.WriteMapElemKey()
  3733. }
  3734. ee.EncodeFloat32(k2)
  3735. if esep {
  3736. ee.WriteMapElemValue()
  3737. }
  3738. ee.EncodeUint(uint64(v2))
  3739. }
  3740. }
  3741. ee.WriteMapEnd()
  3742. }
  3743. func (e *Encoder) fastpathEncMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  3744. fastpathTV.EncMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), e)
  3745. }
  3746. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, e *Encoder) {
  3747. ee, esep := e.e, e.hh.hasElemSeparators()
  3748. ee.WriteMapStart(len(v))
  3749. if e.h.Canonical {
  3750. v2 := make([]float64, len(v))
  3751. var i int
  3752. for k, _ := range v {
  3753. v2[i] = float64(k)
  3754. i++
  3755. }
  3756. sort.Sort(floatSlice(v2))
  3757. for _, k2 := range v2 {
  3758. if esep {
  3759. ee.WriteMapElemKey()
  3760. }
  3761. ee.EncodeFloat32(float32(k2))
  3762. if esep {
  3763. ee.WriteMapElemValue()
  3764. }
  3765. e.encode(v[float32(k2)])
  3766. }
  3767. } else {
  3768. for k2, v2 := range v {
  3769. if esep {
  3770. ee.WriteMapElemKey()
  3771. }
  3772. ee.EncodeFloat32(k2)
  3773. if esep {
  3774. ee.WriteMapElemValue()
  3775. }
  3776. e.encode(v2)
  3777. }
  3778. }
  3779. ee.WriteMapEnd()
  3780. }
  3781. func (e *Encoder) fastpathEncMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  3782. fastpathTV.EncMapFloat32IntV(rv2i(rv).(map[float32]int), e)
  3783. }
  3784. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, e *Encoder) {
  3785. ee, esep := e.e, e.hh.hasElemSeparators()
  3786. ee.WriteMapStart(len(v))
  3787. if e.h.Canonical {
  3788. v2 := make([]float64, len(v))
  3789. var i int
  3790. for k, _ := range v {
  3791. v2[i] = float64(k)
  3792. i++
  3793. }
  3794. sort.Sort(floatSlice(v2))
  3795. for _, k2 := range v2 {
  3796. if esep {
  3797. ee.WriteMapElemKey()
  3798. }
  3799. ee.EncodeFloat32(float32(k2))
  3800. if esep {
  3801. ee.WriteMapElemValue()
  3802. }
  3803. ee.EncodeInt(int64(v[float32(k2)]))
  3804. }
  3805. } else {
  3806. for k2, v2 := range v {
  3807. if esep {
  3808. ee.WriteMapElemKey()
  3809. }
  3810. ee.EncodeFloat32(k2)
  3811. if esep {
  3812. ee.WriteMapElemValue()
  3813. }
  3814. ee.EncodeInt(int64(v2))
  3815. }
  3816. }
  3817. ee.WriteMapEnd()
  3818. }
  3819. func (e *Encoder) fastpathEncMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  3820. fastpathTV.EncMapFloat32Int8V(rv2i(rv).(map[float32]int8), e)
  3821. }
  3822. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, e *Encoder) {
  3823. ee, esep := e.e, e.hh.hasElemSeparators()
  3824. ee.WriteMapStart(len(v))
  3825. if e.h.Canonical {
  3826. v2 := make([]float64, len(v))
  3827. var i int
  3828. for k, _ := range v {
  3829. v2[i] = float64(k)
  3830. i++
  3831. }
  3832. sort.Sort(floatSlice(v2))
  3833. for _, k2 := range v2 {
  3834. if esep {
  3835. ee.WriteMapElemKey()
  3836. }
  3837. ee.EncodeFloat32(float32(k2))
  3838. if esep {
  3839. ee.WriteMapElemValue()
  3840. }
  3841. ee.EncodeInt(int64(v[float32(k2)]))
  3842. }
  3843. } else {
  3844. for k2, v2 := range v {
  3845. if esep {
  3846. ee.WriteMapElemKey()
  3847. }
  3848. ee.EncodeFloat32(k2)
  3849. if esep {
  3850. ee.WriteMapElemValue()
  3851. }
  3852. ee.EncodeInt(int64(v2))
  3853. }
  3854. }
  3855. ee.WriteMapEnd()
  3856. }
  3857. func (e *Encoder) fastpathEncMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  3858. fastpathTV.EncMapFloat32Int16V(rv2i(rv).(map[float32]int16), e)
  3859. }
  3860. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, e *Encoder) {
  3861. ee, esep := e.e, e.hh.hasElemSeparators()
  3862. ee.WriteMapStart(len(v))
  3863. if e.h.Canonical {
  3864. v2 := make([]float64, len(v))
  3865. var i int
  3866. for k, _ := range v {
  3867. v2[i] = float64(k)
  3868. i++
  3869. }
  3870. sort.Sort(floatSlice(v2))
  3871. for _, k2 := range v2 {
  3872. if esep {
  3873. ee.WriteMapElemKey()
  3874. }
  3875. ee.EncodeFloat32(float32(k2))
  3876. if esep {
  3877. ee.WriteMapElemValue()
  3878. }
  3879. ee.EncodeInt(int64(v[float32(k2)]))
  3880. }
  3881. } else {
  3882. for k2, v2 := range v {
  3883. if esep {
  3884. ee.WriteMapElemKey()
  3885. }
  3886. ee.EncodeFloat32(k2)
  3887. if esep {
  3888. ee.WriteMapElemValue()
  3889. }
  3890. ee.EncodeInt(int64(v2))
  3891. }
  3892. }
  3893. ee.WriteMapEnd()
  3894. }
  3895. func (e *Encoder) fastpathEncMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  3896. fastpathTV.EncMapFloat32Int32V(rv2i(rv).(map[float32]int32), e)
  3897. }
  3898. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, e *Encoder) {
  3899. ee, esep := e.e, e.hh.hasElemSeparators()
  3900. ee.WriteMapStart(len(v))
  3901. if e.h.Canonical {
  3902. v2 := make([]float64, len(v))
  3903. var i int
  3904. for k, _ := range v {
  3905. v2[i] = float64(k)
  3906. i++
  3907. }
  3908. sort.Sort(floatSlice(v2))
  3909. for _, k2 := range v2 {
  3910. if esep {
  3911. ee.WriteMapElemKey()
  3912. }
  3913. ee.EncodeFloat32(float32(k2))
  3914. if esep {
  3915. ee.WriteMapElemValue()
  3916. }
  3917. ee.EncodeInt(int64(v[float32(k2)]))
  3918. }
  3919. } else {
  3920. for k2, v2 := range v {
  3921. if esep {
  3922. ee.WriteMapElemKey()
  3923. }
  3924. ee.EncodeFloat32(k2)
  3925. if esep {
  3926. ee.WriteMapElemValue()
  3927. }
  3928. ee.EncodeInt(int64(v2))
  3929. }
  3930. }
  3931. ee.WriteMapEnd()
  3932. }
  3933. func (e *Encoder) fastpathEncMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  3934. fastpathTV.EncMapFloat32Int64V(rv2i(rv).(map[float32]int64), e)
  3935. }
  3936. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, e *Encoder) {
  3937. ee, esep := e.e, e.hh.hasElemSeparators()
  3938. ee.WriteMapStart(len(v))
  3939. if e.h.Canonical {
  3940. v2 := make([]float64, len(v))
  3941. var i int
  3942. for k, _ := range v {
  3943. v2[i] = float64(k)
  3944. i++
  3945. }
  3946. sort.Sort(floatSlice(v2))
  3947. for _, k2 := range v2 {
  3948. if esep {
  3949. ee.WriteMapElemKey()
  3950. }
  3951. ee.EncodeFloat32(float32(k2))
  3952. if esep {
  3953. ee.WriteMapElemValue()
  3954. }
  3955. ee.EncodeInt(int64(v[float32(k2)]))
  3956. }
  3957. } else {
  3958. for k2, v2 := range v {
  3959. if esep {
  3960. ee.WriteMapElemKey()
  3961. }
  3962. ee.EncodeFloat32(k2)
  3963. if esep {
  3964. ee.WriteMapElemValue()
  3965. }
  3966. ee.EncodeInt(int64(v2))
  3967. }
  3968. }
  3969. ee.WriteMapEnd()
  3970. }
  3971. func (e *Encoder) fastpathEncMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  3972. fastpathTV.EncMapFloat32Float32V(rv2i(rv).(map[float32]float32), e)
  3973. }
  3974. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, e *Encoder) {
  3975. ee, esep := e.e, e.hh.hasElemSeparators()
  3976. ee.WriteMapStart(len(v))
  3977. if e.h.Canonical {
  3978. v2 := make([]float64, len(v))
  3979. var i int
  3980. for k, _ := range v {
  3981. v2[i] = float64(k)
  3982. i++
  3983. }
  3984. sort.Sort(floatSlice(v2))
  3985. for _, k2 := range v2 {
  3986. if esep {
  3987. ee.WriteMapElemKey()
  3988. }
  3989. ee.EncodeFloat32(float32(k2))
  3990. if esep {
  3991. ee.WriteMapElemValue()
  3992. }
  3993. ee.EncodeFloat32(v[float32(k2)])
  3994. }
  3995. } else {
  3996. for k2, v2 := range v {
  3997. if esep {
  3998. ee.WriteMapElemKey()
  3999. }
  4000. ee.EncodeFloat32(k2)
  4001. if esep {
  4002. ee.WriteMapElemValue()
  4003. }
  4004. ee.EncodeFloat32(v2)
  4005. }
  4006. }
  4007. ee.WriteMapEnd()
  4008. }
  4009. func (e *Encoder) fastpathEncMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  4010. fastpathTV.EncMapFloat32Float64V(rv2i(rv).(map[float32]float64), e)
  4011. }
  4012. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, e *Encoder) {
  4013. ee, esep := e.e, e.hh.hasElemSeparators()
  4014. ee.WriteMapStart(len(v))
  4015. if e.h.Canonical {
  4016. v2 := make([]float64, len(v))
  4017. var i int
  4018. for k, _ := range v {
  4019. v2[i] = float64(k)
  4020. i++
  4021. }
  4022. sort.Sort(floatSlice(v2))
  4023. for _, k2 := range v2 {
  4024. if esep {
  4025. ee.WriteMapElemKey()
  4026. }
  4027. ee.EncodeFloat32(float32(k2))
  4028. if esep {
  4029. ee.WriteMapElemValue()
  4030. }
  4031. ee.EncodeFloat64(v[float32(k2)])
  4032. }
  4033. } else {
  4034. for k2, v2 := range v {
  4035. if esep {
  4036. ee.WriteMapElemKey()
  4037. }
  4038. ee.EncodeFloat32(k2)
  4039. if esep {
  4040. ee.WriteMapElemValue()
  4041. }
  4042. ee.EncodeFloat64(v2)
  4043. }
  4044. }
  4045. ee.WriteMapEnd()
  4046. }
  4047. func (e *Encoder) fastpathEncMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  4048. fastpathTV.EncMapFloat32BoolV(rv2i(rv).(map[float32]bool), e)
  4049. }
  4050. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, e *Encoder) {
  4051. ee, esep := e.e, e.hh.hasElemSeparators()
  4052. ee.WriteMapStart(len(v))
  4053. if e.h.Canonical {
  4054. v2 := make([]float64, len(v))
  4055. var i int
  4056. for k, _ := range v {
  4057. v2[i] = float64(k)
  4058. i++
  4059. }
  4060. sort.Sort(floatSlice(v2))
  4061. for _, k2 := range v2 {
  4062. if esep {
  4063. ee.WriteMapElemKey()
  4064. }
  4065. ee.EncodeFloat32(float32(k2))
  4066. if esep {
  4067. ee.WriteMapElemValue()
  4068. }
  4069. ee.EncodeBool(v[float32(k2)])
  4070. }
  4071. } else {
  4072. for k2, v2 := range v {
  4073. if esep {
  4074. ee.WriteMapElemKey()
  4075. }
  4076. ee.EncodeFloat32(k2)
  4077. if esep {
  4078. ee.WriteMapElemValue()
  4079. }
  4080. ee.EncodeBool(v2)
  4081. }
  4082. }
  4083. ee.WriteMapEnd()
  4084. }
  4085. func (e *Encoder) fastpathEncMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  4086. fastpathTV.EncMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), e)
  4087. }
  4088. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, e *Encoder) {
  4089. ee, esep := e.e, e.hh.hasElemSeparators()
  4090. ee.WriteMapStart(len(v))
  4091. if e.h.Canonical {
  4092. v2 := make([]float64, len(v))
  4093. var i int
  4094. for k, _ := range v {
  4095. v2[i] = float64(k)
  4096. i++
  4097. }
  4098. sort.Sort(floatSlice(v2))
  4099. for _, k2 := range v2 {
  4100. if esep {
  4101. ee.WriteMapElemKey()
  4102. }
  4103. ee.EncodeFloat64(float64(k2))
  4104. if esep {
  4105. ee.WriteMapElemValue()
  4106. }
  4107. e.encode(v[float64(k2)])
  4108. }
  4109. } else {
  4110. for k2, v2 := range v {
  4111. if esep {
  4112. ee.WriteMapElemKey()
  4113. }
  4114. ee.EncodeFloat64(k2)
  4115. if esep {
  4116. ee.WriteMapElemValue()
  4117. }
  4118. e.encode(v2)
  4119. }
  4120. }
  4121. ee.WriteMapEnd()
  4122. }
  4123. func (e *Encoder) fastpathEncMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  4124. fastpathTV.EncMapFloat64StringV(rv2i(rv).(map[float64]string), e)
  4125. }
  4126. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, e *Encoder) {
  4127. ee, esep := e.e, e.hh.hasElemSeparators()
  4128. ee.WriteMapStart(len(v))
  4129. if e.h.Canonical {
  4130. v2 := make([]float64, len(v))
  4131. var i int
  4132. for k, _ := range v {
  4133. v2[i] = float64(k)
  4134. i++
  4135. }
  4136. sort.Sort(floatSlice(v2))
  4137. for _, k2 := range v2 {
  4138. if esep {
  4139. ee.WriteMapElemKey()
  4140. }
  4141. ee.EncodeFloat64(float64(k2))
  4142. if esep {
  4143. ee.WriteMapElemValue()
  4144. }
  4145. ee.EncodeString(c_UTF8, v[float64(k2)])
  4146. }
  4147. } else {
  4148. for k2, v2 := range v {
  4149. if esep {
  4150. ee.WriteMapElemKey()
  4151. }
  4152. ee.EncodeFloat64(k2)
  4153. if esep {
  4154. ee.WriteMapElemValue()
  4155. }
  4156. ee.EncodeString(c_UTF8, v2)
  4157. }
  4158. }
  4159. ee.WriteMapEnd()
  4160. }
  4161. func (e *Encoder) fastpathEncMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  4162. fastpathTV.EncMapFloat64UintV(rv2i(rv).(map[float64]uint), e)
  4163. }
  4164. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, e *Encoder) {
  4165. ee, esep := e.e, e.hh.hasElemSeparators()
  4166. ee.WriteMapStart(len(v))
  4167. if e.h.Canonical {
  4168. v2 := make([]float64, len(v))
  4169. var i int
  4170. for k, _ := range v {
  4171. v2[i] = float64(k)
  4172. i++
  4173. }
  4174. sort.Sort(floatSlice(v2))
  4175. for _, k2 := range v2 {
  4176. if esep {
  4177. ee.WriteMapElemKey()
  4178. }
  4179. ee.EncodeFloat64(float64(k2))
  4180. if esep {
  4181. ee.WriteMapElemValue()
  4182. }
  4183. ee.EncodeUint(uint64(v[float64(k2)]))
  4184. }
  4185. } else {
  4186. for k2, v2 := range v {
  4187. if esep {
  4188. ee.WriteMapElemKey()
  4189. }
  4190. ee.EncodeFloat64(k2)
  4191. if esep {
  4192. ee.WriteMapElemValue()
  4193. }
  4194. ee.EncodeUint(uint64(v2))
  4195. }
  4196. }
  4197. ee.WriteMapEnd()
  4198. }
  4199. func (e *Encoder) fastpathEncMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  4200. fastpathTV.EncMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), e)
  4201. }
  4202. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, e *Encoder) {
  4203. ee, esep := e.e, e.hh.hasElemSeparators()
  4204. ee.WriteMapStart(len(v))
  4205. if e.h.Canonical {
  4206. v2 := make([]float64, len(v))
  4207. var i int
  4208. for k, _ := range v {
  4209. v2[i] = float64(k)
  4210. i++
  4211. }
  4212. sort.Sort(floatSlice(v2))
  4213. for _, k2 := range v2 {
  4214. if esep {
  4215. ee.WriteMapElemKey()
  4216. }
  4217. ee.EncodeFloat64(float64(k2))
  4218. if esep {
  4219. ee.WriteMapElemValue()
  4220. }
  4221. ee.EncodeUint(uint64(v[float64(k2)]))
  4222. }
  4223. } else {
  4224. for k2, v2 := range v {
  4225. if esep {
  4226. ee.WriteMapElemKey()
  4227. }
  4228. ee.EncodeFloat64(k2)
  4229. if esep {
  4230. ee.WriteMapElemValue()
  4231. }
  4232. ee.EncodeUint(uint64(v2))
  4233. }
  4234. }
  4235. ee.WriteMapEnd()
  4236. }
  4237. func (e *Encoder) fastpathEncMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  4238. fastpathTV.EncMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), e)
  4239. }
  4240. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, e *Encoder) {
  4241. ee, esep := e.e, e.hh.hasElemSeparators()
  4242. ee.WriteMapStart(len(v))
  4243. if e.h.Canonical {
  4244. v2 := make([]float64, len(v))
  4245. var i int
  4246. for k, _ := range v {
  4247. v2[i] = float64(k)
  4248. i++
  4249. }
  4250. sort.Sort(floatSlice(v2))
  4251. for _, k2 := range v2 {
  4252. if esep {
  4253. ee.WriteMapElemKey()
  4254. }
  4255. ee.EncodeFloat64(float64(k2))
  4256. if esep {
  4257. ee.WriteMapElemValue()
  4258. }
  4259. ee.EncodeUint(uint64(v[float64(k2)]))
  4260. }
  4261. } else {
  4262. for k2, v2 := range v {
  4263. if esep {
  4264. ee.WriteMapElemKey()
  4265. }
  4266. ee.EncodeFloat64(k2)
  4267. if esep {
  4268. ee.WriteMapElemValue()
  4269. }
  4270. ee.EncodeUint(uint64(v2))
  4271. }
  4272. }
  4273. ee.WriteMapEnd()
  4274. }
  4275. func (e *Encoder) fastpathEncMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  4276. fastpathTV.EncMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), e)
  4277. }
  4278. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, e *Encoder) {
  4279. ee, esep := e.e, e.hh.hasElemSeparators()
  4280. ee.WriteMapStart(len(v))
  4281. if e.h.Canonical {
  4282. v2 := make([]float64, len(v))
  4283. var i int
  4284. for k, _ := range v {
  4285. v2[i] = float64(k)
  4286. i++
  4287. }
  4288. sort.Sort(floatSlice(v2))
  4289. for _, k2 := range v2 {
  4290. if esep {
  4291. ee.WriteMapElemKey()
  4292. }
  4293. ee.EncodeFloat64(float64(k2))
  4294. if esep {
  4295. ee.WriteMapElemValue()
  4296. }
  4297. ee.EncodeUint(uint64(v[float64(k2)]))
  4298. }
  4299. } else {
  4300. for k2, v2 := range v {
  4301. if esep {
  4302. ee.WriteMapElemKey()
  4303. }
  4304. ee.EncodeFloat64(k2)
  4305. if esep {
  4306. ee.WriteMapElemValue()
  4307. }
  4308. ee.EncodeUint(uint64(v2))
  4309. }
  4310. }
  4311. ee.WriteMapEnd()
  4312. }
  4313. func (e *Encoder) fastpathEncMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  4314. fastpathTV.EncMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), e)
  4315. }
  4316. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, e *Encoder) {
  4317. ee, esep := e.e, e.hh.hasElemSeparators()
  4318. ee.WriteMapStart(len(v))
  4319. if e.h.Canonical {
  4320. v2 := make([]float64, len(v))
  4321. var i int
  4322. for k, _ := range v {
  4323. v2[i] = float64(k)
  4324. i++
  4325. }
  4326. sort.Sort(floatSlice(v2))
  4327. for _, k2 := range v2 {
  4328. if esep {
  4329. ee.WriteMapElemKey()
  4330. }
  4331. ee.EncodeFloat64(float64(k2))
  4332. if esep {
  4333. ee.WriteMapElemValue()
  4334. }
  4335. ee.EncodeUint(uint64(v[float64(k2)]))
  4336. }
  4337. } else {
  4338. for k2, v2 := range v {
  4339. if esep {
  4340. ee.WriteMapElemKey()
  4341. }
  4342. ee.EncodeFloat64(k2)
  4343. if esep {
  4344. ee.WriteMapElemValue()
  4345. }
  4346. ee.EncodeUint(uint64(v2))
  4347. }
  4348. }
  4349. ee.WriteMapEnd()
  4350. }
  4351. func (e *Encoder) fastpathEncMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  4352. fastpathTV.EncMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), e)
  4353. }
  4354. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, e *Encoder) {
  4355. ee, esep := e.e, e.hh.hasElemSeparators()
  4356. ee.WriteMapStart(len(v))
  4357. if e.h.Canonical {
  4358. v2 := make([]float64, len(v))
  4359. var i int
  4360. for k, _ := range v {
  4361. v2[i] = float64(k)
  4362. i++
  4363. }
  4364. sort.Sort(floatSlice(v2))
  4365. for _, k2 := range v2 {
  4366. if esep {
  4367. ee.WriteMapElemKey()
  4368. }
  4369. ee.EncodeFloat64(float64(k2))
  4370. if esep {
  4371. ee.WriteMapElemValue()
  4372. }
  4373. e.encode(v[float64(k2)])
  4374. }
  4375. } else {
  4376. for k2, v2 := range v {
  4377. if esep {
  4378. ee.WriteMapElemKey()
  4379. }
  4380. ee.EncodeFloat64(k2)
  4381. if esep {
  4382. ee.WriteMapElemValue()
  4383. }
  4384. e.encode(v2)
  4385. }
  4386. }
  4387. ee.WriteMapEnd()
  4388. }
  4389. func (e *Encoder) fastpathEncMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  4390. fastpathTV.EncMapFloat64IntV(rv2i(rv).(map[float64]int), e)
  4391. }
  4392. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, e *Encoder) {
  4393. ee, esep := e.e, e.hh.hasElemSeparators()
  4394. ee.WriteMapStart(len(v))
  4395. if e.h.Canonical {
  4396. v2 := make([]float64, len(v))
  4397. var i int
  4398. for k, _ := range v {
  4399. v2[i] = float64(k)
  4400. i++
  4401. }
  4402. sort.Sort(floatSlice(v2))
  4403. for _, k2 := range v2 {
  4404. if esep {
  4405. ee.WriteMapElemKey()
  4406. }
  4407. ee.EncodeFloat64(float64(k2))
  4408. if esep {
  4409. ee.WriteMapElemValue()
  4410. }
  4411. ee.EncodeInt(int64(v[float64(k2)]))
  4412. }
  4413. } else {
  4414. for k2, v2 := range v {
  4415. if esep {
  4416. ee.WriteMapElemKey()
  4417. }
  4418. ee.EncodeFloat64(k2)
  4419. if esep {
  4420. ee.WriteMapElemValue()
  4421. }
  4422. ee.EncodeInt(int64(v2))
  4423. }
  4424. }
  4425. ee.WriteMapEnd()
  4426. }
  4427. func (e *Encoder) fastpathEncMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  4428. fastpathTV.EncMapFloat64Int8V(rv2i(rv).(map[float64]int8), e)
  4429. }
  4430. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, e *Encoder) {
  4431. ee, esep := e.e, e.hh.hasElemSeparators()
  4432. ee.WriteMapStart(len(v))
  4433. if e.h.Canonical {
  4434. v2 := make([]float64, len(v))
  4435. var i int
  4436. for k, _ := range v {
  4437. v2[i] = float64(k)
  4438. i++
  4439. }
  4440. sort.Sort(floatSlice(v2))
  4441. for _, k2 := range v2 {
  4442. if esep {
  4443. ee.WriteMapElemKey()
  4444. }
  4445. ee.EncodeFloat64(float64(k2))
  4446. if esep {
  4447. ee.WriteMapElemValue()
  4448. }
  4449. ee.EncodeInt(int64(v[float64(k2)]))
  4450. }
  4451. } else {
  4452. for k2, v2 := range v {
  4453. if esep {
  4454. ee.WriteMapElemKey()
  4455. }
  4456. ee.EncodeFloat64(k2)
  4457. if esep {
  4458. ee.WriteMapElemValue()
  4459. }
  4460. ee.EncodeInt(int64(v2))
  4461. }
  4462. }
  4463. ee.WriteMapEnd()
  4464. }
  4465. func (e *Encoder) fastpathEncMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  4466. fastpathTV.EncMapFloat64Int16V(rv2i(rv).(map[float64]int16), e)
  4467. }
  4468. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, e *Encoder) {
  4469. ee, esep := e.e, e.hh.hasElemSeparators()
  4470. ee.WriteMapStart(len(v))
  4471. if e.h.Canonical {
  4472. v2 := make([]float64, len(v))
  4473. var i int
  4474. for k, _ := range v {
  4475. v2[i] = float64(k)
  4476. i++
  4477. }
  4478. sort.Sort(floatSlice(v2))
  4479. for _, k2 := range v2 {
  4480. if esep {
  4481. ee.WriteMapElemKey()
  4482. }
  4483. ee.EncodeFloat64(float64(k2))
  4484. if esep {
  4485. ee.WriteMapElemValue()
  4486. }
  4487. ee.EncodeInt(int64(v[float64(k2)]))
  4488. }
  4489. } else {
  4490. for k2, v2 := range v {
  4491. if esep {
  4492. ee.WriteMapElemKey()
  4493. }
  4494. ee.EncodeFloat64(k2)
  4495. if esep {
  4496. ee.WriteMapElemValue()
  4497. }
  4498. ee.EncodeInt(int64(v2))
  4499. }
  4500. }
  4501. ee.WriteMapEnd()
  4502. }
  4503. func (e *Encoder) fastpathEncMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  4504. fastpathTV.EncMapFloat64Int32V(rv2i(rv).(map[float64]int32), e)
  4505. }
  4506. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, e *Encoder) {
  4507. ee, esep := e.e, e.hh.hasElemSeparators()
  4508. ee.WriteMapStart(len(v))
  4509. if e.h.Canonical {
  4510. v2 := make([]float64, len(v))
  4511. var i int
  4512. for k, _ := range v {
  4513. v2[i] = float64(k)
  4514. i++
  4515. }
  4516. sort.Sort(floatSlice(v2))
  4517. for _, k2 := range v2 {
  4518. if esep {
  4519. ee.WriteMapElemKey()
  4520. }
  4521. ee.EncodeFloat64(float64(k2))
  4522. if esep {
  4523. ee.WriteMapElemValue()
  4524. }
  4525. ee.EncodeInt(int64(v[float64(k2)]))
  4526. }
  4527. } else {
  4528. for k2, v2 := range v {
  4529. if esep {
  4530. ee.WriteMapElemKey()
  4531. }
  4532. ee.EncodeFloat64(k2)
  4533. if esep {
  4534. ee.WriteMapElemValue()
  4535. }
  4536. ee.EncodeInt(int64(v2))
  4537. }
  4538. }
  4539. ee.WriteMapEnd()
  4540. }
  4541. func (e *Encoder) fastpathEncMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  4542. fastpathTV.EncMapFloat64Int64V(rv2i(rv).(map[float64]int64), e)
  4543. }
  4544. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, e *Encoder) {
  4545. ee, esep := e.e, e.hh.hasElemSeparators()
  4546. ee.WriteMapStart(len(v))
  4547. if e.h.Canonical {
  4548. v2 := make([]float64, len(v))
  4549. var i int
  4550. for k, _ := range v {
  4551. v2[i] = float64(k)
  4552. i++
  4553. }
  4554. sort.Sort(floatSlice(v2))
  4555. for _, k2 := range v2 {
  4556. if esep {
  4557. ee.WriteMapElemKey()
  4558. }
  4559. ee.EncodeFloat64(float64(k2))
  4560. if esep {
  4561. ee.WriteMapElemValue()
  4562. }
  4563. ee.EncodeInt(int64(v[float64(k2)]))
  4564. }
  4565. } else {
  4566. for k2, v2 := range v {
  4567. if esep {
  4568. ee.WriteMapElemKey()
  4569. }
  4570. ee.EncodeFloat64(k2)
  4571. if esep {
  4572. ee.WriteMapElemValue()
  4573. }
  4574. ee.EncodeInt(int64(v2))
  4575. }
  4576. }
  4577. ee.WriteMapEnd()
  4578. }
  4579. func (e *Encoder) fastpathEncMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  4580. fastpathTV.EncMapFloat64Float32V(rv2i(rv).(map[float64]float32), e)
  4581. }
  4582. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, e *Encoder) {
  4583. ee, esep := e.e, e.hh.hasElemSeparators()
  4584. ee.WriteMapStart(len(v))
  4585. if e.h.Canonical {
  4586. v2 := make([]float64, len(v))
  4587. var i int
  4588. for k, _ := range v {
  4589. v2[i] = float64(k)
  4590. i++
  4591. }
  4592. sort.Sort(floatSlice(v2))
  4593. for _, k2 := range v2 {
  4594. if esep {
  4595. ee.WriteMapElemKey()
  4596. }
  4597. ee.EncodeFloat64(float64(k2))
  4598. if esep {
  4599. ee.WriteMapElemValue()
  4600. }
  4601. ee.EncodeFloat32(v[float64(k2)])
  4602. }
  4603. } else {
  4604. for k2, v2 := range v {
  4605. if esep {
  4606. ee.WriteMapElemKey()
  4607. }
  4608. ee.EncodeFloat64(k2)
  4609. if esep {
  4610. ee.WriteMapElemValue()
  4611. }
  4612. ee.EncodeFloat32(v2)
  4613. }
  4614. }
  4615. ee.WriteMapEnd()
  4616. }
  4617. func (e *Encoder) fastpathEncMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  4618. fastpathTV.EncMapFloat64Float64V(rv2i(rv).(map[float64]float64), e)
  4619. }
  4620. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, e *Encoder) {
  4621. ee, esep := e.e, e.hh.hasElemSeparators()
  4622. ee.WriteMapStart(len(v))
  4623. if e.h.Canonical {
  4624. v2 := make([]float64, len(v))
  4625. var i int
  4626. for k, _ := range v {
  4627. v2[i] = float64(k)
  4628. i++
  4629. }
  4630. sort.Sort(floatSlice(v2))
  4631. for _, k2 := range v2 {
  4632. if esep {
  4633. ee.WriteMapElemKey()
  4634. }
  4635. ee.EncodeFloat64(float64(k2))
  4636. if esep {
  4637. ee.WriteMapElemValue()
  4638. }
  4639. ee.EncodeFloat64(v[float64(k2)])
  4640. }
  4641. } else {
  4642. for k2, v2 := range v {
  4643. if esep {
  4644. ee.WriteMapElemKey()
  4645. }
  4646. ee.EncodeFloat64(k2)
  4647. if esep {
  4648. ee.WriteMapElemValue()
  4649. }
  4650. ee.EncodeFloat64(v2)
  4651. }
  4652. }
  4653. ee.WriteMapEnd()
  4654. }
  4655. func (e *Encoder) fastpathEncMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  4656. fastpathTV.EncMapFloat64BoolV(rv2i(rv).(map[float64]bool), e)
  4657. }
  4658. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, e *Encoder) {
  4659. ee, esep := e.e, e.hh.hasElemSeparators()
  4660. ee.WriteMapStart(len(v))
  4661. if e.h.Canonical {
  4662. v2 := make([]float64, len(v))
  4663. var i int
  4664. for k, _ := range v {
  4665. v2[i] = float64(k)
  4666. i++
  4667. }
  4668. sort.Sort(floatSlice(v2))
  4669. for _, k2 := range v2 {
  4670. if esep {
  4671. ee.WriteMapElemKey()
  4672. }
  4673. ee.EncodeFloat64(float64(k2))
  4674. if esep {
  4675. ee.WriteMapElemValue()
  4676. }
  4677. ee.EncodeBool(v[float64(k2)])
  4678. }
  4679. } else {
  4680. for k2, v2 := range v {
  4681. if esep {
  4682. ee.WriteMapElemKey()
  4683. }
  4684. ee.EncodeFloat64(k2)
  4685. if esep {
  4686. ee.WriteMapElemValue()
  4687. }
  4688. ee.EncodeBool(v2)
  4689. }
  4690. }
  4691. ee.WriteMapEnd()
  4692. }
  4693. func (e *Encoder) fastpathEncMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  4694. fastpathTV.EncMapUintIntfV(rv2i(rv).(map[uint]interface{}), e)
  4695. }
  4696. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, e *Encoder) {
  4697. ee, esep := e.e, e.hh.hasElemSeparators()
  4698. ee.WriteMapStart(len(v))
  4699. if e.h.Canonical {
  4700. v2 := make([]uint64, len(v))
  4701. var i int
  4702. for k, _ := range v {
  4703. v2[i] = uint64(k)
  4704. i++
  4705. }
  4706. sort.Sort(uintSlice(v2))
  4707. for _, k2 := range v2 {
  4708. if esep {
  4709. ee.WriteMapElemKey()
  4710. }
  4711. ee.EncodeUint(uint64(uint(k2)))
  4712. if esep {
  4713. ee.WriteMapElemValue()
  4714. }
  4715. e.encode(v[uint(k2)])
  4716. }
  4717. } else {
  4718. for k2, v2 := range v {
  4719. if esep {
  4720. ee.WriteMapElemKey()
  4721. }
  4722. ee.EncodeUint(uint64(k2))
  4723. if esep {
  4724. ee.WriteMapElemValue()
  4725. }
  4726. e.encode(v2)
  4727. }
  4728. }
  4729. ee.WriteMapEnd()
  4730. }
  4731. func (e *Encoder) fastpathEncMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  4732. fastpathTV.EncMapUintStringV(rv2i(rv).(map[uint]string), e)
  4733. }
  4734. func (_ fastpathT) EncMapUintStringV(v map[uint]string, e *Encoder) {
  4735. ee, esep := e.e, e.hh.hasElemSeparators()
  4736. ee.WriteMapStart(len(v))
  4737. if e.h.Canonical {
  4738. v2 := make([]uint64, len(v))
  4739. var i int
  4740. for k, _ := range v {
  4741. v2[i] = uint64(k)
  4742. i++
  4743. }
  4744. sort.Sort(uintSlice(v2))
  4745. for _, k2 := range v2 {
  4746. if esep {
  4747. ee.WriteMapElemKey()
  4748. }
  4749. ee.EncodeUint(uint64(uint(k2)))
  4750. if esep {
  4751. ee.WriteMapElemValue()
  4752. }
  4753. ee.EncodeString(c_UTF8, v[uint(k2)])
  4754. }
  4755. } else {
  4756. for k2, v2 := range v {
  4757. if esep {
  4758. ee.WriteMapElemKey()
  4759. }
  4760. ee.EncodeUint(uint64(k2))
  4761. if esep {
  4762. ee.WriteMapElemValue()
  4763. }
  4764. ee.EncodeString(c_UTF8, v2)
  4765. }
  4766. }
  4767. ee.WriteMapEnd()
  4768. }
  4769. func (e *Encoder) fastpathEncMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  4770. fastpathTV.EncMapUintUintV(rv2i(rv).(map[uint]uint), e)
  4771. }
  4772. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, e *Encoder) {
  4773. ee, esep := e.e, e.hh.hasElemSeparators()
  4774. ee.WriteMapStart(len(v))
  4775. if e.h.Canonical {
  4776. v2 := make([]uint64, len(v))
  4777. var i int
  4778. for k, _ := range v {
  4779. v2[i] = uint64(k)
  4780. i++
  4781. }
  4782. sort.Sort(uintSlice(v2))
  4783. for _, k2 := range v2 {
  4784. if esep {
  4785. ee.WriteMapElemKey()
  4786. }
  4787. ee.EncodeUint(uint64(uint(k2)))
  4788. if esep {
  4789. ee.WriteMapElemValue()
  4790. }
  4791. ee.EncodeUint(uint64(v[uint(k2)]))
  4792. }
  4793. } else {
  4794. for k2, v2 := range v {
  4795. if esep {
  4796. ee.WriteMapElemKey()
  4797. }
  4798. ee.EncodeUint(uint64(k2))
  4799. if esep {
  4800. ee.WriteMapElemValue()
  4801. }
  4802. ee.EncodeUint(uint64(v2))
  4803. }
  4804. }
  4805. ee.WriteMapEnd()
  4806. }
  4807. func (e *Encoder) fastpathEncMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  4808. fastpathTV.EncMapUintUint8V(rv2i(rv).(map[uint]uint8), e)
  4809. }
  4810. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, e *Encoder) {
  4811. ee, esep := e.e, e.hh.hasElemSeparators()
  4812. ee.WriteMapStart(len(v))
  4813. if e.h.Canonical {
  4814. v2 := make([]uint64, len(v))
  4815. var i int
  4816. for k, _ := range v {
  4817. v2[i] = uint64(k)
  4818. i++
  4819. }
  4820. sort.Sort(uintSlice(v2))
  4821. for _, k2 := range v2 {
  4822. if esep {
  4823. ee.WriteMapElemKey()
  4824. }
  4825. ee.EncodeUint(uint64(uint(k2)))
  4826. if esep {
  4827. ee.WriteMapElemValue()
  4828. }
  4829. ee.EncodeUint(uint64(v[uint(k2)]))
  4830. }
  4831. } else {
  4832. for k2, v2 := range v {
  4833. if esep {
  4834. ee.WriteMapElemKey()
  4835. }
  4836. ee.EncodeUint(uint64(k2))
  4837. if esep {
  4838. ee.WriteMapElemValue()
  4839. }
  4840. ee.EncodeUint(uint64(v2))
  4841. }
  4842. }
  4843. ee.WriteMapEnd()
  4844. }
  4845. func (e *Encoder) fastpathEncMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  4846. fastpathTV.EncMapUintUint16V(rv2i(rv).(map[uint]uint16), e)
  4847. }
  4848. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, e *Encoder) {
  4849. ee, esep := e.e, e.hh.hasElemSeparators()
  4850. ee.WriteMapStart(len(v))
  4851. if e.h.Canonical {
  4852. v2 := make([]uint64, len(v))
  4853. var i int
  4854. for k, _ := range v {
  4855. v2[i] = uint64(k)
  4856. i++
  4857. }
  4858. sort.Sort(uintSlice(v2))
  4859. for _, k2 := range v2 {
  4860. if esep {
  4861. ee.WriteMapElemKey()
  4862. }
  4863. ee.EncodeUint(uint64(uint(k2)))
  4864. if esep {
  4865. ee.WriteMapElemValue()
  4866. }
  4867. ee.EncodeUint(uint64(v[uint(k2)]))
  4868. }
  4869. } else {
  4870. for k2, v2 := range v {
  4871. if esep {
  4872. ee.WriteMapElemKey()
  4873. }
  4874. ee.EncodeUint(uint64(k2))
  4875. if esep {
  4876. ee.WriteMapElemValue()
  4877. }
  4878. ee.EncodeUint(uint64(v2))
  4879. }
  4880. }
  4881. ee.WriteMapEnd()
  4882. }
  4883. func (e *Encoder) fastpathEncMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  4884. fastpathTV.EncMapUintUint32V(rv2i(rv).(map[uint]uint32), e)
  4885. }
  4886. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, e *Encoder) {
  4887. ee, esep := e.e, e.hh.hasElemSeparators()
  4888. ee.WriteMapStart(len(v))
  4889. if e.h.Canonical {
  4890. v2 := make([]uint64, len(v))
  4891. var i int
  4892. for k, _ := range v {
  4893. v2[i] = uint64(k)
  4894. i++
  4895. }
  4896. sort.Sort(uintSlice(v2))
  4897. for _, k2 := range v2 {
  4898. if esep {
  4899. ee.WriteMapElemKey()
  4900. }
  4901. ee.EncodeUint(uint64(uint(k2)))
  4902. if esep {
  4903. ee.WriteMapElemValue()
  4904. }
  4905. ee.EncodeUint(uint64(v[uint(k2)]))
  4906. }
  4907. } else {
  4908. for k2, v2 := range v {
  4909. if esep {
  4910. ee.WriteMapElemKey()
  4911. }
  4912. ee.EncodeUint(uint64(k2))
  4913. if esep {
  4914. ee.WriteMapElemValue()
  4915. }
  4916. ee.EncodeUint(uint64(v2))
  4917. }
  4918. }
  4919. ee.WriteMapEnd()
  4920. }
  4921. func (e *Encoder) fastpathEncMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  4922. fastpathTV.EncMapUintUint64V(rv2i(rv).(map[uint]uint64), e)
  4923. }
  4924. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, e *Encoder) {
  4925. ee, esep := e.e, e.hh.hasElemSeparators()
  4926. ee.WriteMapStart(len(v))
  4927. if e.h.Canonical {
  4928. v2 := make([]uint64, len(v))
  4929. var i int
  4930. for k, _ := range v {
  4931. v2[i] = uint64(k)
  4932. i++
  4933. }
  4934. sort.Sort(uintSlice(v2))
  4935. for _, k2 := range v2 {
  4936. if esep {
  4937. ee.WriteMapElemKey()
  4938. }
  4939. ee.EncodeUint(uint64(uint(k2)))
  4940. if esep {
  4941. ee.WriteMapElemValue()
  4942. }
  4943. ee.EncodeUint(uint64(v[uint(k2)]))
  4944. }
  4945. } else {
  4946. for k2, v2 := range v {
  4947. if esep {
  4948. ee.WriteMapElemKey()
  4949. }
  4950. ee.EncodeUint(uint64(k2))
  4951. if esep {
  4952. ee.WriteMapElemValue()
  4953. }
  4954. ee.EncodeUint(uint64(v2))
  4955. }
  4956. }
  4957. ee.WriteMapEnd()
  4958. }
  4959. func (e *Encoder) fastpathEncMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  4960. fastpathTV.EncMapUintUintptrV(rv2i(rv).(map[uint]uintptr), e)
  4961. }
  4962. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, e *Encoder) {
  4963. ee, esep := e.e, e.hh.hasElemSeparators()
  4964. ee.WriteMapStart(len(v))
  4965. if e.h.Canonical {
  4966. v2 := make([]uint64, len(v))
  4967. var i int
  4968. for k, _ := range v {
  4969. v2[i] = uint64(k)
  4970. i++
  4971. }
  4972. sort.Sort(uintSlice(v2))
  4973. for _, k2 := range v2 {
  4974. if esep {
  4975. ee.WriteMapElemKey()
  4976. }
  4977. ee.EncodeUint(uint64(uint(k2)))
  4978. if esep {
  4979. ee.WriteMapElemValue()
  4980. }
  4981. e.encode(v[uint(k2)])
  4982. }
  4983. } else {
  4984. for k2, v2 := range v {
  4985. if esep {
  4986. ee.WriteMapElemKey()
  4987. }
  4988. ee.EncodeUint(uint64(k2))
  4989. if esep {
  4990. ee.WriteMapElemValue()
  4991. }
  4992. e.encode(v2)
  4993. }
  4994. }
  4995. ee.WriteMapEnd()
  4996. }
  4997. func (e *Encoder) fastpathEncMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  4998. fastpathTV.EncMapUintIntV(rv2i(rv).(map[uint]int), e)
  4999. }
  5000. func (_ fastpathT) EncMapUintIntV(v map[uint]int, e *Encoder) {
  5001. ee, esep := e.e, e.hh.hasElemSeparators()
  5002. ee.WriteMapStart(len(v))
  5003. if e.h.Canonical {
  5004. v2 := make([]uint64, len(v))
  5005. var i int
  5006. for k, _ := range v {
  5007. v2[i] = uint64(k)
  5008. i++
  5009. }
  5010. sort.Sort(uintSlice(v2))
  5011. for _, k2 := range v2 {
  5012. if esep {
  5013. ee.WriteMapElemKey()
  5014. }
  5015. ee.EncodeUint(uint64(uint(k2)))
  5016. if esep {
  5017. ee.WriteMapElemValue()
  5018. }
  5019. ee.EncodeInt(int64(v[uint(k2)]))
  5020. }
  5021. } else {
  5022. for k2, v2 := range v {
  5023. if esep {
  5024. ee.WriteMapElemKey()
  5025. }
  5026. ee.EncodeUint(uint64(k2))
  5027. if esep {
  5028. ee.WriteMapElemValue()
  5029. }
  5030. ee.EncodeInt(int64(v2))
  5031. }
  5032. }
  5033. ee.WriteMapEnd()
  5034. }
  5035. func (e *Encoder) fastpathEncMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  5036. fastpathTV.EncMapUintInt8V(rv2i(rv).(map[uint]int8), e)
  5037. }
  5038. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, e *Encoder) {
  5039. ee, esep := e.e, e.hh.hasElemSeparators()
  5040. ee.WriteMapStart(len(v))
  5041. if e.h.Canonical {
  5042. v2 := make([]uint64, len(v))
  5043. var i int
  5044. for k, _ := range v {
  5045. v2[i] = uint64(k)
  5046. i++
  5047. }
  5048. sort.Sort(uintSlice(v2))
  5049. for _, k2 := range v2 {
  5050. if esep {
  5051. ee.WriteMapElemKey()
  5052. }
  5053. ee.EncodeUint(uint64(uint(k2)))
  5054. if esep {
  5055. ee.WriteMapElemValue()
  5056. }
  5057. ee.EncodeInt(int64(v[uint(k2)]))
  5058. }
  5059. } else {
  5060. for k2, v2 := range v {
  5061. if esep {
  5062. ee.WriteMapElemKey()
  5063. }
  5064. ee.EncodeUint(uint64(k2))
  5065. if esep {
  5066. ee.WriteMapElemValue()
  5067. }
  5068. ee.EncodeInt(int64(v2))
  5069. }
  5070. }
  5071. ee.WriteMapEnd()
  5072. }
  5073. func (e *Encoder) fastpathEncMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  5074. fastpathTV.EncMapUintInt16V(rv2i(rv).(map[uint]int16), e)
  5075. }
  5076. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, e *Encoder) {
  5077. ee, esep := e.e, e.hh.hasElemSeparators()
  5078. ee.WriteMapStart(len(v))
  5079. if e.h.Canonical {
  5080. v2 := make([]uint64, len(v))
  5081. var i int
  5082. for k, _ := range v {
  5083. v2[i] = uint64(k)
  5084. i++
  5085. }
  5086. sort.Sort(uintSlice(v2))
  5087. for _, k2 := range v2 {
  5088. if esep {
  5089. ee.WriteMapElemKey()
  5090. }
  5091. ee.EncodeUint(uint64(uint(k2)))
  5092. if esep {
  5093. ee.WriteMapElemValue()
  5094. }
  5095. ee.EncodeInt(int64(v[uint(k2)]))
  5096. }
  5097. } else {
  5098. for k2, v2 := range v {
  5099. if esep {
  5100. ee.WriteMapElemKey()
  5101. }
  5102. ee.EncodeUint(uint64(k2))
  5103. if esep {
  5104. ee.WriteMapElemValue()
  5105. }
  5106. ee.EncodeInt(int64(v2))
  5107. }
  5108. }
  5109. ee.WriteMapEnd()
  5110. }
  5111. func (e *Encoder) fastpathEncMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  5112. fastpathTV.EncMapUintInt32V(rv2i(rv).(map[uint]int32), e)
  5113. }
  5114. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, e *Encoder) {
  5115. ee, esep := e.e, e.hh.hasElemSeparators()
  5116. ee.WriteMapStart(len(v))
  5117. if e.h.Canonical {
  5118. v2 := make([]uint64, len(v))
  5119. var i int
  5120. for k, _ := range v {
  5121. v2[i] = uint64(k)
  5122. i++
  5123. }
  5124. sort.Sort(uintSlice(v2))
  5125. for _, k2 := range v2 {
  5126. if esep {
  5127. ee.WriteMapElemKey()
  5128. }
  5129. ee.EncodeUint(uint64(uint(k2)))
  5130. if esep {
  5131. ee.WriteMapElemValue()
  5132. }
  5133. ee.EncodeInt(int64(v[uint(k2)]))
  5134. }
  5135. } else {
  5136. for k2, v2 := range v {
  5137. if esep {
  5138. ee.WriteMapElemKey()
  5139. }
  5140. ee.EncodeUint(uint64(k2))
  5141. if esep {
  5142. ee.WriteMapElemValue()
  5143. }
  5144. ee.EncodeInt(int64(v2))
  5145. }
  5146. }
  5147. ee.WriteMapEnd()
  5148. }
  5149. func (e *Encoder) fastpathEncMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  5150. fastpathTV.EncMapUintInt64V(rv2i(rv).(map[uint]int64), e)
  5151. }
  5152. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, e *Encoder) {
  5153. ee, esep := e.e, e.hh.hasElemSeparators()
  5154. ee.WriteMapStart(len(v))
  5155. if e.h.Canonical {
  5156. v2 := make([]uint64, len(v))
  5157. var i int
  5158. for k, _ := range v {
  5159. v2[i] = uint64(k)
  5160. i++
  5161. }
  5162. sort.Sort(uintSlice(v2))
  5163. for _, k2 := range v2 {
  5164. if esep {
  5165. ee.WriteMapElemKey()
  5166. }
  5167. ee.EncodeUint(uint64(uint(k2)))
  5168. if esep {
  5169. ee.WriteMapElemValue()
  5170. }
  5171. ee.EncodeInt(int64(v[uint(k2)]))
  5172. }
  5173. } else {
  5174. for k2, v2 := range v {
  5175. if esep {
  5176. ee.WriteMapElemKey()
  5177. }
  5178. ee.EncodeUint(uint64(k2))
  5179. if esep {
  5180. ee.WriteMapElemValue()
  5181. }
  5182. ee.EncodeInt(int64(v2))
  5183. }
  5184. }
  5185. ee.WriteMapEnd()
  5186. }
  5187. func (e *Encoder) fastpathEncMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  5188. fastpathTV.EncMapUintFloat32V(rv2i(rv).(map[uint]float32), e)
  5189. }
  5190. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, e *Encoder) {
  5191. ee, esep := e.e, e.hh.hasElemSeparators()
  5192. ee.WriteMapStart(len(v))
  5193. if e.h.Canonical {
  5194. v2 := make([]uint64, len(v))
  5195. var i int
  5196. for k, _ := range v {
  5197. v2[i] = uint64(k)
  5198. i++
  5199. }
  5200. sort.Sort(uintSlice(v2))
  5201. for _, k2 := range v2 {
  5202. if esep {
  5203. ee.WriteMapElemKey()
  5204. }
  5205. ee.EncodeUint(uint64(uint(k2)))
  5206. if esep {
  5207. ee.WriteMapElemValue()
  5208. }
  5209. ee.EncodeFloat32(v[uint(k2)])
  5210. }
  5211. } else {
  5212. for k2, v2 := range v {
  5213. if esep {
  5214. ee.WriteMapElemKey()
  5215. }
  5216. ee.EncodeUint(uint64(k2))
  5217. if esep {
  5218. ee.WriteMapElemValue()
  5219. }
  5220. ee.EncodeFloat32(v2)
  5221. }
  5222. }
  5223. ee.WriteMapEnd()
  5224. }
  5225. func (e *Encoder) fastpathEncMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  5226. fastpathTV.EncMapUintFloat64V(rv2i(rv).(map[uint]float64), e)
  5227. }
  5228. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, e *Encoder) {
  5229. ee, esep := e.e, e.hh.hasElemSeparators()
  5230. ee.WriteMapStart(len(v))
  5231. if e.h.Canonical {
  5232. v2 := make([]uint64, len(v))
  5233. var i int
  5234. for k, _ := range v {
  5235. v2[i] = uint64(k)
  5236. i++
  5237. }
  5238. sort.Sort(uintSlice(v2))
  5239. for _, k2 := range v2 {
  5240. if esep {
  5241. ee.WriteMapElemKey()
  5242. }
  5243. ee.EncodeUint(uint64(uint(k2)))
  5244. if esep {
  5245. ee.WriteMapElemValue()
  5246. }
  5247. ee.EncodeFloat64(v[uint(k2)])
  5248. }
  5249. } else {
  5250. for k2, v2 := range v {
  5251. if esep {
  5252. ee.WriteMapElemKey()
  5253. }
  5254. ee.EncodeUint(uint64(k2))
  5255. if esep {
  5256. ee.WriteMapElemValue()
  5257. }
  5258. ee.EncodeFloat64(v2)
  5259. }
  5260. }
  5261. ee.WriteMapEnd()
  5262. }
  5263. func (e *Encoder) fastpathEncMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  5264. fastpathTV.EncMapUintBoolV(rv2i(rv).(map[uint]bool), e)
  5265. }
  5266. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, e *Encoder) {
  5267. ee, esep := e.e, e.hh.hasElemSeparators()
  5268. ee.WriteMapStart(len(v))
  5269. if e.h.Canonical {
  5270. v2 := make([]uint64, len(v))
  5271. var i int
  5272. for k, _ := range v {
  5273. v2[i] = uint64(k)
  5274. i++
  5275. }
  5276. sort.Sort(uintSlice(v2))
  5277. for _, k2 := range v2 {
  5278. if esep {
  5279. ee.WriteMapElemKey()
  5280. }
  5281. ee.EncodeUint(uint64(uint(k2)))
  5282. if esep {
  5283. ee.WriteMapElemValue()
  5284. }
  5285. ee.EncodeBool(v[uint(k2)])
  5286. }
  5287. } else {
  5288. for k2, v2 := range v {
  5289. if esep {
  5290. ee.WriteMapElemKey()
  5291. }
  5292. ee.EncodeUint(uint64(k2))
  5293. if esep {
  5294. ee.WriteMapElemValue()
  5295. }
  5296. ee.EncodeBool(v2)
  5297. }
  5298. }
  5299. ee.WriteMapEnd()
  5300. }
  5301. func (e *Encoder) fastpathEncMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  5302. fastpathTV.EncMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), e)
  5303. }
  5304. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, e *Encoder) {
  5305. ee, esep := e.e, e.hh.hasElemSeparators()
  5306. ee.WriteMapStart(len(v))
  5307. if e.h.Canonical {
  5308. v2 := make([]uint64, len(v))
  5309. var i int
  5310. for k, _ := range v {
  5311. v2[i] = uint64(k)
  5312. i++
  5313. }
  5314. sort.Sort(uintSlice(v2))
  5315. for _, k2 := range v2 {
  5316. if esep {
  5317. ee.WriteMapElemKey()
  5318. }
  5319. ee.EncodeUint(uint64(uint8(k2)))
  5320. if esep {
  5321. ee.WriteMapElemValue()
  5322. }
  5323. e.encode(v[uint8(k2)])
  5324. }
  5325. } else {
  5326. for k2, v2 := range v {
  5327. if esep {
  5328. ee.WriteMapElemKey()
  5329. }
  5330. ee.EncodeUint(uint64(k2))
  5331. if esep {
  5332. ee.WriteMapElemValue()
  5333. }
  5334. e.encode(v2)
  5335. }
  5336. }
  5337. ee.WriteMapEnd()
  5338. }
  5339. func (e *Encoder) fastpathEncMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  5340. fastpathTV.EncMapUint8StringV(rv2i(rv).(map[uint8]string), e)
  5341. }
  5342. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, e *Encoder) {
  5343. ee, esep := e.e, e.hh.hasElemSeparators()
  5344. ee.WriteMapStart(len(v))
  5345. if e.h.Canonical {
  5346. v2 := make([]uint64, len(v))
  5347. var i int
  5348. for k, _ := range v {
  5349. v2[i] = uint64(k)
  5350. i++
  5351. }
  5352. sort.Sort(uintSlice(v2))
  5353. for _, k2 := range v2 {
  5354. if esep {
  5355. ee.WriteMapElemKey()
  5356. }
  5357. ee.EncodeUint(uint64(uint8(k2)))
  5358. if esep {
  5359. ee.WriteMapElemValue()
  5360. }
  5361. ee.EncodeString(c_UTF8, v[uint8(k2)])
  5362. }
  5363. } else {
  5364. for k2, v2 := range v {
  5365. if esep {
  5366. ee.WriteMapElemKey()
  5367. }
  5368. ee.EncodeUint(uint64(k2))
  5369. if esep {
  5370. ee.WriteMapElemValue()
  5371. }
  5372. ee.EncodeString(c_UTF8, v2)
  5373. }
  5374. }
  5375. ee.WriteMapEnd()
  5376. }
  5377. func (e *Encoder) fastpathEncMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  5378. fastpathTV.EncMapUint8UintV(rv2i(rv).(map[uint8]uint), e)
  5379. }
  5380. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, e *Encoder) {
  5381. ee, esep := e.e, e.hh.hasElemSeparators()
  5382. ee.WriteMapStart(len(v))
  5383. if e.h.Canonical {
  5384. v2 := make([]uint64, len(v))
  5385. var i int
  5386. for k, _ := range v {
  5387. v2[i] = uint64(k)
  5388. i++
  5389. }
  5390. sort.Sort(uintSlice(v2))
  5391. for _, k2 := range v2 {
  5392. if esep {
  5393. ee.WriteMapElemKey()
  5394. }
  5395. ee.EncodeUint(uint64(uint8(k2)))
  5396. if esep {
  5397. ee.WriteMapElemValue()
  5398. }
  5399. ee.EncodeUint(uint64(v[uint8(k2)]))
  5400. }
  5401. } else {
  5402. for k2, v2 := range v {
  5403. if esep {
  5404. ee.WriteMapElemKey()
  5405. }
  5406. ee.EncodeUint(uint64(k2))
  5407. if esep {
  5408. ee.WriteMapElemValue()
  5409. }
  5410. ee.EncodeUint(uint64(v2))
  5411. }
  5412. }
  5413. ee.WriteMapEnd()
  5414. }
  5415. func (e *Encoder) fastpathEncMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  5416. fastpathTV.EncMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), e)
  5417. }
  5418. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, e *Encoder) {
  5419. ee, esep := e.e, e.hh.hasElemSeparators()
  5420. ee.WriteMapStart(len(v))
  5421. if e.h.Canonical {
  5422. v2 := make([]uint64, len(v))
  5423. var i int
  5424. for k, _ := range v {
  5425. v2[i] = uint64(k)
  5426. i++
  5427. }
  5428. sort.Sort(uintSlice(v2))
  5429. for _, k2 := range v2 {
  5430. if esep {
  5431. ee.WriteMapElemKey()
  5432. }
  5433. ee.EncodeUint(uint64(uint8(k2)))
  5434. if esep {
  5435. ee.WriteMapElemValue()
  5436. }
  5437. ee.EncodeUint(uint64(v[uint8(k2)]))
  5438. }
  5439. } else {
  5440. for k2, v2 := range v {
  5441. if esep {
  5442. ee.WriteMapElemKey()
  5443. }
  5444. ee.EncodeUint(uint64(k2))
  5445. if esep {
  5446. ee.WriteMapElemValue()
  5447. }
  5448. ee.EncodeUint(uint64(v2))
  5449. }
  5450. }
  5451. ee.WriteMapEnd()
  5452. }
  5453. func (e *Encoder) fastpathEncMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  5454. fastpathTV.EncMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), e)
  5455. }
  5456. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, e *Encoder) {
  5457. ee, esep := e.e, e.hh.hasElemSeparators()
  5458. ee.WriteMapStart(len(v))
  5459. if e.h.Canonical {
  5460. v2 := make([]uint64, len(v))
  5461. var i int
  5462. for k, _ := range v {
  5463. v2[i] = uint64(k)
  5464. i++
  5465. }
  5466. sort.Sort(uintSlice(v2))
  5467. for _, k2 := range v2 {
  5468. if esep {
  5469. ee.WriteMapElemKey()
  5470. }
  5471. ee.EncodeUint(uint64(uint8(k2)))
  5472. if esep {
  5473. ee.WriteMapElemValue()
  5474. }
  5475. ee.EncodeUint(uint64(v[uint8(k2)]))
  5476. }
  5477. } else {
  5478. for k2, v2 := range v {
  5479. if esep {
  5480. ee.WriteMapElemKey()
  5481. }
  5482. ee.EncodeUint(uint64(k2))
  5483. if esep {
  5484. ee.WriteMapElemValue()
  5485. }
  5486. ee.EncodeUint(uint64(v2))
  5487. }
  5488. }
  5489. ee.WriteMapEnd()
  5490. }
  5491. func (e *Encoder) fastpathEncMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  5492. fastpathTV.EncMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), e)
  5493. }
  5494. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, e *Encoder) {
  5495. ee, esep := e.e, e.hh.hasElemSeparators()
  5496. ee.WriteMapStart(len(v))
  5497. if e.h.Canonical {
  5498. v2 := make([]uint64, len(v))
  5499. var i int
  5500. for k, _ := range v {
  5501. v2[i] = uint64(k)
  5502. i++
  5503. }
  5504. sort.Sort(uintSlice(v2))
  5505. for _, k2 := range v2 {
  5506. if esep {
  5507. ee.WriteMapElemKey()
  5508. }
  5509. ee.EncodeUint(uint64(uint8(k2)))
  5510. if esep {
  5511. ee.WriteMapElemValue()
  5512. }
  5513. ee.EncodeUint(uint64(v[uint8(k2)]))
  5514. }
  5515. } else {
  5516. for k2, v2 := range v {
  5517. if esep {
  5518. ee.WriteMapElemKey()
  5519. }
  5520. ee.EncodeUint(uint64(k2))
  5521. if esep {
  5522. ee.WriteMapElemValue()
  5523. }
  5524. ee.EncodeUint(uint64(v2))
  5525. }
  5526. }
  5527. ee.WriteMapEnd()
  5528. }
  5529. func (e *Encoder) fastpathEncMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  5530. fastpathTV.EncMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), e)
  5531. }
  5532. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, e *Encoder) {
  5533. ee, esep := e.e, e.hh.hasElemSeparators()
  5534. ee.WriteMapStart(len(v))
  5535. if e.h.Canonical {
  5536. v2 := make([]uint64, len(v))
  5537. var i int
  5538. for k, _ := range v {
  5539. v2[i] = uint64(k)
  5540. i++
  5541. }
  5542. sort.Sort(uintSlice(v2))
  5543. for _, k2 := range v2 {
  5544. if esep {
  5545. ee.WriteMapElemKey()
  5546. }
  5547. ee.EncodeUint(uint64(uint8(k2)))
  5548. if esep {
  5549. ee.WriteMapElemValue()
  5550. }
  5551. ee.EncodeUint(uint64(v[uint8(k2)]))
  5552. }
  5553. } else {
  5554. for k2, v2 := range v {
  5555. if esep {
  5556. ee.WriteMapElemKey()
  5557. }
  5558. ee.EncodeUint(uint64(k2))
  5559. if esep {
  5560. ee.WriteMapElemValue()
  5561. }
  5562. ee.EncodeUint(uint64(v2))
  5563. }
  5564. }
  5565. ee.WriteMapEnd()
  5566. }
  5567. func (e *Encoder) fastpathEncMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  5568. fastpathTV.EncMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), e)
  5569. }
  5570. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, e *Encoder) {
  5571. ee, esep := e.e, e.hh.hasElemSeparators()
  5572. ee.WriteMapStart(len(v))
  5573. if e.h.Canonical {
  5574. v2 := make([]uint64, len(v))
  5575. var i int
  5576. for k, _ := range v {
  5577. v2[i] = uint64(k)
  5578. i++
  5579. }
  5580. sort.Sort(uintSlice(v2))
  5581. for _, k2 := range v2 {
  5582. if esep {
  5583. ee.WriteMapElemKey()
  5584. }
  5585. ee.EncodeUint(uint64(uint8(k2)))
  5586. if esep {
  5587. ee.WriteMapElemValue()
  5588. }
  5589. e.encode(v[uint8(k2)])
  5590. }
  5591. } else {
  5592. for k2, v2 := range v {
  5593. if esep {
  5594. ee.WriteMapElemKey()
  5595. }
  5596. ee.EncodeUint(uint64(k2))
  5597. if esep {
  5598. ee.WriteMapElemValue()
  5599. }
  5600. e.encode(v2)
  5601. }
  5602. }
  5603. ee.WriteMapEnd()
  5604. }
  5605. func (e *Encoder) fastpathEncMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  5606. fastpathTV.EncMapUint8IntV(rv2i(rv).(map[uint8]int), e)
  5607. }
  5608. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, e *Encoder) {
  5609. ee, esep := e.e, e.hh.hasElemSeparators()
  5610. ee.WriteMapStart(len(v))
  5611. if e.h.Canonical {
  5612. v2 := make([]uint64, len(v))
  5613. var i int
  5614. for k, _ := range v {
  5615. v2[i] = uint64(k)
  5616. i++
  5617. }
  5618. sort.Sort(uintSlice(v2))
  5619. for _, k2 := range v2 {
  5620. if esep {
  5621. ee.WriteMapElemKey()
  5622. }
  5623. ee.EncodeUint(uint64(uint8(k2)))
  5624. if esep {
  5625. ee.WriteMapElemValue()
  5626. }
  5627. ee.EncodeInt(int64(v[uint8(k2)]))
  5628. }
  5629. } else {
  5630. for k2, v2 := range v {
  5631. if esep {
  5632. ee.WriteMapElemKey()
  5633. }
  5634. ee.EncodeUint(uint64(k2))
  5635. if esep {
  5636. ee.WriteMapElemValue()
  5637. }
  5638. ee.EncodeInt(int64(v2))
  5639. }
  5640. }
  5641. ee.WriteMapEnd()
  5642. }
  5643. func (e *Encoder) fastpathEncMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  5644. fastpathTV.EncMapUint8Int8V(rv2i(rv).(map[uint8]int8), e)
  5645. }
  5646. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, e *Encoder) {
  5647. ee, esep := e.e, e.hh.hasElemSeparators()
  5648. ee.WriteMapStart(len(v))
  5649. if e.h.Canonical {
  5650. v2 := make([]uint64, len(v))
  5651. var i int
  5652. for k, _ := range v {
  5653. v2[i] = uint64(k)
  5654. i++
  5655. }
  5656. sort.Sort(uintSlice(v2))
  5657. for _, k2 := range v2 {
  5658. if esep {
  5659. ee.WriteMapElemKey()
  5660. }
  5661. ee.EncodeUint(uint64(uint8(k2)))
  5662. if esep {
  5663. ee.WriteMapElemValue()
  5664. }
  5665. ee.EncodeInt(int64(v[uint8(k2)]))
  5666. }
  5667. } else {
  5668. for k2, v2 := range v {
  5669. if esep {
  5670. ee.WriteMapElemKey()
  5671. }
  5672. ee.EncodeUint(uint64(k2))
  5673. if esep {
  5674. ee.WriteMapElemValue()
  5675. }
  5676. ee.EncodeInt(int64(v2))
  5677. }
  5678. }
  5679. ee.WriteMapEnd()
  5680. }
  5681. func (e *Encoder) fastpathEncMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  5682. fastpathTV.EncMapUint8Int16V(rv2i(rv).(map[uint8]int16), e)
  5683. }
  5684. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, e *Encoder) {
  5685. ee, esep := e.e, e.hh.hasElemSeparators()
  5686. ee.WriteMapStart(len(v))
  5687. if e.h.Canonical {
  5688. v2 := make([]uint64, len(v))
  5689. var i int
  5690. for k, _ := range v {
  5691. v2[i] = uint64(k)
  5692. i++
  5693. }
  5694. sort.Sort(uintSlice(v2))
  5695. for _, k2 := range v2 {
  5696. if esep {
  5697. ee.WriteMapElemKey()
  5698. }
  5699. ee.EncodeUint(uint64(uint8(k2)))
  5700. if esep {
  5701. ee.WriteMapElemValue()
  5702. }
  5703. ee.EncodeInt(int64(v[uint8(k2)]))
  5704. }
  5705. } else {
  5706. for k2, v2 := range v {
  5707. if esep {
  5708. ee.WriteMapElemKey()
  5709. }
  5710. ee.EncodeUint(uint64(k2))
  5711. if esep {
  5712. ee.WriteMapElemValue()
  5713. }
  5714. ee.EncodeInt(int64(v2))
  5715. }
  5716. }
  5717. ee.WriteMapEnd()
  5718. }
  5719. func (e *Encoder) fastpathEncMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  5720. fastpathTV.EncMapUint8Int32V(rv2i(rv).(map[uint8]int32), e)
  5721. }
  5722. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, e *Encoder) {
  5723. ee, esep := e.e, e.hh.hasElemSeparators()
  5724. ee.WriteMapStart(len(v))
  5725. if e.h.Canonical {
  5726. v2 := make([]uint64, len(v))
  5727. var i int
  5728. for k, _ := range v {
  5729. v2[i] = uint64(k)
  5730. i++
  5731. }
  5732. sort.Sort(uintSlice(v2))
  5733. for _, k2 := range v2 {
  5734. if esep {
  5735. ee.WriteMapElemKey()
  5736. }
  5737. ee.EncodeUint(uint64(uint8(k2)))
  5738. if esep {
  5739. ee.WriteMapElemValue()
  5740. }
  5741. ee.EncodeInt(int64(v[uint8(k2)]))
  5742. }
  5743. } else {
  5744. for k2, v2 := range v {
  5745. if esep {
  5746. ee.WriteMapElemKey()
  5747. }
  5748. ee.EncodeUint(uint64(k2))
  5749. if esep {
  5750. ee.WriteMapElemValue()
  5751. }
  5752. ee.EncodeInt(int64(v2))
  5753. }
  5754. }
  5755. ee.WriteMapEnd()
  5756. }
  5757. func (e *Encoder) fastpathEncMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  5758. fastpathTV.EncMapUint8Int64V(rv2i(rv).(map[uint8]int64), e)
  5759. }
  5760. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, e *Encoder) {
  5761. ee, esep := e.e, e.hh.hasElemSeparators()
  5762. ee.WriteMapStart(len(v))
  5763. if e.h.Canonical {
  5764. v2 := make([]uint64, len(v))
  5765. var i int
  5766. for k, _ := range v {
  5767. v2[i] = uint64(k)
  5768. i++
  5769. }
  5770. sort.Sort(uintSlice(v2))
  5771. for _, k2 := range v2 {
  5772. if esep {
  5773. ee.WriteMapElemKey()
  5774. }
  5775. ee.EncodeUint(uint64(uint8(k2)))
  5776. if esep {
  5777. ee.WriteMapElemValue()
  5778. }
  5779. ee.EncodeInt(int64(v[uint8(k2)]))
  5780. }
  5781. } else {
  5782. for k2, v2 := range v {
  5783. if esep {
  5784. ee.WriteMapElemKey()
  5785. }
  5786. ee.EncodeUint(uint64(k2))
  5787. if esep {
  5788. ee.WriteMapElemValue()
  5789. }
  5790. ee.EncodeInt(int64(v2))
  5791. }
  5792. }
  5793. ee.WriteMapEnd()
  5794. }
  5795. func (e *Encoder) fastpathEncMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  5796. fastpathTV.EncMapUint8Float32V(rv2i(rv).(map[uint8]float32), e)
  5797. }
  5798. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, e *Encoder) {
  5799. ee, esep := e.e, e.hh.hasElemSeparators()
  5800. ee.WriteMapStart(len(v))
  5801. if e.h.Canonical {
  5802. v2 := make([]uint64, len(v))
  5803. var i int
  5804. for k, _ := range v {
  5805. v2[i] = uint64(k)
  5806. i++
  5807. }
  5808. sort.Sort(uintSlice(v2))
  5809. for _, k2 := range v2 {
  5810. if esep {
  5811. ee.WriteMapElemKey()
  5812. }
  5813. ee.EncodeUint(uint64(uint8(k2)))
  5814. if esep {
  5815. ee.WriteMapElemValue()
  5816. }
  5817. ee.EncodeFloat32(v[uint8(k2)])
  5818. }
  5819. } else {
  5820. for k2, v2 := range v {
  5821. if esep {
  5822. ee.WriteMapElemKey()
  5823. }
  5824. ee.EncodeUint(uint64(k2))
  5825. if esep {
  5826. ee.WriteMapElemValue()
  5827. }
  5828. ee.EncodeFloat32(v2)
  5829. }
  5830. }
  5831. ee.WriteMapEnd()
  5832. }
  5833. func (e *Encoder) fastpathEncMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  5834. fastpathTV.EncMapUint8Float64V(rv2i(rv).(map[uint8]float64), e)
  5835. }
  5836. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, e *Encoder) {
  5837. ee, esep := e.e, e.hh.hasElemSeparators()
  5838. ee.WriteMapStart(len(v))
  5839. if e.h.Canonical {
  5840. v2 := make([]uint64, len(v))
  5841. var i int
  5842. for k, _ := range v {
  5843. v2[i] = uint64(k)
  5844. i++
  5845. }
  5846. sort.Sort(uintSlice(v2))
  5847. for _, k2 := range v2 {
  5848. if esep {
  5849. ee.WriteMapElemKey()
  5850. }
  5851. ee.EncodeUint(uint64(uint8(k2)))
  5852. if esep {
  5853. ee.WriteMapElemValue()
  5854. }
  5855. ee.EncodeFloat64(v[uint8(k2)])
  5856. }
  5857. } else {
  5858. for k2, v2 := range v {
  5859. if esep {
  5860. ee.WriteMapElemKey()
  5861. }
  5862. ee.EncodeUint(uint64(k2))
  5863. if esep {
  5864. ee.WriteMapElemValue()
  5865. }
  5866. ee.EncodeFloat64(v2)
  5867. }
  5868. }
  5869. ee.WriteMapEnd()
  5870. }
  5871. func (e *Encoder) fastpathEncMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  5872. fastpathTV.EncMapUint8BoolV(rv2i(rv).(map[uint8]bool), e)
  5873. }
  5874. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, e *Encoder) {
  5875. ee, esep := e.e, e.hh.hasElemSeparators()
  5876. ee.WriteMapStart(len(v))
  5877. if e.h.Canonical {
  5878. v2 := make([]uint64, len(v))
  5879. var i int
  5880. for k, _ := range v {
  5881. v2[i] = uint64(k)
  5882. i++
  5883. }
  5884. sort.Sort(uintSlice(v2))
  5885. for _, k2 := range v2 {
  5886. if esep {
  5887. ee.WriteMapElemKey()
  5888. }
  5889. ee.EncodeUint(uint64(uint8(k2)))
  5890. if esep {
  5891. ee.WriteMapElemValue()
  5892. }
  5893. ee.EncodeBool(v[uint8(k2)])
  5894. }
  5895. } else {
  5896. for k2, v2 := range v {
  5897. if esep {
  5898. ee.WriteMapElemKey()
  5899. }
  5900. ee.EncodeUint(uint64(k2))
  5901. if esep {
  5902. ee.WriteMapElemValue()
  5903. }
  5904. ee.EncodeBool(v2)
  5905. }
  5906. }
  5907. ee.WriteMapEnd()
  5908. }
  5909. func (e *Encoder) fastpathEncMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  5910. fastpathTV.EncMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), e)
  5911. }
  5912. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, e *Encoder) {
  5913. ee, esep := e.e, e.hh.hasElemSeparators()
  5914. ee.WriteMapStart(len(v))
  5915. if e.h.Canonical {
  5916. v2 := make([]uint64, len(v))
  5917. var i int
  5918. for k, _ := range v {
  5919. v2[i] = uint64(k)
  5920. i++
  5921. }
  5922. sort.Sort(uintSlice(v2))
  5923. for _, k2 := range v2 {
  5924. if esep {
  5925. ee.WriteMapElemKey()
  5926. }
  5927. ee.EncodeUint(uint64(uint16(k2)))
  5928. if esep {
  5929. ee.WriteMapElemValue()
  5930. }
  5931. e.encode(v[uint16(k2)])
  5932. }
  5933. } else {
  5934. for k2, v2 := range v {
  5935. if esep {
  5936. ee.WriteMapElemKey()
  5937. }
  5938. ee.EncodeUint(uint64(k2))
  5939. if esep {
  5940. ee.WriteMapElemValue()
  5941. }
  5942. e.encode(v2)
  5943. }
  5944. }
  5945. ee.WriteMapEnd()
  5946. }
  5947. func (e *Encoder) fastpathEncMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  5948. fastpathTV.EncMapUint16StringV(rv2i(rv).(map[uint16]string), e)
  5949. }
  5950. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, e *Encoder) {
  5951. ee, esep := e.e, e.hh.hasElemSeparators()
  5952. ee.WriteMapStart(len(v))
  5953. if e.h.Canonical {
  5954. v2 := make([]uint64, len(v))
  5955. var i int
  5956. for k, _ := range v {
  5957. v2[i] = uint64(k)
  5958. i++
  5959. }
  5960. sort.Sort(uintSlice(v2))
  5961. for _, k2 := range v2 {
  5962. if esep {
  5963. ee.WriteMapElemKey()
  5964. }
  5965. ee.EncodeUint(uint64(uint16(k2)))
  5966. if esep {
  5967. ee.WriteMapElemValue()
  5968. }
  5969. ee.EncodeString(c_UTF8, v[uint16(k2)])
  5970. }
  5971. } else {
  5972. for k2, v2 := range v {
  5973. if esep {
  5974. ee.WriteMapElemKey()
  5975. }
  5976. ee.EncodeUint(uint64(k2))
  5977. if esep {
  5978. ee.WriteMapElemValue()
  5979. }
  5980. ee.EncodeString(c_UTF8, v2)
  5981. }
  5982. }
  5983. ee.WriteMapEnd()
  5984. }
  5985. func (e *Encoder) fastpathEncMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  5986. fastpathTV.EncMapUint16UintV(rv2i(rv).(map[uint16]uint), e)
  5987. }
  5988. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, e *Encoder) {
  5989. ee, esep := e.e, e.hh.hasElemSeparators()
  5990. ee.WriteMapStart(len(v))
  5991. if e.h.Canonical {
  5992. v2 := make([]uint64, len(v))
  5993. var i int
  5994. for k, _ := range v {
  5995. v2[i] = uint64(k)
  5996. i++
  5997. }
  5998. sort.Sort(uintSlice(v2))
  5999. for _, k2 := range v2 {
  6000. if esep {
  6001. ee.WriteMapElemKey()
  6002. }
  6003. ee.EncodeUint(uint64(uint16(k2)))
  6004. if esep {
  6005. ee.WriteMapElemValue()
  6006. }
  6007. ee.EncodeUint(uint64(v[uint16(k2)]))
  6008. }
  6009. } else {
  6010. for k2, v2 := range v {
  6011. if esep {
  6012. ee.WriteMapElemKey()
  6013. }
  6014. ee.EncodeUint(uint64(k2))
  6015. if esep {
  6016. ee.WriteMapElemValue()
  6017. }
  6018. ee.EncodeUint(uint64(v2))
  6019. }
  6020. }
  6021. ee.WriteMapEnd()
  6022. }
  6023. func (e *Encoder) fastpathEncMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  6024. fastpathTV.EncMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), e)
  6025. }
  6026. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, e *Encoder) {
  6027. ee, esep := e.e, e.hh.hasElemSeparators()
  6028. ee.WriteMapStart(len(v))
  6029. if e.h.Canonical {
  6030. v2 := make([]uint64, len(v))
  6031. var i int
  6032. for k, _ := range v {
  6033. v2[i] = uint64(k)
  6034. i++
  6035. }
  6036. sort.Sort(uintSlice(v2))
  6037. for _, k2 := range v2 {
  6038. if esep {
  6039. ee.WriteMapElemKey()
  6040. }
  6041. ee.EncodeUint(uint64(uint16(k2)))
  6042. if esep {
  6043. ee.WriteMapElemValue()
  6044. }
  6045. ee.EncodeUint(uint64(v[uint16(k2)]))
  6046. }
  6047. } else {
  6048. for k2, v2 := range v {
  6049. if esep {
  6050. ee.WriteMapElemKey()
  6051. }
  6052. ee.EncodeUint(uint64(k2))
  6053. if esep {
  6054. ee.WriteMapElemValue()
  6055. }
  6056. ee.EncodeUint(uint64(v2))
  6057. }
  6058. }
  6059. ee.WriteMapEnd()
  6060. }
  6061. func (e *Encoder) fastpathEncMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  6062. fastpathTV.EncMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), e)
  6063. }
  6064. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, e *Encoder) {
  6065. ee, esep := e.e, e.hh.hasElemSeparators()
  6066. ee.WriteMapStart(len(v))
  6067. if e.h.Canonical {
  6068. v2 := make([]uint64, len(v))
  6069. var i int
  6070. for k, _ := range v {
  6071. v2[i] = uint64(k)
  6072. i++
  6073. }
  6074. sort.Sort(uintSlice(v2))
  6075. for _, k2 := range v2 {
  6076. if esep {
  6077. ee.WriteMapElemKey()
  6078. }
  6079. ee.EncodeUint(uint64(uint16(k2)))
  6080. if esep {
  6081. ee.WriteMapElemValue()
  6082. }
  6083. ee.EncodeUint(uint64(v[uint16(k2)]))
  6084. }
  6085. } else {
  6086. for k2, v2 := range v {
  6087. if esep {
  6088. ee.WriteMapElemKey()
  6089. }
  6090. ee.EncodeUint(uint64(k2))
  6091. if esep {
  6092. ee.WriteMapElemValue()
  6093. }
  6094. ee.EncodeUint(uint64(v2))
  6095. }
  6096. }
  6097. ee.WriteMapEnd()
  6098. }
  6099. func (e *Encoder) fastpathEncMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  6100. fastpathTV.EncMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), e)
  6101. }
  6102. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, e *Encoder) {
  6103. ee, esep := e.e, e.hh.hasElemSeparators()
  6104. ee.WriteMapStart(len(v))
  6105. if e.h.Canonical {
  6106. v2 := make([]uint64, len(v))
  6107. var i int
  6108. for k, _ := range v {
  6109. v2[i] = uint64(k)
  6110. i++
  6111. }
  6112. sort.Sort(uintSlice(v2))
  6113. for _, k2 := range v2 {
  6114. if esep {
  6115. ee.WriteMapElemKey()
  6116. }
  6117. ee.EncodeUint(uint64(uint16(k2)))
  6118. if esep {
  6119. ee.WriteMapElemValue()
  6120. }
  6121. ee.EncodeUint(uint64(v[uint16(k2)]))
  6122. }
  6123. } else {
  6124. for k2, v2 := range v {
  6125. if esep {
  6126. ee.WriteMapElemKey()
  6127. }
  6128. ee.EncodeUint(uint64(k2))
  6129. if esep {
  6130. ee.WriteMapElemValue()
  6131. }
  6132. ee.EncodeUint(uint64(v2))
  6133. }
  6134. }
  6135. ee.WriteMapEnd()
  6136. }
  6137. func (e *Encoder) fastpathEncMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  6138. fastpathTV.EncMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), e)
  6139. }
  6140. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, e *Encoder) {
  6141. ee, esep := e.e, e.hh.hasElemSeparators()
  6142. ee.WriteMapStart(len(v))
  6143. if e.h.Canonical {
  6144. v2 := make([]uint64, len(v))
  6145. var i int
  6146. for k, _ := range v {
  6147. v2[i] = uint64(k)
  6148. i++
  6149. }
  6150. sort.Sort(uintSlice(v2))
  6151. for _, k2 := range v2 {
  6152. if esep {
  6153. ee.WriteMapElemKey()
  6154. }
  6155. ee.EncodeUint(uint64(uint16(k2)))
  6156. if esep {
  6157. ee.WriteMapElemValue()
  6158. }
  6159. ee.EncodeUint(uint64(v[uint16(k2)]))
  6160. }
  6161. } else {
  6162. for k2, v2 := range v {
  6163. if esep {
  6164. ee.WriteMapElemKey()
  6165. }
  6166. ee.EncodeUint(uint64(k2))
  6167. if esep {
  6168. ee.WriteMapElemValue()
  6169. }
  6170. ee.EncodeUint(uint64(v2))
  6171. }
  6172. }
  6173. ee.WriteMapEnd()
  6174. }
  6175. func (e *Encoder) fastpathEncMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  6176. fastpathTV.EncMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), e)
  6177. }
  6178. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, e *Encoder) {
  6179. ee, esep := e.e, e.hh.hasElemSeparators()
  6180. ee.WriteMapStart(len(v))
  6181. if e.h.Canonical {
  6182. v2 := make([]uint64, len(v))
  6183. var i int
  6184. for k, _ := range v {
  6185. v2[i] = uint64(k)
  6186. i++
  6187. }
  6188. sort.Sort(uintSlice(v2))
  6189. for _, k2 := range v2 {
  6190. if esep {
  6191. ee.WriteMapElemKey()
  6192. }
  6193. ee.EncodeUint(uint64(uint16(k2)))
  6194. if esep {
  6195. ee.WriteMapElemValue()
  6196. }
  6197. e.encode(v[uint16(k2)])
  6198. }
  6199. } else {
  6200. for k2, v2 := range v {
  6201. if esep {
  6202. ee.WriteMapElemKey()
  6203. }
  6204. ee.EncodeUint(uint64(k2))
  6205. if esep {
  6206. ee.WriteMapElemValue()
  6207. }
  6208. e.encode(v2)
  6209. }
  6210. }
  6211. ee.WriteMapEnd()
  6212. }
  6213. func (e *Encoder) fastpathEncMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  6214. fastpathTV.EncMapUint16IntV(rv2i(rv).(map[uint16]int), e)
  6215. }
  6216. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, e *Encoder) {
  6217. ee, esep := e.e, e.hh.hasElemSeparators()
  6218. ee.WriteMapStart(len(v))
  6219. if e.h.Canonical {
  6220. v2 := make([]uint64, len(v))
  6221. var i int
  6222. for k, _ := range v {
  6223. v2[i] = uint64(k)
  6224. i++
  6225. }
  6226. sort.Sort(uintSlice(v2))
  6227. for _, k2 := range v2 {
  6228. if esep {
  6229. ee.WriteMapElemKey()
  6230. }
  6231. ee.EncodeUint(uint64(uint16(k2)))
  6232. if esep {
  6233. ee.WriteMapElemValue()
  6234. }
  6235. ee.EncodeInt(int64(v[uint16(k2)]))
  6236. }
  6237. } else {
  6238. for k2, v2 := range v {
  6239. if esep {
  6240. ee.WriteMapElemKey()
  6241. }
  6242. ee.EncodeUint(uint64(k2))
  6243. if esep {
  6244. ee.WriteMapElemValue()
  6245. }
  6246. ee.EncodeInt(int64(v2))
  6247. }
  6248. }
  6249. ee.WriteMapEnd()
  6250. }
  6251. func (e *Encoder) fastpathEncMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  6252. fastpathTV.EncMapUint16Int8V(rv2i(rv).(map[uint16]int8), e)
  6253. }
  6254. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, e *Encoder) {
  6255. ee, esep := e.e, e.hh.hasElemSeparators()
  6256. ee.WriteMapStart(len(v))
  6257. if e.h.Canonical {
  6258. v2 := make([]uint64, len(v))
  6259. var i int
  6260. for k, _ := range v {
  6261. v2[i] = uint64(k)
  6262. i++
  6263. }
  6264. sort.Sort(uintSlice(v2))
  6265. for _, k2 := range v2 {
  6266. if esep {
  6267. ee.WriteMapElemKey()
  6268. }
  6269. ee.EncodeUint(uint64(uint16(k2)))
  6270. if esep {
  6271. ee.WriteMapElemValue()
  6272. }
  6273. ee.EncodeInt(int64(v[uint16(k2)]))
  6274. }
  6275. } else {
  6276. for k2, v2 := range v {
  6277. if esep {
  6278. ee.WriteMapElemKey()
  6279. }
  6280. ee.EncodeUint(uint64(k2))
  6281. if esep {
  6282. ee.WriteMapElemValue()
  6283. }
  6284. ee.EncodeInt(int64(v2))
  6285. }
  6286. }
  6287. ee.WriteMapEnd()
  6288. }
  6289. func (e *Encoder) fastpathEncMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  6290. fastpathTV.EncMapUint16Int16V(rv2i(rv).(map[uint16]int16), e)
  6291. }
  6292. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, e *Encoder) {
  6293. ee, esep := e.e, e.hh.hasElemSeparators()
  6294. ee.WriteMapStart(len(v))
  6295. if e.h.Canonical {
  6296. v2 := make([]uint64, len(v))
  6297. var i int
  6298. for k, _ := range v {
  6299. v2[i] = uint64(k)
  6300. i++
  6301. }
  6302. sort.Sort(uintSlice(v2))
  6303. for _, k2 := range v2 {
  6304. if esep {
  6305. ee.WriteMapElemKey()
  6306. }
  6307. ee.EncodeUint(uint64(uint16(k2)))
  6308. if esep {
  6309. ee.WriteMapElemValue()
  6310. }
  6311. ee.EncodeInt(int64(v[uint16(k2)]))
  6312. }
  6313. } else {
  6314. for k2, v2 := range v {
  6315. if esep {
  6316. ee.WriteMapElemKey()
  6317. }
  6318. ee.EncodeUint(uint64(k2))
  6319. if esep {
  6320. ee.WriteMapElemValue()
  6321. }
  6322. ee.EncodeInt(int64(v2))
  6323. }
  6324. }
  6325. ee.WriteMapEnd()
  6326. }
  6327. func (e *Encoder) fastpathEncMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  6328. fastpathTV.EncMapUint16Int32V(rv2i(rv).(map[uint16]int32), e)
  6329. }
  6330. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, e *Encoder) {
  6331. ee, esep := e.e, e.hh.hasElemSeparators()
  6332. ee.WriteMapStart(len(v))
  6333. if e.h.Canonical {
  6334. v2 := make([]uint64, len(v))
  6335. var i int
  6336. for k, _ := range v {
  6337. v2[i] = uint64(k)
  6338. i++
  6339. }
  6340. sort.Sort(uintSlice(v2))
  6341. for _, k2 := range v2 {
  6342. if esep {
  6343. ee.WriteMapElemKey()
  6344. }
  6345. ee.EncodeUint(uint64(uint16(k2)))
  6346. if esep {
  6347. ee.WriteMapElemValue()
  6348. }
  6349. ee.EncodeInt(int64(v[uint16(k2)]))
  6350. }
  6351. } else {
  6352. for k2, v2 := range v {
  6353. if esep {
  6354. ee.WriteMapElemKey()
  6355. }
  6356. ee.EncodeUint(uint64(k2))
  6357. if esep {
  6358. ee.WriteMapElemValue()
  6359. }
  6360. ee.EncodeInt(int64(v2))
  6361. }
  6362. }
  6363. ee.WriteMapEnd()
  6364. }
  6365. func (e *Encoder) fastpathEncMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  6366. fastpathTV.EncMapUint16Int64V(rv2i(rv).(map[uint16]int64), e)
  6367. }
  6368. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, e *Encoder) {
  6369. ee, esep := e.e, e.hh.hasElemSeparators()
  6370. ee.WriteMapStart(len(v))
  6371. if e.h.Canonical {
  6372. v2 := make([]uint64, len(v))
  6373. var i int
  6374. for k, _ := range v {
  6375. v2[i] = uint64(k)
  6376. i++
  6377. }
  6378. sort.Sort(uintSlice(v2))
  6379. for _, k2 := range v2 {
  6380. if esep {
  6381. ee.WriteMapElemKey()
  6382. }
  6383. ee.EncodeUint(uint64(uint16(k2)))
  6384. if esep {
  6385. ee.WriteMapElemValue()
  6386. }
  6387. ee.EncodeInt(int64(v[uint16(k2)]))
  6388. }
  6389. } else {
  6390. for k2, v2 := range v {
  6391. if esep {
  6392. ee.WriteMapElemKey()
  6393. }
  6394. ee.EncodeUint(uint64(k2))
  6395. if esep {
  6396. ee.WriteMapElemValue()
  6397. }
  6398. ee.EncodeInt(int64(v2))
  6399. }
  6400. }
  6401. ee.WriteMapEnd()
  6402. }
  6403. func (e *Encoder) fastpathEncMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  6404. fastpathTV.EncMapUint16Float32V(rv2i(rv).(map[uint16]float32), e)
  6405. }
  6406. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, e *Encoder) {
  6407. ee, esep := e.e, e.hh.hasElemSeparators()
  6408. ee.WriteMapStart(len(v))
  6409. if e.h.Canonical {
  6410. v2 := make([]uint64, len(v))
  6411. var i int
  6412. for k, _ := range v {
  6413. v2[i] = uint64(k)
  6414. i++
  6415. }
  6416. sort.Sort(uintSlice(v2))
  6417. for _, k2 := range v2 {
  6418. if esep {
  6419. ee.WriteMapElemKey()
  6420. }
  6421. ee.EncodeUint(uint64(uint16(k2)))
  6422. if esep {
  6423. ee.WriteMapElemValue()
  6424. }
  6425. ee.EncodeFloat32(v[uint16(k2)])
  6426. }
  6427. } else {
  6428. for k2, v2 := range v {
  6429. if esep {
  6430. ee.WriteMapElemKey()
  6431. }
  6432. ee.EncodeUint(uint64(k2))
  6433. if esep {
  6434. ee.WriteMapElemValue()
  6435. }
  6436. ee.EncodeFloat32(v2)
  6437. }
  6438. }
  6439. ee.WriteMapEnd()
  6440. }
  6441. func (e *Encoder) fastpathEncMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  6442. fastpathTV.EncMapUint16Float64V(rv2i(rv).(map[uint16]float64), e)
  6443. }
  6444. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, e *Encoder) {
  6445. ee, esep := e.e, e.hh.hasElemSeparators()
  6446. ee.WriteMapStart(len(v))
  6447. if e.h.Canonical {
  6448. v2 := make([]uint64, len(v))
  6449. var i int
  6450. for k, _ := range v {
  6451. v2[i] = uint64(k)
  6452. i++
  6453. }
  6454. sort.Sort(uintSlice(v2))
  6455. for _, k2 := range v2 {
  6456. if esep {
  6457. ee.WriteMapElemKey()
  6458. }
  6459. ee.EncodeUint(uint64(uint16(k2)))
  6460. if esep {
  6461. ee.WriteMapElemValue()
  6462. }
  6463. ee.EncodeFloat64(v[uint16(k2)])
  6464. }
  6465. } else {
  6466. for k2, v2 := range v {
  6467. if esep {
  6468. ee.WriteMapElemKey()
  6469. }
  6470. ee.EncodeUint(uint64(k2))
  6471. if esep {
  6472. ee.WriteMapElemValue()
  6473. }
  6474. ee.EncodeFloat64(v2)
  6475. }
  6476. }
  6477. ee.WriteMapEnd()
  6478. }
  6479. func (e *Encoder) fastpathEncMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  6480. fastpathTV.EncMapUint16BoolV(rv2i(rv).(map[uint16]bool), e)
  6481. }
  6482. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, e *Encoder) {
  6483. ee, esep := e.e, e.hh.hasElemSeparators()
  6484. ee.WriteMapStart(len(v))
  6485. if e.h.Canonical {
  6486. v2 := make([]uint64, len(v))
  6487. var i int
  6488. for k, _ := range v {
  6489. v2[i] = uint64(k)
  6490. i++
  6491. }
  6492. sort.Sort(uintSlice(v2))
  6493. for _, k2 := range v2 {
  6494. if esep {
  6495. ee.WriteMapElemKey()
  6496. }
  6497. ee.EncodeUint(uint64(uint16(k2)))
  6498. if esep {
  6499. ee.WriteMapElemValue()
  6500. }
  6501. ee.EncodeBool(v[uint16(k2)])
  6502. }
  6503. } else {
  6504. for k2, v2 := range v {
  6505. if esep {
  6506. ee.WriteMapElemKey()
  6507. }
  6508. ee.EncodeUint(uint64(k2))
  6509. if esep {
  6510. ee.WriteMapElemValue()
  6511. }
  6512. ee.EncodeBool(v2)
  6513. }
  6514. }
  6515. ee.WriteMapEnd()
  6516. }
  6517. func (e *Encoder) fastpathEncMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  6518. fastpathTV.EncMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), e)
  6519. }
  6520. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, e *Encoder) {
  6521. ee, esep := e.e, e.hh.hasElemSeparators()
  6522. ee.WriteMapStart(len(v))
  6523. if e.h.Canonical {
  6524. v2 := make([]uint64, len(v))
  6525. var i int
  6526. for k, _ := range v {
  6527. v2[i] = uint64(k)
  6528. i++
  6529. }
  6530. sort.Sort(uintSlice(v2))
  6531. for _, k2 := range v2 {
  6532. if esep {
  6533. ee.WriteMapElemKey()
  6534. }
  6535. ee.EncodeUint(uint64(uint32(k2)))
  6536. if esep {
  6537. ee.WriteMapElemValue()
  6538. }
  6539. e.encode(v[uint32(k2)])
  6540. }
  6541. } else {
  6542. for k2, v2 := range v {
  6543. if esep {
  6544. ee.WriteMapElemKey()
  6545. }
  6546. ee.EncodeUint(uint64(k2))
  6547. if esep {
  6548. ee.WriteMapElemValue()
  6549. }
  6550. e.encode(v2)
  6551. }
  6552. }
  6553. ee.WriteMapEnd()
  6554. }
  6555. func (e *Encoder) fastpathEncMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  6556. fastpathTV.EncMapUint32StringV(rv2i(rv).(map[uint32]string), e)
  6557. }
  6558. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, e *Encoder) {
  6559. ee, esep := e.e, e.hh.hasElemSeparators()
  6560. ee.WriteMapStart(len(v))
  6561. if e.h.Canonical {
  6562. v2 := make([]uint64, len(v))
  6563. var i int
  6564. for k, _ := range v {
  6565. v2[i] = uint64(k)
  6566. i++
  6567. }
  6568. sort.Sort(uintSlice(v2))
  6569. for _, k2 := range v2 {
  6570. if esep {
  6571. ee.WriteMapElemKey()
  6572. }
  6573. ee.EncodeUint(uint64(uint32(k2)))
  6574. if esep {
  6575. ee.WriteMapElemValue()
  6576. }
  6577. ee.EncodeString(c_UTF8, v[uint32(k2)])
  6578. }
  6579. } else {
  6580. for k2, v2 := range v {
  6581. if esep {
  6582. ee.WriteMapElemKey()
  6583. }
  6584. ee.EncodeUint(uint64(k2))
  6585. if esep {
  6586. ee.WriteMapElemValue()
  6587. }
  6588. ee.EncodeString(c_UTF8, v2)
  6589. }
  6590. }
  6591. ee.WriteMapEnd()
  6592. }
  6593. func (e *Encoder) fastpathEncMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  6594. fastpathTV.EncMapUint32UintV(rv2i(rv).(map[uint32]uint), e)
  6595. }
  6596. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, e *Encoder) {
  6597. ee, esep := e.e, e.hh.hasElemSeparators()
  6598. ee.WriteMapStart(len(v))
  6599. if e.h.Canonical {
  6600. v2 := make([]uint64, len(v))
  6601. var i int
  6602. for k, _ := range v {
  6603. v2[i] = uint64(k)
  6604. i++
  6605. }
  6606. sort.Sort(uintSlice(v2))
  6607. for _, k2 := range v2 {
  6608. if esep {
  6609. ee.WriteMapElemKey()
  6610. }
  6611. ee.EncodeUint(uint64(uint32(k2)))
  6612. if esep {
  6613. ee.WriteMapElemValue()
  6614. }
  6615. ee.EncodeUint(uint64(v[uint32(k2)]))
  6616. }
  6617. } else {
  6618. for k2, v2 := range v {
  6619. if esep {
  6620. ee.WriteMapElemKey()
  6621. }
  6622. ee.EncodeUint(uint64(k2))
  6623. if esep {
  6624. ee.WriteMapElemValue()
  6625. }
  6626. ee.EncodeUint(uint64(v2))
  6627. }
  6628. }
  6629. ee.WriteMapEnd()
  6630. }
  6631. func (e *Encoder) fastpathEncMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  6632. fastpathTV.EncMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), e)
  6633. }
  6634. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, e *Encoder) {
  6635. ee, esep := e.e, e.hh.hasElemSeparators()
  6636. ee.WriteMapStart(len(v))
  6637. if e.h.Canonical {
  6638. v2 := make([]uint64, len(v))
  6639. var i int
  6640. for k, _ := range v {
  6641. v2[i] = uint64(k)
  6642. i++
  6643. }
  6644. sort.Sort(uintSlice(v2))
  6645. for _, k2 := range v2 {
  6646. if esep {
  6647. ee.WriteMapElemKey()
  6648. }
  6649. ee.EncodeUint(uint64(uint32(k2)))
  6650. if esep {
  6651. ee.WriteMapElemValue()
  6652. }
  6653. ee.EncodeUint(uint64(v[uint32(k2)]))
  6654. }
  6655. } else {
  6656. for k2, v2 := range v {
  6657. if esep {
  6658. ee.WriteMapElemKey()
  6659. }
  6660. ee.EncodeUint(uint64(k2))
  6661. if esep {
  6662. ee.WriteMapElemValue()
  6663. }
  6664. ee.EncodeUint(uint64(v2))
  6665. }
  6666. }
  6667. ee.WriteMapEnd()
  6668. }
  6669. func (e *Encoder) fastpathEncMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  6670. fastpathTV.EncMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), e)
  6671. }
  6672. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, e *Encoder) {
  6673. ee, esep := e.e, e.hh.hasElemSeparators()
  6674. ee.WriteMapStart(len(v))
  6675. if e.h.Canonical {
  6676. v2 := make([]uint64, len(v))
  6677. var i int
  6678. for k, _ := range v {
  6679. v2[i] = uint64(k)
  6680. i++
  6681. }
  6682. sort.Sort(uintSlice(v2))
  6683. for _, k2 := range v2 {
  6684. if esep {
  6685. ee.WriteMapElemKey()
  6686. }
  6687. ee.EncodeUint(uint64(uint32(k2)))
  6688. if esep {
  6689. ee.WriteMapElemValue()
  6690. }
  6691. ee.EncodeUint(uint64(v[uint32(k2)]))
  6692. }
  6693. } else {
  6694. for k2, v2 := range v {
  6695. if esep {
  6696. ee.WriteMapElemKey()
  6697. }
  6698. ee.EncodeUint(uint64(k2))
  6699. if esep {
  6700. ee.WriteMapElemValue()
  6701. }
  6702. ee.EncodeUint(uint64(v2))
  6703. }
  6704. }
  6705. ee.WriteMapEnd()
  6706. }
  6707. func (e *Encoder) fastpathEncMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  6708. fastpathTV.EncMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), e)
  6709. }
  6710. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, e *Encoder) {
  6711. ee, esep := e.e, e.hh.hasElemSeparators()
  6712. ee.WriteMapStart(len(v))
  6713. if e.h.Canonical {
  6714. v2 := make([]uint64, len(v))
  6715. var i int
  6716. for k, _ := range v {
  6717. v2[i] = uint64(k)
  6718. i++
  6719. }
  6720. sort.Sort(uintSlice(v2))
  6721. for _, k2 := range v2 {
  6722. if esep {
  6723. ee.WriteMapElemKey()
  6724. }
  6725. ee.EncodeUint(uint64(uint32(k2)))
  6726. if esep {
  6727. ee.WriteMapElemValue()
  6728. }
  6729. ee.EncodeUint(uint64(v[uint32(k2)]))
  6730. }
  6731. } else {
  6732. for k2, v2 := range v {
  6733. if esep {
  6734. ee.WriteMapElemKey()
  6735. }
  6736. ee.EncodeUint(uint64(k2))
  6737. if esep {
  6738. ee.WriteMapElemValue()
  6739. }
  6740. ee.EncodeUint(uint64(v2))
  6741. }
  6742. }
  6743. ee.WriteMapEnd()
  6744. }
  6745. func (e *Encoder) fastpathEncMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  6746. fastpathTV.EncMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), e)
  6747. }
  6748. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, e *Encoder) {
  6749. ee, esep := e.e, e.hh.hasElemSeparators()
  6750. ee.WriteMapStart(len(v))
  6751. if e.h.Canonical {
  6752. v2 := make([]uint64, len(v))
  6753. var i int
  6754. for k, _ := range v {
  6755. v2[i] = uint64(k)
  6756. i++
  6757. }
  6758. sort.Sort(uintSlice(v2))
  6759. for _, k2 := range v2 {
  6760. if esep {
  6761. ee.WriteMapElemKey()
  6762. }
  6763. ee.EncodeUint(uint64(uint32(k2)))
  6764. if esep {
  6765. ee.WriteMapElemValue()
  6766. }
  6767. ee.EncodeUint(uint64(v[uint32(k2)]))
  6768. }
  6769. } else {
  6770. for k2, v2 := range v {
  6771. if esep {
  6772. ee.WriteMapElemKey()
  6773. }
  6774. ee.EncodeUint(uint64(k2))
  6775. if esep {
  6776. ee.WriteMapElemValue()
  6777. }
  6778. ee.EncodeUint(uint64(v2))
  6779. }
  6780. }
  6781. ee.WriteMapEnd()
  6782. }
  6783. func (e *Encoder) fastpathEncMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  6784. fastpathTV.EncMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), e)
  6785. }
  6786. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, e *Encoder) {
  6787. ee, esep := e.e, e.hh.hasElemSeparators()
  6788. ee.WriteMapStart(len(v))
  6789. if e.h.Canonical {
  6790. v2 := make([]uint64, len(v))
  6791. var i int
  6792. for k, _ := range v {
  6793. v2[i] = uint64(k)
  6794. i++
  6795. }
  6796. sort.Sort(uintSlice(v2))
  6797. for _, k2 := range v2 {
  6798. if esep {
  6799. ee.WriteMapElemKey()
  6800. }
  6801. ee.EncodeUint(uint64(uint32(k2)))
  6802. if esep {
  6803. ee.WriteMapElemValue()
  6804. }
  6805. e.encode(v[uint32(k2)])
  6806. }
  6807. } else {
  6808. for k2, v2 := range v {
  6809. if esep {
  6810. ee.WriteMapElemKey()
  6811. }
  6812. ee.EncodeUint(uint64(k2))
  6813. if esep {
  6814. ee.WriteMapElemValue()
  6815. }
  6816. e.encode(v2)
  6817. }
  6818. }
  6819. ee.WriteMapEnd()
  6820. }
  6821. func (e *Encoder) fastpathEncMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  6822. fastpathTV.EncMapUint32IntV(rv2i(rv).(map[uint32]int), e)
  6823. }
  6824. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, e *Encoder) {
  6825. ee, esep := e.e, e.hh.hasElemSeparators()
  6826. ee.WriteMapStart(len(v))
  6827. if e.h.Canonical {
  6828. v2 := make([]uint64, len(v))
  6829. var i int
  6830. for k, _ := range v {
  6831. v2[i] = uint64(k)
  6832. i++
  6833. }
  6834. sort.Sort(uintSlice(v2))
  6835. for _, k2 := range v2 {
  6836. if esep {
  6837. ee.WriteMapElemKey()
  6838. }
  6839. ee.EncodeUint(uint64(uint32(k2)))
  6840. if esep {
  6841. ee.WriteMapElemValue()
  6842. }
  6843. ee.EncodeInt(int64(v[uint32(k2)]))
  6844. }
  6845. } else {
  6846. for k2, v2 := range v {
  6847. if esep {
  6848. ee.WriteMapElemKey()
  6849. }
  6850. ee.EncodeUint(uint64(k2))
  6851. if esep {
  6852. ee.WriteMapElemValue()
  6853. }
  6854. ee.EncodeInt(int64(v2))
  6855. }
  6856. }
  6857. ee.WriteMapEnd()
  6858. }
  6859. func (e *Encoder) fastpathEncMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  6860. fastpathTV.EncMapUint32Int8V(rv2i(rv).(map[uint32]int8), e)
  6861. }
  6862. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, e *Encoder) {
  6863. ee, esep := e.e, e.hh.hasElemSeparators()
  6864. ee.WriteMapStart(len(v))
  6865. if e.h.Canonical {
  6866. v2 := make([]uint64, len(v))
  6867. var i int
  6868. for k, _ := range v {
  6869. v2[i] = uint64(k)
  6870. i++
  6871. }
  6872. sort.Sort(uintSlice(v2))
  6873. for _, k2 := range v2 {
  6874. if esep {
  6875. ee.WriteMapElemKey()
  6876. }
  6877. ee.EncodeUint(uint64(uint32(k2)))
  6878. if esep {
  6879. ee.WriteMapElemValue()
  6880. }
  6881. ee.EncodeInt(int64(v[uint32(k2)]))
  6882. }
  6883. } else {
  6884. for k2, v2 := range v {
  6885. if esep {
  6886. ee.WriteMapElemKey()
  6887. }
  6888. ee.EncodeUint(uint64(k2))
  6889. if esep {
  6890. ee.WriteMapElemValue()
  6891. }
  6892. ee.EncodeInt(int64(v2))
  6893. }
  6894. }
  6895. ee.WriteMapEnd()
  6896. }
  6897. func (e *Encoder) fastpathEncMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  6898. fastpathTV.EncMapUint32Int16V(rv2i(rv).(map[uint32]int16), e)
  6899. }
  6900. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, e *Encoder) {
  6901. ee, esep := e.e, e.hh.hasElemSeparators()
  6902. ee.WriteMapStart(len(v))
  6903. if e.h.Canonical {
  6904. v2 := make([]uint64, len(v))
  6905. var i int
  6906. for k, _ := range v {
  6907. v2[i] = uint64(k)
  6908. i++
  6909. }
  6910. sort.Sort(uintSlice(v2))
  6911. for _, k2 := range v2 {
  6912. if esep {
  6913. ee.WriteMapElemKey()
  6914. }
  6915. ee.EncodeUint(uint64(uint32(k2)))
  6916. if esep {
  6917. ee.WriteMapElemValue()
  6918. }
  6919. ee.EncodeInt(int64(v[uint32(k2)]))
  6920. }
  6921. } else {
  6922. for k2, v2 := range v {
  6923. if esep {
  6924. ee.WriteMapElemKey()
  6925. }
  6926. ee.EncodeUint(uint64(k2))
  6927. if esep {
  6928. ee.WriteMapElemValue()
  6929. }
  6930. ee.EncodeInt(int64(v2))
  6931. }
  6932. }
  6933. ee.WriteMapEnd()
  6934. }
  6935. func (e *Encoder) fastpathEncMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  6936. fastpathTV.EncMapUint32Int32V(rv2i(rv).(map[uint32]int32), e)
  6937. }
  6938. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, e *Encoder) {
  6939. ee, esep := e.e, e.hh.hasElemSeparators()
  6940. ee.WriteMapStart(len(v))
  6941. if e.h.Canonical {
  6942. v2 := make([]uint64, len(v))
  6943. var i int
  6944. for k, _ := range v {
  6945. v2[i] = uint64(k)
  6946. i++
  6947. }
  6948. sort.Sort(uintSlice(v2))
  6949. for _, k2 := range v2 {
  6950. if esep {
  6951. ee.WriteMapElemKey()
  6952. }
  6953. ee.EncodeUint(uint64(uint32(k2)))
  6954. if esep {
  6955. ee.WriteMapElemValue()
  6956. }
  6957. ee.EncodeInt(int64(v[uint32(k2)]))
  6958. }
  6959. } else {
  6960. for k2, v2 := range v {
  6961. if esep {
  6962. ee.WriteMapElemKey()
  6963. }
  6964. ee.EncodeUint(uint64(k2))
  6965. if esep {
  6966. ee.WriteMapElemValue()
  6967. }
  6968. ee.EncodeInt(int64(v2))
  6969. }
  6970. }
  6971. ee.WriteMapEnd()
  6972. }
  6973. func (e *Encoder) fastpathEncMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  6974. fastpathTV.EncMapUint32Int64V(rv2i(rv).(map[uint32]int64), e)
  6975. }
  6976. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, e *Encoder) {
  6977. ee, esep := e.e, e.hh.hasElemSeparators()
  6978. ee.WriteMapStart(len(v))
  6979. if e.h.Canonical {
  6980. v2 := make([]uint64, len(v))
  6981. var i int
  6982. for k, _ := range v {
  6983. v2[i] = uint64(k)
  6984. i++
  6985. }
  6986. sort.Sort(uintSlice(v2))
  6987. for _, k2 := range v2 {
  6988. if esep {
  6989. ee.WriteMapElemKey()
  6990. }
  6991. ee.EncodeUint(uint64(uint32(k2)))
  6992. if esep {
  6993. ee.WriteMapElemValue()
  6994. }
  6995. ee.EncodeInt(int64(v[uint32(k2)]))
  6996. }
  6997. } else {
  6998. for k2, v2 := range v {
  6999. if esep {
  7000. ee.WriteMapElemKey()
  7001. }
  7002. ee.EncodeUint(uint64(k2))
  7003. if esep {
  7004. ee.WriteMapElemValue()
  7005. }
  7006. ee.EncodeInt(int64(v2))
  7007. }
  7008. }
  7009. ee.WriteMapEnd()
  7010. }
  7011. func (e *Encoder) fastpathEncMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  7012. fastpathTV.EncMapUint32Float32V(rv2i(rv).(map[uint32]float32), e)
  7013. }
  7014. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, e *Encoder) {
  7015. ee, esep := e.e, e.hh.hasElemSeparators()
  7016. ee.WriteMapStart(len(v))
  7017. if e.h.Canonical {
  7018. v2 := make([]uint64, len(v))
  7019. var i int
  7020. for k, _ := range v {
  7021. v2[i] = uint64(k)
  7022. i++
  7023. }
  7024. sort.Sort(uintSlice(v2))
  7025. for _, k2 := range v2 {
  7026. if esep {
  7027. ee.WriteMapElemKey()
  7028. }
  7029. ee.EncodeUint(uint64(uint32(k2)))
  7030. if esep {
  7031. ee.WriteMapElemValue()
  7032. }
  7033. ee.EncodeFloat32(v[uint32(k2)])
  7034. }
  7035. } else {
  7036. for k2, v2 := range v {
  7037. if esep {
  7038. ee.WriteMapElemKey()
  7039. }
  7040. ee.EncodeUint(uint64(k2))
  7041. if esep {
  7042. ee.WriteMapElemValue()
  7043. }
  7044. ee.EncodeFloat32(v2)
  7045. }
  7046. }
  7047. ee.WriteMapEnd()
  7048. }
  7049. func (e *Encoder) fastpathEncMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  7050. fastpathTV.EncMapUint32Float64V(rv2i(rv).(map[uint32]float64), e)
  7051. }
  7052. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, e *Encoder) {
  7053. ee, esep := e.e, e.hh.hasElemSeparators()
  7054. ee.WriteMapStart(len(v))
  7055. if e.h.Canonical {
  7056. v2 := make([]uint64, len(v))
  7057. var i int
  7058. for k, _ := range v {
  7059. v2[i] = uint64(k)
  7060. i++
  7061. }
  7062. sort.Sort(uintSlice(v2))
  7063. for _, k2 := range v2 {
  7064. if esep {
  7065. ee.WriteMapElemKey()
  7066. }
  7067. ee.EncodeUint(uint64(uint32(k2)))
  7068. if esep {
  7069. ee.WriteMapElemValue()
  7070. }
  7071. ee.EncodeFloat64(v[uint32(k2)])
  7072. }
  7073. } else {
  7074. for k2, v2 := range v {
  7075. if esep {
  7076. ee.WriteMapElemKey()
  7077. }
  7078. ee.EncodeUint(uint64(k2))
  7079. if esep {
  7080. ee.WriteMapElemValue()
  7081. }
  7082. ee.EncodeFloat64(v2)
  7083. }
  7084. }
  7085. ee.WriteMapEnd()
  7086. }
  7087. func (e *Encoder) fastpathEncMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  7088. fastpathTV.EncMapUint32BoolV(rv2i(rv).(map[uint32]bool), e)
  7089. }
  7090. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, e *Encoder) {
  7091. ee, esep := e.e, e.hh.hasElemSeparators()
  7092. ee.WriteMapStart(len(v))
  7093. if e.h.Canonical {
  7094. v2 := make([]uint64, len(v))
  7095. var i int
  7096. for k, _ := range v {
  7097. v2[i] = uint64(k)
  7098. i++
  7099. }
  7100. sort.Sort(uintSlice(v2))
  7101. for _, k2 := range v2 {
  7102. if esep {
  7103. ee.WriteMapElemKey()
  7104. }
  7105. ee.EncodeUint(uint64(uint32(k2)))
  7106. if esep {
  7107. ee.WriteMapElemValue()
  7108. }
  7109. ee.EncodeBool(v[uint32(k2)])
  7110. }
  7111. } else {
  7112. for k2, v2 := range v {
  7113. if esep {
  7114. ee.WriteMapElemKey()
  7115. }
  7116. ee.EncodeUint(uint64(k2))
  7117. if esep {
  7118. ee.WriteMapElemValue()
  7119. }
  7120. ee.EncodeBool(v2)
  7121. }
  7122. }
  7123. ee.WriteMapEnd()
  7124. }
  7125. func (e *Encoder) fastpathEncMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  7126. fastpathTV.EncMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), e)
  7127. }
  7128. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, e *Encoder) {
  7129. ee, esep := e.e, e.hh.hasElemSeparators()
  7130. ee.WriteMapStart(len(v))
  7131. if e.h.Canonical {
  7132. v2 := make([]uint64, len(v))
  7133. var i int
  7134. for k, _ := range v {
  7135. v2[i] = uint64(k)
  7136. i++
  7137. }
  7138. sort.Sort(uintSlice(v2))
  7139. for _, k2 := range v2 {
  7140. if esep {
  7141. ee.WriteMapElemKey()
  7142. }
  7143. ee.EncodeUint(uint64(uint64(k2)))
  7144. if esep {
  7145. ee.WriteMapElemValue()
  7146. }
  7147. e.encode(v[uint64(k2)])
  7148. }
  7149. } else {
  7150. for k2, v2 := range v {
  7151. if esep {
  7152. ee.WriteMapElemKey()
  7153. }
  7154. ee.EncodeUint(uint64(k2))
  7155. if esep {
  7156. ee.WriteMapElemValue()
  7157. }
  7158. e.encode(v2)
  7159. }
  7160. }
  7161. ee.WriteMapEnd()
  7162. }
  7163. func (e *Encoder) fastpathEncMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  7164. fastpathTV.EncMapUint64StringV(rv2i(rv).(map[uint64]string), e)
  7165. }
  7166. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, e *Encoder) {
  7167. ee, esep := e.e, e.hh.hasElemSeparators()
  7168. ee.WriteMapStart(len(v))
  7169. if e.h.Canonical {
  7170. v2 := make([]uint64, len(v))
  7171. var i int
  7172. for k, _ := range v {
  7173. v2[i] = uint64(k)
  7174. i++
  7175. }
  7176. sort.Sort(uintSlice(v2))
  7177. for _, k2 := range v2 {
  7178. if esep {
  7179. ee.WriteMapElemKey()
  7180. }
  7181. ee.EncodeUint(uint64(uint64(k2)))
  7182. if esep {
  7183. ee.WriteMapElemValue()
  7184. }
  7185. ee.EncodeString(c_UTF8, v[uint64(k2)])
  7186. }
  7187. } else {
  7188. for k2, v2 := range v {
  7189. if esep {
  7190. ee.WriteMapElemKey()
  7191. }
  7192. ee.EncodeUint(uint64(k2))
  7193. if esep {
  7194. ee.WriteMapElemValue()
  7195. }
  7196. ee.EncodeString(c_UTF8, v2)
  7197. }
  7198. }
  7199. ee.WriteMapEnd()
  7200. }
  7201. func (e *Encoder) fastpathEncMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  7202. fastpathTV.EncMapUint64UintV(rv2i(rv).(map[uint64]uint), e)
  7203. }
  7204. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, e *Encoder) {
  7205. ee, esep := e.e, e.hh.hasElemSeparators()
  7206. ee.WriteMapStart(len(v))
  7207. if e.h.Canonical {
  7208. v2 := make([]uint64, len(v))
  7209. var i int
  7210. for k, _ := range v {
  7211. v2[i] = uint64(k)
  7212. i++
  7213. }
  7214. sort.Sort(uintSlice(v2))
  7215. for _, k2 := range v2 {
  7216. if esep {
  7217. ee.WriteMapElemKey()
  7218. }
  7219. ee.EncodeUint(uint64(uint64(k2)))
  7220. if esep {
  7221. ee.WriteMapElemValue()
  7222. }
  7223. ee.EncodeUint(uint64(v[uint64(k2)]))
  7224. }
  7225. } else {
  7226. for k2, v2 := range v {
  7227. if esep {
  7228. ee.WriteMapElemKey()
  7229. }
  7230. ee.EncodeUint(uint64(k2))
  7231. if esep {
  7232. ee.WriteMapElemValue()
  7233. }
  7234. ee.EncodeUint(uint64(v2))
  7235. }
  7236. }
  7237. ee.WriteMapEnd()
  7238. }
  7239. func (e *Encoder) fastpathEncMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  7240. fastpathTV.EncMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), e)
  7241. }
  7242. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, e *Encoder) {
  7243. ee, esep := e.e, e.hh.hasElemSeparators()
  7244. ee.WriteMapStart(len(v))
  7245. if e.h.Canonical {
  7246. v2 := make([]uint64, len(v))
  7247. var i int
  7248. for k, _ := range v {
  7249. v2[i] = uint64(k)
  7250. i++
  7251. }
  7252. sort.Sort(uintSlice(v2))
  7253. for _, k2 := range v2 {
  7254. if esep {
  7255. ee.WriteMapElemKey()
  7256. }
  7257. ee.EncodeUint(uint64(uint64(k2)))
  7258. if esep {
  7259. ee.WriteMapElemValue()
  7260. }
  7261. ee.EncodeUint(uint64(v[uint64(k2)]))
  7262. }
  7263. } else {
  7264. for k2, v2 := range v {
  7265. if esep {
  7266. ee.WriteMapElemKey()
  7267. }
  7268. ee.EncodeUint(uint64(k2))
  7269. if esep {
  7270. ee.WriteMapElemValue()
  7271. }
  7272. ee.EncodeUint(uint64(v2))
  7273. }
  7274. }
  7275. ee.WriteMapEnd()
  7276. }
  7277. func (e *Encoder) fastpathEncMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  7278. fastpathTV.EncMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), e)
  7279. }
  7280. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, e *Encoder) {
  7281. ee, esep := e.e, e.hh.hasElemSeparators()
  7282. ee.WriteMapStart(len(v))
  7283. if e.h.Canonical {
  7284. v2 := make([]uint64, len(v))
  7285. var i int
  7286. for k, _ := range v {
  7287. v2[i] = uint64(k)
  7288. i++
  7289. }
  7290. sort.Sort(uintSlice(v2))
  7291. for _, k2 := range v2 {
  7292. if esep {
  7293. ee.WriteMapElemKey()
  7294. }
  7295. ee.EncodeUint(uint64(uint64(k2)))
  7296. if esep {
  7297. ee.WriteMapElemValue()
  7298. }
  7299. ee.EncodeUint(uint64(v[uint64(k2)]))
  7300. }
  7301. } else {
  7302. for k2, v2 := range v {
  7303. if esep {
  7304. ee.WriteMapElemKey()
  7305. }
  7306. ee.EncodeUint(uint64(k2))
  7307. if esep {
  7308. ee.WriteMapElemValue()
  7309. }
  7310. ee.EncodeUint(uint64(v2))
  7311. }
  7312. }
  7313. ee.WriteMapEnd()
  7314. }
  7315. func (e *Encoder) fastpathEncMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  7316. fastpathTV.EncMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), e)
  7317. }
  7318. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, e *Encoder) {
  7319. ee, esep := e.e, e.hh.hasElemSeparators()
  7320. ee.WriteMapStart(len(v))
  7321. if e.h.Canonical {
  7322. v2 := make([]uint64, len(v))
  7323. var i int
  7324. for k, _ := range v {
  7325. v2[i] = uint64(k)
  7326. i++
  7327. }
  7328. sort.Sort(uintSlice(v2))
  7329. for _, k2 := range v2 {
  7330. if esep {
  7331. ee.WriteMapElemKey()
  7332. }
  7333. ee.EncodeUint(uint64(uint64(k2)))
  7334. if esep {
  7335. ee.WriteMapElemValue()
  7336. }
  7337. ee.EncodeUint(uint64(v[uint64(k2)]))
  7338. }
  7339. } else {
  7340. for k2, v2 := range v {
  7341. if esep {
  7342. ee.WriteMapElemKey()
  7343. }
  7344. ee.EncodeUint(uint64(k2))
  7345. if esep {
  7346. ee.WriteMapElemValue()
  7347. }
  7348. ee.EncodeUint(uint64(v2))
  7349. }
  7350. }
  7351. ee.WriteMapEnd()
  7352. }
  7353. func (e *Encoder) fastpathEncMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  7354. fastpathTV.EncMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), e)
  7355. }
  7356. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, e *Encoder) {
  7357. ee, esep := e.e, e.hh.hasElemSeparators()
  7358. ee.WriteMapStart(len(v))
  7359. if e.h.Canonical {
  7360. v2 := make([]uint64, len(v))
  7361. var i int
  7362. for k, _ := range v {
  7363. v2[i] = uint64(k)
  7364. i++
  7365. }
  7366. sort.Sort(uintSlice(v2))
  7367. for _, k2 := range v2 {
  7368. if esep {
  7369. ee.WriteMapElemKey()
  7370. }
  7371. ee.EncodeUint(uint64(uint64(k2)))
  7372. if esep {
  7373. ee.WriteMapElemValue()
  7374. }
  7375. ee.EncodeUint(uint64(v[uint64(k2)]))
  7376. }
  7377. } else {
  7378. for k2, v2 := range v {
  7379. if esep {
  7380. ee.WriteMapElemKey()
  7381. }
  7382. ee.EncodeUint(uint64(k2))
  7383. if esep {
  7384. ee.WriteMapElemValue()
  7385. }
  7386. ee.EncodeUint(uint64(v2))
  7387. }
  7388. }
  7389. ee.WriteMapEnd()
  7390. }
  7391. func (e *Encoder) fastpathEncMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  7392. fastpathTV.EncMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), e)
  7393. }
  7394. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, e *Encoder) {
  7395. ee, esep := e.e, e.hh.hasElemSeparators()
  7396. ee.WriteMapStart(len(v))
  7397. if e.h.Canonical {
  7398. v2 := make([]uint64, len(v))
  7399. var i int
  7400. for k, _ := range v {
  7401. v2[i] = uint64(k)
  7402. i++
  7403. }
  7404. sort.Sort(uintSlice(v2))
  7405. for _, k2 := range v2 {
  7406. if esep {
  7407. ee.WriteMapElemKey()
  7408. }
  7409. ee.EncodeUint(uint64(uint64(k2)))
  7410. if esep {
  7411. ee.WriteMapElemValue()
  7412. }
  7413. e.encode(v[uint64(k2)])
  7414. }
  7415. } else {
  7416. for k2, v2 := range v {
  7417. if esep {
  7418. ee.WriteMapElemKey()
  7419. }
  7420. ee.EncodeUint(uint64(k2))
  7421. if esep {
  7422. ee.WriteMapElemValue()
  7423. }
  7424. e.encode(v2)
  7425. }
  7426. }
  7427. ee.WriteMapEnd()
  7428. }
  7429. func (e *Encoder) fastpathEncMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  7430. fastpathTV.EncMapUint64IntV(rv2i(rv).(map[uint64]int), e)
  7431. }
  7432. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, e *Encoder) {
  7433. ee, esep := e.e, e.hh.hasElemSeparators()
  7434. ee.WriteMapStart(len(v))
  7435. if e.h.Canonical {
  7436. v2 := make([]uint64, len(v))
  7437. var i int
  7438. for k, _ := range v {
  7439. v2[i] = uint64(k)
  7440. i++
  7441. }
  7442. sort.Sort(uintSlice(v2))
  7443. for _, k2 := range v2 {
  7444. if esep {
  7445. ee.WriteMapElemKey()
  7446. }
  7447. ee.EncodeUint(uint64(uint64(k2)))
  7448. if esep {
  7449. ee.WriteMapElemValue()
  7450. }
  7451. ee.EncodeInt(int64(v[uint64(k2)]))
  7452. }
  7453. } else {
  7454. for k2, v2 := range v {
  7455. if esep {
  7456. ee.WriteMapElemKey()
  7457. }
  7458. ee.EncodeUint(uint64(k2))
  7459. if esep {
  7460. ee.WriteMapElemValue()
  7461. }
  7462. ee.EncodeInt(int64(v2))
  7463. }
  7464. }
  7465. ee.WriteMapEnd()
  7466. }
  7467. func (e *Encoder) fastpathEncMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  7468. fastpathTV.EncMapUint64Int8V(rv2i(rv).(map[uint64]int8), e)
  7469. }
  7470. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, e *Encoder) {
  7471. ee, esep := e.e, e.hh.hasElemSeparators()
  7472. ee.WriteMapStart(len(v))
  7473. if e.h.Canonical {
  7474. v2 := make([]uint64, len(v))
  7475. var i int
  7476. for k, _ := range v {
  7477. v2[i] = uint64(k)
  7478. i++
  7479. }
  7480. sort.Sort(uintSlice(v2))
  7481. for _, k2 := range v2 {
  7482. if esep {
  7483. ee.WriteMapElemKey()
  7484. }
  7485. ee.EncodeUint(uint64(uint64(k2)))
  7486. if esep {
  7487. ee.WriteMapElemValue()
  7488. }
  7489. ee.EncodeInt(int64(v[uint64(k2)]))
  7490. }
  7491. } else {
  7492. for k2, v2 := range v {
  7493. if esep {
  7494. ee.WriteMapElemKey()
  7495. }
  7496. ee.EncodeUint(uint64(k2))
  7497. if esep {
  7498. ee.WriteMapElemValue()
  7499. }
  7500. ee.EncodeInt(int64(v2))
  7501. }
  7502. }
  7503. ee.WriteMapEnd()
  7504. }
  7505. func (e *Encoder) fastpathEncMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  7506. fastpathTV.EncMapUint64Int16V(rv2i(rv).(map[uint64]int16), e)
  7507. }
  7508. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, e *Encoder) {
  7509. ee, esep := e.e, e.hh.hasElemSeparators()
  7510. ee.WriteMapStart(len(v))
  7511. if e.h.Canonical {
  7512. v2 := make([]uint64, len(v))
  7513. var i int
  7514. for k, _ := range v {
  7515. v2[i] = uint64(k)
  7516. i++
  7517. }
  7518. sort.Sort(uintSlice(v2))
  7519. for _, k2 := range v2 {
  7520. if esep {
  7521. ee.WriteMapElemKey()
  7522. }
  7523. ee.EncodeUint(uint64(uint64(k2)))
  7524. if esep {
  7525. ee.WriteMapElemValue()
  7526. }
  7527. ee.EncodeInt(int64(v[uint64(k2)]))
  7528. }
  7529. } else {
  7530. for k2, v2 := range v {
  7531. if esep {
  7532. ee.WriteMapElemKey()
  7533. }
  7534. ee.EncodeUint(uint64(k2))
  7535. if esep {
  7536. ee.WriteMapElemValue()
  7537. }
  7538. ee.EncodeInt(int64(v2))
  7539. }
  7540. }
  7541. ee.WriteMapEnd()
  7542. }
  7543. func (e *Encoder) fastpathEncMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  7544. fastpathTV.EncMapUint64Int32V(rv2i(rv).(map[uint64]int32), e)
  7545. }
  7546. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, e *Encoder) {
  7547. ee, esep := e.e, e.hh.hasElemSeparators()
  7548. ee.WriteMapStart(len(v))
  7549. if e.h.Canonical {
  7550. v2 := make([]uint64, len(v))
  7551. var i int
  7552. for k, _ := range v {
  7553. v2[i] = uint64(k)
  7554. i++
  7555. }
  7556. sort.Sort(uintSlice(v2))
  7557. for _, k2 := range v2 {
  7558. if esep {
  7559. ee.WriteMapElemKey()
  7560. }
  7561. ee.EncodeUint(uint64(uint64(k2)))
  7562. if esep {
  7563. ee.WriteMapElemValue()
  7564. }
  7565. ee.EncodeInt(int64(v[uint64(k2)]))
  7566. }
  7567. } else {
  7568. for k2, v2 := range v {
  7569. if esep {
  7570. ee.WriteMapElemKey()
  7571. }
  7572. ee.EncodeUint(uint64(k2))
  7573. if esep {
  7574. ee.WriteMapElemValue()
  7575. }
  7576. ee.EncodeInt(int64(v2))
  7577. }
  7578. }
  7579. ee.WriteMapEnd()
  7580. }
  7581. func (e *Encoder) fastpathEncMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  7582. fastpathTV.EncMapUint64Int64V(rv2i(rv).(map[uint64]int64), e)
  7583. }
  7584. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, e *Encoder) {
  7585. ee, esep := e.e, e.hh.hasElemSeparators()
  7586. ee.WriteMapStart(len(v))
  7587. if e.h.Canonical {
  7588. v2 := make([]uint64, len(v))
  7589. var i int
  7590. for k, _ := range v {
  7591. v2[i] = uint64(k)
  7592. i++
  7593. }
  7594. sort.Sort(uintSlice(v2))
  7595. for _, k2 := range v2 {
  7596. if esep {
  7597. ee.WriteMapElemKey()
  7598. }
  7599. ee.EncodeUint(uint64(uint64(k2)))
  7600. if esep {
  7601. ee.WriteMapElemValue()
  7602. }
  7603. ee.EncodeInt(int64(v[uint64(k2)]))
  7604. }
  7605. } else {
  7606. for k2, v2 := range v {
  7607. if esep {
  7608. ee.WriteMapElemKey()
  7609. }
  7610. ee.EncodeUint(uint64(k2))
  7611. if esep {
  7612. ee.WriteMapElemValue()
  7613. }
  7614. ee.EncodeInt(int64(v2))
  7615. }
  7616. }
  7617. ee.WriteMapEnd()
  7618. }
  7619. func (e *Encoder) fastpathEncMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  7620. fastpathTV.EncMapUint64Float32V(rv2i(rv).(map[uint64]float32), e)
  7621. }
  7622. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, e *Encoder) {
  7623. ee, esep := e.e, e.hh.hasElemSeparators()
  7624. ee.WriteMapStart(len(v))
  7625. if e.h.Canonical {
  7626. v2 := make([]uint64, len(v))
  7627. var i int
  7628. for k, _ := range v {
  7629. v2[i] = uint64(k)
  7630. i++
  7631. }
  7632. sort.Sort(uintSlice(v2))
  7633. for _, k2 := range v2 {
  7634. if esep {
  7635. ee.WriteMapElemKey()
  7636. }
  7637. ee.EncodeUint(uint64(uint64(k2)))
  7638. if esep {
  7639. ee.WriteMapElemValue()
  7640. }
  7641. ee.EncodeFloat32(v[uint64(k2)])
  7642. }
  7643. } else {
  7644. for k2, v2 := range v {
  7645. if esep {
  7646. ee.WriteMapElemKey()
  7647. }
  7648. ee.EncodeUint(uint64(k2))
  7649. if esep {
  7650. ee.WriteMapElemValue()
  7651. }
  7652. ee.EncodeFloat32(v2)
  7653. }
  7654. }
  7655. ee.WriteMapEnd()
  7656. }
  7657. func (e *Encoder) fastpathEncMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  7658. fastpathTV.EncMapUint64Float64V(rv2i(rv).(map[uint64]float64), e)
  7659. }
  7660. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, e *Encoder) {
  7661. ee, esep := e.e, e.hh.hasElemSeparators()
  7662. ee.WriteMapStart(len(v))
  7663. if e.h.Canonical {
  7664. v2 := make([]uint64, len(v))
  7665. var i int
  7666. for k, _ := range v {
  7667. v2[i] = uint64(k)
  7668. i++
  7669. }
  7670. sort.Sort(uintSlice(v2))
  7671. for _, k2 := range v2 {
  7672. if esep {
  7673. ee.WriteMapElemKey()
  7674. }
  7675. ee.EncodeUint(uint64(uint64(k2)))
  7676. if esep {
  7677. ee.WriteMapElemValue()
  7678. }
  7679. ee.EncodeFloat64(v[uint64(k2)])
  7680. }
  7681. } else {
  7682. for k2, v2 := range v {
  7683. if esep {
  7684. ee.WriteMapElemKey()
  7685. }
  7686. ee.EncodeUint(uint64(k2))
  7687. if esep {
  7688. ee.WriteMapElemValue()
  7689. }
  7690. ee.EncodeFloat64(v2)
  7691. }
  7692. }
  7693. ee.WriteMapEnd()
  7694. }
  7695. func (e *Encoder) fastpathEncMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  7696. fastpathTV.EncMapUint64BoolV(rv2i(rv).(map[uint64]bool), e)
  7697. }
  7698. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, e *Encoder) {
  7699. ee, esep := e.e, e.hh.hasElemSeparators()
  7700. ee.WriteMapStart(len(v))
  7701. if e.h.Canonical {
  7702. v2 := make([]uint64, len(v))
  7703. var i int
  7704. for k, _ := range v {
  7705. v2[i] = uint64(k)
  7706. i++
  7707. }
  7708. sort.Sort(uintSlice(v2))
  7709. for _, k2 := range v2 {
  7710. if esep {
  7711. ee.WriteMapElemKey()
  7712. }
  7713. ee.EncodeUint(uint64(uint64(k2)))
  7714. if esep {
  7715. ee.WriteMapElemValue()
  7716. }
  7717. ee.EncodeBool(v[uint64(k2)])
  7718. }
  7719. } else {
  7720. for k2, v2 := range v {
  7721. if esep {
  7722. ee.WriteMapElemKey()
  7723. }
  7724. ee.EncodeUint(uint64(k2))
  7725. if esep {
  7726. ee.WriteMapElemValue()
  7727. }
  7728. ee.EncodeBool(v2)
  7729. }
  7730. }
  7731. ee.WriteMapEnd()
  7732. }
  7733. func (e *Encoder) fastpathEncMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  7734. fastpathTV.EncMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), e)
  7735. }
  7736. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, e *Encoder) {
  7737. ee, esep := e.e, e.hh.hasElemSeparators()
  7738. ee.WriteMapStart(len(v))
  7739. if e.h.Canonical {
  7740. v2 := make([]uint64, len(v))
  7741. var i int
  7742. for k, _ := range v {
  7743. v2[i] = uint64(k)
  7744. i++
  7745. }
  7746. sort.Sort(uintSlice(v2))
  7747. for _, k2 := range v2 {
  7748. if esep {
  7749. ee.WriteMapElemKey()
  7750. }
  7751. e.encode(uintptr(k2))
  7752. if esep {
  7753. ee.WriteMapElemValue()
  7754. }
  7755. e.encode(v[uintptr(k2)])
  7756. }
  7757. } else {
  7758. for k2, v2 := range v {
  7759. if esep {
  7760. ee.WriteMapElemKey()
  7761. }
  7762. e.encode(k2)
  7763. if esep {
  7764. ee.WriteMapElemValue()
  7765. }
  7766. e.encode(v2)
  7767. }
  7768. }
  7769. ee.WriteMapEnd()
  7770. }
  7771. func (e *Encoder) fastpathEncMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  7772. fastpathTV.EncMapUintptrStringV(rv2i(rv).(map[uintptr]string), e)
  7773. }
  7774. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, e *Encoder) {
  7775. ee, esep := e.e, e.hh.hasElemSeparators()
  7776. ee.WriteMapStart(len(v))
  7777. if e.h.Canonical {
  7778. v2 := make([]uint64, len(v))
  7779. var i int
  7780. for k, _ := range v {
  7781. v2[i] = uint64(k)
  7782. i++
  7783. }
  7784. sort.Sort(uintSlice(v2))
  7785. for _, k2 := range v2 {
  7786. if esep {
  7787. ee.WriteMapElemKey()
  7788. }
  7789. e.encode(uintptr(k2))
  7790. if esep {
  7791. ee.WriteMapElemValue()
  7792. }
  7793. ee.EncodeString(c_UTF8, v[uintptr(k2)])
  7794. }
  7795. } else {
  7796. for k2, v2 := range v {
  7797. if esep {
  7798. ee.WriteMapElemKey()
  7799. }
  7800. e.encode(k2)
  7801. if esep {
  7802. ee.WriteMapElemValue()
  7803. }
  7804. ee.EncodeString(c_UTF8, v2)
  7805. }
  7806. }
  7807. ee.WriteMapEnd()
  7808. }
  7809. func (e *Encoder) fastpathEncMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  7810. fastpathTV.EncMapUintptrUintV(rv2i(rv).(map[uintptr]uint), e)
  7811. }
  7812. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, e *Encoder) {
  7813. ee, esep := e.e, e.hh.hasElemSeparators()
  7814. ee.WriteMapStart(len(v))
  7815. if e.h.Canonical {
  7816. v2 := make([]uint64, len(v))
  7817. var i int
  7818. for k, _ := range v {
  7819. v2[i] = uint64(k)
  7820. i++
  7821. }
  7822. sort.Sort(uintSlice(v2))
  7823. for _, k2 := range v2 {
  7824. if esep {
  7825. ee.WriteMapElemKey()
  7826. }
  7827. e.encode(uintptr(k2))
  7828. if esep {
  7829. ee.WriteMapElemValue()
  7830. }
  7831. ee.EncodeUint(uint64(v[uintptr(k2)]))
  7832. }
  7833. } else {
  7834. for k2, v2 := range v {
  7835. if esep {
  7836. ee.WriteMapElemKey()
  7837. }
  7838. e.encode(k2)
  7839. if esep {
  7840. ee.WriteMapElemValue()
  7841. }
  7842. ee.EncodeUint(uint64(v2))
  7843. }
  7844. }
  7845. ee.WriteMapEnd()
  7846. }
  7847. func (e *Encoder) fastpathEncMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  7848. fastpathTV.EncMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), e)
  7849. }
  7850. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, e *Encoder) {
  7851. ee, esep := e.e, e.hh.hasElemSeparators()
  7852. ee.WriteMapStart(len(v))
  7853. if e.h.Canonical {
  7854. v2 := make([]uint64, len(v))
  7855. var i int
  7856. for k, _ := range v {
  7857. v2[i] = uint64(k)
  7858. i++
  7859. }
  7860. sort.Sort(uintSlice(v2))
  7861. for _, k2 := range v2 {
  7862. if esep {
  7863. ee.WriteMapElemKey()
  7864. }
  7865. e.encode(uintptr(k2))
  7866. if esep {
  7867. ee.WriteMapElemValue()
  7868. }
  7869. ee.EncodeUint(uint64(v[uintptr(k2)]))
  7870. }
  7871. } else {
  7872. for k2, v2 := range v {
  7873. if esep {
  7874. ee.WriteMapElemKey()
  7875. }
  7876. e.encode(k2)
  7877. if esep {
  7878. ee.WriteMapElemValue()
  7879. }
  7880. ee.EncodeUint(uint64(v2))
  7881. }
  7882. }
  7883. ee.WriteMapEnd()
  7884. }
  7885. func (e *Encoder) fastpathEncMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  7886. fastpathTV.EncMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), e)
  7887. }
  7888. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, e *Encoder) {
  7889. ee, esep := e.e, e.hh.hasElemSeparators()
  7890. ee.WriteMapStart(len(v))
  7891. if e.h.Canonical {
  7892. v2 := make([]uint64, len(v))
  7893. var i int
  7894. for k, _ := range v {
  7895. v2[i] = uint64(k)
  7896. i++
  7897. }
  7898. sort.Sort(uintSlice(v2))
  7899. for _, k2 := range v2 {
  7900. if esep {
  7901. ee.WriteMapElemKey()
  7902. }
  7903. e.encode(uintptr(k2))
  7904. if esep {
  7905. ee.WriteMapElemValue()
  7906. }
  7907. ee.EncodeUint(uint64(v[uintptr(k2)]))
  7908. }
  7909. } else {
  7910. for k2, v2 := range v {
  7911. if esep {
  7912. ee.WriteMapElemKey()
  7913. }
  7914. e.encode(k2)
  7915. if esep {
  7916. ee.WriteMapElemValue()
  7917. }
  7918. ee.EncodeUint(uint64(v2))
  7919. }
  7920. }
  7921. ee.WriteMapEnd()
  7922. }
  7923. func (e *Encoder) fastpathEncMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  7924. fastpathTV.EncMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), e)
  7925. }
  7926. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, e *Encoder) {
  7927. ee, esep := e.e, e.hh.hasElemSeparators()
  7928. ee.WriteMapStart(len(v))
  7929. if e.h.Canonical {
  7930. v2 := make([]uint64, len(v))
  7931. var i int
  7932. for k, _ := range v {
  7933. v2[i] = uint64(k)
  7934. i++
  7935. }
  7936. sort.Sort(uintSlice(v2))
  7937. for _, k2 := range v2 {
  7938. if esep {
  7939. ee.WriteMapElemKey()
  7940. }
  7941. e.encode(uintptr(k2))
  7942. if esep {
  7943. ee.WriteMapElemValue()
  7944. }
  7945. ee.EncodeUint(uint64(v[uintptr(k2)]))
  7946. }
  7947. } else {
  7948. for k2, v2 := range v {
  7949. if esep {
  7950. ee.WriteMapElemKey()
  7951. }
  7952. e.encode(k2)
  7953. if esep {
  7954. ee.WriteMapElemValue()
  7955. }
  7956. ee.EncodeUint(uint64(v2))
  7957. }
  7958. }
  7959. ee.WriteMapEnd()
  7960. }
  7961. func (e *Encoder) fastpathEncMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  7962. fastpathTV.EncMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), e)
  7963. }
  7964. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, e *Encoder) {
  7965. ee, esep := e.e, e.hh.hasElemSeparators()
  7966. ee.WriteMapStart(len(v))
  7967. if e.h.Canonical {
  7968. v2 := make([]uint64, len(v))
  7969. var i int
  7970. for k, _ := range v {
  7971. v2[i] = uint64(k)
  7972. i++
  7973. }
  7974. sort.Sort(uintSlice(v2))
  7975. for _, k2 := range v2 {
  7976. if esep {
  7977. ee.WriteMapElemKey()
  7978. }
  7979. e.encode(uintptr(k2))
  7980. if esep {
  7981. ee.WriteMapElemValue()
  7982. }
  7983. ee.EncodeUint(uint64(v[uintptr(k2)]))
  7984. }
  7985. } else {
  7986. for k2, v2 := range v {
  7987. if esep {
  7988. ee.WriteMapElemKey()
  7989. }
  7990. e.encode(k2)
  7991. if esep {
  7992. ee.WriteMapElemValue()
  7993. }
  7994. ee.EncodeUint(uint64(v2))
  7995. }
  7996. }
  7997. ee.WriteMapEnd()
  7998. }
  7999. func (e *Encoder) fastpathEncMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  8000. fastpathTV.EncMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), e)
  8001. }
  8002. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, e *Encoder) {
  8003. ee, esep := e.e, e.hh.hasElemSeparators()
  8004. ee.WriteMapStart(len(v))
  8005. if e.h.Canonical {
  8006. v2 := make([]uint64, len(v))
  8007. var i int
  8008. for k, _ := range v {
  8009. v2[i] = uint64(k)
  8010. i++
  8011. }
  8012. sort.Sort(uintSlice(v2))
  8013. for _, k2 := range v2 {
  8014. if esep {
  8015. ee.WriteMapElemKey()
  8016. }
  8017. e.encode(uintptr(k2))
  8018. if esep {
  8019. ee.WriteMapElemValue()
  8020. }
  8021. e.encode(v[uintptr(k2)])
  8022. }
  8023. } else {
  8024. for k2, v2 := range v {
  8025. if esep {
  8026. ee.WriteMapElemKey()
  8027. }
  8028. e.encode(k2)
  8029. if esep {
  8030. ee.WriteMapElemValue()
  8031. }
  8032. e.encode(v2)
  8033. }
  8034. }
  8035. ee.WriteMapEnd()
  8036. }
  8037. func (e *Encoder) fastpathEncMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  8038. fastpathTV.EncMapUintptrIntV(rv2i(rv).(map[uintptr]int), e)
  8039. }
  8040. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, e *Encoder) {
  8041. ee, esep := e.e, e.hh.hasElemSeparators()
  8042. ee.WriteMapStart(len(v))
  8043. if e.h.Canonical {
  8044. v2 := make([]uint64, len(v))
  8045. var i int
  8046. for k, _ := range v {
  8047. v2[i] = uint64(k)
  8048. i++
  8049. }
  8050. sort.Sort(uintSlice(v2))
  8051. for _, k2 := range v2 {
  8052. if esep {
  8053. ee.WriteMapElemKey()
  8054. }
  8055. e.encode(uintptr(k2))
  8056. if esep {
  8057. ee.WriteMapElemValue()
  8058. }
  8059. ee.EncodeInt(int64(v[uintptr(k2)]))
  8060. }
  8061. } else {
  8062. for k2, v2 := range v {
  8063. if esep {
  8064. ee.WriteMapElemKey()
  8065. }
  8066. e.encode(k2)
  8067. if esep {
  8068. ee.WriteMapElemValue()
  8069. }
  8070. ee.EncodeInt(int64(v2))
  8071. }
  8072. }
  8073. ee.WriteMapEnd()
  8074. }
  8075. func (e *Encoder) fastpathEncMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  8076. fastpathTV.EncMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), e)
  8077. }
  8078. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, e *Encoder) {
  8079. ee, esep := e.e, e.hh.hasElemSeparators()
  8080. ee.WriteMapStart(len(v))
  8081. if e.h.Canonical {
  8082. v2 := make([]uint64, len(v))
  8083. var i int
  8084. for k, _ := range v {
  8085. v2[i] = uint64(k)
  8086. i++
  8087. }
  8088. sort.Sort(uintSlice(v2))
  8089. for _, k2 := range v2 {
  8090. if esep {
  8091. ee.WriteMapElemKey()
  8092. }
  8093. e.encode(uintptr(k2))
  8094. if esep {
  8095. ee.WriteMapElemValue()
  8096. }
  8097. ee.EncodeInt(int64(v[uintptr(k2)]))
  8098. }
  8099. } else {
  8100. for k2, v2 := range v {
  8101. if esep {
  8102. ee.WriteMapElemKey()
  8103. }
  8104. e.encode(k2)
  8105. if esep {
  8106. ee.WriteMapElemValue()
  8107. }
  8108. ee.EncodeInt(int64(v2))
  8109. }
  8110. }
  8111. ee.WriteMapEnd()
  8112. }
  8113. func (e *Encoder) fastpathEncMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  8114. fastpathTV.EncMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), e)
  8115. }
  8116. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, e *Encoder) {
  8117. ee, esep := e.e, e.hh.hasElemSeparators()
  8118. ee.WriteMapStart(len(v))
  8119. if e.h.Canonical {
  8120. v2 := make([]uint64, len(v))
  8121. var i int
  8122. for k, _ := range v {
  8123. v2[i] = uint64(k)
  8124. i++
  8125. }
  8126. sort.Sort(uintSlice(v2))
  8127. for _, k2 := range v2 {
  8128. if esep {
  8129. ee.WriteMapElemKey()
  8130. }
  8131. e.encode(uintptr(k2))
  8132. if esep {
  8133. ee.WriteMapElemValue()
  8134. }
  8135. ee.EncodeInt(int64(v[uintptr(k2)]))
  8136. }
  8137. } else {
  8138. for k2, v2 := range v {
  8139. if esep {
  8140. ee.WriteMapElemKey()
  8141. }
  8142. e.encode(k2)
  8143. if esep {
  8144. ee.WriteMapElemValue()
  8145. }
  8146. ee.EncodeInt(int64(v2))
  8147. }
  8148. }
  8149. ee.WriteMapEnd()
  8150. }
  8151. func (e *Encoder) fastpathEncMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  8152. fastpathTV.EncMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), e)
  8153. }
  8154. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, e *Encoder) {
  8155. ee, esep := e.e, e.hh.hasElemSeparators()
  8156. ee.WriteMapStart(len(v))
  8157. if e.h.Canonical {
  8158. v2 := make([]uint64, len(v))
  8159. var i int
  8160. for k, _ := range v {
  8161. v2[i] = uint64(k)
  8162. i++
  8163. }
  8164. sort.Sort(uintSlice(v2))
  8165. for _, k2 := range v2 {
  8166. if esep {
  8167. ee.WriteMapElemKey()
  8168. }
  8169. e.encode(uintptr(k2))
  8170. if esep {
  8171. ee.WriteMapElemValue()
  8172. }
  8173. ee.EncodeInt(int64(v[uintptr(k2)]))
  8174. }
  8175. } else {
  8176. for k2, v2 := range v {
  8177. if esep {
  8178. ee.WriteMapElemKey()
  8179. }
  8180. e.encode(k2)
  8181. if esep {
  8182. ee.WriteMapElemValue()
  8183. }
  8184. ee.EncodeInt(int64(v2))
  8185. }
  8186. }
  8187. ee.WriteMapEnd()
  8188. }
  8189. func (e *Encoder) fastpathEncMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  8190. fastpathTV.EncMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), e)
  8191. }
  8192. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, e *Encoder) {
  8193. ee, esep := e.e, e.hh.hasElemSeparators()
  8194. ee.WriteMapStart(len(v))
  8195. if e.h.Canonical {
  8196. v2 := make([]uint64, len(v))
  8197. var i int
  8198. for k, _ := range v {
  8199. v2[i] = uint64(k)
  8200. i++
  8201. }
  8202. sort.Sort(uintSlice(v2))
  8203. for _, k2 := range v2 {
  8204. if esep {
  8205. ee.WriteMapElemKey()
  8206. }
  8207. e.encode(uintptr(k2))
  8208. if esep {
  8209. ee.WriteMapElemValue()
  8210. }
  8211. ee.EncodeInt(int64(v[uintptr(k2)]))
  8212. }
  8213. } else {
  8214. for k2, v2 := range v {
  8215. if esep {
  8216. ee.WriteMapElemKey()
  8217. }
  8218. e.encode(k2)
  8219. if esep {
  8220. ee.WriteMapElemValue()
  8221. }
  8222. ee.EncodeInt(int64(v2))
  8223. }
  8224. }
  8225. ee.WriteMapEnd()
  8226. }
  8227. func (e *Encoder) fastpathEncMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  8228. fastpathTV.EncMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), e)
  8229. }
  8230. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, e *Encoder) {
  8231. ee, esep := e.e, e.hh.hasElemSeparators()
  8232. ee.WriteMapStart(len(v))
  8233. if e.h.Canonical {
  8234. v2 := make([]uint64, len(v))
  8235. var i int
  8236. for k, _ := range v {
  8237. v2[i] = uint64(k)
  8238. i++
  8239. }
  8240. sort.Sort(uintSlice(v2))
  8241. for _, k2 := range v2 {
  8242. if esep {
  8243. ee.WriteMapElemKey()
  8244. }
  8245. e.encode(uintptr(k2))
  8246. if esep {
  8247. ee.WriteMapElemValue()
  8248. }
  8249. ee.EncodeFloat32(v[uintptr(k2)])
  8250. }
  8251. } else {
  8252. for k2, v2 := range v {
  8253. if esep {
  8254. ee.WriteMapElemKey()
  8255. }
  8256. e.encode(k2)
  8257. if esep {
  8258. ee.WriteMapElemValue()
  8259. }
  8260. ee.EncodeFloat32(v2)
  8261. }
  8262. }
  8263. ee.WriteMapEnd()
  8264. }
  8265. func (e *Encoder) fastpathEncMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  8266. fastpathTV.EncMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), e)
  8267. }
  8268. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, e *Encoder) {
  8269. ee, esep := e.e, e.hh.hasElemSeparators()
  8270. ee.WriteMapStart(len(v))
  8271. if e.h.Canonical {
  8272. v2 := make([]uint64, len(v))
  8273. var i int
  8274. for k, _ := range v {
  8275. v2[i] = uint64(k)
  8276. i++
  8277. }
  8278. sort.Sort(uintSlice(v2))
  8279. for _, k2 := range v2 {
  8280. if esep {
  8281. ee.WriteMapElemKey()
  8282. }
  8283. e.encode(uintptr(k2))
  8284. if esep {
  8285. ee.WriteMapElemValue()
  8286. }
  8287. ee.EncodeFloat64(v[uintptr(k2)])
  8288. }
  8289. } else {
  8290. for k2, v2 := range v {
  8291. if esep {
  8292. ee.WriteMapElemKey()
  8293. }
  8294. e.encode(k2)
  8295. if esep {
  8296. ee.WriteMapElemValue()
  8297. }
  8298. ee.EncodeFloat64(v2)
  8299. }
  8300. }
  8301. ee.WriteMapEnd()
  8302. }
  8303. func (e *Encoder) fastpathEncMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  8304. fastpathTV.EncMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), e)
  8305. }
  8306. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, e *Encoder) {
  8307. ee, esep := e.e, e.hh.hasElemSeparators()
  8308. ee.WriteMapStart(len(v))
  8309. if e.h.Canonical {
  8310. v2 := make([]uint64, len(v))
  8311. var i int
  8312. for k, _ := range v {
  8313. v2[i] = uint64(k)
  8314. i++
  8315. }
  8316. sort.Sort(uintSlice(v2))
  8317. for _, k2 := range v2 {
  8318. if esep {
  8319. ee.WriteMapElemKey()
  8320. }
  8321. e.encode(uintptr(k2))
  8322. if esep {
  8323. ee.WriteMapElemValue()
  8324. }
  8325. ee.EncodeBool(v[uintptr(k2)])
  8326. }
  8327. } else {
  8328. for k2, v2 := range v {
  8329. if esep {
  8330. ee.WriteMapElemKey()
  8331. }
  8332. e.encode(k2)
  8333. if esep {
  8334. ee.WriteMapElemValue()
  8335. }
  8336. ee.EncodeBool(v2)
  8337. }
  8338. }
  8339. ee.WriteMapEnd()
  8340. }
  8341. func (e *Encoder) fastpathEncMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  8342. fastpathTV.EncMapIntIntfV(rv2i(rv).(map[int]interface{}), e)
  8343. }
  8344. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, e *Encoder) {
  8345. ee, esep := e.e, e.hh.hasElemSeparators()
  8346. ee.WriteMapStart(len(v))
  8347. if e.h.Canonical {
  8348. v2 := make([]int64, len(v))
  8349. var i int
  8350. for k, _ := range v {
  8351. v2[i] = int64(k)
  8352. i++
  8353. }
  8354. sort.Sort(intSlice(v2))
  8355. for _, k2 := range v2 {
  8356. if esep {
  8357. ee.WriteMapElemKey()
  8358. }
  8359. ee.EncodeInt(int64(int(k2)))
  8360. if esep {
  8361. ee.WriteMapElemValue()
  8362. }
  8363. e.encode(v[int(k2)])
  8364. }
  8365. } else {
  8366. for k2, v2 := range v {
  8367. if esep {
  8368. ee.WriteMapElemKey()
  8369. }
  8370. ee.EncodeInt(int64(k2))
  8371. if esep {
  8372. ee.WriteMapElemValue()
  8373. }
  8374. e.encode(v2)
  8375. }
  8376. }
  8377. ee.WriteMapEnd()
  8378. }
  8379. func (e *Encoder) fastpathEncMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  8380. fastpathTV.EncMapIntStringV(rv2i(rv).(map[int]string), e)
  8381. }
  8382. func (_ fastpathT) EncMapIntStringV(v map[int]string, e *Encoder) {
  8383. ee, esep := e.e, e.hh.hasElemSeparators()
  8384. ee.WriteMapStart(len(v))
  8385. if e.h.Canonical {
  8386. v2 := make([]int64, len(v))
  8387. var i int
  8388. for k, _ := range v {
  8389. v2[i] = int64(k)
  8390. i++
  8391. }
  8392. sort.Sort(intSlice(v2))
  8393. for _, k2 := range v2 {
  8394. if esep {
  8395. ee.WriteMapElemKey()
  8396. }
  8397. ee.EncodeInt(int64(int(k2)))
  8398. if esep {
  8399. ee.WriteMapElemValue()
  8400. }
  8401. ee.EncodeString(c_UTF8, v[int(k2)])
  8402. }
  8403. } else {
  8404. for k2, v2 := range v {
  8405. if esep {
  8406. ee.WriteMapElemKey()
  8407. }
  8408. ee.EncodeInt(int64(k2))
  8409. if esep {
  8410. ee.WriteMapElemValue()
  8411. }
  8412. ee.EncodeString(c_UTF8, v2)
  8413. }
  8414. }
  8415. ee.WriteMapEnd()
  8416. }
  8417. func (e *Encoder) fastpathEncMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  8418. fastpathTV.EncMapIntUintV(rv2i(rv).(map[int]uint), e)
  8419. }
  8420. func (_ fastpathT) EncMapIntUintV(v map[int]uint, e *Encoder) {
  8421. ee, esep := e.e, e.hh.hasElemSeparators()
  8422. ee.WriteMapStart(len(v))
  8423. if e.h.Canonical {
  8424. v2 := make([]int64, len(v))
  8425. var i int
  8426. for k, _ := range v {
  8427. v2[i] = int64(k)
  8428. i++
  8429. }
  8430. sort.Sort(intSlice(v2))
  8431. for _, k2 := range v2 {
  8432. if esep {
  8433. ee.WriteMapElemKey()
  8434. }
  8435. ee.EncodeInt(int64(int(k2)))
  8436. if esep {
  8437. ee.WriteMapElemValue()
  8438. }
  8439. ee.EncodeUint(uint64(v[int(k2)]))
  8440. }
  8441. } else {
  8442. for k2, v2 := range v {
  8443. if esep {
  8444. ee.WriteMapElemKey()
  8445. }
  8446. ee.EncodeInt(int64(k2))
  8447. if esep {
  8448. ee.WriteMapElemValue()
  8449. }
  8450. ee.EncodeUint(uint64(v2))
  8451. }
  8452. }
  8453. ee.WriteMapEnd()
  8454. }
  8455. func (e *Encoder) fastpathEncMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  8456. fastpathTV.EncMapIntUint8V(rv2i(rv).(map[int]uint8), e)
  8457. }
  8458. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, e *Encoder) {
  8459. ee, esep := e.e, e.hh.hasElemSeparators()
  8460. ee.WriteMapStart(len(v))
  8461. if e.h.Canonical {
  8462. v2 := make([]int64, len(v))
  8463. var i int
  8464. for k, _ := range v {
  8465. v2[i] = int64(k)
  8466. i++
  8467. }
  8468. sort.Sort(intSlice(v2))
  8469. for _, k2 := range v2 {
  8470. if esep {
  8471. ee.WriteMapElemKey()
  8472. }
  8473. ee.EncodeInt(int64(int(k2)))
  8474. if esep {
  8475. ee.WriteMapElemValue()
  8476. }
  8477. ee.EncodeUint(uint64(v[int(k2)]))
  8478. }
  8479. } else {
  8480. for k2, v2 := range v {
  8481. if esep {
  8482. ee.WriteMapElemKey()
  8483. }
  8484. ee.EncodeInt(int64(k2))
  8485. if esep {
  8486. ee.WriteMapElemValue()
  8487. }
  8488. ee.EncodeUint(uint64(v2))
  8489. }
  8490. }
  8491. ee.WriteMapEnd()
  8492. }
  8493. func (e *Encoder) fastpathEncMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  8494. fastpathTV.EncMapIntUint16V(rv2i(rv).(map[int]uint16), e)
  8495. }
  8496. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, e *Encoder) {
  8497. ee, esep := e.e, e.hh.hasElemSeparators()
  8498. ee.WriteMapStart(len(v))
  8499. if e.h.Canonical {
  8500. v2 := make([]int64, len(v))
  8501. var i int
  8502. for k, _ := range v {
  8503. v2[i] = int64(k)
  8504. i++
  8505. }
  8506. sort.Sort(intSlice(v2))
  8507. for _, k2 := range v2 {
  8508. if esep {
  8509. ee.WriteMapElemKey()
  8510. }
  8511. ee.EncodeInt(int64(int(k2)))
  8512. if esep {
  8513. ee.WriteMapElemValue()
  8514. }
  8515. ee.EncodeUint(uint64(v[int(k2)]))
  8516. }
  8517. } else {
  8518. for k2, v2 := range v {
  8519. if esep {
  8520. ee.WriteMapElemKey()
  8521. }
  8522. ee.EncodeInt(int64(k2))
  8523. if esep {
  8524. ee.WriteMapElemValue()
  8525. }
  8526. ee.EncodeUint(uint64(v2))
  8527. }
  8528. }
  8529. ee.WriteMapEnd()
  8530. }
  8531. func (e *Encoder) fastpathEncMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  8532. fastpathTV.EncMapIntUint32V(rv2i(rv).(map[int]uint32), e)
  8533. }
  8534. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, e *Encoder) {
  8535. ee, esep := e.e, e.hh.hasElemSeparators()
  8536. ee.WriteMapStart(len(v))
  8537. if e.h.Canonical {
  8538. v2 := make([]int64, len(v))
  8539. var i int
  8540. for k, _ := range v {
  8541. v2[i] = int64(k)
  8542. i++
  8543. }
  8544. sort.Sort(intSlice(v2))
  8545. for _, k2 := range v2 {
  8546. if esep {
  8547. ee.WriteMapElemKey()
  8548. }
  8549. ee.EncodeInt(int64(int(k2)))
  8550. if esep {
  8551. ee.WriteMapElemValue()
  8552. }
  8553. ee.EncodeUint(uint64(v[int(k2)]))
  8554. }
  8555. } else {
  8556. for k2, v2 := range v {
  8557. if esep {
  8558. ee.WriteMapElemKey()
  8559. }
  8560. ee.EncodeInt(int64(k2))
  8561. if esep {
  8562. ee.WriteMapElemValue()
  8563. }
  8564. ee.EncodeUint(uint64(v2))
  8565. }
  8566. }
  8567. ee.WriteMapEnd()
  8568. }
  8569. func (e *Encoder) fastpathEncMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  8570. fastpathTV.EncMapIntUint64V(rv2i(rv).(map[int]uint64), e)
  8571. }
  8572. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, e *Encoder) {
  8573. ee, esep := e.e, e.hh.hasElemSeparators()
  8574. ee.WriteMapStart(len(v))
  8575. if e.h.Canonical {
  8576. v2 := make([]int64, len(v))
  8577. var i int
  8578. for k, _ := range v {
  8579. v2[i] = int64(k)
  8580. i++
  8581. }
  8582. sort.Sort(intSlice(v2))
  8583. for _, k2 := range v2 {
  8584. if esep {
  8585. ee.WriteMapElemKey()
  8586. }
  8587. ee.EncodeInt(int64(int(k2)))
  8588. if esep {
  8589. ee.WriteMapElemValue()
  8590. }
  8591. ee.EncodeUint(uint64(v[int(k2)]))
  8592. }
  8593. } else {
  8594. for k2, v2 := range v {
  8595. if esep {
  8596. ee.WriteMapElemKey()
  8597. }
  8598. ee.EncodeInt(int64(k2))
  8599. if esep {
  8600. ee.WriteMapElemValue()
  8601. }
  8602. ee.EncodeUint(uint64(v2))
  8603. }
  8604. }
  8605. ee.WriteMapEnd()
  8606. }
  8607. func (e *Encoder) fastpathEncMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  8608. fastpathTV.EncMapIntUintptrV(rv2i(rv).(map[int]uintptr), e)
  8609. }
  8610. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, e *Encoder) {
  8611. ee, esep := e.e, e.hh.hasElemSeparators()
  8612. ee.WriteMapStart(len(v))
  8613. if e.h.Canonical {
  8614. v2 := make([]int64, len(v))
  8615. var i int
  8616. for k, _ := range v {
  8617. v2[i] = int64(k)
  8618. i++
  8619. }
  8620. sort.Sort(intSlice(v2))
  8621. for _, k2 := range v2 {
  8622. if esep {
  8623. ee.WriteMapElemKey()
  8624. }
  8625. ee.EncodeInt(int64(int(k2)))
  8626. if esep {
  8627. ee.WriteMapElemValue()
  8628. }
  8629. e.encode(v[int(k2)])
  8630. }
  8631. } else {
  8632. for k2, v2 := range v {
  8633. if esep {
  8634. ee.WriteMapElemKey()
  8635. }
  8636. ee.EncodeInt(int64(k2))
  8637. if esep {
  8638. ee.WriteMapElemValue()
  8639. }
  8640. e.encode(v2)
  8641. }
  8642. }
  8643. ee.WriteMapEnd()
  8644. }
  8645. func (e *Encoder) fastpathEncMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  8646. fastpathTV.EncMapIntIntV(rv2i(rv).(map[int]int), e)
  8647. }
  8648. func (_ fastpathT) EncMapIntIntV(v map[int]int, e *Encoder) {
  8649. ee, esep := e.e, e.hh.hasElemSeparators()
  8650. ee.WriteMapStart(len(v))
  8651. if e.h.Canonical {
  8652. v2 := make([]int64, len(v))
  8653. var i int
  8654. for k, _ := range v {
  8655. v2[i] = int64(k)
  8656. i++
  8657. }
  8658. sort.Sort(intSlice(v2))
  8659. for _, k2 := range v2 {
  8660. if esep {
  8661. ee.WriteMapElemKey()
  8662. }
  8663. ee.EncodeInt(int64(int(k2)))
  8664. if esep {
  8665. ee.WriteMapElemValue()
  8666. }
  8667. ee.EncodeInt(int64(v[int(k2)]))
  8668. }
  8669. } else {
  8670. for k2, v2 := range v {
  8671. if esep {
  8672. ee.WriteMapElemKey()
  8673. }
  8674. ee.EncodeInt(int64(k2))
  8675. if esep {
  8676. ee.WriteMapElemValue()
  8677. }
  8678. ee.EncodeInt(int64(v2))
  8679. }
  8680. }
  8681. ee.WriteMapEnd()
  8682. }
  8683. func (e *Encoder) fastpathEncMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  8684. fastpathTV.EncMapIntInt8V(rv2i(rv).(map[int]int8), e)
  8685. }
  8686. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, e *Encoder) {
  8687. ee, esep := e.e, e.hh.hasElemSeparators()
  8688. ee.WriteMapStart(len(v))
  8689. if e.h.Canonical {
  8690. v2 := make([]int64, len(v))
  8691. var i int
  8692. for k, _ := range v {
  8693. v2[i] = int64(k)
  8694. i++
  8695. }
  8696. sort.Sort(intSlice(v2))
  8697. for _, k2 := range v2 {
  8698. if esep {
  8699. ee.WriteMapElemKey()
  8700. }
  8701. ee.EncodeInt(int64(int(k2)))
  8702. if esep {
  8703. ee.WriteMapElemValue()
  8704. }
  8705. ee.EncodeInt(int64(v[int(k2)]))
  8706. }
  8707. } else {
  8708. for k2, v2 := range v {
  8709. if esep {
  8710. ee.WriteMapElemKey()
  8711. }
  8712. ee.EncodeInt(int64(k2))
  8713. if esep {
  8714. ee.WriteMapElemValue()
  8715. }
  8716. ee.EncodeInt(int64(v2))
  8717. }
  8718. }
  8719. ee.WriteMapEnd()
  8720. }
  8721. func (e *Encoder) fastpathEncMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  8722. fastpathTV.EncMapIntInt16V(rv2i(rv).(map[int]int16), e)
  8723. }
  8724. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, e *Encoder) {
  8725. ee, esep := e.e, e.hh.hasElemSeparators()
  8726. ee.WriteMapStart(len(v))
  8727. if e.h.Canonical {
  8728. v2 := make([]int64, len(v))
  8729. var i int
  8730. for k, _ := range v {
  8731. v2[i] = int64(k)
  8732. i++
  8733. }
  8734. sort.Sort(intSlice(v2))
  8735. for _, k2 := range v2 {
  8736. if esep {
  8737. ee.WriteMapElemKey()
  8738. }
  8739. ee.EncodeInt(int64(int(k2)))
  8740. if esep {
  8741. ee.WriteMapElemValue()
  8742. }
  8743. ee.EncodeInt(int64(v[int(k2)]))
  8744. }
  8745. } else {
  8746. for k2, v2 := range v {
  8747. if esep {
  8748. ee.WriteMapElemKey()
  8749. }
  8750. ee.EncodeInt(int64(k2))
  8751. if esep {
  8752. ee.WriteMapElemValue()
  8753. }
  8754. ee.EncodeInt(int64(v2))
  8755. }
  8756. }
  8757. ee.WriteMapEnd()
  8758. }
  8759. func (e *Encoder) fastpathEncMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  8760. fastpathTV.EncMapIntInt32V(rv2i(rv).(map[int]int32), e)
  8761. }
  8762. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, e *Encoder) {
  8763. ee, esep := e.e, e.hh.hasElemSeparators()
  8764. ee.WriteMapStart(len(v))
  8765. if e.h.Canonical {
  8766. v2 := make([]int64, len(v))
  8767. var i int
  8768. for k, _ := range v {
  8769. v2[i] = int64(k)
  8770. i++
  8771. }
  8772. sort.Sort(intSlice(v2))
  8773. for _, k2 := range v2 {
  8774. if esep {
  8775. ee.WriteMapElemKey()
  8776. }
  8777. ee.EncodeInt(int64(int(k2)))
  8778. if esep {
  8779. ee.WriteMapElemValue()
  8780. }
  8781. ee.EncodeInt(int64(v[int(k2)]))
  8782. }
  8783. } else {
  8784. for k2, v2 := range v {
  8785. if esep {
  8786. ee.WriteMapElemKey()
  8787. }
  8788. ee.EncodeInt(int64(k2))
  8789. if esep {
  8790. ee.WriteMapElemValue()
  8791. }
  8792. ee.EncodeInt(int64(v2))
  8793. }
  8794. }
  8795. ee.WriteMapEnd()
  8796. }
  8797. func (e *Encoder) fastpathEncMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  8798. fastpathTV.EncMapIntInt64V(rv2i(rv).(map[int]int64), e)
  8799. }
  8800. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, e *Encoder) {
  8801. ee, esep := e.e, e.hh.hasElemSeparators()
  8802. ee.WriteMapStart(len(v))
  8803. if e.h.Canonical {
  8804. v2 := make([]int64, len(v))
  8805. var i int
  8806. for k, _ := range v {
  8807. v2[i] = int64(k)
  8808. i++
  8809. }
  8810. sort.Sort(intSlice(v2))
  8811. for _, k2 := range v2 {
  8812. if esep {
  8813. ee.WriteMapElemKey()
  8814. }
  8815. ee.EncodeInt(int64(int(k2)))
  8816. if esep {
  8817. ee.WriteMapElemValue()
  8818. }
  8819. ee.EncodeInt(int64(v[int(k2)]))
  8820. }
  8821. } else {
  8822. for k2, v2 := range v {
  8823. if esep {
  8824. ee.WriteMapElemKey()
  8825. }
  8826. ee.EncodeInt(int64(k2))
  8827. if esep {
  8828. ee.WriteMapElemValue()
  8829. }
  8830. ee.EncodeInt(int64(v2))
  8831. }
  8832. }
  8833. ee.WriteMapEnd()
  8834. }
  8835. func (e *Encoder) fastpathEncMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  8836. fastpathTV.EncMapIntFloat32V(rv2i(rv).(map[int]float32), e)
  8837. }
  8838. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, e *Encoder) {
  8839. ee, esep := e.e, e.hh.hasElemSeparators()
  8840. ee.WriteMapStart(len(v))
  8841. if e.h.Canonical {
  8842. v2 := make([]int64, len(v))
  8843. var i int
  8844. for k, _ := range v {
  8845. v2[i] = int64(k)
  8846. i++
  8847. }
  8848. sort.Sort(intSlice(v2))
  8849. for _, k2 := range v2 {
  8850. if esep {
  8851. ee.WriteMapElemKey()
  8852. }
  8853. ee.EncodeInt(int64(int(k2)))
  8854. if esep {
  8855. ee.WriteMapElemValue()
  8856. }
  8857. ee.EncodeFloat32(v[int(k2)])
  8858. }
  8859. } else {
  8860. for k2, v2 := range v {
  8861. if esep {
  8862. ee.WriteMapElemKey()
  8863. }
  8864. ee.EncodeInt(int64(k2))
  8865. if esep {
  8866. ee.WriteMapElemValue()
  8867. }
  8868. ee.EncodeFloat32(v2)
  8869. }
  8870. }
  8871. ee.WriteMapEnd()
  8872. }
  8873. func (e *Encoder) fastpathEncMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  8874. fastpathTV.EncMapIntFloat64V(rv2i(rv).(map[int]float64), e)
  8875. }
  8876. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, e *Encoder) {
  8877. ee, esep := e.e, e.hh.hasElemSeparators()
  8878. ee.WriteMapStart(len(v))
  8879. if e.h.Canonical {
  8880. v2 := make([]int64, len(v))
  8881. var i int
  8882. for k, _ := range v {
  8883. v2[i] = int64(k)
  8884. i++
  8885. }
  8886. sort.Sort(intSlice(v2))
  8887. for _, k2 := range v2 {
  8888. if esep {
  8889. ee.WriteMapElemKey()
  8890. }
  8891. ee.EncodeInt(int64(int(k2)))
  8892. if esep {
  8893. ee.WriteMapElemValue()
  8894. }
  8895. ee.EncodeFloat64(v[int(k2)])
  8896. }
  8897. } else {
  8898. for k2, v2 := range v {
  8899. if esep {
  8900. ee.WriteMapElemKey()
  8901. }
  8902. ee.EncodeInt(int64(k2))
  8903. if esep {
  8904. ee.WriteMapElemValue()
  8905. }
  8906. ee.EncodeFloat64(v2)
  8907. }
  8908. }
  8909. ee.WriteMapEnd()
  8910. }
  8911. func (e *Encoder) fastpathEncMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  8912. fastpathTV.EncMapIntBoolV(rv2i(rv).(map[int]bool), e)
  8913. }
  8914. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, e *Encoder) {
  8915. ee, esep := e.e, e.hh.hasElemSeparators()
  8916. ee.WriteMapStart(len(v))
  8917. if e.h.Canonical {
  8918. v2 := make([]int64, len(v))
  8919. var i int
  8920. for k, _ := range v {
  8921. v2[i] = int64(k)
  8922. i++
  8923. }
  8924. sort.Sort(intSlice(v2))
  8925. for _, k2 := range v2 {
  8926. if esep {
  8927. ee.WriteMapElemKey()
  8928. }
  8929. ee.EncodeInt(int64(int(k2)))
  8930. if esep {
  8931. ee.WriteMapElemValue()
  8932. }
  8933. ee.EncodeBool(v[int(k2)])
  8934. }
  8935. } else {
  8936. for k2, v2 := range v {
  8937. if esep {
  8938. ee.WriteMapElemKey()
  8939. }
  8940. ee.EncodeInt(int64(k2))
  8941. if esep {
  8942. ee.WriteMapElemValue()
  8943. }
  8944. ee.EncodeBool(v2)
  8945. }
  8946. }
  8947. ee.WriteMapEnd()
  8948. }
  8949. func (e *Encoder) fastpathEncMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  8950. fastpathTV.EncMapInt8IntfV(rv2i(rv).(map[int8]interface{}), e)
  8951. }
  8952. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, e *Encoder) {
  8953. ee, esep := e.e, e.hh.hasElemSeparators()
  8954. ee.WriteMapStart(len(v))
  8955. if e.h.Canonical {
  8956. v2 := make([]int64, len(v))
  8957. var i int
  8958. for k, _ := range v {
  8959. v2[i] = int64(k)
  8960. i++
  8961. }
  8962. sort.Sort(intSlice(v2))
  8963. for _, k2 := range v2 {
  8964. if esep {
  8965. ee.WriteMapElemKey()
  8966. }
  8967. ee.EncodeInt(int64(int8(k2)))
  8968. if esep {
  8969. ee.WriteMapElemValue()
  8970. }
  8971. e.encode(v[int8(k2)])
  8972. }
  8973. } else {
  8974. for k2, v2 := range v {
  8975. if esep {
  8976. ee.WriteMapElemKey()
  8977. }
  8978. ee.EncodeInt(int64(k2))
  8979. if esep {
  8980. ee.WriteMapElemValue()
  8981. }
  8982. e.encode(v2)
  8983. }
  8984. }
  8985. ee.WriteMapEnd()
  8986. }
  8987. func (e *Encoder) fastpathEncMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  8988. fastpathTV.EncMapInt8StringV(rv2i(rv).(map[int8]string), e)
  8989. }
  8990. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, e *Encoder) {
  8991. ee, esep := e.e, e.hh.hasElemSeparators()
  8992. ee.WriteMapStart(len(v))
  8993. if e.h.Canonical {
  8994. v2 := make([]int64, len(v))
  8995. var i int
  8996. for k, _ := range v {
  8997. v2[i] = int64(k)
  8998. i++
  8999. }
  9000. sort.Sort(intSlice(v2))
  9001. for _, k2 := range v2 {
  9002. if esep {
  9003. ee.WriteMapElemKey()
  9004. }
  9005. ee.EncodeInt(int64(int8(k2)))
  9006. if esep {
  9007. ee.WriteMapElemValue()
  9008. }
  9009. ee.EncodeString(c_UTF8, v[int8(k2)])
  9010. }
  9011. } else {
  9012. for k2, v2 := range v {
  9013. if esep {
  9014. ee.WriteMapElemKey()
  9015. }
  9016. ee.EncodeInt(int64(k2))
  9017. if esep {
  9018. ee.WriteMapElemValue()
  9019. }
  9020. ee.EncodeString(c_UTF8, v2)
  9021. }
  9022. }
  9023. ee.WriteMapEnd()
  9024. }
  9025. func (e *Encoder) fastpathEncMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  9026. fastpathTV.EncMapInt8UintV(rv2i(rv).(map[int8]uint), e)
  9027. }
  9028. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, e *Encoder) {
  9029. ee, esep := e.e, e.hh.hasElemSeparators()
  9030. ee.WriteMapStart(len(v))
  9031. if e.h.Canonical {
  9032. v2 := make([]int64, len(v))
  9033. var i int
  9034. for k, _ := range v {
  9035. v2[i] = int64(k)
  9036. i++
  9037. }
  9038. sort.Sort(intSlice(v2))
  9039. for _, k2 := range v2 {
  9040. if esep {
  9041. ee.WriteMapElemKey()
  9042. }
  9043. ee.EncodeInt(int64(int8(k2)))
  9044. if esep {
  9045. ee.WriteMapElemValue()
  9046. }
  9047. ee.EncodeUint(uint64(v[int8(k2)]))
  9048. }
  9049. } else {
  9050. for k2, v2 := range v {
  9051. if esep {
  9052. ee.WriteMapElemKey()
  9053. }
  9054. ee.EncodeInt(int64(k2))
  9055. if esep {
  9056. ee.WriteMapElemValue()
  9057. }
  9058. ee.EncodeUint(uint64(v2))
  9059. }
  9060. }
  9061. ee.WriteMapEnd()
  9062. }
  9063. func (e *Encoder) fastpathEncMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  9064. fastpathTV.EncMapInt8Uint8V(rv2i(rv).(map[int8]uint8), e)
  9065. }
  9066. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, e *Encoder) {
  9067. ee, esep := e.e, e.hh.hasElemSeparators()
  9068. ee.WriteMapStart(len(v))
  9069. if e.h.Canonical {
  9070. v2 := make([]int64, len(v))
  9071. var i int
  9072. for k, _ := range v {
  9073. v2[i] = int64(k)
  9074. i++
  9075. }
  9076. sort.Sort(intSlice(v2))
  9077. for _, k2 := range v2 {
  9078. if esep {
  9079. ee.WriteMapElemKey()
  9080. }
  9081. ee.EncodeInt(int64(int8(k2)))
  9082. if esep {
  9083. ee.WriteMapElemValue()
  9084. }
  9085. ee.EncodeUint(uint64(v[int8(k2)]))
  9086. }
  9087. } else {
  9088. for k2, v2 := range v {
  9089. if esep {
  9090. ee.WriteMapElemKey()
  9091. }
  9092. ee.EncodeInt(int64(k2))
  9093. if esep {
  9094. ee.WriteMapElemValue()
  9095. }
  9096. ee.EncodeUint(uint64(v2))
  9097. }
  9098. }
  9099. ee.WriteMapEnd()
  9100. }
  9101. func (e *Encoder) fastpathEncMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  9102. fastpathTV.EncMapInt8Uint16V(rv2i(rv).(map[int8]uint16), e)
  9103. }
  9104. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, e *Encoder) {
  9105. ee, esep := e.e, e.hh.hasElemSeparators()
  9106. ee.WriteMapStart(len(v))
  9107. if e.h.Canonical {
  9108. v2 := make([]int64, len(v))
  9109. var i int
  9110. for k, _ := range v {
  9111. v2[i] = int64(k)
  9112. i++
  9113. }
  9114. sort.Sort(intSlice(v2))
  9115. for _, k2 := range v2 {
  9116. if esep {
  9117. ee.WriteMapElemKey()
  9118. }
  9119. ee.EncodeInt(int64(int8(k2)))
  9120. if esep {
  9121. ee.WriteMapElemValue()
  9122. }
  9123. ee.EncodeUint(uint64(v[int8(k2)]))
  9124. }
  9125. } else {
  9126. for k2, v2 := range v {
  9127. if esep {
  9128. ee.WriteMapElemKey()
  9129. }
  9130. ee.EncodeInt(int64(k2))
  9131. if esep {
  9132. ee.WriteMapElemValue()
  9133. }
  9134. ee.EncodeUint(uint64(v2))
  9135. }
  9136. }
  9137. ee.WriteMapEnd()
  9138. }
  9139. func (e *Encoder) fastpathEncMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  9140. fastpathTV.EncMapInt8Uint32V(rv2i(rv).(map[int8]uint32), e)
  9141. }
  9142. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, e *Encoder) {
  9143. ee, esep := e.e, e.hh.hasElemSeparators()
  9144. ee.WriteMapStart(len(v))
  9145. if e.h.Canonical {
  9146. v2 := make([]int64, len(v))
  9147. var i int
  9148. for k, _ := range v {
  9149. v2[i] = int64(k)
  9150. i++
  9151. }
  9152. sort.Sort(intSlice(v2))
  9153. for _, k2 := range v2 {
  9154. if esep {
  9155. ee.WriteMapElemKey()
  9156. }
  9157. ee.EncodeInt(int64(int8(k2)))
  9158. if esep {
  9159. ee.WriteMapElemValue()
  9160. }
  9161. ee.EncodeUint(uint64(v[int8(k2)]))
  9162. }
  9163. } else {
  9164. for k2, v2 := range v {
  9165. if esep {
  9166. ee.WriteMapElemKey()
  9167. }
  9168. ee.EncodeInt(int64(k2))
  9169. if esep {
  9170. ee.WriteMapElemValue()
  9171. }
  9172. ee.EncodeUint(uint64(v2))
  9173. }
  9174. }
  9175. ee.WriteMapEnd()
  9176. }
  9177. func (e *Encoder) fastpathEncMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  9178. fastpathTV.EncMapInt8Uint64V(rv2i(rv).(map[int8]uint64), e)
  9179. }
  9180. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, e *Encoder) {
  9181. ee, esep := e.e, e.hh.hasElemSeparators()
  9182. ee.WriteMapStart(len(v))
  9183. if e.h.Canonical {
  9184. v2 := make([]int64, len(v))
  9185. var i int
  9186. for k, _ := range v {
  9187. v2[i] = int64(k)
  9188. i++
  9189. }
  9190. sort.Sort(intSlice(v2))
  9191. for _, k2 := range v2 {
  9192. if esep {
  9193. ee.WriteMapElemKey()
  9194. }
  9195. ee.EncodeInt(int64(int8(k2)))
  9196. if esep {
  9197. ee.WriteMapElemValue()
  9198. }
  9199. ee.EncodeUint(uint64(v[int8(k2)]))
  9200. }
  9201. } else {
  9202. for k2, v2 := range v {
  9203. if esep {
  9204. ee.WriteMapElemKey()
  9205. }
  9206. ee.EncodeInt(int64(k2))
  9207. if esep {
  9208. ee.WriteMapElemValue()
  9209. }
  9210. ee.EncodeUint(uint64(v2))
  9211. }
  9212. }
  9213. ee.WriteMapEnd()
  9214. }
  9215. func (e *Encoder) fastpathEncMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  9216. fastpathTV.EncMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), e)
  9217. }
  9218. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, e *Encoder) {
  9219. ee, esep := e.e, e.hh.hasElemSeparators()
  9220. ee.WriteMapStart(len(v))
  9221. if e.h.Canonical {
  9222. v2 := make([]int64, len(v))
  9223. var i int
  9224. for k, _ := range v {
  9225. v2[i] = int64(k)
  9226. i++
  9227. }
  9228. sort.Sort(intSlice(v2))
  9229. for _, k2 := range v2 {
  9230. if esep {
  9231. ee.WriteMapElemKey()
  9232. }
  9233. ee.EncodeInt(int64(int8(k2)))
  9234. if esep {
  9235. ee.WriteMapElemValue()
  9236. }
  9237. e.encode(v[int8(k2)])
  9238. }
  9239. } else {
  9240. for k2, v2 := range v {
  9241. if esep {
  9242. ee.WriteMapElemKey()
  9243. }
  9244. ee.EncodeInt(int64(k2))
  9245. if esep {
  9246. ee.WriteMapElemValue()
  9247. }
  9248. e.encode(v2)
  9249. }
  9250. }
  9251. ee.WriteMapEnd()
  9252. }
  9253. func (e *Encoder) fastpathEncMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  9254. fastpathTV.EncMapInt8IntV(rv2i(rv).(map[int8]int), e)
  9255. }
  9256. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, e *Encoder) {
  9257. ee, esep := e.e, e.hh.hasElemSeparators()
  9258. ee.WriteMapStart(len(v))
  9259. if e.h.Canonical {
  9260. v2 := make([]int64, len(v))
  9261. var i int
  9262. for k, _ := range v {
  9263. v2[i] = int64(k)
  9264. i++
  9265. }
  9266. sort.Sort(intSlice(v2))
  9267. for _, k2 := range v2 {
  9268. if esep {
  9269. ee.WriteMapElemKey()
  9270. }
  9271. ee.EncodeInt(int64(int8(k2)))
  9272. if esep {
  9273. ee.WriteMapElemValue()
  9274. }
  9275. ee.EncodeInt(int64(v[int8(k2)]))
  9276. }
  9277. } else {
  9278. for k2, v2 := range v {
  9279. if esep {
  9280. ee.WriteMapElemKey()
  9281. }
  9282. ee.EncodeInt(int64(k2))
  9283. if esep {
  9284. ee.WriteMapElemValue()
  9285. }
  9286. ee.EncodeInt(int64(v2))
  9287. }
  9288. }
  9289. ee.WriteMapEnd()
  9290. }
  9291. func (e *Encoder) fastpathEncMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  9292. fastpathTV.EncMapInt8Int8V(rv2i(rv).(map[int8]int8), e)
  9293. }
  9294. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, e *Encoder) {
  9295. ee, esep := e.e, e.hh.hasElemSeparators()
  9296. ee.WriteMapStart(len(v))
  9297. if e.h.Canonical {
  9298. v2 := make([]int64, len(v))
  9299. var i int
  9300. for k, _ := range v {
  9301. v2[i] = int64(k)
  9302. i++
  9303. }
  9304. sort.Sort(intSlice(v2))
  9305. for _, k2 := range v2 {
  9306. if esep {
  9307. ee.WriteMapElemKey()
  9308. }
  9309. ee.EncodeInt(int64(int8(k2)))
  9310. if esep {
  9311. ee.WriteMapElemValue()
  9312. }
  9313. ee.EncodeInt(int64(v[int8(k2)]))
  9314. }
  9315. } else {
  9316. for k2, v2 := range v {
  9317. if esep {
  9318. ee.WriteMapElemKey()
  9319. }
  9320. ee.EncodeInt(int64(k2))
  9321. if esep {
  9322. ee.WriteMapElemValue()
  9323. }
  9324. ee.EncodeInt(int64(v2))
  9325. }
  9326. }
  9327. ee.WriteMapEnd()
  9328. }
  9329. func (e *Encoder) fastpathEncMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  9330. fastpathTV.EncMapInt8Int16V(rv2i(rv).(map[int8]int16), e)
  9331. }
  9332. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, e *Encoder) {
  9333. ee, esep := e.e, e.hh.hasElemSeparators()
  9334. ee.WriteMapStart(len(v))
  9335. if e.h.Canonical {
  9336. v2 := make([]int64, len(v))
  9337. var i int
  9338. for k, _ := range v {
  9339. v2[i] = int64(k)
  9340. i++
  9341. }
  9342. sort.Sort(intSlice(v2))
  9343. for _, k2 := range v2 {
  9344. if esep {
  9345. ee.WriteMapElemKey()
  9346. }
  9347. ee.EncodeInt(int64(int8(k2)))
  9348. if esep {
  9349. ee.WriteMapElemValue()
  9350. }
  9351. ee.EncodeInt(int64(v[int8(k2)]))
  9352. }
  9353. } else {
  9354. for k2, v2 := range v {
  9355. if esep {
  9356. ee.WriteMapElemKey()
  9357. }
  9358. ee.EncodeInt(int64(k2))
  9359. if esep {
  9360. ee.WriteMapElemValue()
  9361. }
  9362. ee.EncodeInt(int64(v2))
  9363. }
  9364. }
  9365. ee.WriteMapEnd()
  9366. }
  9367. func (e *Encoder) fastpathEncMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  9368. fastpathTV.EncMapInt8Int32V(rv2i(rv).(map[int8]int32), e)
  9369. }
  9370. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, e *Encoder) {
  9371. ee, esep := e.e, e.hh.hasElemSeparators()
  9372. ee.WriteMapStart(len(v))
  9373. if e.h.Canonical {
  9374. v2 := make([]int64, len(v))
  9375. var i int
  9376. for k, _ := range v {
  9377. v2[i] = int64(k)
  9378. i++
  9379. }
  9380. sort.Sort(intSlice(v2))
  9381. for _, k2 := range v2 {
  9382. if esep {
  9383. ee.WriteMapElemKey()
  9384. }
  9385. ee.EncodeInt(int64(int8(k2)))
  9386. if esep {
  9387. ee.WriteMapElemValue()
  9388. }
  9389. ee.EncodeInt(int64(v[int8(k2)]))
  9390. }
  9391. } else {
  9392. for k2, v2 := range v {
  9393. if esep {
  9394. ee.WriteMapElemKey()
  9395. }
  9396. ee.EncodeInt(int64(k2))
  9397. if esep {
  9398. ee.WriteMapElemValue()
  9399. }
  9400. ee.EncodeInt(int64(v2))
  9401. }
  9402. }
  9403. ee.WriteMapEnd()
  9404. }
  9405. func (e *Encoder) fastpathEncMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  9406. fastpathTV.EncMapInt8Int64V(rv2i(rv).(map[int8]int64), e)
  9407. }
  9408. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, e *Encoder) {
  9409. ee, esep := e.e, e.hh.hasElemSeparators()
  9410. ee.WriteMapStart(len(v))
  9411. if e.h.Canonical {
  9412. v2 := make([]int64, len(v))
  9413. var i int
  9414. for k, _ := range v {
  9415. v2[i] = int64(k)
  9416. i++
  9417. }
  9418. sort.Sort(intSlice(v2))
  9419. for _, k2 := range v2 {
  9420. if esep {
  9421. ee.WriteMapElemKey()
  9422. }
  9423. ee.EncodeInt(int64(int8(k2)))
  9424. if esep {
  9425. ee.WriteMapElemValue()
  9426. }
  9427. ee.EncodeInt(int64(v[int8(k2)]))
  9428. }
  9429. } else {
  9430. for k2, v2 := range v {
  9431. if esep {
  9432. ee.WriteMapElemKey()
  9433. }
  9434. ee.EncodeInt(int64(k2))
  9435. if esep {
  9436. ee.WriteMapElemValue()
  9437. }
  9438. ee.EncodeInt(int64(v2))
  9439. }
  9440. }
  9441. ee.WriteMapEnd()
  9442. }
  9443. func (e *Encoder) fastpathEncMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  9444. fastpathTV.EncMapInt8Float32V(rv2i(rv).(map[int8]float32), e)
  9445. }
  9446. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, e *Encoder) {
  9447. ee, esep := e.e, e.hh.hasElemSeparators()
  9448. ee.WriteMapStart(len(v))
  9449. if e.h.Canonical {
  9450. v2 := make([]int64, len(v))
  9451. var i int
  9452. for k, _ := range v {
  9453. v2[i] = int64(k)
  9454. i++
  9455. }
  9456. sort.Sort(intSlice(v2))
  9457. for _, k2 := range v2 {
  9458. if esep {
  9459. ee.WriteMapElemKey()
  9460. }
  9461. ee.EncodeInt(int64(int8(k2)))
  9462. if esep {
  9463. ee.WriteMapElemValue()
  9464. }
  9465. ee.EncodeFloat32(v[int8(k2)])
  9466. }
  9467. } else {
  9468. for k2, v2 := range v {
  9469. if esep {
  9470. ee.WriteMapElemKey()
  9471. }
  9472. ee.EncodeInt(int64(k2))
  9473. if esep {
  9474. ee.WriteMapElemValue()
  9475. }
  9476. ee.EncodeFloat32(v2)
  9477. }
  9478. }
  9479. ee.WriteMapEnd()
  9480. }
  9481. func (e *Encoder) fastpathEncMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  9482. fastpathTV.EncMapInt8Float64V(rv2i(rv).(map[int8]float64), e)
  9483. }
  9484. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, e *Encoder) {
  9485. ee, esep := e.e, e.hh.hasElemSeparators()
  9486. ee.WriteMapStart(len(v))
  9487. if e.h.Canonical {
  9488. v2 := make([]int64, len(v))
  9489. var i int
  9490. for k, _ := range v {
  9491. v2[i] = int64(k)
  9492. i++
  9493. }
  9494. sort.Sort(intSlice(v2))
  9495. for _, k2 := range v2 {
  9496. if esep {
  9497. ee.WriteMapElemKey()
  9498. }
  9499. ee.EncodeInt(int64(int8(k2)))
  9500. if esep {
  9501. ee.WriteMapElemValue()
  9502. }
  9503. ee.EncodeFloat64(v[int8(k2)])
  9504. }
  9505. } else {
  9506. for k2, v2 := range v {
  9507. if esep {
  9508. ee.WriteMapElemKey()
  9509. }
  9510. ee.EncodeInt(int64(k2))
  9511. if esep {
  9512. ee.WriteMapElemValue()
  9513. }
  9514. ee.EncodeFloat64(v2)
  9515. }
  9516. }
  9517. ee.WriteMapEnd()
  9518. }
  9519. func (e *Encoder) fastpathEncMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  9520. fastpathTV.EncMapInt8BoolV(rv2i(rv).(map[int8]bool), e)
  9521. }
  9522. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, e *Encoder) {
  9523. ee, esep := e.e, e.hh.hasElemSeparators()
  9524. ee.WriteMapStart(len(v))
  9525. if e.h.Canonical {
  9526. v2 := make([]int64, len(v))
  9527. var i int
  9528. for k, _ := range v {
  9529. v2[i] = int64(k)
  9530. i++
  9531. }
  9532. sort.Sort(intSlice(v2))
  9533. for _, k2 := range v2 {
  9534. if esep {
  9535. ee.WriteMapElemKey()
  9536. }
  9537. ee.EncodeInt(int64(int8(k2)))
  9538. if esep {
  9539. ee.WriteMapElemValue()
  9540. }
  9541. ee.EncodeBool(v[int8(k2)])
  9542. }
  9543. } else {
  9544. for k2, v2 := range v {
  9545. if esep {
  9546. ee.WriteMapElemKey()
  9547. }
  9548. ee.EncodeInt(int64(k2))
  9549. if esep {
  9550. ee.WriteMapElemValue()
  9551. }
  9552. ee.EncodeBool(v2)
  9553. }
  9554. }
  9555. ee.WriteMapEnd()
  9556. }
  9557. func (e *Encoder) fastpathEncMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  9558. fastpathTV.EncMapInt16IntfV(rv2i(rv).(map[int16]interface{}), e)
  9559. }
  9560. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, e *Encoder) {
  9561. ee, esep := e.e, e.hh.hasElemSeparators()
  9562. ee.WriteMapStart(len(v))
  9563. if e.h.Canonical {
  9564. v2 := make([]int64, len(v))
  9565. var i int
  9566. for k, _ := range v {
  9567. v2[i] = int64(k)
  9568. i++
  9569. }
  9570. sort.Sort(intSlice(v2))
  9571. for _, k2 := range v2 {
  9572. if esep {
  9573. ee.WriteMapElemKey()
  9574. }
  9575. ee.EncodeInt(int64(int16(k2)))
  9576. if esep {
  9577. ee.WriteMapElemValue()
  9578. }
  9579. e.encode(v[int16(k2)])
  9580. }
  9581. } else {
  9582. for k2, v2 := range v {
  9583. if esep {
  9584. ee.WriteMapElemKey()
  9585. }
  9586. ee.EncodeInt(int64(k2))
  9587. if esep {
  9588. ee.WriteMapElemValue()
  9589. }
  9590. e.encode(v2)
  9591. }
  9592. }
  9593. ee.WriteMapEnd()
  9594. }
  9595. func (e *Encoder) fastpathEncMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  9596. fastpathTV.EncMapInt16StringV(rv2i(rv).(map[int16]string), e)
  9597. }
  9598. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, e *Encoder) {
  9599. ee, esep := e.e, e.hh.hasElemSeparators()
  9600. ee.WriteMapStart(len(v))
  9601. if e.h.Canonical {
  9602. v2 := make([]int64, len(v))
  9603. var i int
  9604. for k, _ := range v {
  9605. v2[i] = int64(k)
  9606. i++
  9607. }
  9608. sort.Sort(intSlice(v2))
  9609. for _, k2 := range v2 {
  9610. if esep {
  9611. ee.WriteMapElemKey()
  9612. }
  9613. ee.EncodeInt(int64(int16(k2)))
  9614. if esep {
  9615. ee.WriteMapElemValue()
  9616. }
  9617. ee.EncodeString(c_UTF8, v[int16(k2)])
  9618. }
  9619. } else {
  9620. for k2, v2 := range v {
  9621. if esep {
  9622. ee.WriteMapElemKey()
  9623. }
  9624. ee.EncodeInt(int64(k2))
  9625. if esep {
  9626. ee.WriteMapElemValue()
  9627. }
  9628. ee.EncodeString(c_UTF8, v2)
  9629. }
  9630. }
  9631. ee.WriteMapEnd()
  9632. }
  9633. func (e *Encoder) fastpathEncMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  9634. fastpathTV.EncMapInt16UintV(rv2i(rv).(map[int16]uint), e)
  9635. }
  9636. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, e *Encoder) {
  9637. ee, esep := e.e, e.hh.hasElemSeparators()
  9638. ee.WriteMapStart(len(v))
  9639. if e.h.Canonical {
  9640. v2 := make([]int64, len(v))
  9641. var i int
  9642. for k, _ := range v {
  9643. v2[i] = int64(k)
  9644. i++
  9645. }
  9646. sort.Sort(intSlice(v2))
  9647. for _, k2 := range v2 {
  9648. if esep {
  9649. ee.WriteMapElemKey()
  9650. }
  9651. ee.EncodeInt(int64(int16(k2)))
  9652. if esep {
  9653. ee.WriteMapElemValue()
  9654. }
  9655. ee.EncodeUint(uint64(v[int16(k2)]))
  9656. }
  9657. } else {
  9658. for k2, v2 := range v {
  9659. if esep {
  9660. ee.WriteMapElemKey()
  9661. }
  9662. ee.EncodeInt(int64(k2))
  9663. if esep {
  9664. ee.WriteMapElemValue()
  9665. }
  9666. ee.EncodeUint(uint64(v2))
  9667. }
  9668. }
  9669. ee.WriteMapEnd()
  9670. }
  9671. func (e *Encoder) fastpathEncMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  9672. fastpathTV.EncMapInt16Uint8V(rv2i(rv).(map[int16]uint8), e)
  9673. }
  9674. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, e *Encoder) {
  9675. ee, esep := e.e, e.hh.hasElemSeparators()
  9676. ee.WriteMapStart(len(v))
  9677. if e.h.Canonical {
  9678. v2 := make([]int64, len(v))
  9679. var i int
  9680. for k, _ := range v {
  9681. v2[i] = int64(k)
  9682. i++
  9683. }
  9684. sort.Sort(intSlice(v2))
  9685. for _, k2 := range v2 {
  9686. if esep {
  9687. ee.WriteMapElemKey()
  9688. }
  9689. ee.EncodeInt(int64(int16(k2)))
  9690. if esep {
  9691. ee.WriteMapElemValue()
  9692. }
  9693. ee.EncodeUint(uint64(v[int16(k2)]))
  9694. }
  9695. } else {
  9696. for k2, v2 := range v {
  9697. if esep {
  9698. ee.WriteMapElemKey()
  9699. }
  9700. ee.EncodeInt(int64(k2))
  9701. if esep {
  9702. ee.WriteMapElemValue()
  9703. }
  9704. ee.EncodeUint(uint64(v2))
  9705. }
  9706. }
  9707. ee.WriteMapEnd()
  9708. }
  9709. func (e *Encoder) fastpathEncMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  9710. fastpathTV.EncMapInt16Uint16V(rv2i(rv).(map[int16]uint16), e)
  9711. }
  9712. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, e *Encoder) {
  9713. ee, esep := e.e, e.hh.hasElemSeparators()
  9714. ee.WriteMapStart(len(v))
  9715. if e.h.Canonical {
  9716. v2 := make([]int64, len(v))
  9717. var i int
  9718. for k, _ := range v {
  9719. v2[i] = int64(k)
  9720. i++
  9721. }
  9722. sort.Sort(intSlice(v2))
  9723. for _, k2 := range v2 {
  9724. if esep {
  9725. ee.WriteMapElemKey()
  9726. }
  9727. ee.EncodeInt(int64(int16(k2)))
  9728. if esep {
  9729. ee.WriteMapElemValue()
  9730. }
  9731. ee.EncodeUint(uint64(v[int16(k2)]))
  9732. }
  9733. } else {
  9734. for k2, v2 := range v {
  9735. if esep {
  9736. ee.WriteMapElemKey()
  9737. }
  9738. ee.EncodeInt(int64(k2))
  9739. if esep {
  9740. ee.WriteMapElemValue()
  9741. }
  9742. ee.EncodeUint(uint64(v2))
  9743. }
  9744. }
  9745. ee.WriteMapEnd()
  9746. }
  9747. func (e *Encoder) fastpathEncMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  9748. fastpathTV.EncMapInt16Uint32V(rv2i(rv).(map[int16]uint32), e)
  9749. }
  9750. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, e *Encoder) {
  9751. ee, esep := e.e, e.hh.hasElemSeparators()
  9752. ee.WriteMapStart(len(v))
  9753. if e.h.Canonical {
  9754. v2 := make([]int64, len(v))
  9755. var i int
  9756. for k, _ := range v {
  9757. v2[i] = int64(k)
  9758. i++
  9759. }
  9760. sort.Sort(intSlice(v2))
  9761. for _, k2 := range v2 {
  9762. if esep {
  9763. ee.WriteMapElemKey()
  9764. }
  9765. ee.EncodeInt(int64(int16(k2)))
  9766. if esep {
  9767. ee.WriteMapElemValue()
  9768. }
  9769. ee.EncodeUint(uint64(v[int16(k2)]))
  9770. }
  9771. } else {
  9772. for k2, v2 := range v {
  9773. if esep {
  9774. ee.WriteMapElemKey()
  9775. }
  9776. ee.EncodeInt(int64(k2))
  9777. if esep {
  9778. ee.WriteMapElemValue()
  9779. }
  9780. ee.EncodeUint(uint64(v2))
  9781. }
  9782. }
  9783. ee.WriteMapEnd()
  9784. }
  9785. func (e *Encoder) fastpathEncMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  9786. fastpathTV.EncMapInt16Uint64V(rv2i(rv).(map[int16]uint64), e)
  9787. }
  9788. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, e *Encoder) {
  9789. ee, esep := e.e, e.hh.hasElemSeparators()
  9790. ee.WriteMapStart(len(v))
  9791. if e.h.Canonical {
  9792. v2 := make([]int64, len(v))
  9793. var i int
  9794. for k, _ := range v {
  9795. v2[i] = int64(k)
  9796. i++
  9797. }
  9798. sort.Sort(intSlice(v2))
  9799. for _, k2 := range v2 {
  9800. if esep {
  9801. ee.WriteMapElemKey()
  9802. }
  9803. ee.EncodeInt(int64(int16(k2)))
  9804. if esep {
  9805. ee.WriteMapElemValue()
  9806. }
  9807. ee.EncodeUint(uint64(v[int16(k2)]))
  9808. }
  9809. } else {
  9810. for k2, v2 := range v {
  9811. if esep {
  9812. ee.WriteMapElemKey()
  9813. }
  9814. ee.EncodeInt(int64(k2))
  9815. if esep {
  9816. ee.WriteMapElemValue()
  9817. }
  9818. ee.EncodeUint(uint64(v2))
  9819. }
  9820. }
  9821. ee.WriteMapEnd()
  9822. }
  9823. func (e *Encoder) fastpathEncMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  9824. fastpathTV.EncMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), e)
  9825. }
  9826. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, e *Encoder) {
  9827. ee, esep := e.e, e.hh.hasElemSeparators()
  9828. ee.WriteMapStart(len(v))
  9829. if e.h.Canonical {
  9830. v2 := make([]int64, len(v))
  9831. var i int
  9832. for k, _ := range v {
  9833. v2[i] = int64(k)
  9834. i++
  9835. }
  9836. sort.Sort(intSlice(v2))
  9837. for _, k2 := range v2 {
  9838. if esep {
  9839. ee.WriteMapElemKey()
  9840. }
  9841. ee.EncodeInt(int64(int16(k2)))
  9842. if esep {
  9843. ee.WriteMapElemValue()
  9844. }
  9845. e.encode(v[int16(k2)])
  9846. }
  9847. } else {
  9848. for k2, v2 := range v {
  9849. if esep {
  9850. ee.WriteMapElemKey()
  9851. }
  9852. ee.EncodeInt(int64(k2))
  9853. if esep {
  9854. ee.WriteMapElemValue()
  9855. }
  9856. e.encode(v2)
  9857. }
  9858. }
  9859. ee.WriteMapEnd()
  9860. }
  9861. func (e *Encoder) fastpathEncMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  9862. fastpathTV.EncMapInt16IntV(rv2i(rv).(map[int16]int), e)
  9863. }
  9864. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, e *Encoder) {
  9865. ee, esep := e.e, e.hh.hasElemSeparators()
  9866. ee.WriteMapStart(len(v))
  9867. if e.h.Canonical {
  9868. v2 := make([]int64, len(v))
  9869. var i int
  9870. for k, _ := range v {
  9871. v2[i] = int64(k)
  9872. i++
  9873. }
  9874. sort.Sort(intSlice(v2))
  9875. for _, k2 := range v2 {
  9876. if esep {
  9877. ee.WriteMapElemKey()
  9878. }
  9879. ee.EncodeInt(int64(int16(k2)))
  9880. if esep {
  9881. ee.WriteMapElemValue()
  9882. }
  9883. ee.EncodeInt(int64(v[int16(k2)]))
  9884. }
  9885. } else {
  9886. for k2, v2 := range v {
  9887. if esep {
  9888. ee.WriteMapElemKey()
  9889. }
  9890. ee.EncodeInt(int64(k2))
  9891. if esep {
  9892. ee.WriteMapElemValue()
  9893. }
  9894. ee.EncodeInt(int64(v2))
  9895. }
  9896. }
  9897. ee.WriteMapEnd()
  9898. }
  9899. func (e *Encoder) fastpathEncMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  9900. fastpathTV.EncMapInt16Int8V(rv2i(rv).(map[int16]int8), e)
  9901. }
  9902. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, e *Encoder) {
  9903. ee, esep := e.e, e.hh.hasElemSeparators()
  9904. ee.WriteMapStart(len(v))
  9905. if e.h.Canonical {
  9906. v2 := make([]int64, len(v))
  9907. var i int
  9908. for k, _ := range v {
  9909. v2[i] = int64(k)
  9910. i++
  9911. }
  9912. sort.Sort(intSlice(v2))
  9913. for _, k2 := range v2 {
  9914. if esep {
  9915. ee.WriteMapElemKey()
  9916. }
  9917. ee.EncodeInt(int64(int16(k2)))
  9918. if esep {
  9919. ee.WriteMapElemValue()
  9920. }
  9921. ee.EncodeInt(int64(v[int16(k2)]))
  9922. }
  9923. } else {
  9924. for k2, v2 := range v {
  9925. if esep {
  9926. ee.WriteMapElemKey()
  9927. }
  9928. ee.EncodeInt(int64(k2))
  9929. if esep {
  9930. ee.WriteMapElemValue()
  9931. }
  9932. ee.EncodeInt(int64(v2))
  9933. }
  9934. }
  9935. ee.WriteMapEnd()
  9936. }
  9937. func (e *Encoder) fastpathEncMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  9938. fastpathTV.EncMapInt16Int16V(rv2i(rv).(map[int16]int16), e)
  9939. }
  9940. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, e *Encoder) {
  9941. ee, esep := e.e, e.hh.hasElemSeparators()
  9942. ee.WriteMapStart(len(v))
  9943. if e.h.Canonical {
  9944. v2 := make([]int64, len(v))
  9945. var i int
  9946. for k, _ := range v {
  9947. v2[i] = int64(k)
  9948. i++
  9949. }
  9950. sort.Sort(intSlice(v2))
  9951. for _, k2 := range v2 {
  9952. if esep {
  9953. ee.WriteMapElemKey()
  9954. }
  9955. ee.EncodeInt(int64(int16(k2)))
  9956. if esep {
  9957. ee.WriteMapElemValue()
  9958. }
  9959. ee.EncodeInt(int64(v[int16(k2)]))
  9960. }
  9961. } else {
  9962. for k2, v2 := range v {
  9963. if esep {
  9964. ee.WriteMapElemKey()
  9965. }
  9966. ee.EncodeInt(int64(k2))
  9967. if esep {
  9968. ee.WriteMapElemValue()
  9969. }
  9970. ee.EncodeInt(int64(v2))
  9971. }
  9972. }
  9973. ee.WriteMapEnd()
  9974. }
  9975. func (e *Encoder) fastpathEncMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  9976. fastpathTV.EncMapInt16Int32V(rv2i(rv).(map[int16]int32), e)
  9977. }
  9978. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, e *Encoder) {
  9979. ee, esep := e.e, e.hh.hasElemSeparators()
  9980. ee.WriteMapStart(len(v))
  9981. if e.h.Canonical {
  9982. v2 := make([]int64, len(v))
  9983. var i int
  9984. for k, _ := range v {
  9985. v2[i] = int64(k)
  9986. i++
  9987. }
  9988. sort.Sort(intSlice(v2))
  9989. for _, k2 := range v2 {
  9990. if esep {
  9991. ee.WriteMapElemKey()
  9992. }
  9993. ee.EncodeInt(int64(int16(k2)))
  9994. if esep {
  9995. ee.WriteMapElemValue()
  9996. }
  9997. ee.EncodeInt(int64(v[int16(k2)]))
  9998. }
  9999. } else {
  10000. for k2, v2 := range v {
  10001. if esep {
  10002. ee.WriteMapElemKey()
  10003. }
  10004. ee.EncodeInt(int64(k2))
  10005. if esep {
  10006. ee.WriteMapElemValue()
  10007. }
  10008. ee.EncodeInt(int64(v2))
  10009. }
  10010. }
  10011. ee.WriteMapEnd()
  10012. }
  10013. func (e *Encoder) fastpathEncMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  10014. fastpathTV.EncMapInt16Int64V(rv2i(rv).(map[int16]int64), e)
  10015. }
  10016. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, e *Encoder) {
  10017. ee, esep := e.e, e.hh.hasElemSeparators()
  10018. ee.WriteMapStart(len(v))
  10019. if e.h.Canonical {
  10020. v2 := make([]int64, len(v))
  10021. var i int
  10022. for k, _ := range v {
  10023. v2[i] = int64(k)
  10024. i++
  10025. }
  10026. sort.Sort(intSlice(v2))
  10027. for _, k2 := range v2 {
  10028. if esep {
  10029. ee.WriteMapElemKey()
  10030. }
  10031. ee.EncodeInt(int64(int16(k2)))
  10032. if esep {
  10033. ee.WriteMapElemValue()
  10034. }
  10035. ee.EncodeInt(int64(v[int16(k2)]))
  10036. }
  10037. } else {
  10038. for k2, v2 := range v {
  10039. if esep {
  10040. ee.WriteMapElemKey()
  10041. }
  10042. ee.EncodeInt(int64(k2))
  10043. if esep {
  10044. ee.WriteMapElemValue()
  10045. }
  10046. ee.EncodeInt(int64(v2))
  10047. }
  10048. }
  10049. ee.WriteMapEnd()
  10050. }
  10051. func (e *Encoder) fastpathEncMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  10052. fastpathTV.EncMapInt16Float32V(rv2i(rv).(map[int16]float32), e)
  10053. }
  10054. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, e *Encoder) {
  10055. ee, esep := e.e, e.hh.hasElemSeparators()
  10056. ee.WriteMapStart(len(v))
  10057. if e.h.Canonical {
  10058. v2 := make([]int64, len(v))
  10059. var i int
  10060. for k, _ := range v {
  10061. v2[i] = int64(k)
  10062. i++
  10063. }
  10064. sort.Sort(intSlice(v2))
  10065. for _, k2 := range v2 {
  10066. if esep {
  10067. ee.WriteMapElemKey()
  10068. }
  10069. ee.EncodeInt(int64(int16(k2)))
  10070. if esep {
  10071. ee.WriteMapElemValue()
  10072. }
  10073. ee.EncodeFloat32(v[int16(k2)])
  10074. }
  10075. } else {
  10076. for k2, v2 := range v {
  10077. if esep {
  10078. ee.WriteMapElemKey()
  10079. }
  10080. ee.EncodeInt(int64(k2))
  10081. if esep {
  10082. ee.WriteMapElemValue()
  10083. }
  10084. ee.EncodeFloat32(v2)
  10085. }
  10086. }
  10087. ee.WriteMapEnd()
  10088. }
  10089. func (e *Encoder) fastpathEncMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  10090. fastpathTV.EncMapInt16Float64V(rv2i(rv).(map[int16]float64), e)
  10091. }
  10092. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, e *Encoder) {
  10093. ee, esep := e.e, e.hh.hasElemSeparators()
  10094. ee.WriteMapStart(len(v))
  10095. if e.h.Canonical {
  10096. v2 := make([]int64, len(v))
  10097. var i int
  10098. for k, _ := range v {
  10099. v2[i] = int64(k)
  10100. i++
  10101. }
  10102. sort.Sort(intSlice(v2))
  10103. for _, k2 := range v2 {
  10104. if esep {
  10105. ee.WriteMapElemKey()
  10106. }
  10107. ee.EncodeInt(int64(int16(k2)))
  10108. if esep {
  10109. ee.WriteMapElemValue()
  10110. }
  10111. ee.EncodeFloat64(v[int16(k2)])
  10112. }
  10113. } else {
  10114. for k2, v2 := range v {
  10115. if esep {
  10116. ee.WriteMapElemKey()
  10117. }
  10118. ee.EncodeInt(int64(k2))
  10119. if esep {
  10120. ee.WriteMapElemValue()
  10121. }
  10122. ee.EncodeFloat64(v2)
  10123. }
  10124. }
  10125. ee.WriteMapEnd()
  10126. }
  10127. func (e *Encoder) fastpathEncMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  10128. fastpathTV.EncMapInt16BoolV(rv2i(rv).(map[int16]bool), e)
  10129. }
  10130. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, e *Encoder) {
  10131. ee, esep := e.e, e.hh.hasElemSeparators()
  10132. ee.WriteMapStart(len(v))
  10133. if e.h.Canonical {
  10134. v2 := make([]int64, len(v))
  10135. var i int
  10136. for k, _ := range v {
  10137. v2[i] = int64(k)
  10138. i++
  10139. }
  10140. sort.Sort(intSlice(v2))
  10141. for _, k2 := range v2 {
  10142. if esep {
  10143. ee.WriteMapElemKey()
  10144. }
  10145. ee.EncodeInt(int64(int16(k2)))
  10146. if esep {
  10147. ee.WriteMapElemValue()
  10148. }
  10149. ee.EncodeBool(v[int16(k2)])
  10150. }
  10151. } else {
  10152. for k2, v2 := range v {
  10153. if esep {
  10154. ee.WriteMapElemKey()
  10155. }
  10156. ee.EncodeInt(int64(k2))
  10157. if esep {
  10158. ee.WriteMapElemValue()
  10159. }
  10160. ee.EncodeBool(v2)
  10161. }
  10162. }
  10163. ee.WriteMapEnd()
  10164. }
  10165. func (e *Encoder) fastpathEncMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  10166. fastpathTV.EncMapInt32IntfV(rv2i(rv).(map[int32]interface{}), e)
  10167. }
  10168. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, e *Encoder) {
  10169. ee, esep := e.e, e.hh.hasElemSeparators()
  10170. ee.WriteMapStart(len(v))
  10171. if e.h.Canonical {
  10172. v2 := make([]int64, len(v))
  10173. var i int
  10174. for k, _ := range v {
  10175. v2[i] = int64(k)
  10176. i++
  10177. }
  10178. sort.Sort(intSlice(v2))
  10179. for _, k2 := range v2 {
  10180. if esep {
  10181. ee.WriteMapElemKey()
  10182. }
  10183. ee.EncodeInt(int64(int32(k2)))
  10184. if esep {
  10185. ee.WriteMapElemValue()
  10186. }
  10187. e.encode(v[int32(k2)])
  10188. }
  10189. } else {
  10190. for k2, v2 := range v {
  10191. if esep {
  10192. ee.WriteMapElemKey()
  10193. }
  10194. ee.EncodeInt(int64(k2))
  10195. if esep {
  10196. ee.WriteMapElemValue()
  10197. }
  10198. e.encode(v2)
  10199. }
  10200. }
  10201. ee.WriteMapEnd()
  10202. }
  10203. func (e *Encoder) fastpathEncMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  10204. fastpathTV.EncMapInt32StringV(rv2i(rv).(map[int32]string), e)
  10205. }
  10206. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, e *Encoder) {
  10207. ee, esep := e.e, e.hh.hasElemSeparators()
  10208. ee.WriteMapStart(len(v))
  10209. if e.h.Canonical {
  10210. v2 := make([]int64, len(v))
  10211. var i int
  10212. for k, _ := range v {
  10213. v2[i] = int64(k)
  10214. i++
  10215. }
  10216. sort.Sort(intSlice(v2))
  10217. for _, k2 := range v2 {
  10218. if esep {
  10219. ee.WriteMapElemKey()
  10220. }
  10221. ee.EncodeInt(int64(int32(k2)))
  10222. if esep {
  10223. ee.WriteMapElemValue()
  10224. }
  10225. ee.EncodeString(c_UTF8, v[int32(k2)])
  10226. }
  10227. } else {
  10228. for k2, v2 := range v {
  10229. if esep {
  10230. ee.WriteMapElemKey()
  10231. }
  10232. ee.EncodeInt(int64(k2))
  10233. if esep {
  10234. ee.WriteMapElemValue()
  10235. }
  10236. ee.EncodeString(c_UTF8, v2)
  10237. }
  10238. }
  10239. ee.WriteMapEnd()
  10240. }
  10241. func (e *Encoder) fastpathEncMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  10242. fastpathTV.EncMapInt32UintV(rv2i(rv).(map[int32]uint), e)
  10243. }
  10244. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, e *Encoder) {
  10245. ee, esep := e.e, e.hh.hasElemSeparators()
  10246. ee.WriteMapStart(len(v))
  10247. if e.h.Canonical {
  10248. v2 := make([]int64, len(v))
  10249. var i int
  10250. for k, _ := range v {
  10251. v2[i] = int64(k)
  10252. i++
  10253. }
  10254. sort.Sort(intSlice(v2))
  10255. for _, k2 := range v2 {
  10256. if esep {
  10257. ee.WriteMapElemKey()
  10258. }
  10259. ee.EncodeInt(int64(int32(k2)))
  10260. if esep {
  10261. ee.WriteMapElemValue()
  10262. }
  10263. ee.EncodeUint(uint64(v[int32(k2)]))
  10264. }
  10265. } else {
  10266. for k2, v2 := range v {
  10267. if esep {
  10268. ee.WriteMapElemKey()
  10269. }
  10270. ee.EncodeInt(int64(k2))
  10271. if esep {
  10272. ee.WriteMapElemValue()
  10273. }
  10274. ee.EncodeUint(uint64(v2))
  10275. }
  10276. }
  10277. ee.WriteMapEnd()
  10278. }
  10279. func (e *Encoder) fastpathEncMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  10280. fastpathTV.EncMapInt32Uint8V(rv2i(rv).(map[int32]uint8), e)
  10281. }
  10282. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, e *Encoder) {
  10283. ee, esep := e.e, e.hh.hasElemSeparators()
  10284. ee.WriteMapStart(len(v))
  10285. if e.h.Canonical {
  10286. v2 := make([]int64, len(v))
  10287. var i int
  10288. for k, _ := range v {
  10289. v2[i] = int64(k)
  10290. i++
  10291. }
  10292. sort.Sort(intSlice(v2))
  10293. for _, k2 := range v2 {
  10294. if esep {
  10295. ee.WriteMapElemKey()
  10296. }
  10297. ee.EncodeInt(int64(int32(k2)))
  10298. if esep {
  10299. ee.WriteMapElemValue()
  10300. }
  10301. ee.EncodeUint(uint64(v[int32(k2)]))
  10302. }
  10303. } else {
  10304. for k2, v2 := range v {
  10305. if esep {
  10306. ee.WriteMapElemKey()
  10307. }
  10308. ee.EncodeInt(int64(k2))
  10309. if esep {
  10310. ee.WriteMapElemValue()
  10311. }
  10312. ee.EncodeUint(uint64(v2))
  10313. }
  10314. }
  10315. ee.WriteMapEnd()
  10316. }
  10317. func (e *Encoder) fastpathEncMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  10318. fastpathTV.EncMapInt32Uint16V(rv2i(rv).(map[int32]uint16), e)
  10319. }
  10320. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, e *Encoder) {
  10321. ee, esep := e.e, e.hh.hasElemSeparators()
  10322. ee.WriteMapStart(len(v))
  10323. if e.h.Canonical {
  10324. v2 := make([]int64, len(v))
  10325. var i int
  10326. for k, _ := range v {
  10327. v2[i] = int64(k)
  10328. i++
  10329. }
  10330. sort.Sort(intSlice(v2))
  10331. for _, k2 := range v2 {
  10332. if esep {
  10333. ee.WriteMapElemKey()
  10334. }
  10335. ee.EncodeInt(int64(int32(k2)))
  10336. if esep {
  10337. ee.WriteMapElemValue()
  10338. }
  10339. ee.EncodeUint(uint64(v[int32(k2)]))
  10340. }
  10341. } else {
  10342. for k2, v2 := range v {
  10343. if esep {
  10344. ee.WriteMapElemKey()
  10345. }
  10346. ee.EncodeInt(int64(k2))
  10347. if esep {
  10348. ee.WriteMapElemValue()
  10349. }
  10350. ee.EncodeUint(uint64(v2))
  10351. }
  10352. }
  10353. ee.WriteMapEnd()
  10354. }
  10355. func (e *Encoder) fastpathEncMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  10356. fastpathTV.EncMapInt32Uint32V(rv2i(rv).(map[int32]uint32), e)
  10357. }
  10358. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, e *Encoder) {
  10359. ee, esep := e.e, e.hh.hasElemSeparators()
  10360. ee.WriteMapStart(len(v))
  10361. if e.h.Canonical {
  10362. v2 := make([]int64, len(v))
  10363. var i int
  10364. for k, _ := range v {
  10365. v2[i] = int64(k)
  10366. i++
  10367. }
  10368. sort.Sort(intSlice(v2))
  10369. for _, k2 := range v2 {
  10370. if esep {
  10371. ee.WriteMapElemKey()
  10372. }
  10373. ee.EncodeInt(int64(int32(k2)))
  10374. if esep {
  10375. ee.WriteMapElemValue()
  10376. }
  10377. ee.EncodeUint(uint64(v[int32(k2)]))
  10378. }
  10379. } else {
  10380. for k2, v2 := range v {
  10381. if esep {
  10382. ee.WriteMapElemKey()
  10383. }
  10384. ee.EncodeInt(int64(k2))
  10385. if esep {
  10386. ee.WriteMapElemValue()
  10387. }
  10388. ee.EncodeUint(uint64(v2))
  10389. }
  10390. }
  10391. ee.WriteMapEnd()
  10392. }
  10393. func (e *Encoder) fastpathEncMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  10394. fastpathTV.EncMapInt32Uint64V(rv2i(rv).(map[int32]uint64), e)
  10395. }
  10396. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, e *Encoder) {
  10397. ee, esep := e.e, e.hh.hasElemSeparators()
  10398. ee.WriteMapStart(len(v))
  10399. if e.h.Canonical {
  10400. v2 := make([]int64, len(v))
  10401. var i int
  10402. for k, _ := range v {
  10403. v2[i] = int64(k)
  10404. i++
  10405. }
  10406. sort.Sort(intSlice(v2))
  10407. for _, k2 := range v2 {
  10408. if esep {
  10409. ee.WriteMapElemKey()
  10410. }
  10411. ee.EncodeInt(int64(int32(k2)))
  10412. if esep {
  10413. ee.WriteMapElemValue()
  10414. }
  10415. ee.EncodeUint(uint64(v[int32(k2)]))
  10416. }
  10417. } else {
  10418. for k2, v2 := range v {
  10419. if esep {
  10420. ee.WriteMapElemKey()
  10421. }
  10422. ee.EncodeInt(int64(k2))
  10423. if esep {
  10424. ee.WriteMapElemValue()
  10425. }
  10426. ee.EncodeUint(uint64(v2))
  10427. }
  10428. }
  10429. ee.WriteMapEnd()
  10430. }
  10431. func (e *Encoder) fastpathEncMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  10432. fastpathTV.EncMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), e)
  10433. }
  10434. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, e *Encoder) {
  10435. ee, esep := e.e, e.hh.hasElemSeparators()
  10436. ee.WriteMapStart(len(v))
  10437. if e.h.Canonical {
  10438. v2 := make([]int64, len(v))
  10439. var i int
  10440. for k, _ := range v {
  10441. v2[i] = int64(k)
  10442. i++
  10443. }
  10444. sort.Sort(intSlice(v2))
  10445. for _, k2 := range v2 {
  10446. if esep {
  10447. ee.WriteMapElemKey()
  10448. }
  10449. ee.EncodeInt(int64(int32(k2)))
  10450. if esep {
  10451. ee.WriteMapElemValue()
  10452. }
  10453. e.encode(v[int32(k2)])
  10454. }
  10455. } else {
  10456. for k2, v2 := range v {
  10457. if esep {
  10458. ee.WriteMapElemKey()
  10459. }
  10460. ee.EncodeInt(int64(k2))
  10461. if esep {
  10462. ee.WriteMapElemValue()
  10463. }
  10464. e.encode(v2)
  10465. }
  10466. }
  10467. ee.WriteMapEnd()
  10468. }
  10469. func (e *Encoder) fastpathEncMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  10470. fastpathTV.EncMapInt32IntV(rv2i(rv).(map[int32]int), e)
  10471. }
  10472. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, e *Encoder) {
  10473. ee, esep := e.e, e.hh.hasElemSeparators()
  10474. ee.WriteMapStart(len(v))
  10475. if e.h.Canonical {
  10476. v2 := make([]int64, len(v))
  10477. var i int
  10478. for k, _ := range v {
  10479. v2[i] = int64(k)
  10480. i++
  10481. }
  10482. sort.Sort(intSlice(v2))
  10483. for _, k2 := range v2 {
  10484. if esep {
  10485. ee.WriteMapElemKey()
  10486. }
  10487. ee.EncodeInt(int64(int32(k2)))
  10488. if esep {
  10489. ee.WriteMapElemValue()
  10490. }
  10491. ee.EncodeInt(int64(v[int32(k2)]))
  10492. }
  10493. } else {
  10494. for k2, v2 := range v {
  10495. if esep {
  10496. ee.WriteMapElemKey()
  10497. }
  10498. ee.EncodeInt(int64(k2))
  10499. if esep {
  10500. ee.WriteMapElemValue()
  10501. }
  10502. ee.EncodeInt(int64(v2))
  10503. }
  10504. }
  10505. ee.WriteMapEnd()
  10506. }
  10507. func (e *Encoder) fastpathEncMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  10508. fastpathTV.EncMapInt32Int8V(rv2i(rv).(map[int32]int8), e)
  10509. }
  10510. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, e *Encoder) {
  10511. ee, esep := e.e, e.hh.hasElemSeparators()
  10512. ee.WriteMapStart(len(v))
  10513. if e.h.Canonical {
  10514. v2 := make([]int64, len(v))
  10515. var i int
  10516. for k, _ := range v {
  10517. v2[i] = int64(k)
  10518. i++
  10519. }
  10520. sort.Sort(intSlice(v2))
  10521. for _, k2 := range v2 {
  10522. if esep {
  10523. ee.WriteMapElemKey()
  10524. }
  10525. ee.EncodeInt(int64(int32(k2)))
  10526. if esep {
  10527. ee.WriteMapElemValue()
  10528. }
  10529. ee.EncodeInt(int64(v[int32(k2)]))
  10530. }
  10531. } else {
  10532. for k2, v2 := range v {
  10533. if esep {
  10534. ee.WriteMapElemKey()
  10535. }
  10536. ee.EncodeInt(int64(k2))
  10537. if esep {
  10538. ee.WriteMapElemValue()
  10539. }
  10540. ee.EncodeInt(int64(v2))
  10541. }
  10542. }
  10543. ee.WriteMapEnd()
  10544. }
  10545. func (e *Encoder) fastpathEncMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  10546. fastpathTV.EncMapInt32Int16V(rv2i(rv).(map[int32]int16), e)
  10547. }
  10548. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, e *Encoder) {
  10549. ee, esep := e.e, e.hh.hasElemSeparators()
  10550. ee.WriteMapStart(len(v))
  10551. if e.h.Canonical {
  10552. v2 := make([]int64, len(v))
  10553. var i int
  10554. for k, _ := range v {
  10555. v2[i] = int64(k)
  10556. i++
  10557. }
  10558. sort.Sort(intSlice(v2))
  10559. for _, k2 := range v2 {
  10560. if esep {
  10561. ee.WriteMapElemKey()
  10562. }
  10563. ee.EncodeInt(int64(int32(k2)))
  10564. if esep {
  10565. ee.WriteMapElemValue()
  10566. }
  10567. ee.EncodeInt(int64(v[int32(k2)]))
  10568. }
  10569. } else {
  10570. for k2, v2 := range v {
  10571. if esep {
  10572. ee.WriteMapElemKey()
  10573. }
  10574. ee.EncodeInt(int64(k2))
  10575. if esep {
  10576. ee.WriteMapElemValue()
  10577. }
  10578. ee.EncodeInt(int64(v2))
  10579. }
  10580. }
  10581. ee.WriteMapEnd()
  10582. }
  10583. func (e *Encoder) fastpathEncMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  10584. fastpathTV.EncMapInt32Int32V(rv2i(rv).(map[int32]int32), e)
  10585. }
  10586. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, e *Encoder) {
  10587. ee, esep := e.e, e.hh.hasElemSeparators()
  10588. ee.WriteMapStart(len(v))
  10589. if e.h.Canonical {
  10590. v2 := make([]int64, len(v))
  10591. var i int
  10592. for k, _ := range v {
  10593. v2[i] = int64(k)
  10594. i++
  10595. }
  10596. sort.Sort(intSlice(v2))
  10597. for _, k2 := range v2 {
  10598. if esep {
  10599. ee.WriteMapElemKey()
  10600. }
  10601. ee.EncodeInt(int64(int32(k2)))
  10602. if esep {
  10603. ee.WriteMapElemValue()
  10604. }
  10605. ee.EncodeInt(int64(v[int32(k2)]))
  10606. }
  10607. } else {
  10608. for k2, v2 := range v {
  10609. if esep {
  10610. ee.WriteMapElemKey()
  10611. }
  10612. ee.EncodeInt(int64(k2))
  10613. if esep {
  10614. ee.WriteMapElemValue()
  10615. }
  10616. ee.EncodeInt(int64(v2))
  10617. }
  10618. }
  10619. ee.WriteMapEnd()
  10620. }
  10621. func (e *Encoder) fastpathEncMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  10622. fastpathTV.EncMapInt32Int64V(rv2i(rv).(map[int32]int64), e)
  10623. }
  10624. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, e *Encoder) {
  10625. ee, esep := e.e, e.hh.hasElemSeparators()
  10626. ee.WriteMapStart(len(v))
  10627. if e.h.Canonical {
  10628. v2 := make([]int64, len(v))
  10629. var i int
  10630. for k, _ := range v {
  10631. v2[i] = int64(k)
  10632. i++
  10633. }
  10634. sort.Sort(intSlice(v2))
  10635. for _, k2 := range v2 {
  10636. if esep {
  10637. ee.WriteMapElemKey()
  10638. }
  10639. ee.EncodeInt(int64(int32(k2)))
  10640. if esep {
  10641. ee.WriteMapElemValue()
  10642. }
  10643. ee.EncodeInt(int64(v[int32(k2)]))
  10644. }
  10645. } else {
  10646. for k2, v2 := range v {
  10647. if esep {
  10648. ee.WriteMapElemKey()
  10649. }
  10650. ee.EncodeInt(int64(k2))
  10651. if esep {
  10652. ee.WriteMapElemValue()
  10653. }
  10654. ee.EncodeInt(int64(v2))
  10655. }
  10656. }
  10657. ee.WriteMapEnd()
  10658. }
  10659. func (e *Encoder) fastpathEncMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  10660. fastpathTV.EncMapInt32Float32V(rv2i(rv).(map[int32]float32), e)
  10661. }
  10662. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, e *Encoder) {
  10663. ee, esep := e.e, e.hh.hasElemSeparators()
  10664. ee.WriteMapStart(len(v))
  10665. if e.h.Canonical {
  10666. v2 := make([]int64, len(v))
  10667. var i int
  10668. for k, _ := range v {
  10669. v2[i] = int64(k)
  10670. i++
  10671. }
  10672. sort.Sort(intSlice(v2))
  10673. for _, k2 := range v2 {
  10674. if esep {
  10675. ee.WriteMapElemKey()
  10676. }
  10677. ee.EncodeInt(int64(int32(k2)))
  10678. if esep {
  10679. ee.WriteMapElemValue()
  10680. }
  10681. ee.EncodeFloat32(v[int32(k2)])
  10682. }
  10683. } else {
  10684. for k2, v2 := range v {
  10685. if esep {
  10686. ee.WriteMapElemKey()
  10687. }
  10688. ee.EncodeInt(int64(k2))
  10689. if esep {
  10690. ee.WriteMapElemValue()
  10691. }
  10692. ee.EncodeFloat32(v2)
  10693. }
  10694. }
  10695. ee.WriteMapEnd()
  10696. }
  10697. func (e *Encoder) fastpathEncMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  10698. fastpathTV.EncMapInt32Float64V(rv2i(rv).(map[int32]float64), e)
  10699. }
  10700. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, e *Encoder) {
  10701. ee, esep := e.e, e.hh.hasElemSeparators()
  10702. ee.WriteMapStart(len(v))
  10703. if e.h.Canonical {
  10704. v2 := make([]int64, len(v))
  10705. var i int
  10706. for k, _ := range v {
  10707. v2[i] = int64(k)
  10708. i++
  10709. }
  10710. sort.Sort(intSlice(v2))
  10711. for _, k2 := range v2 {
  10712. if esep {
  10713. ee.WriteMapElemKey()
  10714. }
  10715. ee.EncodeInt(int64(int32(k2)))
  10716. if esep {
  10717. ee.WriteMapElemValue()
  10718. }
  10719. ee.EncodeFloat64(v[int32(k2)])
  10720. }
  10721. } else {
  10722. for k2, v2 := range v {
  10723. if esep {
  10724. ee.WriteMapElemKey()
  10725. }
  10726. ee.EncodeInt(int64(k2))
  10727. if esep {
  10728. ee.WriteMapElemValue()
  10729. }
  10730. ee.EncodeFloat64(v2)
  10731. }
  10732. }
  10733. ee.WriteMapEnd()
  10734. }
  10735. func (e *Encoder) fastpathEncMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  10736. fastpathTV.EncMapInt32BoolV(rv2i(rv).(map[int32]bool), e)
  10737. }
  10738. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, e *Encoder) {
  10739. ee, esep := e.e, e.hh.hasElemSeparators()
  10740. ee.WriteMapStart(len(v))
  10741. if e.h.Canonical {
  10742. v2 := make([]int64, len(v))
  10743. var i int
  10744. for k, _ := range v {
  10745. v2[i] = int64(k)
  10746. i++
  10747. }
  10748. sort.Sort(intSlice(v2))
  10749. for _, k2 := range v2 {
  10750. if esep {
  10751. ee.WriteMapElemKey()
  10752. }
  10753. ee.EncodeInt(int64(int32(k2)))
  10754. if esep {
  10755. ee.WriteMapElemValue()
  10756. }
  10757. ee.EncodeBool(v[int32(k2)])
  10758. }
  10759. } else {
  10760. for k2, v2 := range v {
  10761. if esep {
  10762. ee.WriteMapElemKey()
  10763. }
  10764. ee.EncodeInt(int64(k2))
  10765. if esep {
  10766. ee.WriteMapElemValue()
  10767. }
  10768. ee.EncodeBool(v2)
  10769. }
  10770. }
  10771. ee.WriteMapEnd()
  10772. }
  10773. func (e *Encoder) fastpathEncMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  10774. fastpathTV.EncMapInt64IntfV(rv2i(rv).(map[int64]interface{}), e)
  10775. }
  10776. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, e *Encoder) {
  10777. ee, esep := e.e, e.hh.hasElemSeparators()
  10778. ee.WriteMapStart(len(v))
  10779. if e.h.Canonical {
  10780. v2 := make([]int64, len(v))
  10781. var i int
  10782. for k, _ := range v {
  10783. v2[i] = int64(k)
  10784. i++
  10785. }
  10786. sort.Sort(intSlice(v2))
  10787. for _, k2 := range v2 {
  10788. if esep {
  10789. ee.WriteMapElemKey()
  10790. }
  10791. ee.EncodeInt(int64(int64(k2)))
  10792. if esep {
  10793. ee.WriteMapElemValue()
  10794. }
  10795. e.encode(v[int64(k2)])
  10796. }
  10797. } else {
  10798. for k2, v2 := range v {
  10799. if esep {
  10800. ee.WriteMapElemKey()
  10801. }
  10802. ee.EncodeInt(int64(k2))
  10803. if esep {
  10804. ee.WriteMapElemValue()
  10805. }
  10806. e.encode(v2)
  10807. }
  10808. }
  10809. ee.WriteMapEnd()
  10810. }
  10811. func (e *Encoder) fastpathEncMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  10812. fastpathTV.EncMapInt64StringV(rv2i(rv).(map[int64]string), e)
  10813. }
  10814. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, e *Encoder) {
  10815. ee, esep := e.e, e.hh.hasElemSeparators()
  10816. ee.WriteMapStart(len(v))
  10817. if e.h.Canonical {
  10818. v2 := make([]int64, len(v))
  10819. var i int
  10820. for k, _ := range v {
  10821. v2[i] = int64(k)
  10822. i++
  10823. }
  10824. sort.Sort(intSlice(v2))
  10825. for _, k2 := range v2 {
  10826. if esep {
  10827. ee.WriteMapElemKey()
  10828. }
  10829. ee.EncodeInt(int64(int64(k2)))
  10830. if esep {
  10831. ee.WriteMapElemValue()
  10832. }
  10833. ee.EncodeString(c_UTF8, v[int64(k2)])
  10834. }
  10835. } else {
  10836. for k2, v2 := range v {
  10837. if esep {
  10838. ee.WriteMapElemKey()
  10839. }
  10840. ee.EncodeInt(int64(k2))
  10841. if esep {
  10842. ee.WriteMapElemValue()
  10843. }
  10844. ee.EncodeString(c_UTF8, v2)
  10845. }
  10846. }
  10847. ee.WriteMapEnd()
  10848. }
  10849. func (e *Encoder) fastpathEncMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  10850. fastpathTV.EncMapInt64UintV(rv2i(rv).(map[int64]uint), e)
  10851. }
  10852. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, e *Encoder) {
  10853. ee, esep := e.e, e.hh.hasElemSeparators()
  10854. ee.WriteMapStart(len(v))
  10855. if e.h.Canonical {
  10856. v2 := make([]int64, len(v))
  10857. var i int
  10858. for k, _ := range v {
  10859. v2[i] = int64(k)
  10860. i++
  10861. }
  10862. sort.Sort(intSlice(v2))
  10863. for _, k2 := range v2 {
  10864. if esep {
  10865. ee.WriteMapElemKey()
  10866. }
  10867. ee.EncodeInt(int64(int64(k2)))
  10868. if esep {
  10869. ee.WriteMapElemValue()
  10870. }
  10871. ee.EncodeUint(uint64(v[int64(k2)]))
  10872. }
  10873. } else {
  10874. for k2, v2 := range v {
  10875. if esep {
  10876. ee.WriteMapElemKey()
  10877. }
  10878. ee.EncodeInt(int64(k2))
  10879. if esep {
  10880. ee.WriteMapElemValue()
  10881. }
  10882. ee.EncodeUint(uint64(v2))
  10883. }
  10884. }
  10885. ee.WriteMapEnd()
  10886. }
  10887. func (e *Encoder) fastpathEncMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  10888. fastpathTV.EncMapInt64Uint8V(rv2i(rv).(map[int64]uint8), e)
  10889. }
  10890. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, e *Encoder) {
  10891. ee, esep := e.e, e.hh.hasElemSeparators()
  10892. ee.WriteMapStart(len(v))
  10893. if e.h.Canonical {
  10894. v2 := make([]int64, len(v))
  10895. var i int
  10896. for k, _ := range v {
  10897. v2[i] = int64(k)
  10898. i++
  10899. }
  10900. sort.Sort(intSlice(v2))
  10901. for _, k2 := range v2 {
  10902. if esep {
  10903. ee.WriteMapElemKey()
  10904. }
  10905. ee.EncodeInt(int64(int64(k2)))
  10906. if esep {
  10907. ee.WriteMapElemValue()
  10908. }
  10909. ee.EncodeUint(uint64(v[int64(k2)]))
  10910. }
  10911. } else {
  10912. for k2, v2 := range v {
  10913. if esep {
  10914. ee.WriteMapElemKey()
  10915. }
  10916. ee.EncodeInt(int64(k2))
  10917. if esep {
  10918. ee.WriteMapElemValue()
  10919. }
  10920. ee.EncodeUint(uint64(v2))
  10921. }
  10922. }
  10923. ee.WriteMapEnd()
  10924. }
  10925. func (e *Encoder) fastpathEncMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  10926. fastpathTV.EncMapInt64Uint16V(rv2i(rv).(map[int64]uint16), e)
  10927. }
  10928. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, e *Encoder) {
  10929. ee, esep := e.e, e.hh.hasElemSeparators()
  10930. ee.WriteMapStart(len(v))
  10931. if e.h.Canonical {
  10932. v2 := make([]int64, len(v))
  10933. var i int
  10934. for k, _ := range v {
  10935. v2[i] = int64(k)
  10936. i++
  10937. }
  10938. sort.Sort(intSlice(v2))
  10939. for _, k2 := range v2 {
  10940. if esep {
  10941. ee.WriteMapElemKey()
  10942. }
  10943. ee.EncodeInt(int64(int64(k2)))
  10944. if esep {
  10945. ee.WriteMapElemValue()
  10946. }
  10947. ee.EncodeUint(uint64(v[int64(k2)]))
  10948. }
  10949. } else {
  10950. for k2, v2 := range v {
  10951. if esep {
  10952. ee.WriteMapElemKey()
  10953. }
  10954. ee.EncodeInt(int64(k2))
  10955. if esep {
  10956. ee.WriteMapElemValue()
  10957. }
  10958. ee.EncodeUint(uint64(v2))
  10959. }
  10960. }
  10961. ee.WriteMapEnd()
  10962. }
  10963. func (e *Encoder) fastpathEncMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  10964. fastpathTV.EncMapInt64Uint32V(rv2i(rv).(map[int64]uint32), e)
  10965. }
  10966. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, e *Encoder) {
  10967. ee, esep := e.e, e.hh.hasElemSeparators()
  10968. ee.WriteMapStart(len(v))
  10969. if e.h.Canonical {
  10970. v2 := make([]int64, len(v))
  10971. var i int
  10972. for k, _ := range v {
  10973. v2[i] = int64(k)
  10974. i++
  10975. }
  10976. sort.Sort(intSlice(v2))
  10977. for _, k2 := range v2 {
  10978. if esep {
  10979. ee.WriteMapElemKey()
  10980. }
  10981. ee.EncodeInt(int64(int64(k2)))
  10982. if esep {
  10983. ee.WriteMapElemValue()
  10984. }
  10985. ee.EncodeUint(uint64(v[int64(k2)]))
  10986. }
  10987. } else {
  10988. for k2, v2 := range v {
  10989. if esep {
  10990. ee.WriteMapElemKey()
  10991. }
  10992. ee.EncodeInt(int64(k2))
  10993. if esep {
  10994. ee.WriteMapElemValue()
  10995. }
  10996. ee.EncodeUint(uint64(v2))
  10997. }
  10998. }
  10999. ee.WriteMapEnd()
  11000. }
  11001. func (e *Encoder) fastpathEncMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  11002. fastpathTV.EncMapInt64Uint64V(rv2i(rv).(map[int64]uint64), e)
  11003. }
  11004. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, e *Encoder) {
  11005. ee, esep := e.e, e.hh.hasElemSeparators()
  11006. ee.WriteMapStart(len(v))
  11007. if e.h.Canonical {
  11008. v2 := make([]int64, len(v))
  11009. var i int
  11010. for k, _ := range v {
  11011. v2[i] = int64(k)
  11012. i++
  11013. }
  11014. sort.Sort(intSlice(v2))
  11015. for _, k2 := range v2 {
  11016. if esep {
  11017. ee.WriteMapElemKey()
  11018. }
  11019. ee.EncodeInt(int64(int64(k2)))
  11020. if esep {
  11021. ee.WriteMapElemValue()
  11022. }
  11023. ee.EncodeUint(uint64(v[int64(k2)]))
  11024. }
  11025. } else {
  11026. for k2, v2 := range v {
  11027. if esep {
  11028. ee.WriteMapElemKey()
  11029. }
  11030. ee.EncodeInt(int64(k2))
  11031. if esep {
  11032. ee.WriteMapElemValue()
  11033. }
  11034. ee.EncodeUint(uint64(v2))
  11035. }
  11036. }
  11037. ee.WriteMapEnd()
  11038. }
  11039. func (e *Encoder) fastpathEncMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  11040. fastpathTV.EncMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), e)
  11041. }
  11042. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, e *Encoder) {
  11043. ee, esep := e.e, e.hh.hasElemSeparators()
  11044. ee.WriteMapStart(len(v))
  11045. if e.h.Canonical {
  11046. v2 := make([]int64, len(v))
  11047. var i int
  11048. for k, _ := range v {
  11049. v2[i] = int64(k)
  11050. i++
  11051. }
  11052. sort.Sort(intSlice(v2))
  11053. for _, k2 := range v2 {
  11054. if esep {
  11055. ee.WriteMapElemKey()
  11056. }
  11057. ee.EncodeInt(int64(int64(k2)))
  11058. if esep {
  11059. ee.WriteMapElemValue()
  11060. }
  11061. e.encode(v[int64(k2)])
  11062. }
  11063. } else {
  11064. for k2, v2 := range v {
  11065. if esep {
  11066. ee.WriteMapElemKey()
  11067. }
  11068. ee.EncodeInt(int64(k2))
  11069. if esep {
  11070. ee.WriteMapElemValue()
  11071. }
  11072. e.encode(v2)
  11073. }
  11074. }
  11075. ee.WriteMapEnd()
  11076. }
  11077. func (e *Encoder) fastpathEncMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  11078. fastpathTV.EncMapInt64IntV(rv2i(rv).(map[int64]int), e)
  11079. }
  11080. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, e *Encoder) {
  11081. ee, esep := e.e, e.hh.hasElemSeparators()
  11082. ee.WriteMapStart(len(v))
  11083. if e.h.Canonical {
  11084. v2 := make([]int64, len(v))
  11085. var i int
  11086. for k, _ := range v {
  11087. v2[i] = int64(k)
  11088. i++
  11089. }
  11090. sort.Sort(intSlice(v2))
  11091. for _, k2 := range v2 {
  11092. if esep {
  11093. ee.WriteMapElemKey()
  11094. }
  11095. ee.EncodeInt(int64(int64(k2)))
  11096. if esep {
  11097. ee.WriteMapElemValue()
  11098. }
  11099. ee.EncodeInt(int64(v[int64(k2)]))
  11100. }
  11101. } else {
  11102. for k2, v2 := range v {
  11103. if esep {
  11104. ee.WriteMapElemKey()
  11105. }
  11106. ee.EncodeInt(int64(k2))
  11107. if esep {
  11108. ee.WriteMapElemValue()
  11109. }
  11110. ee.EncodeInt(int64(v2))
  11111. }
  11112. }
  11113. ee.WriteMapEnd()
  11114. }
  11115. func (e *Encoder) fastpathEncMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  11116. fastpathTV.EncMapInt64Int8V(rv2i(rv).(map[int64]int8), e)
  11117. }
  11118. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, e *Encoder) {
  11119. ee, esep := e.e, e.hh.hasElemSeparators()
  11120. ee.WriteMapStart(len(v))
  11121. if e.h.Canonical {
  11122. v2 := make([]int64, len(v))
  11123. var i int
  11124. for k, _ := range v {
  11125. v2[i] = int64(k)
  11126. i++
  11127. }
  11128. sort.Sort(intSlice(v2))
  11129. for _, k2 := range v2 {
  11130. if esep {
  11131. ee.WriteMapElemKey()
  11132. }
  11133. ee.EncodeInt(int64(int64(k2)))
  11134. if esep {
  11135. ee.WriteMapElemValue()
  11136. }
  11137. ee.EncodeInt(int64(v[int64(k2)]))
  11138. }
  11139. } else {
  11140. for k2, v2 := range v {
  11141. if esep {
  11142. ee.WriteMapElemKey()
  11143. }
  11144. ee.EncodeInt(int64(k2))
  11145. if esep {
  11146. ee.WriteMapElemValue()
  11147. }
  11148. ee.EncodeInt(int64(v2))
  11149. }
  11150. }
  11151. ee.WriteMapEnd()
  11152. }
  11153. func (e *Encoder) fastpathEncMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  11154. fastpathTV.EncMapInt64Int16V(rv2i(rv).(map[int64]int16), e)
  11155. }
  11156. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, e *Encoder) {
  11157. ee, esep := e.e, e.hh.hasElemSeparators()
  11158. ee.WriteMapStart(len(v))
  11159. if e.h.Canonical {
  11160. v2 := make([]int64, len(v))
  11161. var i int
  11162. for k, _ := range v {
  11163. v2[i] = int64(k)
  11164. i++
  11165. }
  11166. sort.Sort(intSlice(v2))
  11167. for _, k2 := range v2 {
  11168. if esep {
  11169. ee.WriteMapElemKey()
  11170. }
  11171. ee.EncodeInt(int64(int64(k2)))
  11172. if esep {
  11173. ee.WriteMapElemValue()
  11174. }
  11175. ee.EncodeInt(int64(v[int64(k2)]))
  11176. }
  11177. } else {
  11178. for k2, v2 := range v {
  11179. if esep {
  11180. ee.WriteMapElemKey()
  11181. }
  11182. ee.EncodeInt(int64(k2))
  11183. if esep {
  11184. ee.WriteMapElemValue()
  11185. }
  11186. ee.EncodeInt(int64(v2))
  11187. }
  11188. }
  11189. ee.WriteMapEnd()
  11190. }
  11191. func (e *Encoder) fastpathEncMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  11192. fastpathTV.EncMapInt64Int32V(rv2i(rv).(map[int64]int32), e)
  11193. }
  11194. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, e *Encoder) {
  11195. ee, esep := e.e, e.hh.hasElemSeparators()
  11196. ee.WriteMapStart(len(v))
  11197. if e.h.Canonical {
  11198. v2 := make([]int64, len(v))
  11199. var i int
  11200. for k, _ := range v {
  11201. v2[i] = int64(k)
  11202. i++
  11203. }
  11204. sort.Sort(intSlice(v2))
  11205. for _, k2 := range v2 {
  11206. if esep {
  11207. ee.WriteMapElemKey()
  11208. }
  11209. ee.EncodeInt(int64(int64(k2)))
  11210. if esep {
  11211. ee.WriteMapElemValue()
  11212. }
  11213. ee.EncodeInt(int64(v[int64(k2)]))
  11214. }
  11215. } else {
  11216. for k2, v2 := range v {
  11217. if esep {
  11218. ee.WriteMapElemKey()
  11219. }
  11220. ee.EncodeInt(int64(k2))
  11221. if esep {
  11222. ee.WriteMapElemValue()
  11223. }
  11224. ee.EncodeInt(int64(v2))
  11225. }
  11226. }
  11227. ee.WriteMapEnd()
  11228. }
  11229. func (e *Encoder) fastpathEncMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  11230. fastpathTV.EncMapInt64Int64V(rv2i(rv).(map[int64]int64), e)
  11231. }
  11232. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, e *Encoder) {
  11233. ee, esep := e.e, e.hh.hasElemSeparators()
  11234. ee.WriteMapStart(len(v))
  11235. if e.h.Canonical {
  11236. v2 := make([]int64, len(v))
  11237. var i int
  11238. for k, _ := range v {
  11239. v2[i] = int64(k)
  11240. i++
  11241. }
  11242. sort.Sort(intSlice(v2))
  11243. for _, k2 := range v2 {
  11244. if esep {
  11245. ee.WriteMapElemKey()
  11246. }
  11247. ee.EncodeInt(int64(int64(k2)))
  11248. if esep {
  11249. ee.WriteMapElemValue()
  11250. }
  11251. ee.EncodeInt(int64(v[int64(k2)]))
  11252. }
  11253. } else {
  11254. for k2, v2 := range v {
  11255. if esep {
  11256. ee.WriteMapElemKey()
  11257. }
  11258. ee.EncodeInt(int64(k2))
  11259. if esep {
  11260. ee.WriteMapElemValue()
  11261. }
  11262. ee.EncodeInt(int64(v2))
  11263. }
  11264. }
  11265. ee.WriteMapEnd()
  11266. }
  11267. func (e *Encoder) fastpathEncMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  11268. fastpathTV.EncMapInt64Float32V(rv2i(rv).(map[int64]float32), e)
  11269. }
  11270. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, e *Encoder) {
  11271. ee, esep := e.e, e.hh.hasElemSeparators()
  11272. ee.WriteMapStart(len(v))
  11273. if e.h.Canonical {
  11274. v2 := make([]int64, len(v))
  11275. var i int
  11276. for k, _ := range v {
  11277. v2[i] = int64(k)
  11278. i++
  11279. }
  11280. sort.Sort(intSlice(v2))
  11281. for _, k2 := range v2 {
  11282. if esep {
  11283. ee.WriteMapElemKey()
  11284. }
  11285. ee.EncodeInt(int64(int64(k2)))
  11286. if esep {
  11287. ee.WriteMapElemValue()
  11288. }
  11289. ee.EncodeFloat32(v[int64(k2)])
  11290. }
  11291. } else {
  11292. for k2, v2 := range v {
  11293. if esep {
  11294. ee.WriteMapElemKey()
  11295. }
  11296. ee.EncodeInt(int64(k2))
  11297. if esep {
  11298. ee.WriteMapElemValue()
  11299. }
  11300. ee.EncodeFloat32(v2)
  11301. }
  11302. }
  11303. ee.WriteMapEnd()
  11304. }
  11305. func (e *Encoder) fastpathEncMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  11306. fastpathTV.EncMapInt64Float64V(rv2i(rv).(map[int64]float64), e)
  11307. }
  11308. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, e *Encoder) {
  11309. ee, esep := e.e, e.hh.hasElemSeparators()
  11310. ee.WriteMapStart(len(v))
  11311. if e.h.Canonical {
  11312. v2 := make([]int64, len(v))
  11313. var i int
  11314. for k, _ := range v {
  11315. v2[i] = int64(k)
  11316. i++
  11317. }
  11318. sort.Sort(intSlice(v2))
  11319. for _, k2 := range v2 {
  11320. if esep {
  11321. ee.WriteMapElemKey()
  11322. }
  11323. ee.EncodeInt(int64(int64(k2)))
  11324. if esep {
  11325. ee.WriteMapElemValue()
  11326. }
  11327. ee.EncodeFloat64(v[int64(k2)])
  11328. }
  11329. } else {
  11330. for k2, v2 := range v {
  11331. if esep {
  11332. ee.WriteMapElemKey()
  11333. }
  11334. ee.EncodeInt(int64(k2))
  11335. if esep {
  11336. ee.WriteMapElemValue()
  11337. }
  11338. ee.EncodeFloat64(v2)
  11339. }
  11340. }
  11341. ee.WriteMapEnd()
  11342. }
  11343. func (e *Encoder) fastpathEncMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  11344. fastpathTV.EncMapInt64BoolV(rv2i(rv).(map[int64]bool), e)
  11345. }
  11346. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, e *Encoder) {
  11347. ee, esep := e.e, e.hh.hasElemSeparators()
  11348. ee.WriteMapStart(len(v))
  11349. if e.h.Canonical {
  11350. v2 := make([]int64, len(v))
  11351. var i int
  11352. for k, _ := range v {
  11353. v2[i] = int64(k)
  11354. i++
  11355. }
  11356. sort.Sort(intSlice(v2))
  11357. for _, k2 := range v2 {
  11358. if esep {
  11359. ee.WriteMapElemKey()
  11360. }
  11361. ee.EncodeInt(int64(int64(k2)))
  11362. if esep {
  11363. ee.WriteMapElemValue()
  11364. }
  11365. ee.EncodeBool(v[int64(k2)])
  11366. }
  11367. } else {
  11368. for k2, v2 := range v {
  11369. if esep {
  11370. ee.WriteMapElemKey()
  11371. }
  11372. ee.EncodeInt(int64(k2))
  11373. if esep {
  11374. ee.WriteMapElemValue()
  11375. }
  11376. ee.EncodeBool(v2)
  11377. }
  11378. }
  11379. ee.WriteMapEnd()
  11380. }
  11381. func (e *Encoder) fastpathEncMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  11382. fastpathTV.EncMapBoolIntfV(rv2i(rv).(map[bool]interface{}), e)
  11383. }
  11384. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, e *Encoder) {
  11385. ee, esep := e.e, e.hh.hasElemSeparators()
  11386. ee.WriteMapStart(len(v))
  11387. if e.h.Canonical {
  11388. v2 := make([]bool, len(v))
  11389. var i int
  11390. for k, _ := range v {
  11391. v2[i] = bool(k)
  11392. i++
  11393. }
  11394. sort.Sort(boolSlice(v2))
  11395. for _, k2 := range v2 {
  11396. if esep {
  11397. ee.WriteMapElemKey()
  11398. }
  11399. ee.EncodeBool(bool(k2))
  11400. if esep {
  11401. ee.WriteMapElemValue()
  11402. }
  11403. e.encode(v[bool(k2)])
  11404. }
  11405. } else {
  11406. for k2, v2 := range v {
  11407. if esep {
  11408. ee.WriteMapElemKey()
  11409. }
  11410. ee.EncodeBool(k2)
  11411. if esep {
  11412. ee.WriteMapElemValue()
  11413. }
  11414. e.encode(v2)
  11415. }
  11416. }
  11417. ee.WriteMapEnd()
  11418. }
  11419. func (e *Encoder) fastpathEncMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  11420. fastpathTV.EncMapBoolStringV(rv2i(rv).(map[bool]string), e)
  11421. }
  11422. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, e *Encoder) {
  11423. ee, esep := e.e, e.hh.hasElemSeparators()
  11424. ee.WriteMapStart(len(v))
  11425. if e.h.Canonical {
  11426. v2 := make([]bool, len(v))
  11427. var i int
  11428. for k, _ := range v {
  11429. v2[i] = bool(k)
  11430. i++
  11431. }
  11432. sort.Sort(boolSlice(v2))
  11433. for _, k2 := range v2 {
  11434. if esep {
  11435. ee.WriteMapElemKey()
  11436. }
  11437. ee.EncodeBool(bool(k2))
  11438. if esep {
  11439. ee.WriteMapElemValue()
  11440. }
  11441. ee.EncodeString(c_UTF8, v[bool(k2)])
  11442. }
  11443. } else {
  11444. for k2, v2 := range v {
  11445. if esep {
  11446. ee.WriteMapElemKey()
  11447. }
  11448. ee.EncodeBool(k2)
  11449. if esep {
  11450. ee.WriteMapElemValue()
  11451. }
  11452. ee.EncodeString(c_UTF8, v2)
  11453. }
  11454. }
  11455. ee.WriteMapEnd()
  11456. }
  11457. func (e *Encoder) fastpathEncMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  11458. fastpathTV.EncMapBoolUintV(rv2i(rv).(map[bool]uint), e)
  11459. }
  11460. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, e *Encoder) {
  11461. ee, esep := e.e, e.hh.hasElemSeparators()
  11462. ee.WriteMapStart(len(v))
  11463. if e.h.Canonical {
  11464. v2 := make([]bool, len(v))
  11465. var i int
  11466. for k, _ := range v {
  11467. v2[i] = bool(k)
  11468. i++
  11469. }
  11470. sort.Sort(boolSlice(v2))
  11471. for _, k2 := range v2 {
  11472. if esep {
  11473. ee.WriteMapElemKey()
  11474. }
  11475. ee.EncodeBool(bool(k2))
  11476. if esep {
  11477. ee.WriteMapElemValue()
  11478. }
  11479. ee.EncodeUint(uint64(v[bool(k2)]))
  11480. }
  11481. } else {
  11482. for k2, v2 := range v {
  11483. if esep {
  11484. ee.WriteMapElemKey()
  11485. }
  11486. ee.EncodeBool(k2)
  11487. if esep {
  11488. ee.WriteMapElemValue()
  11489. }
  11490. ee.EncodeUint(uint64(v2))
  11491. }
  11492. }
  11493. ee.WriteMapEnd()
  11494. }
  11495. func (e *Encoder) fastpathEncMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  11496. fastpathTV.EncMapBoolUint8V(rv2i(rv).(map[bool]uint8), e)
  11497. }
  11498. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, e *Encoder) {
  11499. ee, esep := e.e, e.hh.hasElemSeparators()
  11500. ee.WriteMapStart(len(v))
  11501. if e.h.Canonical {
  11502. v2 := make([]bool, len(v))
  11503. var i int
  11504. for k, _ := range v {
  11505. v2[i] = bool(k)
  11506. i++
  11507. }
  11508. sort.Sort(boolSlice(v2))
  11509. for _, k2 := range v2 {
  11510. if esep {
  11511. ee.WriteMapElemKey()
  11512. }
  11513. ee.EncodeBool(bool(k2))
  11514. if esep {
  11515. ee.WriteMapElemValue()
  11516. }
  11517. ee.EncodeUint(uint64(v[bool(k2)]))
  11518. }
  11519. } else {
  11520. for k2, v2 := range v {
  11521. if esep {
  11522. ee.WriteMapElemKey()
  11523. }
  11524. ee.EncodeBool(k2)
  11525. if esep {
  11526. ee.WriteMapElemValue()
  11527. }
  11528. ee.EncodeUint(uint64(v2))
  11529. }
  11530. }
  11531. ee.WriteMapEnd()
  11532. }
  11533. func (e *Encoder) fastpathEncMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  11534. fastpathTV.EncMapBoolUint16V(rv2i(rv).(map[bool]uint16), e)
  11535. }
  11536. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, e *Encoder) {
  11537. ee, esep := e.e, e.hh.hasElemSeparators()
  11538. ee.WriteMapStart(len(v))
  11539. if e.h.Canonical {
  11540. v2 := make([]bool, len(v))
  11541. var i int
  11542. for k, _ := range v {
  11543. v2[i] = bool(k)
  11544. i++
  11545. }
  11546. sort.Sort(boolSlice(v2))
  11547. for _, k2 := range v2 {
  11548. if esep {
  11549. ee.WriteMapElemKey()
  11550. }
  11551. ee.EncodeBool(bool(k2))
  11552. if esep {
  11553. ee.WriteMapElemValue()
  11554. }
  11555. ee.EncodeUint(uint64(v[bool(k2)]))
  11556. }
  11557. } else {
  11558. for k2, v2 := range v {
  11559. if esep {
  11560. ee.WriteMapElemKey()
  11561. }
  11562. ee.EncodeBool(k2)
  11563. if esep {
  11564. ee.WriteMapElemValue()
  11565. }
  11566. ee.EncodeUint(uint64(v2))
  11567. }
  11568. }
  11569. ee.WriteMapEnd()
  11570. }
  11571. func (e *Encoder) fastpathEncMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  11572. fastpathTV.EncMapBoolUint32V(rv2i(rv).(map[bool]uint32), e)
  11573. }
  11574. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, e *Encoder) {
  11575. ee, esep := e.e, e.hh.hasElemSeparators()
  11576. ee.WriteMapStart(len(v))
  11577. if e.h.Canonical {
  11578. v2 := make([]bool, len(v))
  11579. var i int
  11580. for k, _ := range v {
  11581. v2[i] = bool(k)
  11582. i++
  11583. }
  11584. sort.Sort(boolSlice(v2))
  11585. for _, k2 := range v2 {
  11586. if esep {
  11587. ee.WriteMapElemKey()
  11588. }
  11589. ee.EncodeBool(bool(k2))
  11590. if esep {
  11591. ee.WriteMapElemValue()
  11592. }
  11593. ee.EncodeUint(uint64(v[bool(k2)]))
  11594. }
  11595. } else {
  11596. for k2, v2 := range v {
  11597. if esep {
  11598. ee.WriteMapElemKey()
  11599. }
  11600. ee.EncodeBool(k2)
  11601. if esep {
  11602. ee.WriteMapElemValue()
  11603. }
  11604. ee.EncodeUint(uint64(v2))
  11605. }
  11606. }
  11607. ee.WriteMapEnd()
  11608. }
  11609. func (e *Encoder) fastpathEncMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  11610. fastpathTV.EncMapBoolUint64V(rv2i(rv).(map[bool]uint64), e)
  11611. }
  11612. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, e *Encoder) {
  11613. ee, esep := e.e, e.hh.hasElemSeparators()
  11614. ee.WriteMapStart(len(v))
  11615. if e.h.Canonical {
  11616. v2 := make([]bool, len(v))
  11617. var i int
  11618. for k, _ := range v {
  11619. v2[i] = bool(k)
  11620. i++
  11621. }
  11622. sort.Sort(boolSlice(v2))
  11623. for _, k2 := range v2 {
  11624. if esep {
  11625. ee.WriteMapElemKey()
  11626. }
  11627. ee.EncodeBool(bool(k2))
  11628. if esep {
  11629. ee.WriteMapElemValue()
  11630. }
  11631. ee.EncodeUint(uint64(v[bool(k2)]))
  11632. }
  11633. } else {
  11634. for k2, v2 := range v {
  11635. if esep {
  11636. ee.WriteMapElemKey()
  11637. }
  11638. ee.EncodeBool(k2)
  11639. if esep {
  11640. ee.WriteMapElemValue()
  11641. }
  11642. ee.EncodeUint(uint64(v2))
  11643. }
  11644. }
  11645. ee.WriteMapEnd()
  11646. }
  11647. func (e *Encoder) fastpathEncMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  11648. fastpathTV.EncMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), e)
  11649. }
  11650. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, e *Encoder) {
  11651. ee, esep := e.e, e.hh.hasElemSeparators()
  11652. ee.WriteMapStart(len(v))
  11653. if e.h.Canonical {
  11654. v2 := make([]bool, len(v))
  11655. var i int
  11656. for k, _ := range v {
  11657. v2[i] = bool(k)
  11658. i++
  11659. }
  11660. sort.Sort(boolSlice(v2))
  11661. for _, k2 := range v2 {
  11662. if esep {
  11663. ee.WriteMapElemKey()
  11664. }
  11665. ee.EncodeBool(bool(k2))
  11666. if esep {
  11667. ee.WriteMapElemValue()
  11668. }
  11669. e.encode(v[bool(k2)])
  11670. }
  11671. } else {
  11672. for k2, v2 := range v {
  11673. if esep {
  11674. ee.WriteMapElemKey()
  11675. }
  11676. ee.EncodeBool(k2)
  11677. if esep {
  11678. ee.WriteMapElemValue()
  11679. }
  11680. e.encode(v2)
  11681. }
  11682. }
  11683. ee.WriteMapEnd()
  11684. }
  11685. func (e *Encoder) fastpathEncMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  11686. fastpathTV.EncMapBoolIntV(rv2i(rv).(map[bool]int), e)
  11687. }
  11688. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, e *Encoder) {
  11689. ee, esep := e.e, e.hh.hasElemSeparators()
  11690. ee.WriteMapStart(len(v))
  11691. if e.h.Canonical {
  11692. v2 := make([]bool, len(v))
  11693. var i int
  11694. for k, _ := range v {
  11695. v2[i] = bool(k)
  11696. i++
  11697. }
  11698. sort.Sort(boolSlice(v2))
  11699. for _, k2 := range v2 {
  11700. if esep {
  11701. ee.WriteMapElemKey()
  11702. }
  11703. ee.EncodeBool(bool(k2))
  11704. if esep {
  11705. ee.WriteMapElemValue()
  11706. }
  11707. ee.EncodeInt(int64(v[bool(k2)]))
  11708. }
  11709. } else {
  11710. for k2, v2 := range v {
  11711. if esep {
  11712. ee.WriteMapElemKey()
  11713. }
  11714. ee.EncodeBool(k2)
  11715. if esep {
  11716. ee.WriteMapElemValue()
  11717. }
  11718. ee.EncodeInt(int64(v2))
  11719. }
  11720. }
  11721. ee.WriteMapEnd()
  11722. }
  11723. func (e *Encoder) fastpathEncMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  11724. fastpathTV.EncMapBoolInt8V(rv2i(rv).(map[bool]int8), e)
  11725. }
  11726. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, e *Encoder) {
  11727. ee, esep := e.e, e.hh.hasElemSeparators()
  11728. ee.WriteMapStart(len(v))
  11729. if e.h.Canonical {
  11730. v2 := make([]bool, len(v))
  11731. var i int
  11732. for k, _ := range v {
  11733. v2[i] = bool(k)
  11734. i++
  11735. }
  11736. sort.Sort(boolSlice(v2))
  11737. for _, k2 := range v2 {
  11738. if esep {
  11739. ee.WriteMapElemKey()
  11740. }
  11741. ee.EncodeBool(bool(k2))
  11742. if esep {
  11743. ee.WriteMapElemValue()
  11744. }
  11745. ee.EncodeInt(int64(v[bool(k2)]))
  11746. }
  11747. } else {
  11748. for k2, v2 := range v {
  11749. if esep {
  11750. ee.WriteMapElemKey()
  11751. }
  11752. ee.EncodeBool(k2)
  11753. if esep {
  11754. ee.WriteMapElemValue()
  11755. }
  11756. ee.EncodeInt(int64(v2))
  11757. }
  11758. }
  11759. ee.WriteMapEnd()
  11760. }
  11761. func (e *Encoder) fastpathEncMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  11762. fastpathTV.EncMapBoolInt16V(rv2i(rv).(map[bool]int16), e)
  11763. }
  11764. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, e *Encoder) {
  11765. ee, esep := e.e, e.hh.hasElemSeparators()
  11766. ee.WriteMapStart(len(v))
  11767. if e.h.Canonical {
  11768. v2 := make([]bool, len(v))
  11769. var i int
  11770. for k, _ := range v {
  11771. v2[i] = bool(k)
  11772. i++
  11773. }
  11774. sort.Sort(boolSlice(v2))
  11775. for _, k2 := range v2 {
  11776. if esep {
  11777. ee.WriteMapElemKey()
  11778. }
  11779. ee.EncodeBool(bool(k2))
  11780. if esep {
  11781. ee.WriteMapElemValue()
  11782. }
  11783. ee.EncodeInt(int64(v[bool(k2)]))
  11784. }
  11785. } else {
  11786. for k2, v2 := range v {
  11787. if esep {
  11788. ee.WriteMapElemKey()
  11789. }
  11790. ee.EncodeBool(k2)
  11791. if esep {
  11792. ee.WriteMapElemValue()
  11793. }
  11794. ee.EncodeInt(int64(v2))
  11795. }
  11796. }
  11797. ee.WriteMapEnd()
  11798. }
  11799. func (e *Encoder) fastpathEncMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  11800. fastpathTV.EncMapBoolInt32V(rv2i(rv).(map[bool]int32), e)
  11801. }
  11802. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, e *Encoder) {
  11803. ee, esep := e.e, e.hh.hasElemSeparators()
  11804. ee.WriteMapStart(len(v))
  11805. if e.h.Canonical {
  11806. v2 := make([]bool, len(v))
  11807. var i int
  11808. for k, _ := range v {
  11809. v2[i] = bool(k)
  11810. i++
  11811. }
  11812. sort.Sort(boolSlice(v2))
  11813. for _, k2 := range v2 {
  11814. if esep {
  11815. ee.WriteMapElemKey()
  11816. }
  11817. ee.EncodeBool(bool(k2))
  11818. if esep {
  11819. ee.WriteMapElemValue()
  11820. }
  11821. ee.EncodeInt(int64(v[bool(k2)]))
  11822. }
  11823. } else {
  11824. for k2, v2 := range v {
  11825. if esep {
  11826. ee.WriteMapElemKey()
  11827. }
  11828. ee.EncodeBool(k2)
  11829. if esep {
  11830. ee.WriteMapElemValue()
  11831. }
  11832. ee.EncodeInt(int64(v2))
  11833. }
  11834. }
  11835. ee.WriteMapEnd()
  11836. }
  11837. func (e *Encoder) fastpathEncMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  11838. fastpathTV.EncMapBoolInt64V(rv2i(rv).(map[bool]int64), e)
  11839. }
  11840. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, e *Encoder) {
  11841. ee, esep := e.e, e.hh.hasElemSeparators()
  11842. ee.WriteMapStart(len(v))
  11843. if e.h.Canonical {
  11844. v2 := make([]bool, len(v))
  11845. var i int
  11846. for k, _ := range v {
  11847. v2[i] = bool(k)
  11848. i++
  11849. }
  11850. sort.Sort(boolSlice(v2))
  11851. for _, k2 := range v2 {
  11852. if esep {
  11853. ee.WriteMapElemKey()
  11854. }
  11855. ee.EncodeBool(bool(k2))
  11856. if esep {
  11857. ee.WriteMapElemValue()
  11858. }
  11859. ee.EncodeInt(int64(v[bool(k2)]))
  11860. }
  11861. } else {
  11862. for k2, v2 := range v {
  11863. if esep {
  11864. ee.WriteMapElemKey()
  11865. }
  11866. ee.EncodeBool(k2)
  11867. if esep {
  11868. ee.WriteMapElemValue()
  11869. }
  11870. ee.EncodeInt(int64(v2))
  11871. }
  11872. }
  11873. ee.WriteMapEnd()
  11874. }
  11875. func (e *Encoder) fastpathEncMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  11876. fastpathTV.EncMapBoolFloat32V(rv2i(rv).(map[bool]float32), e)
  11877. }
  11878. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, e *Encoder) {
  11879. ee, esep := e.e, e.hh.hasElemSeparators()
  11880. ee.WriteMapStart(len(v))
  11881. if e.h.Canonical {
  11882. v2 := make([]bool, len(v))
  11883. var i int
  11884. for k, _ := range v {
  11885. v2[i] = bool(k)
  11886. i++
  11887. }
  11888. sort.Sort(boolSlice(v2))
  11889. for _, k2 := range v2 {
  11890. if esep {
  11891. ee.WriteMapElemKey()
  11892. }
  11893. ee.EncodeBool(bool(k2))
  11894. if esep {
  11895. ee.WriteMapElemValue()
  11896. }
  11897. ee.EncodeFloat32(v[bool(k2)])
  11898. }
  11899. } else {
  11900. for k2, v2 := range v {
  11901. if esep {
  11902. ee.WriteMapElemKey()
  11903. }
  11904. ee.EncodeBool(k2)
  11905. if esep {
  11906. ee.WriteMapElemValue()
  11907. }
  11908. ee.EncodeFloat32(v2)
  11909. }
  11910. }
  11911. ee.WriteMapEnd()
  11912. }
  11913. func (e *Encoder) fastpathEncMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  11914. fastpathTV.EncMapBoolFloat64V(rv2i(rv).(map[bool]float64), e)
  11915. }
  11916. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, e *Encoder) {
  11917. ee, esep := e.e, e.hh.hasElemSeparators()
  11918. ee.WriteMapStart(len(v))
  11919. if e.h.Canonical {
  11920. v2 := make([]bool, len(v))
  11921. var i int
  11922. for k, _ := range v {
  11923. v2[i] = bool(k)
  11924. i++
  11925. }
  11926. sort.Sort(boolSlice(v2))
  11927. for _, k2 := range v2 {
  11928. if esep {
  11929. ee.WriteMapElemKey()
  11930. }
  11931. ee.EncodeBool(bool(k2))
  11932. if esep {
  11933. ee.WriteMapElemValue()
  11934. }
  11935. ee.EncodeFloat64(v[bool(k2)])
  11936. }
  11937. } else {
  11938. for k2, v2 := range v {
  11939. if esep {
  11940. ee.WriteMapElemKey()
  11941. }
  11942. ee.EncodeBool(k2)
  11943. if esep {
  11944. ee.WriteMapElemValue()
  11945. }
  11946. ee.EncodeFloat64(v2)
  11947. }
  11948. }
  11949. ee.WriteMapEnd()
  11950. }
  11951. func (e *Encoder) fastpathEncMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  11952. fastpathTV.EncMapBoolBoolV(rv2i(rv).(map[bool]bool), e)
  11953. }
  11954. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, e *Encoder) {
  11955. ee, esep := e.e, e.hh.hasElemSeparators()
  11956. ee.WriteMapStart(len(v))
  11957. if e.h.Canonical {
  11958. v2 := make([]bool, len(v))
  11959. var i int
  11960. for k, _ := range v {
  11961. v2[i] = bool(k)
  11962. i++
  11963. }
  11964. sort.Sort(boolSlice(v2))
  11965. for _, k2 := range v2 {
  11966. if esep {
  11967. ee.WriteMapElemKey()
  11968. }
  11969. ee.EncodeBool(bool(k2))
  11970. if esep {
  11971. ee.WriteMapElemValue()
  11972. }
  11973. ee.EncodeBool(v[bool(k2)])
  11974. }
  11975. } else {
  11976. for k2, v2 := range v {
  11977. if esep {
  11978. ee.WriteMapElemKey()
  11979. }
  11980. ee.EncodeBool(k2)
  11981. if esep {
  11982. ee.WriteMapElemValue()
  11983. }
  11984. ee.EncodeBool(v2)
  11985. }
  11986. }
  11987. ee.WriteMapEnd()
  11988. }
  11989. // -- decode
  11990. // -- -- fast path type switch
  11991. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  11992. switch v := iv.(type) {
  11993. case []interface{}:
  11994. fastpathTV.DecSliceIntfV(v, false, d)
  11995. case *[]interface{}:
  11996. if v2, changed2 := fastpathTV.DecSliceIntfV(*v, true, d); changed2 {
  11997. *v = v2
  11998. }
  11999. case map[interface{}]interface{}:
  12000. fastpathTV.DecMapIntfIntfV(v, false, d)
  12001. case *map[interface{}]interface{}:
  12002. if v2, changed2 := fastpathTV.DecMapIntfIntfV(*v, true, d); changed2 {
  12003. *v = v2
  12004. }
  12005. case map[interface{}]string:
  12006. fastpathTV.DecMapIntfStringV(v, false, d)
  12007. case *map[interface{}]string:
  12008. if v2, changed2 := fastpathTV.DecMapIntfStringV(*v, true, d); changed2 {
  12009. *v = v2
  12010. }
  12011. case map[interface{}]uint:
  12012. fastpathTV.DecMapIntfUintV(v, false, d)
  12013. case *map[interface{}]uint:
  12014. if v2, changed2 := fastpathTV.DecMapIntfUintV(*v, true, d); changed2 {
  12015. *v = v2
  12016. }
  12017. case map[interface{}]uint8:
  12018. fastpathTV.DecMapIntfUint8V(v, false, d)
  12019. case *map[interface{}]uint8:
  12020. if v2, changed2 := fastpathTV.DecMapIntfUint8V(*v, true, d); changed2 {
  12021. *v = v2
  12022. }
  12023. case map[interface{}]uint16:
  12024. fastpathTV.DecMapIntfUint16V(v, false, d)
  12025. case *map[interface{}]uint16:
  12026. if v2, changed2 := fastpathTV.DecMapIntfUint16V(*v, true, d); changed2 {
  12027. *v = v2
  12028. }
  12029. case map[interface{}]uint32:
  12030. fastpathTV.DecMapIntfUint32V(v, false, d)
  12031. case *map[interface{}]uint32:
  12032. if v2, changed2 := fastpathTV.DecMapIntfUint32V(*v, true, d); changed2 {
  12033. *v = v2
  12034. }
  12035. case map[interface{}]uint64:
  12036. fastpathTV.DecMapIntfUint64V(v, false, d)
  12037. case *map[interface{}]uint64:
  12038. if v2, changed2 := fastpathTV.DecMapIntfUint64V(*v, true, d); changed2 {
  12039. *v = v2
  12040. }
  12041. case map[interface{}]uintptr:
  12042. fastpathTV.DecMapIntfUintptrV(v, false, d)
  12043. case *map[interface{}]uintptr:
  12044. if v2, changed2 := fastpathTV.DecMapIntfUintptrV(*v, true, d); changed2 {
  12045. *v = v2
  12046. }
  12047. case map[interface{}]int:
  12048. fastpathTV.DecMapIntfIntV(v, false, d)
  12049. case *map[interface{}]int:
  12050. if v2, changed2 := fastpathTV.DecMapIntfIntV(*v, true, d); changed2 {
  12051. *v = v2
  12052. }
  12053. case map[interface{}]int8:
  12054. fastpathTV.DecMapIntfInt8V(v, false, d)
  12055. case *map[interface{}]int8:
  12056. if v2, changed2 := fastpathTV.DecMapIntfInt8V(*v, true, d); changed2 {
  12057. *v = v2
  12058. }
  12059. case map[interface{}]int16:
  12060. fastpathTV.DecMapIntfInt16V(v, false, d)
  12061. case *map[interface{}]int16:
  12062. if v2, changed2 := fastpathTV.DecMapIntfInt16V(*v, true, d); changed2 {
  12063. *v = v2
  12064. }
  12065. case map[interface{}]int32:
  12066. fastpathTV.DecMapIntfInt32V(v, false, d)
  12067. case *map[interface{}]int32:
  12068. if v2, changed2 := fastpathTV.DecMapIntfInt32V(*v, true, d); changed2 {
  12069. *v = v2
  12070. }
  12071. case map[interface{}]int64:
  12072. fastpathTV.DecMapIntfInt64V(v, false, d)
  12073. case *map[interface{}]int64:
  12074. if v2, changed2 := fastpathTV.DecMapIntfInt64V(*v, true, d); changed2 {
  12075. *v = v2
  12076. }
  12077. case map[interface{}]float32:
  12078. fastpathTV.DecMapIntfFloat32V(v, false, d)
  12079. case *map[interface{}]float32:
  12080. if v2, changed2 := fastpathTV.DecMapIntfFloat32V(*v, true, d); changed2 {
  12081. *v = v2
  12082. }
  12083. case map[interface{}]float64:
  12084. fastpathTV.DecMapIntfFloat64V(v, false, d)
  12085. case *map[interface{}]float64:
  12086. if v2, changed2 := fastpathTV.DecMapIntfFloat64V(*v, true, d); changed2 {
  12087. *v = v2
  12088. }
  12089. case map[interface{}]bool:
  12090. fastpathTV.DecMapIntfBoolV(v, false, d)
  12091. case *map[interface{}]bool:
  12092. if v2, changed2 := fastpathTV.DecMapIntfBoolV(*v, true, d); changed2 {
  12093. *v = v2
  12094. }
  12095. case []string:
  12096. fastpathTV.DecSliceStringV(v, false, d)
  12097. case *[]string:
  12098. if v2, changed2 := fastpathTV.DecSliceStringV(*v, true, d); changed2 {
  12099. *v = v2
  12100. }
  12101. case map[string]interface{}:
  12102. fastpathTV.DecMapStringIntfV(v, false, d)
  12103. case *map[string]interface{}:
  12104. if v2, changed2 := fastpathTV.DecMapStringIntfV(*v, true, d); changed2 {
  12105. *v = v2
  12106. }
  12107. case map[string]string:
  12108. fastpathTV.DecMapStringStringV(v, false, d)
  12109. case *map[string]string:
  12110. if v2, changed2 := fastpathTV.DecMapStringStringV(*v, true, d); changed2 {
  12111. *v = v2
  12112. }
  12113. case map[string]uint:
  12114. fastpathTV.DecMapStringUintV(v, false, d)
  12115. case *map[string]uint:
  12116. if v2, changed2 := fastpathTV.DecMapStringUintV(*v, true, d); changed2 {
  12117. *v = v2
  12118. }
  12119. case map[string]uint8:
  12120. fastpathTV.DecMapStringUint8V(v, false, d)
  12121. case *map[string]uint8:
  12122. if v2, changed2 := fastpathTV.DecMapStringUint8V(*v, true, d); changed2 {
  12123. *v = v2
  12124. }
  12125. case map[string]uint16:
  12126. fastpathTV.DecMapStringUint16V(v, false, d)
  12127. case *map[string]uint16:
  12128. if v2, changed2 := fastpathTV.DecMapStringUint16V(*v, true, d); changed2 {
  12129. *v = v2
  12130. }
  12131. case map[string]uint32:
  12132. fastpathTV.DecMapStringUint32V(v, false, d)
  12133. case *map[string]uint32:
  12134. if v2, changed2 := fastpathTV.DecMapStringUint32V(*v, true, d); changed2 {
  12135. *v = v2
  12136. }
  12137. case map[string]uint64:
  12138. fastpathTV.DecMapStringUint64V(v, false, d)
  12139. case *map[string]uint64:
  12140. if v2, changed2 := fastpathTV.DecMapStringUint64V(*v, true, d); changed2 {
  12141. *v = v2
  12142. }
  12143. case map[string]uintptr:
  12144. fastpathTV.DecMapStringUintptrV(v, false, d)
  12145. case *map[string]uintptr:
  12146. if v2, changed2 := fastpathTV.DecMapStringUintptrV(*v, true, d); changed2 {
  12147. *v = v2
  12148. }
  12149. case map[string]int:
  12150. fastpathTV.DecMapStringIntV(v, false, d)
  12151. case *map[string]int:
  12152. if v2, changed2 := fastpathTV.DecMapStringIntV(*v, true, d); changed2 {
  12153. *v = v2
  12154. }
  12155. case map[string]int8:
  12156. fastpathTV.DecMapStringInt8V(v, false, d)
  12157. case *map[string]int8:
  12158. if v2, changed2 := fastpathTV.DecMapStringInt8V(*v, true, d); changed2 {
  12159. *v = v2
  12160. }
  12161. case map[string]int16:
  12162. fastpathTV.DecMapStringInt16V(v, false, d)
  12163. case *map[string]int16:
  12164. if v2, changed2 := fastpathTV.DecMapStringInt16V(*v, true, d); changed2 {
  12165. *v = v2
  12166. }
  12167. case map[string]int32:
  12168. fastpathTV.DecMapStringInt32V(v, false, d)
  12169. case *map[string]int32:
  12170. if v2, changed2 := fastpathTV.DecMapStringInt32V(*v, true, d); changed2 {
  12171. *v = v2
  12172. }
  12173. case map[string]int64:
  12174. fastpathTV.DecMapStringInt64V(v, false, d)
  12175. case *map[string]int64:
  12176. if v2, changed2 := fastpathTV.DecMapStringInt64V(*v, true, d); changed2 {
  12177. *v = v2
  12178. }
  12179. case map[string]float32:
  12180. fastpathTV.DecMapStringFloat32V(v, false, d)
  12181. case *map[string]float32:
  12182. if v2, changed2 := fastpathTV.DecMapStringFloat32V(*v, true, d); changed2 {
  12183. *v = v2
  12184. }
  12185. case map[string]float64:
  12186. fastpathTV.DecMapStringFloat64V(v, false, d)
  12187. case *map[string]float64:
  12188. if v2, changed2 := fastpathTV.DecMapStringFloat64V(*v, true, d); changed2 {
  12189. *v = v2
  12190. }
  12191. case map[string]bool:
  12192. fastpathTV.DecMapStringBoolV(v, false, d)
  12193. case *map[string]bool:
  12194. if v2, changed2 := fastpathTV.DecMapStringBoolV(*v, true, d); changed2 {
  12195. *v = v2
  12196. }
  12197. case []float32:
  12198. fastpathTV.DecSliceFloat32V(v, false, d)
  12199. case *[]float32:
  12200. if v2, changed2 := fastpathTV.DecSliceFloat32V(*v, true, d); changed2 {
  12201. *v = v2
  12202. }
  12203. case map[float32]interface{}:
  12204. fastpathTV.DecMapFloat32IntfV(v, false, d)
  12205. case *map[float32]interface{}:
  12206. if v2, changed2 := fastpathTV.DecMapFloat32IntfV(*v, true, d); changed2 {
  12207. *v = v2
  12208. }
  12209. case map[float32]string:
  12210. fastpathTV.DecMapFloat32StringV(v, false, d)
  12211. case *map[float32]string:
  12212. if v2, changed2 := fastpathTV.DecMapFloat32StringV(*v, true, d); changed2 {
  12213. *v = v2
  12214. }
  12215. case map[float32]uint:
  12216. fastpathTV.DecMapFloat32UintV(v, false, d)
  12217. case *map[float32]uint:
  12218. if v2, changed2 := fastpathTV.DecMapFloat32UintV(*v, true, d); changed2 {
  12219. *v = v2
  12220. }
  12221. case map[float32]uint8:
  12222. fastpathTV.DecMapFloat32Uint8V(v, false, d)
  12223. case *map[float32]uint8:
  12224. if v2, changed2 := fastpathTV.DecMapFloat32Uint8V(*v, true, d); changed2 {
  12225. *v = v2
  12226. }
  12227. case map[float32]uint16:
  12228. fastpathTV.DecMapFloat32Uint16V(v, false, d)
  12229. case *map[float32]uint16:
  12230. if v2, changed2 := fastpathTV.DecMapFloat32Uint16V(*v, true, d); changed2 {
  12231. *v = v2
  12232. }
  12233. case map[float32]uint32:
  12234. fastpathTV.DecMapFloat32Uint32V(v, false, d)
  12235. case *map[float32]uint32:
  12236. if v2, changed2 := fastpathTV.DecMapFloat32Uint32V(*v, true, d); changed2 {
  12237. *v = v2
  12238. }
  12239. case map[float32]uint64:
  12240. fastpathTV.DecMapFloat32Uint64V(v, false, d)
  12241. case *map[float32]uint64:
  12242. if v2, changed2 := fastpathTV.DecMapFloat32Uint64V(*v, true, d); changed2 {
  12243. *v = v2
  12244. }
  12245. case map[float32]uintptr:
  12246. fastpathTV.DecMapFloat32UintptrV(v, false, d)
  12247. case *map[float32]uintptr:
  12248. if v2, changed2 := fastpathTV.DecMapFloat32UintptrV(*v, true, d); changed2 {
  12249. *v = v2
  12250. }
  12251. case map[float32]int:
  12252. fastpathTV.DecMapFloat32IntV(v, false, d)
  12253. case *map[float32]int:
  12254. if v2, changed2 := fastpathTV.DecMapFloat32IntV(*v, true, d); changed2 {
  12255. *v = v2
  12256. }
  12257. case map[float32]int8:
  12258. fastpathTV.DecMapFloat32Int8V(v, false, d)
  12259. case *map[float32]int8:
  12260. if v2, changed2 := fastpathTV.DecMapFloat32Int8V(*v, true, d); changed2 {
  12261. *v = v2
  12262. }
  12263. case map[float32]int16:
  12264. fastpathTV.DecMapFloat32Int16V(v, false, d)
  12265. case *map[float32]int16:
  12266. if v2, changed2 := fastpathTV.DecMapFloat32Int16V(*v, true, d); changed2 {
  12267. *v = v2
  12268. }
  12269. case map[float32]int32:
  12270. fastpathTV.DecMapFloat32Int32V(v, false, d)
  12271. case *map[float32]int32:
  12272. if v2, changed2 := fastpathTV.DecMapFloat32Int32V(*v, true, d); changed2 {
  12273. *v = v2
  12274. }
  12275. case map[float32]int64:
  12276. fastpathTV.DecMapFloat32Int64V(v, false, d)
  12277. case *map[float32]int64:
  12278. if v2, changed2 := fastpathTV.DecMapFloat32Int64V(*v, true, d); changed2 {
  12279. *v = v2
  12280. }
  12281. case map[float32]float32:
  12282. fastpathTV.DecMapFloat32Float32V(v, false, d)
  12283. case *map[float32]float32:
  12284. if v2, changed2 := fastpathTV.DecMapFloat32Float32V(*v, true, d); changed2 {
  12285. *v = v2
  12286. }
  12287. case map[float32]float64:
  12288. fastpathTV.DecMapFloat32Float64V(v, false, d)
  12289. case *map[float32]float64:
  12290. if v2, changed2 := fastpathTV.DecMapFloat32Float64V(*v, true, d); changed2 {
  12291. *v = v2
  12292. }
  12293. case map[float32]bool:
  12294. fastpathTV.DecMapFloat32BoolV(v, false, d)
  12295. case *map[float32]bool:
  12296. if v2, changed2 := fastpathTV.DecMapFloat32BoolV(*v, true, d); changed2 {
  12297. *v = v2
  12298. }
  12299. case []float64:
  12300. fastpathTV.DecSliceFloat64V(v, false, d)
  12301. case *[]float64:
  12302. if v2, changed2 := fastpathTV.DecSliceFloat64V(*v, true, d); changed2 {
  12303. *v = v2
  12304. }
  12305. case map[float64]interface{}:
  12306. fastpathTV.DecMapFloat64IntfV(v, false, d)
  12307. case *map[float64]interface{}:
  12308. if v2, changed2 := fastpathTV.DecMapFloat64IntfV(*v, true, d); changed2 {
  12309. *v = v2
  12310. }
  12311. case map[float64]string:
  12312. fastpathTV.DecMapFloat64StringV(v, false, d)
  12313. case *map[float64]string:
  12314. if v2, changed2 := fastpathTV.DecMapFloat64StringV(*v, true, d); changed2 {
  12315. *v = v2
  12316. }
  12317. case map[float64]uint:
  12318. fastpathTV.DecMapFloat64UintV(v, false, d)
  12319. case *map[float64]uint:
  12320. if v2, changed2 := fastpathTV.DecMapFloat64UintV(*v, true, d); changed2 {
  12321. *v = v2
  12322. }
  12323. case map[float64]uint8:
  12324. fastpathTV.DecMapFloat64Uint8V(v, false, d)
  12325. case *map[float64]uint8:
  12326. if v2, changed2 := fastpathTV.DecMapFloat64Uint8V(*v, true, d); changed2 {
  12327. *v = v2
  12328. }
  12329. case map[float64]uint16:
  12330. fastpathTV.DecMapFloat64Uint16V(v, false, d)
  12331. case *map[float64]uint16:
  12332. if v2, changed2 := fastpathTV.DecMapFloat64Uint16V(*v, true, d); changed2 {
  12333. *v = v2
  12334. }
  12335. case map[float64]uint32:
  12336. fastpathTV.DecMapFloat64Uint32V(v, false, d)
  12337. case *map[float64]uint32:
  12338. if v2, changed2 := fastpathTV.DecMapFloat64Uint32V(*v, true, d); changed2 {
  12339. *v = v2
  12340. }
  12341. case map[float64]uint64:
  12342. fastpathTV.DecMapFloat64Uint64V(v, false, d)
  12343. case *map[float64]uint64:
  12344. if v2, changed2 := fastpathTV.DecMapFloat64Uint64V(*v, true, d); changed2 {
  12345. *v = v2
  12346. }
  12347. case map[float64]uintptr:
  12348. fastpathTV.DecMapFloat64UintptrV(v, false, d)
  12349. case *map[float64]uintptr:
  12350. if v2, changed2 := fastpathTV.DecMapFloat64UintptrV(*v, true, d); changed2 {
  12351. *v = v2
  12352. }
  12353. case map[float64]int:
  12354. fastpathTV.DecMapFloat64IntV(v, false, d)
  12355. case *map[float64]int:
  12356. if v2, changed2 := fastpathTV.DecMapFloat64IntV(*v, true, d); changed2 {
  12357. *v = v2
  12358. }
  12359. case map[float64]int8:
  12360. fastpathTV.DecMapFloat64Int8V(v, false, d)
  12361. case *map[float64]int8:
  12362. if v2, changed2 := fastpathTV.DecMapFloat64Int8V(*v, true, d); changed2 {
  12363. *v = v2
  12364. }
  12365. case map[float64]int16:
  12366. fastpathTV.DecMapFloat64Int16V(v, false, d)
  12367. case *map[float64]int16:
  12368. if v2, changed2 := fastpathTV.DecMapFloat64Int16V(*v, true, d); changed2 {
  12369. *v = v2
  12370. }
  12371. case map[float64]int32:
  12372. fastpathTV.DecMapFloat64Int32V(v, false, d)
  12373. case *map[float64]int32:
  12374. if v2, changed2 := fastpathTV.DecMapFloat64Int32V(*v, true, d); changed2 {
  12375. *v = v2
  12376. }
  12377. case map[float64]int64:
  12378. fastpathTV.DecMapFloat64Int64V(v, false, d)
  12379. case *map[float64]int64:
  12380. if v2, changed2 := fastpathTV.DecMapFloat64Int64V(*v, true, d); changed2 {
  12381. *v = v2
  12382. }
  12383. case map[float64]float32:
  12384. fastpathTV.DecMapFloat64Float32V(v, false, d)
  12385. case *map[float64]float32:
  12386. if v2, changed2 := fastpathTV.DecMapFloat64Float32V(*v, true, d); changed2 {
  12387. *v = v2
  12388. }
  12389. case map[float64]float64:
  12390. fastpathTV.DecMapFloat64Float64V(v, false, d)
  12391. case *map[float64]float64:
  12392. if v2, changed2 := fastpathTV.DecMapFloat64Float64V(*v, true, d); changed2 {
  12393. *v = v2
  12394. }
  12395. case map[float64]bool:
  12396. fastpathTV.DecMapFloat64BoolV(v, false, d)
  12397. case *map[float64]bool:
  12398. if v2, changed2 := fastpathTV.DecMapFloat64BoolV(*v, true, d); changed2 {
  12399. *v = v2
  12400. }
  12401. case []uint:
  12402. fastpathTV.DecSliceUintV(v, false, d)
  12403. case *[]uint:
  12404. if v2, changed2 := fastpathTV.DecSliceUintV(*v, true, d); changed2 {
  12405. *v = v2
  12406. }
  12407. case map[uint]interface{}:
  12408. fastpathTV.DecMapUintIntfV(v, false, d)
  12409. case *map[uint]interface{}:
  12410. if v2, changed2 := fastpathTV.DecMapUintIntfV(*v, true, d); changed2 {
  12411. *v = v2
  12412. }
  12413. case map[uint]string:
  12414. fastpathTV.DecMapUintStringV(v, false, d)
  12415. case *map[uint]string:
  12416. if v2, changed2 := fastpathTV.DecMapUintStringV(*v, true, d); changed2 {
  12417. *v = v2
  12418. }
  12419. case map[uint]uint:
  12420. fastpathTV.DecMapUintUintV(v, false, d)
  12421. case *map[uint]uint:
  12422. if v2, changed2 := fastpathTV.DecMapUintUintV(*v, true, d); changed2 {
  12423. *v = v2
  12424. }
  12425. case map[uint]uint8:
  12426. fastpathTV.DecMapUintUint8V(v, false, d)
  12427. case *map[uint]uint8:
  12428. if v2, changed2 := fastpathTV.DecMapUintUint8V(*v, true, d); changed2 {
  12429. *v = v2
  12430. }
  12431. case map[uint]uint16:
  12432. fastpathTV.DecMapUintUint16V(v, false, d)
  12433. case *map[uint]uint16:
  12434. if v2, changed2 := fastpathTV.DecMapUintUint16V(*v, true, d); changed2 {
  12435. *v = v2
  12436. }
  12437. case map[uint]uint32:
  12438. fastpathTV.DecMapUintUint32V(v, false, d)
  12439. case *map[uint]uint32:
  12440. if v2, changed2 := fastpathTV.DecMapUintUint32V(*v, true, d); changed2 {
  12441. *v = v2
  12442. }
  12443. case map[uint]uint64:
  12444. fastpathTV.DecMapUintUint64V(v, false, d)
  12445. case *map[uint]uint64:
  12446. if v2, changed2 := fastpathTV.DecMapUintUint64V(*v, true, d); changed2 {
  12447. *v = v2
  12448. }
  12449. case map[uint]uintptr:
  12450. fastpathTV.DecMapUintUintptrV(v, false, d)
  12451. case *map[uint]uintptr:
  12452. if v2, changed2 := fastpathTV.DecMapUintUintptrV(*v, true, d); changed2 {
  12453. *v = v2
  12454. }
  12455. case map[uint]int:
  12456. fastpathTV.DecMapUintIntV(v, false, d)
  12457. case *map[uint]int:
  12458. if v2, changed2 := fastpathTV.DecMapUintIntV(*v, true, d); changed2 {
  12459. *v = v2
  12460. }
  12461. case map[uint]int8:
  12462. fastpathTV.DecMapUintInt8V(v, false, d)
  12463. case *map[uint]int8:
  12464. if v2, changed2 := fastpathTV.DecMapUintInt8V(*v, true, d); changed2 {
  12465. *v = v2
  12466. }
  12467. case map[uint]int16:
  12468. fastpathTV.DecMapUintInt16V(v, false, d)
  12469. case *map[uint]int16:
  12470. if v2, changed2 := fastpathTV.DecMapUintInt16V(*v, true, d); changed2 {
  12471. *v = v2
  12472. }
  12473. case map[uint]int32:
  12474. fastpathTV.DecMapUintInt32V(v, false, d)
  12475. case *map[uint]int32:
  12476. if v2, changed2 := fastpathTV.DecMapUintInt32V(*v, true, d); changed2 {
  12477. *v = v2
  12478. }
  12479. case map[uint]int64:
  12480. fastpathTV.DecMapUintInt64V(v, false, d)
  12481. case *map[uint]int64:
  12482. if v2, changed2 := fastpathTV.DecMapUintInt64V(*v, true, d); changed2 {
  12483. *v = v2
  12484. }
  12485. case map[uint]float32:
  12486. fastpathTV.DecMapUintFloat32V(v, false, d)
  12487. case *map[uint]float32:
  12488. if v2, changed2 := fastpathTV.DecMapUintFloat32V(*v, true, d); changed2 {
  12489. *v = v2
  12490. }
  12491. case map[uint]float64:
  12492. fastpathTV.DecMapUintFloat64V(v, false, d)
  12493. case *map[uint]float64:
  12494. if v2, changed2 := fastpathTV.DecMapUintFloat64V(*v, true, d); changed2 {
  12495. *v = v2
  12496. }
  12497. case map[uint]bool:
  12498. fastpathTV.DecMapUintBoolV(v, false, d)
  12499. case *map[uint]bool:
  12500. if v2, changed2 := fastpathTV.DecMapUintBoolV(*v, true, d); changed2 {
  12501. *v = v2
  12502. }
  12503. case map[uint8]interface{}:
  12504. fastpathTV.DecMapUint8IntfV(v, false, d)
  12505. case *map[uint8]interface{}:
  12506. if v2, changed2 := fastpathTV.DecMapUint8IntfV(*v, true, d); changed2 {
  12507. *v = v2
  12508. }
  12509. case map[uint8]string:
  12510. fastpathTV.DecMapUint8StringV(v, false, d)
  12511. case *map[uint8]string:
  12512. if v2, changed2 := fastpathTV.DecMapUint8StringV(*v, true, d); changed2 {
  12513. *v = v2
  12514. }
  12515. case map[uint8]uint:
  12516. fastpathTV.DecMapUint8UintV(v, false, d)
  12517. case *map[uint8]uint:
  12518. if v2, changed2 := fastpathTV.DecMapUint8UintV(*v, true, d); changed2 {
  12519. *v = v2
  12520. }
  12521. case map[uint8]uint8:
  12522. fastpathTV.DecMapUint8Uint8V(v, false, d)
  12523. case *map[uint8]uint8:
  12524. if v2, changed2 := fastpathTV.DecMapUint8Uint8V(*v, true, d); changed2 {
  12525. *v = v2
  12526. }
  12527. case map[uint8]uint16:
  12528. fastpathTV.DecMapUint8Uint16V(v, false, d)
  12529. case *map[uint8]uint16:
  12530. if v2, changed2 := fastpathTV.DecMapUint8Uint16V(*v, true, d); changed2 {
  12531. *v = v2
  12532. }
  12533. case map[uint8]uint32:
  12534. fastpathTV.DecMapUint8Uint32V(v, false, d)
  12535. case *map[uint8]uint32:
  12536. if v2, changed2 := fastpathTV.DecMapUint8Uint32V(*v, true, d); changed2 {
  12537. *v = v2
  12538. }
  12539. case map[uint8]uint64:
  12540. fastpathTV.DecMapUint8Uint64V(v, false, d)
  12541. case *map[uint8]uint64:
  12542. if v2, changed2 := fastpathTV.DecMapUint8Uint64V(*v, true, d); changed2 {
  12543. *v = v2
  12544. }
  12545. case map[uint8]uintptr:
  12546. fastpathTV.DecMapUint8UintptrV(v, false, d)
  12547. case *map[uint8]uintptr:
  12548. if v2, changed2 := fastpathTV.DecMapUint8UintptrV(*v, true, d); changed2 {
  12549. *v = v2
  12550. }
  12551. case map[uint8]int:
  12552. fastpathTV.DecMapUint8IntV(v, false, d)
  12553. case *map[uint8]int:
  12554. if v2, changed2 := fastpathTV.DecMapUint8IntV(*v, true, d); changed2 {
  12555. *v = v2
  12556. }
  12557. case map[uint8]int8:
  12558. fastpathTV.DecMapUint8Int8V(v, false, d)
  12559. case *map[uint8]int8:
  12560. if v2, changed2 := fastpathTV.DecMapUint8Int8V(*v, true, d); changed2 {
  12561. *v = v2
  12562. }
  12563. case map[uint8]int16:
  12564. fastpathTV.DecMapUint8Int16V(v, false, d)
  12565. case *map[uint8]int16:
  12566. if v2, changed2 := fastpathTV.DecMapUint8Int16V(*v, true, d); changed2 {
  12567. *v = v2
  12568. }
  12569. case map[uint8]int32:
  12570. fastpathTV.DecMapUint8Int32V(v, false, d)
  12571. case *map[uint8]int32:
  12572. if v2, changed2 := fastpathTV.DecMapUint8Int32V(*v, true, d); changed2 {
  12573. *v = v2
  12574. }
  12575. case map[uint8]int64:
  12576. fastpathTV.DecMapUint8Int64V(v, false, d)
  12577. case *map[uint8]int64:
  12578. if v2, changed2 := fastpathTV.DecMapUint8Int64V(*v, true, d); changed2 {
  12579. *v = v2
  12580. }
  12581. case map[uint8]float32:
  12582. fastpathTV.DecMapUint8Float32V(v, false, d)
  12583. case *map[uint8]float32:
  12584. if v2, changed2 := fastpathTV.DecMapUint8Float32V(*v, true, d); changed2 {
  12585. *v = v2
  12586. }
  12587. case map[uint8]float64:
  12588. fastpathTV.DecMapUint8Float64V(v, false, d)
  12589. case *map[uint8]float64:
  12590. if v2, changed2 := fastpathTV.DecMapUint8Float64V(*v, true, d); changed2 {
  12591. *v = v2
  12592. }
  12593. case map[uint8]bool:
  12594. fastpathTV.DecMapUint8BoolV(v, false, d)
  12595. case *map[uint8]bool:
  12596. if v2, changed2 := fastpathTV.DecMapUint8BoolV(*v, true, d); changed2 {
  12597. *v = v2
  12598. }
  12599. case []uint16:
  12600. fastpathTV.DecSliceUint16V(v, false, d)
  12601. case *[]uint16:
  12602. if v2, changed2 := fastpathTV.DecSliceUint16V(*v, true, d); changed2 {
  12603. *v = v2
  12604. }
  12605. case map[uint16]interface{}:
  12606. fastpathTV.DecMapUint16IntfV(v, false, d)
  12607. case *map[uint16]interface{}:
  12608. if v2, changed2 := fastpathTV.DecMapUint16IntfV(*v, true, d); changed2 {
  12609. *v = v2
  12610. }
  12611. case map[uint16]string:
  12612. fastpathTV.DecMapUint16StringV(v, false, d)
  12613. case *map[uint16]string:
  12614. if v2, changed2 := fastpathTV.DecMapUint16StringV(*v, true, d); changed2 {
  12615. *v = v2
  12616. }
  12617. case map[uint16]uint:
  12618. fastpathTV.DecMapUint16UintV(v, false, d)
  12619. case *map[uint16]uint:
  12620. if v2, changed2 := fastpathTV.DecMapUint16UintV(*v, true, d); changed2 {
  12621. *v = v2
  12622. }
  12623. case map[uint16]uint8:
  12624. fastpathTV.DecMapUint16Uint8V(v, false, d)
  12625. case *map[uint16]uint8:
  12626. if v2, changed2 := fastpathTV.DecMapUint16Uint8V(*v, true, d); changed2 {
  12627. *v = v2
  12628. }
  12629. case map[uint16]uint16:
  12630. fastpathTV.DecMapUint16Uint16V(v, false, d)
  12631. case *map[uint16]uint16:
  12632. if v2, changed2 := fastpathTV.DecMapUint16Uint16V(*v, true, d); changed2 {
  12633. *v = v2
  12634. }
  12635. case map[uint16]uint32:
  12636. fastpathTV.DecMapUint16Uint32V(v, false, d)
  12637. case *map[uint16]uint32:
  12638. if v2, changed2 := fastpathTV.DecMapUint16Uint32V(*v, true, d); changed2 {
  12639. *v = v2
  12640. }
  12641. case map[uint16]uint64:
  12642. fastpathTV.DecMapUint16Uint64V(v, false, d)
  12643. case *map[uint16]uint64:
  12644. if v2, changed2 := fastpathTV.DecMapUint16Uint64V(*v, true, d); changed2 {
  12645. *v = v2
  12646. }
  12647. case map[uint16]uintptr:
  12648. fastpathTV.DecMapUint16UintptrV(v, false, d)
  12649. case *map[uint16]uintptr:
  12650. if v2, changed2 := fastpathTV.DecMapUint16UintptrV(*v, true, d); changed2 {
  12651. *v = v2
  12652. }
  12653. case map[uint16]int:
  12654. fastpathTV.DecMapUint16IntV(v, false, d)
  12655. case *map[uint16]int:
  12656. if v2, changed2 := fastpathTV.DecMapUint16IntV(*v, true, d); changed2 {
  12657. *v = v2
  12658. }
  12659. case map[uint16]int8:
  12660. fastpathTV.DecMapUint16Int8V(v, false, d)
  12661. case *map[uint16]int8:
  12662. if v2, changed2 := fastpathTV.DecMapUint16Int8V(*v, true, d); changed2 {
  12663. *v = v2
  12664. }
  12665. case map[uint16]int16:
  12666. fastpathTV.DecMapUint16Int16V(v, false, d)
  12667. case *map[uint16]int16:
  12668. if v2, changed2 := fastpathTV.DecMapUint16Int16V(*v, true, d); changed2 {
  12669. *v = v2
  12670. }
  12671. case map[uint16]int32:
  12672. fastpathTV.DecMapUint16Int32V(v, false, d)
  12673. case *map[uint16]int32:
  12674. if v2, changed2 := fastpathTV.DecMapUint16Int32V(*v, true, d); changed2 {
  12675. *v = v2
  12676. }
  12677. case map[uint16]int64:
  12678. fastpathTV.DecMapUint16Int64V(v, false, d)
  12679. case *map[uint16]int64:
  12680. if v2, changed2 := fastpathTV.DecMapUint16Int64V(*v, true, d); changed2 {
  12681. *v = v2
  12682. }
  12683. case map[uint16]float32:
  12684. fastpathTV.DecMapUint16Float32V(v, false, d)
  12685. case *map[uint16]float32:
  12686. if v2, changed2 := fastpathTV.DecMapUint16Float32V(*v, true, d); changed2 {
  12687. *v = v2
  12688. }
  12689. case map[uint16]float64:
  12690. fastpathTV.DecMapUint16Float64V(v, false, d)
  12691. case *map[uint16]float64:
  12692. if v2, changed2 := fastpathTV.DecMapUint16Float64V(*v, true, d); changed2 {
  12693. *v = v2
  12694. }
  12695. case map[uint16]bool:
  12696. fastpathTV.DecMapUint16BoolV(v, false, d)
  12697. case *map[uint16]bool:
  12698. if v2, changed2 := fastpathTV.DecMapUint16BoolV(*v, true, d); changed2 {
  12699. *v = v2
  12700. }
  12701. case []uint32:
  12702. fastpathTV.DecSliceUint32V(v, false, d)
  12703. case *[]uint32:
  12704. if v2, changed2 := fastpathTV.DecSliceUint32V(*v, true, d); changed2 {
  12705. *v = v2
  12706. }
  12707. case map[uint32]interface{}:
  12708. fastpathTV.DecMapUint32IntfV(v, false, d)
  12709. case *map[uint32]interface{}:
  12710. if v2, changed2 := fastpathTV.DecMapUint32IntfV(*v, true, d); changed2 {
  12711. *v = v2
  12712. }
  12713. case map[uint32]string:
  12714. fastpathTV.DecMapUint32StringV(v, false, d)
  12715. case *map[uint32]string:
  12716. if v2, changed2 := fastpathTV.DecMapUint32StringV(*v, true, d); changed2 {
  12717. *v = v2
  12718. }
  12719. case map[uint32]uint:
  12720. fastpathTV.DecMapUint32UintV(v, false, d)
  12721. case *map[uint32]uint:
  12722. if v2, changed2 := fastpathTV.DecMapUint32UintV(*v, true, d); changed2 {
  12723. *v = v2
  12724. }
  12725. case map[uint32]uint8:
  12726. fastpathTV.DecMapUint32Uint8V(v, false, d)
  12727. case *map[uint32]uint8:
  12728. if v2, changed2 := fastpathTV.DecMapUint32Uint8V(*v, true, d); changed2 {
  12729. *v = v2
  12730. }
  12731. case map[uint32]uint16:
  12732. fastpathTV.DecMapUint32Uint16V(v, false, d)
  12733. case *map[uint32]uint16:
  12734. if v2, changed2 := fastpathTV.DecMapUint32Uint16V(*v, true, d); changed2 {
  12735. *v = v2
  12736. }
  12737. case map[uint32]uint32:
  12738. fastpathTV.DecMapUint32Uint32V(v, false, d)
  12739. case *map[uint32]uint32:
  12740. if v2, changed2 := fastpathTV.DecMapUint32Uint32V(*v, true, d); changed2 {
  12741. *v = v2
  12742. }
  12743. case map[uint32]uint64:
  12744. fastpathTV.DecMapUint32Uint64V(v, false, d)
  12745. case *map[uint32]uint64:
  12746. if v2, changed2 := fastpathTV.DecMapUint32Uint64V(*v, true, d); changed2 {
  12747. *v = v2
  12748. }
  12749. case map[uint32]uintptr:
  12750. fastpathTV.DecMapUint32UintptrV(v, false, d)
  12751. case *map[uint32]uintptr:
  12752. if v2, changed2 := fastpathTV.DecMapUint32UintptrV(*v, true, d); changed2 {
  12753. *v = v2
  12754. }
  12755. case map[uint32]int:
  12756. fastpathTV.DecMapUint32IntV(v, false, d)
  12757. case *map[uint32]int:
  12758. if v2, changed2 := fastpathTV.DecMapUint32IntV(*v, true, d); changed2 {
  12759. *v = v2
  12760. }
  12761. case map[uint32]int8:
  12762. fastpathTV.DecMapUint32Int8V(v, false, d)
  12763. case *map[uint32]int8:
  12764. if v2, changed2 := fastpathTV.DecMapUint32Int8V(*v, true, d); changed2 {
  12765. *v = v2
  12766. }
  12767. case map[uint32]int16:
  12768. fastpathTV.DecMapUint32Int16V(v, false, d)
  12769. case *map[uint32]int16:
  12770. if v2, changed2 := fastpathTV.DecMapUint32Int16V(*v, true, d); changed2 {
  12771. *v = v2
  12772. }
  12773. case map[uint32]int32:
  12774. fastpathTV.DecMapUint32Int32V(v, false, d)
  12775. case *map[uint32]int32:
  12776. if v2, changed2 := fastpathTV.DecMapUint32Int32V(*v, true, d); changed2 {
  12777. *v = v2
  12778. }
  12779. case map[uint32]int64:
  12780. fastpathTV.DecMapUint32Int64V(v, false, d)
  12781. case *map[uint32]int64:
  12782. if v2, changed2 := fastpathTV.DecMapUint32Int64V(*v, true, d); changed2 {
  12783. *v = v2
  12784. }
  12785. case map[uint32]float32:
  12786. fastpathTV.DecMapUint32Float32V(v, false, d)
  12787. case *map[uint32]float32:
  12788. if v2, changed2 := fastpathTV.DecMapUint32Float32V(*v, true, d); changed2 {
  12789. *v = v2
  12790. }
  12791. case map[uint32]float64:
  12792. fastpathTV.DecMapUint32Float64V(v, false, d)
  12793. case *map[uint32]float64:
  12794. if v2, changed2 := fastpathTV.DecMapUint32Float64V(*v, true, d); changed2 {
  12795. *v = v2
  12796. }
  12797. case map[uint32]bool:
  12798. fastpathTV.DecMapUint32BoolV(v, false, d)
  12799. case *map[uint32]bool:
  12800. if v2, changed2 := fastpathTV.DecMapUint32BoolV(*v, true, d); changed2 {
  12801. *v = v2
  12802. }
  12803. case []uint64:
  12804. fastpathTV.DecSliceUint64V(v, false, d)
  12805. case *[]uint64:
  12806. if v2, changed2 := fastpathTV.DecSliceUint64V(*v, true, d); changed2 {
  12807. *v = v2
  12808. }
  12809. case map[uint64]interface{}:
  12810. fastpathTV.DecMapUint64IntfV(v, false, d)
  12811. case *map[uint64]interface{}:
  12812. if v2, changed2 := fastpathTV.DecMapUint64IntfV(*v, true, d); changed2 {
  12813. *v = v2
  12814. }
  12815. case map[uint64]string:
  12816. fastpathTV.DecMapUint64StringV(v, false, d)
  12817. case *map[uint64]string:
  12818. if v2, changed2 := fastpathTV.DecMapUint64StringV(*v, true, d); changed2 {
  12819. *v = v2
  12820. }
  12821. case map[uint64]uint:
  12822. fastpathTV.DecMapUint64UintV(v, false, d)
  12823. case *map[uint64]uint:
  12824. if v2, changed2 := fastpathTV.DecMapUint64UintV(*v, true, d); changed2 {
  12825. *v = v2
  12826. }
  12827. case map[uint64]uint8:
  12828. fastpathTV.DecMapUint64Uint8V(v, false, d)
  12829. case *map[uint64]uint8:
  12830. if v2, changed2 := fastpathTV.DecMapUint64Uint8V(*v, true, d); changed2 {
  12831. *v = v2
  12832. }
  12833. case map[uint64]uint16:
  12834. fastpathTV.DecMapUint64Uint16V(v, false, d)
  12835. case *map[uint64]uint16:
  12836. if v2, changed2 := fastpathTV.DecMapUint64Uint16V(*v, true, d); changed2 {
  12837. *v = v2
  12838. }
  12839. case map[uint64]uint32:
  12840. fastpathTV.DecMapUint64Uint32V(v, false, d)
  12841. case *map[uint64]uint32:
  12842. if v2, changed2 := fastpathTV.DecMapUint64Uint32V(*v, true, d); changed2 {
  12843. *v = v2
  12844. }
  12845. case map[uint64]uint64:
  12846. fastpathTV.DecMapUint64Uint64V(v, false, d)
  12847. case *map[uint64]uint64:
  12848. if v2, changed2 := fastpathTV.DecMapUint64Uint64V(*v, true, d); changed2 {
  12849. *v = v2
  12850. }
  12851. case map[uint64]uintptr:
  12852. fastpathTV.DecMapUint64UintptrV(v, false, d)
  12853. case *map[uint64]uintptr:
  12854. if v2, changed2 := fastpathTV.DecMapUint64UintptrV(*v, true, d); changed2 {
  12855. *v = v2
  12856. }
  12857. case map[uint64]int:
  12858. fastpathTV.DecMapUint64IntV(v, false, d)
  12859. case *map[uint64]int:
  12860. if v2, changed2 := fastpathTV.DecMapUint64IntV(*v, true, d); changed2 {
  12861. *v = v2
  12862. }
  12863. case map[uint64]int8:
  12864. fastpathTV.DecMapUint64Int8V(v, false, d)
  12865. case *map[uint64]int8:
  12866. if v2, changed2 := fastpathTV.DecMapUint64Int8V(*v, true, d); changed2 {
  12867. *v = v2
  12868. }
  12869. case map[uint64]int16:
  12870. fastpathTV.DecMapUint64Int16V(v, false, d)
  12871. case *map[uint64]int16:
  12872. if v2, changed2 := fastpathTV.DecMapUint64Int16V(*v, true, d); changed2 {
  12873. *v = v2
  12874. }
  12875. case map[uint64]int32:
  12876. fastpathTV.DecMapUint64Int32V(v, false, d)
  12877. case *map[uint64]int32:
  12878. if v2, changed2 := fastpathTV.DecMapUint64Int32V(*v, true, d); changed2 {
  12879. *v = v2
  12880. }
  12881. case map[uint64]int64:
  12882. fastpathTV.DecMapUint64Int64V(v, false, d)
  12883. case *map[uint64]int64:
  12884. if v2, changed2 := fastpathTV.DecMapUint64Int64V(*v, true, d); changed2 {
  12885. *v = v2
  12886. }
  12887. case map[uint64]float32:
  12888. fastpathTV.DecMapUint64Float32V(v, false, d)
  12889. case *map[uint64]float32:
  12890. if v2, changed2 := fastpathTV.DecMapUint64Float32V(*v, true, d); changed2 {
  12891. *v = v2
  12892. }
  12893. case map[uint64]float64:
  12894. fastpathTV.DecMapUint64Float64V(v, false, d)
  12895. case *map[uint64]float64:
  12896. if v2, changed2 := fastpathTV.DecMapUint64Float64V(*v, true, d); changed2 {
  12897. *v = v2
  12898. }
  12899. case map[uint64]bool:
  12900. fastpathTV.DecMapUint64BoolV(v, false, d)
  12901. case *map[uint64]bool:
  12902. if v2, changed2 := fastpathTV.DecMapUint64BoolV(*v, true, d); changed2 {
  12903. *v = v2
  12904. }
  12905. case []uintptr:
  12906. fastpathTV.DecSliceUintptrV(v, false, d)
  12907. case *[]uintptr:
  12908. if v2, changed2 := fastpathTV.DecSliceUintptrV(*v, true, d); changed2 {
  12909. *v = v2
  12910. }
  12911. case map[uintptr]interface{}:
  12912. fastpathTV.DecMapUintptrIntfV(v, false, d)
  12913. case *map[uintptr]interface{}:
  12914. if v2, changed2 := fastpathTV.DecMapUintptrIntfV(*v, true, d); changed2 {
  12915. *v = v2
  12916. }
  12917. case map[uintptr]string:
  12918. fastpathTV.DecMapUintptrStringV(v, false, d)
  12919. case *map[uintptr]string:
  12920. if v2, changed2 := fastpathTV.DecMapUintptrStringV(*v, true, d); changed2 {
  12921. *v = v2
  12922. }
  12923. case map[uintptr]uint:
  12924. fastpathTV.DecMapUintptrUintV(v, false, d)
  12925. case *map[uintptr]uint:
  12926. if v2, changed2 := fastpathTV.DecMapUintptrUintV(*v, true, d); changed2 {
  12927. *v = v2
  12928. }
  12929. case map[uintptr]uint8:
  12930. fastpathTV.DecMapUintptrUint8V(v, false, d)
  12931. case *map[uintptr]uint8:
  12932. if v2, changed2 := fastpathTV.DecMapUintptrUint8V(*v, true, d); changed2 {
  12933. *v = v2
  12934. }
  12935. case map[uintptr]uint16:
  12936. fastpathTV.DecMapUintptrUint16V(v, false, d)
  12937. case *map[uintptr]uint16:
  12938. if v2, changed2 := fastpathTV.DecMapUintptrUint16V(*v, true, d); changed2 {
  12939. *v = v2
  12940. }
  12941. case map[uintptr]uint32:
  12942. fastpathTV.DecMapUintptrUint32V(v, false, d)
  12943. case *map[uintptr]uint32:
  12944. if v2, changed2 := fastpathTV.DecMapUintptrUint32V(*v, true, d); changed2 {
  12945. *v = v2
  12946. }
  12947. case map[uintptr]uint64:
  12948. fastpathTV.DecMapUintptrUint64V(v, false, d)
  12949. case *map[uintptr]uint64:
  12950. if v2, changed2 := fastpathTV.DecMapUintptrUint64V(*v, true, d); changed2 {
  12951. *v = v2
  12952. }
  12953. case map[uintptr]uintptr:
  12954. fastpathTV.DecMapUintptrUintptrV(v, false, d)
  12955. case *map[uintptr]uintptr:
  12956. if v2, changed2 := fastpathTV.DecMapUintptrUintptrV(*v, true, d); changed2 {
  12957. *v = v2
  12958. }
  12959. case map[uintptr]int:
  12960. fastpathTV.DecMapUintptrIntV(v, false, d)
  12961. case *map[uintptr]int:
  12962. if v2, changed2 := fastpathTV.DecMapUintptrIntV(*v, true, d); changed2 {
  12963. *v = v2
  12964. }
  12965. case map[uintptr]int8:
  12966. fastpathTV.DecMapUintptrInt8V(v, false, d)
  12967. case *map[uintptr]int8:
  12968. if v2, changed2 := fastpathTV.DecMapUintptrInt8V(*v, true, d); changed2 {
  12969. *v = v2
  12970. }
  12971. case map[uintptr]int16:
  12972. fastpathTV.DecMapUintptrInt16V(v, false, d)
  12973. case *map[uintptr]int16:
  12974. if v2, changed2 := fastpathTV.DecMapUintptrInt16V(*v, true, d); changed2 {
  12975. *v = v2
  12976. }
  12977. case map[uintptr]int32:
  12978. fastpathTV.DecMapUintptrInt32V(v, false, d)
  12979. case *map[uintptr]int32:
  12980. if v2, changed2 := fastpathTV.DecMapUintptrInt32V(*v, true, d); changed2 {
  12981. *v = v2
  12982. }
  12983. case map[uintptr]int64:
  12984. fastpathTV.DecMapUintptrInt64V(v, false, d)
  12985. case *map[uintptr]int64:
  12986. if v2, changed2 := fastpathTV.DecMapUintptrInt64V(*v, true, d); changed2 {
  12987. *v = v2
  12988. }
  12989. case map[uintptr]float32:
  12990. fastpathTV.DecMapUintptrFloat32V(v, false, d)
  12991. case *map[uintptr]float32:
  12992. if v2, changed2 := fastpathTV.DecMapUintptrFloat32V(*v, true, d); changed2 {
  12993. *v = v2
  12994. }
  12995. case map[uintptr]float64:
  12996. fastpathTV.DecMapUintptrFloat64V(v, false, d)
  12997. case *map[uintptr]float64:
  12998. if v2, changed2 := fastpathTV.DecMapUintptrFloat64V(*v, true, d); changed2 {
  12999. *v = v2
  13000. }
  13001. case map[uintptr]bool:
  13002. fastpathTV.DecMapUintptrBoolV(v, false, d)
  13003. case *map[uintptr]bool:
  13004. if v2, changed2 := fastpathTV.DecMapUintptrBoolV(*v, true, d); changed2 {
  13005. *v = v2
  13006. }
  13007. case []int:
  13008. fastpathTV.DecSliceIntV(v, false, d)
  13009. case *[]int:
  13010. if v2, changed2 := fastpathTV.DecSliceIntV(*v, true, d); changed2 {
  13011. *v = v2
  13012. }
  13013. case map[int]interface{}:
  13014. fastpathTV.DecMapIntIntfV(v, false, d)
  13015. case *map[int]interface{}:
  13016. if v2, changed2 := fastpathTV.DecMapIntIntfV(*v, true, d); changed2 {
  13017. *v = v2
  13018. }
  13019. case map[int]string:
  13020. fastpathTV.DecMapIntStringV(v, false, d)
  13021. case *map[int]string:
  13022. if v2, changed2 := fastpathTV.DecMapIntStringV(*v, true, d); changed2 {
  13023. *v = v2
  13024. }
  13025. case map[int]uint:
  13026. fastpathTV.DecMapIntUintV(v, false, d)
  13027. case *map[int]uint:
  13028. if v2, changed2 := fastpathTV.DecMapIntUintV(*v, true, d); changed2 {
  13029. *v = v2
  13030. }
  13031. case map[int]uint8:
  13032. fastpathTV.DecMapIntUint8V(v, false, d)
  13033. case *map[int]uint8:
  13034. if v2, changed2 := fastpathTV.DecMapIntUint8V(*v, true, d); changed2 {
  13035. *v = v2
  13036. }
  13037. case map[int]uint16:
  13038. fastpathTV.DecMapIntUint16V(v, false, d)
  13039. case *map[int]uint16:
  13040. if v2, changed2 := fastpathTV.DecMapIntUint16V(*v, true, d); changed2 {
  13041. *v = v2
  13042. }
  13043. case map[int]uint32:
  13044. fastpathTV.DecMapIntUint32V(v, false, d)
  13045. case *map[int]uint32:
  13046. if v2, changed2 := fastpathTV.DecMapIntUint32V(*v, true, d); changed2 {
  13047. *v = v2
  13048. }
  13049. case map[int]uint64:
  13050. fastpathTV.DecMapIntUint64V(v, false, d)
  13051. case *map[int]uint64:
  13052. if v2, changed2 := fastpathTV.DecMapIntUint64V(*v, true, d); changed2 {
  13053. *v = v2
  13054. }
  13055. case map[int]uintptr:
  13056. fastpathTV.DecMapIntUintptrV(v, false, d)
  13057. case *map[int]uintptr:
  13058. if v2, changed2 := fastpathTV.DecMapIntUintptrV(*v, true, d); changed2 {
  13059. *v = v2
  13060. }
  13061. case map[int]int:
  13062. fastpathTV.DecMapIntIntV(v, false, d)
  13063. case *map[int]int:
  13064. if v2, changed2 := fastpathTV.DecMapIntIntV(*v, true, d); changed2 {
  13065. *v = v2
  13066. }
  13067. case map[int]int8:
  13068. fastpathTV.DecMapIntInt8V(v, false, d)
  13069. case *map[int]int8:
  13070. if v2, changed2 := fastpathTV.DecMapIntInt8V(*v, true, d); changed2 {
  13071. *v = v2
  13072. }
  13073. case map[int]int16:
  13074. fastpathTV.DecMapIntInt16V(v, false, d)
  13075. case *map[int]int16:
  13076. if v2, changed2 := fastpathTV.DecMapIntInt16V(*v, true, d); changed2 {
  13077. *v = v2
  13078. }
  13079. case map[int]int32:
  13080. fastpathTV.DecMapIntInt32V(v, false, d)
  13081. case *map[int]int32:
  13082. if v2, changed2 := fastpathTV.DecMapIntInt32V(*v, true, d); changed2 {
  13083. *v = v2
  13084. }
  13085. case map[int]int64:
  13086. fastpathTV.DecMapIntInt64V(v, false, d)
  13087. case *map[int]int64:
  13088. if v2, changed2 := fastpathTV.DecMapIntInt64V(*v, true, d); changed2 {
  13089. *v = v2
  13090. }
  13091. case map[int]float32:
  13092. fastpathTV.DecMapIntFloat32V(v, false, d)
  13093. case *map[int]float32:
  13094. if v2, changed2 := fastpathTV.DecMapIntFloat32V(*v, true, d); changed2 {
  13095. *v = v2
  13096. }
  13097. case map[int]float64:
  13098. fastpathTV.DecMapIntFloat64V(v, false, d)
  13099. case *map[int]float64:
  13100. if v2, changed2 := fastpathTV.DecMapIntFloat64V(*v, true, d); changed2 {
  13101. *v = v2
  13102. }
  13103. case map[int]bool:
  13104. fastpathTV.DecMapIntBoolV(v, false, d)
  13105. case *map[int]bool:
  13106. if v2, changed2 := fastpathTV.DecMapIntBoolV(*v, true, d); changed2 {
  13107. *v = v2
  13108. }
  13109. case []int8:
  13110. fastpathTV.DecSliceInt8V(v, false, d)
  13111. case *[]int8:
  13112. if v2, changed2 := fastpathTV.DecSliceInt8V(*v, true, d); changed2 {
  13113. *v = v2
  13114. }
  13115. case map[int8]interface{}:
  13116. fastpathTV.DecMapInt8IntfV(v, false, d)
  13117. case *map[int8]interface{}:
  13118. if v2, changed2 := fastpathTV.DecMapInt8IntfV(*v, true, d); changed2 {
  13119. *v = v2
  13120. }
  13121. case map[int8]string:
  13122. fastpathTV.DecMapInt8StringV(v, false, d)
  13123. case *map[int8]string:
  13124. if v2, changed2 := fastpathTV.DecMapInt8StringV(*v, true, d); changed2 {
  13125. *v = v2
  13126. }
  13127. case map[int8]uint:
  13128. fastpathTV.DecMapInt8UintV(v, false, d)
  13129. case *map[int8]uint:
  13130. if v2, changed2 := fastpathTV.DecMapInt8UintV(*v, true, d); changed2 {
  13131. *v = v2
  13132. }
  13133. case map[int8]uint8:
  13134. fastpathTV.DecMapInt8Uint8V(v, false, d)
  13135. case *map[int8]uint8:
  13136. if v2, changed2 := fastpathTV.DecMapInt8Uint8V(*v, true, d); changed2 {
  13137. *v = v2
  13138. }
  13139. case map[int8]uint16:
  13140. fastpathTV.DecMapInt8Uint16V(v, false, d)
  13141. case *map[int8]uint16:
  13142. if v2, changed2 := fastpathTV.DecMapInt8Uint16V(*v, true, d); changed2 {
  13143. *v = v2
  13144. }
  13145. case map[int8]uint32:
  13146. fastpathTV.DecMapInt8Uint32V(v, false, d)
  13147. case *map[int8]uint32:
  13148. if v2, changed2 := fastpathTV.DecMapInt8Uint32V(*v, true, d); changed2 {
  13149. *v = v2
  13150. }
  13151. case map[int8]uint64:
  13152. fastpathTV.DecMapInt8Uint64V(v, false, d)
  13153. case *map[int8]uint64:
  13154. if v2, changed2 := fastpathTV.DecMapInt8Uint64V(*v, true, d); changed2 {
  13155. *v = v2
  13156. }
  13157. case map[int8]uintptr:
  13158. fastpathTV.DecMapInt8UintptrV(v, false, d)
  13159. case *map[int8]uintptr:
  13160. if v2, changed2 := fastpathTV.DecMapInt8UintptrV(*v, true, d); changed2 {
  13161. *v = v2
  13162. }
  13163. case map[int8]int:
  13164. fastpathTV.DecMapInt8IntV(v, false, d)
  13165. case *map[int8]int:
  13166. if v2, changed2 := fastpathTV.DecMapInt8IntV(*v, true, d); changed2 {
  13167. *v = v2
  13168. }
  13169. case map[int8]int8:
  13170. fastpathTV.DecMapInt8Int8V(v, false, d)
  13171. case *map[int8]int8:
  13172. if v2, changed2 := fastpathTV.DecMapInt8Int8V(*v, true, d); changed2 {
  13173. *v = v2
  13174. }
  13175. case map[int8]int16:
  13176. fastpathTV.DecMapInt8Int16V(v, false, d)
  13177. case *map[int8]int16:
  13178. if v2, changed2 := fastpathTV.DecMapInt8Int16V(*v, true, d); changed2 {
  13179. *v = v2
  13180. }
  13181. case map[int8]int32:
  13182. fastpathTV.DecMapInt8Int32V(v, false, d)
  13183. case *map[int8]int32:
  13184. if v2, changed2 := fastpathTV.DecMapInt8Int32V(*v, true, d); changed2 {
  13185. *v = v2
  13186. }
  13187. case map[int8]int64:
  13188. fastpathTV.DecMapInt8Int64V(v, false, d)
  13189. case *map[int8]int64:
  13190. if v2, changed2 := fastpathTV.DecMapInt8Int64V(*v, true, d); changed2 {
  13191. *v = v2
  13192. }
  13193. case map[int8]float32:
  13194. fastpathTV.DecMapInt8Float32V(v, false, d)
  13195. case *map[int8]float32:
  13196. if v2, changed2 := fastpathTV.DecMapInt8Float32V(*v, true, d); changed2 {
  13197. *v = v2
  13198. }
  13199. case map[int8]float64:
  13200. fastpathTV.DecMapInt8Float64V(v, false, d)
  13201. case *map[int8]float64:
  13202. if v2, changed2 := fastpathTV.DecMapInt8Float64V(*v, true, d); changed2 {
  13203. *v = v2
  13204. }
  13205. case map[int8]bool:
  13206. fastpathTV.DecMapInt8BoolV(v, false, d)
  13207. case *map[int8]bool:
  13208. if v2, changed2 := fastpathTV.DecMapInt8BoolV(*v, true, d); changed2 {
  13209. *v = v2
  13210. }
  13211. case []int16:
  13212. fastpathTV.DecSliceInt16V(v, false, d)
  13213. case *[]int16:
  13214. if v2, changed2 := fastpathTV.DecSliceInt16V(*v, true, d); changed2 {
  13215. *v = v2
  13216. }
  13217. case map[int16]interface{}:
  13218. fastpathTV.DecMapInt16IntfV(v, false, d)
  13219. case *map[int16]interface{}:
  13220. if v2, changed2 := fastpathTV.DecMapInt16IntfV(*v, true, d); changed2 {
  13221. *v = v2
  13222. }
  13223. case map[int16]string:
  13224. fastpathTV.DecMapInt16StringV(v, false, d)
  13225. case *map[int16]string:
  13226. if v2, changed2 := fastpathTV.DecMapInt16StringV(*v, true, d); changed2 {
  13227. *v = v2
  13228. }
  13229. case map[int16]uint:
  13230. fastpathTV.DecMapInt16UintV(v, false, d)
  13231. case *map[int16]uint:
  13232. if v2, changed2 := fastpathTV.DecMapInt16UintV(*v, true, d); changed2 {
  13233. *v = v2
  13234. }
  13235. case map[int16]uint8:
  13236. fastpathTV.DecMapInt16Uint8V(v, false, d)
  13237. case *map[int16]uint8:
  13238. if v2, changed2 := fastpathTV.DecMapInt16Uint8V(*v, true, d); changed2 {
  13239. *v = v2
  13240. }
  13241. case map[int16]uint16:
  13242. fastpathTV.DecMapInt16Uint16V(v, false, d)
  13243. case *map[int16]uint16:
  13244. if v2, changed2 := fastpathTV.DecMapInt16Uint16V(*v, true, d); changed2 {
  13245. *v = v2
  13246. }
  13247. case map[int16]uint32:
  13248. fastpathTV.DecMapInt16Uint32V(v, false, d)
  13249. case *map[int16]uint32:
  13250. if v2, changed2 := fastpathTV.DecMapInt16Uint32V(*v, true, d); changed2 {
  13251. *v = v2
  13252. }
  13253. case map[int16]uint64:
  13254. fastpathTV.DecMapInt16Uint64V(v, false, d)
  13255. case *map[int16]uint64:
  13256. if v2, changed2 := fastpathTV.DecMapInt16Uint64V(*v, true, d); changed2 {
  13257. *v = v2
  13258. }
  13259. case map[int16]uintptr:
  13260. fastpathTV.DecMapInt16UintptrV(v, false, d)
  13261. case *map[int16]uintptr:
  13262. if v2, changed2 := fastpathTV.DecMapInt16UintptrV(*v, true, d); changed2 {
  13263. *v = v2
  13264. }
  13265. case map[int16]int:
  13266. fastpathTV.DecMapInt16IntV(v, false, d)
  13267. case *map[int16]int:
  13268. if v2, changed2 := fastpathTV.DecMapInt16IntV(*v, true, d); changed2 {
  13269. *v = v2
  13270. }
  13271. case map[int16]int8:
  13272. fastpathTV.DecMapInt16Int8V(v, false, d)
  13273. case *map[int16]int8:
  13274. if v2, changed2 := fastpathTV.DecMapInt16Int8V(*v, true, d); changed2 {
  13275. *v = v2
  13276. }
  13277. case map[int16]int16:
  13278. fastpathTV.DecMapInt16Int16V(v, false, d)
  13279. case *map[int16]int16:
  13280. if v2, changed2 := fastpathTV.DecMapInt16Int16V(*v, true, d); changed2 {
  13281. *v = v2
  13282. }
  13283. case map[int16]int32:
  13284. fastpathTV.DecMapInt16Int32V(v, false, d)
  13285. case *map[int16]int32:
  13286. if v2, changed2 := fastpathTV.DecMapInt16Int32V(*v, true, d); changed2 {
  13287. *v = v2
  13288. }
  13289. case map[int16]int64:
  13290. fastpathTV.DecMapInt16Int64V(v, false, d)
  13291. case *map[int16]int64:
  13292. if v2, changed2 := fastpathTV.DecMapInt16Int64V(*v, true, d); changed2 {
  13293. *v = v2
  13294. }
  13295. case map[int16]float32:
  13296. fastpathTV.DecMapInt16Float32V(v, false, d)
  13297. case *map[int16]float32:
  13298. if v2, changed2 := fastpathTV.DecMapInt16Float32V(*v, true, d); changed2 {
  13299. *v = v2
  13300. }
  13301. case map[int16]float64:
  13302. fastpathTV.DecMapInt16Float64V(v, false, d)
  13303. case *map[int16]float64:
  13304. if v2, changed2 := fastpathTV.DecMapInt16Float64V(*v, true, d); changed2 {
  13305. *v = v2
  13306. }
  13307. case map[int16]bool:
  13308. fastpathTV.DecMapInt16BoolV(v, false, d)
  13309. case *map[int16]bool:
  13310. if v2, changed2 := fastpathTV.DecMapInt16BoolV(*v, true, d); changed2 {
  13311. *v = v2
  13312. }
  13313. case []int32:
  13314. fastpathTV.DecSliceInt32V(v, false, d)
  13315. case *[]int32:
  13316. if v2, changed2 := fastpathTV.DecSliceInt32V(*v, true, d); changed2 {
  13317. *v = v2
  13318. }
  13319. case map[int32]interface{}:
  13320. fastpathTV.DecMapInt32IntfV(v, false, d)
  13321. case *map[int32]interface{}:
  13322. if v2, changed2 := fastpathTV.DecMapInt32IntfV(*v, true, d); changed2 {
  13323. *v = v2
  13324. }
  13325. case map[int32]string:
  13326. fastpathTV.DecMapInt32StringV(v, false, d)
  13327. case *map[int32]string:
  13328. if v2, changed2 := fastpathTV.DecMapInt32StringV(*v, true, d); changed2 {
  13329. *v = v2
  13330. }
  13331. case map[int32]uint:
  13332. fastpathTV.DecMapInt32UintV(v, false, d)
  13333. case *map[int32]uint:
  13334. if v2, changed2 := fastpathTV.DecMapInt32UintV(*v, true, d); changed2 {
  13335. *v = v2
  13336. }
  13337. case map[int32]uint8:
  13338. fastpathTV.DecMapInt32Uint8V(v, false, d)
  13339. case *map[int32]uint8:
  13340. if v2, changed2 := fastpathTV.DecMapInt32Uint8V(*v, true, d); changed2 {
  13341. *v = v2
  13342. }
  13343. case map[int32]uint16:
  13344. fastpathTV.DecMapInt32Uint16V(v, false, d)
  13345. case *map[int32]uint16:
  13346. if v2, changed2 := fastpathTV.DecMapInt32Uint16V(*v, true, d); changed2 {
  13347. *v = v2
  13348. }
  13349. case map[int32]uint32:
  13350. fastpathTV.DecMapInt32Uint32V(v, false, d)
  13351. case *map[int32]uint32:
  13352. if v2, changed2 := fastpathTV.DecMapInt32Uint32V(*v, true, d); changed2 {
  13353. *v = v2
  13354. }
  13355. case map[int32]uint64:
  13356. fastpathTV.DecMapInt32Uint64V(v, false, d)
  13357. case *map[int32]uint64:
  13358. if v2, changed2 := fastpathTV.DecMapInt32Uint64V(*v, true, d); changed2 {
  13359. *v = v2
  13360. }
  13361. case map[int32]uintptr:
  13362. fastpathTV.DecMapInt32UintptrV(v, false, d)
  13363. case *map[int32]uintptr:
  13364. if v2, changed2 := fastpathTV.DecMapInt32UintptrV(*v, true, d); changed2 {
  13365. *v = v2
  13366. }
  13367. case map[int32]int:
  13368. fastpathTV.DecMapInt32IntV(v, false, d)
  13369. case *map[int32]int:
  13370. if v2, changed2 := fastpathTV.DecMapInt32IntV(*v, true, d); changed2 {
  13371. *v = v2
  13372. }
  13373. case map[int32]int8:
  13374. fastpathTV.DecMapInt32Int8V(v, false, d)
  13375. case *map[int32]int8:
  13376. if v2, changed2 := fastpathTV.DecMapInt32Int8V(*v, true, d); changed2 {
  13377. *v = v2
  13378. }
  13379. case map[int32]int16:
  13380. fastpathTV.DecMapInt32Int16V(v, false, d)
  13381. case *map[int32]int16:
  13382. if v2, changed2 := fastpathTV.DecMapInt32Int16V(*v, true, d); changed2 {
  13383. *v = v2
  13384. }
  13385. case map[int32]int32:
  13386. fastpathTV.DecMapInt32Int32V(v, false, d)
  13387. case *map[int32]int32:
  13388. if v2, changed2 := fastpathTV.DecMapInt32Int32V(*v, true, d); changed2 {
  13389. *v = v2
  13390. }
  13391. case map[int32]int64:
  13392. fastpathTV.DecMapInt32Int64V(v, false, d)
  13393. case *map[int32]int64:
  13394. if v2, changed2 := fastpathTV.DecMapInt32Int64V(*v, true, d); changed2 {
  13395. *v = v2
  13396. }
  13397. case map[int32]float32:
  13398. fastpathTV.DecMapInt32Float32V(v, false, d)
  13399. case *map[int32]float32:
  13400. if v2, changed2 := fastpathTV.DecMapInt32Float32V(*v, true, d); changed2 {
  13401. *v = v2
  13402. }
  13403. case map[int32]float64:
  13404. fastpathTV.DecMapInt32Float64V(v, false, d)
  13405. case *map[int32]float64:
  13406. if v2, changed2 := fastpathTV.DecMapInt32Float64V(*v, true, d); changed2 {
  13407. *v = v2
  13408. }
  13409. case map[int32]bool:
  13410. fastpathTV.DecMapInt32BoolV(v, false, d)
  13411. case *map[int32]bool:
  13412. if v2, changed2 := fastpathTV.DecMapInt32BoolV(*v, true, d); changed2 {
  13413. *v = v2
  13414. }
  13415. case []int64:
  13416. fastpathTV.DecSliceInt64V(v, false, d)
  13417. case *[]int64:
  13418. if v2, changed2 := fastpathTV.DecSliceInt64V(*v, true, d); changed2 {
  13419. *v = v2
  13420. }
  13421. case map[int64]interface{}:
  13422. fastpathTV.DecMapInt64IntfV(v, false, d)
  13423. case *map[int64]interface{}:
  13424. if v2, changed2 := fastpathTV.DecMapInt64IntfV(*v, true, d); changed2 {
  13425. *v = v2
  13426. }
  13427. case map[int64]string:
  13428. fastpathTV.DecMapInt64StringV(v, false, d)
  13429. case *map[int64]string:
  13430. if v2, changed2 := fastpathTV.DecMapInt64StringV(*v, true, d); changed2 {
  13431. *v = v2
  13432. }
  13433. case map[int64]uint:
  13434. fastpathTV.DecMapInt64UintV(v, false, d)
  13435. case *map[int64]uint:
  13436. if v2, changed2 := fastpathTV.DecMapInt64UintV(*v, true, d); changed2 {
  13437. *v = v2
  13438. }
  13439. case map[int64]uint8:
  13440. fastpathTV.DecMapInt64Uint8V(v, false, d)
  13441. case *map[int64]uint8:
  13442. if v2, changed2 := fastpathTV.DecMapInt64Uint8V(*v, true, d); changed2 {
  13443. *v = v2
  13444. }
  13445. case map[int64]uint16:
  13446. fastpathTV.DecMapInt64Uint16V(v, false, d)
  13447. case *map[int64]uint16:
  13448. if v2, changed2 := fastpathTV.DecMapInt64Uint16V(*v, true, d); changed2 {
  13449. *v = v2
  13450. }
  13451. case map[int64]uint32:
  13452. fastpathTV.DecMapInt64Uint32V(v, false, d)
  13453. case *map[int64]uint32:
  13454. if v2, changed2 := fastpathTV.DecMapInt64Uint32V(*v, true, d); changed2 {
  13455. *v = v2
  13456. }
  13457. case map[int64]uint64:
  13458. fastpathTV.DecMapInt64Uint64V(v, false, d)
  13459. case *map[int64]uint64:
  13460. if v2, changed2 := fastpathTV.DecMapInt64Uint64V(*v, true, d); changed2 {
  13461. *v = v2
  13462. }
  13463. case map[int64]uintptr:
  13464. fastpathTV.DecMapInt64UintptrV(v, false, d)
  13465. case *map[int64]uintptr:
  13466. if v2, changed2 := fastpathTV.DecMapInt64UintptrV(*v, true, d); changed2 {
  13467. *v = v2
  13468. }
  13469. case map[int64]int:
  13470. fastpathTV.DecMapInt64IntV(v, false, d)
  13471. case *map[int64]int:
  13472. if v2, changed2 := fastpathTV.DecMapInt64IntV(*v, true, d); changed2 {
  13473. *v = v2
  13474. }
  13475. case map[int64]int8:
  13476. fastpathTV.DecMapInt64Int8V(v, false, d)
  13477. case *map[int64]int8:
  13478. if v2, changed2 := fastpathTV.DecMapInt64Int8V(*v, true, d); changed2 {
  13479. *v = v2
  13480. }
  13481. case map[int64]int16:
  13482. fastpathTV.DecMapInt64Int16V(v, false, d)
  13483. case *map[int64]int16:
  13484. if v2, changed2 := fastpathTV.DecMapInt64Int16V(*v, true, d); changed2 {
  13485. *v = v2
  13486. }
  13487. case map[int64]int32:
  13488. fastpathTV.DecMapInt64Int32V(v, false, d)
  13489. case *map[int64]int32:
  13490. if v2, changed2 := fastpathTV.DecMapInt64Int32V(*v, true, d); changed2 {
  13491. *v = v2
  13492. }
  13493. case map[int64]int64:
  13494. fastpathTV.DecMapInt64Int64V(v, false, d)
  13495. case *map[int64]int64:
  13496. if v2, changed2 := fastpathTV.DecMapInt64Int64V(*v, true, d); changed2 {
  13497. *v = v2
  13498. }
  13499. case map[int64]float32:
  13500. fastpathTV.DecMapInt64Float32V(v, false, d)
  13501. case *map[int64]float32:
  13502. if v2, changed2 := fastpathTV.DecMapInt64Float32V(*v, true, d); changed2 {
  13503. *v = v2
  13504. }
  13505. case map[int64]float64:
  13506. fastpathTV.DecMapInt64Float64V(v, false, d)
  13507. case *map[int64]float64:
  13508. if v2, changed2 := fastpathTV.DecMapInt64Float64V(*v, true, d); changed2 {
  13509. *v = v2
  13510. }
  13511. case map[int64]bool:
  13512. fastpathTV.DecMapInt64BoolV(v, false, d)
  13513. case *map[int64]bool:
  13514. if v2, changed2 := fastpathTV.DecMapInt64BoolV(*v, true, d); changed2 {
  13515. *v = v2
  13516. }
  13517. case []bool:
  13518. fastpathTV.DecSliceBoolV(v, false, d)
  13519. case *[]bool:
  13520. if v2, changed2 := fastpathTV.DecSliceBoolV(*v, true, d); changed2 {
  13521. *v = v2
  13522. }
  13523. case map[bool]interface{}:
  13524. fastpathTV.DecMapBoolIntfV(v, false, d)
  13525. case *map[bool]interface{}:
  13526. if v2, changed2 := fastpathTV.DecMapBoolIntfV(*v, true, d); changed2 {
  13527. *v = v2
  13528. }
  13529. case map[bool]string:
  13530. fastpathTV.DecMapBoolStringV(v, false, d)
  13531. case *map[bool]string:
  13532. if v2, changed2 := fastpathTV.DecMapBoolStringV(*v, true, d); changed2 {
  13533. *v = v2
  13534. }
  13535. case map[bool]uint:
  13536. fastpathTV.DecMapBoolUintV(v, false, d)
  13537. case *map[bool]uint:
  13538. if v2, changed2 := fastpathTV.DecMapBoolUintV(*v, true, d); changed2 {
  13539. *v = v2
  13540. }
  13541. case map[bool]uint8:
  13542. fastpathTV.DecMapBoolUint8V(v, false, d)
  13543. case *map[bool]uint8:
  13544. if v2, changed2 := fastpathTV.DecMapBoolUint8V(*v, true, d); changed2 {
  13545. *v = v2
  13546. }
  13547. case map[bool]uint16:
  13548. fastpathTV.DecMapBoolUint16V(v, false, d)
  13549. case *map[bool]uint16:
  13550. if v2, changed2 := fastpathTV.DecMapBoolUint16V(*v, true, d); changed2 {
  13551. *v = v2
  13552. }
  13553. case map[bool]uint32:
  13554. fastpathTV.DecMapBoolUint32V(v, false, d)
  13555. case *map[bool]uint32:
  13556. if v2, changed2 := fastpathTV.DecMapBoolUint32V(*v, true, d); changed2 {
  13557. *v = v2
  13558. }
  13559. case map[bool]uint64:
  13560. fastpathTV.DecMapBoolUint64V(v, false, d)
  13561. case *map[bool]uint64:
  13562. if v2, changed2 := fastpathTV.DecMapBoolUint64V(*v, true, d); changed2 {
  13563. *v = v2
  13564. }
  13565. case map[bool]uintptr:
  13566. fastpathTV.DecMapBoolUintptrV(v, false, d)
  13567. case *map[bool]uintptr:
  13568. if v2, changed2 := fastpathTV.DecMapBoolUintptrV(*v, true, d); changed2 {
  13569. *v = v2
  13570. }
  13571. case map[bool]int:
  13572. fastpathTV.DecMapBoolIntV(v, false, d)
  13573. case *map[bool]int:
  13574. if v2, changed2 := fastpathTV.DecMapBoolIntV(*v, true, d); changed2 {
  13575. *v = v2
  13576. }
  13577. case map[bool]int8:
  13578. fastpathTV.DecMapBoolInt8V(v, false, d)
  13579. case *map[bool]int8:
  13580. if v2, changed2 := fastpathTV.DecMapBoolInt8V(*v, true, d); changed2 {
  13581. *v = v2
  13582. }
  13583. case map[bool]int16:
  13584. fastpathTV.DecMapBoolInt16V(v, false, d)
  13585. case *map[bool]int16:
  13586. if v2, changed2 := fastpathTV.DecMapBoolInt16V(*v, true, d); changed2 {
  13587. *v = v2
  13588. }
  13589. case map[bool]int32:
  13590. fastpathTV.DecMapBoolInt32V(v, false, d)
  13591. case *map[bool]int32:
  13592. if v2, changed2 := fastpathTV.DecMapBoolInt32V(*v, true, d); changed2 {
  13593. *v = v2
  13594. }
  13595. case map[bool]int64:
  13596. fastpathTV.DecMapBoolInt64V(v, false, d)
  13597. case *map[bool]int64:
  13598. if v2, changed2 := fastpathTV.DecMapBoolInt64V(*v, true, d); changed2 {
  13599. *v = v2
  13600. }
  13601. case map[bool]float32:
  13602. fastpathTV.DecMapBoolFloat32V(v, false, d)
  13603. case *map[bool]float32:
  13604. if v2, changed2 := fastpathTV.DecMapBoolFloat32V(*v, true, d); changed2 {
  13605. *v = v2
  13606. }
  13607. case map[bool]float64:
  13608. fastpathTV.DecMapBoolFloat64V(v, false, d)
  13609. case *map[bool]float64:
  13610. if v2, changed2 := fastpathTV.DecMapBoolFloat64V(*v, true, d); changed2 {
  13611. *v = v2
  13612. }
  13613. case map[bool]bool:
  13614. fastpathTV.DecMapBoolBoolV(v, false, d)
  13615. case *map[bool]bool:
  13616. if v2, changed2 := fastpathTV.DecMapBoolBoolV(*v, true, d); changed2 {
  13617. *v = v2
  13618. }
  13619. default:
  13620. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  13621. return false
  13622. }
  13623. return true
  13624. }
  13625. func fastpathDecodeSetZeroTypeSwitch(iv interface{}, d *Decoder) bool {
  13626. switch v := iv.(type) {
  13627. case *[]interface{}:
  13628. *v = nil
  13629. case *map[interface{}]interface{}:
  13630. *v = nil
  13631. case *map[interface{}]string:
  13632. *v = nil
  13633. case *map[interface{}]uint:
  13634. *v = nil
  13635. case *map[interface{}]uint8:
  13636. *v = nil
  13637. case *map[interface{}]uint16:
  13638. *v = nil
  13639. case *map[interface{}]uint32:
  13640. *v = nil
  13641. case *map[interface{}]uint64:
  13642. *v = nil
  13643. case *map[interface{}]uintptr:
  13644. *v = nil
  13645. case *map[interface{}]int:
  13646. *v = nil
  13647. case *map[interface{}]int8:
  13648. *v = nil
  13649. case *map[interface{}]int16:
  13650. *v = nil
  13651. case *map[interface{}]int32:
  13652. *v = nil
  13653. case *map[interface{}]int64:
  13654. *v = nil
  13655. case *map[interface{}]float32:
  13656. *v = nil
  13657. case *map[interface{}]float64:
  13658. *v = nil
  13659. case *map[interface{}]bool:
  13660. *v = nil
  13661. case *[]string:
  13662. *v = nil
  13663. case *map[string]interface{}:
  13664. *v = nil
  13665. case *map[string]string:
  13666. *v = nil
  13667. case *map[string]uint:
  13668. *v = nil
  13669. case *map[string]uint8:
  13670. *v = nil
  13671. case *map[string]uint16:
  13672. *v = nil
  13673. case *map[string]uint32:
  13674. *v = nil
  13675. case *map[string]uint64:
  13676. *v = nil
  13677. case *map[string]uintptr:
  13678. *v = nil
  13679. case *map[string]int:
  13680. *v = nil
  13681. case *map[string]int8:
  13682. *v = nil
  13683. case *map[string]int16:
  13684. *v = nil
  13685. case *map[string]int32:
  13686. *v = nil
  13687. case *map[string]int64:
  13688. *v = nil
  13689. case *map[string]float32:
  13690. *v = nil
  13691. case *map[string]float64:
  13692. *v = nil
  13693. case *map[string]bool:
  13694. *v = nil
  13695. case *[]float32:
  13696. *v = nil
  13697. case *map[float32]interface{}:
  13698. *v = nil
  13699. case *map[float32]string:
  13700. *v = nil
  13701. case *map[float32]uint:
  13702. *v = nil
  13703. case *map[float32]uint8:
  13704. *v = nil
  13705. case *map[float32]uint16:
  13706. *v = nil
  13707. case *map[float32]uint32:
  13708. *v = nil
  13709. case *map[float32]uint64:
  13710. *v = nil
  13711. case *map[float32]uintptr:
  13712. *v = nil
  13713. case *map[float32]int:
  13714. *v = nil
  13715. case *map[float32]int8:
  13716. *v = nil
  13717. case *map[float32]int16:
  13718. *v = nil
  13719. case *map[float32]int32:
  13720. *v = nil
  13721. case *map[float32]int64:
  13722. *v = nil
  13723. case *map[float32]float32:
  13724. *v = nil
  13725. case *map[float32]float64:
  13726. *v = nil
  13727. case *map[float32]bool:
  13728. *v = nil
  13729. case *[]float64:
  13730. *v = nil
  13731. case *map[float64]interface{}:
  13732. *v = nil
  13733. case *map[float64]string:
  13734. *v = nil
  13735. case *map[float64]uint:
  13736. *v = nil
  13737. case *map[float64]uint8:
  13738. *v = nil
  13739. case *map[float64]uint16:
  13740. *v = nil
  13741. case *map[float64]uint32:
  13742. *v = nil
  13743. case *map[float64]uint64:
  13744. *v = nil
  13745. case *map[float64]uintptr:
  13746. *v = nil
  13747. case *map[float64]int:
  13748. *v = nil
  13749. case *map[float64]int8:
  13750. *v = nil
  13751. case *map[float64]int16:
  13752. *v = nil
  13753. case *map[float64]int32:
  13754. *v = nil
  13755. case *map[float64]int64:
  13756. *v = nil
  13757. case *map[float64]float32:
  13758. *v = nil
  13759. case *map[float64]float64:
  13760. *v = nil
  13761. case *map[float64]bool:
  13762. *v = nil
  13763. case *[]uint:
  13764. *v = nil
  13765. case *map[uint]interface{}:
  13766. *v = nil
  13767. case *map[uint]string:
  13768. *v = nil
  13769. case *map[uint]uint:
  13770. *v = nil
  13771. case *map[uint]uint8:
  13772. *v = nil
  13773. case *map[uint]uint16:
  13774. *v = nil
  13775. case *map[uint]uint32:
  13776. *v = nil
  13777. case *map[uint]uint64:
  13778. *v = nil
  13779. case *map[uint]uintptr:
  13780. *v = nil
  13781. case *map[uint]int:
  13782. *v = nil
  13783. case *map[uint]int8:
  13784. *v = nil
  13785. case *map[uint]int16:
  13786. *v = nil
  13787. case *map[uint]int32:
  13788. *v = nil
  13789. case *map[uint]int64:
  13790. *v = nil
  13791. case *map[uint]float32:
  13792. *v = nil
  13793. case *map[uint]float64:
  13794. *v = nil
  13795. case *map[uint]bool:
  13796. *v = nil
  13797. case *map[uint8]interface{}:
  13798. *v = nil
  13799. case *map[uint8]string:
  13800. *v = nil
  13801. case *map[uint8]uint:
  13802. *v = nil
  13803. case *map[uint8]uint8:
  13804. *v = nil
  13805. case *map[uint8]uint16:
  13806. *v = nil
  13807. case *map[uint8]uint32:
  13808. *v = nil
  13809. case *map[uint8]uint64:
  13810. *v = nil
  13811. case *map[uint8]uintptr:
  13812. *v = nil
  13813. case *map[uint8]int:
  13814. *v = nil
  13815. case *map[uint8]int8:
  13816. *v = nil
  13817. case *map[uint8]int16:
  13818. *v = nil
  13819. case *map[uint8]int32:
  13820. *v = nil
  13821. case *map[uint8]int64:
  13822. *v = nil
  13823. case *map[uint8]float32:
  13824. *v = nil
  13825. case *map[uint8]float64:
  13826. *v = nil
  13827. case *map[uint8]bool:
  13828. *v = nil
  13829. case *[]uint16:
  13830. *v = nil
  13831. case *map[uint16]interface{}:
  13832. *v = nil
  13833. case *map[uint16]string:
  13834. *v = nil
  13835. case *map[uint16]uint:
  13836. *v = nil
  13837. case *map[uint16]uint8:
  13838. *v = nil
  13839. case *map[uint16]uint16:
  13840. *v = nil
  13841. case *map[uint16]uint32:
  13842. *v = nil
  13843. case *map[uint16]uint64:
  13844. *v = nil
  13845. case *map[uint16]uintptr:
  13846. *v = nil
  13847. case *map[uint16]int:
  13848. *v = nil
  13849. case *map[uint16]int8:
  13850. *v = nil
  13851. case *map[uint16]int16:
  13852. *v = nil
  13853. case *map[uint16]int32:
  13854. *v = nil
  13855. case *map[uint16]int64:
  13856. *v = nil
  13857. case *map[uint16]float32:
  13858. *v = nil
  13859. case *map[uint16]float64:
  13860. *v = nil
  13861. case *map[uint16]bool:
  13862. *v = nil
  13863. case *[]uint32:
  13864. *v = nil
  13865. case *map[uint32]interface{}:
  13866. *v = nil
  13867. case *map[uint32]string:
  13868. *v = nil
  13869. case *map[uint32]uint:
  13870. *v = nil
  13871. case *map[uint32]uint8:
  13872. *v = nil
  13873. case *map[uint32]uint16:
  13874. *v = nil
  13875. case *map[uint32]uint32:
  13876. *v = nil
  13877. case *map[uint32]uint64:
  13878. *v = nil
  13879. case *map[uint32]uintptr:
  13880. *v = nil
  13881. case *map[uint32]int:
  13882. *v = nil
  13883. case *map[uint32]int8:
  13884. *v = nil
  13885. case *map[uint32]int16:
  13886. *v = nil
  13887. case *map[uint32]int32:
  13888. *v = nil
  13889. case *map[uint32]int64:
  13890. *v = nil
  13891. case *map[uint32]float32:
  13892. *v = nil
  13893. case *map[uint32]float64:
  13894. *v = nil
  13895. case *map[uint32]bool:
  13896. *v = nil
  13897. case *[]uint64:
  13898. *v = nil
  13899. case *map[uint64]interface{}:
  13900. *v = nil
  13901. case *map[uint64]string:
  13902. *v = nil
  13903. case *map[uint64]uint:
  13904. *v = nil
  13905. case *map[uint64]uint8:
  13906. *v = nil
  13907. case *map[uint64]uint16:
  13908. *v = nil
  13909. case *map[uint64]uint32:
  13910. *v = nil
  13911. case *map[uint64]uint64:
  13912. *v = nil
  13913. case *map[uint64]uintptr:
  13914. *v = nil
  13915. case *map[uint64]int:
  13916. *v = nil
  13917. case *map[uint64]int8:
  13918. *v = nil
  13919. case *map[uint64]int16:
  13920. *v = nil
  13921. case *map[uint64]int32:
  13922. *v = nil
  13923. case *map[uint64]int64:
  13924. *v = nil
  13925. case *map[uint64]float32:
  13926. *v = nil
  13927. case *map[uint64]float64:
  13928. *v = nil
  13929. case *map[uint64]bool:
  13930. *v = nil
  13931. case *[]uintptr:
  13932. *v = nil
  13933. case *map[uintptr]interface{}:
  13934. *v = nil
  13935. case *map[uintptr]string:
  13936. *v = nil
  13937. case *map[uintptr]uint:
  13938. *v = nil
  13939. case *map[uintptr]uint8:
  13940. *v = nil
  13941. case *map[uintptr]uint16:
  13942. *v = nil
  13943. case *map[uintptr]uint32:
  13944. *v = nil
  13945. case *map[uintptr]uint64:
  13946. *v = nil
  13947. case *map[uintptr]uintptr:
  13948. *v = nil
  13949. case *map[uintptr]int:
  13950. *v = nil
  13951. case *map[uintptr]int8:
  13952. *v = nil
  13953. case *map[uintptr]int16:
  13954. *v = nil
  13955. case *map[uintptr]int32:
  13956. *v = nil
  13957. case *map[uintptr]int64:
  13958. *v = nil
  13959. case *map[uintptr]float32:
  13960. *v = nil
  13961. case *map[uintptr]float64:
  13962. *v = nil
  13963. case *map[uintptr]bool:
  13964. *v = nil
  13965. case *[]int:
  13966. *v = nil
  13967. case *map[int]interface{}:
  13968. *v = nil
  13969. case *map[int]string:
  13970. *v = nil
  13971. case *map[int]uint:
  13972. *v = nil
  13973. case *map[int]uint8:
  13974. *v = nil
  13975. case *map[int]uint16:
  13976. *v = nil
  13977. case *map[int]uint32:
  13978. *v = nil
  13979. case *map[int]uint64:
  13980. *v = nil
  13981. case *map[int]uintptr:
  13982. *v = nil
  13983. case *map[int]int:
  13984. *v = nil
  13985. case *map[int]int8:
  13986. *v = nil
  13987. case *map[int]int16:
  13988. *v = nil
  13989. case *map[int]int32:
  13990. *v = nil
  13991. case *map[int]int64:
  13992. *v = nil
  13993. case *map[int]float32:
  13994. *v = nil
  13995. case *map[int]float64:
  13996. *v = nil
  13997. case *map[int]bool:
  13998. *v = nil
  13999. case *[]int8:
  14000. *v = nil
  14001. case *map[int8]interface{}:
  14002. *v = nil
  14003. case *map[int8]string:
  14004. *v = nil
  14005. case *map[int8]uint:
  14006. *v = nil
  14007. case *map[int8]uint8:
  14008. *v = nil
  14009. case *map[int8]uint16:
  14010. *v = nil
  14011. case *map[int8]uint32:
  14012. *v = nil
  14013. case *map[int8]uint64:
  14014. *v = nil
  14015. case *map[int8]uintptr:
  14016. *v = nil
  14017. case *map[int8]int:
  14018. *v = nil
  14019. case *map[int8]int8:
  14020. *v = nil
  14021. case *map[int8]int16:
  14022. *v = nil
  14023. case *map[int8]int32:
  14024. *v = nil
  14025. case *map[int8]int64:
  14026. *v = nil
  14027. case *map[int8]float32:
  14028. *v = nil
  14029. case *map[int8]float64:
  14030. *v = nil
  14031. case *map[int8]bool:
  14032. *v = nil
  14033. case *[]int16:
  14034. *v = nil
  14035. case *map[int16]interface{}:
  14036. *v = nil
  14037. case *map[int16]string:
  14038. *v = nil
  14039. case *map[int16]uint:
  14040. *v = nil
  14041. case *map[int16]uint8:
  14042. *v = nil
  14043. case *map[int16]uint16:
  14044. *v = nil
  14045. case *map[int16]uint32:
  14046. *v = nil
  14047. case *map[int16]uint64:
  14048. *v = nil
  14049. case *map[int16]uintptr:
  14050. *v = nil
  14051. case *map[int16]int:
  14052. *v = nil
  14053. case *map[int16]int8:
  14054. *v = nil
  14055. case *map[int16]int16:
  14056. *v = nil
  14057. case *map[int16]int32:
  14058. *v = nil
  14059. case *map[int16]int64:
  14060. *v = nil
  14061. case *map[int16]float32:
  14062. *v = nil
  14063. case *map[int16]float64:
  14064. *v = nil
  14065. case *map[int16]bool:
  14066. *v = nil
  14067. case *[]int32:
  14068. *v = nil
  14069. case *map[int32]interface{}:
  14070. *v = nil
  14071. case *map[int32]string:
  14072. *v = nil
  14073. case *map[int32]uint:
  14074. *v = nil
  14075. case *map[int32]uint8:
  14076. *v = nil
  14077. case *map[int32]uint16:
  14078. *v = nil
  14079. case *map[int32]uint32:
  14080. *v = nil
  14081. case *map[int32]uint64:
  14082. *v = nil
  14083. case *map[int32]uintptr:
  14084. *v = nil
  14085. case *map[int32]int:
  14086. *v = nil
  14087. case *map[int32]int8:
  14088. *v = nil
  14089. case *map[int32]int16:
  14090. *v = nil
  14091. case *map[int32]int32:
  14092. *v = nil
  14093. case *map[int32]int64:
  14094. *v = nil
  14095. case *map[int32]float32:
  14096. *v = nil
  14097. case *map[int32]float64:
  14098. *v = nil
  14099. case *map[int32]bool:
  14100. *v = nil
  14101. case *[]int64:
  14102. *v = nil
  14103. case *map[int64]interface{}:
  14104. *v = nil
  14105. case *map[int64]string:
  14106. *v = nil
  14107. case *map[int64]uint:
  14108. *v = nil
  14109. case *map[int64]uint8:
  14110. *v = nil
  14111. case *map[int64]uint16:
  14112. *v = nil
  14113. case *map[int64]uint32:
  14114. *v = nil
  14115. case *map[int64]uint64:
  14116. *v = nil
  14117. case *map[int64]uintptr:
  14118. *v = nil
  14119. case *map[int64]int:
  14120. *v = nil
  14121. case *map[int64]int8:
  14122. *v = nil
  14123. case *map[int64]int16:
  14124. *v = nil
  14125. case *map[int64]int32:
  14126. *v = nil
  14127. case *map[int64]int64:
  14128. *v = nil
  14129. case *map[int64]float32:
  14130. *v = nil
  14131. case *map[int64]float64:
  14132. *v = nil
  14133. case *map[int64]bool:
  14134. *v = nil
  14135. case *[]bool:
  14136. *v = nil
  14137. case *map[bool]interface{}:
  14138. *v = nil
  14139. case *map[bool]string:
  14140. *v = nil
  14141. case *map[bool]uint:
  14142. *v = nil
  14143. case *map[bool]uint8:
  14144. *v = nil
  14145. case *map[bool]uint16:
  14146. *v = nil
  14147. case *map[bool]uint32:
  14148. *v = nil
  14149. case *map[bool]uint64:
  14150. *v = nil
  14151. case *map[bool]uintptr:
  14152. *v = nil
  14153. case *map[bool]int:
  14154. *v = nil
  14155. case *map[bool]int8:
  14156. *v = nil
  14157. case *map[bool]int16:
  14158. *v = nil
  14159. case *map[bool]int32:
  14160. *v = nil
  14161. case *map[bool]int64:
  14162. *v = nil
  14163. case *map[bool]float32:
  14164. *v = nil
  14165. case *map[bool]float64:
  14166. *v = nil
  14167. case *map[bool]bool:
  14168. *v = nil
  14169. default:
  14170. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  14171. return false
  14172. }
  14173. return true
  14174. }
  14175. // -- -- fast path functions
  14176. func (d *Decoder) fastpathDecSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  14177. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  14178. var vp = rv2i(rv).(*[]interface{})
  14179. if v, changed := fastpathTV.DecSliceIntfV(*vp, !array, d); changed {
  14180. *vp = v
  14181. }
  14182. } else {
  14183. fastpathTV.DecSliceIntfV(rv2i(rv).([]interface{}), !array, d)
  14184. }
  14185. }
  14186. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, d *Decoder) {
  14187. if v, changed := f.DecSliceIntfV(*vp, true, d); changed {
  14188. *vp = v
  14189. }
  14190. }
  14191. func (_ fastpathT) DecSliceIntfV(v []interface{}, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  14192. dd := d.d
  14193. slh, containerLenS := d.decSliceHelperStart()
  14194. if containerLenS == 0 {
  14195. if canChange {
  14196. if v == nil {
  14197. v = []interface{}{}
  14198. } else if len(v) != 0 {
  14199. v = v[:0]
  14200. }
  14201. changed = true
  14202. }
  14203. slh.End()
  14204. return v, changed
  14205. }
  14206. hasLen := containerLenS > 0
  14207. var xlen int
  14208. if hasLen && canChange {
  14209. if containerLenS > cap(v) {
  14210. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  14211. if xlen <= cap(v) {
  14212. v = v[:xlen]
  14213. } else {
  14214. v = make([]interface{}, xlen)
  14215. }
  14216. changed = true
  14217. } else if containerLenS != len(v) {
  14218. v = v[:containerLenS]
  14219. changed = true
  14220. }
  14221. }
  14222. j := 0
  14223. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  14224. if j == 0 && len(v) == 0 {
  14225. if hasLen {
  14226. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  14227. } else {
  14228. xlen = 8
  14229. }
  14230. v = make([]interface{}, xlen)
  14231. changed = true
  14232. }
  14233. // if indefinite, etc, then expand the slice if necessary
  14234. var decodeIntoBlank bool
  14235. if j >= len(v) {
  14236. if canChange {
  14237. v = append(v, nil)
  14238. changed = true
  14239. } else {
  14240. d.arrayCannotExpand(len(v), j+1)
  14241. decodeIntoBlank = true
  14242. }
  14243. }
  14244. slh.ElemContainerState(j)
  14245. if decodeIntoBlank {
  14246. d.swallow()
  14247. } else {
  14248. d.decode(&v[j])
  14249. }
  14250. }
  14251. if canChange {
  14252. if j < len(v) {
  14253. v = v[:j]
  14254. changed = true
  14255. } else if j == 0 && v == nil {
  14256. v = make([]interface{}, 0)
  14257. changed = true
  14258. }
  14259. }
  14260. slh.End()
  14261. return v, changed
  14262. }
  14263. func (d *Decoder) fastpathDecSliceStringR(f *codecFnInfo, rv reflect.Value) {
  14264. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  14265. var vp = rv2i(rv).(*[]string)
  14266. if v, changed := fastpathTV.DecSliceStringV(*vp, !array, d); changed {
  14267. *vp = v
  14268. }
  14269. } else {
  14270. fastpathTV.DecSliceStringV(rv2i(rv).([]string), !array, d)
  14271. }
  14272. }
  14273. func (f fastpathT) DecSliceStringX(vp *[]string, d *Decoder) {
  14274. if v, changed := f.DecSliceStringV(*vp, true, d); changed {
  14275. *vp = v
  14276. }
  14277. }
  14278. func (_ fastpathT) DecSliceStringV(v []string, canChange bool, d *Decoder) (_ []string, changed bool) {
  14279. dd := d.d
  14280. slh, containerLenS := d.decSliceHelperStart()
  14281. if containerLenS == 0 {
  14282. if canChange {
  14283. if v == nil {
  14284. v = []string{}
  14285. } else if len(v) != 0 {
  14286. v = v[:0]
  14287. }
  14288. changed = true
  14289. }
  14290. slh.End()
  14291. return v, changed
  14292. }
  14293. hasLen := containerLenS > 0
  14294. var xlen int
  14295. if hasLen && canChange {
  14296. if containerLenS > cap(v) {
  14297. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  14298. if xlen <= cap(v) {
  14299. v = v[:xlen]
  14300. } else {
  14301. v = make([]string, xlen)
  14302. }
  14303. changed = true
  14304. } else if containerLenS != len(v) {
  14305. v = v[:containerLenS]
  14306. changed = true
  14307. }
  14308. }
  14309. j := 0
  14310. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  14311. if j == 0 && len(v) == 0 {
  14312. if hasLen {
  14313. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  14314. } else {
  14315. xlen = 8
  14316. }
  14317. v = make([]string, xlen)
  14318. changed = true
  14319. }
  14320. // if indefinite, etc, then expand the slice if necessary
  14321. var decodeIntoBlank bool
  14322. if j >= len(v) {
  14323. if canChange {
  14324. v = append(v, "")
  14325. changed = true
  14326. } else {
  14327. d.arrayCannotExpand(len(v), j+1)
  14328. decodeIntoBlank = true
  14329. }
  14330. }
  14331. slh.ElemContainerState(j)
  14332. if decodeIntoBlank {
  14333. d.swallow()
  14334. } else {
  14335. v[j] = dd.DecodeString()
  14336. }
  14337. }
  14338. if canChange {
  14339. if j < len(v) {
  14340. v = v[:j]
  14341. changed = true
  14342. } else if j == 0 && v == nil {
  14343. v = make([]string, 0)
  14344. changed = true
  14345. }
  14346. }
  14347. slh.End()
  14348. return v, changed
  14349. }
  14350. func (d *Decoder) fastpathDecSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  14351. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  14352. var vp = rv2i(rv).(*[]float32)
  14353. if v, changed := fastpathTV.DecSliceFloat32V(*vp, !array, d); changed {
  14354. *vp = v
  14355. }
  14356. } else {
  14357. fastpathTV.DecSliceFloat32V(rv2i(rv).([]float32), !array, d)
  14358. }
  14359. }
  14360. func (f fastpathT) DecSliceFloat32X(vp *[]float32, d *Decoder) {
  14361. if v, changed := f.DecSliceFloat32V(*vp, true, d); changed {
  14362. *vp = v
  14363. }
  14364. }
  14365. func (_ fastpathT) DecSliceFloat32V(v []float32, canChange bool, d *Decoder) (_ []float32, changed bool) {
  14366. dd := d.d
  14367. slh, containerLenS := d.decSliceHelperStart()
  14368. if containerLenS == 0 {
  14369. if canChange {
  14370. if v == nil {
  14371. v = []float32{}
  14372. } else if len(v) != 0 {
  14373. v = v[:0]
  14374. }
  14375. changed = true
  14376. }
  14377. slh.End()
  14378. return v, changed
  14379. }
  14380. hasLen := containerLenS > 0
  14381. var xlen int
  14382. if hasLen && canChange {
  14383. if containerLenS > cap(v) {
  14384. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  14385. if xlen <= cap(v) {
  14386. v = v[:xlen]
  14387. } else {
  14388. v = make([]float32, xlen)
  14389. }
  14390. changed = true
  14391. } else if containerLenS != len(v) {
  14392. v = v[:containerLenS]
  14393. changed = true
  14394. }
  14395. }
  14396. j := 0
  14397. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  14398. if j == 0 && len(v) == 0 {
  14399. if hasLen {
  14400. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  14401. } else {
  14402. xlen = 8
  14403. }
  14404. v = make([]float32, xlen)
  14405. changed = true
  14406. }
  14407. // if indefinite, etc, then expand the slice if necessary
  14408. var decodeIntoBlank bool
  14409. if j >= len(v) {
  14410. if canChange {
  14411. v = append(v, 0)
  14412. changed = true
  14413. } else {
  14414. d.arrayCannotExpand(len(v), j+1)
  14415. decodeIntoBlank = true
  14416. }
  14417. }
  14418. slh.ElemContainerState(j)
  14419. if decodeIntoBlank {
  14420. d.swallow()
  14421. } else {
  14422. v[j] = float32(dd.DecodeFloat(true))
  14423. }
  14424. }
  14425. if canChange {
  14426. if j < len(v) {
  14427. v = v[:j]
  14428. changed = true
  14429. } else if j == 0 && v == nil {
  14430. v = make([]float32, 0)
  14431. changed = true
  14432. }
  14433. }
  14434. slh.End()
  14435. return v, changed
  14436. }
  14437. func (d *Decoder) fastpathDecSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  14438. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  14439. var vp = rv2i(rv).(*[]float64)
  14440. if v, changed := fastpathTV.DecSliceFloat64V(*vp, !array, d); changed {
  14441. *vp = v
  14442. }
  14443. } else {
  14444. fastpathTV.DecSliceFloat64V(rv2i(rv).([]float64), !array, d)
  14445. }
  14446. }
  14447. func (f fastpathT) DecSliceFloat64X(vp *[]float64, d *Decoder) {
  14448. if v, changed := f.DecSliceFloat64V(*vp, true, d); changed {
  14449. *vp = v
  14450. }
  14451. }
  14452. func (_ fastpathT) DecSliceFloat64V(v []float64, canChange bool, d *Decoder) (_ []float64, changed bool) {
  14453. dd := d.d
  14454. slh, containerLenS := d.decSliceHelperStart()
  14455. if containerLenS == 0 {
  14456. if canChange {
  14457. if v == nil {
  14458. v = []float64{}
  14459. } else if len(v) != 0 {
  14460. v = v[:0]
  14461. }
  14462. changed = true
  14463. }
  14464. slh.End()
  14465. return v, changed
  14466. }
  14467. hasLen := containerLenS > 0
  14468. var xlen int
  14469. if hasLen && canChange {
  14470. if containerLenS > cap(v) {
  14471. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  14472. if xlen <= cap(v) {
  14473. v = v[:xlen]
  14474. } else {
  14475. v = make([]float64, xlen)
  14476. }
  14477. changed = true
  14478. } else if containerLenS != len(v) {
  14479. v = v[:containerLenS]
  14480. changed = true
  14481. }
  14482. }
  14483. j := 0
  14484. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  14485. if j == 0 && len(v) == 0 {
  14486. if hasLen {
  14487. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  14488. } else {
  14489. xlen = 8
  14490. }
  14491. v = make([]float64, xlen)
  14492. changed = true
  14493. }
  14494. // if indefinite, etc, then expand the slice if necessary
  14495. var decodeIntoBlank bool
  14496. if j >= len(v) {
  14497. if canChange {
  14498. v = append(v, 0)
  14499. changed = true
  14500. } else {
  14501. d.arrayCannotExpand(len(v), j+1)
  14502. decodeIntoBlank = true
  14503. }
  14504. }
  14505. slh.ElemContainerState(j)
  14506. if decodeIntoBlank {
  14507. d.swallow()
  14508. } else {
  14509. v[j] = dd.DecodeFloat(false)
  14510. }
  14511. }
  14512. if canChange {
  14513. if j < len(v) {
  14514. v = v[:j]
  14515. changed = true
  14516. } else if j == 0 && v == nil {
  14517. v = make([]float64, 0)
  14518. changed = true
  14519. }
  14520. }
  14521. slh.End()
  14522. return v, changed
  14523. }
  14524. func (d *Decoder) fastpathDecSliceUintR(f *codecFnInfo, rv reflect.Value) {
  14525. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  14526. var vp = rv2i(rv).(*[]uint)
  14527. if v, changed := fastpathTV.DecSliceUintV(*vp, !array, d); changed {
  14528. *vp = v
  14529. }
  14530. } else {
  14531. fastpathTV.DecSliceUintV(rv2i(rv).([]uint), !array, d)
  14532. }
  14533. }
  14534. func (f fastpathT) DecSliceUintX(vp *[]uint, d *Decoder) {
  14535. if v, changed := f.DecSliceUintV(*vp, true, d); changed {
  14536. *vp = v
  14537. }
  14538. }
  14539. func (_ fastpathT) DecSliceUintV(v []uint, canChange bool, d *Decoder) (_ []uint, changed bool) {
  14540. dd := d.d
  14541. slh, containerLenS := d.decSliceHelperStart()
  14542. if containerLenS == 0 {
  14543. if canChange {
  14544. if v == nil {
  14545. v = []uint{}
  14546. } else if len(v) != 0 {
  14547. v = v[:0]
  14548. }
  14549. changed = true
  14550. }
  14551. slh.End()
  14552. return v, changed
  14553. }
  14554. hasLen := containerLenS > 0
  14555. var xlen int
  14556. if hasLen && canChange {
  14557. if containerLenS > cap(v) {
  14558. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  14559. if xlen <= cap(v) {
  14560. v = v[:xlen]
  14561. } else {
  14562. v = make([]uint, xlen)
  14563. }
  14564. changed = true
  14565. } else if containerLenS != len(v) {
  14566. v = v[:containerLenS]
  14567. changed = true
  14568. }
  14569. }
  14570. j := 0
  14571. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  14572. if j == 0 && len(v) == 0 {
  14573. if hasLen {
  14574. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  14575. } else {
  14576. xlen = 8
  14577. }
  14578. v = make([]uint, xlen)
  14579. changed = true
  14580. }
  14581. // if indefinite, etc, then expand the slice if necessary
  14582. var decodeIntoBlank bool
  14583. if j >= len(v) {
  14584. if canChange {
  14585. v = append(v, 0)
  14586. changed = true
  14587. } else {
  14588. d.arrayCannotExpand(len(v), j+1)
  14589. decodeIntoBlank = true
  14590. }
  14591. }
  14592. slh.ElemContainerState(j)
  14593. if decodeIntoBlank {
  14594. d.swallow()
  14595. } else {
  14596. v[j] = uint(dd.DecodeUint(uintBitsize))
  14597. }
  14598. }
  14599. if canChange {
  14600. if j < len(v) {
  14601. v = v[:j]
  14602. changed = true
  14603. } else if j == 0 && v == nil {
  14604. v = make([]uint, 0)
  14605. changed = true
  14606. }
  14607. }
  14608. slh.End()
  14609. return v, changed
  14610. }
  14611. func (d *Decoder) fastpathDecSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  14612. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  14613. var vp = rv2i(rv).(*[]uint16)
  14614. if v, changed := fastpathTV.DecSliceUint16V(*vp, !array, d); changed {
  14615. *vp = v
  14616. }
  14617. } else {
  14618. fastpathTV.DecSliceUint16V(rv2i(rv).([]uint16), !array, d)
  14619. }
  14620. }
  14621. func (f fastpathT) DecSliceUint16X(vp *[]uint16, d *Decoder) {
  14622. if v, changed := f.DecSliceUint16V(*vp, true, d); changed {
  14623. *vp = v
  14624. }
  14625. }
  14626. func (_ fastpathT) DecSliceUint16V(v []uint16, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  14627. dd := d.d
  14628. slh, containerLenS := d.decSliceHelperStart()
  14629. if containerLenS == 0 {
  14630. if canChange {
  14631. if v == nil {
  14632. v = []uint16{}
  14633. } else if len(v) != 0 {
  14634. v = v[:0]
  14635. }
  14636. changed = true
  14637. }
  14638. slh.End()
  14639. return v, changed
  14640. }
  14641. hasLen := containerLenS > 0
  14642. var xlen int
  14643. if hasLen && canChange {
  14644. if containerLenS > cap(v) {
  14645. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  14646. if xlen <= cap(v) {
  14647. v = v[:xlen]
  14648. } else {
  14649. v = make([]uint16, xlen)
  14650. }
  14651. changed = true
  14652. } else if containerLenS != len(v) {
  14653. v = v[:containerLenS]
  14654. changed = true
  14655. }
  14656. }
  14657. j := 0
  14658. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  14659. if j == 0 && len(v) == 0 {
  14660. if hasLen {
  14661. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  14662. } else {
  14663. xlen = 8
  14664. }
  14665. v = make([]uint16, xlen)
  14666. changed = true
  14667. }
  14668. // if indefinite, etc, then expand the slice if necessary
  14669. var decodeIntoBlank bool
  14670. if j >= len(v) {
  14671. if canChange {
  14672. v = append(v, 0)
  14673. changed = true
  14674. } else {
  14675. d.arrayCannotExpand(len(v), j+1)
  14676. decodeIntoBlank = true
  14677. }
  14678. }
  14679. slh.ElemContainerState(j)
  14680. if decodeIntoBlank {
  14681. d.swallow()
  14682. } else {
  14683. v[j] = uint16(dd.DecodeUint(16))
  14684. }
  14685. }
  14686. if canChange {
  14687. if j < len(v) {
  14688. v = v[:j]
  14689. changed = true
  14690. } else if j == 0 && v == nil {
  14691. v = make([]uint16, 0)
  14692. changed = true
  14693. }
  14694. }
  14695. slh.End()
  14696. return v, changed
  14697. }
  14698. func (d *Decoder) fastpathDecSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  14699. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  14700. var vp = rv2i(rv).(*[]uint32)
  14701. if v, changed := fastpathTV.DecSliceUint32V(*vp, !array, d); changed {
  14702. *vp = v
  14703. }
  14704. } else {
  14705. fastpathTV.DecSliceUint32V(rv2i(rv).([]uint32), !array, d)
  14706. }
  14707. }
  14708. func (f fastpathT) DecSliceUint32X(vp *[]uint32, d *Decoder) {
  14709. if v, changed := f.DecSliceUint32V(*vp, true, d); changed {
  14710. *vp = v
  14711. }
  14712. }
  14713. func (_ fastpathT) DecSliceUint32V(v []uint32, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  14714. dd := d.d
  14715. slh, containerLenS := d.decSliceHelperStart()
  14716. if containerLenS == 0 {
  14717. if canChange {
  14718. if v == nil {
  14719. v = []uint32{}
  14720. } else if len(v) != 0 {
  14721. v = v[:0]
  14722. }
  14723. changed = true
  14724. }
  14725. slh.End()
  14726. return v, changed
  14727. }
  14728. hasLen := containerLenS > 0
  14729. var xlen int
  14730. if hasLen && canChange {
  14731. if containerLenS > cap(v) {
  14732. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  14733. if xlen <= cap(v) {
  14734. v = v[:xlen]
  14735. } else {
  14736. v = make([]uint32, xlen)
  14737. }
  14738. changed = true
  14739. } else if containerLenS != len(v) {
  14740. v = v[:containerLenS]
  14741. changed = true
  14742. }
  14743. }
  14744. j := 0
  14745. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  14746. if j == 0 && len(v) == 0 {
  14747. if hasLen {
  14748. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  14749. } else {
  14750. xlen = 8
  14751. }
  14752. v = make([]uint32, xlen)
  14753. changed = true
  14754. }
  14755. // if indefinite, etc, then expand the slice if necessary
  14756. var decodeIntoBlank bool
  14757. if j >= len(v) {
  14758. if canChange {
  14759. v = append(v, 0)
  14760. changed = true
  14761. } else {
  14762. d.arrayCannotExpand(len(v), j+1)
  14763. decodeIntoBlank = true
  14764. }
  14765. }
  14766. slh.ElemContainerState(j)
  14767. if decodeIntoBlank {
  14768. d.swallow()
  14769. } else {
  14770. v[j] = uint32(dd.DecodeUint(32))
  14771. }
  14772. }
  14773. if canChange {
  14774. if j < len(v) {
  14775. v = v[:j]
  14776. changed = true
  14777. } else if j == 0 && v == nil {
  14778. v = make([]uint32, 0)
  14779. changed = true
  14780. }
  14781. }
  14782. slh.End()
  14783. return v, changed
  14784. }
  14785. func (d *Decoder) fastpathDecSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  14786. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  14787. var vp = rv2i(rv).(*[]uint64)
  14788. if v, changed := fastpathTV.DecSliceUint64V(*vp, !array, d); changed {
  14789. *vp = v
  14790. }
  14791. } else {
  14792. fastpathTV.DecSliceUint64V(rv2i(rv).([]uint64), !array, d)
  14793. }
  14794. }
  14795. func (f fastpathT) DecSliceUint64X(vp *[]uint64, d *Decoder) {
  14796. if v, changed := f.DecSliceUint64V(*vp, true, d); changed {
  14797. *vp = v
  14798. }
  14799. }
  14800. func (_ fastpathT) DecSliceUint64V(v []uint64, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  14801. dd := d.d
  14802. slh, containerLenS := d.decSliceHelperStart()
  14803. if containerLenS == 0 {
  14804. if canChange {
  14805. if v == nil {
  14806. v = []uint64{}
  14807. } else if len(v) != 0 {
  14808. v = v[:0]
  14809. }
  14810. changed = true
  14811. }
  14812. slh.End()
  14813. return v, changed
  14814. }
  14815. hasLen := containerLenS > 0
  14816. var xlen int
  14817. if hasLen && canChange {
  14818. if containerLenS > cap(v) {
  14819. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  14820. if xlen <= cap(v) {
  14821. v = v[:xlen]
  14822. } else {
  14823. v = make([]uint64, xlen)
  14824. }
  14825. changed = true
  14826. } else if containerLenS != len(v) {
  14827. v = v[:containerLenS]
  14828. changed = true
  14829. }
  14830. }
  14831. j := 0
  14832. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  14833. if j == 0 && len(v) == 0 {
  14834. if hasLen {
  14835. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  14836. } else {
  14837. xlen = 8
  14838. }
  14839. v = make([]uint64, xlen)
  14840. changed = true
  14841. }
  14842. // if indefinite, etc, then expand the slice if necessary
  14843. var decodeIntoBlank bool
  14844. if j >= len(v) {
  14845. if canChange {
  14846. v = append(v, 0)
  14847. changed = true
  14848. } else {
  14849. d.arrayCannotExpand(len(v), j+1)
  14850. decodeIntoBlank = true
  14851. }
  14852. }
  14853. slh.ElemContainerState(j)
  14854. if decodeIntoBlank {
  14855. d.swallow()
  14856. } else {
  14857. v[j] = dd.DecodeUint(64)
  14858. }
  14859. }
  14860. if canChange {
  14861. if j < len(v) {
  14862. v = v[:j]
  14863. changed = true
  14864. } else if j == 0 && v == nil {
  14865. v = make([]uint64, 0)
  14866. changed = true
  14867. }
  14868. }
  14869. slh.End()
  14870. return v, changed
  14871. }
  14872. func (d *Decoder) fastpathDecSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  14873. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  14874. var vp = rv2i(rv).(*[]uintptr)
  14875. if v, changed := fastpathTV.DecSliceUintptrV(*vp, !array, d); changed {
  14876. *vp = v
  14877. }
  14878. } else {
  14879. fastpathTV.DecSliceUintptrV(rv2i(rv).([]uintptr), !array, d)
  14880. }
  14881. }
  14882. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, d *Decoder) {
  14883. if v, changed := f.DecSliceUintptrV(*vp, true, d); changed {
  14884. *vp = v
  14885. }
  14886. }
  14887. func (_ fastpathT) DecSliceUintptrV(v []uintptr, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  14888. dd := d.d
  14889. slh, containerLenS := d.decSliceHelperStart()
  14890. if containerLenS == 0 {
  14891. if canChange {
  14892. if v == nil {
  14893. v = []uintptr{}
  14894. } else if len(v) != 0 {
  14895. v = v[:0]
  14896. }
  14897. changed = true
  14898. }
  14899. slh.End()
  14900. return v, changed
  14901. }
  14902. hasLen := containerLenS > 0
  14903. var xlen int
  14904. if hasLen && canChange {
  14905. if containerLenS > cap(v) {
  14906. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  14907. if xlen <= cap(v) {
  14908. v = v[:xlen]
  14909. } else {
  14910. v = make([]uintptr, xlen)
  14911. }
  14912. changed = true
  14913. } else if containerLenS != len(v) {
  14914. v = v[:containerLenS]
  14915. changed = true
  14916. }
  14917. }
  14918. j := 0
  14919. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  14920. if j == 0 && len(v) == 0 {
  14921. if hasLen {
  14922. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  14923. } else {
  14924. xlen = 8
  14925. }
  14926. v = make([]uintptr, xlen)
  14927. changed = true
  14928. }
  14929. // if indefinite, etc, then expand the slice if necessary
  14930. var decodeIntoBlank bool
  14931. if j >= len(v) {
  14932. if canChange {
  14933. v = append(v, 0)
  14934. changed = true
  14935. } else {
  14936. d.arrayCannotExpand(len(v), j+1)
  14937. decodeIntoBlank = true
  14938. }
  14939. }
  14940. slh.ElemContainerState(j)
  14941. if decodeIntoBlank {
  14942. d.swallow()
  14943. } else {
  14944. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  14945. }
  14946. }
  14947. if canChange {
  14948. if j < len(v) {
  14949. v = v[:j]
  14950. changed = true
  14951. } else if j == 0 && v == nil {
  14952. v = make([]uintptr, 0)
  14953. changed = true
  14954. }
  14955. }
  14956. slh.End()
  14957. return v, changed
  14958. }
  14959. func (d *Decoder) fastpathDecSliceIntR(f *codecFnInfo, rv reflect.Value) {
  14960. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  14961. var vp = rv2i(rv).(*[]int)
  14962. if v, changed := fastpathTV.DecSliceIntV(*vp, !array, d); changed {
  14963. *vp = v
  14964. }
  14965. } else {
  14966. fastpathTV.DecSliceIntV(rv2i(rv).([]int), !array, d)
  14967. }
  14968. }
  14969. func (f fastpathT) DecSliceIntX(vp *[]int, d *Decoder) {
  14970. if v, changed := f.DecSliceIntV(*vp, true, d); changed {
  14971. *vp = v
  14972. }
  14973. }
  14974. func (_ fastpathT) DecSliceIntV(v []int, canChange bool, d *Decoder) (_ []int, changed bool) {
  14975. dd := d.d
  14976. slh, containerLenS := d.decSliceHelperStart()
  14977. if containerLenS == 0 {
  14978. if canChange {
  14979. if v == nil {
  14980. v = []int{}
  14981. } else if len(v) != 0 {
  14982. v = v[:0]
  14983. }
  14984. changed = true
  14985. }
  14986. slh.End()
  14987. return v, changed
  14988. }
  14989. hasLen := containerLenS > 0
  14990. var xlen int
  14991. if hasLen && canChange {
  14992. if containerLenS > cap(v) {
  14993. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  14994. if xlen <= cap(v) {
  14995. v = v[:xlen]
  14996. } else {
  14997. v = make([]int, xlen)
  14998. }
  14999. changed = true
  15000. } else if containerLenS != len(v) {
  15001. v = v[:containerLenS]
  15002. changed = true
  15003. }
  15004. }
  15005. j := 0
  15006. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15007. if j == 0 && len(v) == 0 {
  15008. if hasLen {
  15009. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15010. } else {
  15011. xlen = 8
  15012. }
  15013. v = make([]int, xlen)
  15014. changed = true
  15015. }
  15016. // if indefinite, etc, then expand the slice if necessary
  15017. var decodeIntoBlank bool
  15018. if j >= len(v) {
  15019. if canChange {
  15020. v = append(v, 0)
  15021. changed = true
  15022. } else {
  15023. d.arrayCannotExpand(len(v), j+1)
  15024. decodeIntoBlank = true
  15025. }
  15026. }
  15027. slh.ElemContainerState(j)
  15028. if decodeIntoBlank {
  15029. d.swallow()
  15030. } else {
  15031. v[j] = int(dd.DecodeInt(intBitsize))
  15032. }
  15033. }
  15034. if canChange {
  15035. if j < len(v) {
  15036. v = v[:j]
  15037. changed = true
  15038. } else if j == 0 && v == nil {
  15039. v = make([]int, 0)
  15040. changed = true
  15041. }
  15042. }
  15043. slh.End()
  15044. return v, changed
  15045. }
  15046. func (d *Decoder) fastpathDecSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  15047. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15048. var vp = rv2i(rv).(*[]int8)
  15049. if v, changed := fastpathTV.DecSliceInt8V(*vp, !array, d); changed {
  15050. *vp = v
  15051. }
  15052. } else {
  15053. fastpathTV.DecSliceInt8V(rv2i(rv).([]int8), !array, d)
  15054. }
  15055. }
  15056. func (f fastpathT) DecSliceInt8X(vp *[]int8, d *Decoder) {
  15057. if v, changed := f.DecSliceInt8V(*vp, true, d); changed {
  15058. *vp = v
  15059. }
  15060. }
  15061. func (_ fastpathT) DecSliceInt8V(v []int8, canChange bool, d *Decoder) (_ []int8, changed bool) {
  15062. dd := d.d
  15063. slh, containerLenS := d.decSliceHelperStart()
  15064. if containerLenS == 0 {
  15065. if canChange {
  15066. if v == nil {
  15067. v = []int8{}
  15068. } else if len(v) != 0 {
  15069. v = v[:0]
  15070. }
  15071. changed = true
  15072. }
  15073. slh.End()
  15074. return v, changed
  15075. }
  15076. hasLen := containerLenS > 0
  15077. var xlen int
  15078. if hasLen && canChange {
  15079. if containerLenS > cap(v) {
  15080. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  15081. if xlen <= cap(v) {
  15082. v = v[:xlen]
  15083. } else {
  15084. v = make([]int8, xlen)
  15085. }
  15086. changed = true
  15087. } else if containerLenS != len(v) {
  15088. v = v[:containerLenS]
  15089. changed = true
  15090. }
  15091. }
  15092. j := 0
  15093. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15094. if j == 0 && len(v) == 0 {
  15095. if hasLen {
  15096. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  15097. } else {
  15098. xlen = 8
  15099. }
  15100. v = make([]int8, xlen)
  15101. changed = true
  15102. }
  15103. // if indefinite, etc, then expand the slice if necessary
  15104. var decodeIntoBlank bool
  15105. if j >= len(v) {
  15106. if canChange {
  15107. v = append(v, 0)
  15108. changed = true
  15109. } else {
  15110. d.arrayCannotExpand(len(v), j+1)
  15111. decodeIntoBlank = true
  15112. }
  15113. }
  15114. slh.ElemContainerState(j)
  15115. if decodeIntoBlank {
  15116. d.swallow()
  15117. } else {
  15118. v[j] = int8(dd.DecodeInt(8))
  15119. }
  15120. }
  15121. if canChange {
  15122. if j < len(v) {
  15123. v = v[:j]
  15124. changed = true
  15125. } else if j == 0 && v == nil {
  15126. v = make([]int8, 0)
  15127. changed = true
  15128. }
  15129. }
  15130. slh.End()
  15131. return v, changed
  15132. }
  15133. func (d *Decoder) fastpathDecSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  15134. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15135. var vp = rv2i(rv).(*[]int16)
  15136. if v, changed := fastpathTV.DecSliceInt16V(*vp, !array, d); changed {
  15137. *vp = v
  15138. }
  15139. } else {
  15140. fastpathTV.DecSliceInt16V(rv2i(rv).([]int16), !array, d)
  15141. }
  15142. }
  15143. func (f fastpathT) DecSliceInt16X(vp *[]int16, d *Decoder) {
  15144. if v, changed := f.DecSliceInt16V(*vp, true, d); changed {
  15145. *vp = v
  15146. }
  15147. }
  15148. func (_ fastpathT) DecSliceInt16V(v []int16, canChange bool, d *Decoder) (_ []int16, changed bool) {
  15149. dd := d.d
  15150. slh, containerLenS := d.decSliceHelperStart()
  15151. if containerLenS == 0 {
  15152. if canChange {
  15153. if v == nil {
  15154. v = []int16{}
  15155. } else if len(v) != 0 {
  15156. v = v[:0]
  15157. }
  15158. changed = true
  15159. }
  15160. slh.End()
  15161. return v, changed
  15162. }
  15163. hasLen := containerLenS > 0
  15164. var xlen int
  15165. if hasLen && canChange {
  15166. if containerLenS > cap(v) {
  15167. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  15168. if xlen <= cap(v) {
  15169. v = v[:xlen]
  15170. } else {
  15171. v = make([]int16, xlen)
  15172. }
  15173. changed = true
  15174. } else if containerLenS != len(v) {
  15175. v = v[:containerLenS]
  15176. changed = true
  15177. }
  15178. }
  15179. j := 0
  15180. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15181. if j == 0 && len(v) == 0 {
  15182. if hasLen {
  15183. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  15184. } else {
  15185. xlen = 8
  15186. }
  15187. v = make([]int16, xlen)
  15188. changed = true
  15189. }
  15190. // if indefinite, etc, then expand the slice if necessary
  15191. var decodeIntoBlank bool
  15192. if j >= len(v) {
  15193. if canChange {
  15194. v = append(v, 0)
  15195. changed = true
  15196. } else {
  15197. d.arrayCannotExpand(len(v), j+1)
  15198. decodeIntoBlank = true
  15199. }
  15200. }
  15201. slh.ElemContainerState(j)
  15202. if decodeIntoBlank {
  15203. d.swallow()
  15204. } else {
  15205. v[j] = int16(dd.DecodeInt(16))
  15206. }
  15207. }
  15208. if canChange {
  15209. if j < len(v) {
  15210. v = v[:j]
  15211. changed = true
  15212. } else if j == 0 && v == nil {
  15213. v = make([]int16, 0)
  15214. changed = true
  15215. }
  15216. }
  15217. slh.End()
  15218. return v, changed
  15219. }
  15220. func (d *Decoder) fastpathDecSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  15221. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15222. var vp = rv2i(rv).(*[]int32)
  15223. if v, changed := fastpathTV.DecSliceInt32V(*vp, !array, d); changed {
  15224. *vp = v
  15225. }
  15226. } else {
  15227. fastpathTV.DecSliceInt32V(rv2i(rv).([]int32), !array, d)
  15228. }
  15229. }
  15230. func (f fastpathT) DecSliceInt32X(vp *[]int32, d *Decoder) {
  15231. if v, changed := f.DecSliceInt32V(*vp, true, d); changed {
  15232. *vp = v
  15233. }
  15234. }
  15235. func (_ fastpathT) DecSliceInt32V(v []int32, canChange bool, d *Decoder) (_ []int32, changed bool) {
  15236. dd := d.d
  15237. slh, containerLenS := d.decSliceHelperStart()
  15238. if containerLenS == 0 {
  15239. if canChange {
  15240. if v == nil {
  15241. v = []int32{}
  15242. } else if len(v) != 0 {
  15243. v = v[:0]
  15244. }
  15245. changed = true
  15246. }
  15247. slh.End()
  15248. return v, changed
  15249. }
  15250. hasLen := containerLenS > 0
  15251. var xlen int
  15252. if hasLen && canChange {
  15253. if containerLenS > cap(v) {
  15254. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  15255. if xlen <= cap(v) {
  15256. v = v[:xlen]
  15257. } else {
  15258. v = make([]int32, xlen)
  15259. }
  15260. changed = true
  15261. } else if containerLenS != len(v) {
  15262. v = v[:containerLenS]
  15263. changed = true
  15264. }
  15265. }
  15266. j := 0
  15267. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15268. if j == 0 && len(v) == 0 {
  15269. if hasLen {
  15270. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  15271. } else {
  15272. xlen = 8
  15273. }
  15274. v = make([]int32, xlen)
  15275. changed = true
  15276. }
  15277. // if indefinite, etc, then expand the slice if necessary
  15278. var decodeIntoBlank bool
  15279. if j >= len(v) {
  15280. if canChange {
  15281. v = append(v, 0)
  15282. changed = true
  15283. } else {
  15284. d.arrayCannotExpand(len(v), j+1)
  15285. decodeIntoBlank = true
  15286. }
  15287. }
  15288. slh.ElemContainerState(j)
  15289. if decodeIntoBlank {
  15290. d.swallow()
  15291. } else {
  15292. v[j] = int32(dd.DecodeInt(32))
  15293. }
  15294. }
  15295. if canChange {
  15296. if j < len(v) {
  15297. v = v[:j]
  15298. changed = true
  15299. } else if j == 0 && v == nil {
  15300. v = make([]int32, 0)
  15301. changed = true
  15302. }
  15303. }
  15304. slh.End()
  15305. return v, changed
  15306. }
  15307. func (d *Decoder) fastpathDecSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  15308. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15309. var vp = rv2i(rv).(*[]int64)
  15310. if v, changed := fastpathTV.DecSliceInt64V(*vp, !array, d); changed {
  15311. *vp = v
  15312. }
  15313. } else {
  15314. fastpathTV.DecSliceInt64V(rv2i(rv).([]int64), !array, d)
  15315. }
  15316. }
  15317. func (f fastpathT) DecSliceInt64X(vp *[]int64, d *Decoder) {
  15318. if v, changed := f.DecSliceInt64V(*vp, true, d); changed {
  15319. *vp = v
  15320. }
  15321. }
  15322. func (_ fastpathT) DecSliceInt64V(v []int64, canChange bool, d *Decoder) (_ []int64, changed bool) {
  15323. dd := d.d
  15324. slh, containerLenS := d.decSliceHelperStart()
  15325. if containerLenS == 0 {
  15326. if canChange {
  15327. if v == nil {
  15328. v = []int64{}
  15329. } else if len(v) != 0 {
  15330. v = v[:0]
  15331. }
  15332. changed = true
  15333. }
  15334. slh.End()
  15335. return v, changed
  15336. }
  15337. hasLen := containerLenS > 0
  15338. var xlen int
  15339. if hasLen && canChange {
  15340. if containerLenS > cap(v) {
  15341. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15342. if xlen <= cap(v) {
  15343. v = v[:xlen]
  15344. } else {
  15345. v = make([]int64, xlen)
  15346. }
  15347. changed = true
  15348. } else if containerLenS != len(v) {
  15349. v = v[:containerLenS]
  15350. changed = true
  15351. }
  15352. }
  15353. j := 0
  15354. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15355. if j == 0 && len(v) == 0 {
  15356. if hasLen {
  15357. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  15358. } else {
  15359. xlen = 8
  15360. }
  15361. v = make([]int64, xlen)
  15362. changed = true
  15363. }
  15364. // if indefinite, etc, then expand the slice if necessary
  15365. var decodeIntoBlank bool
  15366. if j >= len(v) {
  15367. if canChange {
  15368. v = append(v, 0)
  15369. changed = true
  15370. } else {
  15371. d.arrayCannotExpand(len(v), j+1)
  15372. decodeIntoBlank = true
  15373. }
  15374. }
  15375. slh.ElemContainerState(j)
  15376. if decodeIntoBlank {
  15377. d.swallow()
  15378. } else {
  15379. v[j] = dd.DecodeInt(64)
  15380. }
  15381. }
  15382. if canChange {
  15383. if j < len(v) {
  15384. v = v[:j]
  15385. changed = true
  15386. } else if j == 0 && v == nil {
  15387. v = make([]int64, 0)
  15388. changed = true
  15389. }
  15390. }
  15391. slh.End()
  15392. return v, changed
  15393. }
  15394. func (d *Decoder) fastpathDecSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  15395. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15396. var vp = rv2i(rv).(*[]bool)
  15397. if v, changed := fastpathTV.DecSliceBoolV(*vp, !array, d); changed {
  15398. *vp = v
  15399. }
  15400. } else {
  15401. fastpathTV.DecSliceBoolV(rv2i(rv).([]bool), !array, d)
  15402. }
  15403. }
  15404. func (f fastpathT) DecSliceBoolX(vp *[]bool, d *Decoder) {
  15405. if v, changed := f.DecSliceBoolV(*vp, true, d); changed {
  15406. *vp = v
  15407. }
  15408. }
  15409. func (_ fastpathT) DecSliceBoolV(v []bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  15410. dd := d.d
  15411. slh, containerLenS := d.decSliceHelperStart()
  15412. if containerLenS == 0 {
  15413. if canChange {
  15414. if v == nil {
  15415. v = []bool{}
  15416. } else if len(v) != 0 {
  15417. v = v[:0]
  15418. }
  15419. changed = true
  15420. }
  15421. slh.End()
  15422. return v, changed
  15423. }
  15424. hasLen := containerLenS > 0
  15425. var xlen int
  15426. if hasLen && canChange {
  15427. if containerLenS > cap(v) {
  15428. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  15429. if xlen <= cap(v) {
  15430. v = v[:xlen]
  15431. } else {
  15432. v = make([]bool, xlen)
  15433. }
  15434. changed = true
  15435. } else if containerLenS != len(v) {
  15436. v = v[:containerLenS]
  15437. changed = true
  15438. }
  15439. }
  15440. j := 0
  15441. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15442. if j == 0 && len(v) == 0 {
  15443. if hasLen {
  15444. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  15445. } else {
  15446. xlen = 8
  15447. }
  15448. v = make([]bool, xlen)
  15449. changed = true
  15450. }
  15451. // if indefinite, etc, then expand the slice if necessary
  15452. var decodeIntoBlank bool
  15453. if j >= len(v) {
  15454. if canChange {
  15455. v = append(v, false)
  15456. changed = true
  15457. } else {
  15458. d.arrayCannotExpand(len(v), j+1)
  15459. decodeIntoBlank = true
  15460. }
  15461. }
  15462. slh.ElemContainerState(j)
  15463. if decodeIntoBlank {
  15464. d.swallow()
  15465. } else {
  15466. v[j] = dd.DecodeBool()
  15467. }
  15468. }
  15469. if canChange {
  15470. if j < len(v) {
  15471. v = v[:j]
  15472. changed = true
  15473. } else if j == 0 && v == nil {
  15474. v = make([]bool, 0)
  15475. changed = true
  15476. }
  15477. }
  15478. slh.End()
  15479. return v, changed
  15480. }
  15481. func (d *Decoder) fastpathDecMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  15482. if rv.Kind() == reflect.Ptr {
  15483. vp := rv2i(rv).(*map[interface{}]interface{})
  15484. if v, changed := fastpathTV.DecMapIntfIntfV(*vp, true, d); changed {
  15485. *vp = v
  15486. }
  15487. return
  15488. }
  15489. fastpathTV.DecMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), false, d)
  15490. }
  15491. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, d *Decoder) {
  15492. if v, changed := f.DecMapIntfIntfV(*vp, true, d); changed {
  15493. *vp = v
  15494. }
  15495. }
  15496. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, canChange bool,
  15497. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  15498. dd, esep := d.d, d.hh.hasElemSeparators()
  15499. containerLen := dd.ReadMapStart()
  15500. if canChange && v == nil {
  15501. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  15502. v = make(map[interface{}]interface{}, xlen)
  15503. changed = true
  15504. }
  15505. if containerLen == 0 {
  15506. dd.ReadMapEnd()
  15507. return v, changed
  15508. }
  15509. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  15510. var mk interface{}
  15511. var mv interface{}
  15512. hasLen := containerLen > 0
  15513. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  15514. if esep {
  15515. dd.ReadMapElemKey()
  15516. }
  15517. mk = nil
  15518. d.decode(&mk)
  15519. if bv, bok := mk.([]byte); bok {
  15520. mk = d.string(bv)
  15521. }
  15522. if esep {
  15523. dd.ReadMapElemValue()
  15524. }
  15525. if dd.TryDecodeAsNil() {
  15526. if d.h.DeleteOnNilMapValue {
  15527. delete(v, mk)
  15528. } else {
  15529. v[mk] = nil
  15530. }
  15531. continue
  15532. }
  15533. if mapGet {
  15534. mv = v[mk]
  15535. } else {
  15536. mv = nil
  15537. }
  15538. d.decode(&mv)
  15539. if v != nil {
  15540. v[mk] = mv
  15541. }
  15542. }
  15543. dd.ReadMapEnd()
  15544. return v, changed
  15545. }
  15546. func (d *Decoder) fastpathDecMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  15547. if rv.Kind() == reflect.Ptr {
  15548. vp := rv2i(rv).(*map[interface{}]string)
  15549. if v, changed := fastpathTV.DecMapIntfStringV(*vp, true, d); changed {
  15550. *vp = v
  15551. }
  15552. return
  15553. }
  15554. fastpathTV.DecMapIntfStringV(rv2i(rv).(map[interface{}]string), false, d)
  15555. }
  15556. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, d *Decoder) {
  15557. if v, changed := f.DecMapIntfStringV(*vp, true, d); changed {
  15558. *vp = v
  15559. }
  15560. }
  15561. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, canChange bool,
  15562. d *Decoder) (_ map[interface{}]string, changed bool) {
  15563. dd, esep := d.d, d.hh.hasElemSeparators()
  15564. containerLen := dd.ReadMapStart()
  15565. if canChange && v == nil {
  15566. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  15567. v = make(map[interface{}]string, xlen)
  15568. changed = true
  15569. }
  15570. if containerLen == 0 {
  15571. dd.ReadMapEnd()
  15572. return v, changed
  15573. }
  15574. var mk interface{}
  15575. var mv string
  15576. hasLen := containerLen > 0
  15577. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  15578. if esep {
  15579. dd.ReadMapElemKey()
  15580. }
  15581. mk = nil
  15582. d.decode(&mk)
  15583. if bv, bok := mk.([]byte); bok {
  15584. mk = d.string(bv)
  15585. }
  15586. if esep {
  15587. dd.ReadMapElemValue()
  15588. }
  15589. if dd.TryDecodeAsNil() {
  15590. if d.h.DeleteOnNilMapValue {
  15591. delete(v, mk)
  15592. } else {
  15593. v[mk] = ""
  15594. }
  15595. continue
  15596. }
  15597. mv = dd.DecodeString()
  15598. if v != nil {
  15599. v[mk] = mv
  15600. }
  15601. }
  15602. dd.ReadMapEnd()
  15603. return v, changed
  15604. }
  15605. func (d *Decoder) fastpathDecMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  15606. if rv.Kind() == reflect.Ptr {
  15607. vp := rv2i(rv).(*map[interface{}]uint)
  15608. if v, changed := fastpathTV.DecMapIntfUintV(*vp, true, d); changed {
  15609. *vp = v
  15610. }
  15611. return
  15612. }
  15613. fastpathTV.DecMapIntfUintV(rv2i(rv).(map[interface{}]uint), false, d)
  15614. }
  15615. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, d *Decoder) {
  15616. if v, changed := f.DecMapIntfUintV(*vp, true, d); changed {
  15617. *vp = v
  15618. }
  15619. }
  15620. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, canChange bool,
  15621. d *Decoder) (_ map[interface{}]uint, changed bool) {
  15622. dd, esep := d.d, d.hh.hasElemSeparators()
  15623. containerLen := dd.ReadMapStart()
  15624. if canChange && v == nil {
  15625. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  15626. v = make(map[interface{}]uint, xlen)
  15627. changed = true
  15628. }
  15629. if containerLen == 0 {
  15630. dd.ReadMapEnd()
  15631. return v, changed
  15632. }
  15633. var mk interface{}
  15634. var mv uint
  15635. hasLen := containerLen > 0
  15636. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  15637. if esep {
  15638. dd.ReadMapElemKey()
  15639. }
  15640. mk = nil
  15641. d.decode(&mk)
  15642. if bv, bok := mk.([]byte); bok {
  15643. mk = d.string(bv)
  15644. }
  15645. if esep {
  15646. dd.ReadMapElemValue()
  15647. }
  15648. if dd.TryDecodeAsNil() {
  15649. if d.h.DeleteOnNilMapValue {
  15650. delete(v, mk)
  15651. } else {
  15652. v[mk] = 0
  15653. }
  15654. continue
  15655. }
  15656. mv = uint(dd.DecodeUint(uintBitsize))
  15657. if v != nil {
  15658. v[mk] = mv
  15659. }
  15660. }
  15661. dd.ReadMapEnd()
  15662. return v, changed
  15663. }
  15664. func (d *Decoder) fastpathDecMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  15665. if rv.Kind() == reflect.Ptr {
  15666. vp := rv2i(rv).(*map[interface{}]uint8)
  15667. if v, changed := fastpathTV.DecMapIntfUint8V(*vp, true, d); changed {
  15668. *vp = v
  15669. }
  15670. return
  15671. }
  15672. fastpathTV.DecMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), false, d)
  15673. }
  15674. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, d *Decoder) {
  15675. if v, changed := f.DecMapIntfUint8V(*vp, true, d); changed {
  15676. *vp = v
  15677. }
  15678. }
  15679. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, canChange bool,
  15680. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  15681. dd, esep := d.d, d.hh.hasElemSeparators()
  15682. containerLen := dd.ReadMapStart()
  15683. if canChange && v == nil {
  15684. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  15685. v = make(map[interface{}]uint8, xlen)
  15686. changed = true
  15687. }
  15688. if containerLen == 0 {
  15689. dd.ReadMapEnd()
  15690. return v, changed
  15691. }
  15692. var mk interface{}
  15693. var mv uint8
  15694. hasLen := containerLen > 0
  15695. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  15696. if esep {
  15697. dd.ReadMapElemKey()
  15698. }
  15699. mk = nil
  15700. d.decode(&mk)
  15701. if bv, bok := mk.([]byte); bok {
  15702. mk = d.string(bv)
  15703. }
  15704. if esep {
  15705. dd.ReadMapElemValue()
  15706. }
  15707. if dd.TryDecodeAsNil() {
  15708. if d.h.DeleteOnNilMapValue {
  15709. delete(v, mk)
  15710. } else {
  15711. v[mk] = 0
  15712. }
  15713. continue
  15714. }
  15715. mv = uint8(dd.DecodeUint(8))
  15716. if v != nil {
  15717. v[mk] = mv
  15718. }
  15719. }
  15720. dd.ReadMapEnd()
  15721. return v, changed
  15722. }
  15723. func (d *Decoder) fastpathDecMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  15724. if rv.Kind() == reflect.Ptr {
  15725. vp := rv2i(rv).(*map[interface{}]uint16)
  15726. if v, changed := fastpathTV.DecMapIntfUint16V(*vp, true, d); changed {
  15727. *vp = v
  15728. }
  15729. return
  15730. }
  15731. fastpathTV.DecMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), false, d)
  15732. }
  15733. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, d *Decoder) {
  15734. if v, changed := f.DecMapIntfUint16V(*vp, true, d); changed {
  15735. *vp = v
  15736. }
  15737. }
  15738. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, canChange bool,
  15739. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  15740. dd, esep := d.d, d.hh.hasElemSeparators()
  15741. containerLen := dd.ReadMapStart()
  15742. if canChange && v == nil {
  15743. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  15744. v = make(map[interface{}]uint16, xlen)
  15745. changed = true
  15746. }
  15747. if containerLen == 0 {
  15748. dd.ReadMapEnd()
  15749. return v, changed
  15750. }
  15751. var mk interface{}
  15752. var mv uint16
  15753. hasLen := containerLen > 0
  15754. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  15755. if esep {
  15756. dd.ReadMapElemKey()
  15757. }
  15758. mk = nil
  15759. d.decode(&mk)
  15760. if bv, bok := mk.([]byte); bok {
  15761. mk = d.string(bv)
  15762. }
  15763. if esep {
  15764. dd.ReadMapElemValue()
  15765. }
  15766. if dd.TryDecodeAsNil() {
  15767. if d.h.DeleteOnNilMapValue {
  15768. delete(v, mk)
  15769. } else {
  15770. v[mk] = 0
  15771. }
  15772. continue
  15773. }
  15774. mv = uint16(dd.DecodeUint(16))
  15775. if v != nil {
  15776. v[mk] = mv
  15777. }
  15778. }
  15779. dd.ReadMapEnd()
  15780. return v, changed
  15781. }
  15782. func (d *Decoder) fastpathDecMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  15783. if rv.Kind() == reflect.Ptr {
  15784. vp := rv2i(rv).(*map[interface{}]uint32)
  15785. if v, changed := fastpathTV.DecMapIntfUint32V(*vp, true, d); changed {
  15786. *vp = v
  15787. }
  15788. return
  15789. }
  15790. fastpathTV.DecMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), false, d)
  15791. }
  15792. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, d *Decoder) {
  15793. if v, changed := f.DecMapIntfUint32V(*vp, true, d); changed {
  15794. *vp = v
  15795. }
  15796. }
  15797. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, canChange bool,
  15798. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  15799. dd, esep := d.d, d.hh.hasElemSeparators()
  15800. containerLen := dd.ReadMapStart()
  15801. if canChange && v == nil {
  15802. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  15803. v = make(map[interface{}]uint32, xlen)
  15804. changed = true
  15805. }
  15806. if containerLen == 0 {
  15807. dd.ReadMapEnd()
  15808. return v, changed
  15809. }
  15810. var mk interface{}
  15811. var mv uint32
  15812. hasLen := containerLen > 0
  15813. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  15814. if esep {
  15815. dd.ReadMapElemKey()
  15816. }
  15817. mk = nil
  15818. d.decode(&mk)
  15819. if bv, bok := mk.([]byte); bok {
  15820. mk = d.string(bv)
  15821. }
  15822. if esep {
  15823. dd.ReadMapElemValue()
  15824. }
  15825. if dd.TryDecodeAsNil() {
  15826. if d.h.DeleteOnNilMapValue {
  15827. delete(v, mk)
  15828. } else {
  15829. v[mk] = 0
  15830. }
  15831. continue
  15832. }
  15833. mv = uint32(dd.DecodeUint(32))
  15834. if v != nil {
  15835. v[mk] = mv
  15836. }
  15837. }
  15838. dd.ReadMapEnd()
  15839. return v, changed
  15840. }
  15841. func (d *Decoder) fastpathDecMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  15842. if rv.Kind() == reflect.Ptr {
  15843. vp := rv2i(rv).(*map[interface{}]uint64)
  15844. if v, changed := fastpathTV.DecMapIntfUint64V(*vp, true, d); changed {
  15845. *vp = v
  15846. }
  15847. return
  15848. }
  15849. fastpathTV.DecMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), false, d)
  15850. }
  15851. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, d *Decoder) {
  15852. if v, changed := f.DecMapIntfUint64V(*vp, true, d); changed {
  15853. *vp = v
  15854. }
  15855. }
  15856. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, canChange bool,
  15857. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  15858. dd, esep := d.d, d.hh.hasElemSeparators()
  15859. containerLen := dd.ReadMapStart()
  15860. if canChange && v == nil {
  15861. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  15862. v = make(map[interface{}]uint64, xlen)
  15863. changed = true
  15864. }
  15865. if containerLen == 0 {
  15866. dd.ReadMapEnd()
  15867. return v, changed
  15868. }
  15869. var mk interface{}
  15870. var mv uint64
  15871. hasLen := containerLen > 0
  15872. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  15873. if esep {
  15874. dd.ReadMapElemKey()
  15875. }
  15876. mk = nil
  15877. d.decode(&mk)
  15878. if bv, bok := mk.([]byte); bok {
  15879. mk = d.string(bv)
  15880. }
  15881. if esep {
  15882. dd.ReadMapElemValue()
  15883. }
  15884. if dd.TryDecodeAsNil() {
  15885. if d.h.DeleteOnNilMapValue {
  15886. delete(v, mk)
  15887. } else {
  15888. v[mk] = 0
  15889. }
  15890. continue
  15891. }
  15892. mv = dd.DecodeUint(64)
  15893. if v != nil {
  15894. v[mk] = mv
  15895. }
  15896. }
  15897. dd.ReadMapEnd()
  15898. return v, changed
  15899. }
  15900. func (d *Decoder) fastpathDecMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  15901. if rv.Kind() == reflect.Ptr {
  15902. vp := rv2i(rv).(*map[interface{}]uintptr)
  15903. if v, changed := fastpathTV.DecMapIntfUintptrV(*vp, true, d); changed {
  15904. *vp = v
  15905. }
  15906. return
  15907. }
  15908. fastpathTV.DecMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), false, d)
  15909. }
  15910. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, d *Decoder) {
  15911. if v, changed := f.DecMapIntfUintptrV(*vp, true, d); changed {
  15912. *vp = v
  15913. }
  15914. }
  15915. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, canChange bool,
  15916. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  15917. dd, esep := d.d, d.hh.hasElemSeparators()
  15918. containerLen := dd.ReadMapStart()
  15919. if canChange && v == nil {
  15920. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  15921. v = make(map[interface{}]uintptr, xlen)
  15922. changed = true
  15923. }
  15924. if containerLen == 0 {
  15925. dd.ReadMapEnd()
  15926. return v, changed
  15927. }
  15928. var mk interface{}
  15929. var mv uintptr
  15930. hasLen := containerLen > 0
  15931. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  15932. if esep {
  15933. dd.ReadMapElemKey()
  15934. }
  15935. mk = nil
  15936. d.decode(&mk)
  15937. if bv, bok := mk.([]byte); bok {
  15938. mk = d.string(bv)
  15939. }
  15940. if esep {
  15941. dd.ReadMapElemValue()
  15942. }
  15943. if dd.TryDecodeAsNil() {
  15944. if d.h.DeleteOnNilMapValue {
  15945. delete(v, mk)
  15946. } else {
  15947. v[mk] = 0
  15948. }
  15949. continue
  15950. }
  15951. mv = uintptr(dd.DecodeUint(uintBitsize))
  15952. if v != nil {
  15953. v[mk] = mv
  15954. }
  15955. }
  15956. dd.ReadMapEnd()
  15957. return v, changed
  15958. }
  15959. func (d *Decoder) fastpathDecMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  15960. if rv.Kind() == reflect.Ptr {
  15961. vp := rv2i(rv).(*map[interface{}]int)
  15962. if v, changed := fastpathTV.DecMapIntfIntV(*vp, true, d); changed {
  15963. *vp = v
  15964. }
  15965. return
  15966. }
  15967. fastpathTV.DecMapIntfIntV(rv2i(rv).(map[interface{}]int), false, d)
  15968. }
  15969. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, d *Decoder) {
  15970. if v, changed := f.DecMapIntfIntV(*vp, true, d); changed {
  15971. *vp = v
  15972. }
  15973. }
  15974. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, canChange bool,
  15975. d *Decoder) (_ map[interface{}]int, changed bool) {
  15976. dd, esep := d.d, d.hh.hasElemSeparators()
  15977. containerLen := dd.ReadMapStart()
  15978. if canChange && v == nil {
  15979. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  15980. v = make(map[interface{}]int, xlen)
  15981. changed = true
  15982. }
  15983. if containerLen == 0 {
  15984. dd.ReadMapEnd()
  15985. return v, changed
  15986. }
  15987. var mk interface{}
  15988. var mv int
  15989. hasLen := containerLen > 0
  15990. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  15991. if esep {
  15992. dd.ReadMapElemKey()
  15993. }
  15994. mk = nil
  15995. d.decode(&mk)
  15996. if bv, bok := mk.([]byte); bok {
  15997. mk = d.string(bv)
  15998. }
  15999. if esep {
  16000. dd.ReadMapElemValue()
  16001. }
  16002. if dd.TryDecodeAsNil() {
  16003. if d.h.DeleteOnNilMapValue {
  16004. delete(v, mk)
  16005. } else {
  16006. v[mk] = 0
  16007. }
  16008. continue
  16009. }
  16010. mv = int(dd.DecodeInt(intBitsize))
  16011. if v != nil {
  16012. v[mk] = mv
  16013. }
  16014. }
  16015. dd.ReadMapEnd()
  16016. return v, changed
  16017. }
  16018. func (d *Decoder) fastpathDecMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  16019. if rv.Kind() == reflect.Ptr {
  16020. vp := rv2i(rv).(*map[interface{}]int8)
  16021. if v, changed := fastpathTV.DecMapIntfInt8V(*vp, true, d); changed {
  16022. *vp = v
  16023. }
  16024. return
  16025. }
  16026. fastpathTV.DecMapIntfInt8V(rv2i(rv).(map[interface{}]int8), false, d)
  16027. }
  16028. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, d *Decoder) {
  16029. if v, changed := f.DecMapIntfInt8V(*vp, true, d); changed {
  16030. *vp = v
  16031. }
  16032. }
  16033. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, canChange bool,
  16034. d *Decoder) (_ map[interface{}]int8, changed bool) {
  16035. dd, esep := d.d, d.hh.hasElemSeparators()
  16036. containerLen := dd.ReadMapStart()
  16037. if canChange && v == nil {
  16038. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  16039. v = make(map[interface{}]int8, xlen)
  16040. changed = true
  16041. }
  16042. if containerLen == 0 {
  16043. dd.ReadMapEnd()
  16044. return v, changed
  16045. }
  16046. var mk interface{}
  16047. var mv int8
  16048. hasLen := containerLen > 0
  16049. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16050. if esep {
  16051. dd.ReadMapElemKey()
  16052. }
  16053. mk = nil
  16054. d.decode(&mk)
  16055. if bv, bok := mk.([]byte); bok {
  16056. mk = d.string(bv)
  16057. }
  16058. if esep {
  16059. dd.ReadMapElemValue()
  16060. }
  16061. if dd.TryDecodeAsNil() {
  16062. if d.h.DeleteOnNilMapValue {
  16063. delete(v, mk)
  16064. } else {
  16065. v[mk] = 0
  16066. }
  16067. continue
  16068. }
  16069. mv = int8(dd.DecodeInt(8))
  16070. if v != nil {
  16071. v[mk] = mv
  16072. }
  16073. }
  16074. dd.ReadMapEnd()
  16075. return v, changed
  16076. }
  16077. func (d *Decoder) fastpathDecMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  16078. if rv.Kind() == reflect.Ptr {
  16079. vp := rv2i(rv).(*map[interface{}]int16)
  16080. if v, changed := fastpathTV.DecMapIntfInt16V(*vp, true, d); changed {
  16081. *vp = v
  16082. }
  16083. return
  16084. }
  16085. fastpathTV.DecMapIntfInt16V(rv2i(rv).(map[interface{}]int16), false, d)
  16086. }
  16087. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, d *Decoder) {
  16088. if v, changed := f.DecMapIntfInt16V(*vp, true, d); changed {
  16089. *vp = v
  16090. }
  16091. }
  16092. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, canChange bool,
  16093. d *Decoder) (_ map[interface{}]int16, changed bool) {
  16094. dd, esep := d.d, d.hh.hasElemSeparators()
  16095. containerLen := dd.ReadMapStart()
  16096. if canChange && v == nil {
  16097. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  16098. v = make(map[interface{}]int16, xlen)
  16099. changed = true
  16100. }
  16101. if containerLen == 0 {
  16102. dd.ReadMapEnd()
  16103. return v, changed
  16104. }
  16105. var mk interface{}
  16106. var mv int16
  16107. hasLen := containerLen > 0
  16108. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16109. if esep {
  16110. dd.ReadMapElemKey()
  16111. }
  16112. mk = nil
  16113. d.decode(&mk)
  16114. if bv, bok := mk.([]byte); bok {
  16115. mk = d.string(bv)
  16116. }
  16117. if esep {
  16118. dd.ReadMapElemValue()
  16119. }
  16120. if dd.TryDecodeAsNil() {
  16121. if d.h.DeleteOnNilMapValue {
  16122. delete(v, mk)
  16123. } else {
  16124. v[mk] = 0
  16125. }
  16126. continue
  16127. }
  16128. mv = int16(dd.DecodeInt(16))
  16129. if v != nil {
  16130. v[mk] = mv
  16131. }
  16132. }
  16133. dd.ReadMapEnd()
  16134. return v, changed
  16135. }
  16136. func (d *Decoder) fastpathDecMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  16137. if rv.Kind() == reflect.Ptr {
  16138. vp := rv2i(rv).(*map[interface{}]int32)
  16139. if v, changed := fastpathTV.DecMapIntfInt32V(*vp, true, d); changed {
  16140. *vp = v
  16141. }
  16142. return
  16143. }
  16144. fastpathTV.DecMapIntfInt32V(rv2i(rv).(map[interface{}]int32), false, d)
  16145. }
  16146. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, d *Decoder) {
  16147. if v, changed := f.DecMapIntfInt32V(*vp, true, d); changed {
  16148. *vp = v
  16149. }
  16150. }
  16151. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, canChange bool,
  16152. d *Decoder) (_ map[interface{}]int32, changed bool) {
  16153. dd, esep := d.d, d.hh.hasElemSeparators()
  16154. containerLen := dd.ReadMapStart()
  16155. if canChange && v == nil {
  16156. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  16157. v = make(map[interface{}]int32, xlen)
  16158. changed = true
  16159. }
  16160. if containerLen == 0 {
  16161. dd.ReadMapEnd()
  16162. return v, changed
  16163. }
  16164. var mk interface{}
  16165. var mv int32
  16166. hasLen := containerLen > 0
  16167. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16168. if esep {
  16169. dd.ReadMapElemKey()
  16170. }
  16171. mk = nil
  16172. d.decode(&mk)
  16173. if bv, bok := mk.([]byte); bok {
  16174. mk = d.string(bv)
  16175. }
  16176. if esep {
  16177. dd.ReadMapElemValue()
  16178. }
  16179. if dd.TryDecodeAsNil() {
  16180. if d.h.DeleteOnNilMapValue {
  16181. delete(v, mk)
  16182. } else {
  16183. v[mk] = 0
  16184. }
  16185. continue
  16186. }
  16187. mv = int32(dd.DecodeInt(32))
  16188. if v != nil {
  16189. v[mk] = mv
  16190. }
  16191. }
  16192. dd.ReadMapEnd()
  16193. return v, changed
  16194. }
  16195. func (d *Decoder) fastpathDecMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  16196. if rv.Kind() == reflect.Ptr {
  16197. vp := rv2i(rv).(*map[interface{}]int64)
  16198. if v, changed := fastpathTV.DecMapIntfInt64V(*vp, true, d); changed {
  16199. *vp = v
  16200. }
  16201. return
  16202. }
  16203. fastpathTV.DecMapIntfInt64V(rv2i(rv).(map[interface{}]int64), false, d)
  16204. }
  16205. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, d *Decoder) {
  16206. if v, changed := f.DecMapIntfInt64V(*vp, true, d); changed {
  16207. *vp = v
  16208. }
  16209. }
  16210. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, canChange bool,
  16211. d *Decoder) (_ map[interface{}]int64, changed bool) {
  16212. dd, esep := d.d, d.hh.hasElemSeparators()
  16213. containerLen := dd.ReadMapStart()
  16214. if canChange && v == nil {
  16215. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  16216. v = make(map[interface{}]int64, xlen)
  16217. changed = true
  16218. }
  16219. if containerLen == 0 {
  16220. dd.ReadMapEnd()
  16221. return v, changed
  16222. }
  16223. var mk interface{}
  16224. var mv int64
  16225. hasLen := containerLen > 0
  16226. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16227. if esep {
  16228. dd.ReadMapElemKey()
  16229. }
  16230. mk = nil
  16231. d.decode(&mk)
  16232. if bv, bok := mk.([]byte); bok {
  16233. mk = d.string(bv)
  16234. }
  16235. if esep {
  16236. dd.ReadMapElemValue()
  16237. }
  16238. if dd.TryDecodeAsNil() {
  16239. if d.h.DeleteOnNilMapValue {
  16240. delete(v, mk)
  16241. } else {
  16242. v[mk] = 0
  16243. }
  16244. continue
  16245. }
  16246. mv = dd.DecodeInt(64)
  16247. if v != nil {
  16248. v[mk] = mv
  16249. }
  16250. }
  16251. dd.ReadMapEnd()
  16252. return v, changed
  16253. }
  16254. func (d *Decoder) fastpathDecMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  16255. if rv.Kind() == reflect.Ptr {
  16256. vp := rv2i(rv).(*map[interface{}]float32)
  16257. if v, changed := fastpathTV.DecMapIntfFloat32V(*vp, true, d); changed {
  16258. *vp = v
  16259. }
  16260. return
  16261. }
  16262. fastpathTV.DecMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), false, d)
  16263. }
  16264. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, d *Decoder) {
  16265. if v, changed := f.DecMapIntfFloat32V(*vp, true, d); changed {
  16266. *vp = v
  16267. }
  16268. }
  16269. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, canChange bool,
  16270. d *Decoder) (_ map[interface{}]float32, changed bool) {
  16271. dd, esep := d.d, d.hh.hasElemSeparators()
  16272. containerLen := dd.ReadMapStart()
  16273. if canChange && v == nil {
  16274. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  16275. v = make(map[interface{}]float32, xlen)
  16276. changed = true
  16277. }
  16278. if containerLen == 0 {
  16279. dd.ReadMapEnd()
  16280. return v, changed
  16281. }
  16282. var mk interface{}
  16283. var mv float32
  16284. hasLen := containerLen > 0
  16285. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16286. if esep {
  16287. dd.ReadMapElemKey()
  16288. }
  16289. mk = nil
  16290. d.decode(&mk)
  16291. if bv, bok := mk.([]byte); bok {
  16292. mk = d.string(bv)
  16293. }
  16294. if esep {
  16295. dd.ReadMapElemValue()
  16296. }
  16297. if dd.TryDecodeAsNil() {
  16298. if d.h.DeleteOnNilMapValue {
  16299. delete(v, mk)
  16300. } else {
  16301. v[mk] = 0
  16302. }
  16303. continue
  16304. }
  16305. mv = float32(dd.DecodeFloat(true))
  16306. if v != nil {
  16307. v[mk] = mv
  16308. }
  16309. }
  16310. dd.ReadMapEnd()
  16311. return v, changed
  16312. }
  16313. func (d *Decoder) fastpathDecMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  16314. if rv.Kind() == reflect.Ptr {
  16315. vp := rv2i(rv).(*map[interface{}]float64)
  16316. if v, changed := fastpathTV.DecMapIntfFloat64V(*vp, true, d); changed {
  16317. *vp = v
  16318. }
  16319. return
  16320. }
  16321. fastpathTV.DecMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), false, d)
  16322. }
  16323. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, d *Decoder) {
  16324. if v, changed := f.DecMapIntfFloat64V(*vp, true, d); changed {
  16325. *vp = v
  16326. }
  16327. }
  16328. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, canChange bool,
  16329. d *Decoder) (_ map[interface{}]float64, changed bool) {
  16330. dd, esep := d.d, d.hh.hasElemSeparators()
  16331. containerLen := dd.ReadMapStart()
  16332. if canChange && v == nil {
  16333. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  16334. v = make(map[interface{}]float64, xlen)
  16335. changed = true
  16336. }
  16337. if containerLen == 0 {
  16338. dd.ReadMapEnd()
  16339. return v, changed
  16340. }
  16341. var mk interface{}
  16342. var mv float64
  16343. hasLen := containerLen > 0
  16344. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16345. if esep {
  16346. dd.ReadMapElemKey()
  16347. }
  16348. mk = nil
  16349. d.decode(&mk)
  16350. if bv, bok := mk.([]byte); bok {
  16351. mk = d.string(bv)
  16352. }
  16353. if esep {
  16354. dd.ReadMapElemValue()
  16355. }
  16356. if dd.TryDecodeAsNil() {
  16357. if d.h.DeleteOnNilMapValue {
  16358. delete(v, mk)
  16359. } else {
  16360. v[mk] = 0
  16361. }
  16362. continue
  16363. }
  16364. mv = dd.DecodeFloat(false)
  16365. if v != nil {
  16366. v[mk] = mv
  16367. }
  16368. }
  16369. dd.ReadMapEnd()
  16370. return v, changed
  16371. }
  16372. func (d *Decoder) fastpathDecMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  16373. if rv.Kind() == reflect.Ptr {
  16374. vp := rv2i(rv).(*map[interface{}]bool)
  16375. if v, changed := fastpathTV.DecMapIntfBoolV(*vp, true, d); changed {
  16376. *vp = v
  16377. }
  16378. return
  16379. }
  16380. fastpathTV.DecMapIntfBoolV(rv2i(rv).(map[interface{}]bool), false, d)
  16381. }
  16382. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, d *Decoder) {
  16383. if v, changed := f.DecMapIntfBoolV(*vp, true, d); changed {
  16384. *vp = v
  16385. }
  16386. }
  16387. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, canChange bool,
  16388. d *Decoder) (_ map[interface{}]bool, changed bool) {
  16389. dd, esep := d.d, d.hh.hasElemSeparators()
  16390. containerLen := dd.ReadMapStart()
  16391. if canChange && v == nil {
  16392. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  16393. v = make(map[interface{}]bool, xlen)
  16394. changed = true
  16395. }
  16396. if containerLen == 0 {
  16397. dd.ReadMapEnd()
  16398. return v, changed
  16399. }
  16400. var mk interface{}
  16401. var mv bool
  16402. hasLen := containerLen > 0
  16403. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16404. if esep {
  16405. dd.ReadMapElemKey()
  16406. }
  16407. mk = nil
  16408. d.decode(&mk)
  16409. if bv, bok := mk.([]byte); bok {
  16410. mk = d.string(bv)
  16411. }
  16412. if esep {
  16413. dd.ReadMapElemValue()
  16414. }
  16415. if dd.TryDecodeAsNil() {
  16416. if d.h.DeleteOnNilMapValue {
  16417. delete(v, mk)
  16418. } else {
  16419. v[mk] = false
  16420. }
  16421. continue
  16422. }
  16423. mv = dd.DecodeBool()
  16424. if v != nil {
  16425. v[mk] = mv
  16426. }
  16427. }
  16428. dd.ReadMapEnd()
  16429. return v, changed
  16430. }
  16431. func (d *Decoder) fastpathDecMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  16432. if rv.Kind() == reflect.Ptr {
  16433. vp := rv2i(rv).(*map[string]interface{})
  16434. if v, changed := fastpathTV.DecMapStringIntfV(*vp, true, d); changed {
  16435. *vp = v
  16436. }
  16437. return
  16438. }
  16439. fastpathTV.DecMapStringIntfV(rv2i(rv).(map[string]interface{}), false, d)
  16440. }
  16441. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, d *Decoder) {
  16442. if v, changed := f.DecMapStringIntfV(*vp, true, d); changed {
  16443. *vp = v
  16444. }
  16445. }
  16446. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, canChange bool,
  16447. d *Decoder) (_ map[string]interface{}, changed bool) {
  16448. dd, esep := d.d, d.hh.hasElemSeparators()
  16449. containerLen := dd.ReadMapStart()
  16450. if canChange && v == nil {
  16451. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  16452. v = make(map[string]interface{}, xlen)
  16453. changed = true
  16454. }
  16455. if containerLen == 0 {
  16456. dd.ReadMapEnd()
  16457. return v, changed
  16458. }
  16459. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  16460. var mk string
  16461. var mv interface{}
  16462. hasLen := containerLen > 0
  16463. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16464. if esep {
  16465. dd.ReadMapElemKey()
  16466. }
  16467. mk = dd.DecodeString()
  16468. if esep {
  16469. dd.ReadMapElemValue()
  16470. }
  16471. if dd.TryDecodeAsNil() {
  16472. if d.h.DeleteOnNilMapValue {
  16473. delete(v, mk)
  16474. } else {
  16475. v[mk] = nil
  16476. }
  16477. continue
  16478. }
  16479. if mapGet {
  16480. mv = v[mk]
  16481. } else {
  16482. mv = nil
  16483. }
  16484. d.decode(&mv)
  16485. if v != nil {
  16486. v[mk] = mv
  16487. }
  16488. }
  16489. dd.ReadMapEnd()
  16490. return v, changed
  16491. }
  16492. func (d *Decoder) fastpathDecMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  16493. if rv.Kind() == reflect.Ptr {
  16494. vp := rv2i(rv).(*map[string]string)
  16495. if v, changed := fastpathTV.DecMapStringStringV(*vp, true, d); changed {
  16496. *vp = v
  16497. }
  16498. return
  16499. }
  16500. fastpathTV.DecMapStringStringV(rv2i(rv).(map[string]string), false, d)
  16501. }
  16502. func (f fastpathT) DecMapStringStringX(vp *map[string]string, d *Decoder) {
  16503. if v, changed := f.DecMapStringStringV(*vp, true, d); changed {
  16504. *vp = v
  16505. }
  16506. }
  16507. func (_ fastpathT) DecMapStringStringV(v map[string]string, canChange bool,
  16508. d *Decoder) (_ map[string]string, changed bool) {
  16509. dd, esep := d.d, d.hh.hasElemSeparators()
  16510. containerLen := dd.ReadMapStart()
  16511. if canChange && v == nil {
  16512. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  16513. v = make(map[string]string, xlen)
  16514. changed = true
  16515. }
  16516. if containerLen == 0 {
  16517. dd.ReadMapEnd()
  16518. return v, changed
  16519. }
  16520. var mk string
  16521. var mv string
  16522. hasLen := containerLen > 0
  16523. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16524. if esep {
  16525. dd.ReadMapElemKey()
  16526. }
  16527. mk = dd.DecodeString()
  16528. if esep {
  16529. dd.ReadMapElemValue()
  16530. }
  16531. if dd.TryDecodeAsNil() {
  16532. if d.h.DeleteOnNilMapValue {
  16533. delete(v, mk)
  16534. } else {
  16535. v[mk] = ""
  16536. }
  16537. continue
  16538. }
  16539. mv = dd.DecodeString()
  16540. if v != nil {
  16541. v[mk] = mv
  16542. }
  16543. }
  16544. dd.ReadMapEnd()
  16545. return v, changed
  16546. }
  16547. func (d *Decoder) fastpathDecMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  16548. if rv.Kind() == reflect.Ptr {
  16549. vp := rv2i(rv).(*map[string]uint)
  16550. if v, changed := fastpathTV.DecMapStringUintV(*vp, true, d); changed {
  16551. *vp = v
  16552. }
  16553. return
  16554. }
  16555. fastpathTV.DecMapStringUintV(rv2i(rv).(map[string]uint), false, d)
  16556. }
  16557. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, d *Decoder) {
  16558. if v, changed := f.DecMapStringUintV(*vp, true, d); changed {
  16559. *vp = v
  16560. }
  16561. }
  16562. func (_ fastpathT) DecMapStringUintV(v map[string]uint, canChange bool,
  16563. d *Decoder) (_ map[string]uint, changed bool) {
  16564. dd, esep := d.d, d.hh.hasElemSeparators()
  16565. containerLen := dd.ReadMapStart()
  16566. if canChange && v == nil {
  16567. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  16568. v = make(map[string]uint, xlen)
  16569. changed = true
  16570. }
  16571. if containerLen == 0 {
  16572. dd.ReadMapEnd()
  16573. return v, changed
  16574. }
  16575. var mk string
  16576. var mv uint
  16577. hasLen := containerLen > 0
  16578. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16579. if esep {
  16580. dd.ReadMapElemKey()
  16581. }
  16582. mk = dd.DecodeString()
  16583. if esep {
  16584. dd.ReadMapElemValue()
  16585. }
  16586. if dd.TryDecodeAsNil() {
  16587. if d.h.DeleteOnNilMapValue {
  16588. delete(v, mk)
  16589. } else {
  16590. v[mk] = 0
  16591. }
  16592. continue
  16593. }
  16594. mv = uint(dd.DecodeUint(uintBitsize))
  16595. if v != nil {
  16596. v[mk] = mv
  16597. }
  16598. }
  16599. dd.ReadMapEnd()
  16600. return v, changed
  16601. }
  16602. func (d *Decoder) fastpathDecMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  16603. if rv.Kind() == reflect.Ptr {
  16604. vp := rv2i(rv).(*map[string]uint8)
  16605. if v, changed := fastpathTV.DecMapStringUint8V(*vp, true, d); changed {
  16606. *vp = v
  16607. }
  16608. return
  16609. }
  16610. fastpathTV.DecMapStringUint8V(rv2i(rv).(map[string]uint8), false, d)
  16611. }
  16612. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, d *Decoder) {
  16613. if v, changed := f.DecMapStringUint8V(*vp, true, d); changed {
  16614. *vp = v
  16615. }
  16616. }
  16617. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, canChange bool,
  16618. d *Decoder) (_ map[string]uint8, changed bool) {
  16619. dd, esep := d.d, d.hh.hasElemSeparators()
  16620. containerLen := dd.ReadMapStart()
  16621. if canChange && v == nil {
  16622. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  16623. v = make(map[string]uint8, xlen)
  16624. changed = true
  16625. }
  16626. if containerLen == 0 {
  16627. dd.ReadMapEnd()
  16628. return v, changed
  16629. }
  16630. var mk string
  16631. var mv uint8
  16632. hasLen := containerLen > 0
  16633. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16634. if esep {
  16635. dd.ReadMapElemKey()
  16636. }
  16637. mk = dd.DecodeString()
  16638. if esep {
  16639. dd.ReadMapElemValue()
  16640. }
  16641. if dd.TryDecodeAsNil() {
  16642. if d.h.DeleteOnNilMapValue {
  16643. delete(v, mk)
  16644. } else {
  16645. v[mk] = 0
  16646. }
  16647. continue
  16648. }
  16649. mv = uint8(dd.DecodeUint(8))
  16650. if v != nil {
  16651. v[mk] = mv
  16652. }
  16653. }
  16654. dd.ReadMapEnd()
  16655. return v, changed
  16656. }
  16657. func (d *Decoder) fastpathDecMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  16658. if rv.Kind() == reflect.Ptr {
  16659. vp := rv2i(rv).(*map[string]uint16)
  16660. if v, changed := fastpathTV.DecMapStringUint16V(*vp, true, d); changed {
  16661. *vp = v
  16662. }
  16663. return
  16664. }
  16665. fastpathTV.DecMapStringUint16V(rv2i(rv).(map[string]uint16), false, d)
  16666. }
  16667. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, d *Decoder) {
  16668. if v, changed := f.DecMapStringUint16V(*vp, true, d); changed {
  16669. *vp = v
  16670. }
  16671. }
  16672. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, canChange bool,
  16673. d *Decoder) (_ map[string]uint16, changed bool) {
  16674. dd, esep := d.d, d.hh.hasElemSeparators()
  16675. containerLen := dd.ReadMapStart()
  16676. if canChange && v == nil {
  16677. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  16678. v = make(map[string]uint16, xlen)
  16679. changed = true
  16680. }
  16681. if containerLen == 0 {
  16682. dd.ReadMapEnd()
  16683. return v, changed
  16684. }
  16685. var mk string
  16686. var mv uint16
  16687. hasLen := containerLen > 0
  16688. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16689. if esep {
  16690. dd.ReadMapElemKey()
  16691. }
  16692. mk = dd.DecodeString()
  16693. if esep {
  16694. dd.ReadMapElemValue()
  16695. }
  16696. if dd.TryDecodeAsNil() {
  16697. if d.h.DeleteOnNilMapValue {
  16698. delete(v, mk)
  16699. } else {
  16700. v[mk] = 0
  16701. }
  16702. continue
  16703. }
  16704. mv = uint16(dd.DecodeUint(16))
  16705. if v != nil {
  16706. v[mk] = mv
  16707. }
  16708. }
  16709. dd.ReadMapEnd()
  16710. return v, changed
  16711. }
  16712. func (d *Decoder) fastpathDecMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  16713. if rv.Kind() == reflect.Ptr {
  16714. vp := rv2i(rv).(*map[string]uint32)
  16715. if v, changed := fastpathTV.DecMapStringUint32V(*vp, true, d); changed {
  16716. *vp = v
  16717. }
  16718. return
  16719. }
  16720. fastpathTV.DecMapStringUint32V(rv2i(rv).(map[string]uint32), false, d)
  16721. }
  16722. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, d *Decoder) {
  16723. if v, changed := f.DecMapStringUint32V(*vp, true, d); changed {
  16724. *vp = v
  16725. }
  16726. }
  16727. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, canChange bool,
  16728. d *Decoder) (_ map[string]uint32, changed bool) {
  16729. dd, esep := d.d, d.hh.hasElemSeparators()
  16730. containerLen := dd.ReadMapStart()
  16731. if canChange && v == nil {
  16732. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  16733. v = make(map[string]uint32, xlen)
  16734. changed = true
  16735. }
  16736. if containerLen == 0 {
  16737. dd.ReadMapEnd()
  16738. return v, changed
  16739. }
  16740. var mk string
  16741. var mv uint32
  16742. hasLen := containerLen > 0
  16743. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16744. if esep {
  16745. dd.ReadMapElemKey()
  16746. }
  16747. mk = dd.DecodeString()
  16748. if esep {
  16749. dd.ReadMapElemValue()
  16750. }
  16751. if dd.TryDecodeAsNil() {
  16752. if d.h.DeleteOnNilMapValue {
  16753. delete(v, mk)
  16754. } else {
  16755. v[mk] = 0
  16756. }
  16757. continue
  16758. }
  16759. mv = uint32(dd.DecodeUint(32))
  16760. if v != nil {
  16761. v[mk] = mv
  16762. }
  16763. }
  16764. dd.ReadMapEnd()
  16765. return v, changed
  16766. }
  16767. func (d *Decoder) fastpathDecMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  16768. if rv.Kind() == reflect.Ptr {
  16769. vp := rv2i(rv).(*map[string]uint64)
  16770. if v, changed := fastpathTV.DecMapStringUint64V(*vp, true, d); changed {
  16771. *vp = v
  16772. }
  16773. return
  16774. }
  16775. fastpathTV.DecMapStringUint64V(rv2i(rv).(map[string]uint64), false, d)
  16776. }
  16777. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, d *Decoder) {
  16778. if v, changed := f.DecMapStringUint64V(*vp, true, d); changed {
  16779. *vp = v
  16780. }
  16781. }
  16782. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, canChange bool,
  16783. d *Decoder) (_ map[string]uint64, changed bool) {
  16784. dd, esep := d.d, d.hh.hasElemSeparators()
  16785. containerLen := dd.ReadMapStart()
  16786. if canChange && v == nil {
  16787. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  16788. v = make(map[string]uint64, xlen)
  16789. changed = true
  16790. }
  16791. if containerLen == 0 {
  16792. dd.ReadMapEnd()
  16793. return v, changed
  16794. }
  16795. var mk string
  16796. var mv uint64
  16797. hasLen := containerLen > 0
  16798. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16799. if esep {
  16800. dd.ReadMapElemKey()
  16801. }
  16802. mk = dd.DecodeString()
  16803. if esep {
  16804. dd.ReadMapElemValue()
  16805. }
  16806. if dd.TryDecodeAsNil() {
  16807. if d.h.DeleteOnNilMapValue {
  16808. delete(v, mk)
  16809. } else {
  16810. v[mk] = 0
  16811. }
  16812. continue
  16813. }
  16814. mv = dd.DecodeUint(64)
  16815. if v != nil {
  16816. v[mk] = mv
  16817. }
  16818. }
  16819. dd.ReadMapEnd()
  16820. return v, changed
  16821. }
  16822. func (d *Decoder) fastpathDecMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  16823. if rv.Kind() == reflect.Ptr {
  16824. vp := rv2i(rv).(*map[string]uintptr)
  16825. if v, changed := fastpathTV.DecMapStringUintptrV(*vp, true, d); changed {
  16826. *vp = v
  16827. }
  16828. return
  16829. }
  16830. fastpathTV.DecMapStringUintptrV(rv2i(rv).(map[string]uintptr), false, d)
  16831. }
  16832. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, d *Decoder) {
  16833. if v, changed := f.DecMapStringUintptrV(*vp, true, d); changed {
  16834. *vp = v
  16835. }
  16836. }
  16837. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, canChange bool,
  16838. d *Decoder) (_ map[string]uintptr, changed bool) {
  16839. dd, esep := d.d, d.hh.hasElemSeparators()
  16840. containerLen := dd.ReadMapStart()
  16841. if canChange && v == nil {
  16842. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  16843. v = make(map[string]uintptr, xlen)
  16844. changed = true
  16845. }
  16846. if containerLen == 0 {
  16847. dd.ReadMapEnd()
  16848. return v, changed
  16849. }
  16850. var mk string
  16851. var mv uintptr
  16852. hasLen := containerLen > 0
  16853. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16854. if esep {
  16855. dd.ReadMapElemKey()
  16856. }
  16857. mk = dd.DecodeString()
  16858. if esep {
  16859. dd.ReadMapElemValue()
  16860. }
  16861. if dd.TryDecodeAsNil() {
  16862. if d.h.DeleteOnNilMapValue {
  16863. delete(v, mk)
  16864. } else {
  16865. v[mk] = 0
  16866. }
  16867. continue
  16868. }
  16869. mv = uintptr(dd.DecodeUint(uintBitsize))
  16870. if v != nil {
  16871. v[mk] = mv
  16872. }
  16873. }
  16874. dd.ReadMapEnd()
  16875. return v, changed
  16876. }
  16877. func (d *Decoder) fastpathDecMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  16878. if rv.Kind() == reflect.Ptr {
  16879. vp := rv2i(rv).(*map[string]int)
  16880. if v, changed := fastpathTV.DecMapStringIntV(*vp, true, d); changed {
  16881. *vp = v
  16882. }
  16883. return
  16884. }
  16885. fastpathTV.DecMapStringIntV(rv2i(rv).(map[string]int), false, d)
  16886. }
  16887. func (f fastpathT) DecMapStringIntX(vp *map[string]int, d *Decoder) {
  16888. if v, changed := f.DecMapStringIntV(*vp, true, d); changed {
  16889. *vp = v
  16890. }
  16891. }
  16892. func (_ fastpathT) DecMapStringIntV(v map[string]int, canChange bool,
  16893. d *Decoder) (_ map[string]int, changed bool) {
  16894. dd, esep := d.d, d.hh.hasElemSeparators()
  16895. containerLen := dd.ReadMapStart()
  16896. if canChange && v == nil {
  16897. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  16898. v = make(map[string]int, xlen)
  16899. changed = true
  16900. }
  16901. if containerLen == 0 {
  16902. dd.ReadMapEnd()
  16903. return v, changed
  16904. }
  16905. var mk string
  16906. var mv int
  16907. hasLen := containerLen > 0
  16908. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16909. if esep {
  16910. dd.ReadMapElemKey()
  16911. }
  16912. mk = dd.DecodeString()
  16913. if esep {
  16914. dd.ReadMapElemValue()
  16915. }
  16916. if dd.TryDecodeAsNil() {
  16917. if d.h.DeleteOnNilMapValue {
  16918. delete(v, mk)
  16919. } else {
  16920. v[mk] = 0
  16921. }
  16922. continue
  16923. }
  16924. mv = int(dd.DecodeInt(intBitsize))
  16925. if v != nil {
  16926. v[mk] = mv
  16927. }
  16928. }
  16929. dd.ReadMapEnd()
  16930. return v, changed
  16931. }
  16932. func (d *Decoder) fastpathDecMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  16933. if rv.Kind() == reflect.Ptr {
  16934. vp := rv2i(rv).(*map[string]int8)
  16935. if v, changed := fastpathTV.DecMapStringInt8V(*vp, true, d); changed {
  16936. *vp = v
  16937. }
  16938. return
  16939. }
  16940. fastpathTV.DecMapStringInt8V(rv2i(rv).(map[string]int8), false, d)
  16941. }
  16942. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, d *Decoder) {
  16943. if v, changed := f.DecMapStringInt8V(*vp, true, d); changed {
  16944. *vp = v
  16945. }
  16946. }
  16947. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, canChange bool,
  16948. d *Decoder) (_ map[string]int8, changed bool) {
  16949. dd, esep := d.d, d.hh.hasElemSeparators()
  16950. containerLen := dd.ReadMapStart()
  16951. if canChange && v == nil {
  16952. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  16953. v = make(map[string]int8, xlen)
  16954. changed = true
  16955. }
  16956. if containerLen == 0 {
  16957. dd.ReadMapEnd()
  16958. return v, changed
  16959. }
  16960. var mk string
  16961. var mv int8
  16962. hasLen := containerLen > 0
  16963. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  16964. if esep {
  16965. dd.ReadMapElemKey()
  16966. }
  16967. mk = dd.DecodeString()
  16968. if esep {
  16969. dd.ReadMapElemValue()
  16970. }
  16971. if dd.TryDecodeAsNil() {
  16972. if d.h.DeleteOnNilMapValue {
  16973. delete(v, mk)
  16974. } else {
  16975. v[mk] = 0
  16976. }
  16977. continue
  16978. }
  16979. mv = int8(dd.DecodeInt(8))
  16980. if v != nil {
  16981. v[mk] = mv
  16982. }
  16983. }
  16984. dd.ReadMapEnd()
  16985. return v, changed
  16986. }
  16987. func (d *Decoder) fastpathDecMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  16988. if rv.Kind() == reflect.Ptr {
  16989. vp := rv2i(rv).(*map[string]int16)
  16990. if v, changed := fastpathTV.DecMapStringInt16V(*vp, true, d); changed {
  16991. *vp = v
  16992. }
  16993. return
  16994. }
  16995. fastpathTV.DecMapStringInt16V(rv2i(rv).(map[string]int16), false, d)
  16996. }
  16997. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, d *Decoder) {
  16998. if v, changed := f.DecMapStringInt16V(*vp, true, d); changed {
  16999. *vp = v
  17000. }
  17001. }
  17002. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, canChange bool,
  17003. d *Decoder) (_ map[string]int16, changed bool) {
  17004. dd, esep := d.d, d.hh.hasElemSeparators()
  17005. containerLen := dd.ReadMapStart()
  17006. if canChange && v == nil {
  17007. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  17008. v = make(map[string]int16, xlen)
  17009. changed = true
  17010. }
  17011. if containerLen == 0 {
  17012. dd.ReadMapEnd()
  17013. return v, changed
  17014. }
  17015. var mk string
  17016. var mv int16
  17017. hasLen := containerLen > 0
  17018. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17019. if esep {
  17020. dd.ReadMapElemKey()
  17021. }
  17022. mk = dd.DecodeString()
  17023. if esep {
  17024. dd.ReadMapElemValue()
  17025. }
  17026. if dd.TryDecodeAsNil() {
  17027. if d.h.DeleteOnNilMapValue {
  17028. delete(v, mk)
  17029. } else {
  17030. v[mk] = 0
  17031. }
  17032. continue
  17033. }
  17034. mv = int16(dd.DecodeInt(16))
  17035. if v != nil {
  17036. v[mk] = mv
  17037. }
  17038. }
  17039. dd.ReadMapEnd()
  17040. return v, changed
  17041. }
  17042. func (d *Decoder) fastpathDecMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  17043. if rv.Kind() == reflect.Ptr {
  17044. vp := rv2i(rv).(*map[string]int32)
  17045. if v, changed := fastpathTV.DecMapStringInt32V(*vp, true, d); changed {
  17046. *vp = v
  17047. }
  17048. return
  17049. }
  17050. fastpathTV.DecMapStringInt32V(rv2i(rv).(map[string]int32), false, d)
  17051. }
  17052. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, d *Decoder) {
  17053. if v, changed := f.DecMapStringInt32V(*vp, true, d); changed {
  17054. *vp = v
  17055. }
  17056. }
  17057. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, canChange bool,
  17058. d *Decoder) (_ map[string]int32, changed bool) {
  17059. dd, esep := d.d, d.hh.hasElemSeparators()
  17060. containerLen := dd.ReadMapStart()
  17061. if canChange && v == nil {
  17062. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17063. v = make(map[string]int32, xlen)
  17064. changed = true
  17065. }
  17066. if containerLen == 0 {
  17067. dd.ReadMapEnd()
  17068. return v, changed
  17069. }
  17070. var mk string
  17071. var mv int32
  17072. hasLen := containerLen > 0
  17073. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17074. if esep {
  17075. dd.ReadMapElemKey()
  17076. }
  17077. mk = dd.DecodeString()
  17078. if esep {
  17079. dd.ReadMapElemValue()
  17080. }
  17081. if dd.TryDecodeAsNil() {
  17082. if d.h.DeleteOnNilMapValue {
  17083. delete(v, mk)
  17084. } else {
  17085. v[mk] = 0
  17086. }
  17087. continue
  17088. }
  17089. mv = int32(dd.DecodeInt(32))
  17090. if v != nil {
  17091. v[mk] = mv
  17092. }
  17093. }
  17094. dd.ReadMapEnd()
  17095. return v, changed
  17096. }
  17097. func (d *Decoder) fastpathDecMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  17098. if rv.Kind() == reflect.Ptr {
  17099. vp := rv2i(rv).(*map[string]int64)
  17100. if v, changed := fastpathTV.DecMapStringInt64V(*vp, true, d); changed {
  17101. *vp = v
  17102. }
  17103. return
  17104. }
  17105. fastpathTV.DecMapStringInt64V(rv2i(rv).(map[string]int64), false, d)
  17106. }
  17107. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, d *Decoder) {
  17108. if v, changed := f.DecMapStringInt64V(*vp, true, d); changed {
  17109. *vp = v
  17110. }
  17111. }
  17112. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, canChange bool,
  17113. d *Decoder) (_ map[string]int64, changed bool) {
  17114. dd, esep := d.d, d.hh.hasElemSeparators()
  17115. containerLen := dd.ReadMapStart()
  17116. if canChange && v == nil {
  17117. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17118. v = make(map[string]int64, xlen)
  17119. changed = true
  17120. }
  17121. if containerLen == 0 {
  17122. dd.ReadMapEnd()
  17123. return v, changed
  17124. }
  17125. var mk string
  17126. var mv int64
  17127. hasLen := containerLen > 0
  17128. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17129. if esep {
  17130. dd.ReadMapElemKey()
  17131. }
  17132. mk = dd.DecodeString()
  17133. if esep {
  17134. dd.ReadMapElemValue()
  17135. }
  17136. if dd.TryDecodeAsNil() {
  17137. if d.h.DeleteOnNilMapValue {
  17138. delete(v, mk)
  17139. } else {
  17140. v[mk] = 0
  17141. }
  17142. continue
  17143. }
  17144. mv = dd.DecodeInt(64)
  17145. if v != nil {
  17146. v[mk] = mv
  17147. }
  17148. }
  17149. dd.ReadMapEnd()
  17150. return v, changed
  17151. }
  17152. func (d *Decoder) fastpathDecMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  17153. if rv.Kind() == reflect.Ptr {
  17154. vp := rv2i(rv).(*map[string]float32)
  17155. if v, changed := fastpathTV.DecMapStringFloat32V(*vp, true, d); changed {
  17156. *vp = v
  17157. }
  17158. return
  17159. }
  17160. fastpathTV.DecMapStringFloat32V(rv2i(rv).(map[string]float32), false, d)
  17161. }
  17162. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, d *Decoder) {
  17163. if v, changed := f.DecMapStringFloat32V(*vp, true, d); changed {
  17164. *vp = v
  17165. }
  17166. }
  17167. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, canChange bool,
  17168. d *Decoder) (_ map[string]float32, changed bool) {
  17169. dd, esep := d.d, d.hh.hasElemSeparators()
  17170. containerLen := dd.ReadMapStart()
  17171. if canChange && v == nil {
  17172. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17173. v = make(map[string]float32, xlen)
  17174. changed = true
  17175. }
  17176. if containerLen == 0 {
  17177. dd.ReadMapEnd()
  17178. return v, changed
  17179. }
  17180. var mk string
  17181. var mv float32
  17182. hasLen := containerLen > 0
  17183. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17184. if esep {
  17185. dd.ReadMapElemKey()
  17186. }
  17187. mk = dd.DecodeString()
  17188. if esep {
  17189. dd.ReadMapElemValue()
  17190. }
  17191. if dd.TryDecodeAsNil() {
  17192. if d.h.DeleteOnNilMapValue {
  17193. delete(v, mk)
  17194. } else {
  17195. v[mk] = 0
  17196. }
  17197. continue
  17198. }
  17199. mv = float32(dd.DecodeFloat(true))
  17200. if v != nil {
  17201. v[mk] = mv
  17202. }
  17203. }
  17204. dd.ReadMapEnd()
  17205. return v, changed
  17206. }
  17207. func (d *Decoder) fastpathDecMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  17208. if rv.Kind() == reflect.Ptr {
  17209. vp := rv2i(rv).(*map[string]float64)
  17210. if v, changed := fastpathTV.DecMapStringFloat64V(*vp, true, d); changed {
  17211. *vp = v
  17212. }
  17213. return
  17214. }
  17215. fastpathTV.DecMapStringFloat64V(rv2i(rv).(map[string]float64), false, d)
  17216. }
  17217. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, d *Decoder) {
  17218. if v, changed := f.DecMapStringFloat64V(*vp, true, d); changed {
  17219. *vp = v
  17220. }
  17221. }
  17222. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, canChange bool,
  17223. d *Decoder) (_ map[string]float64, changed bool) {
  17224. dd, esep := d.d, d.hh.hasElemSeparators()
  17225. containerLen := dd.ReadMapStart()
  17226. if canChange && v == nil {
  17227. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17228. v = make(map[string]float64, xlen)
  17229. changed = true
  17230. }
  17231. if containerLen == 0 {
  17232. dd.ReadMapEnd()
  17233. return v, changed
  17234. }
  17235. var mk string
  17236. var mv float64
  17237. hasLen := containerLen > 0
  17238. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17239. if esep {
  17240. dd.ReadMapElemKey()
  17241. }
  17242. mk = dd.DecodeString()
  17243. if esep {
  17244. dd.ReadMapElemValue()
  17245. }
  17246. if dd.TryDecodeAsNil() {
  17247. if d.h.DeleteOnNilMapValue {
  17248. delete(v, mk)
  17249. } else {
  17250. v[mk] = 0
  17251. }
  17252. continue
  17253. }
  17254. mv = dd.DecodeFloat(false)
  17255. if v != nil {
  17256. v[mk] = mv
  17257. }
  17258. }
  17259. dd.ReadMapEnd()
  17260. return v, changed
  17261. }
  17262. func (d *Decoder) fastpathDecMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  17263. if rv.Kind() == reflect.Ptr {
  17264. vp := rv2i(rv).(*map[string]bool)
  17265. if v, changed := fastpathTV.DecMapStringBoolV(*vp, true, d); changed {
  17266. *vp = v
  17267. }
  17268. return
  17269. }
  17270. fastpathTV.DecMapStringBoolV(rv2i(rv).(map[string]bool), false, d)
  17271. }
  17272. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, d *Decoder) {
  17273. if v, changed := f.DecMapStringBoolV(*vp, true, d); changed {
  17274. *vp = v
  17275. }
  17276. }
  17277. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, canChange bool,
  17278. d *Decoder) (_ map[string]bool, changed bool) {
  17279. dd, esep := d.d, d.hh.hasElemSeparators()
  17280. containerLen := dd.ReadMapStart()
  17281. if canChange && v == nil {
  17282. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  17283. v = make(map[string]bool, xlen)
  17284. changed = true
  17285. }
  17286. if containerLen == 0 {
  17287. dd.ReadMapEnd()
  17288. return v, changed
  17289. }
  17290. var mk string
  17291. var mv bool
  17292. hasLen := containerLen > 0
  17293. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17294. if esep {
  17295. dd.ReadMapElemKey()
  17296. }
  17297. mk = dd.DecodeString()
  17298. if esep {
  17299. dd.ReadMapElemValue()
  17300. }
  17301. if dd.TryDecodeAsNil() {
  17302. if d.h.DeleteOnNilMapValue {
  17303. delete(v, mk)
  17304. } else {
  17305. v[mk] = false
  17306. }
  17307. continue
  17308. }
  17309. mv = dd.DecodeBool()
  17310. if v != nil {
  17311. v[mk] = mv
  17312. }
  17313. }
  17314. dd.ReadMapEnd()
  17315. return v, changed
  17316. }
  17317. func (d *Decoder) fastpathDecMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  17318. if rv.Kind() == reflect.Ptr {
  17319. vp := rv2i(rv).(*map[float32]interface{})
  17320. if v, changed := fastpathTV.DecMapFloat32IntfV(*vp, true, d); changed {
  17321. *vp = v
  17322. }
  17323. return
  17324. }
  17325. fastpathTV.DecMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), false, d)
  17326. }
  17327. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, d *Decoder) {
  17328. if v, changed := f.DecMapFloat32IntfV(*vp, true, d); changed {
  17329. *vp = v
  17330. }
  17331. }
  17332. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, canChange bool,
  17333. d *Decoder) (_ map[float32]interface{}, changed bool) {
  17334. dd, esep := d.d, d.hh.hasElemSeparators()
  17335. containerLen := dd.ReadMapStart()
  17336. if canChange && v == nil {
  17337. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17338. v = make(map[float32]interface{}, xlen)
  17339. changed = true
  17340. }
  17341. if containerLen == 0 {
  17342. dd.ReadMapEnd()
  17343. return v, changed
  17344. }
  17345. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  17346. var mk float32
  17347. var mv interface{}
  17348. hasLen := containerLen > 0
  17349. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17350. if esep {
  17351. dd.ReadMapElemKey()
  17352. }
  17353. mk = float32(dd.DecodeFloat(true))
  17354. if esep {
  17355. dd.ReadMapElemValue()
  17356. }
  17357. if dd.TryDecodeAsNil() {
  17358. if d.h.DeleteOnNilMapValue {
  17359. delete(v, mk)
  17360. } else {
  17361. v[mk] = nil
  17362. }
  17363. continue
  17364. }
  17365. if mapGet {
  17366. mv = v[mk]
  17367. } else {
  17368. mv = nil
  17369. }
  17370. d.decode(&mv)
  17371. if v != nil {
  17372. v[mk] = mv
  17373. }
  17374. }
  17375. dd.ReadMapEnd()
  17376. return v, changed
  17377. }
  17378. func (d *Decoder) fastpathDecMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  17379. if rv.Kind() == reflect.Ptr {
  17380. vp := rv2i(rv).(*map[float32]string)
  17381. if v, changed := fastpathTV.DecMapFloat32StringV(*vp, true, d); changed {
  17382. *vp = v
  17383. }
  17384. return
  17385. }
  17386. fastpathTV.DecMapFloat32StringV(rv2i(rv).(map[float32]string), false, d)
  17387. }
  17388. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, d *Decoder) {
  17389. if v, changed := f.DecMapFloat32StringV(*vp, true, d); changed {
  17390. *vp = v
  17391. }
  17392. }
  17393. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, canChange bool,
  17394. d *Decoder) (_ map[float32]string, changed bool) {
  17395. dd, esep := d.d, d.hh.hasElemSeparators()
  17396. containerLen := dd.ReadMapStart()
  17397. if canChange && v == nil {
  17398. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17399. v = make(map[float32]string, xlen)
  17400. changed = true
  17401. }
  17402. if containerLen == 0 {
  17403. dd.ReadMapEnd()
  17404. return v, changed
  17405. }
  17406. var mk float32
  17407. var mv string
  17408. hasLen := containerLen > 0
  17409. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17410. if esep {
  17411. dd.ReadMapElemKey()
  17412. }
  17413. mk = float32(dd.DecodeFloat(true))
  17414. if esep {
  17415. dd.ReadMapElemValue()
  17416. }
  17417. if dd.TryDecodeAsNil() {
  17418. if d.h.DeleteOnNilMapValue {
  17419. delete(v, mk)
  17420. } else {
  17421. v[mk] = ""
  17422. }
  17423. continue
  17424. }
  17425. mv = dd.DecodeString()
  17426. if v != nil {
  17427. v[mk] = mv
  17428. }
  17429. }
  17430. dd.ReadMapEnd()
  17431. return v, changed
  17432. }
  17433. func (d *Decoder) fastpathDecMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  17434. if rv.Kind() == reflect.Ptr {
  17435. vp := rv2i(rv).(*map[float32]uint)
  17436. if v, changed := fastpathTV.DecMapFloat32UintV(*vp, true, d); changed {
  17437. *vp = v
  17438. }
  17439. return
  17440. }
  17441. fastpathTV.DecMapFloat32UintV(rv2i(rv).(map[float32]uint), false, d)
  17442. }
  17443. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, d *Decoder) {
  17444. if v, changed := f.DecMapFloat32UintV(*vp, true, d); changed {
  17445. *vp = v
  17446. }
  17447. }
  17448. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, canChange bool,
  17449. d *Decoder) (_ map[float32]uint, changed bool) {
  17450. dd, esep := d.d, d.hh.hasElemSeparators()
  17451. containerLen := dd.ReadMapStart()
  17452. if canChange && v == nil {
  17453. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  17454. v = make(map[float32]uint, xlen)
  17455. changed = true
  17456. }
  17457. if containerLen == 0 {
  17458. dd.ReadMapEnd()
  17459. return v, changed
  17460. }
  17461. var mk float32
  17462. var mv uint
  17463. hasLen := containerLen > 0
  17464. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17465. if esep {
  17466. dd.ReadMapElemKey()
  17467. }
  17468. mk = float32(dd.DecodeFloat(true))
  17469. if esep {
  17470. dd.ReadMapElemValue()
  17471. }
  17472. if dd.TryDecodeAsNil() {
  17473. if d.h.DeleteOnNilMapValue {
  17474. delete(v, mk)
  17475. } else {
  17476. v[mk] = 0
  17477. }
  17478. continue
  17479. }
  17480. mv = uint(dd.DecodeUint(uintBitsize))
  17481. if v != nil {
  17482. v[mk] = mv
  17483. }
  17484. }
  17485. dd.ReadMapEnd()
  17486. return v, changed
  17487. }
  17488. func (d *Decoder) fastpathDecMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  17489. if rv.Kind() == reflect.Ptr {
  17490. vp := rv2i(rv).(*map[float32]uint8)
  17491. if v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, true, d); changed {
  17492. *vp = v
  17493. }
  17494. return
  17495. }
  17496. fastpathTV.DecMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), false, d)
  17497. }
  17498. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, d *Decoder) {
  17499. if v, changed := f.DecMapFloat32Uint8V(*vp, true, d); changed {
  17500. *vp = v
  17501. }
  17502. }
  17503. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, canChange bool,
  17504. d *Decoder) (_ map[float32]uint8, changed bool) {
  17505. dd, esep := d.d, d.hh.hasElemSeparators()
  17506. containerLen := dd.ReadMapStart()
  17507. if canChange && v == nil {
  17508. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  17509. v = make(map[float32]uint8, xlen)
  17510. changed = true
  17511. }
  17512. if containerLen == 0 {
  17513. dd.ReadMapEnd()
  17514. return v, changed
  17515. }
  17516. var mk float32
  17517. var mv uint8
  17518. hasLen := containerLen > 0
  17519. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17520. if esep {
  17521. dd.ReadMapElemKey()
  17522. }
  17523. mk = float32(dd.DecodeFloat(true))
  17524. if esep {
  17525. dd.ReadMapElemValue()
  17526. }
  17527. if dd.TryDecodeAsNil() {
  17528. if d.h.DeleteOnNilMapValue {
  17529. delete(v, mk)
  17530. } else {
  17531. v[mk] = 0
  17532. }
  17533. continue
  17534. }
  17535. mv = uint8(dd.DecodeUint(8))
  17536. if v != nil {
  17537. v[mk] = mv
  17538. }
  17539. }
  17540. dd.ReadMapEnd()
  17541. return v, changed
  17542. }
  17543. func (d *Decoder) fastpathDecMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  17544. if rv.Kind() == reflect.Ptr {
  17545. vp := rv2i(rv).(*map[float32]uint16)
  17546. if v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, true, d); changed {
  17547. *vp = v
  17548. }
  17549. return
  17550. }
  17551. fastpathTV.DecMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), false, d)
  17552. }
  17553. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, d *Decoder) {
  17554. if v, changed := f.DecMapFloat32Uint16V(*vp, true, d); changed {
  17555. *vp = v
  17556. }
  17557. }
  17558. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, canChange bool,
  17559. d *Decoder) (_ map[float32]uint16, changed bool) {
  17560. dd, esep := d.d, d.hh.hasElemSeparators()
  17561. containerLen := dd.ReadMapStart()
  17562. if canChange && v == nil {
  17563. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  17564. v = make(map[float32]uint16, xlen)
  17565. changed = true
  17566. }
  17567. if containerLen == 0 {
  17568. dd.ReadMapEnd()
  17569. return v, changed
  17570. }
  17571. var mk float32
  17572. var mv uint16
  17573. hasLen := containerLen > 0
  17574. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17575. if esep {
  17576. dd.ReadMapElemKey()
  17577. }
  17578. mk = float32(dd.DecodeFloat(true))
  17579. if esep {
  17580. dd.ReadMapElemValue()
  17581. }
  17582. if dd.TryDecodeAsNil() {
  17583. if d.h.DeleteOnNilMapValue {
  17584. delete(v, mk)
  17585. } else {
  17586. v[mk] = 0
  17587. }
  17588. continue
  17589. }
  17590. mv = uint16(dd.DecodeUint(16))
  17591. if v != nil {
  17592. v[mk] = mv
  17593. }
  17594. }
  17595. dd.ReadMapEnd()
  17596. return v, changed
  17597. }
  17598. func (d *Decoder) fastpathDecMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  17599. if rv.Kind() == reflect.Ptr {
  17600. vp := rv2i(rv).(*map[float32]uint32)
  17601. if v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, true, d); changed {
  17602. *vp = v
  17603. }
  17604. return
  17605. }
  17606. fastpathTV.DecMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), false, d)
  17607. }
  17608. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, d *Decoder) {
  17609. if v, changed := f.DecMapFloat32Uint32V(*vp, true, d); changed {
  17610. *vp = v
  17611. }
  17612. }
  17613. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, canChange bool,
  17614. d *Decoder) (_ map[float32]uint32, changed bool) {
  17615. dd, esep := d.d, d.hh.hasElemSeparators()
  17616. containerLen := dd.ReadMapStart()
  17617. if canChange && v == nil {
  17618. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  17619. v = make(map[float32]uint32, xlen)
  17620. changed = true
  17621. }
  17622. if containerLen == 0 {
  17623. dd.ReadMapEnd()
  17624. return v, changed
  17625. }
  17626. var mk float32
  17627. var mv uint32
  17628. hasLen := containerLen > 0
  17629. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17630. if esep {
  17631. dd.ReadMapElemKey()
  17632. }
  17633. mk = float32(dd.DecodeFloat(true))
  17634. if esep {
  17635. dd.ReadMapElemValue()
  17636. }
  17637. if dd.TryDecodeAsNil() {
  17638. if d.h.DeleteOnNilMapValue {
  17639. delete(v, mk)
  17640. } else {
  17641. v[mk] = 0
  17642. }
  17643. continue
  17644. }
  17645. mv = uint32(dd.DecodeUint(32))
  17646. if v != nil {
  17647. v[mk] = mv
  17648. }
  17649. }
  17650. dd.ReadMapEnd()
  17651. return v, changed
  17652. }
  17653. func (d *Decoder) fastpathDecMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  17654. if rv.Kind() == reflect.Ptr {
  17655. vp := rv2i(rv).(*map[float32]uint64)
  17656. if v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, true, d); changed {
  17657. *vp = v
  17658. }
  17659. return
  17660. }
  17661. fastpathTV.DecMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), false, d)
  17662. }
  17663. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, d *Decoder) {
  17664. if v, changed := f.DecMapFloat32Uint64V(*vp, true, d); changed {
  17665. *vp = v
  17666. }
  17667. }
  17668. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, canChange bool,
  17669. d *Decoder) (_ map[float32]uint64, changed bool) {
  17670. dd, esep := d.d, d.hh.hasElemSeparators()
  17671. containerLen := dd.ReadMapStart()
  17672. if canChange && v == nil {
  17673. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  17674. v = make(map[float32]uint64, xlen)
  17675. changed = true
  17676. }
  17677. if containerLen == 0 {
  17678. dd.ReadMapEnd()
  17679. return v, changed
  17680. }
  17681. var mk float32
  17682. var mv uint64
  17683. hasLen := containerLen > 0
  17684. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17685. if esep {
  17686. dd.ReadMapElemKey()
  17687. }
  17688. mk = float32(dd.DecodeFloat(true))
  17689. if esep {
  17690. dd.ReadMapElemValue()
  17691. }
  17692. if dd.TryDecodeAsNil() {
  17693. if d.h.DeleteOnNilMapValue {
  17694. delete(v, mk)
  17695. } else {
  17696. v[mk] = 0
  17697. }
  17698. continue
  17699. }
  17700. mv = dd.DecodeUint(64)
  17701. if v != nil {
  17702. v[mk] = mv
  17703. }
  17704. }
  17705. dd.ReadMapEnd()
  17706. return v, changed
  17707. }
  17708. func (d *Decoder) fastpathDecMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  17709. if rv.Kind() == reflect.Ptr {
  17710. vp := rv2i(rv).(*map[float32]uintptr)
  17711. if v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, true, d); changed {
  17712. *vp = v
  17713. }
  17714. return
  17715. }
  17716. fastpathTV.DecMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), false, d)
  17717. }
  17718. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, d *Decoder) {
  17719. if v, changed := f.DecMapFloat32UintptrV(*vp, true, d); changed {
  17720. *vp = v
  17721. }
  17722. }
  17723. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, canChange bool,
  17724. d *Decoder) (_ map[float32]uintptr, changed bool) {
  17725. dd, esep := d.d, d.hh.hasElemSeparators()
  17726. containerLen := dd.ReadMapStart()
  17727. if canChange && v == nil {
  17728. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  17729. v = make(map[float32]uintptr, xlen)
  17730. changed = true
  17731. }
  17732. if containerLen == 0 {
  17733. dd.ReadMapEnd()
  17734. return v, changed
  17735. }
  17736. var mk float32
  17737. var mv uintptr
  17738. hasLen := containerLen > 0
  17739. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17740. if esep {
  17741. dd.ReadMapElemKey()
  17742. }
  17743. mk = float32(dd.DecodeFloat(true))
  17744. if esep {
  17745. dd.ReadMapElemValue()
  17746. }
  17747. if dd.TryDecodeAsNil() {
  17748. if d.h.DeleteOnNilMapValue {
  17749. delete(v, mk)
  17750. } else {
  17751. v[mk] = 0
  17752. }
  17753. continue
  17754. }
  17755. mv = uintptr(dd.DecodeUint(uintBitsize))
  17756. if v != nil {
  17757. v[mk] = mv
  17758. }
  17759. }
  17760. dd.ReadMapEnd()
  17761. return v, changed
  17762. }
  17763. func (d *Decoder) fastpathDecMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  17764. if rv.Kind() == reflect.Ptr {
  17765. vp := rv2i(rv).(*map[float32]int)
  17766. if v, changed := fastpathTV.DecMapFloat32IntV(*vp, true, d); changed {
  17767. *vp = v
  17768. }
  17769. return
  17770. }
  17771. fastpathTV.DecMapFloat32IntV(rv2i(rv).(map[float32]int), false, d)
  17772. }
  17773. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, d *Decoder) {
  17774. if v, changed := f.DecMapFloat32IntV(*vp, true, d); changed {
  17775. *vp = v
  17776. }
  17777. }
  17778. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, canChange bool,
  17779. d *Decoder) (_ map[float32]int, changed bool) {
  17780. dd, esep := d.d, d.hh.hasElemSeparators()
  17781. containerLen := dd.ReadMapStart()
  17782. if canChange && v == nil {
  17783. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  17784. v = make(map[float32]int, xlen)
  17785. changed = true
  17786. }
  17787. if containerLen == 0 {
  17788. dd.ReadMapEnd()
  17789. return v, changed
  17790. }
  17791. var mk float32
  17792. var mv int
  17793. hasLen := containerLen > 0
  17794. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17795. if esep {
  17796. dd.ReadMapElemKey()
  17797. }
  17798. mk = float32(dd.DecodeFloat(true))
  17799. if esep {
  17800. dd.ReadMapElemValue()
  17801. }
  17802. if dd.TryDecodeAsNil() {
  17803. if d.h.DeleteOnNilMapValue {
  17804. delete(v, mk)
  17805. } else {
  17806. v[mk] = 0
  17807. }
  17808. continue
  17809. }
  17810. mv = int(dd.DecodeInt(intBitsize))
  17811. if v != nil {
  17812. v[mk] = mv
  17813. }
  17814. }
  17815. dd.ReadMapEnd()
  17816. return v, changed
  17817. }
  17818. func (d *Decoder) fastpathDecMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  17819. if rv.Kind() == reflect.Ptr {
  17820. vp := rv2i(rv).(*map[float32]int8)
  17821. if v, changed := fastpathTV.DecMapFloat32Int8V(*vp, true, d); changed {
  17822. *vp = v
  17823. }
  17824. return
  17825. }
  17826. fastpathTV.DecMapFloat32Int8V(rv2i(rv).(map[float32]int8), false, d)
  17827. }
  17828. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, d *Decoder) {
  17829. if v, changed := f.DecMapFloat32Int8V(*vp, true, d); changed {
  17830. *vp = v
  17831. }
  17832. }
  17833. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, canChange bool,
  17834. d *Decoder) (_ map[float32]int8, changed bool) {
  17835. dd, esep := d.d, d.hh.hasElemSeparators()
  17836. containerLen := dd.ReadMapStart()
  17837. if canChange && v == nil {
  17838. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  17839. v = make(map[float32]int8, xlen)
  17840. changed = true
  17841. }
  17842. if containerLen == 0 {
  17843. dd.ReadMapEnd()
  17844. return v, changed
  17845. }
  17846. var mk float32
  17847. var mv int8
  17848. hasLen := containerLen > 0
  17849. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17850. if esep {
  17851. dd.ReadMapElemKey()
  17852. }
  17853. mk = float32(dd.DecodeFloat(true))
  17854. if esep {
  17855. dd.ReadMapElemValue()
  17856. }
  17857. if dd.TryDecodeAsNil() {
  17858. if d.h.DeleteOnNilMapValue {
  17859. delete(v, mk)
  17860. } else {
  17861. v[mk] = 0
  17862. }
  17863. continue
  17864. }
  17865. mv = int8(dd.DecodeInt(8))
  17866. if v != nil {
  17867. v[mk] = mv
  17868. }
  17869. }
  17870. dd.ReadMapEnd()
  17871. return v, changed
  17872. }
  17873. func (d *Decoder) fastpathDecMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  17874. if rv.Kind() == reflect.Ptr {
  17875. vp := rv2i(rv).(*map[float32]int16)
  17876. if v, changed := fastpathTV.DecMapFloat32Int16V(*vp, true, d); changed {
  17877. *vp = v
  17878. }
  17879. return
  17880. }
  17881. fastpathTV.DecMapFloat32Int16V(rv2i(rv).(map[float32]int16), false, d)
  17882. }
  17883. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, d *Decoder) {
  17884. if v, changed := f.DecMapFloat32Int16V(*vp, true, d); changed {
  17885. *vp = v
  17886. }
  17887. }
  17888. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, canChange bool,
  17889. d *Decoder) (_ map[float32]int16, changed bool) {
  17890. dd, esep := d.d, d.hh.hasElemSeparators()
  17891. containerLen := dd.ReadMapStart()
  17892. if canChange && v == nil {
  17893. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  17894. v = make(map[float32]int16, xlen)
  17895. changed = true
  17896. }
  17897. if containerLen == 0 {
  17898. dd.ReadMapEnd()
  17899. return v, changed
  17900. }
  17901. var mk float32
  17902. var mv int16
  17903. hasLen := containerLen > 0
  17904. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17905. if esep {
  17906. dd.ReadMapElemKey()
  17907. }
  17908. mk = float32(dd.DecodeFloat(true))
  17909. if esep {
  17910. dd.ReadMapElemValue()
  17911. }
  17912. if dd.TryDecodeAsNil() {
  17913. if d.h.DeleteOnNilMapValue {
  17914. delete(v, mk)
  17915. } else {
  17916. v[mk] = 0
  17917. }
  17918. continue
  17919. }
  17920. mv = int16(dd.DecodeInt(16))
  17921. if v != nil {
  17922. v[mk] = mv
  17923. }
  17924. }
  17925. dd.ReadMapEnd()
  17926. return v, changed
  17927. }
  17928. func (d *Decoder) fastpathDecMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  17929. if rv.Kind() == reflect.Ptr {
  17930. vp := rv2i(rv).(*map[float32]int32)
  17931. if v, changed := fastpathTV.DecMapFloat32Int32V(*vp, true, d); changed {
  17932. *vp = v
  17933. }
  17934. return
  17935. }
  17936. fastpathTV.DecMapFloat32Int32V(rv2i(rv).(map[float32]int32), false, d)
  17937. }
  17938. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, d *Decoder) {
  17939. if v, changed := f.DecMapFloat32Int32V(*vp, true, d); changed {
  17940. *vp = v
  17941. }
  17942. }
  17943. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, canChange bool,
  17944. d *Decoder) (_ map[float32]int32, changed bool) {
  17945. dd, esep := d.d, d.hh.hasElemSeparators()
  17946. containerLen := dd.ReadMapStart()
  17947. if canChange && v == nil {
  17948. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  17949. v = make(map[float32]int32, xlen)
  17950. changed = true
  17951. }
  17952. if containerLen == 0 {
  17953. dd.ReadMapEnd()
  17954. return v, changed
  17955. }
  17956. var mk float32
  17957. var mv int32
  17958. hasLen := containerLen > 0
  17959. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17960. if esep {
  17961. dd.ReadMapElemKey()
  17962. }
  17963. mk = float32(dd.DecodeFloat(true))
  17964. if esep {
  17965. dd.ReadMapElemValue()
  17966. }
  17967. if dd.TryDecodeAsNil() {
  17968. if d.h.DeleteOnNilMapValue {
  17969. delete(v, mk)
  17970. } else {
  17971. v[mk] = 0
  17972. }
  17973. continue
  17974. }
  17975. mv = int32(dd.DecodeInt(32))
  17976. if v != nil {
  17977. v[mk] = mv
  17978. }
  17979. }
  17980. dd.ReadMapEnd()
  17981. return v, changed
  17982. }
  17983. func (d *Decoder) fastpathDecMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  17984. if rv.Kind() == reflect.Ptr {
  17985. vp := rv2i(rv).(*map[float32]int64)
  17986. if v, changed := fastpathTV.DecMapFloat32Int64V(*vp, true, d); changed {
  17987. *vp = v
  17988. }
  17989. return
  17990. }
  17991. fastpathTV.DecMapFloat32Int64V(rv2i(rv).(map[float32]int64), false, d)
  17992. }
  17993. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, d *Decoder) {
  17994. if v, changed := f.DecMapFloat32Int64V(*vp, true, d); changed {
  17995. *vp = v
  17996. }
  17997. }
  17998. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, canChange bool,
  17999. d *Decoder) (_ map[float32]int64, changed bool) {
  18000. dd, esep := d.d, d.hh.hasElemSeparators()
  18001. containerLen := dd.ReadMapStart()
  18002. if canChange && v == nil {
  18003. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18004. v = make(map[float32]int64, xlen)
  18005. changed = true
  18006. }
  18007. if containerLen == 0 {
  18008. dd.ReadMapEnd()
  18009. return v, changed
  18010. }
  18011. var mk float32
  18012. var mv int64
  18013. hasLen := containerLen > 0
  18014. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18015. if esep {
  18016. dd.ReadMapElemKey()
  18017. }
  18018. mk = float32(dd.DecodeFloat(true))
  18019. if esep {
  18020. dd.ReadMapElemValue()
  18021. }
  18022. if dd.TryDecodeAsNil() {
  18023. if d.h.DeleteOnNilMapValue {
  18024. delete(v, mk)
  18025. } else {
  18026. v[mk] = 0
  18027. }
  18028. continue
  18029. }
  18030. mv = dd.DecodeInt(64)
  18031. if v != nil {
  18032. v[mk] = mv
  18033. }
  18034. }
  18035. dd.ReadMapEnd()
  18036. return v, changed
  18037. }
  18038. func (d *Decoder) fastpathDecMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  18039. if rv.Kind() == reflect.Ptr {
  18040. vp := rv2i(rv).(*map[float32]float32)
  18041. if v, changed := fastpathTV.DecMapFloat32Float32V(*vp, true, d); changed {
  18042. *vp = v
  18043. }
  18044. return
  18045. }
  18046. fastpathTV.DecMapFloat32Float32V(rv2i(rv).(map[float32]float32), false, d)
  18047. }
  18048. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, d *Decoder) {
  18049. if v, changed := f.DecMapFloat32Float32V(*vp, true, d); changed {
  18050. *vp = v
  18051. }
  18052. }
  18053. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, canChange bool,
  18054. d *Decoder) (_ map[float32]float32, changed bool) {
  18055. dd, esep := d.d, d.hh.hasElemSeparators()
  18056. containerLen := dd.ReadMapStart()
  18057. if canChange && v == nil {
  18058. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  18059. v = make(map[float32]float32, xlen)
  18060. changed = true
  18061. }
  18062. if containerLen == 0 {
  18063. dd.ReadMapEnd()
  18064. return v, changed
  18065. }
  18066. var mk float32
  18067. var mv float32
  18068. hasLen := containerLen > 0
  18069. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18070. if esep {
  18071. dd.ReadMapElemKey()
  18072. }
  18073. mk = float32(dd.DecodeFloat(true))
  18074. if esep {
  18075. dd.ReadMapElemValue()
  18076. }
  18077. if dd.TryDecodeAsNil() {
  18078. if d.h.DeleteOnNilMapValue {
  18079. delete(v, mk)
  18080. } else {
  18081. v[mk] = 0
  18082. }
  18083. continue
  18084. }
  18085. mv = float32(dd.DecodeFloat(true))
  18086. if v != nil {
  18087. v[mk] = mv
  18088. }
  18089. }
  18090. dd.ReadMapEnd()
  18091. return v, changed
  18092. }
  18093. func (d *Decoder) fastpathDecMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  18094. if rv.Kind() == reflect.Ptr {
  18095. vp := rv2i(rv).(*map[float32]float64)
  18096. if v, changed := fastpathTV.DecMapFloat32Float64V(*vp, true, d); changed {
  18097. *vp = v
  18098. }
  18099. return
  18100. }
  18101. fastpathTV.DecMapFloat32Float64V(rv2i(rv).(map[float32]float64), false, d)
  18102. }
  18103. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, d *Decoder) {
  18104. if v, changed := f.DecMapFloat32Float64V(*vp, true, d); changed {
  18105. *vp = v
  18106. }
  18107. }
  18108. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, canChange bool,
  18109. d *Decoder) (_ map[float32]float64, changed bool) {
  18110. dd, esep := d.d, d.hh.hasElemSeparators()
  18111. containerLen := dd.ReadMapStart()
  18112. if canChange && v == nil {
  18113. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18114. v = make(map[float32]float64, xlen)
  18115. changed = true
  18116. }
  18117. if containerLen == 0 {
  18118. dd.ReadMapEnd()
  18119. return v, changed
  18120. }
  18121. var mk float32
  18122. var mv float64
  18123. hasLen := containerLen > 0
  18124. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18125. if esep {
  18126. dd.ReadMapElemKey()
  18127. }
  18128. mk = float32(dd.DecodeFloat(true))
  18129. if esep {
  18130. dd.ReadMapElemValue()
  18131. }
  18132. if dd.TryDecodeAsNil() {
  18133. if d.h.DeleteOnNilMapValue {
  18134. delete(v, mk)
  18135. } else {
  18136. v[mk] = 0
  18137. }
  18138. continue
  18139. }
  18140. mv = dd.DecodeFloat(false)
  18141. if v != nil {
  18142. v[mk] = mv
  18143. }
  18144. }
  18145. dd.ReadMapEnd()
  18146. return v, changed
  18147. }
  18148. func (d *Decoder) fastpathDecMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  18149. if rv.Kind() == reflect.Ptr {
  18150. vp := rv2i(rv).(*map[float32]bool)
  18151. if v, changed := fastpathTV.DecMapFloat32BoolV(*vp, true, d); changed {
  18152. *vp = v
  18153. }
  18154. return
  18155. }
  18156. fastpathTV.DecMapFloat32BoolV(rv2i(rv).(map[float32]bool), false, d)
  18157. }
  18158. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, d *Decoder) {
  18159. if v, changed := f.DecMapFloat32BoolV(*vp, true, d); changed {
  18160. *vp = v
  18161. }
  18162. }
  18163. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, canChange bool,
  18164. d *Decoder) (_ map[float32]bool, changed bool) {
  18165. dd, esep := d.d, d.hh.hasElemSeparators()
  18166. containerLen := dd.ReadMapStart()
  18167. if canChange && v == nil {
  18168. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  18169. v = make(map[float32]bool, xlen)
  18170. changed = true
  18171. }
  18172. if containerLen == 0 {
  18173. dd.ReadMapEnd()
  18174. return v, changed
  18175. }
  18176. var mk float32
  18177. var mv bool
  18178. hasLen := containerLen > 0
  18179. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18180. if esep {
  18181. dd.ReadMapElemKey()
  18182. }
  18183. mk = float32(dd.DecodeFloat(true))
  18184. if esep {
  18185. dd.ReadMapElemValue()
  18186. }
  18187. if dd.TryDecodeAsNil() {
  18188. if d.h.DeleteOnNilMapValue {
  18189. delete(v, mk)
  18190. } else {
  18191. v[mk] = false
  18192. }
  18193. continue
  18194. }
  18195. mv = dd.DecodeBool()
  18196. if v != nil {
  18197. v[mk] = mv
  18198. }
  18199. }
  18200. dd.ReadMapEnd()
  18201. return v, changed
  18202. }
  18203. func (d *Decoder) fastpathDecMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  18204. if rv.Kind() == reflect.Ptr {
  18205. vp := rv2i(rv).(*map[float64]interface{})
  18206. if v, changed := fastpathTV.DecMapFloat64IntfV(*vp, true, d); changed {
  18207. *vp = v
  18208. }
  18209. return
  18210. }
  18211. fastpathTV.DecMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), false, d)
  18212. }
  18213. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, d *Decoder) {
  18214. if v, changed := f.DecMapFloat64IntfV(*vp, true, d); changed {
  18215. *vp = v
  18216. }
  18217. }
  18218. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, canChange bool,
  18219. d *Decoder) (_ map[float64]interface{}, changed bool) {
  18220. dd, esep := d.d, d.hh.hasElemSeparators()
  18221. containerLen := dd.ReadMapStart()
  18222. if canChange && v == nil {
  18223. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18224. v = make(map[float64]interface{}, xlen)
  18225. changed = true
  18226. }
  18227. if containerLen == 0 {
  18228. dd.ReadMapEnd()
  18229. return v, changed
  18230. }
  18231. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  18232. var mk float64
  18233. var mv interface{}
  18234. hasLen := containerLen > 0
  18235. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18236. if esep {
  18237. dd.ReadMapElemKey()
  18238. }
  18239. mk = dd.DecodeFloat(false)
  18240. if esep {
  18241. dd.ReadMapElemValue()
  18242. }
  18243. if dd.TryDecodeAsNil() {
  18244. if d.h.DeleteOnNilMapValue {
  18245. delete(v, mk)
  18246. } else {
  18247. v[mk] = nil
  18248. }
  18249. continue
  18250. }
  18251. if mapGet {
  18252. mv = v[mk]
  18253. } else {
  18254. mv = nil
  18255. }
  18256. d.decode(&mv)
  18257. if v != nil {
  18258. v[mk] = mv
  18259. }
  18260. }
  18261. dd.ReadMapEnd()
  18262. return v, changed
  18263. }
  18264. func (d *Decoder) fastpathDecMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  18265. if rv.Kind() == reflect.Ptr {
  18266. vp := rv2i(rv).(*map[float64]string)
  18267. if v, changed := fastpathTV.DecMapFloat64StringV(*vp, true, d); changed {
  18268. *vp = v
  18269. }
  18270. return
  18271. }
  18272. fastpathTV.DecMapFloat64StringV(rv2i(rv).(map[float64]string), false, d)
  18273. }
  18274. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, d *Decoder) {
  18275. if v, changed := f.DecMapFloat64StringV(*vp, true, d); changed {
  18276. *vp = v
  18277. }
  18278. }
  18279. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, canChange bool,
  18280. d *Decoder) (_ map[float64]string, changed bool) {
  18281. dd, esep := d.d, d.hh.hasElemSeparators()
  18282. containerLen := dd.ReadMapStart()
  18283. if canChange && v == nil {
  18284. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18285. v = make(map[float64]string, xlen)
  18286. changed = true
  18287. }
  18288. if containerLen == 0 {
  18289. dd.ReadMapEnd()
  18290. return v, changed
  18291. }
  18292. var mk float64
  18293. var mv string
  18294. hasLen := containerLen > 0
  18295. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18296. if esep {
  18297. dd.ReadMapElemKey()
  18298. }
  18299. mk = dd.DecodeFloat(false)
  18300. if esep {
  18301. dd.ReadMapElemValue()
  18302. }
  18303. if dd.TryDecodeAsNil() {
  18304. if d.h.DeleteOnNilMapValue {
  18305. delete(v, mk)
  18306. } else {
  18307. v[mk] = ""
  18308. }
  18309. continue
  18310. }
  18311. mv = dd.DecodeString()
  18312. if v != nil {
  18313. v[mk] = mv
  18314. }
  18315. }
  18316. dd.ReadMapEnd()
  18317. return v, changed
  18318. }
  18319. func (d *Decoder) fastpathDecMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  18320. if rv.Kind() == reflect.Ptr {
  18321. vp := rv2i(rv).(*map[float64]uint)
  18322. if v, changed := fastpathTV.DecMapFloat64UintV(*vp, true, d); changed {
  18323. *vp = v
  18324. }
  18325. return
  18326. }
  18327. fastpathTV.DecMapFloat64UintV(rv2i(rv).(map[float64]uint), false, d)
  18328. }
  18329. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, d *Decoder) {
  18330. if v, changed := f.DecMapFloat64UintV(*vp, true, d); changed {
  18331. *vp = v
  18332. }
  18333. }
  18334. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, canChange bool,
  18335. d *Decoder) (_ map[float64]uint, changed bool) {
  18336. dd, esep := d.d, d.hh.hasElemSeparators()
  18337. containerLen := dd.ReadMapStart()
  18338. if canChange && v == nil {
  18339. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  18340. v = make(map[float64]uint, xlen)
  18341. changed = true
  18342. }
  18343. if containerLen == 0 {
  18344. dd.ReadMapEnd()
  18345. return v, changed
  18346. }
  18347. var mk float64
  18348. var mv uint
  18349. hasLen := containerLen > 0
  18350. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18351. if esep {
  18352. dd.ReadMapElemKey()
  18353. }
  18354. mk = dd.DecodeFloat(false)
  18355. if esep {
  18356. dd.ReadMapElemValue()
  18357. }
  18358. if dd.TryDecodeAsNil() {
  18359. if d.h.DeleteOnNilMapValue {
  18360. delete(v, mk)
  18361. } else {
  18362. v[mk] = 0
  18363. }
  18364. continue
  18365. }
  18366. mv = uint(dd.DecodeUint(uintBitsize))
  18367. if v != nil {
  18368. v[mk] = mv
  18369. }
  18370. }
  18371. dd.ReadMapEnd()
  18372. return v, changed
  18373. }
  18374. func (d *Decoder) fastpathDecMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  18375. if rv.Kind() == reflect.Ptr {
  18376. vp := rv2i(rv).(*map[float64]uint8)
  18377. if v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, true, d); changed {
  18378. *vp = v
  18379. }
  18380. return
  18381. }
  18382. fastpathTV.DecMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), false, d)
  18383. }
  18384. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, d *Decoder) {
  18385. if v, changed := f.DecMapFloat64Uint8V(*vp, true, d); changed {
  18386. *vp = v
  18387. }
  18388. }
  18389. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, canChange bool,
  18390. d *Decoder) (_ map[float64]uint8, changed bool) {
  18391. dd, esep := d.d, d.hh.hasElemSeparators()
  18392. containerLen := dd.ReadMapStart()
  18393. if canChange && v == nil {
  18394. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  18395. v = make(map[float64]uint8, xlen)
  18396. changed = true
  18397. }
  18398. if containerLen == 0 {
  18399. dd.ReadMapEnd()
  18400. return v, changed
  18401. }
  18402. var mk float64
  18403. var mv uint8
  18404. hasLen := containerLen > 0
  18405. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18406. if esep {
  18407. dd.ReadMapElemKey()
  18408. }
  18409. mk = dd.DecodeFloat(false)
  18410. if esep {
  18411. dd.ReadMapElemValue()
  18412. }
  18413. if dd.TryDecodeAsNil() {
  18414. if d.h.DeleteOnNilMapValue {
  18415. delete(v, mk)
  18416. } else {
  18417. v[mk] = 0
  18418. }
  18419. continue
  18420. }
  18421. mv = uint8(dd.DecodeUint(8))
  18422. if v != nil {
  18423. v[mk] = mv
  18424. }
  18425. }
  18426. dd.ReadMapEnd()
  18427. return v, changed
  18428. }
  18429. func (d *Decoder) fastpathDecMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  18430. if rv.Kind() == reflect.Ptr {
  18431. vp := rv2i(rv).(*map[float64]uint16)
  18432. if v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, true, d); changed {
  18433. *vp = v
  18434. }
  18435. return
  18436. }
  18437. fastpathTV.DecMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), false, d)
  18438. }
  18439. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, d *Decoder) {
  18440. if v, changed := f.DecMapFloat64Uint16V(*vp, true, d); changed {
  18441. *vp = v
  18442. }
  18443. }
  18444. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, canChange bool,
  18445. d *Decoder) (_ map[float64]uint16, changed bool) {
  18446. dd, esep := d.d, d.hh.hasElemSeparators()
  18447. containerLen := dd.ReadMapStart()
  18448. if canChange && v == nil {
  18449. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  18450. v = make(map[float64]uint16, xlen)
  18451. changed = true
  18452. }
  18453. if containerLen == 0 {
  18454. dd.ReadMapEnd()
  18455. return v, changed
  18456. }
  18457. var mk float64
  18458. var mv uint16
  18459. hasLen := containerLen > 0
  18460. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18461. if esep {
  18462. dd.ReadMapElemKey()
  18463. }
  18464. mk = dd.DecodeFloat(false)
  18465. if esep {
  18466. dd.ReadMapElemValue()
  18467. }
  18468. if dd.TryDecodeAsNil() {
  18469. if d.h.DeleteOnNilMapValue {
  18470. delete(v, mk)
  18471. } else {
  18472. v[mk] = 0
  18473. }
  18474. continue
  18475. }
  18476. mv = uint16(dd.DecodeUint(16))
  18477. if v != nil {
  18478. v[mk] = mv
  18479. }
  18480. }
  18481. dd.ReadMapEnd()
  18482. return v, changed
  18483. }
  18484. func (d *Decoder) fastpathDecMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  18485. if rv.Kind() == reflect.Ptr {
  18486. vp := rv2i(rv).(*map[float64]uint32)
  18487. if v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, true, d); changed {
  18488. *vp = v
  18489. }
  18490. return
  18491. }
  18492. fastpathTV.DecMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), false, d)
  18493. }
  18494. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, d *Decoder) {
  18495. if v, changed := f.DecMapFloat64Uint32V(*vp, true, d); changed {
  18496. *vp = v
  18497. }
  18498. }
  18499. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, canChange bool,
  18500. d *Decoder) (_ map[float64]uint32, changed bool) {
  18501. dd, esep := d.d, d.hh.hasElemSeparators()
  18502. containerLen := dd.ReadMapStart()
  18503. if canChange && v == nil {
  18504. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18505. v = make(map[float64]uint32, xlen)
  18506. changed = true
  18507. }
  18508. if containerLen == 0 {
  18509. dd.ReadMapEnd()
  18510. return v, changed
  18511. }
  18512. var mk float64
  18513. var mv uint32
  18514. hasLen := containerLen > 0
  18515. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18516. if esep {
  18517. dd.ReadMapElemKey()
  18518. }
  18519. mk = dd.DecodeFloat(false)
  18520. if esep {
  18521. dd.ReadMapElemValue()
  18522. }
  18523. if dd.TryDecodeAsNil() {
  18524. if d.h.DeleteOnNilMapValue {
  18525. delete(v, mk)
  18526. } else {
  18527. v[mk] = 0
  18528. }
  18529. continue
  18530. }
  18531. mv = uint32(dd.DecodeUint(32))
  18532. if v != nil {
  18533. v[mk] = mv
  18534. }
  18535. }
  18536. dd.ReadMapEnd()
  18537. return v, changed
  18538. }
  18539. func (d *Decoder) fastpathDecMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  18540. if rv.Kind() == reflect.Ptr {
  18541. vp := rv2i(rv).(*map[float64]uint64)
  18542. if v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, true, d); changed {
  18543. *vp = v
  18544. }
  18545. return
  18546. }
  18547. fastpathTV.DecMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), false, d)
  18548. }
  18549. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, d *Decoder) {
  18550. if v, changed := f.DecMapFloat64Uint64V(*vp, true, d); changed {
  18551. *vp = v
  18552. }
  18553. }
  18554. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, canChange bool,
  18555. d *Decoder) (_ map[float64]uint64, changed bool) {
  18556. dd, esep := d.d, d.hh.hasElemSeparators()
  18557. containerLen := dd.ReadMapStart()
  18558. if canChange && v == nil {
  18559. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  18560. v = make(map[float64]uint64, xlen)
  18561. changed = true
  18562. }
  18563. if containerLen == 0 {
  18564. dd.ReadMapEnd()
  18565. return v, changed
  18566. }
  18567. var mk float64
  18568. var mv uint64
  18569. hasLen := containerLen > 0
  18570. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18571. if esep {
  18572. dd.ReadMapElemKey()
  18573. }
  18574. mk = dd.DecodeFloat(false)
  18575. if esep {
  18576. dd.ReadMapElemValue()
  18577. }
  18578. if dd.TryDecodeAsNil() {
  18579. if d.h.DeleteOnNilMapValue {
  18580. delete(v, mk)
  18581. } else {
  18582. v[mk] = 0
  18583. }
  18584. continue
  18585. }
  18586. mv = dd.DecodeUint(64)
  18587. if v != nil {
  18588. v[mk] = mv
  18589. }
  18590. }
  18591. dd.ReadMapEnd()
  18592. return v, changed
  18593. }
  18594. func (d *Decoder) fastpathDecMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  18595. if rv.Kind() == reflect.Ptr {
  18596. vp := rv2i(rv).(*map[float64]uintptr)
  18597. if v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, true, d); changed {
  18598. *vp = v
  18599. }
  18600. return
  18601. }
  18602. fastpathTV.DecMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), false, d)
  18603. }
  18604. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, d *Decoder) {
  18605. if v, changed := f.DecMapFloat64UintptrV(*vp, true, d); changed {
  18606. *vp = v
  18607. }
  18608. }
  18609. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, canChange bool,
  18610. d *Decoder) (_ map[float64]uintptr, changed bool) {
  18611. dd, esep := d.d, d.hh.hasElemSeparators()
  18612. containerLen := dd.ReadMapStart()
  18613. if canChange && v == nil {
  18614. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  18615. v = make(map[float64]uintptr, xlen)
  18616. changed = true
  18617. }
  18618. if containerLen == 0 {
  18619. dd.ReadMapEnd()
  18620. return v, changed
  18621. }
  18622. var mk float64
  18623. var mv uintptr
  18624. hasLen := containerLen > 0
  18625. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18626. if esep {
  18627. dd.ReadMapElemKey()
  18628. }
  18629. mk = dd.DecodeFloat(false)
  18630. if esep {
  18631. dd.ReadMapElemValue()
  18632. }
  18633. if dd.TryDecodeAsNil() {
  18634. if d.h.DeleteOnNilMapValue {
  18635. delete(v, mk)
  18636. } else {
  18637. v[mk] = 0
  18638. }
  18639. continue
  18640. }
  18641. mv = uintptr(dd.DecodeUint(uintBitsize))
  18642. if v != nil {
  18643. v[mk] = mv
  18644. }
  18645. }
  18646. dd.ReadMapEnd()
  18647. return v, changed
  18648. }
  18649. func (d *Decoder) fastpathDecMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  18650. if rv.Kind() == reflect.Ptr {
  18651. vp := rv2i(rv).(*map[float64]int)
  18652. if v, changed := fastpathTV.DecMapFloat64IntV(*vp, true, d); changed {
  18653. *vp = v
  18654. }
  18655. return
  18656. }
  18657. fastpathTV.DecMapFloat64IntV(rv2i(rv).(map[float64]int), false, d)
  18658. }
  18659. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, d *Decoder) {
  18660. if v, changed := f.DecMapFloat64IntV(*vp, true, d); changed {
  18661. *vp = v
  18662. }
  18663. }
  18664. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, canChange bool,
  18665. d *Decoder) (_ map[float64]int, changed bool) {
  18666. dd, esep := d.d, d.hh.hasElemSeparators()
  18667. containerLen := dd.ReadMapStart()
  18668. if canChange && v == nil {
  18669. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  18670. v = make(map[float64]int, xlen)
  18671. changed = true
  18672. }
  18673. if containerLen == 0 {
  18674. dd.ReadMapEnd()
  18675. return v, changed
  18676. }
  18677. var mk float64
  18678. var mv int
  18679. hasLen := containerLen > 0
  18680. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18681. if esep {
  18682. dd.ReadMapElemKey()
  18683. }
  18684. mk = dd.DecodeFloat(false)
  18685. if esep {
  18686. dd.ReadMapElemValue()
  18687. }
  18688. if dd.TryDecodeAsNil() {
  18689. if d.h.DeleteOnNilMapValue {
  18690. delete(v, mk)
  18691. } else {
  18692. v[mk] = 0
  18693. }
  18694. continue
  18695. }
  18696. mv = int(dd.DecodeInt(intBitsize))
  18697. if v != nil {
  18698. v[mk] = mv
  18699. }
  18700. }
  18701. dd.ReadMapEnd()
  18702. return v, changed
  18703. }
  18704. func (d *Decoder) fastpathDecMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  18705. if rv.Kind() == reflect.Ptr {
  18706. vp := rv2i(rv).(*map[float64]int8)
  18707. if v, changed := fastpathTV.DecMapFloat64Int8V(*vp, true, d); changed {
  18708. *vp = v
  18709. }
  18710. return
  18711. }
  18712. fastpathTV.DecMapFloat64Int8V(rv2i(rv).(map[float64]int8), false, d)
  18713. }
  18714. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, d *Decoder) {
  18715. if v, changed := f.DecMapFloat64Int8V(*vp, true, d); changed {
  18716. *vp = v
  18717. }
  18718. }
  18719. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, canChange bool,
  18720. d *Decoder) (_ map[float64]int8, changed bool) {
  18721. dd, esep := d.d, d.hh.hasElemSeparators()
  18722. containerLen := dd.ReadMapStart()
  18723. if canChange && v == nil {
  18724. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  18725. v = make(map[float64]int8, xlen)
  18726. changed = true
  18727. }
  18728. if containerLen == 0 {
  18729. dd.ReadMapEnd()
  18730. return v, changed
  18731. }
  18732. var mk float64
  18733. var mv int8
  18734. hasLen := containerLen > 0
  18735. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18736. if esep {
  18737. dd.ReadMapElemKey()
  18738. }
  18739. mk = dd.DecodeFloat(false)
  18740. if esep {
  18741. dd.ReadMapElemValue()
  18742. }
  18743. if dd.TryDecodeAsNil() {
  18744. if d.h.DeleteOnNilMapValue {
  18745. delete(v, mk)
  18746. } else {
  18747. v[mk] = 0
  18748. }
  18749. continue
  18750. }
  18751. mv = int8(dd.DecodeInt(8))
  18752. if v != nil {
  18753. v[mk] = mv
  18754. }
  18755. }
  18756. dd.ReadMapEnd()
  18757. return v, changed
  18758. }
  18759. func (d *Decoder) fastpathDecMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  18760. if rv.Kind() == reflect.Ptr {
  18761. vp := rv2i(rv).(*map[float64]int16)
  18762. if v, changed := fastpathTV.DecMapFloat64Int16V(*vp, true, d); changed {
  18763. *vp = v
  18764. }
  18765. return
  18766. }
  18767. fastpathTV.DecMapFloat64Int16V(rv2i(rv).(map[float64]int16), false, d)
  18768. }
  18769. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, d *Decoder) {
  18770. if v, changed := f.DecMapFloat64Int16V(*vp, true, d); changed {
  18771. *vp = v
  18772. }
  18773. }
  18774. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, canChange bool,
  18775. d *Decoder) (_ map[float64]int16, changed bool) {
  18776. dd, esep := d.d, d.hh.hasElemSeparators()
  18777. containerLen := dd.ReadMapStart()
  18778. if canChange && v == nil {
  18779. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  18780. v = make(map[float64]int16, xlen)
  18781. changed = true
  18782. }
  18783. if containerLen == 0 {
  18784. dd.ReadMapEnd()
  18785. return v, changed
  18786. }
  18787. var mk float64
  18788. var mv int16
  18789. hasLen := containerLen > 0
  18790. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18791. if esep {
  18792. dd.ReadMapElemKey()
  18793. }
  18794. mk = dd.DecodeFloat(false)
  18795. if esep {
  18796. dd.ReadMapElemValue()
  18797. }
  18798. if dd.TryDecodeAsNil() {
  18799. if d.h.DeleteOnNilMapValue {
  18800. delete(v, mk)
  18801. } else {
  18802. v[mk] = 0
  18803. }
  18804. continue
  18805. }
  18806. mv = int16(dd.DecodeInt(16))
  18807. if v != nil {
  18808. v[mk] = mv
  18809. }
  18810. }
  18811. dd.ReadMapEnd()
  18812. return v, changed
  18813. }
  18814. func (d *Decoder) fastpathDecMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  18815. if rv.Kind() == reflect.Ptr {
  18816. vp := rv2i(rv).(*map[float64]int32)
  18817. if v, changed := fastpathTV.DecMapFloat64Int32V(*vp, true, d); changed {
  18818. *vp = v
  18819. }
  18820. return
  18821. }
  18822. fastpathTV.DecMapFloat64Int32V(rv2i(rv).(map[float64]int32), false, d)
  18823. }
  18824. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, d *Decoder) {
  18825. if v, changed := f.DecMapFloat64Int32V(*vp, true, d); changed {
  18826. *vp = v
  18827. }
  18828. }
  18829. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, canChange bool,
  18830. d *Decoder) (_ map[float64]int32, changed bool) {
  18831. dd, esep := d.d, d.hh.hasElemSeparators()
  18832. containerLen := dd.ReadMapStart()
  18833. if canChange && v == nil {
  18834. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18835. v = make(map[float64]int32, xlen)
  18836. changed = true
  18837. }
  18838. if containerLen == 0 {
  18839. dd.ReadMapEnd()
  18840. return v, changed
  18841. }
  18842. var mk float64
  18843. var mv int32
  18844. hasLen := containerLen > 0
  18845. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18846. if esep {
  18847. dd.ReadMapElemKey()
  18848. }
  18849. mk = dd.DecodeFloat(false)
  18850. if esep {
  18851. dd.ReadMapElemValue()
  18852. }
  18853. if dd.TryDecodeAsNil() {
  18854. if d.h.DeleteOnNilMapValue {
  18855. delete(v, mk)
  18856. } else {
  18857. v[mk] = 0
  18858. }
  18859. continue
  18860. }
  18861. mv = int32(dd.DecodeInt(32))
  18862. if v != nil {
  18863. v[mk] = mv
  18864. }
  18865. }
  18866. dd.ReadMapEnd()
  18867. return v, changed
  18868. }
  18869. func (d *Decoder) fastpathDecMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  18870. if rv.Kind() == reflect.Ptr {
  18871. vp := rv2i(rv).(*map[float64]int64)
  18872. if v, changed := fastpathTV.DecMapFloat64Int64V(*vp, true, d); changed {
  18873. *vp = v
  18874. }
  18875. return
  18876. }
  18877. fastpathTV.DecMapFloat64Int64V(rv2i(rv).(map[float64]int64), false, d)
  18878. }
  18879. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, d *Decoder) {
  18880. if v, changed := f.DecMapFloat64Int64V(*vp, true, d); changed {
  18881. *vp = v
  18882. }
  18883. }
  18884. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, canChange bool,
  18885. d *Decoder) (_ map[float64]int64, changed bool) {
  18886. dd, esep := d.d, d.hh.hasElemSeparators()
  18887. containerLen := dd.ReadMapStart()
  18888. if canChange && v == nil {
  18889. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  18890. v = make(map[float64]int64, xlen)
  18891. changed = true
  18892. }
  18893. if containerLen == 0 {
  18894. dd.ReadMapEnd()
  18895. return v, changed
  18896. }
  18897. var mk float64
  18898. var mv int64
  18899. hasLen := containerLen > 0
  18900. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18901. if esep {
  18902. dd.ReadMapElemKey()
  18903. }
  18904. mk = dd.DecodeFloat(false)
  18905. if esep {
  18906. dd.ReadMapElemValue()
  18907. }
  18908. if dd.TryDecodeAsNil() {
  18909. if d.h.DeleteOnNilMapValue {
  18910. delete(v, mk)
  18911. } else {
  18912. v[mk] = 0
  18913. }
  18914. continue
  18915. }
  18916. mv = dd.DecodeInt(64)
  18917. if v != nil {
  18918. v[mk] = mv
  18919. }
  18920. }
  18921. dd.ReadMapEnd()
  18922. return v, changed
  18923. }
  18924. func (d *Decoder) fastpathDecMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  18925. if rv.Kind() == reflect.Ptr {
  18926. vp := rv2i(rv).(*map[float64]float32)
  18927. if v, changed := fastpathTV.DecMapFloat64Float32V(*vp, true, d); changed {
  18928. *vp = v
  18929. }
  18930. return
  18931. }
  18932. fastpathTV.DecMapFloat64Float32V(rv2i(rv).(map[float64]float32), false, d)
  18933. }
  18934. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, d *Decoder) {
  18935. if v, changed := f.DecMapFloat64Float32V(*vp, true, d); changed {
  18936. *vp = v
  18937. }
  18938. }
  18939. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, canChange bool,
  18940. d *Decoder) (_ map[float64]float32, changed bool) {
  18941. dd, esep := d.d, d.hh.hasElemSeparators()
  18942. containerLen := dd.ReadMapStart()
  18943. if canChange && v == nil {
  18944. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18945. v = make(map[float64]float32, xlen)
  18946. changed = true
  18947. }
  18948. if containerLen == 0 {
  18949. dd.ReadMapEnd()
  18950. return v, changed
  18951. }
  18952. var mk float64
  18953. var mv float32
  18954. hasLen := containerLen > 0
  18955. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18956. if esep {
  18957. dd.ReadMapElemKey()
  18958. }
  18959. mk = dd.DecodeFloat(false)
  18960. if esep {
  18961. dd.ReadMapElemValue()
  18962. }
  18963. if dd.TryDecodeAsNil() {
  18964. if d.h.DeleteOnNilMapValue {
  18965. delete(v, mk)
  18966. } else {
  18967. v[mk] = 0
  18968. }
  18969. continue
  18970. }
  18971. mv = float32(dd.DecodeFloat(true))
  18972. if v != nil {
  18973. v[mk] = mv
  18974. }
  18975. }
  18976. dd.ReadMapEnd()
  18977. return v, changed
  18978. }
  18979. func (d *Decoder) fastpathDecMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  18980. if rv.Kind() == reflect.Ptr {
  18981. vp := rv2i(rv).(*map[float64]float64)
  18982. if v, changed := fastpathTV.DecMapFloat64Float64V(*vp, true, d); changed {
  18983. *vp = v
  18984. }
  18985. return
  18986. }
  18987. fastpathTV.DecMapFloat64Float64V(rv2i(rv).(map[float64]float64), false, d)
  18988. }
  18989. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, d *Decoder) {
  18990. if v, changed := f.DecMapFloat64Float64V(*vp, true, d); changed {
  18991. *vp = v
  18992. }
  18993. }
  18994. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, canChange bool,
  18995. d *Decoder) (_ map[float64]float64, changed bool) {
  18996. dd, esep := d.d, d.hh.hasElemSeparators()
  18997. containerLen := dd.ReadMapStart()
  18998. if canChange && v == nil {
  18999. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19000. v = make(map[float64]float64, xlen)
  19001. changed = true
  19002. }
  19003. if containerLen == 0 {
  19004. dd.ReadMapEnd()
  19005. return v, changed
  19006. }
  19007. var mk float64
  19008. var mv float64
  19009. hasLen := containerLen > 0
  19010. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19011. if esep {
  19012. dd.ReadMapElemKey()
  19013. }
  19014. mk = dd.DecodeFloat(false)
  19015. if esep {
  19016. dd.ReadMapElemValue()
  19017. }
  19018. if dd.TryDecodeAsNil() {
  19019. if d.h.DeleteOnNilMapValue {
  19020. delete(v, mk)
  19021. } else {
  19022. v[mk] = 0
  19023. }
  19024. continue
  19025. }
  19026. mv = dd.DecodeFloat(false)
  19027. if v != nil {
  19028. v[mk] = mv
  19029. }
  19030. }
  19031. dd.ReadMapEnd()
  19032. return v, changed
  19033. }
  19034. func (d *Decoder) fastpathDecMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  19035. if rv.Kind() == reflect.Ptr {
  19036. vp := rv2i(rv).(*map[float64]bool)
  19037. if v, changed := fastpathTV.DecMapFloat64BoolV(*vp, true, d); changed {
  19038. *vp = v
  19039. }
  19040. return
  19041. }
  19042. fastpathTV.DecMapFloat64BoolV(rv2i(rv).(map[float64]bool), false, d)
  19043. }
  19044. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, d *Decoder) {
  19045. if v, changed := f.DecMapFloat64BoolV(*vp, true, d); changed {
  19046. *vp = v
  19047. }
  19048. }
  19049. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, canChange bool,
  19050. d *Decoder) (_ map[float64]bool, changed bool) {
  19051. dd, esep := d.d, d.hh.hasElemSeparators()
  19052. containerLen := dd.ReadMapStart()
  19053. if canChange && v == nil {
  19054. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  19055. v = make(map[float64]bool, xlen)
  19056. changed = true
  19057. }
  19058. if containerLen == 0 {
  19059. dd.ReadMapEnd()
  19060. return v, changed
  19061. }
  19062. var mk float64
  19063. var mv bool
  19064. hasLen := containerLen > 0
  19065. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19066. if esep {
  19067. dd.ReadMapElemKey()
  19068. }
  19069. mk = dd.DecodeFloat(false)
  19070. if esep {
  19071. dd.ReadMapElemValue()
  19072. }
  19073. if dd.TryDecodeAsNil() {
  19074. if d.h.DeleteOnNilMapValue {
  19075. delete(v, mk)
  19076. } else {
  19077. v[mk] = false
  19078. }
  19079. continue
  19080. }
  19081. mv = dd.DecodeBool()
  19082. if v != nil {
  19083. v[mk] = mv
  19084. }
  19085. }
  19086. dd.ReadMapEnd()
  19087. return v, changed
  19088. }
  19089. func (d *Decoder) fastpathDecMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  19090. if rv.Kind() == reflect.Ptr {
  19091. vp := rv2i(rv).(*map[uint]interface{})
  19092. if v, changed := fastpathTV.DecMapUintIntfV(*vp, true, d); changed {
  19093. *vp = v
  19094. }
  19095. return
  19096. }
  19097. fastpathTV.DecMapUintIntfV(rv2i(rv).(map[uint]interface{}), false, d)
  19098. }
  19099. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, d *Decoder) {
  19100. if v, changed := f.DecMapUintIntfV(*vp, true, d); changed {
  19101. *vp = v
  19102. }
  19103. }
  19104. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, canChange bool,
  19105. d *Decoder) (_ map[uint]interface{}, changed bool) {
  19106. dd, esep := d.d, d.hh.hasElemSeparators()
  19107. containerLen := dd.ReadMapStart()
  19108. if canChange && v == nil {
  19109. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19110. v = make(map[uint]interface{}, xlen)
  19111. changed = true
  19112. }
  19113. if containerLen == 0 {
  19114. dd.ReadMapEnd()
  19115. return v, changed
  19116. }
  19117. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  19118. var mk uint
  19119. var mv interface{}
  19120. hasLen := containerLen > 0
  19121. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19122. if esep {
  19123. dd.ReadMapElemKey()
  19124. }
  19125. mk = uint(dd.DecodeUint(uintBitsize))
  19126. if esep {
  19127. dd.ReadMapElemValue()
  19128. }
  19129. if dd.TryDecodeAsNil() {
  19130. if d.h.DeleteOnNilMapValue {
  19131. delete(v, mk)
  19132. } else {
  19133. v[mk] = nil
  19134. }
  19135. continue
  19136. }
  19137. if mapGet {
  19138. mv = v[mk]
  19139. } else {
  19140. mv = nil
  19141. }
  19142. d.decode(&mv)
  19143. if v != nil {
  19144. v[mk] = mv
  19145. }
  19146. }
  19147. dd.ReadMapEnd()
  19148. return v, changed
  19149. }
  19150. func (d *Decoder) fastpathDecMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  19151. if rv.Kind() == reflect.Ptr {
  19152. vp := rv2i(rv).(*map[uint]string)
  19153. if v, changed := fastpathTV.DecMapUintStringV(*vp, true, d); changed {
  19154. *vp = v
  19155. }
  19156. return
  19157. }
  19158. fastpathTV.DecMapUintStringV(rv2i(rv).(map[uint]string), false, d)
  19159. }
  19160. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, d *Decoder) {
  19161. if v, changed := f.DecMapUintStringV(*vp, true, d); changed {
  19162. *vp = v
  19163. }
  19164. }
  19165. func (_ fastpathT) DecMapUintStringV(v map[uint]string, canChange bool,
  19166. d *Decoder) (_ map[uint]string, changed bool) {
  19167. dd, esep := d.d, d.hh.hasElemSeparators()
  19168. containerLen := dd.ReadMapStart()
  19169. if canChange && v == nil {
  19170. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19171. v = make(map[uint]string, xlen)
  19172. changed = true
  19173. }
  19174. if containerLen == 0 {
  19175. dd.ReadMapEnd()
  19176. return v, changed
  19177. }
  19178. var mk uint
  19179. var mv string
  19180. hasLen := containerLen > 0
  19181. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19182. if esep {
  19183. dd.ReadMapElemKey()
  19184. }
  19185. mk = uint(dd.DecodeUint(uintBitsize))
  19186. if esep {
  19187. dd.ReadMapElemValue()
  19188. }
  19189. if dd.TryDecodeAsNil() {
  19190. if d.h.DeleteOnNilMapValue {
  19191. delete(v, mk)
  19192. } else {
  19193. v[mk] = ""
  19194. }
  19195. continue
  19196. }
  19197. mv = dd.DecodeString()
  19198. if v != nil {
  19199. v[mk] = mv
  19200. }
  19201. }
  19202. dd.ReadMapEnd()
  19203. return v, changed
  19204. }
  19205. func (d *Decoder) fastpathDecMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  19206. if rv.Kind() == reflect.Ptr {
  19207. vp := rv2i(rv).(*map[uint]uint)
  19208. if v, changed := fastpathTV.DecMapUintUintV(*vp, true, d); changed {
  19209. *vp = v
  19210. }
  19211. return
  19212. }
  19213. fastpathTV.DecMapUintUintV(rv2i(rv).(map[uint]uint), false, d)
  19214. }
  19215. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, d *Decoder) {
  19216. if v, changed := f.DecMapUintUintV(*vp, true, d); changed {
  19217. *vp = v
  19218. }
  19219. }
  19220. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, canChange bool,
  19221. d *Decoder) (_ map[uint]uint, changed bool) {
  19222. dd, esep := d.d, d.hh.hasElemSeparators()
  19223. containerLen := dd.ReadMapStart()
  19224. if canChange && v == nil {
  19225. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19226. v = make(map[uint]uint, xlen)
  19227. changed = true
  19228. }
  19229. if containerLen == 0 {
  19230. dd.ReadMapEnd()
  19231. return v, changed
  19232. }
  19233. var mk uint
  19234. var mv uint
  19235. hasLen := containerLen > 0
  19236. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19237. if esep {
  19238. dd.ReadMapElemKey()
  19239. }
  19240. mk = uint(dd.DecodeUint(uintBitsize))
  19241. if esep {
  19242. dd.ReadMapElemValue()
  19243. }
  19244. if dd.TryDecodeAsNil() {
  19245. if d.h.DeleteOnNilMapValue {
  19246. delete(v, mk)
  19247. } else {
  19248. v[mk] = 0
  19249. }
  19250. continue
  19251. }
  19252. mv = uint(dd.DecodeUint(uintBitsize))
  19253. if v != nil {
  19254. v[mk] = mv
  19255. }
  19256. }
  19257. dd.ReadMapEnd()
  19258. return v, changed
  19259. }
  19260. func (d *Decoder) fastpathDecMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  19261. if rv.Kind() == reflect.Ptr {
  19262. vp := rv2i(rv).(*map[uint]uint8)
  19263. if v, changed := fastpathTV.DecMapUintUint8V(*vp, true, d); changed {
  19264. *vp = v
  19265. }
  19266. return
  19267. }
  19268. fastpathTV.DecMapUintUint8V(rv2i(rv).(map[uint]uint8), false, d)
  19269. }
  19270. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, d *Decoder) {
  19271. if v, changed := f.DecMapUintUint8V(*vp, true, d); changed {
  19272. *vp = v
  19273. }
  19274. }
  19275. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, canChange bool,
  19276. d *Decoder) (_ map[uint]uint8, changed bool) {
  19277. dd, esep := d.d, d.hh.hasElemSeparators()
  19278. containerLen := dd.ReadMapStart()
  19279. if canChange && v == nil {
  19280. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  19281. v = make(map[uint]uint8, xlen)
  19282. changed = true
  19283. }
  19284. if containerLen == 0 {
  19285. dd.ReadMapEnd()
  19286. return v, changed
  19287. }
  19288. var mk uint
  19289. var mv uint8
  19290. hasLen := containerLen > 0
  19291. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19292. if esep {
  19293. dd.ReadMapElemKey()
  19294. }
  19295. mk = uint(dd.DecodeUint(uintBitsize))
  19296. if esep {
  19297. dd.ReadMapElemValue()
  19298. }
  19299. if dd.TryDecodeAsNil() {
  19300. if d.h.DeleteOnNilMapValue {
  19301. delete(v, mk)
  19302. } else {
  19303. v[mk] = 0
  19304. }
  19305. continue
  19306. }
  19307. mv = uint8(dd.DecodeUint(8))
  19308. if v != nil {
  19309. v[mk] = mv
  19310. }
  19311. }
  19312. dd.ReadMapEnd()
  19313. return v, changed
  19314. }
  19315. func (d *Decoder) fastpathDecMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  19316. if rv.Kind() == reflect.Ptr {
  19317. vp := rv2i(rv).(*map[uint]uint16)
  19318. if v, changed := fastpathTV.DecMapUintUint16V(*vp, true, d); changed {
  19319. *vp = v
  19320. }
  19321. return
  19322. }
  19323. fastpathTV.DecMapUintUint16V(rv2i(rv).(map[uint]uint16), false, d)
  19324. }
  19325. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, d *Decoder) {
  19326. if v, changed := f.DecMapUintUint16V(*vp, true, d); changed {
  19327. *vp = v
  19328. }
  19329. }
  19330. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, canChange bool,
  19331. d *Decoder) (_ map[uint]uint16, changed bool) {
  19332. dd, esep := d.d, d.hh.hasElemSeparators()
  19333. containerLen := dd.ReadMapStart()
  19334. if canChange && v == nil {
  19335. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  19336. v = make(map[uint]uint16, xlen)
  19337. changed = true
  19338. }
  19339. if containerLen == 0 {
  19340. dd.ReadMapEnd()
  19341. return v, changed
  19342. }
  19343. var mk uint
  19344. var mv uint16
  19345. hasLen := containerLen > 0
  19346. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19347. if esep {
  19348. dd.ReadMapElemKey()
  19349. }
  19350. mk = uint(dd.DecodeUint(uintBitsize))
  19351. if esep {
  19352. dd.ReadMapElemValue()
  19353. }
  19354. if dd.TryDecodeAsNil() {
  19355. if d.h.DeleteOnNilMapValue {
  19356. delete(v, mk)
  19357. } else {
  19358. v[mk] = 0
  19359. }
  19360. continue
  19361. }
  19362. mv = uint16(dd.DecodeUint(16))
  19363. if v != nil {
  19364. v[mk] = mv
  19365. }
  19366. }
  19367. dd.ReadMapEnd()
  19368. return v, changed
  19369. }
  19370. func (d *Decoder) fastpathDecMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  19371. if rv.Kind() == reflect.Ptr {
  19372. vp := rv2i(rv).(*map[uint]uint32)
  19373. if v, changed := fastpathTV.DecMapUintUint32V(*vp, true, d); changed {
  19374. *vp = v
  19375. }
  19376. return
  19377. }
  19378. fastpathTV.DecMapUintUint32V(rv2i(rv).(map[uint]uint32), false, d)
  19379. }
  19380. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, d *Decoder) {
  19381. if v, changed := f.DecMapUintUint32V(*vp, true, d); changed {
  19382. *vp = v
  19383. }
  19384. }
  19385. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, canChange bool,
  19386. d *Decoder) (_ map[uint]uint32, changed bool) {
  19387. dd, esep := d.d, d.hh.hasElemSeparators()
  19388. containerLen := dd.ReadMapStart()
  19389. if canChange && v == nil {
  19390. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19391. v = make(map[uint]uint32, xlen)
  19392. changed = true
  19393. }
  19394. if containerLen == 0 {
  19395. dd.ReadMapEnd()
  19396. return v, changed
  19397. }
  19398. var mk uint
  19399. var mv uint32
  19400. hasLen := containerLen > 0
  19401. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19402. if esep {
  19403. dd.ReadMapElemKey()
  19404. }
  19405. mk = uint(dd.DecodeUint(uintBitsize))
  19406. if esep {
  19407. dd.ReadMapElemValue()
  19408. }
  19409. if dd.TryDecodeAsNil() {
  19410. if d.h.DeleteOnNilMapValue {
  19411. delete(v, mk)
  19412. } else {
  19413. v[mk] = 0
  19414. }
  19415. continue
  19416. }
  19417. mv = uint32(dd.DecodeUint(32))
  19418. if v != nil {
  19419. v[mk] = mv
  19420. }
  19421. }
  19422. dd.ReadMapEnd()
  19423. return v, changed
  19424. }
  19425. func (d *Decoder) fastpathDecMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  19426. if rv.Kind() == reflect.Ptr {
  19427. vp := rv2i(rv).(*map[uint]uint64)
  19428. if v, changed := fastpathTV.DecMapUintUint64V(*vp, true, d); changed {
  19429. *vp = v
  19430. }
  19431. return
  19432. }
  19433. fastpathTV.DecMapUintUint64V(rv2i(rv).(map[uint]uint64), false, d)
  19434. }
  19435. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, d *Decoder) {
  19436. if v, changed := f.DecMapUintUint64V(*vp, true, d); changed {
  19437. *vp = v
  19438. }
  19439. }
  19440. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, canChange bool,
  19441. d *Decoder) (_ map[uint]uint64, changed bool) {
  19442. dd, esep := d.d, d.hh.hasElemSeparators()
  19443. containerLen := dd.ReadMapStart()
  19444. if canChange && v == nil {
  19445. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19446. v = make(map[uint]uint64, xlen)
  19447. changed = true
  19448. }
  19449. if containerLen == 0 {
  19450. dd.ReadMapEnd()
  19451. return v, changed
  19452. }
  19453. var mk uint
  19454. var mv uint64
  19455. hasLen := containerLen > 0
  19456. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19457. if esep {
  19458. dd.ReadMapElemKey()
  19459. }
  19460. mk = uint(dd.DecodeUint(uintBitsize))
  19461. if esep {
  19462. dd.ReadMapElemValue()
  19463. }
  19464. if dd.TryDecodeAsNil() {
  19465. if d.h.DeleteOnNilMapValue {
  19466. delete(v, mk)
  19467. } else {
  19468. v[mk] = 0
  19469. }
  19470. continue
  19471. }
  19472. mv = dd.DecodeUint(64)
  19473. if v != nil {
  19474. v[mk] = mv
  19475. }
  19476. }
  19477. dd.ReadMapEnd()
  19478. return v, changed
  19479. }
  19480. func (d *Decoder) fastpathDecMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  19481. if rv.Kind() == reflect.Ptr {
  19482. vp := rv2i(rv).(*map[uint]uintptr)
  19483. if v, changed := fastpathTV.DecMapUintUintptrV(*vp, true, d); changed {
  19484. *vp = v
  19485. }
  19486. return
  19487. }
  19488. fastpathTV.DecMapUintUintptrV(rv2i(rv).(map[uint]uintptr), false, d)
  19489. }
  19490. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, d *Decoder) {
  19491. if v, changed := f.DecMapUintUintptrV(*vp, true, d); changed {
  19492. *vp = v
  19493. }
  19494. }
  19495. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, canChange bool,
  19496. d *Decoder) (_ map[uint]uintptr, changed bool) {
  19497. dd, esep := d.d, d.hh.hasElemSeparators()
  19498. containerLen := dd.ReadMapStart()
  19499. if canChange && v == nil {
  19500. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19501. v = make(map[uint]uintptr, xlen)
  19502. changed = true
  19503. }
  19504. if containerLen == 0 {
  19505. dd.ReadMapEnd()
  19506. return v, changed
  19507. }
  19508. var mk uint
  19509. var mv uintptr
  19510. hasLen := containerLen > 0
  19511. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19512. if esep {
  19513. dd.ReadMapElemKey()
  19514. }
  19515. mk = uint(dd.DecodeUint(uintBitsize))
  19516. if esep {
  19517. dd.ReadMapElemValue()
  19518. }
  19519. if dd.TryDecodeAsNil() {
  19520. if d.h.DeleteOnNilMapValue {
  19521. delete(v, mk)
  19522. } else {
  19523. v[mk] = 0
  19524. }
  19525. continue
  19526. }
  19527. mv = uintptr(dd.DecodeUint(uintBitsize))
  19528. if v != nil {
  19529. v[mk] = mv
  19530. }
  19531. }
  19532. dd.ReadMapEnd()
  19533. return v, changed
  19534. }
  19535. func (d *Decoder) fastpathDecMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  19536. if rv.Kind() == reflect.Ptr {
  19537. vp := rv2i(rv).(*map[uint]int)
  19538. if v, changed := fastpathTV.DecMapUintIntV(*vp, true, d); changed {
  19539. *vp = v
  19540. }
  19541. return
  19542. }
  19543. fastpathTV.DecMapUintIntV(rv2i(rv).(map[uint]int), false, d)
  19544. }
  19545. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, d *Decoder) {
  19546. if v, changed := f.DecMapUintIntV(*vp, true, d); changed {
  19547. *vp = v
  19548. }
  19549. }
  19550. func (_ fastpathT) DecMapUintIntV(v map[uint]int, canChange bool,
  19551. d *Decoder) (_ map[uint]int, changed bool) {
  19552. dd, esep := d.d, d.hh.hasElemSeparators()
  19553. containerLen := dd.ReadMapStart()
  19554. if canChange && v == nil {
  19555. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19556. v = make(map[uint]int, xlen)
  19557. changed = true
  19558. }
  19559. if containerLen == 0 {
  19560. dd.ReadMapEnd()
  19561. return v, changed
  19562. }
  19563. var mk uint
  19564. var mv int
  19565. hasLen := containerLen > 0
  19566. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19567. if esep {
  19568. dd.ReadMapElemKey()
  19569. }
  19570. mk = uint(dd.DecodeUint(uintBitsize))
  19571. if esep {
  19572. dd.ReadMapElemValue()
  19573. }
  19574. if dd.TryDecodeAsNil() {
  19575. if d.h.DeleteOnNilMapValue {
  19576. delete(v, mk)
  19577. } else {
  19578. v[mk] = 0
  19579. }
  19580. continue
  19581. }
  19582. mv = int(dd.DecodeInt(intBitsize))
  19583. if v != nil {
  19584. v[mk] = mv
  19585. }
  19586. }
  19587. dd.ReadMapEnd()
  19588. return v, changed
  19589. }
  19590. func (d *Decoder) fastpathDecMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  19591. if rv.Kind() == reflect.Ptr {
  19592. vp := rv2i(rv).(*map[uint]int8)
  19593. if v, changed := fastpathTV.DecMapUintInt8V(*vp, true, d); changed {
  19594. *vp = v
  19595. }
  19596. return
  19597. }
  19598. fastpathTV.DecMapUintInt8V(rv2i(rv).(map[uint]int8), false, d)
  19599. }
  19600. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, d *Decoder) {
  19601. if v, changed := f.DecMapUintInt8V(*vp, true, d); changed {
  19602. *vp = v
  19603. }
  19604. }
  19605. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, canChange bool,
  19606. d *Decoder) (_ map[uint]int8, changed bool) {
  19607. dd, esep := d.d, d.hh.hasElemSeparators()
  19608. containerLen := dd.ReadMapStart()
  19609. if canChange && v == nil {
  19610. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  19611. v = make(map[uint]int8, xlen)
  19612. changed = true
  19613. }
  19614. if containerLen == 0 {
  19615. dd.ReadMapEnd()
  19616. return v, changed
  19617. }
  19618. var mk uint
  19619. var mv int8
  19620. hasLen := containerLen > 0
  19621. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19622. if esep {
  19623. dd.ReadMapElemKey()
  19624. }
  19625. mk = uint(dd.DecodeUint(uintBitsize))
  19626. if esep {
  19627. dd.ReadMapElemValue()
  19628. }
  19629. if dd.TryDecodeAsNil() {
  19630. if d.h.DeleteOnNilMapValue {
  19631. delete(v, mk)
  19632. } else {
  19633. v[mk] = 0
  19634. }
  19635. continue
  19636. }
  19637. mv = int8(dd.DecodeInt(8))
  19638. if v != nil {
  19639. v[mk] = mv
  19640. }
  19641. }
  19642. dd.ReadMapEnd()
  19643. return v, changed
  19644. }
  19645. func (d *Decoder) fastpathDecMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  19646. if rv.Kind() == reflect.Ptr {
  19647. vp := rv2i(rv).(*map[uint]int16)
  19648. if v, changed := fastpathTV.DecMapUintInt16V(*vp, true, d); changed {
  19649. *vp = v
  19650. }
  19651. return
  19652. }
  19653. fastpathTV.DecMapUintInt16V(rv2i(rv).(map[uint]int16), false, d)
  19654. }
  19655. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, d *Decoder) {
  19656. if v, changed := f.DecMapUintInt16V(*vp, true, d); changed {
  19657. *vp = v
  19658. }
  19659. }
  19660. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, canChange bool,
  19661. d *Decoder) (_ map[uint]int16, changed bool) {
  19662. dd, esep := d.d, d.hh.hasElemSeparators()
  19663. containerLen := dd.ReadMapStart()
  19664. if canChange && v == nil {
  19665. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  19666. v = make(map[uint]int16, xlen)
  19667. changed = true
  19668. }
  19669. if containerLen == 0 {
  19670. dd.ReadMapEnd()
  19671. return v, changed
  19672. }
  19673. var mk uint
  19674. var mv int16
  19675. hasLen := containerLen > 0
  19676. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19677. if esep {
  19678. dd.ReadMapElemKey()
  19679. }
  19680. mk = uint(dd.DecodeUint(uintBitsize))
  19681. if esep {
  19682. dd.ReadMapElemValue()
  19683. }
  19684. if dd.TryDecodeAsNil() {
  19685. if d.h.DeleteOnNilMapValue {
  19686. delete(v, mk)
  19687. } else {
  19688. v[mk] = 0
  19689. }
  19690. continue
  19691. }
  19692. mv = int16(dd.DecodeInt(16))
  19693. if v != nil {
  19694. v[mk] = mv
  19695. }
  19696. }
  19697. dd.ReadMapEnd()
  19698. return v, changed
  19699. }
  19700. func (d *Decoder) fastpathDecMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  19701. if rv.Kind() == reflect.Ptr {
  19702. vp := rv2i(rv).(*map[uint]int32)
  19703. if v, changed := fastpathTV.DecMapUintInt32V(*vp, true, d); changed {
  19704. *vp = v
  19705. }
  19706. return
  19707. }
  19708. fastpathTV.DecMapUintInt32V(rv2i(rv).(map[uint]int32), false, d)
  19709. }
  19710. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, d *Decoder) {
  19711. if v, changed := f.DecMapUintInt32V(*vp, true, d); changed {
  19712. *vp = v
  19713. }
  19714. }
  19715. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, canChange bool,
  19716. d *Decoder) (_ map[uint]int32, changed bool) {
  19717. dd, esep := d.d, d.hh.hasElemSeparators()
  19718. containerLen := dd.ReadMapStart()
  19719. if canChange && v == nil {
  19720. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19721. v = make(map[uint]int32, xlen)
  19722. changed = true
  19723. }
  19724. if containerLen == 0 {
  19725. dd.ReadMapEnd()
  19726. return v, changed
  19727. }
  19728. var mk uint
  19729. var mv int32
  19730. hasLen := containerLen > 0
  19731. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19732. if esep {
  19733. dd.ReadMapElemKey()
  19734. }
  19735. mk = uint(dd.DecodeUint(uintBitsize))
  19736. if esep {
  19737. dd.ReadMapElemValue()
  19738. }
  19739. if dd.TryDecodeAsNil() {
  19740. if d.h.DeleteOnNilMapValue {
  19741. delete(v, mk)
  19742. } else {
  19743. v[mk] = 0
  19744. }
  19745. continue
  19746. }
  19747. mv = int32(dd.DecodeInt(32))
  19748. if v != nil {
  19749. v[mk] = mv
  19750. }
  19751. }
  19752. dd.ReadMapEnd()
  19753. return v, changed
  19754. }
  19755. func (d *Decoder) fastpathDecMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  19756. if rv.Kind() == reflect.Ptr {
  19757. vp := rv2i(rv).(*map[uint]int64)
  19758. if v, changed := fastpathTV.DecMapUintInt64V(*vp, true, d); changed {
  19759. *vp = v
  19760. }
  19761. return
  19762. }
  19763. fastpathTV.DecMapUintInt64V(rv2i(rv).(map[uint]int64), false, d)
  19764. }
  19765. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, d *Decoder) {
  19766. if v, changed := f.DecMapUintInt64V(*vp, true, d); changed {
  19767. *vp = v
  19768. }
  19769. }
  19770. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, canChange bool,
  19771. d *Decoder) (_ map[uint]int64, changed bool) {
  19772. dd, esep := d.d, d.hh.hasElemSeparators()
  19773. containerLen := dd.ReadMapStart()
  19774. if canChange && v == nil {
  19775. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19776. v = make(map[uint]int64, xlen)
  19777. changed = true
  19778. }
  19779. if containerLen == 0 {
  19780. dd.ReadMapEnd()
  19781. return v, changed
  19782. }
  19783. var mk uint
  19784. var mv int64
  19785. hasLen := containerLen > 0
  19786. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19787. if esep {
  19788. dd.ReadMapElemKey()
  19789. }
  19790. mk = uint(dd.DecodeUint(uintBitsize))
  19791. if esep {
  19792. dd.ReadMapElemValue()
  19793. }
  19794. if dd.TryDecodeAsNil() {
  19795. if d.h.DeleteOnNilMapValue {
  19796. delete(v, mk)
  19797. } else {
  19798. v[mk] = 0
  19799. }
  19800. continue
  19801. }
  19802. mv = dd.DecodeInt(64)
  19803. if v != nil {
  19804. v[mk] = mv
  19805. }
  19806. }
  19807. dd.ReadMapEnd()
  19808. return v, changed
  19809. }
  19810. func (d *Decoder) fastpathDecMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  19811. if rv.Kind() == reflect.Ptr {
  19812. vp := rv2i(rv).(*map[uint]float32)
  19813. if v, changed := fastpathTV.DecMapUintFloat32V(*vp, true, d); changed {
  19814. *vp = v
  19815. }
  19816. return
  19817. }
  19818. fastpathTV.DecMapUintFloat32V(rv2i(rv).(map[uint]float32), false, d)
  19819. }
  19820. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, d *Decoder) {
  19821. if v, changed := f.DecMapUintFloat32V(*vp, true, d); changed {
  19822. *vp = v
  19823. }
  19824. }
  19825. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, canChange bool,
  19826. d *Decoder) (_ map[uint]float32, changed bool) {
  19827. dd, esep := d.d, d.hh.hasElemSeparators()
  19828. containerLen := dd.ReadMapStart()
  19829. if canChange && v == nil {
  19830. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19831. v = make(map[uint]float32, xlen)
  19832. changed = true
  19833. }
  19834. if containerLen == 0 {
  19835. dd.ReadMapEnd()
  19836. return v, changed
  19837. }
  19838. var mk uint
  19839. var mv float32
  19840. hasLen := containerLen > 0
  19841. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19842. if esep {
  19843. dd.ReadMapElemKey()
  19844. }
  19845. mk = uint(dd.DecodeUint(uintBitsize))
  19846. if esep {
  19847. dd.ReadMapElemValue()
  19848. }
  19849. if dd.TryDecodeAsNil() {
  19850. if d.h.DeleteOnNilMapValue {
  19851. delete(v, mk)
  19852. } else {
  19853. v[mk] = 0
  19854. }
  19855. continue
  19856. }
  19857. mv = float32(dd.DecodeFloat(true))
  19858. if v != nil {
  19859. v[mk] = mv
  19860. }
  19861. }
  19862. dd.ReadMapEnd()
  19863. return v, changed
  19864. }
  19865. func (d *Decoder) fastpathDecMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  19866. if rv.Kind() == reflect.Ptr {
  19867. vp := rv2i(rv).(*map[uint]float64)
  19868. if v, changed := fastpathTV.DecMapUintFloat64V(*vp, true, d); changed {
  19869. *vp = v
  19870. }
  19871. return
  19872. }
  19873. fastpathTV.DecMapUintFloat64V(rv2i(rv).(map[uint]float64), false, d)
  19874. }
  19875. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, d *Decoder) {
  19876. if v, changed := f.DecMapUintFloat64V(*vp, true, d); changed {
  19877. *vp = v
  19878. }
  19879. }
  19880. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, canChange bool,
  19881. d *Decoder) (_ map[uint]float64, changed bool) {
  19882. dd, esep := d.d, d.hh.hasElemSeparators()
  19883. containerLen := dd.ReadMapStart()
  19884. if canChange && v == nil {
  19885. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  19886. v = make(map[uint]float64, xlen)
  19887. changed = true
  19888. }
  19889. if containerLen == 0 {
  19890. dd.ReadMapEnd()
  19891. return v, changed
  19892. }
  19893. var mk uint
  19894. var mv float64
  19895. hasLen := containerLen > 0
  19896. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19897. if esep {
  19898. dd.ReadMapElemKey()
  19899. }
  19900. mk = uint(dd.DecodeUint(uintBitsize))
  19901. if esep {
  19902. dd.ReadMapElemValue()
  19903. }
  19904. if dd.TryDecodeAsNil() {
  19905. if d.h.DeleteOnNilMapValue {
  19906. delete(v, mk)
  19907. } else {
  19908. v[mk] = 0
  19909. }
  19910. continue
  19911. }
  19912. mv = dd.DecodeFloat(false)
  19913. if v != nil {
  19914. v[mk] = mv
  19915. }
  19916. }
  19917. dd.ReadMapEnd()
  19918. return v, changed
  19919. }
  19920. func (d *Decoder) fastpathDecMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  19921. if rv.Kind() == reflect.Ptr {
  19922. vp := rv2i(rv).(*map[uint]bool)
  19923. if v, changed := fastpathTV.DecMapUintBoolV(*vp, true, d); changed {
  19924. *vp = v
  19925. }
  19926. return
  19927. }
  19928. fastpathTV.DecMapUintBoolV(rv2i(rv).(map[uint]bool), false, d)
  19929. }
  19930. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, d *Decoder) {
  19931. if v, changed := f.DecMapUintBoolV(*vp, true, d); changed {
  19932. *vp = v
  19933. }
  19934. }
  19935. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, canChange bool,
  19936. d *Decoder) (_ map[uint]bool, changed bool) {
  19937. dd, esep := d.d, d.hh.hasElemSeparators()
  19938. containerLen := dd.ReadMapStart()
  19939. if canChange && v == nil {
  19940. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  19941. v = make(map[uint]bool, xlen)
  19942. changed = true
  19943. }
  19944. if containerLen == 0 {
  19945. dd.ReadMapEnd()
  19946. return v, changed
  19947. }
  19948. var mk uint
  19949. var mv bool
  19950. hasLen := containerLen > 0
  19951. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19952. if esep {
  19953. dd.ReadMapElemKey()
  19954. }
  19955. mk = uint(dd.DecodeUint(uintBitsize))
  19956. if esep {
  19957. dd.ReadMapElemValue()
  19958. }
  19959. if dd.TryDecodeAsNil() {
  19960. if d.h.DeleteOnNilMapValue {
  19961. delete(v, mk)
  19962. } else {
  19963. v[mk] = false
  19964. }
  19965. continue
  19966. }
  19967. mv = dd.DecodeBool()
  19968. if v != nil {
  19969. v[mk] = mv
  19970. }
  19971. }
  19972. dd.ReadMapEnd()
  19973. return v, changed
  19974. }
  19975. func (d *Decoder) fastpathDecMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  19976. if rv.Kind() == reflect.Ptr {
  19977. vp := rv2i(rv).(*map[uint8]interface{})
  19978. if v, changed := fastpathTV.DecMapUint8IntfV(*vp, true, d); changed {
  19979. *vp = v
  19980. }
  19981. return
  19982. }
  19983. fastpathTV.DecMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), false, d)
  19984. }
  19985. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, d *Decoder) {
  19986. if v, changed := f.DecMapUint8IntfV(*vp, true, d); changed {
  19987. *vp = v
  19988. }
  19989. }
  19990. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, canChange bool,
  19991. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  19992. dd, esep := d.d, d.hh.hasElemSeparators()
  19993. containerLen := dd.ReadMapStart()
  19994. if canChange && v == nil {
  19995. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19996. v = make(map[uint8]interface{}, xlen)
  19997. changed = true
  19998. }
  19999. if containerLen == 0 {
  20000. dd.ReadMapEnd()
  20001. return v, changed
  20002. }
  20003. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  20004. var mk uint8
  20005. var mv interface{}
  20006. hasLen := containerLen > 0
  20007. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20008. if esep {
  20009. dd.ReadMapElemKey()
  20010. }
  20011. mk = uint8(dd.DecodeUint(8))
  20012. if esep {
  20013. dd.ReadMapElemValue()
  20014. }
  20015. if dd.TryDecodeAsNil() {
  20016. if d.h.DeleteOnNilMapValue {
  20017. delete(v, mk)
  20018. } else {
  20019. v[mk] = nil
  20020. }
  20021. continue
  20022. }
  20023. if mapGet {
  20024. mv = v[mk]
  20025. } else {
  20026. mv = nil
  20027. }
  20028. d.decode(&mv)
  20029. if v != nil {
  20030. v[mk] = mv
  20031. }
  20032. }
  20033. dd.ReadMapEnd()
  20034. return v, changed
  20035. }
  20036. func (d *Decoder) fastpathDecMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  20037. if rv.Kind() == reflect.Ptr {
  20038. vp := rv2i(rv).(*map[uint8]string)
  20039. if v, changed := fastpathTV.DecMapUint8StringV(*vp, true, d); changed {
  20040. *vp = v
  20041. }
  20042. return
  20043. }
  20044. fastpathTV.DecMapUint8StringV(rv2i(rv).(map[uint8]string), false, d)
  20045. }
  20046. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, d *Decoder) {
  20047. if v, changed := f.DecMapUint8StringV(*vp, true, d); changed {
  20048. *vp = v
  20049. }
  20050. }
  20051. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, canChange bool,
  20052. d *Decoder) (_ map[uint8]string, changed bool) {
  20053. dd, esep := d.d, d.hh.hasElemSeparators()
  20054. containerLen := dd.ReadMapStart()
  20055. if canChange && v == nil {
  20056. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20057. v = make(map[uint8]string, xlen)
  20058. changed = true
  20059. }
  20060. if containerLen == 0 {
  20061. dd.ReadMapEnd()
  20062. return v, changed
  20063. }
  20064. var mk uint8
  20065. var mv string
  20066. hasLen := containerLen > 0
  20067. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20068. if esep {
  20069. dd.ReadMapElemKey()
  20070. }
  20071. mk = uint8(dd.DecodeUint(8))
  20072. if esep {
  20073. dd.ReadMapElemValue()
  20074. }
  20075. if dd.TryDecodeAsNil() {
  20076. if d.h.DeleteOnNilMapValue {
  20077. delete(v, mk)
  20078. } else {
  20079. v[mk] = ""
  20080. }
  20081. continue
  20082. }
  20083. mv = dd.DecodeString()
  20084. if v != nil {
  20085. v[mk] = mv
  20086. }
  20087. }
  20088. dd.ReadMapEnd()
  20089. return v, changed
  20090. }
  20091. func (d *Decoder) fastpathDecMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  20092. if rv.Kind() == reflect.Ptr {
  20093. vp := rv2i(rv).(*map[uint8]uint)
  20094. if v, changed := fastpathTV.DecMapUint8UintV(*vp, true, d); changed {
  20095. *vp = v
  20096. }
  20097. return
  20098. }
  20099. fastpathTV.DecMapUint8UintV(rv2i(rv).(map[uint8]uint), false, d)
  20100. }
  20101. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, d *Decoder) {
  20102. if v, changed := f.DecMapUint8UintV(*vp, true, d); changed {
  20103. *vp = v
  20104. }
  20105. }
  20106. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, canChange bool,
  20107. d *Decoder) (_ map[uint8]uint, changed bool) {
  20108. dd, esep := d.d, d.hh.hasElemSeparators()
  20109. containerLen := dd.ReadMapStart()
  20110. if canChange && v == nil {
  20111. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20112. v = make(map[uint8]uint, xlen)
  20113. changed = true
  20114. }
  20115. if containerLen == 0 {
  20116. dd.ReadMapEnd()
  20117. return v, changed
  20118. }
  20119. var mk uint8
  20120. var mv uint
  20121. hasLen := containerLen > 0
  20122. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20123. if esep {
  20124. dd.ReadMapElemKey()
  20125. }
  20126. mk = uint8(dd.DecodeUint(8))
  20127. if esep {
  20128. dd.ReadMapElemValue()
  20129. }
  20130. if dd.TryDecodeAsNil() {
  20131. if d.h.DeleteOnNilMapValue {
  20132. delete(v, mk)
  20133. } else {
  20134. v[mk] = 0
  20135. }
  20136. continue
  20137. }
  20138. mv = uint(dd.DecodeUint(uintBitsize))
  20139. if v != nil {
  20140. v[mk] = mv
  20141. }
  20142. }
  20143. dd.ReadMapEnd()
  20144. return v, changed
  20145. }
  20146. func (d *Decoder) fastpathDecMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  20147. if rv.Kind() == reflect.Ptr {
  20148. vp := rv2i(rv).(*map[uint8]uint8)
  20149. if v, changed := fastpathTV.DecMapUint8Uint8V(*vp, true, d); changed {
  20150. *vp = v
  20151. }
  20152. return
  20153. }
  20154. fastpathTV.DecMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), false, d)
  20155. }
  20156. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, d *Decoder) {
  20157. if v, changed := f.DecMapUint8Uint8V(*vp, true, d); changed {
  20158. *vp = v
  20159. }
  20160. }
  20161. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, canChange bool,
  20162. d *Decoder) (_ map[uint8]uint8, changed bool) {
  20163. dd, esep := d.d, d.hh.hasElemSeparators()
  20164. containerLen := dd.ReadMapStart()
  20165. if canChange && v == nil {
  20166. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  20167. v = make(map[uint8]uint8, xlen)
  20168. changed = true
  20169. }
  20170. if containerLen == 0 {
  20171. dd.ReadMapEnd()
  20172. return v, changed
  20173. }
  20174. var mk uint8
  20175. var mv uint8
  20176. hasLen := containerLen > 0
  20177. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20178. if esep {
  20179. dd.ReadMapElemKey()
  20180. }
  20181. mk = uint8(dd.DecodeUint(8))
  20182. if esep {
  20183. dd.ReadMapElemValue()
  20184. }
  20185. if dd.TryDecodeAsNil() {
  20186. if d.h.DeleteOnNilMapValue {
  20187. delete(v, mk)
  20188. } else {
  20189. v[mk] = 0
  20190. }
  20191. continue
  20192. }
  20193. mv = uint8(dd.DecodeUint(8))
  20194. if v != nil {
  20195. v[mk] = mv
  20196. }
  20197. }
  20198. dd.ReadMapEnd()
  20199. return v, changed
  20200. }
  20201. func (d *Decoder) fastpathDecMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  20202. if rv.Kind() == reflect.Ptr {
  20203. vp := rv2i(rv).(*map[uint8]uint16)
  20204. if v, changed := fastpathTV.DecMapUint8Uint16V(*vp, true, d); changed {
  20205. *vp = v
  20206. }
  20207. return
  20208. }
  20209. fastpathTV.DecMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), false, d)
  20210. }
  20211. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, d *Decoder) {
  20212. if v, changed := f.DecMapUint8Uint16V(*vp, true, d); changed {
  20213. *vp = v
  20214. }
  20215. }
  20216. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, canChange bool,
  20217. d *Decoder) (_ map[uint8]uint16, changed bool) {
  20218. dd, esep := d.d, d.hh.hasElemSeparators()
  20219. containerLen := dd.ReadMapStart()
  20220. if canChange && v == nil {
  20221. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  20222. v = make(map[uint8]uint16, xlen)
  20223. changed = true
  20224. }
  20225. if containerLen == 0 {
  20226. dd.ReadMapEnd()
  20227. return v, changed
  20228. }
  20229. var mk uint8
  20230. var mv uint16
  20231. hasLen := containerLen > 0
  20232. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20233. if esep {
  20234. dd.ReadMapElemKey()
  20235. }
  20236. mk = uint8(dd.DecodeUint(8))
  20237. if esep {
  20238. dd.ReadMapElemValue()
  20239. }
  20240. if dd.TryDecodeAsNil() {
  20241. if d.h.DeleteOnNilMapValue {
  20242. delete(v, mk)
  20243. } else {
  20244. v[mk] = 0
  20245. }
  20246. continue
  20247. }
  20248. mv = uint16(dd.DecodeUint(16))
  20249. if v != nil {
  20250. v[mk] = mv
  20251. }
  20252. }
  20253. dd.ReadMapEnd()
  20254. return v, changed
  20255. }
  20256. func (d *Decoder) fastpathDecMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  20257. if rv.Kind() == reflect.Ptr {
  20258. vp := rv2i(rv).(*map[uint8]uint32)
  20259. if v, changed := fastpathTV.DecMapUint8Uint32V(*vp, true, d); changed {
  20260. *vp = v
  20261. }
  20262. return
  20263. }
  20264. fastpathTV.DecMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), false, d)
  20265. }
  20266. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, d *Decoder) {
  20267. if v, changed := f.DecMapUint8Uint32V(*vp, true, d); changed {
  20268. *vp = v
  20269. }
  20270. }
  20271. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, canChange bool,
  20272. d *Decoder) (_ map[uint8]uint32, changed bool) {
  20273. dd, esep := d.d, d.hh.hasElemSeparators()
  20274. containerLen := dd.ReadMapStart()
  20275. if canChange && v == nil {
  20276. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  20277. v = make(map[uint8]uint32, xlen)
  20278. changed = true
  20279. }
  20280. if containerLen == 0 {
  20281. dd.ReadMapEnd()
  20282. return v, changed
  20283. }
  20284. var mk uint8
  20285. var mv uint32
  20286. hasLen := containerLen > 0
  20287. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20288. if esep {
  20289. dd.ReadMapElemKey()
  20290. }
  20291. mk = uint8(dd.DecodeUint(8))
  20292. if esep {
  20293. dd.ReadMapElemValue()
  20294. }
  20295. if dd.TryDecodeAsNil() {
  20296. if d.h.DeleteOnNilMapValue {
  20297. delete(v, mk)
  20298. } else {
  20299. v[mk] = 0
  20300. }
  20301. continue
  20302. }
  20303. mv = uint32(dd.DecodeUint(32))
  20304. if v != nil {
  20305. v[mk] = mv
  20306. }
  20307. }
  20308. dd.ReadMapEnd()
  20309. return v, changed
  20310. }
  20311. func (d *Decoder) fastpathDecMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  20312. if rv.Kind() == reflect.Ptr {
  20313. vp := rv2i(rv).(*map[uint8]uint64)
  20314. if v, changed := fastpathTV.DecMapUint8Uint64V(*vp, true, d); changed {
  20315. *vp = v
  20316. }
  20317. return
  20318. }
  20319. fastpathTV.DecMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), false, d)
  20320. }
  20321. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, d *Decoder) {
  20322. if v, changed := f.DecMapUint8Uint64V(*vp, true, d); changed {
  20323. *vp = v
  20324. }
  20325. }
  20326. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, canChange bool,
  20327. d *Decoder) (_ map[uint8]uint64, changed bool) {
  20328. dd, esep := d.d, d.hh.hasElemSeparators()
  20329. containerLen := dd.ReadMapStart()
  20330. if canChange && v == nil {
  20331. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20332. v = make(map[uint8]uint64, xlen)
  20333. changed = true
  20334. }
  20335. if containerLen == 0 {
  20336. dd.ReadMapEnd()
  20337. return v, changed
  20338. }
  20339. var mk uint8
  20340. var mv uint64
  20341. hasLen := containerLen > 0
  20342. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20343. if esep {
  20344. dd.ReadMapElemKey()
  20345. }
  20346. mk = uint8(dd.DecodeUint(8))
  20347. if esep {
  20348. dd.ReadMapElemValue()
  20349. }
  20350. if dd.TryDecodeAsNil() {
  20351. if d.h.DeleteOnNilMapValue {
  20352. delete(v, mk)
  20353. } else {
  20354. v[mk] = 0
  20355. }
  20356. continue
  20357. }
  20358. mv = dd.DecodeUint(64)
  20359. if v != nil {
  20360. v[mk] = mv
  20361. }
  20362. }
  20363. dd.ReadMapEnd()
  20364. return v, changed
  20365. }
  20366. func (d *Decoder) fastpathDecMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  20367. if rv.Kind() == reflect.Ptr {
  20368. vp := rv2i(rv).(*map[uint8]uintptr)
  20369. if v, changed := fastpathTV.DecMapUint8UintptrV(*vp, true, d); changed {
  20370. *vp = v
  20371. }
  20372. return
  20373. }
  20374. fastpathTV.DecMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), false, d)
  20375. }
  20376. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, d *Decoder) {
  20377. if v, changed := f.DecMapUint8UintptrV(*vp, true, d); changed {
  20378. *vp = v
  20379. }
  20380. }
  20381. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, canChange bool,
  20382. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  20383. dd, esep := d.d, d.hh.hasElemSeparators()
  20384. containerLen := dd.ReadMapStart()
  20385. if canChange && v == nil {
  20386. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20387. v = make(map[uint8]uintptr, xlen)
  20388. changed = true
  20389. }
  20390. if containerLen == 0 {
  20391. dd.ReadMapEnd()
  20392. return v, changed
  20393. }
  20394. var mk uint8
  20395. var mv uintptr
  20396. hasLen := containerLen > 0
  20397. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20398. if esep {
  20399. dd.ReadMapElemKey()
  20400. }
  20401. mk = uint8(dd.DecodeUint(8))
  20402. if esep {
  20403. dd.ReadMapElemValue()
  20404. }
  20405. if dd.TryDecodeAsNil() {
  20406. if d.h.DeleteOnNilMapValue {
  20407. delete(v, mk)
  20408. } else {
  20409. v[mk] = 0
  20410. }
  20411. continue
  20412. }
  20413. mv = uintptr(dd.DecodeUint(uintBitsize))
  20414. if v != nil {
  20415. v[mk] = mv
  20416. }
  20417. }
  20418. dd.ReadMapEnd()
  20419. return v, changed
  20420. }
  20421. func (d *Decoder) fastpathDecMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  20422. if rv.Kind() == reflect.Ptr {
  20423. vp := rv2i(rv).(*map[uint8]int)
  20424. if v, changed := fastpathTV.DecMapUint8IntV(*vp, true, d); changed {
  20425. *vp = v
  20426. }
  20427. return
  20428. }
  20429. fastpathTV.DecMapUint8IntV(rv2i(rv).(map[uint8]int), false, d)
  20430. }
  20431. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, d *Decoder) {
  20432. if v, changed := f.DecMapUint8IntV(*vp, true, d); changed {
  20433. *vp = v
  20434. }
  20435. }
  20436. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, canChange bool,
  20437. d *Decoder) (_ map[uint8]int, changed bool) {
  20438. dd, esep := d.d, d.hh.hasElemSeparators()
  20439. containerLen := dd.ReadMapStart()
  20440. if canChange && v == nil {
  20441. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20442. v = make(map[uint8]int, xlen)
  20443. changed = true
  20444. }
  20445. if containerLen == 0 {
  20446. dd.ReadMapEnd()
  20447. return v, changed
  20448. }
  20449. var mk uint8
  20450. var mv int
  20451. hasLen := containerLen > 0
  20452. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20453. if esep {
  20454. dd.ReadMapElemKey()
  20455. }
  20456. mk = uint8(dd.DecodeUint(8))
  20457. if esep {
  20458. dd.ReadMapElemValue()
  20459. }
  20460. if dd.TryDecodeAsNil() {
  20461. if d.h.DeleteOnNilMapValue {
  20462. delete(v, mk)
  20463. } else {
  20464. v[mk] = 0
  20465. }
  20466. continue
  20467. }
  20468. mv = int(dd.DecodeInt(intBitsize))
  20469. if v != nil {
  20470. v[mk] = mv
  20471. }
  20472. }
  20473. dd.ReadMapEnd()
  20474. return v, changed
  20475. }
  20476. func (d *Decoder) fastpathDecMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  20477. if rv.Kind() == reflect.Ptr {
  20478. vp := rv2i(rv).(*map[uint8]int8)
  20479. if v, changed := fastpathTV.DecMapUint8Int8V(*vp, true, d); changed {
  20480. *vp = v
  20481. }
  20482. return
  20483. }
  20484. fastpathTV.DecMapUint8Int8V(rv2i(rv).(map[uint8]int8), false, d)
  20485. }
  20486. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, d *Decoder) {
  20487. if v, changed := f.DecMapUint8Int8V(*vp, true, d); changed {
  20488. *vp = v
  20489. }
  20490. }
  20491. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, canChange bool,
  20492. d *Decoder) (_ map[uint8]int8, changed bool) {
  20493. dd, esep := d.d, d.hh.hasElemSeparators()
  20494. containerLen := dd.ReadMapStart()
  20495. if canChange && v == nil {
  20496. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  20497. v = make(map[uint8]int8, xlen)
  20498. changed = true
  20499. }
  20500. if containerLen == 0 {
  20501. dd.ReadMapEnd()
  20502. return v, changed
  20503. }
  20504. var mk uint8
  20505. var mv int8
  20506. hasLen := containerLen > 0
  20507. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20508. if esep {
  20509. dd.ReadMapElemKey()
  20510. }
  20511. mk = uint8(dd.DecodeUint(8))
  20512. if esep {
  20513. dd.ReadMapElemValue()
  20514. }
  20515. if dd.TryDecodeAsNil() {
  20516. if d.h.DeleteOnNilMapValue {
  20517. delete(v, mk)
  20518. } else {
  20519. v[mk] = 0
  20520. }
  20521. continue
  20522. }
  20523. mv = int8(dd.DecodeInt(8))
  20524. if v != nil {
  20525. v[mk] = mv
  20526. }
  20527. }
  20528. dd.ReadMapEnd()
  20529. return v, changed
  20530. }
  20531. func (d *Decoder) fastpathDecMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  20532. if rv.Kind() == reflect.Ptr {
  20533. vp := rv2i(rv).(*map[uint8]int16)
  20534. if v, changed := fastpathTV.DecMapUint8Int16V(*vp, true, d); changed {
  20535. *vp = v
  20536. }
  20537. return
  20538. }
  20539. fastpathTV.DecMapUint8Int16V(rv2i(rv).(map[uint8]int16), false, d)
  20540. }
  20541. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, d *Decoder) {
  20542. if v, changed := f.DecMapUint8Int16V(*vp, true, d); changed {
  20543. *vp = v
  20544. }
  20545. }
  20546. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, canChange bool,
  20547. d *Decoder) (_ map[uint8]int16, changed bool) {
  20548. dd, esep := d.d, d.hh.hasElemSeparators()
  20549. containerLen := dd.ReadMapStart()
  20550. if canChange && v == nil {
  20551. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  20552. v = make(map[uint8]int16, xlen)
  20553. changed = true
  20554. }
  20555. if containerLen == 0 {
  20556. dd.ReadMapEnd()
  20557. return v, changed
  20558. }
  20559. var mk uint8
  20560. var mv int16
  20561. hasLen := containerLen > 0
  20562. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20563. if esep {
  20564. dd.ReadMapElemKey()
  20565. }
  20566. mk = uint8(dd.DecodeUint(8))
  20567. if esep {
  20568. dd.ReadMapElemValue()
  20569. }
  20570. if dd.TryDecodeAsNil() {
  20571. if d.h.DeleteOnNilMapValue {
  20572. delete(v, mk)
  20573. } else {
  20574. v[mk] = 0
  20575. }
  20576. continue
  20577. }
  20578. mv = int16(dd.DecodeInt(16))
  20579. if v != nil {
  20580. v[mk] = mv
  20581. }
  20582. }
  20583. dd.ReadMapEnd()
  20584. return v, changed
  20585. }
  20586. func (d *Decoder) fastpathDecMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  20587. if rv.Kind() == reflect.Ptr {
  20588. vp := rv2i(rv).(*map[uint8]int32)
  20589. if v, changed := fastpathTV.DecMapUint8Int32V(*vp, true, d); changed {
  20590. *vp = v
  20591. }
  20592. return
  20593. }
  20594. fastpathTV.DecMapUint8Int32V(rv2i(rv).(map[uint8]int32), false, d)
  20595. }
  20596. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, d *Decoder) {
  20597. if v, changed := f.DecMapUint8Int32V(*vp, true, d); changed {
  20598. *vp = v
  20599. }
  20600. }
  20601. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, canChange bool,
  20602. d *Decoder) (_ map[uint8]int32, changed bool) {
  20603. dd, esep := d.d, d.hh.hasElemSeparators()
  20604. containerLen := dd.ReadMapStart()
  20605. if canChange && v == nil {
  20606. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  20607. v = make(map[uint8]int32, xlen)
  20608. changed = true
  20609. }
  20610. if containerLen == 0 {
  20611. dd.ReadMapEnd()
  20612. return v, changed
  20613. }
  20614. var mk uint8
  20615. var mv int32
  20616. hasLen := containerLen > 0
  20617. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20618. if esep {
  20619. dd.ReadMapElemKey()
  20620. }
  20621. mk = uint8(dd.DecodeUint(8))
  20622. if esep {
  20623. dd.ReadMapElemValue()
  20624. }
  20625. if dd.TryDecodeAsNil() {
  20626. if d.h.DeleteOnNilMapValue {
  20627. delete(v, mk)
  20628. } else {
  20629. v[mk] = 0
  20630. }
  20631. continue
  20632. }
  20633. mv = int32(dd.DecodeInt(32))
  20634. if v != nil {
  20635. v[mk] = mv
  20636. }
  20637. }
  20638. dd.ReadMapEnd()
  20639. return v, changed
  20640. }
  20641. func (d *Decoder) fastpathDecMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  20642. if rv.Kind() == reflect.Ptr {
  20643. vp := rv2i(rv).(*map[uint8]int64)
  20644. if v, changed := fastpathTV.DecMapUint8Int64V(*vp, true, d); changed {
  20645. *vp = v
  20646. }
  20647. return
  20648. }
  20649. fastpathTV.DecMapUint8Int64V(rv2i(rv).(map[uint8]int64), false, d)
  20650. }
  20651. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, d *Decoder) {
  20652. if v, changed := f.DecMapUint8Int64V(*vp, true, d); changed {
  20653. *vp = v
  20654. }
  20655. }
  20656. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, canChange bool,
  20657. d *Decoder) (_ map[uint8]int64, changed bool) {
  20658. dd, esep := d.d, d.hh.hasElemSeparators()
  20659. containerLen := dd.ReadMapStart()
  20660. if canChange && v == nil {
  20661. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20662. v = make(map[uint8]int64, xlen)
  20663. changed = true
  20664. }
  20665. if containerLen == 0 {
  20666. dd.ReadMapEnd()
  20667. return v, changed
  20668. }
  20669. var mk uint8
  20670. var mv int64
  20671. hasLen := containerLen > 0
  20672. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20673. if esep {
  20674. dd.ReadMapElemKey()
  20675. }
  20676. mk = uint8(dd.DecodeUint(8))
  20677. if esep {
  20678. dd.ReadMapElemValue()
  20679. }
  20680. if dd.TryDecodeAsNil() {
  20681. if d.h.DeleteOnNilMapValue {
  20682. delete(v, mk)
  20683. } else {
  20684. v[mk] = 0
  20685. }
  20686. continue
  20687. }
  20688. mv = dd.DecodeInt(64)
  20689. if v != nil {
  20690. v[mk] = mv
  20691. }
  20692. }
  20693. dd.ReadMapEnd()
  20694. return v, changed
  20695. }
  20696. func (d *Decoder) fastpathDecMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  20697. if rv.Kind() == reflect.Ptr {
  20698. vp := rv2i(rv).(*map[uint8]float32)
  20699. if v, changed := fastpathTV.DecMapUint8Float32V(*vp, true, d); changed {
  20700. *vp = v
  20701. }
  20702. return
  20703. }
  20704. fastpathTV.DecMapUint8Float32V(rv2i(rv).(map[uint8]float32), false, d)
  20705. }
  20706. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, d *Decoder) {
  20707. if v, changed := f.DecMapUint8Float32V(*vp, true, d); changed {
  20708. *vp = v
  20709. }
  20710. }
  20711. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, canChange bool,
  20712. d *Decoder) (_ map[uint8]float32, changed bool) {
  20713. dd, esep := d.d, d.hh.hasElemSeparators()
  20714. containerLen := dd.ReadMapStart()
  20715. if canChange && v == nil {
  20716. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  20717. v = make(map[uint8]float32, xlen)
  20718. changed = true
  20719. }
  20720. if containerLen == 0 {
  20721. dd.ReadMapEnd()
  20722. return v, changed
  20723. }
  20724. var mk uint8
  20725. var mv float32
  20726. hasLen := containerLen > 0
  20727. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20728. if esep {
  20729. dd.ReadMapElemKey()
  20730. }
  20731. mk = uint8(dd.DecodeUint(8))
  20732. if esep {
  20733. dd.ReadMapElemValue()
  20734. }
  20735. if dd.TryDecodeAsNil() {
  20736. if d.h.DeleteOnNilMapValue {
  20737. delete(v, mk)
  20738. } else {
  20739. v[mk] = 0
  20740. }
  20741. continue
  20742. }
  20743. mv = float32(dd.DecodeFloat(true))
  20744. if v != nil {
  20745. v[mk] = mv
  20746. }
  20747. }
  20748. dd.ReadMapEnd()
  20749. return v, changed
  20750. }
  20751. func (d *Decoder) fastpathDecMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  20752. if rv.Kind() == reflect.Ptr {
  20753. vp := rv2i(rv).(*map[uint8]float64)
  20754. if v, changed := fastpathTV.DecMapUint8Float64V(*vp, true, d); changed {
  20755. *vp = v
  20756. }
  20757. return
  20758. }
  20759. fastpathTV.DecMapUint8Float64V(rv2i(rv).(map[uint8]float64), false, d)
  20760. }
  20761. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, d *Decoder) {
  20762. if v, changed := f.DecMapUint8Float64V(*vp, true, d); changed {
  20763. *vp = v
  20764. }
  20765. }
  20766. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, canChange bool,
  20767. d *Decoder) (_ map[uint8]float64, changed bool) {
  20768. dd, esep := d.d, d.hh.hasElemSeparators()
  20769. containerLen := dd.ReadMapStart()
  20770. if canChange && v == nil {
  20771. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20772. v = make(map[uint8]float64, xlen)
  20773. changed = true
  20774. }
  20775. if containerLen == 0 {
  20776. dd.ReadMapEnd()
  20777. return v, changed
  20778. }
  20779. var mk uint8
  20780. var mv float64
  20781. hasLen := containerLen > 0
  20782. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20783. if esep {
  20784. dd.ReadMapElemKey()
  20785. }
  20786. mk = uint8(dd.DecodeUint(8))
  20787. if esep {
  20788. dd.ReadMapElemValue()
  20789. }
  20790. if dd.TryDecodeAsNil() {
  20791. if d.h.DeleteOnNilMapValue {
  20792. delete(v, mk)
  20793. } else {
  20794. v[mk] = 0
  20795. }
  20796. continue
  20797. }
  20798. mv = dd.DecodeFloat(false)
  20799. if v != nil {
  20800. v[mk] = mv
  20801. }
  20802. }
  20803. dd.ReadMapEnd()
  20804. return v, changed
  20805. }
  20806. func (d *Decoder) fastpathDecMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  20807. if rv.Kind() == reflect.Ptr {
  20808. vp := rv2i(rv).(*map[uint8]bool)
  20809. if v, changed := fastpathTV.DecMapUint8BoolV(*vp, true, d); changed {
  20810. *vp = v
  20811. }
  20812. return
  20813. }
  20814. fastpathTV.DecMapUint8BoolV(rv2i(rv).(map[uint8]bool), false, d)
  20815. }
  20816. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, d *Decoder) {
  20817. if v, changed := f.DecMapUint8BoolV(*vp, true, d); changed {
  20818. *vp = v
  20819. }
  20820. }
  20821. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, canChange bool,
  20822. d *Decoder) (_ map[uint8]bool, changed bool) {
  20823. dd, esep := d.d, d.hh.hasElemSeparators()
  20824. containerLen := dd.ReadMapStart()
  20825. if canChange && v == nil {
  20826. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  20827. v = make(map[uint8]bool, xlen)
  20828. changed = true
  20829. }
  20830. if containerLen == 0 {
  20831. dd.ReadMapEnd()
  20832. return v, changed
  20833. }
  20834. var mk uint8
  20835. var mv bool
  20836. hasLen := containerLen > 0
  20837. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20838. if esep {
  20839. dd.ReadMapElemKey()
  20840. }
  20841. mk = uint8(dd.DecodeUint(8))
  20842. if esep {
  20843. dd.ReadMapElemValue()
  20844. }
  20845. if dd.TryDecodeAsNil() {
  20846. if d.h.DeleteOnNilMapValue {
  20847. delete(v, mk)
  20848. } else {
  20849. v[mk] = false
  20850. }
  20851. continue
  20852. }
  20853. mv = dd.DecodeBool()
  20854. if v != nil {
  20855. v[mk] = mv
  20856. }
  20857. }
  20858. dd.ReadMapEnd()
  20859. return v, changed
  20860. }
  20861. func (d *Decoder) fastpathDecMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  20862. if rv.Kind() == reflect.Ptr {
  20863. vp := rv2i(rv).(*map[uint16]interface{})
  20864. if v, changed := fastpathTV.DecMapUint16IntfV(*vp, true, d); changed {
  20865. *vp = v
  20866. }
  20867. return
  20868. }
  20869. fastpathTV.DecMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), false, d)
  20870. }
  20871. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, d *Decoder) {
  20872. if v, changed := f.DecMapUint16IntfV(*vp, true, d); changed {
  20873. *vp = v
  20874. }
  20875. }
  20876. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, canChange bool,
  20877. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  20878. dd, esep := d.d, d.hh.hasElemSeparators()
  20879. containerLen := dd.ReadMapStart()
  20880. if canChange && v == nil {
  20881. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20882. v = make(map[uint16]interface{}, xlen)
  20883. changed = true
  20884. }
  20885. if containerLen == 0 {
  20886. dd.ReadMapEnd()
  20887. return v, changed
  20888. }
  20889. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  20890. var mk uint16
  20891. var mv interface{}
  20892. hasLen := containerLen > 0
  20893. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20894. if esep {
  20895. dd.ReadMapElemKey()
  20896. }
  20897. mk = uint16(dd.DecodeUint(16))
  20898. if esep {
  20899. dd.ReadMapElemValue()
  20900. }
  20901. if dd.TryDecodeAsNil() {
  20902. if d.h.DeleteOnNilMapValue {
  20903. delete(v, mk)
  20904. } else {
  20905. v[mk] = nil
  20906. }
  20907. continue
  20908. }
  20909. if mapGet {
  20910. mv = v[mk]
  20911. } else {
  20912. mv = nil
  20913. }
  20914. d.decode(&mv)
  20915. if v != nil {
  20916. v[mk] = mv
  20917. }
  20918. }
  20919. dd.ReadMapEnd()
  20920. return v, changed
  20921. }
  20922. func (d *Decoder) fastpathDecMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  20923. if rv.Kind() == reflect.Ptr {
  20924. vp := rv2i(rv).(*map[uint16]string)
  20925. if v, changed := fastpathTV.DecMapUint16StringV(*vp, true, d); changed {
  20926. *vp = v
  20927. }
  20928. return
  20929. }
  20930. fastpathTV.DecMapUint16StringV(rv2i(rv).(map[uint16]string), false, d)
  20931. }
  20932. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, d *Decoder) {
  20933. if v, changed := f.DecMapUint16StringV(*vp, true, d); changed {
  20934. *vp = v
  20935. }
  20936. }
  20937. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, canChange bool,
  20938. d *Decoder) (_ map[uint16]string, changed bool) {
  20939. dd, esep := d.d, d.hh.hasElemSeparators()
  20940. containerLen := dd.ReadMapStart()
  20941. if canChange && v == nil {
  20942. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20943. v = make(map[uint16]string, xlen)
  20944. changed = true
  20945. }
  20946. if containerLen == 0 {
  20947. dd.ReadMapEnd()
  20948. return v, changed
  20949. }
  20950. var mk uint16
  20951. var mv string
  20952. hasLen := containerLen > 0
  20953. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20954. if esep {
  20955. dd.ReadMapElemKey()
  20956. }
  20957. mk = uint16(dd.DecodeUint(16))
  20958. if esep {
  20959. dd.ReadMapElemValue()
  20960. }
  20961. if dd.TryDecodeAsNil() {
  20962. if d.h.DeleteOnNilMapValue {
  20963. delete(v, mk)
  20964. } else {
  20965. v[mk] = ""
  20966. }
  20967. continue
  20968. }
  20969. mv = dd.DecodeString()
  20970. if v != nil {
  20971. v[mk] = mv
  20972. }
  20973. }
  20974. dd.ReadMapEnd()
  20975. return v, changed
  20976. }
  20977. func (d *Decoder) fastpathDecMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  20978. if rv.Kind() == reflect.Ptr {
  20979. vp := rv2i(rv).(*map[uint16]uint)
  20980. if v, changed := fastpathTV.DecMapUint16UintV(*vp, true, d); changed {
  20981. *vp = v
  20982. }
  20983. return
  20984. }
  20985. fastpathTV.DecMapUint16UintV(rv2i(rv).(map[uint16]uint), false, d)
  20986. }
  20987. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, d *Decoder) {
  20988. if v, changed := f.DecMapUint16UintV(*vp, true, d); changed {
  20989. *vp = v
  20990. }
  20991. }
  20992. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, canChange bool,
  20993. d *Decoder) (_ map[uint16]uint, changed bool) {
  20994. dd, esep := d.d, d.hh.hasElemSeparators()
  20995. containerLen := dd.ReadMapStart()
  20996. if canChange && v == nil {
  20997. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  20998. v = make(map[uint16]uint, xlen)
  20999. changed = true
  21000. }
  21001. if containerLen == 0 {
  21002. dd.ReadMapEnd()
  21003. return v, changed
  21004. }
  21005. var mk uint16
  21006. var mv uint
  21007. hasLen := containerLen > 0
  21008. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21009. if esep {
  21010. dd.ReadMapElemKey()
  21011. }
  21012. mk = uint16(dd.DecodeUint(16))
  21013. if esep {
  21014. dd.ReadMapElemValue()
  21015. }
  21016. if dd.TryDecodeAsNil() {
  21017. if d.h.DeleteOnNilMapValue {
  21018. delete(v, mk)
  21019. } else {
  21020. v[mk] = 0
  21021. }
  21022. continue
  21023. }
  21024. mv = uint(dd.DecodeUint(uintBitsize))
  21025. if v != nil {
  21026. v[mk] = mv
  21027. }
  21028. }
  21029. dd.ReadMapEnd()
  21030. return v, changed
  21031. }
  21032. func (d *Decoder) fastpathDecMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  21033. if rv.Kind() == reflect.Ptr {
  21034. vp := rv2i(rv).(*map[uint16]uint8)
  21035. if v, changed := fastpathTV.DecMapUint16Uint8V(*vp, true, d); changed {
  21036. *vp = v
  21037. }
  21038. return
  21039. }
  21040. fastpathTV.DecMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), false, d)
  21041. }
  21042. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, d *Decoder) {
  21043. if v, changed := f.DecMapUint16Uint8V(*vp, true, d); changed {
  21044. *vp = v
  21045. }
  21046. }
  21047. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, canChange bool,
  21048. d *Decoder) (_ map[uint16]uint8, changed bool) {
  21049. dd, esep := d.d, d.hh.hasElemSeparators()
  21050. containerLen := dd.ReadMapStart()
  21051. if canChange && v == nil {
  21052. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  21053. v = make(map[uint16]uint8, xlen)
  21054. changed = true
  21055. }
  21056. if containerLen == 0 {
  21057. dd.ReadMapEnd()
  21058. return v, changed
  21059. }
  21060. var mk uint16
  21061. var mv uint8
  21062. hasLen := containerLen > 0
  21063. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21064. if esep {
  21065. dd.ReadMapElemKey()
  21066. }
  21067. mk = uint16(dd.DecodeUint(16))
  21068. if esep {
  21069. dd.ReadMapElemValue()
  21070. }
  21071. if dd.TryDecodeAsNil() {
  21072. if d.h.DeleteOnNilMapValue {
  21073. delete(v, mk)
  21074. } else {
  21075. v[mk] = 0
  21076. }
  21077. continue
  21078. }
  21079. mv = uint8(dd.DecodeUint(8))
  21080. if v != nil {
  21081. v[mk] = mv
  21082. }
  21083. }
  21084. dd.ReadMapEnd()
  21085. return v, changed
  21086. }
  21087. func (d *Decoder) fastpathDecMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  21088. if rv.Kind() == reflect.Ptr {
  21089. vp := rv2i(rv).(*map[uint16]uint16)
  21090. if v, changed := fastpathTV.DecMapUint16Uint16V(*vp, true, d); changed {
  21091. *vp = v
  21092. }
  21093. return
  21094. }
  21095. fastpathTV.DecMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), false, d)
  21096. }
  21097. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, d *Decoder) {
  21098. if v, changed := f.DecMapUint16Uint16V(*vp, true, d); changed {
  21099. *vp = v
  21100. }
  21101. }
  21102. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, canChange bool,
  21103. d *Decoder) (_ map[uint16]uint16, changed bool) {
  21104. dd, esep := d.d, d.hh.hasElemSeparators()
  21105. containerLen := dd.ReadMapStart()
  21106. if canChange && v == nil {
  21107. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  21108. v = make(map[uint16]uint16, xlen)
  21109. changed = true
  21110. }
  21111. if containerLen == 0 {
  21112. dd.ReadMapEnd()
  21113. return v, changed
  21114. }
  21115. var mk uint16
  21116. var mv uint16
  21117. hasLen := containerLen > 0
  21118. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21119. if esep {
  21120. dd.ReadMapElemKey()
  21121. }
  21122. mk = uint16(dd.DecodeUint(16))
  21123. if esep {
  21124. dd.ReadMapElemValue()
  21125. }
  21126. if dd.TryDecodeAsNil() {
  21127. if d.h.DeleteOnNilMapValue {
  21128. delete(v, mk)
  21129. } else {
  21130. v[mk] = 0
  21131. }
  21132. continue
  21133. }
  21134. mv = uint16(dd.DecodeUint(16))
  21135. if v != nil {
  21136. v[mk] = mv
  21137. }
  21138. }
  21139. dd.ReadMapEnd()
  21140. return v, changed
  21141. }
  21142. func (d *Decoder) fastpathDecMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  21143. if rv.Kind() == reflect.Ptr {
  21144. vp := rv2i(rv).(*map[uint16]uint32)
  21145. if v, changed := fastpathTV.DecMapUint16Uint32V(*vp, true, d); changed {
  21146. *vp = v
  21147. }
  21148. return
  21149. }
  21150. fastpathTV.DecMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), false, d)
  21151. }
  21152. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, d *Decoder) {
  21153. if v, changed := f.DecMapUint16Uint32V(*vp, true, d); changed {
  21154. *vp = v
  21155. }
  21156. }
  21157. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, canChange bool,
  21158. d *Decoder) (_ map[uint16]uint32, changed bool) {
  21159. dd, esep := d.d, d.hh.hasElemSeparators()
  21160. containerLen := dd.ReadMapStart()
  21161. if canChange && v == nil {
  21162. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21163. v = make(map[uint16]uint32, xlen)
  21164. changed = true
  21165. }
  21166. if containerLen == 0 {
  21167. dd.ReadMapEnd()
  21168. return v, changed
  21169. }
  21170. var mk uint16
  21171. var mv uint32
  21172. hasLen := containerLen > 0
  21173. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21174. if esep {
  21175. dd.ReadMapElemKey()
  21176. }
  21177. mk = uint16(dd.DecodeUint(16))
  21178. if esep {
  21179. dd.ReadMapElemValue()
  21180. }
  21181. if dd.TryDecodeAsNil() {
  21182. if d.h.DeleteOnNilMapValue {
  21183. delete(v, mk)
  21184. } else {
  21185. v[mk] = 0
  21186. }
  21187. continue
  21188. }
  21189. mv = uint32(dd.DecodeUint(32))
  21190. if v != nil {
  21191. v[mk] = mv
  21192. }
  21193. }
  21194. dd.ReadMapEnd()
  21195. return v, changed
  21196. }
  21197. func (d *Decoder) fastpathDecMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  21198. if rv.Kind() == reflect.Ptr {
  21199. vp := rv2i(rv).(*map[uint16]uint64)
  21200. if v, changed := fastpathTV.DecMapUint16Uint64V(*vp, true, d); changed {
  21201. *vp = v
  21202. }
  21203. return
  21204. }
  21205. fastpathTV.DecMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), false, d)
  21206. }
  21207. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, d *Decoder) {
  21208. if v, changed := f.DecMapUint16Uint64V(*vp, true, d); changed {
  21209. *vp = v
  21210. }
  21211. }
  21212. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, canChange bool,
  21213. d *Decoder) (_ map[uint16]uint64, changed bool) {
  21214. dd, esep := d.d, d.hh.hasElemSeparators()
  21215. containerLen := dd.ReadMapStart()
  21216. if canChange && v == nil {
  21217. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  21218. v = make(map[uint16]uint64, xlen)
  21219. changed = true
  21220. }
  21221. if containerLen == 0 {
  21222. dd.ReadMapEnd()
  21223. return v, changed
  21224. }
  21225. var mk uint16
  21226. var mv uint64
  21227. hasLen := containerLen > 0
  21228. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21229. if esep {
  21230. dd.ReadMapElemKey()
  21231. }
  21232. mk = uint16(dd.DecodeUint(16))
  21233. if esep {
  21234. dd.ReadMapElemValue()
  21235. }
  21236. if dd.TryDecodeAsNil() {
  21237. if d.h.DeleteOnNilMapValue {
  21238. delete(v, mk)
  21239. } else {
  21240. v[mk] = 0
  21241. }
  21242. continue
  21243. }
  21244. mv = dd.DecodeUint(64)
  21245. if v != nil {
  21246. v[mk] = mv
  21247. }
  21248. }
  21249. dd.ReadMapEnd()
  21250. return v, changed
  21251. }
  21252. func (d *Decoder) fastpathDecMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  21253. if rv.Kind() == reflect.Ptr {
  21254. vp := rv2i(rv).(*map[uint16]uintptr)
  21255. if v, changed := fastpathTV.DecMapUint16UintptrV(*vp, true, d); changed {
  21256. *vp = v
  21257. }
  21258. return
  21259. }
  21260. fastpathTV.DecMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), false, d)
  21261. }
  21262. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, d *Decoder) {
  21263. if v, changed := f.DecMapUint16UintptrV(*vp, true, d); changed {
  21264. *vp = v
  21265. }
  21266. }
  21267. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, canChange bool,
  21268. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  21269. dd, esep := d.d, d.hh.hasElemSeparators()
  21270. containerLen := dd.ReadMapStart()
  21271. if canChange && v == nil {
  21272. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  21273. v = make(map[uint16]uintptr, xlen)
  21274. changed = true
  21275. }
  21276. if containerLen == 0 {
  21277. dd.ReadMapEnd()
  21278. return v, changed
  21279. }
  21280. var mk uint16
  21281. var mv uintptr
  21282. hasLen := containerLen > 0
  21283. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21284. if esep {
  21285. dd.ReadMapElemKey()
  21286. }
  21287. mk = uint16(dd.DecodeUint(16))
  21288. if esep {
  21289. dd.ReadMapElemValue()
  21290. }
  21291. if dd.TryDecodeAsNil() {
  21292. if d.h.DeleteOnNilMapValue {
  21293. delete(v, mk)
  21294. } else {
  21295. v[mk] = 0
  21296. }
  21297. continue
  21298. }
  21299. mv = uintptr(dd.DecodeUint(uintBitsize))
  21300. if v != nil {
  21301. v[mk] = mv
  21302. }
  21303. }
  21304. dd.ReadMapEnd()
  21305. return v, changed
  21306. }
  21307. func (d *Decoder) fastpathDecMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  21308. if rv.Kind() == reflect.Ptr {
  21309. vp := rv2i(rv).(*map[uint16]int)
  21310. if v, changed := fastpathTV.DecMapUint16IntV(*vp, true, d); changed {
  21311. *vp = v
  21312. }
  21313. return
  21314. }
  21315. fastpathTV.DecMapUint16IntV(rv2i(rv).(map[uint16]int), false, d)
  21316. }
  21317. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, d *Decoder) {
  21318. if v, changed := f.DecMapUint16IntV(*vp, true, d); changed {
  21319. *vp = v
  21320. }
  21321. }
  21322. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, canChange bool,
  21323. d *Decoder) (_ map[uint16]int, changed bool) {
  21324. dd, esep := d.d, d.hh.hasElemSeparators()
  21325. containerLen := dd.ReadMapStart()
  21326. if canChange && v == nil {
  21327. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  21328. v = make(map[uint16]int, xlen)
  21329. changed = true
  21330. }
  21331. if containerLen == 0 {
  21332. dd.ReadMapEnd()
  21333. return v, changed
  21334. }
  21335. var mk uint16
  21336. var mv int
  21337. hasLen := containerLen > 0
  21338. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21339. if esep {
  21340. dd.ReadMapElemKey()
  21341. }
  21342. mk = uint16(dd.DecodeUint(16))
  21343. if esep {
  21344. dd.ReadMapElemValue()
  21345. }
  21346. if dd.TryDecodeAsNil() {
  21347. if d.h.DeleteOnNilMapValue {
  21348. delete(v, mk)
  21349. } else {
  21350. v[mk] = 0
  21351. }
  21352. continue
  21353. }
  21354. mv = int(dd.DecodeInt(intBitsize))
  21355. if v != nil {
  21356. v[mk] = mv
  21357. }
  21358. }
  21359. dd.ReadMapEnd()
  21360. return v, changed
  21361. }
  21362. func (d *Decoder) fastpathDecMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  21363. if rv.Kind() == reflect.Ptr {
  21364. vp := rv2i(rv).(*map[uint16]int8)
  21365. if v, changed := fastpathTV.DecMapUint16Int8V(*vp, true, d); changed {
  21366. *vp = v
  21367. }
  21368. return
  21369. }
  21370. fastpathTV.DecMapUint16Int8V(rv2i(rv).(map[uint16]int8), false, d)
  21371. }
  21372. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, d *Decoder) {
  21373. if v, changed := f.DecMapUint16Int8V(*vp, true, d); changed {
  21374. *vp = v
  21375. }
  21376. }
  21377. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, canChange bool,
  21378. d *Decoder) (_ map[uint16]int8, changed bool) {
  21379. dd, esep := d.d, d.hh.hasElemSeparators()
  21380. containerLen := dd.ReadMapStart()
  21381. if canChange && v == nil {
  21382. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  21383. v = make(map[uint16]int8, xlen)
  21384. changed = true
  21385. }
  21386. if containerLen == 0 {
  21387. dd.ReadMapEnd()
  21388. return v, changed
  21389. }
  21390. var mk uint16
  21391. var mv int8
  21392. hasLen := containerLen > 0
  21393. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21394. if esep {
  21395. dd.ReadMapElemKey()
  21396. }
  21397. mk = uint16(dd.DecodeUint(16))
  21398. if esep {
  21399. dd.ReadMapElemValue()
  21400. }
  21401. if dd.TryDecodeAsNil() {
  21402. if d.h.DeleteOnNilMapValue {
  21403. delete(v, mk)
  21404. } else {
  21405. v[mk] = 0
  21406. }
  21407. continue
  21408. }
  21409. mv = int8(dd.DecodeInt(8))
  21410. if v != nil {
  21411. v[mk] = mv
  21412. }
  21413. }
  21414. dd.ReadMapEnd()
  21415. return v, changed
  21416. }
  21417. func (d *Decoder) fastpathDecMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  21418. if rv.Kind() == reflect.Ptr {
  21419. vp := rv2i(rv).(*map[uint16]int16)
  21420. if v, changed := fastpathTV.DecMapUint16Int16V(*vp, true, d); changed {
  21421. *vp = v
  21422. }
  21423. return
  21424. }
  21425. fastpathTV.DecMapUint16Int16V(rv2i(rv).(map[uint16]int16), false, d)
  21426. }
  21427. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, d *Decoder) {
  21428. if v, changed := f.DecMapUint16Int16V(*vp, true, d); changed {
  21429. *vp = v
  21430. }
  21431. }
  21432. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, canChange bool,
  21433. d *Decoder) (_ map[uint16]int16, changed bool) {
  21434. dd, esep := d.d, d.hh.hasElemSeparators()
  21435. containerLen := dd.ReadMapStart()
  21436. if canChange && v == nil {
  21437. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  21438. v = make(map[uint16]int16, xlen)
  21439. changed = true
  21440. }
  21441. if containerLen == 0 {
  21442. dd.ReadMapEnd()
  21443. return v, changed
  21444. }
  21445. var mk uint16
  21446. var mv int16
  21447. hasLen := containerLen > 0
  21448. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21449. if esep {
  21450. dd.ReadMapElemKey()
  21451. }
  21452. mk = uint16(dd.DecodeUint(16))
  21453. if esep {
  21454. dd.ReadMapElemValue()
  21455. }
  21456. if dd.TryDecodeAsNil() {
  21457. if d.h.DeleteOnNilMapValue {
  21458. delete(v, mk)
  21459. } else {
  21460. v[mk] = 0
  21461. }
  21462. continue
  21463. }
  21464. mv = int16(dd.DecodeInt(16))
  21465. if v != nil {
  21466. v[mk] = mv
  21467. }
  21468. }
  21469. dd.ReadMapEnd()
  21470. return v, changed
  21471. }
  21472. func (d *Decoder) fastpathDecMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  21473. if rv.Kind() == reflect.Ptr {
  21474. vp := rv2i(rv).(*map[uint16]int32)
  21475. if v, changed := fastpathTV.DecMapUint16Int32V(*vp, true, d); changed {
  21476. *vp = v
  21477. }
  21478. return
  21479. }
  21480. fastpathTV.DecMapUint16Int32V(rv2i(rv).(map[uint16]int32), false, d)
  21481. }
  21482. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, d *Decoder) {
  21483. if v, changed := f.DecMapUint16Int32V(*vp, true, d); changed {
  21484. *vp = v
  21485. }
  21486. }
  21487. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, canChange bool,
  21488. d *Decoder) (_ map[uint16]int32, changed bool) {
  21489. dd, esep := d.d, d.hh.hasElemSeparators()
  21490. containerLen := dd.ReadMapStart()
  21491. if canChange && v == nil {
  21492. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21493. v = make(map[uint16]int32, xlen)
  21494. changed = true
  21495. }
  21496. if containerLen == 0 {
  21497. dd.ReadMapEnd()
  21498. return v, changed
  21499. }
  21500. var mk uint16
  21501. var mv int32
  21502. hasLen := containerLen > 0
  21503. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21504. if esep {
  21505. dd.ReadMapElemKey()
  21506. }
  21507. mk = uint16(dd.DecodeUint(16))
  21508. if esep {
  21509. dd.ReadMapElemValue()
  21510. }
  21511. if dd.TryDecodeAsNil() {
  21512. if d.h.DeleteOnNilMapValue {
  21513. delete(v, mk)
  21514. } else {
  21515. v[mk] = 0
  21516. }
  21517. continue
  21518. }
  21519. mv = int32(dd.DecodeInt(32))
  21520. if v != nil {
  21521. v[mk] = mv
  21522. }
  21523. }
  21524. dd.ReadMapEnd()
  21525. return v, changed
  21526. }
  21527. func (d *Decoder) fastpathDecMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  21528. if rv.Kind() == reflect.Ptr {
  21529. vp := rv2i(rv).(*map[uint16]int64)
  21530. if v, changed := fastpathTV.DecMapUint16Int64V(*vp, true, d); changed {
  21531. *vp = v
  21532. }
  21533. return
  21534. }
  21535. fastpathTV.DecMapUint16Int64V(rv2i(rv).(map[uint16]int64), false, d)
  21536. }
  21537. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, d *Decoder) {
  21538. if v, changed := f.DecMapUint16Int64V(*vp, true, d); changed {
  21539. *vp = v
  21540. }
  21541. }
  21542. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, canChange bool,
  21543. d *Decoder) (_ map[uint16]int64, changed bool) {
  21544. dd, esep := d.d, d.hh.hasElemSeparators()
  21545. containerLen := dd.ReadMapStart()
  21546. if canChange && v == nil {
  21547. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  21548. v = make(map[uint16]int64, xlen)
  21549. changed = true
  21550. }
  21551. if containerLen == 0 {
  21552. dd.ReadMapEnd()
  21553. return v, changed
  21554. }
  21555. var mk uint16
  21556. var mv int64
  21557. hasLen := containerLen > 0
  21558. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21559. if esep {
  21560. dd.ReadMapElemKey()
  21561. }
  21562. mk = uint16(dd.DecodeUint(16))
  21563. if esep {
  21564. dd.ReadMapElemValue()
  21565. }
  21566. if dd.TryDecodeAsNil() {
  21567. if d.h.DeleteOnNilMapValue {
  21568. delete(v, mk)
  21569. } else {
  21570. v[mk] = 0
  21571. }
  21572. continue
  21573. }
  21574. mv = dd.DecodeInt(64)
  21575. if v != nil {
  21576. v[mk] = mv
  21577. }
  21578. }
  21579. dd.ReadMapEnd()
  21580. return v, changed
  21581. }
  21582. func (d *Decoder) fastpathDecMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  21583. if rv.Kind() == reflect.Ptr {
  21584. vp := rv2i(rv).(*map[uint16]float32)
  21585. if v, changed := fastpathTV.DecMapUint16Float32V(*vp, true, d); changed {
  21586. *vp = v
  21587. }
  21588. return
  21589. }
  21590. fastpathTV.DecMapUint16Float32V(rv2i(rv).(map[uint16]float32), false, d)
  21591. }
  21592. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, d *Decoder) {
  21593. if v, changed := f.DecMapUint16Float32V(*vp, true, d); changed {
  21594. *vp = v
  21595. }
  21596. }
  21597. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, canChange bool,
  21598. d *Decoder) (_ map[uint16]float32, changed bool) {
  21599. dd, esep := d.d, d.hh.hasElemSeparators()
  21600. containerLen := dd.ReadMapStart()
  21601. if canChange && v == nil {
  21602. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21603. v = make(map[uint16]float32, xlen)
  21604. changed = true
  21605. }
  21606. if containerLen == 0 {
  21607. dd.ReadMapEnd()
  21608. return v, changed
  21609. }
  21610. var mk uint16
  21611. var mv float32
  21612. hasLen := containerLen > 0
  21613. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21614. if esep {
  21615. dd.ReadMapElemKey()
  21616. }
  21617. mk = uint16(dd.DecodeUint(16))
  21618. if esep {
  21619. dd.ReadMapElemValue()
  21620. }
  21621. if dd.TryDecodeAsNil() {
  21622. if d.h.DeleteOnNilMapValue {
  21623. delete(v, mk)
  21624. } else {
  21625. v[mk] = 0
  21626. }
  21627. continue
  21628. }
  21629. mv = float32(dd.DecodeFloat(true))
  21630. if v != nil {
  21631. v[mk] = mv
  21632. }
  21633. }
  21634. dd.ReadMapEnd()
  21635. return v, changed
  21636. }
  21637. func (d *Decoder) fastpathDecMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  21638. if rv.Kind() == reflect.Ptr {
  21639. vp := rv2i(rv).(*map[uint16]float64)
  21640. if v, changed := fastpathTV.DecMapUint16Float64V(*vp, true, d); changed {
  21641. *vp = v
  21642. }
  21643. return
  21644. }
  21645. fastpathTV.DecMapUint16Float64V(rv2i(rv).(map[uint16]float64), false, d)
  21646. }
  21647. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, d *Decoder) {
  21648. if v, changed := f.DecMapUint16Float64V(*vp, true, d); changed {
  21649. *vp = v
  21650. }
  21651. }
  21652. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, canChange bool,
  21653. d *Decoder) (_ map[uint16]float64, changed bool) {
  21654. dd, esep := d.d, d.hh.hasElemSeparators()
  21655. containerLen := dd.ReadMapStart()
  21656. if canChange && v == nil {
  21657. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  21658. v = make(map[uint16]float64, xlen)
  21659. changed = true
  21660. }
  21661. if containerLen == 0 {
  21662. dd.ReadMapEnd()
  21663. return v, changed
  21664. }
  21665. var mk uint16
  21666. var mv float64
  21667. hasLen := containerLen > 0
  21668. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21669. if esep {
  21670. dd.ReadMapElemKey()
  21671. }
  21672. mk = uint16(dd.DecodeUint(16))
  21673. if esep {
  21674. dd.ReadMapElemValue()
  21675. }
  21676. if dd.TryDecodeAsNil() {
  21677. if d.h.DeleteOnNilMapValue {
  21678. delete(v, mk)
  21679. } else {
  21680. v[mk] = 0
  21681. }
  21682. continue
  21683. }
  21684. mv = dd.DecodeFloat(false)
  21685. if v != nil {
  21686. v[mk] = mv
  21687. }
  21688. }
  21689. dd.ReadMapEnd()
  21690. return v, changed
  21691. }
  21692. func (d *Decoder) fastpathDecMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  21693. if rv.Kind() == reflect.Ptr {
  21694. vp := rv2i(rv).(*map[uint16]bool)
  21695. if v, changed := fastpathTV.DecMapUint16BoolV(*vp, true, d); changed {
  21696. *vp = v
  21697. }
  21698. return
  21699. }
  21700. fastpathTV.DecMapUint16BoolV(rv2i(rv).(map[uint16]bool), false, d)
  21701. }
  21702. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, d *Decoder) {
  21703. if v, changed := f.DecMapUint16BoolV(*vp, true, d); changed {
  21704. *vp = v
  21705. }
  21706. }
  21707. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, canChange bool,
  21708. d *Decoder) (_ map[uint16]bool, changed bool) {
  21709. dd, esep := d.d, d.hh.hasElemSeparators()
  21710. containerLen := dd.ReadMapStart()
  21711. if canChange && v == nil {
  21712. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  21713. v = make(map[uint16]bool, xlen)
  21714. changed = true
  21715. }
  21716. if containerLen == 0 {
  21717. dd.ReadMapEnd()
  21718. return v, changed
  21719. }
  21720. var mk uint16
  21721. var mv bool
  21722. hasLen := containerLen > 0
  21723. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21724. if esep {
  21725. dd.ReadMapElemKey()
  21726. }
  21727. mk = uint16(dd.DecodeUint(16))
  21728. if esep {
  21729. dd.ReadMapElemValue()
  21730. }
  21731. if dd.TryDecodeAsNil() {
  21732. if d.h.DeleteOnNilMapValue {
  21733. delete(v, mk)
  21734. } else {
  21735. v[mk] = false
  21736. }
  21737. continue
  21738. }
  21739. mv = dd.DecodeBool()
  21740. if v != nil {
  21741. v[mk] = mv
  21742. }
  21743. }
  21744. dd.ReadMapEnd()
  21745. return v, changed
  21746. }
  21747. func (d *Decoder) fastpathDecMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  21748. if rv.Kind() == reflect.Ptr {
  21749. vp := rv2i(rv).(*map[uint32]interface{})
  21750. if v, changed := fastpathTV.DecMapUint32IntfV(*vp, true, d); changed {
  21751. *vp = v
  21752. }
  21753. return
  21754. }
  21755. fastpathTV.DecMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), false, d)
  21756. }
  21757. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, d *Decoder) {
  21758. if v, changed := f.DecMapUint32IntfV(*vp, true, d); changed {
  21759. *vp = v
  21760. }
  21761. }
  21762. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, canChange bool,
  21763. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  21764. dd, esep := d.d, d.hh.hasElemSeparators()
  21765. containerLen := dd.ReadMapStart()
  21766. if canChange && v == nil {
  21767. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  21768. v = make(map[uint32]interface{}, xlen)
  21769. changed = true
  21770. }
  21771. if containerLen == 0 {
  21772. dd.ReadMapEnd()
  21773. return v, changed
  21774. }
  21775. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  21776. var mk uint32
  21777. var mv interface{}
  21778. hasLen := containerLen > 0
  21779. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21780. if esep {
  21781. dd.ReadMapElemKey()
  21782. }
  21783. mk = uint32(dd.DecodeUint(32))
  21784. if esep {
  21785. dd.ReadMapElemValue()
  21786. }
  21787. if dd.TryDecodeAsNil() {
  21788. if d.h.DeleteOnNilMapValue {
  21789. delete(v, mk)
  21790. } else {
  21791. v[mk] = nil
  21792. }
  21793. continue
  21794. }
  21795. if mapGet {
  21796. mv = v[mk]
  21797. } else {
  21798. mv = nil
  21799. }
  21800. d.decode(&mv)
  21801. if v != nil {
  21802. v[mk] = mv
  21803. }
  21804. }
  21805. dd.ReadMapEnd()
  21806. return v, changed
  21807. }
  21808. func (d *Decoder) fastpathDecMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  21809. if rv.Kind() == reflect.Ptr {
  21810. vp := rv2i(rv).(*map[uint32]string)
  21811. if v, changed := fastpathTV.DecMapUint32StringV(*vp, true, d); changed {
  21812. *vp = v
  21813. }
  21814. return
  21815. }
  21816. fastpathTV.DecMapUint32StringV(rv2i(rv).(map[uint32]string), false, d)
  21817. }
  21818. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, d *Decoder) {
  21819. if v, changed := f.DecMapUint32StringV(*vp, true, d); changed {
  21820. *vp = v
  21821. }
  21822. }
  21823. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, canChange bool,
  21824. d *Decoder) (_ map[uint32]string, changed bool) {
  21825. dd, esep := d.d, d.hh.hasElemSeparators()
  21826. containerLen := dd.ReadMapStart()
  21827. if canChange && v == nil {
  21828. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  21829. v = make(map[uint32]string, xlen)
  21830. changed = true
  21831. }
  21832. if containerLen == 0 {
  21833. dd.ReadMapEnd()
  21834. return v, changed
  21835. }
  21836. var mk uint32
  21837. var mv string
  21838. hasLen := containerLen > 0
  21839. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21840. if esep {
  21841. dd.ReadMapElemKey()
  21842. }
  21843. mk = uint32(dd.DecodeUint(32))
  21844. if esep {
  21845. dd.ReadMapElemValue()
  21846. }
  21847. if dd.TryDecodeAsNil() {
  21848. if d.h.DeleteOnNilMapValue {
  21849. delete(v, mk)
  21850. } else {
  21851. v[mk] = ""
  21852. }
  21853. continue
  21854. }
  21855. mv = dd.DecodeString()
  21856. if v != nil {
  21857. v[mk] = mv
  21858. }
  21859. }
  21860. dd.ReadMapEnd()
  21861. return v, changed
  21862. }
  21863. func (d *Decoder) fastpathDecMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  21864. if rv.Kind() == reflect.Ptr {
  21865. vp := rv2i(rv).(*map[uint32]uint)
  21866. if v, changed := fastpathTV.DecMapUint32UintV(*vp, true, d); changed {
  21867. *vp = v
  21868. }
  21869. return
  21870. }
  21871. fastpathTV.DecMapUint32UintV(rv2i(rv).(map[uint32]uint), false, d)
  21872. }
  21873. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, d *Decoder) {
  21874. if v, changed := f.DecMapUint32UintV(*vp, true, d); changed {
  21875. *vp = v
  21876. }
  21877. }
  21878. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, canChange bool,
  21879. d *Decoder) (_ map[uint32]uint, changed bool) {
  21880. dd, esep := d.d, d.hh.hasElemSeparators()
  21881. containerLen := dd.ReadMapStart()
  21882. if canChange && v == nil {
  21883. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21884. v = make(map[uint32]uint, xlen)
  21885. changed = true
  21886. }
  21887. if containerLen == 0 {
  21888. dd.ReadMapEnd()
  21889. return v, changed
  21890. }
  21891. var mk uint32
  21892. var mv uint
  21893. hasLen := containerLen > 0
  21894. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21895. if esep {
  21896. dd.ReadMapElemKey()
  21897. }
  21898. mk = uint32(dd.DecodeUint(32))
  21899. if esep {
  21900. dd.ReadMapElemValue()
  21901. }
  21902. if dd.TryDecodeAsNil() {
  21903. if d.h.DeleteOnNilMapValue {
  21904. delete(v, mk)
  21905. } else {
  21906. v[mk] = 0
  21907. }
  21908. continue
  21909. }
  21910. mv = uint(dd.DecodeUint(uintBitsize))
  21911. if v != nil {
  21912. v[mk] = mv
  21913. }
  21914. }
  21915. dd.ReadMapEnd()
  21916. return v, changed
  21917. }
  21918. func (d *Decoder) fastpathDecMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  21919. if rv.Kind() == reflect.Ptr {
  21920. vp := rv2i(rv).(*map[uint32]uint8)
  21921. if v, changed := fastpathTV.DecMapUint32Uint8V(*vp, true, d); changed {
  21922. *vp = v
  21923. }
  21924. return
  21925. }
  21926. fastpathTV.DecMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), false, d)
  21927. }
  21928. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, d *Decoder) {
  21929. if v, changed := f.DecMapUint32Uint8V(*vp, true, d); changed {
  21930. *vp = v
  21931. }
  21932. }
  21933. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, canChange bool,
  21934. d *Decoder) (_ map[uint32]uint8, changed bool) {
  21935. dd, esep := d.d, d.hh.hasElemSeparators()
  21936. containerLen := dd.ReadMapStart()
  21937. if canChange && v == nil {
  21938. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21939. v = make(map[uint32]uint8, xlen)
  21940. changed = true
  21941. }
  21942. if containerLen == 0 {
  21943. dd.ReadMapEnd()
  21944. return v, changed
  21945. }
  21946. var mk uint32
  21947. var mv uint8
  21948. hasLen := containerLen > 0
  21949. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21950. if esep {
  21951. dd.ReadMapElemKey()
  21952. }
  21953. mk = uint32(dd.DecodeUint(32))
  21954. if esep {
  21955. dd.ReadMapElemValue()
  21956. }
  21957. if dd.TryDecodeAsNil() {
  21958. if d.h.DeleteOnNilMapValue {
  21959. delete(v, mk)
  21960. } else {
  21961. v[mk] = 0
  21962. }
  21963. continue
  21964. }
  21965. mv = uint8(dd.DecodeUint(8))
  21966. if v != nil {
  21967. v[mk] = mv
  21968. }
  21969. }
  21970. dd.ReadMapEnd()
  21971. return v, changed
  21972. }
  21973. func (d *Decoder) fastpathDecMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  21974. if rv.Kind() == reflect.Ptr {
  21975. vp := rv2i(rv).(*map[uint32]uint16)
  21976. if v, changed := fastpathTV.DecMapUint32Uint16V(*vp, true, d); changed {
  21977. *vp = v
  21978. }
  21979. return
  21980. }
  21981. fastpathTV.DecMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), false, d)
  21982. }
  21983. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, d *Decoder) {
  21984. if v, changed := f.DecMapUint32Uint16V(*vp, true, d); changed {
  21985. *vp = v
  21986. }
  21987. }
  21988. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, canChange bool,
  21989. d *Decoder) (_ map[uint32]uint16, changed bool) {
  21990. dd, esep := d.d, d.hh.hasElemSeparators()
  21991. containerLen := dd.ReadMapStart()
  21992. if canChange && v == nil {
  21993. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21994. v = make(map[uint32]uint16, xlen)
  21995. changed = true
  21996. }
  21997. if containerLen == 0 {
  21998. dd.ReadMapEnd()
  21999. return v, changed
  22000. }
  22001. var mk uint32
  22002. var mv uint16
  22003. hasLen := containerLen > 0
  22004. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22005. if esep {
  22006. dd.ReadMapElemKey()
  22007. }
  22008. mk = uint32(dd.DecodeUint(32))
  22009. if esep {
  22010. dd.ReadMapElemValue()
  22011. }
  22012. if dd.TryDecodeAsNil() {
  22013. if d.h.DeleteOnNilMapValue {
  22014. delete(v, mk)
  22015. } else {
  22016. v[mk] = 0
  22017. }
  22018. continue
  22019. }
  22020. mv = uint16(dd.DecodeUint(16))
  22021. if v != nil {
  22022. v[mk] = mv
  22023. }
  22024. }
  22025. dd.ReadMapEnd()
  22026. return v, changed
  22027. }
  22028. func (d *Decoder) fastpathDecMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  22029. if rv.Kind() == reflect.Ptr {
  22030. vp := rv2i(rv).(*map[uint32]uint32)
  22031. if v, changed := fastpathTV.DecMapUint32Uint32V(*vp, true, d); changed {
  22032. *vp = v
  22033. }
  22034. return
  22035. }
  22036. fastpathTV.DecMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), false, d)
  22037. }
  22038. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, d *Decoder) {
  22039. if v, changed := f.DecMapUint32Uint32V(*vp, true, d); changed {
  22040. *vp = v
  22041. }
  22042. }
  22043. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, canChange bool,
  22044. d *Decoder) (_ map[uint32]uint32, changed bool) {
  22045. dd, esep := d.d, d.hh.hasElemSeparators()
  22046. containerLen := dd.ReadMapStart()
  22047. if canChange && v == nil {
  22048. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  22049. v = make(map[uint32]uint32, xlen)
  22050. changed = true
  22051. }
  22052. if containerLen == 0 {
  22053. dd.ReadMapEnd()
  22054. return v, changed
  22055. }
  22056. var mk uint32
  22057. var mv uint32
  22058. hasLen := containerLen > 0
  22059. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22060. if esep {
  22061. dd.ReadMapElemKey()
  22062. }
  22063. mk = uint32(dd.DecodeUint(32))
  22064. if esep {
  22065. dd.ReadMapElemValue()
  22066. }
  22067. if dd.TryDecodeAsNil() {
  22068. if d.h.DeleteOnNilMapValue {
  22069. delete(v, mk)
  22070. } else {
  22071. v[mk] = 0
  22072. }
  22073. continue
  22074. }
  22075. mv = uint32(dd.DecodeUint(32))
  22076. if v != nil {
  22077. v[mk] = mv
  22078. }
  22079. }
  22080. dd.ReadMapEnd()
  22081. return v, changed
  22082. }
  22083. func (d *Decoder) fastpathDecMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  22084. if rv.Kind() == reflect.Ptr {
  22085. vp := rv2i(rv).(*map[uint32]uint64)
  22086. if v, changed := fastpathTV.DecMapUint32Uint64V(*vp, true, d); changed {
  22087. *vp = v
  22088. }
  22089. return
  22090. }
  22091. fastpathTV.DecMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), false, d)
  22092. }
  22093. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, d *Decoder) {
  22094. if v, changed := f.DecMapUint32Uint64V(*vp, true, d); changed {
  22095. *vp = v
  22096. }
  22097. }
  22098. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, canChange bool,
  22099. d *Decoder) (_ map[uint32]uint64, changed bool) {
  22100. dd, esep := d.d, d.hh.hasElemSeparators()
  22101. containerLen := dd.ReadMapStart()
  22102. if canChange && v == nil {
  22103. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22104. v = make(map[uint32]uint64, xlen)
  22105. changed = true
  22106. }
  22107. if containerLen == 0 {
  22108. dd.ReadMapEnd()
  22109. return v, changed
  22110. }
  22111. var mk uint32
  22112. var mv uint64
  22113. hasLen := containerLen > 0
  22114. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22115. if esep {
  22116. dd.ReadMapElemKey()
  22117. }
  22118. mk = uint32(dd.DecodeUint(32))
  22119. if esep {
  22120. dd.ReadMapElemValue()
  22121. }
  22122. if dd.TryDecodeAsNil() {
  22123. if d.h.DeleteOnNilMapValue {
  22124. delete(v, mk)
  22125. } else {
  22126. v[mk] = 0
  22127. }
  22128. continue
  22129. }
  22130. mv = dd.DecodeUint(64)
  22131. if v != nil {
  22132. v[mk] = mv
  22133. }
  22134. }
  22135. dd.ReadMapEnd()
  22136. return v, changed
  22137. }
  22138. func (d *Decoder) fastpathDecMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  22139. if rv.Kind() == reflect.Ptr {
  22140. vp := rv2i(rv).(*map[uint32]uintptr)
  22141. if v, changed := fastpathTV.DecMapUint32UintptrV(*vp, true, d); changed {
  22142. *vp = v
  22143. }
  22144. return
  22145. }
  22146. fastpathTV.DecMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), false, d)
  22147. }
  22148. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, d *Decoder) {
  22149. if v, changed := f.DecMapUint32UintptrV(*vp, true, d); changed {
  22150. *vp = v
  22151. }
  22152. }
  22153. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, canChange bool,
  22154. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  22155. dd, esep := d.d, d.hh.hasElemSeparators()
  22156. containerLen := dd.ReadMapStart()
  22157. if canChange && v == nil {
  22158. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22159. v = make(map[uint32]uintptr, xlen)
  22160. changed = true
  22161. }
  22162. if containerLen == 0 {
  22163. dd.ReadMapEnd()
  22164. return v, changed
  22165. }
  22166. var mk uint32
  22167. var mv uintptr
  22168. hasLen := containerLen > 0
  22169. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22170. if esep {
  22171. dd.ReadMapElemKey()
  22172. }
  22173. mk = uint32(dd.DecodeUint(32))
  22174. if esep {
  22175. dd.ReadMapElemValue()
  22176. }
  22177. if dd.TryDecodeAsNil() {
  22178. if d.h.DeleteOnNilMapValue {
  22179. delete(v, mk)
  22180. } else {
  22181. v[mk] = 0
  22182. }
  22183. continue
  22184. }
  22185. mv = uintptr(dd.DecodeUint(uintBitsize))
  22186. if v != nil {
  22187. v[mk] = mv
  22188. }
  22189. }
  22190. dd.ReadMapEnd()
  22191. return v, changed
  22192. }
  22193. func (d *Decoder) fastpathDecMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  22194. if rv.Kind() == reflect.Ptr {
  22195. vp := rv2i(rv).(*map[uint32]int)
  22196. if v, changed := fastpathTV.DecMapUint32IntV(*vp, true, d); changed {
  22197. *vp = v
  22198. }
  22199. return
  22200. }
  22201. fastpathTV.DecMapUint32IntV(rv2i(rv).(map[uint32]int), false, d)
  22202. }
  22203. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, d *Decoder) {
  22204. if v, changed := f.DecMapUint32IntV(*vp, true, d); changed {
  22205. *vp = v
  22206. }
  22207. }
  22208. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, canChange bool,
  22209. d *Decoder) (_ map[uint32]int, changed bool) {
  22210. dd, esep := d.d, d.hh.hasElemSeparators()
  22211. containerLen := dd.ReadMapStart()
  22212. if canChange && v == nil {
  22213. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22214. v = make(map[uint32]int, xlen)
  22215. changed = true
  22216. }
  22217. if containerLen == 0 {
  22218. dd.ReadMapEnd()
  22219. return v, changed
  22220. }
  22221. var mk uint32
  22222. var mv int
  22223. hasLen := containerLen > 0
  22224. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22225. if esep {
  22226. dd.ReadMapElemKey()
  22227. }
  22228. mk = uint32(dd.DecodeUint(32))
  22229. if esep {
  22230. dd.ReadMapElemValue()
  22231. }
  22232. if dd.TryDecodeAsNil() {
  22233. if d.h.DeleteOnNilMapValue {
  22234. delete(v, mk)
  22235. } else {
  22236. v[mk] = 0
  22237. }
  22238. continue
  22239. }
  22240. mv = int(dd.DecodeInt(intBitsize))
  22241. if v != nil {
  22242. v[mk] = mv
  22243. }
  22244. }
  22245. dd.ReadMapEnd()
  22246. return v, changed
  22247. }
  22248. func (d *Decoder) fastpathDecMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  22249. if rv.Kind() == reflect.Ptr {
  22250. vp := rv2i(rv).(*map[uint32]int8)
  22251. if v, changed := fastpathTV.DecMapUint32Int8V(*vp, true, d); changed {
  22252. *vp = v
  22253. }
  22254. return
  22255. }
  22256. fastpathTV.DecMapUint32Int8V(rv2i(rv).(map[uint32]int8), false, d)
  22257. }
  22258. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, d *Decoder) {
  22259. if v, changed := f.DecMapUint32Int8V(*vp, true, d); changed {
  22260. *vp = v
  22261. }
  22262. }
  22263. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, canChange bool,
  22264. d *Decoder) (_ map[uint32]int8, changed bool) {
  22265. dd, esep := d.d, d.hh.hasElemSeparators()
  22266. containerLen := dd.ReadMapStart()
  22267. if canChange && v == nil {
  22268. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  22269. v = make(map[uint32]int8, xlen)
  22270. changed = true
  22271. }
  22272. if containerLen == 0 {
  22273. dd.ReadMapEnd()
  22274. return v, changed
  22275. }
  22276. var mk uint32
  22277. var mv int8
  22278. hasLen := containerLen > 0
  22279. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22280. if esep {
  22281. dd.ReadMapElemKey()
  22282. }
  22283. mk = uint32(dd.DecodeUint(32))
  22284. if esep {
  22285. dd.ReadMapElemValue()
  22286. }
  22287. if dd.TryDecodeAsNil() {
  22288. if d.h.DeleteOnNilMapValue {
  22289. delete(v, mk)
  22290. } else {
  22291. v[mk] = 0
  22292. }
  22293. continue
  22294. }
  22295. mv = int8(dd.DecodeInt(8))
  22296. if v != nil {
  22297. v[mk] = mv
  22298. }
  22299. }
  22300. dd.ReadMapEnd()
  22301. return v, changed
  22302. }
  22303. func (d *Decoder) fastpathDecMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  22304. if rv.Kind() == reflect.Ptr {
  22305. vp := rv2i(rv).(*map[uint32]int16)
  22306. if v, changed := fastpathTV.DecMapUint32Int16V(*vp, true, d); changed {
  22307. *vp = v
  22308. }
  22309. return
  22310. }
  22311. fastpathTV.DecMapUint32Int16V(rv2i(rv).(map[uint32]int16), false, d)
  22312. }
  22313. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, d *Decoder) {
  22314. if v, changed := f.DecMapUint32Int16V(*vp, true, d); changed {
  22315. *vp = v
  22316. }
  22317. }
  22318. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, canChange bool,
  22319. d *Decoder) (_ map[uint32]int16, changed bool) {
  22320. dd, esep := d.d, d.hh.hasElemSeparators()
  22321. containerLen := dd.ReadMapStart()
  22322. if canChange && v == nil {
  22323. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  22324. v = make(map[uint32]int16, xlen)
  22325. changed = true
  22326. }
  22327. if containerLen == 0 {
  22328. dd.ReadMapEnd()
  22329. return v, changed
  22330. }
  22331. var mk uint32
  22332. var mv int16
  22333. hasLen := containerLen > 0
  22334. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22335. if esep {
  22336. dd.ReadMapElemKey()
  22337. }
  22338. mk = uint32(dd.DecodeUint(32))
  22339. if esep {
  22340. dd.ReadMapElemValue()
  22341. }
  22342. if dd.TryDecodeAsNil() {
  22343. if d.h.DeleteOnNilMapValue {
  22344. delete(v, mk)
  22345. } else {
  22346. v[mk] = 0
  22347. }
  22348. continue
  22349. }
  22350. mv = int16(dd.DecodeInt(16))
  22351. if v != nil {
  22352. v[mk] = mv
  22353. }
  22354. }
  22355. dd.ReadMapEnd()
  22356. return v, changed
  22357. }
  22358. func (d *Decoder) fastpathDecMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  22359. if rv.Kind() == reflect.Ptr {
  22360. vp := rv2i(rv).(*map[uint32]int32)
  22361. if v, changed := fastpathTV.DecMapUint32Int32V(*vp, true, d); changed {
  22362. *vp = v
  22363. }
  22364. return
  22365. }
  22366. fastpathTV.DecMapUint32Int32V(rv2i(rv).(map[uint32]int32), false, d)
  22367. }
  22368. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, d *Decoder) {
  22369. if v, changed := f.DecMapUint32Int32V(*vp, true, d); changed {
  22370. *vp = v
  22371. }
  22372. }
  22373. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, canChange bool,
  22374. d *Decoder) (_ map[uint32]int32, changed bool) {
  22375. dd, esep := d.d, d.hh.hasElemSeparators()
  22376. containerLen := dd.ReadMapStart()
  22377. if canChange && v == nil {
  22378. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  22379. v = make(map[uint32]int32, xlen)
  22380. changed = true
  22381. }
  22382. if containerLen == 0 {
  22383. dd.ReadMapEnd()
  22384. return v, changed
  22385. }
  22386. var mk uint32
  22387. var mv int32
  22388. hasLen := containerLen > 0
  22389. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22390. if esep {
  22391. dd.ReadMapElemKey()
  22392. }
  22393. mk = uint32(dd.DecodeUint(32))
  22394. if esep {
  22395. dd.ReadMapElemValue()
  22396. }
  22397. if dd.TryDecodeAsNil() {
  22398. if d.h.DeleteOnNilMapValue {
  22399. delete(v, mk)
  22400. } else {
  22401. v[mk] = 0
  22402. }
  22403. continue
  22404. }
  22405. mv = int32(dd.DecodeInt(32))
  22406. if v != nil {
  22407. v[mk] = mv
  22408. }
  22409. }
  22410. dd.ReadMapEnd()
  22411. return v, changed
  22412. }
  22413. func (d *Decoder) fastpathDecMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  22414. if rv.Kind() == reflect.Ptr {
  22415. vp := rv2i(rv).(*map[uint32]int64)
  22416. if v, changed := fastpathTV.DecMapUint32Int64V(*vp, true, d); changed {
  22417. *vp = v
  22418. }
  22419. return
  22420. }
  22421. fastpathTV.DecMapUint32Int64V(rv2i(rv).(map[uint32]int64), false, d)
  22422. }
  22423. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, d *Decoder) {
  22424. if v, changed := f.DecMapUint32Int64V(*vp, true, d); changed {
  22425. *vp = v
  22426. }
  22427. }
  22428. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, canChange bool,
  22429. d *Decoder) (_ map[uint32]int64, changed bool) {
  22430. dd, esep := d.d, d.hh.hasElemSeparators()
  22431. containerLen := dd.ReadMapStart()
  22432. if canChange && v == nil {
  22433. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22434. v = make(map[uint32]int64, xlen)
  22435. changed = true
  22436. }
  22437. if containerLen == 0 {
  22438. dd.ReadMapEnd()
  22439. return v, changed
  22440. }
  22441. var mk uint32
  22442. var mv int64
  22443. hasLen := containerLen > 0
  22444. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22445. if esep {
  22446. dd.ReadMapElemKey()
  22447. }
  22448. mk = uint32(dd.DecodeUint(32))
  22449. if esep {
  22450. dd.ReadMapElemValue()
  22451. }
  22452. if dd.TryDecodeAsNil() {
  22453. if d.h.DeleteOnNilMapValue {
  22454. delete(v, mk)
  22455. } else {
  22456. v[mk] = 0
  22457. }
  22458. continue
  22459. }
  22460. mv = dd.DecodeInt(64)
  22461. if v != nil {
  22462. v[mk] = mv
  22463. }
  22464. }
  22465. dd.ReadMapEnd()
  22466. return v, changed
  22467. }
  22468. func (d *Decoder) fastpathDecMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  22469. if rv.Kind() == reflect.Ptr {
  22470. vp := rv2i(rv).(*map[uint32]float32)
  22471. if v, changed := fastpathTV.DecMapUint32Float32V(*vp, true, d); changed {
  22472. *vp = v
  22473. }
  22474. return
  22475. }
  22476. fastpathTV.DecMapUint32Float32V(rv2i(rv).(map[uint32]float32), false, d)
  22477. }
  22478. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, d *Decoder) {
  22479. if v, changed := f.DecMapUint32Float32V(*vp, true, d); changed {
  22480. *vp = v
  22481. }
  22482. }
  22483. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, canChange bool,
  22484. d *Decoder) (_ map[uint32]float32, changed bool) {
  22485. dd, esep := d.d, d.hh.hasElemSeparators()
  22486. containerLen := dd.ReadMapStart()
  22487. if canChange && v == nil {
  22488. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  22489. v = make(map[uint32]float32, xlen)
  22490. changed = true
  22491. }
  22492. if containerLen == 0 {
  22493. dd.ReadMapEnd()
  22494. return v, changed
  22495. }
  22496. var mk uint32
  22497. var mv float32
  22498. hasLen := containerLen > 0
  22499. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22500. if esep {
  22501. dd.ReadMapElemKey()
  22502. }
  22503. mk = uint32(dd.DecodeUint(32))
  22504. if esep {
  22505. dd.ReadMapElemValue()
  22506. }
  22507. if dd.TryDecodeAsNil() {
  22508. if d.h.DeleteOnNilMapValue {
  22509. delete(v, mk)
  22510. } else {
  22511. v[mk] = 0
  22512. }
  22513. continue
  22514. }
  22515. mv = float32(dd.DecodeFloat(true))
  22516. if v != nil {
  22517. v[mk] = mv
  22518. }
  22519. }
  22520. dd.ReadMapEnd()
  22521. return v, changed
  22522. }
  22523. func (d *Decoder) fastpathDecMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  22524. if rv.Kind() == reflect.Ptr {
  22525. vp := rv2i(rv).(*map[uint32]float64)
  22526. if v, changed := fastpathTV.DecMapUint32Float64V(*vp, true, d); changed {
  22527. *vp = v
  22528. }
  22529. return
  22530. }
  22531. fastpathTV.DecMapUint32Float64V(rv2i(rv).(map[uint32]float64), false, d)
  22532. }
  22533. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, d *Decoder) {
  22534. if v, changed := f.DecMapUint32Float64V(*vp, true, d); changed {
  22535. *vp = v
  22536. }
  22537. }
  22538. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, canChange bool,
  22539. d *Decoder) (_ map[uint32]float64, changed bool) {
  22540. dd, esep := d.d, d.hh.hasElemSeparators()
  22541. containerLen := dd.ReadMapStart()
  22542. if canChange && v == nil {
  22543. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22544. v = make(map[uint32]float64, xlen)
  22545. changed = true
  22546. }
  22547. if containerLen == 0 {
  22548. dd.ReadMapEnd()
  22549. return v, changed
  22550. }
  22551. var mk uint32
  22552. var mv float64
  22553. hasLen := containerLen > 0
  22554. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22555. if esep {
  22556. dd.ReadMapElemKey()
  22557. }
  22558. mk = uint32(dd.DecodeUint(32))
  22559. if esep {
  22560. dd.ReadMapElemValue()
  22561. }
  22562. if dd.TryDecodeAsNil() {
  22563. if d.h.DeleteOnNilMapValue {
  22564. delete(v, mk)
  22565. } else {
  22566. v[mk] = 0
  22567. }
  22568. continue
  22569. }
  22570. mv = dd.DecodeFloat(false)
  22571. if v != nil {
  22572. v[mk] = mv
  22573. }
  22574. }
  22575. dd.ReadMapEnd()
  22576. return v, changed
  22577. }
  22578. func (d *Decoder) fastpathDecMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  22579. if rv.Kind() == reflect.Ptr {
  22580. vp := rv2i(rv).(*map[uint32]bool)
  22581. if v, changed := fastpathTV.DecMapUint32BoolV(*vp, true, d); changed {
  22582. *vp = v
  22583. }
  22584. return
  22585. }
  22586. fastpathTV.DecMapUint32BoolV(rv2i(rv).(map[uint32]bool), false, d)
  22587. }
  22588. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, d *Decoder) {
  22589. if v, changed := f.DecMapUint32BoolV(*vp, true, d); changed {
  22590. *vp = v
  22591. }
  22592. }
  22593. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, canChange bool,
  22594. d *Decoder) (_ map[uint32]bool, changed bool) {
  22595. dd, esep := d.d, d.hh.hasElemSeparators()
  22596. containerLen := dd.ReadMapStart()
  22597. if canChange && v == nil {
  22598. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  22599. v = make(map[uint32]bool, xlen)
  22600. changed = true
  22601. }
  22602. if containerLen == 0 {
  22603. dd.ReadMapEnd()
  22604. return v, changed
  22605. }
  22606. var mk uint32
  22607. var mv bool
  22608. hasLen := containerLen > 0
  22609. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22610. if esep {
  22611. dd.ReadMapElemKey()
  22612. }
  22613. mk = uint32(dd.DecodeUint(32))
  22614. if esep {
  22615. dd.ReadMapElemValue()
  22616. }
  22617. if dd.TryDecodeAsNil() {
  22618. if d.h.DeleteOnNilMapValue {
  22619. delete(v, mk)
  22620. } else {
  22621. v[mk] = false
  22622. }
  22623. continue
  22624. }
  22625. mv = dd.DecodeBool()
  22626. if v != nil {
  22627. v[mk] = mv
  22628. }
  22629. }
  22630. dd.ReadMapEnd()
  22631. return v, changed
  22632. }
  22633. func (d *Decoder) fastpathDecMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  22634. if rv.Kind() == reflect.Ptr {
  22635. vp := rv2i(rv).(*map[uint64]interface{})
  22636. if v, changed := fastpathTV.DecMapUint64IntfV(*vp, true, d); changed {
  22637. *vp = v
  22638. }
  22639. return
  22640. }
  22641. fastpathTV.DecMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), false, d)
  22642. }
  22643. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, d *Decoder) {
  22644. if v, changed := f.DecMapUint64IntfV(*vp, true, d); changed {
  22645. *vp = v
  22646. }
  22647. }
  22648. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, canChange bool,
  22649. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  22650. dd, esep := d.d, d.hh.hasElemSeparators()
  22651. containerLen := dd.ReadMapStart()
  22652. if canChange && v == nil {
  22653. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22654. v = make(map[uint64]interface{}, xlen)
  22655. changed = true
  22656. }
  22657. if containerLen == 0 {
  22658. dd.ReadMapEnd()
  22659. return v, changed
  22660. }
  22661. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  22662. var mk uint64
  22663. var mv interface{}
  22664. hasLen := containerLen > 0
  22665. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22666. if esep {
  22667. dd.ReadMapElemKey()
  22668. }
  22669. mk = dd.DecodeUint(64)
  22670. if esep {
  22671. dd.ReadMapElemValue()
  22672. }
  22673. if dd.TryDecodeAsNil() {
  22674. if d.h.DeleteOnNilMapValue {
  22675. delete(v, mk)
  22676. } else {
  22677. v[mk] = nil
  22678. }
  22679. continue
  22680. }
  22681. if mapGet {
  22682. mv = v[mk]
  22683. } else {
  22684. mv = nil
  22685. }
  22686. d.decode(&mv)
  22687. if v != nil {
  22688. v[mk] = mv
  22689. }
  22690. }
  22691. dd.ReadMapEnd()
  22692. return v, changed
  22693. }
  22694. func (d *Decoder) fastpathDecMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  22695. if rv.Kind() == reflect.Ptr {
  22696. vp := rv2i(rv).(*map[uint64]string)
  22697. if v, changed := fastpathTV.DecMapUint64StringV(*vp, true, d); changed {
  22698. *vp = v
  22699. }
  22700. return
  22701. }
  22702. fastpathTV.DecMapUint64StringV(rv2i(rv).(map[uint64]string), false, d)
  22703. }
  22704. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, d *Decoder) {
  22705. if v, changed := f.DecMapUint64StringV(*vp, true, d); changed {
  22706. *vp = v
  22707. }
  22708. }
  22709. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, canChange bool,
  22710. d *Decoder) (_ map[uint64]string, changed bool) {
  22711. dd, esep := d.d, d.hh.hasElemSeparators()
  22712. containerLen := dd.ReadMapStart()
  22713. if canChange && v == nil {
  22714. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22715. v = make(map[uint64]string, xlen)
  22716. changed = true
  22717. }
  22718. if containerLen == 0 {
  22719. dd.ReadMapEnd()
  22720. return v, changed
  22721. }
  22722. var mk uint64
  22723. var mv string
  22724. hasLen := containerLen > 0
  22725. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22726. if esep {
  22727. dd.ReadMapElemKey()
  22728. }
  22729. mk = dd.DecodeUint(64)
  22730. if esep {
  22731. dd.ReadMapElemValue()
  22732. }
  22733. if dd.TryDecodeAsNil() {
  22734. if d.h.DeleteOnNilMapValue {
  22735. delete(v, mk)
  22736. } else {
  22737. v[mk] = ""
  22738. }
  22739. continue
  22740. }
  22741. mv = dd.DecodeString()
  22742. if v != nil {
  22743. v[mk] = mv
  22744. }
  22745. }
  22746. dd.ReadMapEnd()
  22747. return v, changed
  22748. }
  22749. func (d *Decoder) fastpathDecMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  22750. if rv.Kind() == reflect.Ptr {
  22751. vp := rv2i(rv).(*map[uint64]uint)
  22752. if v, changed := fastpathTV.DecMapUint64UintV(*vp, true, d); changed {
  22753. *vp = v
  22754. }
  22755. return
  22756. }
  22757. fastpathTV.DecMapUint64UintV(rv2i(rv).(map[uint64]uint), false, d)
  22758. }
  22759. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, d *Decoder) {
  22760. if v, changed := f.DecMapUint64UintV(*vp, true, d); changed {
  22761. *vp = v
  22762. }
  22763. }
  22764. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, canChange bool,
  22765. d *Decoder) (_ map[uint64]uint, changed bool) {
  22766. dd, esep := d.d, d.hh.hasElemSeparators()
  22767. containerLen := dd.ReadMapStart()
  22768. if canChange && v == nil {
  22769. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22770. v = make(map[uint64]uint, xlen)
  22771. changed = true
  22772. }
  22773. if containerLen == 0 {
  22774. dd.ReadMapEnd()
  22775. return v, changed
  22776. }
  22777. var mk uint64
  22778. var mv uint
  22779. hasLen := containerLen > 0
  22780. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22781. if esep {
  22782. dd.ReadMapElemKey()
  22783. }
  22784. mk = dd.DecodeUint(64)
  22785. if esep {
  22786. dd.ReadMapElemValue()
  22787. }
  22788. if dd.TryDecodeAsNil() {
  22789. if d.h.DeleteOnNilMapValue {
  22790. delete(v, mk)
  22791. } else {
  22792. v[mk] = 0
  22793. }
  22794. continue
  22795. }
  22796. mv = uint(dd.DecodeUint(uintBitsize))
  22797. if v != nil {
  22798. v[mk] = mv
  22799. }
  22800. }
  22801. dd.ReadMapEnd()
  22802. return v, changed
  22803. }
  22804. func (d *Decoder) fastpathDecMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  22805. if rv.Kind() == reflect.Ptr {
  22806. vp := rv2i(rv).(*map[uint64]uint8)
  22807. if v, changed := fastpathTV.DecMapUint64Uint8V(*vp, true, d); changed {
  22808. *vp = v
  22809. }
  22810. return
  22811. }
  22812. fastpathTV.DecMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), false, d)
  22813. }
  22814. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, d *Decoder) {
  22815. if v, changed := f.DecMapUint64Uint8V(*vp, true, d); changed {
  22816. *vp = v
  22817. }
  22818. }
  22819. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, canChange bool,
  22820. d *Decoder) (_ map[uint64]uint8, changed bool) {
  22821. dd, esep := d.d, d.hh.hasElemSeparators()
  22822. containerLen := dd.ReadMapStart()
  22823. if canChange && v == nil {
  22824. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22825. v = make(map[uint64]uint8, xlen)
  22826. changed = true
  22827. }
  22828. if containerLen == 0 {
  22829. dd.ReadMapEnd()
  22830. return v, changed
  22831. }
  22832. var mk uint64
  22833. var mv uint8
  22834. hasLen := containerLen > 0
  22835. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22836. if esep {
  22837. dd.ReadMapElemKey()
  22838. }
  22839. mk = dd.DecodeUint(64)
  22840. if esep {
  22841. dd.ReadMapElemValue()
  22842. }
  22843. if dd.TryDecodeAsNil() {
  22844. if d.h.DeleteOnNilMapValue {
  22845. delete(v, mk)
  22846. } else {
  22847. v[mk] = 0
  22848. }
  22849. continue
  22850. }
  22851. mv = uint8(dd.DecodeUint(8))
  22852. if v != nil {
  22853. v[mk] = mv
  22854. }
  22855. }
  22856. dd.ReadMapEnd()
  22857. return v, changed
  22858. }
  22859. func (d *Decoder) fastpathDecMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  22860. if rv.Kind() == reflect.Ptr {
  22861. vp := rv2i(rv).(*map[uint64]uint16)
  22862. if v, changed := fastpathTV.DecMapUint64Uint16V(*vp, true, d); changed {
  22863. *vp = v
  22864. }
  22865. return
  22866. }
  22867. fastpathTV.DecMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), false, d)
  22868. }
  22869. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, d *Decoder) {
  22870. if v, changed := f.DecMapUint64Uint16V(*vp, true, d); changed {
  22871. *vp = v
  22872. }
  22873. }
  22874. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, canChange bool,
  22875. d *Decoder) (_ map[uint64]uint16, changed bool) {
  22876. dd, esep := d.d, d.hh.hasElemSeparators()
  22877. containerLen := dd.ReadMapStart()
  22878. if canChange && v == nil {
  22879. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22880. v = make(map[uint64]uint16, xlen)
  22881. changed = true
  22882. }
  22883. if containerLen == 0 {
  22884. dd.ReadMapEnd()
  22885. return v, changed
  22886. }
  22887. var mk uint64
  22888. var mv uint16
  22889. hasLen := containerLen > 0
  22890. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22891. if esep {
  22892. dd.ReadMapElemKey()
  22893. }
  22894. mk = dd.DecodeUint(64)
  22895. if esep {
  22896. dd.ReadMapElemValue()
  22897. }
  22898. if dd.TryDecodeAsNil() {
  22899. if d.h.DeleteOnNilMapValue {
  22900. delete(v, mk)
  22901. } else {
  22902. v[mk] = 0
  22903. }
  22904. continue
  22905. }
  22906. mv = uint16(dd.DecodeUint(16))
  22907. if v != nil {
  22908. v[mk] = mv
  22909. }
  22910. }
  22911. dd.ReadMapEnd()
  22912. return v, changed
  22913. }
  22914. func (d *Decoder) fastpathDecMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  22915. if rv.Kind() == reflect.Ptr {
  22916. vp := rv2i(rv).(*map[uint64]uint32)
  22917. if v, changed := fastpathTV.DecMapUint64Uint32V(*vp, true, d); changed {
  22918. *vp = v
  22919. }
  22920. return
  22921. }
  22922. fastpathTV.DecMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), false, d)
  22923. }
  22924. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, d *Decoder) {
  22925. if v, changed := f.DecMapUint64Uint32V(*vp, true, d); changed {
  22926. *vp = v
  22927. }
  22928. }
  22929. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, canChange bool,
  22930. d *Decoder) (_ map[uint64]uint32, changed bool) {
  22931. dd, esep := d.d, d.hh.hasElemSeparators()
  22932. containerLen := dd.ReadMapStart()
  22933. if canChange && v == nil {
  22934. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22935. v = make(map[uint64]uint32, xlen)
  22936. changed = true
  22937. }
  22938. if containerLen == 0 {
  22939. dd.ReadMapEnd()
  22940. return v, changed
  22941. }
  22942. var mk uint64
  22943. var mv uint32
  22944. hasLen := containerLen > 0
  22945. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22946. if esep {
  22947. dd.ReadMapElemKey()
  22948. }
  22949. mk = dd.DecodeUint(64)
  22950. if esep {
  22951. dd.ReadMapElemValue()
  22952. }
  22953. if dd.TryDecodeAsNil() {
  22954. if d.h.DeleteOnNilMapValue {
  22955. delete(v, mk)
  22956. } else {
  22957. v[mk] = 0
  22958. }
  22959. continue
  22960. }
  22961. mv = uint32(dd.DecodeUint(32))
  22962. if v != nil {
  22963. v[mk] = mv
  22964. }
  22965. }
  22966. dd.ReadMapEnd()
  22967. return v, changed
  22968. }
  22969. func (d *Decoder) fastpathDecMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  22970. if rv.Kind() == reflect.Ptr {
  22971. vp := rv2i(rv).(*map[uint64]uint64)
  22972. if v, changed := fastpathTV.DecMapUint64Uint64V(*vp, true, d); changed {
  22973. *vp = v
  22974. }
  22975. return
  22976. }
  22977. fastpathTV.DecMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), false, d)
  22978. }
  22979. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, d *Decoder) {
  22980. if v, changed := f.DecMapUint64Uint64V(*vp, true, d); changed {
  22981. *vp = v
  22982. }
  22983. }
  22984. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, canChange bool,
  22985. d *Decoder) (_ map[uint64]uint64, changed bool) {
  22986. dd, esep := d.d, d.hh.hasElemSeparators()
  22987. containerLen := dd.ReadMapStart()
  22988. if canChange && v == nil {
  22989. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22990. v = make(map[uint64]uint64, xlen)
  22991. changed = true
  22992. }
  22993. if containerLen == 0 {
  22994. dd.ReadMapEnd()
  22995. return v, changed
  22996. }
  22997. var mk uint64
  22998. var mv uint64
  22999. hasLen := containerLen > 0
  23000. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23001. if esep {
  23002. dd.ReadMapElemKey()
  23003. }
  23004. mk = dd.DecodeUint(64)
  23005. if esep {
  23006. dd.ReadMapElemValue()
  23007. }
  23008. if dd.TryDecodeAsNil() {
  23009. if d.h.DeleteOnNilMapValue {
  23010. delete(v, mk)
  23011. } else {
  23012. v[mk] = 0
  23013. }
  23014. continue
  23015. }
  23016. mv = dd.DecodeUint(64)
  23017. if v != nil {
  23018. v[mk] = mv
  23019. }
  23020. }
  23021. dd.ReadMapEnd()
  23022. return v, changed
  23023. }
  23024. func (d *Decoder) fastpathDecMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  23025. if rv.Kind() == reflect.Ptr {
  23026. vp := rv2i(rv).(*map[uint64]uintptr)
  23027. if v, changed := fastpathTV.DecMapUint64UintptrV(*vp, true, d); changed {
  23028. *vp = v
  23029. }
  23030. return
  23031. }
  23032. fastpathTV.DecMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), false, d)
  23033. }
  23034. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, d *Decoder) {
  23035. if v, changed := f.DecMapUint64UintptrV(*vp, true, d); changed {
  23036. *vp = v
  23037. }
  23038. }
  23039. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, canChange bool,
  23040. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  23041. dd, esep := d.d, d.hh.hasElemSeparators()
  23042. containerLen := dd.ReadMapStart()
  23043. if canChange && v == nil {
  23044. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23045. v = make(map[uint64]uintptr, xlen)
  23046. changed = true
  23047. }
  23048. if containerLen == 0 {
  23049. dd.ReadMapEnd()
  23050. return v, changed
  23051. }
  23052. var mk uint64
  23053. var mv uintptr
  23054. hasLen := containerLen > 0
  23055. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23056. if esep {
  23057. dd.ReadMapElemKey()
  23058. }
  23059. mk = dd.DecodeUint(64)
  23060. if esep {
  23061. dd.ReadMapElemValue()
  23062. }
  23063. if dd.TryDecodeAsNil() {
  23064. if d.h.DeleteOnNilMapValue {
  23065. delete(v, mk)
  23066. } else {
  23067. v[mk] = 0
  23068. }
  23069. continue
  23070. }
  23071. mv = uintptr(dd.DecodeUint(uintBitsize))
  23072. if v != nil {
  23073. v[mk] = mv
  23074. }
  23075. }
  23076. dd.ReadMapEnd()
  23077. return v, changed
  23078. }
  23079. func (d *Decoder) fastpathDecMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  23080. if rv.Kind() == reflect.Ptr {
  23081. vp := rv2i(rv).(*map[uint64]int)
  23082. if v, changed := fastpathTV.DecMapUint64IntV(*vp, true, d); changed {
  23083. *vp = v
  23084. }
  23085. return
  23086. }
  23087. fastpathTV.DecMapUint64IntV(rv2i(rv).(map[uint64]int), false, d)
  23088. }
  23089. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, d *Decoder) {
  23090. if v, changed := f.DecMapUint64IntV(*vp, true, d); changed {
  23091. *vp = v
  23092. }
  23093. }
  23094. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, canChange bool,
  23095. d *Decoder) (_ map[uint64]int, changed bool) {
  23096. dd, esep := d.d, d.hh.hasElemSeparators()
  23097. containerLen := dd.ReadMapStart()
  23098. if canChange && v == nil {
  23099. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23100. v = make(map[uint64]int, xlen)
  23101. changed = true
  23102. }
  23103. if containerLen == 0 {
  23104. dd.ReadMapEnd()
  23105. return v, changed
  23106. }
  23107. var mk uint64
  23108. var mv int
  23109. hasLen := containerLen > 0
  23110. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23111. if esep {
  23112. dd.ReadMapElemKey()
  23113. }
  23114. mk = dd.DecodeUint(64)
  23115. if esep {
  23116. dd.ReadMapElemValue()
  23117. }
  23118. if dd.TryDecodeAsNil() {
  23119. if d.h.DeleteOnNilMapValue {
  23120. delete(v, mk)
  23121. } else {
  23122. v[mk] = 0
  23123. }
  23124. continue
  23125. }
  23126. mv = int(dd.DecodeInt(intBitsize))
  23127. if v != nil {
  23128. v[mk] = mv
  23129. }
  23130. }
  23131. dd.ReadMapEnd()
  23132. return v, changed
  23133. }
  23134. func (d *Decoder) fastpathDecMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  23135. if rv.Kind() == reflect.Ptr {
  23136. vp := rv2i(rv).(*map[uint64]int8)
  23137. if v, changed := fastpathTV.DecMapUint64Int8V(*vp, true, d); changed {
  23138. *vp = v
  23139. }
  23140. return
  23141. }
  23142. fastpathTV.DecMapUint64Int8V(rv2i(rv).(map[uint64]int8), false, d)
  23143. }
  23144. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, d *Decoder) {
  23145. if v, changed := f.DecMapUint64Int8V(*vp, true, d); changed {
  23146. *vp = v
  23147. }
  23148. }
  23149. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, canChange bool,
  23150. d *Decoder) (_ map[uint64]int8, changed bool) {
  23151. dd, esep := d.d, d.hh.hasElemSeparators()
  23152. containerLen := dd.ReadMapStart()
  23153. if canChange && v == nil {
  23154. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23155. v = make(map[uint64]int8, xlen)
  23156. changed = true
  23157. }
  23158. if containerLen == 0 {
  23159. dd.ReadMapEnd()
  23160. return v, changed
  23161. }
  23162. var mk uint64
  23163. var mv int8
  23164. hasLen := containerLen > 0
  23165. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23166. if esep {
  23167. dd.ReadMapElemKey()
  23168. }
  23169. mk = dd.DecodeUint(64)
  23170. if esep {
  23171. dd.ReadMapElemValue()
  23172. }
  23173. if dd.TryDecodeAsNil() {
  23174. if d.h.DeleteOnNilMapValue {
  23175. delete(v, mk)
  23176. } else {
  23177. v[mk] = 0
  23178. }
  23179. continue
  23180. }
  23181. mv = int8(dd.DecodeInt(8))
  23182. if v != nil {
  23183. v[mk] = mv
  23184. }
  23185. }
  23186. dd.ReadMapEnd()
  23187. return v, changed
  23188. }
  23189. func (d *Decoder) fastpathDecMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  23190. if rv.Kind() == reflect.Ptr {
  23191. vp := rv2i(rv).(*map[uint64]int16)
  23192. if v, changed := fastpathTV.DecMapUint64Int16V(*vp, true, d); changed {
  23193. *vp = v
  23194. }
  23195. return
  23196. }
  23197. fastpathTV.DecMapUint64Int16V(rv2i(rv).(map[uint64]int16), false, d)
  23198. }
  23199. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, d *Decoder) {
  23200. if v, changed := f.DecMapUint64Int16V(*vp, true, d); changed {
  23201. *vp = v
  23202. }
  23203. }
  23204. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, canChange bool,
  23205. d *Decoder) (_ map[uint64]int16, changed bool) {
  23206. dd, esep := d.d, d.hh.hasElemSeparators()
  23207. containerLen := dd.ReadMapStart()
  23208. if canChange && v == nil {
  23209. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23210. v = make(map[uint64]int16, xlen)
  23211. changed = true
  23212. }
  23213. if containerLen == 0 {
  23214. dd.ReadMapEnd()
  23215. return v, changed
  23216. }
  23217. var mk uint64
  23218. var mv int16
  23219. hasLen := containerLen > 0
  23220. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23221. if esep {
  23222. dd.ReadMapElemKey()
  23223. }
  23224. mk = dd.DecodeUint(64)
  23225. if esep {
  23226. dd.ReadMapElemValue()
  23227. }
  23228. if dd.TryDecodeAsNil() {
  23229. if d.h.DeleteOnNilMapValue {
  23230. delete(v, mk)
  23231. } else {
  23232. v[mk] = 0
  23233. }
  23234. continue
  23235. }
  23236. mv = int16(dd.DecodeInt(16))
  23237. if v != nil {
  23238. v[mk] = mv
  23239. }
  23240. }
  23241. dd.ReadMapEnd()
  23242. return v, changed
  23243. }
  23244. func (d *Decoder) fastpathDecMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  23245. if rv.Kind() == reflect.Ptr {
  23246. vp := rv2i(rv).(*map[uint64]int32)
  23247. if v, changed := fastpathTV.DecMapUint64Int32V(*vp, true, d); changed {
  23248. *vp = v
  23249. }
  23250. return
  23251. }
  23252. fastpathTV.DecMapUint64Int32V(rv2i(rv).(map[uint64]int32), false, d)
  23253. }
  23254. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, d *Decoder) {
  23255. if v, changed := f.DecMapUint64Int32V(*vp, true, d); changed {
  23256. *vp = v
  23257. }
  23258. }
  23259. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, canChange bool,
  23260. d *Decoder) (_ map[uint64]int32, changed bool) {
  23261. dd, esep := d.d, d.hh.hasElemSeparators()
  23262. containerLen := dd.ReadMapStart()
  23263. if canChange && v == nil {
  23264. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23265. v = make(map[uint64]int32, xlen)
  23266. changed = true
  23267. }
  23268. if containerLen == 0 {
  23269. dd.ReadMapEnd()
  23270. return v, changed
  23271. }
  23272. var mk uint64
  23273. var mv int32
  23274. hasLen := containerLen > 0
  23275. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23276. if esep {
  23277. dd.ReadMapElemKey()
  23278. }
  23279. mk = dd.DecodeUint(64)
  23280. if esep {
  23281. dd.ReadMapElemValue()
  23282. }
  23283. if dd.TryDecodeAsNil() {
  23284. if d.h.DeleteOnNilMapValue {
  23285. delete(v, mk)
  23286. } else {
  23287. v[mk] = 0
  23288. }
  23289. continue
  23290. }
  23291. mv = int32(dd.DecodeInt(32))
  23292. if v != nil {
  23293. v[mk] = mv
  23294. }
  23295. }
  23296. dd.ReadMapEnd()
  23297. return v, changed
  23298. }
  23299. func (d *Decoder) fastpathDecMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  23300. if rv.Kind() == reflect.Ptr {
  23301. vp := rv2i(rv).(*map[uint64]int64)
  23302. if v, changed := fastpathTV.DecMapUint64Int64V(*vp, true, d); changed {
  23303. *vp = v
  23304. }
  23305. return
  23306. }
  23307. fastpathTV.DecMapUint64Int64V(rv2i(rv).(map[uint64]int64), false, d)
  23308. }
  23309. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, d *Decoder) {
  23310. if v, changed := f.DecMapUint64Int64V(*vp, true, d); changed {
  23311. *vp = v
  23312. }
  23313. }
  23314. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, canChange bool,
  23315. d *Decoder) (_ map[uint64]int64, changed bool) {
  23316. dd, esep := d.d, d.hh.hasElemSeparators()
  23317. containerLen := dd.ReadMapStart()
  23318. if canChange && v == nil {
  23319. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23320. v = make(map[uint64]int64, xlen)
  23321. changed = true
  23322. }
  23323. if containerLen == 0 {
  23324. dd.ReadMapEnd()
  23325. return v, changed
  23326. }
  23327. var mk uint64
  23328. var mv int64
  23329. hasLen := containerLen > 0
  23330. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23331. if esep {
  23332. dd.ReadMapElemKey()
  23333. }
  23334. mk = dd.DecodeUint(64)
  23335. if esep {
  23336. dd.ReadMapElemValue()
  23337. }
  23338. if dd.TryDecodeAsNil() {
  23339. if d.h.DeleteOnNilMapValue {
  23340. delete(v, mk)
  23341. } else {
  23342. v[mk] = 0
  23343. }
  23344. continue
  23345. }
  23346. mv = dd.DecodeInt(64)
  23347. if v != nil {
  23348. v[mk] = mv
  23349. }
  23350. }
  23351. dd.ReadMapEnd()
  23352. return v, changed
  23353. }
  23354. func (d *Decoder) fastpathDecMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  23355. if rv.Kind() == reflect.Ptr {
  23356. vp := rv2i(rv).(*map[uint64]float32)
  23357. if v, changed := fastpathTV.DecMapUint64Float32V(*vp, true, d); changed {
  23358. *vp = v
  23359. }
  23360. return
  23361. }
  23362. fastpathTV.DecMapUint64Float32V(rv2i(rv).(map[uint64]float32), false, d)
  23363. }
  23364. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, d *Decoder) {
  23365. if v, changed := f.DecMapUint64Float32V(*vp, true, d); changed {
  23366. *vp = v
  23367. }
  23368. }
  23369. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, canChange bool,
  23370. d *Decoder) (_ map[uint64]float32, changed bool) {
  23371. dd, esep := d.d, d.hh.hasElemSeparators()
  23372. containerLen := dd.ReadMapStart()
  23373. if canChange && v == nil {
  23374. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23375. v = make(map[uint64]float32, xlen)
  23376. changed = true
  23377. }
  23378. if containerLen == 0 {
  23379. dd.ReadMapEnd()
  23380. return v, changed
  23381. }
  23382. var mk uint64
  23383. var mv float32
  23384. hasLen := containerLen > 0
  23385. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23386. if esep {
  23387. dd.ReadMapElemKey()
  23388. }
  23389. mk = dd.DecodeUint(64)
  23390. if esep {
  23391. dd.ReadMapElemValue()
  23392. }
  23393. if dd.TryDecodeAsNil() {
  23394. if d.h.DeleteOnNilMapValue {
  23395. delete(v, mk)
  23396. } else {
  23397. v[mk] = 0
  23398. }
  23399. continue
  23400. }
  23401. mv = float32(dd.DecodeFloat(true))
  23402. if v != nil {
  23403. v[mk] = mv
  23404. }
  23405. }
  23406. dd.ReadMapEnd()
  23407. return v, changed
  23408. }
  23409. func (d *Decoder) fastpathDecMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  23410. if rv.Kind() == reflect.Ptr {
  23411. vp := rv2i(rv).(*map[uint64]float64)
  23412. if v, changed := fastpathTV.DecMapUint64Float64V(*vp, true, d); changed {
  23413. *vp = v
  23414. }
  23415. return
  23416. }
  23417. fastpathTV.DecMapUint64Float64V(rv2i(rv).(map[uint64]float64), false, d)
  23418. }
  23419. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, d *Decoder) {
  23420. if v, changed := f.DecMapUint64Float64V(*vp, true, d); changed {
  23421. *vp = v
  23422. }
  23423. }
  23424. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, canChange bool,
  23425. d *Decoder) (_ map[uint64]float64, changed bool) {
  23426. dd, esep := d.d, d.hh.hasElemSeparators()
  23427. containerLen := dd.ReadMapStart()
  23428. if canChange && v == nil {
  23429. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23430. v = make(map[uint64]float64, xlen)
  23431. changed = true
  23432. }
  23433. if containerLen == 0 {
  23434. dd.ReadMapEnd()
  23435. return v, changed
  23436. }
  23437. var mk uint64
  23438. var mv float64
  23439. hasLen := containerLen > 0
  23440. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23441. if esep {
  23442. dd.ReadMapElemKey()
  23443. }
  23444. mk = dd.DecodeUint(64)
  23445. if esep {
  23446. dd.ReadMapElemValue()
  23447. }
  23448. if dd.TryDecodeAsNil() {
  23449. if d.h.DeleteOnNilMapValue {
  23450. delete(v, mk)
  23451. } else {
  23452. v[mk] = 0
  23453. }
  23454. continue
  23455. }
  23456. mv = dd.DecodeFloat(false)
  23457. if v != nil {
  23458. v[mk] = mv
  23459. }
  23460. }
  23461. dd.ReadMapEnd()
  23462. return v, changed
  23463. }
  23464. func (d *Decoder) fastpathDecMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  23465. if rv.Kind() == reflect.Ptr {
  23466. vp := rv2i(rv).(*map[uint64]bool)
  23467. if v, changed := fastpathTV.DecMapUint64BoolV(*vp, true, d); changed {
  23468. *vp = v
  23469. }
  23470. return
  23471. }
  23472. fastpathTV.DecMapUint64BoolV(rv2i(rv).(map[uint64]bool), false, d)
  23473. }
  23474. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, d *Decoder) {
  23475. if v, changed := f.DecMapUint64BoolV(*vp, true, d); changed {
  23476. *vp = v
  23477. }
  23478. }
  23479. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, canChange bool,
  23480. d *Decoder) (_ map[uint64]bool, changed bool) {
  23481. dd, esep := d.d, d.hh.hasElemSeparators()
  23482. containerLen := dd.ReadMapStart()
  23483. if canChange && v == nil {
  23484. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23485. v = make(map[uint64]bool, xlen)
  23486. changed = true
  23487. }
  23488. if containerLen == 0 {
  23489. dd.ReadMapEnd()
  23490. return v, changed
  23491. }
  23492. var mk uint64
  23493. var mv bool
  23494. hasLen := containerLen > 0
  23495. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23496. if esep {
  23497. dd.ReadMapElemKey()
  23498. }
  23499. mk = dd.DecodeUint(64)
  23500. if esep {
  23501. dd.ReadMapElemValue()
  23502. }
  23503. if dd.TryDecodeAsNil() {
  23504. if d.h.DeleteOnNilMapValue {
  23505. delete(v, mk)
  23506. } else {
  23507. v[mk] = false
  23508. }
  23509. continue
  23510. }
  23511. mv = dd.DecodeBool()
  23512. if v != nil {
  23513. v[mk] = mv
  23514. }
  23515. }
  23516. dd.ReadMapEnd()
  23517. return v, changed
  23518. }
  23519. func (d *Decoder) fastpathDecMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  23520. if rv.Kind() == reflect.Ptr {
  23521. vp := rv2i(rv).(*map[uintptr]interface{})
  23522. if v, changed := fastpathTV.DecMapUintptrIntfV(*vp, true, d); changed {
  23523. *vp = v
  23524. }
  23525. return
  23526. }
  23527. fastpathTV.DecMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), false, d)
  23528. }
  23529. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, d *Decoder) {
  23530. if v, changed := f.DecMapUintptrIntfV(*vp, true, d); changed {
  23531. *vp = v
  23532. }
  23533. }
  23534. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, canChange bool,
  23535. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  23536. dd, esep := d.d, d.hh.hasElemSeparators()
  23537. containerLen := dd.ReadMapStart()
  23538. if canChange && v == nil {
  23539. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  23540. v = make(map[uintptr]interface{}, xlen)
  23541. changed = true
  23542. }
  23543. if containerLen == 0 {
  23544. dd.ReadMapEnd()
  23545. return v, changed
  23546. }
  23547. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  23548. var mk uintptr
  23549. var mv interface{}
  23550. hasLen := containerLen > 0
  23551. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23552. if esep {
  23553. dd.ReadMapElemKey()
  23554. }
  23555. mk = uintptr(dd.DecodeUint(uintBitsize))
  23556. if esep {
  23557. dd.ReadMapElemValue()
  23558. }
  23559. if dd.TryDecodeAsNil() {
  23560. if d.h.DeleteOnNilMapValue {
  23561. delete(v, mk)
  23562. } else {
  23563. v[mk] = nil
  23564. }
  23565. continue
  23566. }
  23567. if mapGet {
  23568. mv = v[mk]
  23569. } else {
  23570. mv = nil
  23571. }
  23572. d.decode(&mv)
  23573. if v != nil {
  23574. v[mk] = mv
  23575. }
  23576. }
  23577. dd.ReadMapEnd()
  23578. return v, changed
  23579. }
  23580. func (d *Decoder) fastpathDecMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  23581. if rv.Kind() == reflect.Ptr {
  23582. vp := rv2i(rv).(*map[uintptr]string)
  23583. if v, changed := fastpathTV.DecMapUintptrStringV(*vp, true, d); changed {
  23584. *vp = v
  23585. }
  23586. return
  23587. }
  23588. fastpathTV.DecMapUintptrStringV(rv2i(rv).(map[uintptr]string), false, d)
  23589. }
  23590. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, d *Decoder) {
  23591. if v, changed := f.DecMapUintptrStringV(*vp, true, d); changed {
  23592. *vp = v
  23593. }
  23594. }
  23595. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, canChange bool,
  23596. d *Decoder) (_ map[uintptr]string, changed bool) {
  23597. dd, esep := d.d, d.hh.hasElemSeparators()
  23598. containerLen := dd.ReadMapStart()
  23599. if canChange && v == nil {
  23600. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  23601. v = make(map[uintptr]string, xlen)
  23602. changed = true
  23603. }
  23604. if containerLen == 0 {
  23605. dd.ReadMapEnd()
  23606. return v, changed
  23607. }
  23608. var mk uintptr
  23609. var mv string
  23610. hasLen := containerLen > 0
  23611. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23612. if esep {
  23613. dd.ReadMapElemKey()
  23614. }
  23615. mk = uintptr(dd.DecodeUint(uintBitsize))
  23616. if esep {
  23617. dd.ReadMapElemValue()
  23618. }
  23619. if dd.TryDecodeAsNil() {
  23620. if d.h.DeleteOnNilMapValue {
  23621. delete(v, mk)
  23622. } else {
  23623. v[mk] = ""
  23624. }
  23625. continue
  23626. }
  23627. mv = dd.DecodeString()
  23628. if v != nil {
  23629. v[mk] = mv
  23630. }
  23631. }
  23632. dd.ReadMapEnd()
  23633. return v, changed
  23634. }
  23635. func (d *Decoder) fastpathDecMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  23636. if rv.Kind() == reflect.Ptr {
  23637. vp := rv2i(rv).(*map[uintptr]uint)
  23638. if v, changed := fastpathTV.DecMapUintptrUintV(*vp, true, d); changed {
  23639. *vp = v
  23640. }
  23641. return
  23642. }
  23643. fastpathTV.DecMapUintptrUintV(rv2i(rv).(map[uintptr]uint), false, d)
  23644. }
  23645. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, d *Decoder) {
  23646. if v, changed := f.DecMapUintptrUintV(*vp, true, d); changed {
  23647. *vp = v
  23648. }
  23649. }
  23650. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, canChange bool,
  23651. d *Decoder) (_ map[uintptr]uint, changed bool) {
  23652. dd, esep := d.d, d.hh.hasElemSeparators()
  23653. containerLen := dd.ReadMapStart()
  23654. if canChange && v == nil {
  23655. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23656. v = make(map[uintptr]uint, xlen)
  23657. changed = true
  23658. }
  23659. if containerLen == 0 {
  23660. dd.ReadMapEnd()
  23661. return v, changed
  23662. }
  23663. var mk uintptr
  23664. var mv uint
  23665. hasLen := containerLen > 0
  23666. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23667. if esep {
  23668. dd.ReadMapElemKey()
  23669. }
  23670. mk = uintptr(dd.DecodeUint(uintBitsize))
  23671. if esep {
  23672. dd.ReadMapElemValue()
  23673. }
  23674. if dd.TryDecodeAsNil() {
  23675. if d.h.DeleteOnNilMapValue {
  23676. delete(v, mk)
  23677. } else {
  23678. v[mk] = 0
  23679. }
  23680. continue
  23681. }
  23682. mv = uint(dd.DecodeUint(uintBitsize))
  23683. if v != nil {
  23684. v[mk] = mv
  23685. }
  23686. }
  23687. dd.ReadMapEnd()
  23688. return v, changed
  23689. }
  23690. func (d *Decoder) fastpathDecMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  23691. if rv.Kind() == reflect.Ptr {
  23692. vp := rv2i(rv).(*map[uintptr]uint8)
  23693. if v, changed := fastpathTV.DecMapUintptrUint8V(*vp, true, d); changed {
  23694. *vp = v
  23695. }
  23696. return
  23697. }
  23698. fastpathTV.DecMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), false, d)
  23699. }
  23700. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, d *Decoder) {
  23701. if v, changed := f.DecMapUintptrUint8V(*vp, true, d); changed {
  23702. *vp = v
  23703. }
  23704. }
  23705. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, canChange bool,
  23706. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  23707. dd, esep := d.d, d.hh.hasElemSeparators()
  23708. containerLen := dd.ReadMapStart()
  23709. if canChange && v == nil {
  23710. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23711. v = make(map[uintptr]uint8, xlen)
  23712. changed = true
  23713. }
  23714. if containerLen == 0 {
  23715. dd.ReadMapEnd()
  23716. return v, changed
  23717. }
  23718. var mk uintptr
  23719. var mv uint8
  23720. hasLen := containerLen > 0
  23721. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23722. if esep {
  23723. dd.ReadMapElemKey()
  23724. }
  23725. mk = uintptr(dd.DecodeUint(uintBitsize))
  23726. if esep {
  23727. dd.ReadMapElemValue()
  23728. }
  23729. if dd.TryDecodeAsNil() {
  23730. if d.h.DeleteOnNilMapValue {
  23731. delete(v, mk)
  23732. } else {
  23733. v[mk] = 0
  23734. }
  23735. continue
  23736. }
  23737. mv = uint8(dd.DecodeUint(8))
  23738. if v != nil {
  23739. v[mk] = mv
  23740. }
  23741. }
  23742. dd.ReadMapEnd()
  23743. return v, changed
  23744. }
  23745. func (d *Decoder) fastpathDecMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  23746. if rv.Kind() == reflect.Ptr {
  23747. vp := rv2i(rv).(*map[uintptr]uint16)
  23748. if v, changed := fastpathTV.DecMapUintptrUint16V(*vp, true, d); changed {
  23749. *vp = v
  23750. }
  23751. return
  23752. }
  23753. fastpathTV.DecMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), false, d)
  23754. }
  23755. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, d *Decoder) {
  23756. if v, changed := f.DecMapUintptrUint16V(*vp, true, d); changed {
  23757. *vp = v
  23758. }
  23759. }
  23760. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, canChange bool,
  23761. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  23762. dd, esep := d.d, d.hh.hasElemSeparators()
  23763. containerLen := dd.ReadMapStart()
  23764. if canChange && v == nil {
  23765. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23766. v = make(map[uintptr]uint16, xlen)
  23767. changed = true
  23768. }
  23769. if containerLen == 0 {
  23770. dd.ReadMapEnd()
  23771. return v, changed
  23772. }
  23773. var mk uintptr
  23774. var mv uint16
  23775. hasLen := containerLen > 0
  23776. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23777. if esep {
  23778. dd.ReadMapElemKey()
  23779. }
  23780. mk = uintptr(dd.DecodeUint(uintBitsize))
  23781. if esep {
  23782. dd.ReadMapElemValue()
  23783. }
  23784. if dd.TryDecodeAsNil() {
  23785. if d.h.DeleteOnNilMapValue {
  23786. delete(v, mk)
  23787. } else {
  23788. v[mk] = 0
  23789. }
  23790. continue
  23791. }
  23792. mv = uint16(dd.DecodeUint(16))
  23793. if v != nil {
  23794. v[mk] = mv
  23795. }
  23796. }
  23797. dd.ReadMapEnd()
  23798. return v, changed
  23799. }
  23800. func (d *Decoder) fastpathDecMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  23801. if rv.Kind() == reflect.Ptr {
  23802. vp := rv2i(rv).(*map[uintptr]uint32)
  23803. if v, changed := fastpathTV.DecMapUintptrUint32V(*vp, true, d); changed {
  23804. *vp = v
  23805. }
  23806. return
  23807. }
  23808. fastpathTV.DecMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), false, d)
  23809. }
  23810. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, d *Decoder) {
  23811. if v, changed := f.DecMapUintptrUint32V(*vp, true, d); changed {
  23812. *vp = v
  23813. }
  23814. }
  23815. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, canChange bool,
  23816. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  23817. dd, esep := d.d, d.hh.hasElemSeparators()
  23818. containerLen := dd.ReadMapStart()
  23819. if canChange && v == nil {
  23820. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23821. v = make(map[uintptr]uint32, xlen)
  23822. changed = true
  23823. }
  23824. if containerLen == 0 {
  23825. dd.ReadMapEnd()
  23826. return v, changed
  23827. }
  23828. var mk uintptr
  23829. var mv uint32
  23830. hasLen := containerLen > 0
  23831. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23832. if esep {
  23833. dd.ReadMapElemKey()
  23834. }
  23835. mk = uintptr(dd.DecodeUint(uintBitsize))
  23836. if esep {
  23837. dd.ReadMapElemValue()
  23838. }
  23839. if dd.TryDecodeAsNil() {
  23840. if d.h.DeleteOnNilMapValue {
  23841. delete(v, mk)
  23842. } else {
  23843. v[mk] = 0
  23844. }
  23845. continue
  23846. }
  23847. mv = uint32(dd.DecodeUint(32))
  23848. if v != nil {
  23849. v[mk] = mv
  23850. }
  23851. }
  23852. dd.ReadMapEnd()
  23853. return v, changed
  23854. }
  23855. func (d *Decoder) fastpathDecMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  23856. if rv.Kind() == reflect.Ptr {
  23857. vp := rv2i(rv).(*map[uintptr]uint64)
  23858. if v, changed := fastpathTV.DecMapUintptrUint64V(*vp, true, d); changed {
  23859. *vp = v
  23860. }
  23861. return
  23862. }
  23863. fastpathTV.DecMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), false, d)
  23864. }
  23865. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, d *Decoder) {
  23866. if v, changed := f.DecMapUintptrUint64V(*vp, true, d); changed {
  23867. *vp = v
  23868. }
  23869. }
  23870. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, canChange bool,
  23871. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  23872. dd, esep := d.d, d.hh.hasElemSeparators()
  23873. containerLen := dd.ReadMapStart()
  23874. if canChange && v == nil {
  23875. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23876. v = make(map[uintptr]uint64, xlen)
  23877. changed = true
  23878. }
  23879. if containerLen == 0 {
  23880. dd.ReadMapEnd()
  23881. return v, changed
  23882. }
  23883. var mk uintptr
  23884. var mv uint64
  23885. hasLen := containerLen > 0
  23886. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23887. if esep {
  23888. dd.ReadMapElemKey()
  23889. }
  23890. mk = uintptr(dd.DecodeUint(uintBitsize))
  23891. if esep {
  23892. dd.ReadMapElemValue()
  23893. }
  23894. if dd.TryDecodeAsNil() {
  23895. if d.h.DeleteOnNilMapValue {
  23896. delete(v, mk)
  23897. } else {
  23898. v[mk] = 0
  23899. }
  23900. continue
  23901. }
  23902. mv = dd.DecodeUint(64)
  23903. if v != nil {
  23904. v[mk] = mv
  23905. }
  23906. }
  23907. dd.ReadMapEnd()
  23908. return v, changed
  23909. }
  23910. func (d *Decoder) fastpathDecMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  23911. if rv.Kind() == reflect.Ptr {
  23912. vp := rv2i(rv).(*map[uintptr]uintptr)
  23913. if v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, true, d); changed {
  23914. *vp = v
  23915. }
  23916. return
  23917. }
  23918. fastpathTV.DecMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), false, d)
  23919. }
  23920. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, d *Decoder) {
  23921. if v, changed := f.DecMapUintptrUintptrV(*vp, true, d); changed {
  23922. *vp = v
  23923. }
  23924. }
  23925. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, canChange bool,
  23926. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  23927. dd, esep := d.d, d.hh.hasElemSeparators()
  23928. containerLen := dd.ReadMapStart()
  23929. if canChange && v == nil {
  23930. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23931. v = make(map[uintptr]uintptr, xlen)
  23932. changed = true
  23933. }
  23934. if containerLen == 0 {
  23935. dd.ReadMapEnd()
  23936. return v, changed
  23937. }
  23938. var mk uintptr
  23939. var mv uintptr
  23940. hasLen := containerLen > 0
  23941. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23942. if esep {
  23943. dd.ReadMapElemKey()
  23944. }
  23945. mk = uintptr(dd.DecodeUint(uintBitsize))
  23946. if esep {
  23947. dd.ReadMapElemValue()
  23948. }
  23949. if dd.TryDecodeAsNil() {
  23950. if d.h.DeleteOnNilMapValue {
  23951. delete(v, mk)
  23952. } else {
  23953. v[mk] = 0
  23954. }
  23955. continue
  23956. }
  23957. mv = uintptr(dd.DecodeUint(uintBitsize))
  23958. if v != nil {
  23959. v[mk] = mv
  23960. }
  23961. }
  23962. dd.ReadMapEnd()
  23963. return v, changed
  23964. }
  23965. func (d *Decoder) fastpathDecMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  23966. if rv.Kind() == reflect.Ptr {
  23967. vp := rv2i(rv).(*map[uintptr]int)
  23968. if v, changed := fastpathTV.DecMapUintptrIntV(*vp, true, d); changed {
  23969. *vp = v
  23970. }
  23971. return
  23972. }
  23973. fastpathTV.DecMapUintptrIntV(rv2i(rv).(map[uintptr]int), false, d)
  23974. }
  23975. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, d *Decoder) {
  23976. if v, changed := f.DecMapUintptrIntV(*vp, true, d); changed {
  23977. *vp = v
  23978. }
  23979. }
  23980. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, canChange bool,
  23981. d *Decoder) (_ map[uintptr]int, changed bool) {
  23982. dd, esep := d.d, d.hh.hasElemSeparators()
  23983. containerLen := dd.ReadMapStart()
  23984. if canChange && v == nil {
  23985. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23986. v = make(map[uintptr]int, xlen)
  23987. changed = true
  23988. }
  23989. if containerLen == 0 {
  23990. dd.ReadMapEnd()
  23991. return v, changed
  23992. }
  23993. var mk uintptr
  23994. var mv int
  23995. hasLen := containerLen > 0
  23996. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23997. if esep {
  23998. dd.ReadMapElemKey()
  23999. }
  24000. mk = uintptr(dd.DecodeUint(uintBitsize))
  24001. if esep {
  24002. dd.ReadMapElemValue()
  24003. }
  24004. if dd.TryDecodeAsNil() {
  24005. if d.h.DeleteOnNilMapValue {
  24006. delete(v, mk)
  24007. } else {
  24008. v[mk] = 0
  24009. }
  24010. continue
  24011. }
  24012. mv = int(dd.DecodeInt(intBitsize))
  24013. if v != nil {
  24014. v[mk] = mv
  24015. }
  24016. }
  24017. dd.ReadMapEnd()
  24018. return v, changed
  24019. }
  24020. func (d *Decoder) fastpathDecMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  24021. if rv.Kind() == reflect.Ptr {
  24022. vp := rv2i(rv).(*map[uintptr]int8)
  24023. if v, changed := fastpathTV.DecMapUintptrInt8V(*vp, true, d); changed {
  24024. *vp = v
  24025. }
  24026. return
  24027. }
  24028. fastpathTV.DecMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), false, d)
  24029. }
  24030. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, d *Decoder) {
  24031. if v, changed := f.DecMapUintptrInt8V(*vp, true, d); changed {
  24032. *vp = v
  24033. }
  24034. }
  24035. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, canChange bool,
  24036. d *Decoder) (_ map[uintptr]int8, changed bool) {
  24037. dd, esep := d.d, d.hh.hasElemSeparators()
  24038. containerLen := dd.ReadMapStart()
  24039. if canChange && v == nil {
  24040. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24041. v = make(map[uintptr]int8, xlen)
  24042. changed = true
  24043. }
  24044. if containerLen == 0 {
  24045. dd.ReadMapEnd()
  24046. return v, changed
  24047. }
  24048. var mk uintptr
  24049. var mv int8
  24050. hasLen := containerLen > 0
  24051. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24052. if esep {
  24053. dd.ReadMapElemKey()
  24054. }
  24055. mk = uintptr(dd.DecodeUint(uintBitsize))
  24056. if esep {
  24057. dd.ReadMapElemValue()
  24058. }
  24059. if dd.TryDecodeAsNil() {
  24060. if d.h.DeleteOnNilMapValue {
  24061. delete(v, mk)
  24062. } else {
  24063. v[mk] = 0
  24064. }
  24065. continue
  24066. }
  24067. mv = int8(dd.DecodeInt(8))
  24068. if v != nil {
  24069. v[mk] = mv
  24070. }
  24071. }
  24072. dd.ReadMapEnd()
  24073. return v, changed
  24074. }
  24075. func (d *Decoder) fastpathDecMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  24076. if rv.Kind() == reflect.Ptr {
  24077. vp := rv2i(rv).(*map[uintptr]int16)
  24078. if v, changed := fastpathTV.DecMapUintptrInt16V(*vp, true, d); changed {
  24079. *vp = v
  24080. }
  24081. return
  24082. }
  24083. fastpathTV.DecMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), false, d)
  24084. }
  24085. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, d *Decoder) {
  24086. if v, changed := f.DecMapUintptrInt16V(*vp, true, d); changed {
  24087. *vp = v
  24088. }
  24089. }
  24090. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, canChange bool,
  24091. d *Decoder) (_ map[uintptr]int16, changed bool) {
  24092. dd, esep := d.d, d.hh.hasElemSeparators()
  24093. containerLen := dd.ReadMapStart()
  24094. if canChange && v == nil {
  24095. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24096. v = make(map[uintptr]int16, xlen)
  24097. changed = true
  24098. }
  24099. if containerLen == 0 {
  24100. dd.ReadMapEnd()
  24101. return v, changed
  24102. }
  24103. var mk uintptr
  24104. var mv int16
  24105. hasLen := containerLen > 0
  24106. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24107. if esep {
  24108. dd.ReadMapElemKey()
  24109. }
  24110. mk = uintptr(dd.DecodeUint(uintBitsize))
  24111. if esep {
  24112. dd.ReadMapElemValue()
  24113. }
  24114. if dd.TryDecodeAsNil() {
  24115. if d.h.DeleteOnNilMapValue {
  24116. delete(v, mk)
  24117. } else {
  24118. v[mk] = 0
  24119. }
  24120. continue
  24121. }
  24122. mv = int16(dd.DecodeInt(16))
  24123. if v != nil {
  24124. v[mk] = mv
  24125. }
  24126. }
  24127. dd.ReadMapEnd()
  24128. return v, changed
  24129. }
  24130. func (d *Decoder) fastpathDecMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  24131. if rv.Kind() == reflect.Ptr {
  24132. vp := rv2i(rv).(*map[uintptr]int32)
  24133. if v, changed := fastpathTV.DecMapUintptrInt32V(*vp, true, d); changed {
  24134. *vp = v
  24135. }
  24136. return
  24137. }
  24138. fastpathTV.DecMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), false, d)
  24139. }
  24140. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, d *Decoder) {
  24141. if v, changed := f.DecMapUintptrInt32V(*vp, true, d); changed {
  24142. *vp = v
  24143. }
  24144. }
  24145. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, canChange bool,
  24146. d *Decoder) (_ map[uintptr]int32, changed bool) {
  24147. dd, esep := d.d, d.hh.hasElemSeparators()
  24148. containerLen := dd.ReadMapStart()
  24149. if canChange && v == nil {
  24150. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24151. v = make(map[uintptr]int32, xlen)
  24152. changed = true
  24153. }
  24154. if containerLen == 0 {
  24155. dd.ReadMapEnd()
  24156. return v, changed
  24157. }
  24158. var mk uintptr
  24159. var mv int32
  24160. hasLen := containerLen > 0
  24161. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24162. if esep {
  24163. dd.ReadMapElemKey()
  24164. }
  24165. mk = uintptr(dd.DecodeUint(uintBitsize))
  24166. if esep {
  24167. dd.ReadMapElemValue()
  24168. }
  24169. if dd.TryDecodeAsNil() {
  24170. if d.h.DeleteOnNilMapValue {
  24171. delete(v, mk)
  24172. } else {
  24173. v[mk] = 0
  24174. }
  24175. continue
  24176. }
  24177. mv = int32(dd.DecodeInt(32))
  24178. if v != nil {
  24179. v[mk] = mv
  24180. }
  24181. }
  24182. dd.ReadMapEnd()
  24183. return v, changed
  24184. }
  24185. func (d *Decoder) fastpathDecMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  24186. if rv.Kind() == reflect.Ptr {
  24187. vp := rv2i(rv).(*map[uintptr]int64)
  24188. if v, changed := fastpathTV.DecMapUintptrInt64V(*vp, true, d); changed {
  24189. *vp = v
  24190. }
  24191. return
  24192. }
  24193. fastpathTV.DecMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), false, d)
  24194. }
  24195. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, d *Decoder) {
  24196. if v, changed := f.DecMapUintptrInt64V(*vp, true, d); changed {
  24197. *vp = v
  24198. }
  24199. }
  24200. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, canChange bool,
  24201. d *Decoder) (_ map[uintptr]int64, changed bool) {
  24202. dd, esep := d.d, d.hh.hasElemSeparators()
  24203. containerLen := dd.ReadMapStart()
  24204. if canChange && v == nil {
  24205. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24206. v = make(map[uintptr]int64, xlen)
  24207. changed = true
  24208. }
  24209. if containerLen == 0 {
  24210. dd.ReadMapEnd()
  24211. return v, changed
  24212. }
  24213. var mk uintptr
  24214. var mv int64
  24215. hasLen := containerLen > 0
  24216. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24217. if esep {
  24218. dd.ReadMapElemKey()
  24219. }
  24220. mk = uintptr(dd.DecodeUint(uintBitsize))
  24221. if esep {
  24222. dd.ReadMapElemValue()
  24223. }
  24224. if dd.TryDecodeAsNil() {
  24225. if d.h.DeleteOnNilMapValue {
  24226. delete(v, mk)
  24227. } else {
  24228. v[mk] = 0
  24229. }
  24230. continue
  24231. }
  24232. mv = dd.DecodeInt(64)
  24233. if v != nil {
  24234. v[mk] = mv
  24235. }
  24236. }
  24237. dd.ReadMapEnd()
  24238. return v, changed
  24239. }
  24240. func (d *Decoder) fastpathDecMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  24241. if rv.Kind() == reflect.Ptr {
  24242. vp := rv2i(rv).(*map[uintptr]float32)
  24243. if v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, true, d); changed {
  24244. *vp = v
  24245. }
  24246. return
  24247. }
  24248. fastpathTV.DecMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), false, d)
  24249. }
  24250. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, d *Decoder) {
  24251. if v, changed := f.DecMapUintptrFloat32V(*vp, true, d); changed {
  24252. *vp = v
  24253. }
  24254. }
  24255. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, canChange bool,
  24256. d *Decoder) (_ map[uintptr]float32, changed bool) {
  24257. dd, esep := d.d, d.hh.hasElemSeparators()
  24258. containerLen := dd.ReadMapStart()
  24259. if canChange && v == nil {
  24260. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24261. v = make(map[uintptr]float32, xlen)
  24262. changed = true
  24263. }
  24264. if containerLen == 0 {
  24265. dd.ReadMapEnd()
  24266. return v, changed
  24267. }
  24268. var mk uintptr
  24269. var mv float32
  24270. hasLen := containerLen > 0
  24271. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24272. if esep {
  24273. dd.ReadMapElemKey()
  24274. }
  24275. mk = uintptr(dd.DecodeUint(uintBitsize))
  24276. if esep {
  24277. dd.ReadMapElemValue()
  24278. }
  24279. if dd.TryDecodeAsNil() {
  24280. if d.h.DeleteOnNilMapValue {
  24281. delete(v, mk)
  24282. } else {
  24283. v[mk] = 0
  24284. }
  24285. continue
  24286. }
  24287. mv = float32(dd.DecodeFloat(true))
  24288. if v != nil {
  24289. v[mk] = mv
  24290. }
  24291. }
  24292. dd.ReadMapEnd()
  24293. return v, changed
  24294. }
  24295. func (d *Decoder) fastpathDecMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  24296. if rv.Kind() == reflect.Ptr {
  24297. vp := rv2i(rv).(*map[uintptr]float64)
  24298. if v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, true, d); changed {
  24299. *vp = v
  24300. }
  24301. return
  24302. }
  24303. fastpathTV.DecMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), false, d)
  24304. }
  24305. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, d *Decoder) {
  24306. if v, changed := f.DecMapUintptrFloat64V(*vp, true, d); changed {
  24307. *vp = v
  24308. }
  24309. }
  24310. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, canChange bool,
  24311. d *Decoder) (_ map[uintptr]float64, changed bool) {
  24312. dd, esep := d.d, d.hh.hasElemSeparators()
  24313. containerLen := dd.ReadMapStart()
  24314. if canChange && v == nil {
  24315. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24316. v = make(map[uintptr]float64, xlen)
  24317. changed = true
  24318. }
  24319. if containerLen == 0 {
  24320. dd.ReadMapEnd()
  24321. return v, changed
  24322. }
  24323. var mk uintptr
  24324. var mv float64
  24325. hasLen := containerLen > 0
  24326. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24327. if esep {
  24328. dd.ReadMapElemKey()
  24329. }
  24330. mk = uintptr(dd.DecodeUint(uintBitsize))
  24331. if esep {
  24332. dd.ReadMapElemValue()
  24333. }
  24334. if dd.TryDecodeAsNil() {
  24335. if d.h.DeleteOnNilMapValue {
  24336. delete(v, mk)
  24337. } else {
  24338. v[mk] = 0
  24339. }
  24340. continue
  24341. }
  24342. mv = dd.DecodeFloat(false)
  24343. if v != nil {
  24344. v[mk] = mv
  24345. }
  24346. }
  24347. dd.ReadMapEnd()
  24348. return v, changed
  24349. }
  24350. func (d *Decoder) fastpathDecMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  24351. if rv.Kind() == reflect.Ptr {
  24352. vp := rv2i(rv).(*map[uintptr]bool)
  24353. if v, changed := fastpathTV.DecMapUintptrBoolV(*vp, true, d); changed {
  24354. *vp = v
  24355. }
  24356. return
  24357. }
  24358. fastpathTV.DecMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), false, d)
  24359. }
  24360. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, d *Decoder) {
  24361. if v, changed := f.DecMapUintptrBoolV(*vp, true, d); changed {
  24362. *vp = v
  24363. }
  24364. }
  24365. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, canChange bool,
  24366. d *Decoder) (_ map[uintptr]bool, changed bool) {
  24367. dd, esep := d.d, d.hh.hasElemSeparators()
  24368. containerLen := dd.ReadMapStart()
  24369. if canChange && v == nil {
  24370. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24371. v = make(map[uintptr]bool, xlen)
  24372. changed = true
  24373. }
  24374. if containerLen == 0 {
  24375. dd.ReadMapEnd()
  24376. return v, changed
  24377. }
  24378. var mk uintptr
  24379. var mv bool
  24380. hasLen := containerLen > 0
  24381. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24382. if esep {
  24383. dd.ReadMapElemKey()
  24384. }
  24385. mk = uintptr(dd.DecodeUint(uintBitsize))
  24386. if esep {
  24387. dd.ReadMapElemValue()
  24388. }
  24389. if dd.TryDecodeAsNil() {
  24390. if d.h.DeleteOnNilMapValue {
  24391. delete(v, mk)
  24392. } else {
  24393. v[mk] = false
  24394. }
  24395. continue
  24396. }
  24397. mv = dd.DecodeBool()
  24398. if v != nil {
  24399. v[mk] = mv
  24400. }
  24401. }
  24402. dd.ReadMapEnd()
  24403. return v, changed
  24404. }
  24405. func (d *Decoder) fastpathDecMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  24406. if rv.Kind() == reflect.Ptr {
  24407. vp := rv2i(rv).(*map[int]interface{})
  24408. if v, changed := fastpathTV.DecMapIntIntfV(*vp, true, d); changed {
  24409. *vp = v
  24410. }
  24411. return
  24412. }
  24413. fastpathTV.DecMapIntIntfV(rv2i(rv).(map[int]interface{}), false, d)
  24414. }
  24415. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, d *Decoder) {
  24416. if v, changed := f.DecMapIntIntfV(*vp, true, d); changed {
  24417. *vp = v
  24418. }
  24419. }
  24420. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, canChange bool,
  24421. d *Decoder) (_ map[int]interface{}, changed bool) {
  24422. dd, esep := d.d, d.hh.hasElemSeparators()
  24423. containerLen := dd.ReadMapStart()
  24424. if canChange && v == nil {
  24425. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  24426. v = make(map[int]interface{}, xlen)
  24427. changed = true
  24428. }
  24429. if containerLen == 0 {
  24430. dd.ReadMapEnd()
  24431. return v, changed
  24432. }
  24433. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  24434. var mk int
  24435. var mv interface{}
  24436. hasLen := containerLen > 0
  24437. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24438. if esep {
  24439. dd.ReadMapElemKey()
  24440. }
  24441. mk = int(dd.DecodeInt(intBitsize))
  24442. if esep {
  24443. dd.ReadMapElemValue()
  24444. }
  24445. if dd.TryDecodeAsNil() {
  24446. if d.h.DeleteOnNilMapValue {
  24447. delete(v, mk)
  24448. } else {
  24449. v[mk] = nil
  24450. }
  24451. continue
  24452. }
  24453. if mapGet {
  24454. mv = v[mk]
  24455. } else {
  24456. mv = nil
  24457. }
  24458. d.decode(&mv)
  24459. if v != nil {
  24460. v[mk] = mv
  24461. }
  24462. }
  24463. dd.ReadMapEnd()
  24464. return v, changed
  24465. }
  24466. func (d *Decoder) fastpathDecMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  24467. if rv.Kind() == reflect.Ptr {
  24468. vp := rv2i(rv).(*map[int]string)
  24469. if v, changed := fastpathTV.DecMapIntStringV(*vp, true, d); changed {
  24470. *vp = v
  24471. }
  24472. return
  24473. }
  24474. fastpathTV.DecMapIntStringV(rv2i(rv).(map[int]string), false, d)
  24475. }
  24476. func (f fastpathT) DecMapIntStringX(vp *map[int]string, d *Decoder) {
  24477. if v, changed := f.DecMapIntStringV(*vp, true, d); changed {
  24478. *vp = v
  24479. }
  24480. }
  24481. func (_ fastpathT) DecMapIntStringV(v map[int]string, canChange bool,
  24482. d *Decoder) (_ map[int]string, changed bool) {
  24483. dd, esep := d.d, d.hh.hasElemSeparators()
  24484. containerLen := dd.ReadMapStart()
  24485. if canChange && v == nil {
  24486. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  24487. v = make(map[int]string, xlen)
  24488. changed = true
  24489. }
  24490. if containerLen == 0 {
  24491. dd.ReadMapEnd()
  24492. return v, changed
  24493. }
  24494. var mk int
  24495. var mv string
  24496. hasLen := containerLen > 0
  24497. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24498. if esep {
  24499. dd.ReadMapElemKey()
  24500. }
  24501. mk = int(dd.DecodeInt(intBitsize))
  24502. if esep {
  24503. dd.ReadMapElemValue()
  24504. }
  24505. if dd.TryDecodeAsNil() {
  24506. if d.h.DeleteOnNilMapValue {
  24507. delete(v, mk)
  24508. } else {
  24509. v[mk] = ""
  24510. }
  24511. continue
  24512. }
  24513. mv = dd.DecodeString()
  24514. if v != nil {
  24515. v[mk] = mv
  24516. }
  24517. }
  24518. dd.ReadMapEnd()
  24519. return v, changed
  24520. }
  24521. func (d *Decoder) fastpathDecMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  24522. if rv.Kind() == reflect.Ptr {
  24523. vp := rv2i(rv).(*map[int]uint)
  24524. if v, changed := fastpathTV.DecMapIntUintV(*vp, true, d); changed {
  24525. *vp = v
  24526. }
  24527. return
  24528. }
  24529. fastpathTV.DecMapIntUintV(rv2i(rv).(map[int]uint), false, d)
  24530. }
  24531. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, d *Decoder) {
  24532. if v, changed := f.DecMapIntUintV(*vp, true, d); changed {
  24533. *vp = v
  24534. }
  24535. }
  24536. func (_ fastpathT) DecMapIntUintV(v map[int]uint, canChange bool,
  24537. d *Decoder) (_ map[int]uint, changed bool) {
  24538. dd, esep := d.d, d.hh.hasElemSeparators()
  24539. containerLen := dd.ReadMapStart()
  24540. if canChange && v == nil {
  24541. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24542. v = make(map[int]uint, xlen)
  24543. changed = true
  24544. }
  24545. if containerLen == 0 {
  24546. dd.ReadMapEnd()
  24547. return v, changed
  24548. }
  24549. var mk int
  24550. var mv uint
  24551. hasLen := containerLen > 0
  24552. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24553. if esep {
  24554. dd.ReadMapElemKey()
  24555. }
  24556. mk = int(dd.DecodeInt(intBitsize))
  24557. if esep {
  24558. dd.ReadMapElemValue()
  24559. }
  24560. if dd.TryDecodeAsNil() {
  24561. if d.h.DeleteOnNilMapValue {
  24562. delete(v, mk)
  24563. } else {
  24564. v[mk] = 0
  24565. }
  24566. continue
  24567. }
  24568. mv = uint(dd.DecodeUint(uintBitsize))
  24569. if v != nil {
  24570. v[mk] = mv
  24571. }
  24572. }
  24573. dd.ReadMapEnd()
  24574. return v, changed
  24575. }
  24576. func (d *Decoder) fastpathDecMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  24577. if rv.Kind() == reflect.Ptr {
  24578. vp := rv2i(rv).(*map[int]uint8)
  24579. if v, changed := fastpathTV.DecMapIntUint8V(*vp, true, d); changed {
  24580. *vp = v
  24581. }
  24582. return
  24583. }
  24584. fastpathTV.DecMapIntUint8V(rv2i(rv).(map[int]uint8), false, d)
  24585. }
  24586. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, d *Decoder) {
  24587. if v, changed := f.DecMapIntUint8V(*vp, true, d); changed {
  24588. *vp = v
  24589. }
  24590. }
  24591. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, canChange bool,
  24592. d *Decoder) (_ map[int]uint8, changed bool) {
  24593. dd, esep := d.d, d.hh.hasElemSeparators()
  24594. containerLen := dd.ReadMapStart()
  24595. if canChange && v == nil {
  24596. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24597. v = make(map[int]uint8, xlen)
  24598. changed = true
  24599. }
  24600. if containerLen == 0 {
  24601. dd.ReadMapEnd()
  24602. return v, changed
  24603. }
  24604. var mk int
  24605. var mv uint8
  24606. hasLen := containerLen > 0
  24607. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24608. if esep {
  24609. dd.ReadMapElemKey()
  24610. }
  24611. mk = int(dd.DecodeInt(intBitsize))
  24612. if esep {
  24613. dd.ReadMapElemValue()
  24614. }
  24615. if dd.TryDecodeAsNil() {
  24616. if d.h.DeleteOnNilMapValue {
  24617. delete(v, mk)
  24618. } else {
  24619. v[mk] = 0
  24620. }
  24621. continue
  24622. }
  24623. mv = uint8(dd.DecodeUint(8))
  24624. if v != nil {
  24625. v[mk] = mv
  24626. }
  24627. }
  24628. dd.ReadMapEnd()
  24629. return v, changed
  24630. }
  24631. func (d *Decoder) fastpathDecMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  24632. if rv.Kind() == reflect.Ptr {
  24633. vp := rv2i(rv).(*map[int]uint16)
  24634. if v, changed := fastpathTV.DecMapIntUint16V(*vp, true, d); changed {
  24635. *vp = v
  24636. }
  24637. return
  24638. }
  24639. fastpathTV.DecMapIntUint16V(rv2i(rv).(map[int]uint16), false, d)
  24640. }
  24641. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, d *Decoder) {
  24642. if v, changed := f.DecMapIntUint16V(*vp, true, d); changed {
  24643. *vp = v
  24644. }
  24645. }
  24646. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, canChange bool,
  24647. d *Decoder) (_ map[int]uint16, changed bool) {
  24648. dd, esep := d.d, d.hh.hasElemSeparators()
  24649. containerLen := dd.ReadMapStart()
  24650. if canChange && v == nil {
  24651. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24652. v = make(map[int]uint16, xlen)
  24653. changed = true
  24654. }
  24655. if containerLen == 0 {
  24656. dd.ReadMapEnd()
  24657. return v, changed
  24658. }
  24659. var mk int
  24660. var mv uint16
  24661. hasLen := containerLen > 0
  24662. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24663. if esep {
  24664. dd.ReadMapElemKey()
  24665. }
  24666. mk = int(dd.DecodeInt(intBitsize))
  24667. if esep {
  24668. dd.ReadMapElemValue()
  24669. }
  24670. if dd.TryDecodeAsNil() {
  24671. if d.h.DeleteOnNilMapValue {
  24672. delete(v, mk)
  24673. } else {
  24674. v[mk] = 0
  24675. }
  24676. continue
  24677. }
  24678. mv = uint16(dd.DecodeUint(16))
  24679. if v != nil {
  24680. v[mk] = mv
  24681. }
  24682. }
  24683. dd.ReadMapEnd()
  24684. return v, changed
  24685. }
  24686. func (d *Decoder) fastpathDecMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  24687. if rv.Kind() == reflect.Ptr {
  24688. vp := rv2i(rv).(*map[int]uint32)
  24689. if v, changed := fastpathTV.DecMapIntUint32V(*vp, true, d); changed {
  24690. *vp = v
  24691. }
  24692. return
  24693. }
  24694. fastpathTV.DecMapIntUint32V(rv2i(rv).(map[int]uint32), false, d)
  24695. }
  24696. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, d *Decoder) {
  24697. if v, changed := f.DecMapIntUint32V(*vp, true, d); changed {
  24698. *vp = v
  24699. }
  24700. }
  24701. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, canChange bool,
  24702. d *Decoder) (_ map[int]uint32, changed bool) {
  24703. dd, esep := d.d, d.hh.hasElemSeparators()
  24704. containerLen := dd.ReadMapStart()
  24705. if canChange && v == nil {
  24706. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24707. v = make(map[int]uint32, xlen)
  24708. changed = true
  24709. }
  24710. if containerLen == 0 {
  24711. dd.ReadMapEnd()
  24712. return v, changed
  24713. }
  24714. var mk int
  24715. var mv uint32
  24716. hasLen := containerLen > 0
  24717. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24718. if esep {
  24719. dd.ReadMapElemKey()
  24720. }
  24721. mk = int(dd.DecodeInt(intBitsize))
  24722. if esep {
  24723. dd.ReadMapElemValue()
  24724. }
  24725. if dd.TryDecodeAsNil() {
  24726. if d.h.DeleteOnNilMapValue {
  24727. delete(v, mk)
  24728. } else {
  24729. v[mk] = 0
  24730. }
  24731. continue
  24732. }
  24733. mv = uint32(dd.DecodeUint(32))
  24734. if v != nil {
  24735. v[mk] = mv
  24736. }
  24737. }
  24738. dd.ReadMapEnd()
  24739. return v, changed
  24740. }
  24741. func (d *Decoder) fastpathDecMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  24742. if rv.Kind() == reflect.Ptr {
  24743. vp := rv2i(rv).(*map[int]uint64)
  24744. if v, changed := fastpathTV.DecMapIntUint64V(*vp, true, d); changed {
  24745. *vp = v
  24746. }
  24747. return
  24748. }
  24749. fastpathTV.DecMapIntUint64V(rv2i(rv).(map[int]uint64), false, d)
  24750. }
  24751. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, d *Decoder) {
  24752. if v, changed := f.DecMapIntUint64V(*vp, true, d); changed {
  24753. *vp = v
  24754. }
  24755. }
  24756. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, canChange bool,
  24757. d *Decoder) (_ map[int]uint64, changed bool) {
  24758. dd, esep := d.d, d.hh.hasElemSeparators()
  24759. containerLen := dd.ReadMapStart()
  24760. if canChange && v == nil {
  24761. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24762. v = make(map[int]uint64, xlen)
  24763. changed = true
  24764. }
  24765. if containerLen == 0 {
  24766. dd.ReadMapEnd()
  24767. return v, changed
  24768. }
  24769. var mk int
  24770. var mv uint64
  24771. hasLen := containerLen > 0
  24772. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24773. if esep {
  24774. dd.ReadMapElemKey()
  24775. }
  24776. mk = int(dd.DecodeInt(intBitsize))
  24777. if esep {
  24778. dd.ReadMapElemValue()
  24779. }
  24780. if dd.TryDecodeAsNil() {
  24781. if d.h.DeleteOnNilMapValue {
  24782. delete(v, mk)
  24783. } else {
  24784. v[mk] = 0
  24785. }
  24786. continue
  24787. }
  24788. mv = dd.DecodeUint(64)
  24789. if v != nil {
  24790. v[mk] = mv
  24791. }
  24792. }
  24793. dd.ReadMapEnd()
  24794. return v, changed
  24795. }
  24796. func (d *Decoder) fastpathDecMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  24797. if rv.Kind() == reflect.Ptr {
  24798. vp := rv2i(rv).(*map[int]uintptr)
  24799. if v, changed := fastpathTV.DecMapIntUintptrV(*vp, true, d); changed {
  24800. *vp = v
  24801. }
  24802. return
  24803. }
  24804. fastpathTV.DecMapIntUintptrV(rv2i(rv).(map[int]uintptr), false, d)
  24805. }
  24806. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, d *Decoder) {
  24807. if v, changed := f.DecMapIntUintptrV(*vp, true, d); changed {
  24808. *vp = v
  24809. }
  24810. }
  24811. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, canChange bool,
  24812. d *Decoder) (_ map[int]uintptr, changed bool) {
  24813. dd, esep := d.d, d.hh.hasElemSeparators()
  24814. containerLen := dd.ReadMapStart()
  24815. if canChange && v == nil {
  24816. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24817. v = make(map[int]uintptr, xlen)
  24818. changed = true
  24819. }
  24820. if containerLen == 0 {
  24821. dd.ReadMapEnd()
  24822. return v, changed
  24823. }
  24824. var mk int
  24825. var mv uintptr
  24826. hasLen := containerLen > 0
  24827. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24828. if esep {
  24829. dd.ReadMapElemKey()
  24830. }
  24831. mk = int(dd.DecodeInt(intBitsize))
  24832. if esep {
  24833. dd.ReadMapElemValue()
  24834. }
  24835. if dd.TryDecodeAsNil() {
  24836. if d.h.DeleteOnNilMapValue {
  24837. delete(v, mk)
  24838. } else {
  24839. v[mk] = 0
  24840. }
  24841. continue
  24842. }
  24843. mv = uintptr(dd.DecodeUint(uintBitsize))
  24844. if v != nil {
  24845. v[mk] = mv
  24846. }
  24847. }
  24848. dd.ReadMapEnd()
  24849. return v, changed
  24850. }
  24851. func (d *Decoder) fastpathDecMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  24852. if rv.Kind() == reflect.Ptr {
  24853. vp := rv2i(rv).(*map[int]int)
  24854. if v, changed := fastpathTV.DecMapIntIntV(*vp, true, d); changed {
  24855. *vp = v
  24856. }
  24857. return
  24858. }
  24859. fastpathTV.DecMapIntIntV(rv2i(rv).(map[int]int), false, d)
  24860. }
  24861. func (f fastpathT) DecMapIntIntX(vp *map[int]int, d *Decoder) {
  24862. if v, changed := f.DecMapIntIntV(*vp, true, d); changed {
  24863. *vp = v
  24864. }
  24865. }
  24866. func (_ fastpathT) DecMapIntIntV(v map[int]int, canChange bool,
  24867. d *Decoder) (_ map[int]int, changed bool) {
  24868. dd, esep := d.d, d.hh.hasElemSeparators()
  24869. containerLen := dd.ReadMapStart()
  24870. if canChange && v == nil {
  24871. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24872. v = make(map[int]int, xlen)
  24873. changed = true
  24874. }
  24875. if containerLen == 0 {
  24876. dd.ReadMapEnd()
  24877. return v, changed
  24878. }
  24879. var mk int
  24880. var mv int
  24881. hasLen := containerLen > 0
  24882. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24883. if esep {
  24884. dd.ReadMapElemKey()
  24885. }
  24886. mk = int(dd.DecodeInt(intBitsize))
  24887. if esep {
  24888. dd.ReadMapElemValue()
  24889. }
  24890. if dd.TryDecodeAsNil() {
  24891. if d.h.DeleteOnNilMapValue {
  24892. delete(v, mk)
  24893. } else {
  24894. v[mk] = 0
  24895. }
  24896. continue
  24897. }
  24898. mv = int(dd.DecodeInt(intBitsize))
  24899. if v != nil {
  24900. v[mk] = mv
  24901. }
  24902. }
  24903. dd.ReadMapEnd()
  24904. return v, changed
  24905. }
  24906. func (d *Decoder) fastpathDecMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  24907. if rv.Kind() == reflect.Ptr {
  24908. vp := rv2i(rv).(*map[int]int8)
  24909. if v, changed := fastpathTV.DecMapIntInt8V(*vp, true, d); changed {
  24910. *vp = v
  24911. }
  24912. return
  24913. }
  24914. fastpathTV.DecMapIntInt8V(rv2i(rv).(map[int]int8), false, d)
  24915. }
  24916. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, d *Decoder) {
  24917. if v, changed := f.DecMapIntInt8V(*vp, true, d); changed {
  24918. *vp = v
  24919. }
  24920. }
  24921. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, canChange bool,
  24922. d *Decoder) (_ map[int]int8, changed bool) {
  24923. dd, esep := d.d, d.hh.hasElemSeparators()
  24924. containerLen := dd.ReadMapStart()
  24925. if canChange && v == nil {
  24926. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24927. v = make(map[int]int8, xlen)
  24928. changed = true
  24929. }
  24930. if containerLen == 0 {
  24931. dd.ReadMapEnd()
  24932. return v, changed
  24933. }
  24934. var mk int
  24935. var mv int8
  24936. hasLen := containerLen > 0
  24937. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24938. if esep {
  24939. dd.ReadMapElemKey()
  24940. }
  24941. mk = int(dd.DecodeInt(intBitsize))
  24942. if esep {
  24943. dd.ReadMapElemValue()
  24944. }
  24945. if dd.TryDecodeAsNil() {
  24946. if d.h.DeleteOnNilMapValue {
  24947. delete(v, mk)
  24948. } else {
  24949. v[mk] = 0
  24950. }
  24951. continue
  24952. }
  24953. mv = int8(dd.DecodeInt(8))
  24954. if v != nil {
  24955. v[mk] = mv
  24956. }
  24957. }
  24958. dd.ReadMapEnd()
  24959. return v, changed
  24960. }
  24961. func (d *Decoder) fastpathDecMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  24962. if rv.Kind() == reflect.Ptr {
  24963. vp := rv2i(rv).(*map[int]int16)
  24964. if v, changed := fastpathTV.DecMapIntInt16V(*vp, true, d); changed {
  24965. *vp = v
  24966. }
  24967. return
  24968. }
  24969. fastpathTV.DecMapIntInt16V(rv2i(rv).(map[int]int16), false, d)
  24970. }
  24971. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, d *Decoder) {
  24972. if v, changed := f.DecMapIntInt16V(*vp, true, d); changed {
  24973. *vp = v
  24974. }
  24975. }
  24976. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, canChange bool,
  24977. d *Decoder) (_ map[int]int16, changed bool) {
  24978. dd, esep := d.d, d.hh.hasElemSeparators()
  24979. containerLen := dd.ReadMapStart()
  24980. if canChange && v == nil {
  24981. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24982. v = make(map[int]int16, xlen)
  24983. changed = true
  24984. }
  24985. if containerLen == 0 {
  24986. dd.ReadMapEnd()
  24987. return v, changed
  24988. }
  24989. var mk int
  24990. var mv int16
  24991. hasLen := containerLen > 0
  24992. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24993. if esep {
  24994. dd.ReadMapElemKey()
  24995. }
  24996. mk = int(dd.DecodeInt(intBitsize))
  24997. if esep {
  24998. dd.ReadMapElemValue()
  24999. }
  25000. if dd.TryDecodeAsNil() {
  25001. if d.h.DeleteOnNilMapValue {
  25002. delete(v, mk)
  25003. } else {
  25004. v[mk] = 0
  25005. }
  25006. continue
  25007. }
  25008. mv = int16(dd.DecodeInt(16))
  25009. if v != nil {
  25010. v[mk] = mv
  25011. }
  25012. }
  25013. dd.ReadMapEnd()
  25014. return v, changed
  25015. }
  25016. func (d *Decoder) fastpathDecMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  25017. if rv.Kind() == reflect.Ptr {
  25018. vp := rv2i(rv).(*map[int]int32)
  25019. if v, changed := fastpathTV.DecMapIntInt32V(*vp, true, d); changed {
  25020. *vp = v
  25021. }
  25022. return
  25023. }
  25024. fastpathTV.DecMapIntInt32V(rv2i(rv).(map[int]int32), false, d)
  25025. }
  25026. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, d *Decoder) {
  25027. if v, changed := f.DecMapIntInt32V(*vp, true, d); changed {
  25028. *vp = v
  25029. }
  25030. }
  25031. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, canChange bool,
  25032. d *Decoder) (_ map[int]int32, changed bool) {
  25033. dd, esep := d.d, d.hh.hasElemSeparators()
  25034. containerLen := dd.ReadMapStart()
  25035. if canChange && v == nil {
  25036. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25037. v = make(map[int]int32, xlen)
  25038. changed = true
  25039. }
  25040. if containerLen == 0 {
  25041. dd.ReadMapEnd()
  25042. return v, changed
  25043. }
  25044. var mk int
  25045. var mv int32
  25046. hasLen := containerLen > 0
  25047. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25048. if esep {
  25049. dd.ReadMapElemKey()
  25050. }
  25051. mk = int(dd.DecodeInt(intBitsize))
  25052. if esep {
  25053. dd.ReadMapElemValue()
  25054. }
  25055. if dd.TryDecodeAsNil() {
  25056. if d.h.DeleteOnNilMapValue {
  25057. delete(v, mk)
  25058. } else {
  25059. v[mk] = 0
  25060. }
  25061. continue
  25062. }
  25063. mv = int32(dd.DecodeInt(32))
  25064. if v != nil {
  25065. v[mk] = mv
  25066. }
  25067. }
  25068. dd.ReadMapEnd()
  25069. return v, changed
  25070. }
  25071. func (d *Decoder) fastpathDecMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  25072. if rv.Kind() == reflect.Ptr {
  25073. vp := rv2i(rv).(*map[int]int64)
  25074. if v, changed := fastpathTV.DecMapIntInt64V(*vp, true, d); changed {
  25075. *vp = v
  25076. }
  25077. return
  25078. }
  25079. fastpathTV.DecMapIntInt64V(rv2i(rv).(map[int]int64), false, d)
  25080. }
  25081. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, d *Decoder) {
  25082. if v, changed := f.DecMapIntInt64V(*vp, true, d); changed {
  25083. *vp = v
  25084. }
  25085. }
  25086. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, canChange bool,
  25087. d *Decoder) (_ map[int]int64, changed bool) {
  25088. dd, esep := d.d, d.hh.hasElemSeparators()
  25089. containerLen := dd.ReadMapStart()
  25090. if canChange && v == nil {
  25091. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25092. v = make(map[int]int64, xlen)
  25093. changed = true
  25094. }
  25095. if containerLen == 0 {
  25096. dd.ReadMapEnd()
  25097. return v, changed
  25098. }
  25099. var mk int
  25100. var mv int64
  25101. hasLen := containerLen > 0
  25102. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25103. if esep {
  25104. dd.ReadMapElemKey()
  25105. }
  25106. mk = int(dd.DecodeInt(intBitsize))
  25107. if esep {
  25108. dd.ReadMapElemValue()
  25109. }
  25110. if dd.TryDecodeAsNil() {
  25111. if d.h.DeleteOnNilMapValue {
  25112. delete(v, mk)
  25113. } else {
  25114. v[mk] = 0
  25115. }
  25116. continue
  25117. }
  25118. mv = dd.DecodeInt(64)
  25119. if v != nil {
  25120. v[mk] = mv
  25121. }
  25122. }
  25123. dd.ReadMapEnd()
  25124. return v, changed
  25125. }
  25126. func (d *Decoder) fastpathDecMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  25127. if rv.Kind() == reflect.Ptr {
  25128. vp := rv2i(rv).(*map[int]float32)
  25129. if v, changed := fastpathTV.DecMapIntFloat32V(*vp, true, d); changed {
  25130. *vp = v
  25131. }
  25132. return
  25133. }
  25134. fastpathTV.DecMapIntFloat32V(rv2i(rv).(map[int]float32), false, d)
  25135. }
  25136. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, d *Decoder) {
  25137. if v, changed := f.DecMapIntFloat32V(*vp, true, d); changed {
  25138. *vp = v
  25139. }
  25140. }
  25141. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, canChange bool,
  25142. d *Decoder) (_ map[int]float32, changed bool) {
  25143. dd, esep := d.d, d.hh.hasElemSeparators()
  25144. containerLen := dd.ReadMapStart()
  25145. if canChange && v == nil {
  25146. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25147. v = make(map[int]float32, xlen)
  25148. changed = true
  25149. }
  25150. if containerLen == 0 {
  25151. dd.ReadMapEnd()
  25152. return v, changed
  25153. }
  25154. var mk int
  25155. var mv float32
  25156. hasLen := containerLen > 0
  25157. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25158. if esep {
  25159. dd.ReadMapElemKey()
  25160. }
  25161. mk = int(dd.DecodeInt(intBitsize))
  25162. if esep {
  25163. dd.ReadMapElemValue()
  25164. }
  25165. if dd.TryDecodeAsNil() {
  25166. if d.h.DeleteOnNilMapValue {
  25167. delete(v, mk)
  25168. } else {
  25169. v[mk] = 0
  25170. }
  25171. continue
  25172. }
  25173. mv = float32(dd.DecodeFloat(true))
  25174. if v != nil {
  25175. v[mk] = mv
  25176. }
  25177. }
  25178. dd.ReadMapEnd()
  25179. return v, changed
  25180. }
  25181. func (d *Decoder) fastpathDecMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  25182. if rv.Kind() == reflect.Ptr {
  25183. vp := rv2i(rv).(*map[int]float64)
  25184. if v, changed := fastpathTV.DecMapIntFloat64V(*vp, true, d); changed {
  25185. *vp = v
  25186. }
  25187. return
  25188. }
  25189. fastpathTV.DecMapIntFloat64V(rv2i(rv).(map[int]float64), false, d)
  25190. }
  25191. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, d *Decoder) {
  25192. if v, changed := f.DecMapIntFloat64V(*vp, true, d); changed {
  25193. *vp = v
  25194. }
  25195. }
  25196. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, canChange bool,
  25197. d *Decoder) (_ map[int]float64, changed bool) {
  25198. dd, esep := d.d, d.hh.hasElemSeparators()
  25199. containerLen := dd.ReadMapStart()
  25200. if canChange && v == nil {
  25201. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25202. v = make(map[int]float64, xlen)
  25203. changed = true
  25204. }
  25205. if containerLen == 0 {
  25206. dd.ReadMapEnd()
  25207. return v, changed
  25208. }
  25209. var mk int
  25210. var mv float64
  25211. hasLen := containerLen > 0
  25212. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25213. if esep {
  25214. dd.ReadMapElemKey()
  25215. }
  25216. mk = int(dd.DecodeInt(intBitsize))
  25217. if esep {
  25218. dd.ReadMapElemValue()
  25219. }
  25220. if dd.TryDecodeAsNil() {
  25221. if d.h.DeleteOnNilMapValue {
  25222. delete(v, mk)
  25223. } else {
  25224. v[mk] = 0
  25225. }
  25226. continue
  25227. }
  25228. mv = dd.DecodeFloat(false)
  25229. if v != nil {
  25230. v[mk] = mv
  25231. }
  25232. }
  25233. dd.ReadMapEnd()
  25234. return v, changed
  25235. }
  25236. func (d *Decoder) fastpathDecMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  25237. if rv.Kind() == reflect.Ptr {
  25238. vp := rv2i(rv).(*map[int]bool)
  25239. if v, changed := fastpathTV.DecMapIntBoolV(*vp, true, d); changed {
  25240. *vp = v
  25241. }
  25242. return
  25243. }
  25244. fastpathTV.DecMapIntBoolV(rv2i(rv).(map[int]bool), false, d)
  25245. }
  25246. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, d *Decoder) {
  25247. if v, changed := f.DecMapIntBoolV(*vp, true, d); changed {
  25248. *vp = v
  25249. }
  25250. }
  25251. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, canChange bool,
  25252. d *Decoder) (_ map[int]bool, changed bool) {
  25253. dd, esep := d.d, d.hh.hasElemSeparators()
  25254. containerLen := dd.ReadMapStart()
  25255. if canChange && v == nil {
  25256. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25257. v = make(map[int]bool, xlen)
  25258. changed = true
  25259. }
  25260. if containerLen == 0 {
  25261. dd.ReadMapEnd()
  25262. return v, changed
  25263. }
  25264. var mk int
  25265. var mv bool
  25266. hasLen := containerLen > 0
  25267. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25268. if esep {
  25269. dd.ReadMapElemKey()
  25270. }
  25271. mk = int(dd.DecodeInt(intBitsize))
  25272. if esep {
  25273. dd.ReadMapElemValue()
  25274. }
  25275. if dd.TryDecodeAsNil() {
  25276. if d.h.DeleteOnNilMapValue {
  25277. delete(v, mk)
  25278. } else {
  25279. v[mk] = false
  25280. }
  25281. continue
  25282. }
  25283. mv = dd.DecodeBool()
  25284. if v != nil {
  25285. v[mk] = mv
  25286. }
  25287. }
  25288. dd.ReadMapEnd()
  25289. return v, changed
  25290. }
  25291. func (d *Decoder) fastpathDecMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  25292. if rv.Kind() == reflect.Ptr {
  25293. vp := rv2i(rv).(*map[int8]interface{})
  25294. if v, changed := fastpathTV.DecMapInt8IntfV(*vp, true, d); changed {
  25295. *vp = v
  25296. }
  25297. return
  25298. }
  25299. fastpathTV.DecMapInt8IntfV(rv2i(rv).(map[int8]interface{}), false, d)
  25300. }
  25301. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, d *Decoder) {
  25302. if v, changed := f.DecMapInt8IntfV(*vp, true, d); changed {
  25303. *vp = v
  25304. }
  25305. }
  25306. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, canChange bool,
  25307. d *Decoder) (_ map[int8]interface{}, changed bool) {
  25308. dd, esep := d.d, d.hh.hasElemSeparators()
  25309. containerLen := dd.ReadMapStart()
  25310. if canChange && v == nil {
  25311. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  25312. v = make(map[int8]interface{}, xlen)
  25313. changed = true
  25314. }
  25315. if containerLen == 0 {
  25316. dd.ReadMapEnd()
  25317. return v, changed
  25318. }
  25319. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  25320. var mk int8
  25321. var mv interface{}
  25322. hasLen := containerLen > 0
  25323. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25324. if esep {
  25325. dd.ReadMapElemKey()
  25326. }
  25327. mk = int8(dd.DecodeInt(8))
  25328. if esep {
  25329. dd.ReadMapElemValue()
  25330. }
  25331. if dd.TryDecodeAsNil() {
  25332. if d.h.DeleteOnNilMapValue {
  25333. delete(v, mk)
  25334. } else {
  25335. v[mk] = nil
  25336. }
  25337. continue
  25338. }
  25339. if mapGet {
  25340. mv = v[mk]
  25341. } else {
  25342. mv = nil
  25343. }
  25344. d.decode(&mv)
  25345. if v != nil {
  25346. v[mk] = mv
  25347. }
  25348. }
  25349. dd.ReadMapEnd()
  25350. return v, changed
  25351. }
  25352. func (d *Decoder) fastpathDecMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  25353. if rv.Kind() == reflect.Ptr {
  25354. vp := rv2i(rv).(*map[int8]string)
  25355. if v, changed := fastpathTV.DecMapInt8StringV(*vp, true, d); changed {
  25356. *vp = v
  25357. }
  25358. return
  25359. }
  25360. fastpathTV.DecMapInt8StringV(rv2i(rv).(map[int8]string), false, d)
  25361. }
  25362. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, d *Decoder) {
  25363. if v, changed := f.DecMapInt8StringV(*vp, true, d); changed {
  25364. *vp = v
  25365. }
  25366. }
  25367. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, canChange bool,
  25368. d *Decoder) (_ map[int8]string, changed bool) {
  25369. dd, esep := d.d, d.hh.hasElemSeparators()
  25370. containerLen := dd.ReadMapStart()
  25371. if canChange && v == nil {
  25372. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  25373. v = make(map[int8]string, xlen)
  25374. changed = true
  25375. }
  25376. if containerLen == 0 {
  25377. dd.ReadMapEnd()
  25378. return v, changed
  25379. }
  25380. var mk int8
  25381. var mv string
  25382. hasLen := containerLen > 0
  25383. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25384. if esep {
  25385. dd.ReadMapElemKey()
  25386. }
  25387. mk = int8(dd.DecodeInt(8))
  25388. if esep {
  25389. dd.ReadMapElemValue()
  25390. }
  25391. if dd.TryDecodeAsNil() {
  25392. if d.h.DeleteOnNilMapValue {
  25393. delete(v, mk)
  25394. } else {
  25395. v[mk] = ""
  25396. }
  25397. continue
  25398. }
  25399. mv = dd.DecodeString()
  25400. if v != nil {
  25401. v[mk] = mv
  25402. }
  25403. }
  25404. dd.ReadMapEnd()
  25405. return v, changed
  25406. }
  25407. func (d *Decoder) fastpathDecMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  25408. if rv.Kind() == reflect.Ptr {
  25409. vp := rv2i(rv).(*map[int8]uint)
  25410. if v, changed := fastpathTV.DecMapInt8UintV(*vp, true, d); changed {
  25411. *vp = v
  25412. }
  25413. return
  25414. }
  25415. fastpathTV.DecMapInt8UintV(rv2i(rv).(map[int8]uint), false, d)
  25416. }
  25417. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, d *Decoder) {
  25418. if v, changed := f.DecMapInt8UintV(*vp, true, d); changed {
  25419. *vp = v
  25420. }
  25421. }
  25422. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, canChange bool,
  25423. d *Decoder) (_ map[int8]uint, changed bool) {
  25424. dd, esep := d.d, d.hh.hasElemSeparators()
  25425. containerLen := dd.ReadMapStart()
  25426. if canChange && v == nil {
  25427. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25428. v = make(map[int8]uint, xlen)
  25429. changed = true
  25430. }
  25431. if containerLen == 0 {
  25432. dd.ReadMapEnd()
  25433. return v, changed
  25434. }
  25435. var mk int8
  25436. var mv uint
  25437. hasLen := containerLen > 0
  25438. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25439. if esep {
  25440. dd.ReadMapElemKey()
  25441. }
  25442. mk = int8(dd.DecodeInt(8))
  25443. if esep {
  25444. dd.ReadMapElemValue()
  25445. }
  25446. if dd.TryDecodeAsNil() {
  25447. if d.h.DeleteOnNilMapValue {
  25448. delete(v, mk)
  25449. } else {
  25450. v[mk] = 0
  25451. }
  25452. continue
  25453. }
  25454. mv = uint(dd.DecodeUint(uintBitsize))
  25455. if v != nil {
  25456. v[mk] = mv
  25457. }
  25458. }
  25459. dd.ReadMapEnd()
  25460. return v, changed
  25461. }
  25462. func (d *Decoder) fastpathDecMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  25463. if rv.Kind() == reflect.Ptr {
  25464. vp := rv2i(rv).(*map[int8]uint8)
  25465. if v, changed := fastpathTV.DecMapInt8Uint8V(*vp, true, d); changed {
  25466. *vp = v
  25467. }
  25468. return
  25469. }
  25470. fastpathTV.DecMapInt8Uint8V(rv2i(rv).(map[int8]uint8), false, d)
  25471. }
  25472. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, d *Decoder) {
  25473. if v, changed := f.DecMapInt8Uint8V(*vp, true, d); changed {
  25474. *vp = v
  25475. }
  25476. }
  25477. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, canChange bool,
  25478. d *Decoder) (_ map[int8]uint8, changed bool) {
  25479. dd, esep := d.d, d.hh.hasElemSeparators()
  25480. containerLen := dd.ReadMapStart()
  25481. if canChange && v == nil {
  25482. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  25483. v = make(map[int8]uint8, xlen)
  25484. changed = true
  25485. }
  25486. if containerLen == 0 {
  25487. dd.ReadMapEnd()
  25488. return v, changed
  25489. }
  25490. var mk int8
  25491. var mv uint8
  25492. hasLen := containerLen > 0
  25493. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25494. if esep {
  25495. dd.ReadMapElemKey()
  25496. }
  25497. mk = int8(dd.DecodeInt(8))
  25498. if esep {
  25499. dd.ReadMapElemValue()
  25500. }
  25501. if dd.TryDecodeAsNil() {
  25502. if d.h.DeleteOnNilMapValue {
  25503. delete(v, mk)
  25504. } else {
  25505. v[mk] = 0
  25506. }
  25507. continue
  25508. }
  25509. mv = uint8(dd.DecodeUint(8))
  25510. if v != nil {
  25511. v[mk] = mv
  25512. }
  25513. }
  25514. dd.ReadMapEnd()
  25515. return v, changed
  25516. }
  25517. func (d *Decoder) fastpathDecMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  25518. if rv.Kind() == reflect.Ptr {
  25519. vp := rv2i(rv).(*map[int8]uint16)
  25520. if v, changed := fastpathTV.DecMapInt8Uint16V(*vp, true, d); changed {
  25521. *vp = v
  25522. }
  25523. return
  25524. }
  25525. fastpathTV.DecMapInt8Uint16V(rv2i(rv).(map[int8]uint16), false, d)
  25526. }
  25527. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, d *Decoder) {
  25528. if v, changed := f.DecMapInt8Uint16V(*vp, true, d); changed {
  25529. *vp = v
  25530. }
  25531. }
  25532. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, canChange bool,
  25533. d *Decoder) (_ map[int8]uint16, changed bool) {
  25534. dd, esep := d.d, d.hh.hasElemSeparators()
  25535. containerLen := dd.ReadMapStart()
  25536. if canChange && v == nil {
  25537. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25538. v = make(map[int8]uint16, xlen)
  25539. changed = true
  25540. }
  25541. if containerLen == 0 {
  25542. dd.ReadMapEnd()
  25543. return v, changed
  25544. }
  25545. var mk int8
  25546. var mv uint16
  25547. hasLen := containerLen > 0
  25548. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25549. if esep {
  25550. dd.ReadMapElemKey()
  25551. }
  25552. mk = int8(dd.DecodeInt(8))
  25553. if esep {
  25554. dd.ReadMapElemValue()
  25555. }
  25556. if dd.TryDecodeAsNil() {
  25557. if d.h.DeleteOnNilMapValue {
  25558. delete(v, mk)
  25559. } else {
  25560. v[mk] = 0
  25561. }
  25562. continue
  25563. }
  25564. mv = uint16(dd.DecodeUint(16))
  25565. if v != nil {
  25566. v[mk] = mv
  25567. }
  25568. }
  25569. dd.ReadMapEnd()
  25570. return v, changed
  25571. }
  25572. func (d *Decoder) fastpathDecMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  25573. if rv.Kind() == reflect.Ptr {
  25574. vp := rv2i(rv).(*map[int8]uint32)
  25575. if v, changed := fastpathTV.DecMapInt8Uint32V(*vp, true, d); changed {
  25576. *vp = v
  25577. }
  25578. return
  25579. }
  25580. fastpathTV.DecMapInt8Uint32V(rv2i(rv).(map[int8]uint32), false, d)
  25581. }
  25582. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, d *Decoder) {
  25583. if v, changed := f.DecMapInt8Uint32V(*vp, true, d); changed {
  25584. *vp = v
  25585. }
  25586. }
  25587. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, canChange bool,
  25588. d *Decoder) (_ map[int8]uint32, changed bool) {
  25589. dd, esep := d.d, d.hh.hasElemSeparators()
  25590. containerLen := dd.ReadMapStart()
  25591. if canChange && v == nil {
  25592. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  25593. v = make(map[int8]uint32, xlen)
  25594. changed = true
  25595. }
  25596. if containerLen == 0 {
  25597. dd.ReadMapEnd()
  25598. return v, changed
  25599. }
  25600. var mk int8
  25601. var mv uint32
  25602. hasLen := containerLen > 0
  25603. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25604. if esep {
  25605. dd.ReadMapElemKey()
  25606. }
  25607. mk = int8(dd.DecodeInt(8))
  25608. if esep {
  25609. dd.ReadMapElemValue()
  25610. }
  25611. if dd.TryDecodeAsNil() {
  25612. if d.h.DeleteOnNilMapValue {
  25613. delete(v, mk)
  25614. } else {
  25615. v[mk] = 0
  25616. }
  25617. continue
  25618. }
  25619. mv = uint32(dd.DecodeUint(32))
  25620. if v != nil {
  25621. v[mk] = mv
  25622. }
  25623. }
  25624. dd.ReadMapEnd()
  25625. return v, changed
  25626. }
  25627. func (d *Decoder) fastpathDecMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  25628. if rv.Kind() == reflect.Ptr {
  25629. vp := rv2i(rv).(*map[int8]uint64)
  25630. if v, changed := fastpathTV.DecMapInt8Uint64V(*vp, true, d); changed {
  25631. *vp = v
  25632. }
  25633. return
  25634. }
  25635. fastpathTV.DecMapInt8Uint64V(rv2i(rv).(map[int8]uint64), false, d)
  25636. }
  25637. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, d *Decoder) {
  25638. if v, changed := f.DecMapInt8Uint64V(*vp, true, d); changed {
  25639. *vp = v
  25640. }
  25641. }
  25642. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, canChange bool,
  25643. d *Decoder) (_ map[int8]uint64, changed bool) {
  25644. dd, esep := d.d, d.hh.hasElemSeparators()
  25645. containerLen := dd.ReadMapStart()
  25646. if canChange && v == nil {
  25647. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25648. v = make(map[int8]uint64, xlen)
  25649. changed = true
  25650. }
  25651. if containerLen == 0 {
  25652. dd.ReadMapEnd()
  25653. return v, changed
  25654. }
  25655. var mk int8
  25656. var mv uint64
  25657. hasLen := containerLen > 0
  25658. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25659. if esep {
  25660. dd.ReadMapElemKey()
  25661. }
  25662. mk = int8(dd.DecodeInt(8))
  25663. if esep {
  25664. dd.ReadMapElemValue()
  25665. }
  25666. if dd.TryDecodeAsNil() {
  25667. if d.h.DeleteOnNilMapValue {
  25668. delete(v, mk)
  25669. } else {
  25670. v[mk] = 0
  25671. }
  25672. continue
  25673. }
  25674. mv = dd.DecodeUint(64)
  25675. if v != nil {
  25676. v[mk] = mv
  25677. }
  25678. }
  25679. dd.ReadMapEnd()
  25680. return v, changed
  25681. }
  25682. func (d *Decoder) fastpathDecMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  25683. if rv.Kind() == reflect.Ptr {
  25684. vp := rv2i(rv).(*map[int8]uintptr)
  25685. if v, changed := fastpathTV.DecMapInt8UintptrV(*vp, true, d); changed {
  25686. *vp = v
  25687. }
  25688. return
  25689. }
  25690. fastpathTV.DecMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), false, d)
  25691. }
  25692. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, d *Decoder) {
  25693. if v, changed := f.DecMapInt8UintptrV(*vp, true, d); changed {
  25694. *vp = v
  25695. }
  25696. }
  25697. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, canChange bool,
  25698. d *Decoder) (_ map[int8]uintptr, changed bool) {
  25699. dd, esep := d.d, d.hh.hasElemSeparators()
  25700. containerLen := dd.ReadMapStart()
  25701. if canChange && v == nil {
  25702. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25703. v = make(map[int8]uintptr, xlen)
  25704. changed = true
  25705. }
  25706. if containerLen == 0 {
  25707. dd.ReadMapEnd()
  25708. return v, changed
  25709. }
  25710. var mk int8
  25711. var mv uintptr
  25712. hasLen := containerLen > 0
  25713. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25714. if esep {
  25715. dd.ReadMapElemKey()
  25716. }
  25717. mk = int8(dd.DecodeInt(8))
  25718. if esep {
  25719. dd.ReadMapElemValue()
  25720. }
  25721. if dd.TryDecodeAsNil() {
  25722. if d.h.DeleteOnNilMapValue {
  25723. delete(v, mk)
  25724. } else {
  25725. v[mk] = 0
  25726. }
  25727. continue
  25728. }
  25729. mv = uintptr(dd.DecodeUint(uintBitsize))
  25730. if v != nil {
  25731. v[mk] = mv
  25732. }
  25733. }
  25734. dd.ReadMapEnd()
  25735. return v, changed
  25736. }
  25737. func (d *Decoder) fastpathDecMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  25738. if rv.Kind() == reflect.Ptr {
  25739. vp := rv2i(rv).(*map[int8]int)
  25740. if v, changed := fastpathTV.DecMapInt8IntV(*vp, true, d); changed {
  25741. *vp = v
  25742. }
  25743. return
  25744. }
  25745. fastpathTV.DecMapInt8IntV(rv2i(rv).(map[int8]int), false, d)
  25746. }
  25747. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, d *Decoder) {
  25748. if v, changed := f.DecMapInt8IntV(*vp, true, d); changed {
  25749. *vp = v
  25750. }
  25751. }
  25752. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, canChange bool,
  25753. d *Decoder) (_ map[int8]int, changed bool) {
  25754. dd, esep := d.d, d.hh.hasElemSeparators()
  25755. containerLen := dd.ReadMapStart()
  25756. if canChange && v == nil {
  25757. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25758. v = make(map[int8]int, xlen)
  25759. changed = true
  25760. }
  25761. if containerLen == 0 {
  25762. dd.ReadMapEnd()
  25763. return v, changed
  25764. }
  25765. var mk int8
  25766. var mv int
  25767. hasLen := containerLen > 0
  25768. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25769. if esep {
  25770. dd.ReadMapElemKey()
  25771. }
  25772. mk = int8(dd.DecodeInt(8))
  25773. if esep {
  25774. dd.ReadMapElemValue()
  25775. }
  25776. if dd.TryDecodeAsNil() {
  25777. if d.h.DeleteOnNilMapValue {
  25778. delete(v, mk)
  25779. } else {
  25780. v[mk] = 0
  25781. }
  25782. continue
  25783. }
  25784. mv = int(dd.DecodeInt(intBitsize))
  25785. if v != nil {
  25786. v[mk] = mv
  25787. }
  25788. }
  25789. dd.ReadMapEnd()
  25790. return v, changed
  25791. }
  25792. func (d *Decoder) fastpathDecMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  25793. if rv.Kind() == reflect.Ptr {
  25794. vp := rv2i(rv).(*map[int8]int8)
  25795. if v, changed := fastpathTV.DecMapInt8Int8V(*vp, true, d); changed {
  25796. *vp = v
  25797. }
  25798. return
  25799. }
  25800. fastpathTV.DecMapInt8Int8V(rv2i(rv).(map[int8]int8), false, d)
  25801. }
  25802. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, d *Decoder) {
  25803. if v, changed := f.DecMapInt8Int8V(*vp, true, d); changed {
  25804. *vp = v
  25805. }
  25806. }
  25807. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, canChange bool,
  25808. d *Decoder) (_ map[int8]int8, changed bool) {
  25809. dd, esep := d.d, d.hh.hasElemSeparators()
  25810. containerLen := dd.ReadMapStart()
  25811. if canChange && v == nil {
  25812. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  25813. v = make(map[int8]int8, xlen)
  25814. changed = true
  25815. }
  25816. if containerLen == 0 {
  25817. dd.ReadMapEnd()
  25818. return v, changed
  25819. }
  25820. var mk int8
  25821. var mv int8
  25822. hasLen := containerLen > 0
  25823. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25824. if esep {
  25825. dd.ReadMapElemKey()
  25826. }
  25827. mk = int8(dd.DecodeInt(8))
  25828. if esep {
  25829. dd.ReadMapElemValue()
  25830. }
  25831. if dd.TryDecodeAsNil() {
  25832. if d.h.DeleteOnNilMapValue {
  25833. delete(v, mk)
  25834. } else {
  25835. v[mk] = 0
  25836. }
  25837. continue
  25838. }
  25839. mv = int8(dd.DecodeInt(8))
  25840. if v != nil {
  25841. v[mk] = mv
  25842. }
  25843. }
  25844. dd.ReadMapEnd()
  25845. return v, changed
  25846. }
  25847. func (d *Decoder) fastpathDecMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  25848. if rv.Kind() == reflect.Ptr {
  25849. vp := rv2i(rv).(*map[int8]int16)
  25850. if v, changed := fastpathTV.DecMapInt8Int16V(*vp, true, d); changed {
  25851. *vp = v
  25852. }
  25853. return
  25854. }
  25855. fastpathTV.DecMapInt8Int16V(rv2i(rv).(map[int8]int16), false, d)
  25856. }
  25857. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, d *Decoder) {
  25858. if v, changed := f.DecMapInt8Int16V(*vp, true, d); changed {
  25859. *vp = v
  25860. }
  25861. }
  25862. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, canChange bool,
  25863. d *Decoder) (_ map[int8]int16, changed bool) {
  25864. dd, esep := d.d, d.hh.hasElemSeparators()
  25865. containerLen := dd.ReadMapStart()
  25866. if canChange && v == nil {
  25867. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25868. v = make(map[int8]int16, xlen)
  25869. changed = true
  25870. }
  25871. if containerLen == 0 {
  25872. dd.ReadMapEnd()
  25873. return v, changed
  25874. }
  25875. var mk int8
  25876. var mv int16
  25877. hasLen := containerLen > 0
  25878. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25879. if esep {
  25880. dd.ReadMapElemKey()
  25881. }
  25882. mk = int8(dd.DecodeInt(8))
  25883. if esep {
  25884. dd.ReadMapElemValue()
  25885. }
  25886. if dd.TryDecodeAsNil() {
  25887. if d.h.DeleteOnNilMapValue {
  25888. delete(v, mk)
  25889. } else {
  25890. v[mk] = 0
  25891. }
  25892. continue
  25893. }
  25894. mv = int16(dd.DecodeInt(16))
  25895. if v != nil {
  25896. v[mk] = mv
  25897. }
  25898. }
  25899. dd.ReadMapEnd()
  25900. return v, changed
  25901. }
  25902. func (d *Decoder) fastpathDecMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  25903. if rv.Kind() == reflect.Ptr {
  25904. vp := rv2i(rv).(*map[int8]int32)
  25905. if v, changed := fastpathTV.DecMapInt8Int32V(*vp, true, d); changed {
  25906. *vp = v
  25907. }
  25908. return
  25909. }
  25910. fastpathTV.DecMapInt8Int32V(rv2i(rv).(map[int8]int32), false, d)
  25911. }
  25912. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, d *Decoder) {
  25913. if v, changed := f.DecMapInt8Int32V(*vp, true, d); changed {
  25914. *vp = v
  25915. }
  25916. }
  25917. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, canChange bool,
  25918. d *Decoder) (_ map[int8]int32, changed bool) {
  25919. dd, esep := d.d, d.hh.hasElemSeparators()
  25920. containerLen := dd.ReadMapStart()
  25921. if canChange && v == nil {
  25922. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  25923. v = make(map[int8]int32, xlen)
  25924. changed = true
  25925. }
  25926. if containerLen == 0 {
  25927. dd.ReadMapEnd()
  25928. return v, changed
  25929. }
  25930. var mk int8
  25931. var mv int32
  25932. hasLen := containerLen > 0
  25933. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25934. if esep {
  25935. dd.ReadMapElemKey()
  25936. }
  25937. mk = int8(dd.DecodeInt(8))
  25938. if esep {
  25939. dd.ReadMapElemValue()
  25940. }
  25941. if dd.TryDecodeAsNil() {
  25942. if d.h.DeleteOnNilMapValue {
  25943. delete(v, mk)
  25944. } else {
  25945. v[mk] = 0
  25946. }
  25947. continue
  25948. }
  25949. mv = int32(dd.DecodeInt(32))
  25950. if v != nil {
  25951. v[mk] = mv
  25952. }
  25953. }
  25954. dd.ReadMapEnd()
  25955. return v, changed
  25956. }
  25957. func (d *Decoder) fastpathDecMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  25958. if rv.Kind() == reflect.Ptr {
  25959. vp := rv2i(rv).(*map[int8]int64)
  25960. if v, changed := fastpathTV.DecMapInt8Int64V(*vp, true, d); changed {
  25961. *vp = v
  25962. }
  25963. return
  25964. }
  25965. fastpathTV.DecMapInt8Int64V(rv2i(rv).(map[int8]int64), false, d)
  25966. }
  25967. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, d *Decoder) {
  25968. if v, changed := f.DecMapInt8Int64V(*vp, true, d); changed {
  25969. *vp = v
  25970. }
  25971. }
  25972. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, canChange bool,
  25973. d *Decoder) (_ map[int8]int64, changed bool) {
  25974. dd, esep := d.d, d.hh.hasElemSeparators()
  25975. containerLen := dd.ReadMapStart()
  25976. if canChange && v == nil {
  25977. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25978. v = make(map[int8]int64, xlen)
  25979. changed = true
  25980. }
  25981. if containerLen == 0 {
  25982. dd.ReadMapEnd()
  25983. return v, changed
  25984. }
  25985. var mk int8
  25986. var mv int64
  25987. hasLen := containerLen > 0
  25988. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25989. if esep {
  25990. dd.ReadMapElemKey()
  25991. }
  25992. mk = int8(dd.DecodeInt(8))
  25993. if esep {
  25994. dd.ReadMapElemValue()
  25995. }
  25996. if dd.TryDecodeAsNil() {
  25997. if d.h.DeleteOnNilMapValue {
  25998. delete(v, mk)
  25999. } else {
  26000. v[mk] = 0
  26001. }
  26002. continue
  26003. }
  26004. mv = dd.DecodeInt(64)
  26005. if v != nil {
  26006. v[mk] = mv
  26007. }
  26008. }
  26009. dd.ReadMapEnd()
  26010. return v, changed
  26011. }
  26012. func (d *Decoder) fastpathDecMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  26013. if rv.Kind() == reflect.Ptr {
  26014. vp := rv2i(rv).(*map[int8]float32)
  26015. if v, changed := fastpathTV.DecMapInt8Float32V(*vp, true, d); changed {
  26016. *vp = v
  26017. }
  26018. return
  26019. }
  26020. fastpathTV.DecMapInt8Float32V(rv2i(rv).(map[int8]float32), false, d)
  26021. }
  26022. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, d *Decoder) {
  26023. if v, changed := f.DecMapInt8Float32V(*vp, true, d); changed {
  26024. *vp = v
  26025. }
  26026. }
  26027. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, canChange bool,
  26028. d *Decoder) (_ map[int8]float32, changed bool) {
  26029. dd, esep := d.d, d.hh.hasElemSeparators()
  26030. containerLen := dd.ReadMapStart()
  26031. if canChange && v == nil {
  26032. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26033. v = make(map[int8]float32, xlen)
  26034. changed = true
  26035. }
  26036. if containerLen == 0 {
  26037. dd.ReadMapEnd()
  26038. return v, changed
  26039. }
  26040. var mk int8
  26041. var mv float32
  26042. hasLen := containerLen > 0
  26043. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26044. if esep {
  26045. dd.ReadMapElemKey()
  26046. }
  26047. mk = int8(dd.DecodeInt(8))
  26048. if esep {
  26049. dd.ReadMapElemValue()
  26050. }
  26051. if dd.TryDecodeAsNil() {
  26052. if d.h.DeleteOnNilMapValue {
  26053. delete(v, mk)
  26054. } else {
  26055. v[mk] = 0
  26056. }
  26057. continue
  26058. }
  26059. mv = float32(dd.DecodeFloat(true))
  26060. if v != nil {
  26061. v[mk] = mv
  26062. }
  26063. }
  26064. dd.ReadMapEnd()
  26065. return v, changed
  26066. }
  26067. func (d *Decoder) fastpathDecMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  26068. if rv.Kind() == reflect.Ptr {
  26069. vp := rv2i(rv).(*map[int8]float64)
  26070. if v, changed := fastpathTV.DecMapInt8Float64V(*vp, true, d); changed {
  26071. *vp = v
  26072. }
  26073. return
  26074. }
  26075. fastpathTV.DecMapInt8Float64V(rv2i(rv).(map[int8]float64), false, d)
  26076. }
  26077. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, d *Decoder) {
  26078. if v, changed := f.DecMapInt8Float64V(*vp, true, d); changed {
  26079. *vp = v
  26080. }
  26081. }
  26082. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, canChange bool,
  26083. d *Decoder) (_ map[int8]float64, changed bool) {
  26084. dd, esep := d.d, d.hh.hasElemSeparators()
  26085. containerLen := dd.ReadMapStart()
  26086. if canChange && v == nil {
  26087. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26088. v = make(map[int8]float64, xlen)
  26089. changed = true
  26090. }
  26091. if containerLen == 0 {
  26092. dd.ReadMapEnd()
  26093. return v, changed
  26094. }
  26095. var mk int8
  26096. var mv float64
  26097. hasLen := containerLen > 0
  26098. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26099. if esep {
  26100. dd.ReadMapElemKey()
  26101. }
  26102. mk = int8(dd.DecodeInt(8))
  26103. if esep {
  26104. dd.ReadMapElemValue()
  26105. }
  26106. if dd.TryDecodeAsNil() {
  26107. if d.h.DeleteOnNilMapValue {
  26108. delete(v, mk)
  26109. } else {
  26110. v[mk] = 0
  26111. }
  26112. continue
  26113. }
  26114. mv = dd.DecodeFloat(false)
  26115. if v != nil {
  26116. v[mk] = mv
  26117. }
  26118. }
  26119. dd.ReadMapEnd()
  26120. return v, changed
  26121. }
  26122. func (d *Decoder) fastpathDecMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  26123. if rv.Kind() == reflect.Ptr {
  26124. vp := rv2i(rv).(*map[int8]bool)
  26125. if v, changed := fastpathTV.DecMapInt8BoolV(*vp, true, d); changed {
  26126. *vp = v
  26127. }
  26128. return
  26129. }
  26130. fastpathTV.DecMapInt8BoolV(rv2i(rv).(map[int8]bool), false, d)
  26131. }
  26132. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, d *Decoder) {
  26133. if v, changed := f.DecMapInt8BoolV(*vp, true, d); changed {
  26134. *vp = v
  26135. }
  26136. }
  26137. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, canChange bool,
  26138. d *Decoder) (_ map[int8]bool, changed bool) {
  26139. dd, esep := d.d, d.hh.hasElemSeparators()
  26140. containerLen := dd.ReadMapStart()
  26141. if canChange && v == nil {
  26142. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  26143. v = make(map[int8]bool, xlen)
  26144. changed = true
  26145. }
  26146. if containerLen == 0 {
  26147. dd.ReadMapEnd()
  26148. return v, changed
  26149. }
  26150. var mk int8
  26151. var mv bool
  26152. hasLen := containerLen > 0
  26153. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26154. if esep {
  26155. dd.ReadMapElemKey()
  26156. }
  26157. mk = int8(dd.DecodeInt(8))
  26158. if esep {
  26159. dd.ReadMapElemValue()
  26160. }
  26161. if dd.TryDecodeAsNil() {
  26162. if d.h.DeleteOnNilMapValue {
  26163. delete(v, mk)
  26164. } else {
  26165. v[mk] = false
  26166. }
  26167. continue
  26168. }
  26169. mv = dd.DecodeBool()
  26170. if v != nil {
  26171. v[mk] = mv
  26172. }
  26173. }
  26174. dd.ReadMapEnd()
  26175. return v, changed
  26176. }
  26177. func (d *Decoder) fastpathDecMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  26178. if rv.Kind() == reflect.Ptr {
  26179. vp := rv2i(rv).(*map[int16]interface{})
  26180. if v, changed := fastpathTV.DecMapInt16IntfV(*vp, true, d); changed {
  26181. *vp = v
  26182. }
  26183. return
  26184. }
  26185. fastpathTV.DecMapInt16IntfV(rv2i(rv).(map[int16]interface{}), false, d)
  26186. }
  26187. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, d *Decoder) {
  26188. if v, changed := f.DecMapInt16IntfV(*vp, true, d); changed {
  26189. *vp = v
  26190. }
  26191. }
  26192. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, canChange bool,
  26193. d *Decoder) (_ map[int16]interface{}, changed bool) {
  26194. dd, esep := d.d, d.hh.hasElemSeparators()
  26195. containerLen := dd.ReadMapStart()
  26196. if canChange && v == nil {
  26197. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  26198. v = make(map[int16]interface{}, xlen)
  26199. changed = true
  26200. }
  26201. if containerLen == 0 {
  26202. dd.ReadMapEnd()
  26203. return v, changed
  26204. }
  26205. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  26206. var mk int16
  26207. var mv interface{}
  26208. hasLen := containerLen > 0
  26209. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26210. if esep {
  26211. dd.ReadMapElemKey()
  26212. }
  26213. mk = int16(dd.DecodeInt(16))
  26214. if esep {
  26215. dd.ReadMapElemValue()
  26216. }
  26217. if dd.TryDecodeAsNil() {
  26218. if d.h.DeleteOnNilMapValue {
  26219. delete(v, mk)
  26220. } else {
  26221. v[mk] = nil
  26222. }
  26223. continue
  26224. }
  26225. if mapGet {
  26226. mv = v[mk]
  26227. } else {
  26228. mv = nil
  26229. }
  26230. d.decode(&mv)
  26231. if v != nil {
  26232. v[mk] = mv
  26233. }
  26234. }
  26235. dd.ReadMapEnd()
  26236. return v, changed
  26237. }
  26238. func (d *Decoder) fastpathDecMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  26239. if rv.Kind() == reflect.Ptr {
  26240. vp := rv2i(rv).(*map[int16]string)
  26241. if v, changed := fastpathTV.DecMapInt16StringV(*vp, true, d); changed {
  26242. *vp = v
  26243. }
  26244. return
  26245. }
  26246. fastpathTV.DecMapInt16StringV(rv2i(rv).(map[int16]string), false, d)
  26247. }
  26248. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, d *Decoder) {
  26249. if v, changed := f.DecMapInt16StringV(*vp, true, d); changed {
  26250. *vp = v
  26251. }
  26252. }
  26253. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, canChange bool,
  26254. d *Decoder) (_ map[int16]string, changed bool) {
  26255. dd, esep := d.d, d.hh.hasElemSeparators()
  26256. containerLen := dd.ReadMapStart()
  26257. if canChange && v == nil {
  26258. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  26259. v = make(map[int16]string, xlen)
  26260. changed = true
  26261. }
  26262. if containerLen == 0 {
  26263. dd.ReadMapEnd()
  26264. return v, changed
  26265. }
  26266. var mk int16
  26267. var mv string
  26268. hasLen := containerLen > 0
  26269. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26270. if esep {
  26271. dd.ReadMapElemKey()
  26272. }
  26273. mk = int16(dd.DecodeInt(16))
  26274. if esep {
  26275. dd.ReadMapElemValue()
  26276. }
  26277. if dd.TryDecodeAsNil() {
  26278. if d.h.DeleteOnNilMapValue {
  26279. delete(v, mk)
  26280. } else {
  26281. v[mk] = ""
  26282. }
  26283. continue
  26284. }
  26285. mv = dd.DecodeString()
  26286. if v != nil {
  26287. v[mk] = mv
  26288. }
  26289. }
  26290. dd.ReadMapEnd()
  26291. return v, changed
  26292. }
  26293. func (d *Decoder) fastpathDecMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  26294. if rv.Kind() == reflect.Ptr {
  26295. vp := rv2i(rv).(*map[int16]uint)
  26296. if v, changed := fastpathTV.DecMapInt16UintV(*vp, true, d); changed {
  26297. *vp = v
  26298. }
  26299. return
  26300. }
  26301. fastpathTV.DecMapInt16UintV(rv2i(rv).(map[int16]uint), false, d)
  26302. }
  26303. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, d *Decoder) {
  26304. if v, changed := f.DecMapInt16UintV(*vp, true, d); changed {
  26305. *vp = v
  26306. }
  26307. }
  26308. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, canChange bool,
  26309. d *Decoder) (_ map[int16]uint, changed bool) {
  26310. dd, esep := d.d, d.hh.hasElemSeparators()
  26311. containerLen := dd.ReadMapStart()
  26312. if canChange && v == nil {
  26313. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26314. v = make(map[int16]uint, xlen)
  26315. changed = true
  26316. }
  26317. if containerLen == 0 {
  26318. dd.ReadMapEnd()
  26319. return v, changed
  26320. }
  26321. var mk int16
  26322. var mv uint
  26323. hasLen := containerLen > 0
  26324. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26325. if esep {
  26326. dd.ReadMapElemKey()
  26327. }
  26328. mk = int16(dd.DecodeInt(16))
  26329. if esep {
  26330. dd.ReadMapElemValue()
  26331. }
  26332. if dd.TryDecodeAsNil() {
  26333. if d.h.DeleteOnNilMapValue {
  26334. delete(v, mk)
  26335. } else {
  26336. v[mk] = 0
  26337. }
  26338. continue
  26339. }
  26340. mv = uint(dd.DecodeUint(uintBitsize))
  26341. if v != nil {
  26342. v[mk] = mv
  26343. }
  26344. }
  26345. dd.ReadMapEnd()
  26346. return v, changed
  26347. }
  26348. func (d *Decoder) fastpathDecMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  26349. if rv.Kind() == reflect.Ptr {
  26350. vp := rv2i(rv).(*map[int16]uint8)
  26351. if v, changed := fastpathTV.DecMapInt16Uint8V(*vp, true, d); changed {
  26352. *vp = v
  26353. }
  26354. return
  26355. }
  26356. fastpathTV.DecMapInt16Uint8V(rv2i(rv).(map[int16]uint8), false, d)
  26357. }
  26358. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, d *Decoder) {
  26359. if v, changed := f.DecMapInt16Uint8V(*vp, true, d); changed {
  26360. *vp = v
  26361. }
  26362. }
  26363. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, canChange bool,
  26364. d *Decoder) (_ map[int16]uint8, changed bool) {
  26365. dd, esep := d.d, d.hh.hasElemSeparators()
  26366. containerLen := dd.ReadMapStart()
  26367. if canChange && v == nil {
  26368. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  26369. v = make(map[int16]uint8, xlen)
  26370. changed = true
  26371. }
  26372. if containerLen == 0 {
  26373. dd.ReadMapEnd()
  26374. return v, changed
  26375. }
  26376. var mk int16
  26377. var mv uint8
  26378. hasLen := containerLen > 0
  26379. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26380. if esep {
  26381. dd.ReadMapElemKey()
  26382. }
  26383. mk = int16(dd.DecodeInt(16))
  26384. if esep {
  26385. dd.ReadMapElemValue()
  26386. }
  26387. if dd.TryDecodeAsNil() {
  26388. if d.h.DeleteOnNilMapValue {
  26389. delete(v, mk)
  26390. } else {
  26391. v[mk] = 0
  26392. }
  26393. continue
  26394. }
  26395. mv = uint8(dd.DecodeUint(8))
  26396. if v != nil {
  26397. v[mk] = mv
  26398. }
  26399. }
  26400. dd.ReadMapEnd()
  26401. return v, changed
  26402. }
  26403. func (d *Decoder) fastpathDecMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  26404. if rv.Kind() == reflect.Ptr {
  26405. vp := rv2i(rv).(*map[int16]uint16)
  26406. if v, changed := fastpathTV.DecMapInt16Uint16V(*vp, true, d); changed {
  26407. *vp = v
  26408. }
  26409. return
  26410. }
  26411. fastpathTV.DecMapInt16Uint16V(rv2i(rv).(map[int16]uint16), false, d)
  26412. }
  26413. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, d *Decoder) {
  26414. if v, changed := f.DecMapInt16Uint16V(*vp, true, d); changed {
  26415. *vp = v
  26416. }
  26417. }
  26418. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, canChange bool,
  26419. d *Decoder) (_ map[int16]uint16, changed bool) {
  26420. dd, esep := d.d, d.hh.hasElemSeparators()
  26421. containerLen := dd.ReadMapStart()
  26422. if canChange && v == nil {
  26423. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  26424. v = make(map[int16]uint16, xlen)
  26425. changed = true
  26426. }
  26427. if containerLen == 0 {
  26428. dd.ReadMapEnd()
  26429. return v, changed
  26430. }
  26431. var mk int16
  26432. var mv uint16
  26433. hasLen := containerLen > 0
  26434. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26435. if esep {
  26436. dd.ReadMapElemKey()
  26437. }
  26438. mk = int16(dd.DecodeInt(16))
  26439. if esep {
  26440. dd.ReadMapElemValue()
  26441. }
  26442. if dd.TryDecodeAsNil() {
  26443. if d.h.DeleteOnNilMapValue {
  26444. delete(v, mk)
  26445. } else {
  26446. v[mk] = 0
  26447. }
  26448. continue
  26449. }
  26450. mv = uint16(dd.DecodeUint(16))
  26451. if v != nil {
  26452. v[mk] = mv
  26453. }
  26454. }
  26455. dd.ReadMapEnd()
  26456. return v, changed
  26457. }
  26458. func (d *Decoder) fastpathDecMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  26459. if rv.Kind() == reflect.Ptr {
  26460. vp := rv2i(rv).(*map[int16]uint32)
  26461. if v, changed := fastpathTV.DecMapInt16Uint32V(*vp, true, d); changed {
  26462. *vp = v
  26463. }
  26464. return
  26465. }
  26466. fastpathTV.DecMapInt16Uint32V(rv2i(rv).(map[int16]uint32), false, d)
  26467. }
  26468. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, d *Decoder) {
  26469. if v, changed := f.DecMapInt16Uint32V(*vp, true, d); changed {
  26470. *vp = v
  26471. }
  26472. }
  26473. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, canChange bool,
  26474. d *Decoder) (_ map[int16]uint32, changed bool) {
  26475. dd, esep := d.d, d.hh.hasElemSeparators()
  26476. containerLen := dd.ReadMapStart()
  26477. if canChange && v == nil {
  26478. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26479. v = make(map[int16]uint32, xlen)
  26480. changed = true
  26481. }
  26482. if containerLen == 0 {
  26483. dd.ReadMapEnd()
  26484. return v, changed
  26485. }
  26486. var mk int16
  26487. var mv uint32
  26488. hasLen := containerLen > 0
  26489. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26490. if esep {
  26491. dd.ReadMapElemKey()
  26492. }
  26493. mk = int16(dd.DecodeInt(16))
  26494. if esep {
  26495. dd.ReadMapElemValue()
  26496. }
  26497. if dd.TryDecodeAsNil() {
  26498. if d.h.DeleteOnNilMapValue {
  26499. delete(v, mk)
  26500. } else {
  26501. v[mk] = 0
  26502. }
  26503. continue
  26504. }
  26505. mv = uint32(dd.DecodeUint(32))
  26506. if v != nil {
  26507. v[mk] = mv
  26508. }
  26509. }
  26510. dd.ReadMapEnd()
  26511. return v, changed
  26512. }
  26513. func (d *Decoder) fastpathDecMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  26514. if rv.Kind() == reflect.Ptr {
  26515. vp := rv2i(rv).(*map[int16]uint64)
  26516. if v, changed := fastpathTV.DecMapInt16Uint64V(*vp, true, d); changed {
  26517. *vp = v
  26518. }
  26519. return
  26520. }
  26521. fastpathTV.DecMapInt16Uint64V(rv2i(rv).(map[int16]uint64), false, d)
  26522. }
  26523. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, d *Decoder) {
  26524. if v, changed := f.DecMapInt16Uint64V(*vp, true, d); changed {
  26525. *vp = v
  26526. }
  26527. }
  26528. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, canChange bool,
  26529. d *Decoder) (_ map[int16]uint64, changed bool) {
  26530. dd, esep := d.d, d.hh.hasElemSeparators()
  26531. containerLen := dd.ReadMapStart()
  26532. if canChange && v == nil {
  26533. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26534. v = make(map[int16]uint64, xlen)
  26535. changed = true
  26536. }
  26537. if containerLen == 0 {
  26538. dd.ReadMapEnd()
  26539. return v, changed
  26540. }
  26541. var mk int16
  26542. var mv uint64
  26543. hasLen := containerLen > 0
  26544. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26545. if esep {
  26546. dd.ReadMapElemKey()
  26547. }
  26548. mk = int16(dd.DecodeInt(16))
  26549. if esep {
  26550. dd.ReadMapElemValue()
  26551. }
  26552. if dd.TryDecodeAsNil() {
  26553. if d.h.DeleteOnNilMapValue {
  26554. delete(v, mk)
  26555. } else {
  26556. v[mk] = 0
  26557. }
  26558. continue
  26559. }
  26560. mv = dd.DecodeUint(64)
  26561. if v != nil {
  26562. v[mk] = mv
  26563. }
  26564. }
  26565. dd.ReadMapEnd()
  26566. return v, changed
  26567. }
  26568. func (d *Decoder) fastpathDecMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  26569. if rv.Kind() == reflect.Ptr {
  26570. vp := rv2i(rv).(*map[int16]uintptr)
  26571. if v, changed := fastpathTV.DecMapInt16UintptrV(*vp, true, d); changed {
  26572. *vp = v
  26573. }
  26574. return
  26575. }
  26576. fastpathTV.DecMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), false, d)
  26577. }
  26578. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, d *Decoder) {
  26579. if v, changed := f.DecMapInt16UintptrV(*vp, true, d); changed {
  26580. *vp = v
  26581. }
  26582. }
  26583. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, canChange bool,
  26584. d *Decoder) (_ map[int16]uintptr, changed bool) {
  26585. dd, esep := d.d, d.hh.hasElemSeparators()
  26586. containerLen := dd.ReadMapStart()
  26587. if canChange && v == nil {
  26588. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26589. v = make(map[int16]uintptr, xlen)
  26590. changed = true
  26591. }
  26592. if containerLen == 0 {
  26593. dd.ReadMapEnd()
  26594. return v, changed
  26595. }
  26596. var mk int16
  26597. var mv uintptr
  26598. hasLen := containerLen > 0
  26599. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26600. if esep {
  26601. dd.ReadMapElemKey()
  26602. }
  26603. mk = int16(dd.DecodeInt(16))
  26604. if esep {
  26605. dd.ReadMapElemValue()
  26606. }
  26607. if dd.TryDecodeAsNil() {
  26608. if d.h.DeleteOnNilMapValue {
  26609. delete(v, mk)
  26610. } else {
  26611. v[mk] = 0
  26612. }
  26613. continue
  26614. }
  26615. mv = uintptr(dd.DecodeUint(uintBitsize))
  26616. if v != nil {
  26617. v[mk] = mv
  26618. }
  26619. }
  26620. dd.ReadMapEnd()
  26621. return v, changed
  26622. }
  26623. func (d *Decoder) fastpathDecMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  26624. if rv.Kind() == reflect.Ptr {
  26625. vp := rv2i(rv).(*map[int16]int)
  26626. if v, changed := fastpathTV.DecMapInt16IntV(*vp, true, d); changed {
  26627. *vp = v
  26628. }
  26629. return
  26630. }
  26631. fastpathTV.DecMapInt16IntV(rv2i(rv).(map[int16]int), false, d)
  26632. }
  26633. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, d *Decoder) {
  26634. if v, changed := f.DecMapInt16IntV(*vp, true, d); changed {
  26635. *vp = v
  26636. }
  26637. }
  26638. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, canChange bool,
  26639. d *Decoder) (_ map[int16]int, changed bool) {
  26640. dd, esep := d.d, d.hh.hasElemSeparators()
  26641. containerLen := dd.ReadMapStart()
  26642. if canChange && v == nil {
  26643. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26644. v = make(map[int16]int, xlen)
  26645. changed = true
  26646. }
  26647. if containerLen == 0 {
  26648. dd.ReadMapEnd()
  26649. return v, changed
  26650. }
  26651. var mk int16
  26652. var mv int
  26653. hasLen := containerLen > 0
  26654. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26655. if esep {
  26656. dd.ReadMapElemKey()
  26657. }
  26658. mk = int16(dd.DecodeInt(16))
  26659. if esep {
  26660. dd.ReadMapElemValue()
  26661. }
  26662. if dd.TryDecodeAsNil() {
  26663. if d.h.DeleteOnNilMapValue {
  26664. delete(v, mk)
  26665. } else {
  26666. v[mk] = 0
  26667. }
  26668. continue
  26669. }
  26670. mv = int(dd.DecodeInt(intBitsize))
  26671. if v != nil {
  26672. v[mk] = mv
  26673. }
  26674. }
  26675. dd.ReadMapEnd()
  26676. return v, changed
  26677. }
  26678. func (d *Decoder) fastpathDecMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  26679. if rv.Kind() == reflect.Ptr {
  26680. vp := rv2i(rv).(*map[int16]int8)
  26681. if v, changed := fastpathTV.DecMapInt16Int8V(*vp, true, d); changed {
  26682. *vp = v
  26683. }
  26684. return
  26685. }
  26686. fastpathTV.DecMapInt16Int8V(rv2i(rv).(map[int16]int8), false, d)
  26687. }
  26688. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, d *Decoder) {
  26689. if v, changed := f.DecMapInt16Int8V(*vp, true, d); changed {
  26690. *vp = v
  26691. }
  26692. }
  26693. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, canChange bool,
  26694. d *Decoder) (_ map[int16]int8, changed bool) {
  26695. dd, esep := d.d, d.hh.hasElemSeparators()
  26696. containerLen := dd.ReadMapStart()
  26697. if canChange && v == nil {
  26698. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  26699. v = make(map[int16]int8, xlen)
  26700. changed = true
  26701. }
  26702. if containerLen == 0 {
  26703. dd.ReadMapEnd()
  26704. return v, changed
  26705. }
  26706. var mk int16
  26707. var mv int8
  26708. hasLen := containerLen > 0
  26709. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26710. if esep {
  26711. dd.ReadMapElemKey()
  26712. }
  26713. mk = int16(dd.DecodeInt(16))
  26714. if esep {
  26715. dd.ReadMapElemValue()
  26716. }
  26717. if dd.TryDecodeAsNil() {
  26718. if d.h.DeleteOnNilMapValue {
  26719. delete(v, mk)
  26720. } else {
  26721. v[mk] = 0
  26722. }
  26723. continue
  26724. }
  26725. mv = int8(dd.DecodeInt(8))
  26726. if v != nil {
  26727. v[mk] = mv
  26728. }
  26729. }
  26730. dd.ReadMapEnd()
  26731. return v, changed
  26732. }
  26733. func (d *Decoder) fastpathDecMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  26734. if rv.Kind() == reflect.Ptr {
  26735. vp := rv2i(rv).(*map[int16]int16)
  26736. if v, changed := fastpathTV.DecMapInt16Int16V(*vp, true, d); changed {
  26737. *vp = v
  26738. }
  26739. return
  26740. }
  26741. fastpathTV.DecMapInt16Int16V(rv2i(rv).(map[int16]int16), false, d)
  26742. }
  26743. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, d *Decoder) {
  26744. if v, changed := f.DecMapInt16Int16V(*vp, true, d); changed {
  26745. *vp = v
  26746. }
  26747. }
  26748. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, canChange bool,
  26749. d *Decoder) (_ map[int16]int16, changed bool) {
  26750. dd, esep := d.d, d.hh.hasElemSeparators()
  26751. containerLen := dd.ReadMapStart()
  26752. if canChange && v == nil {
  26753. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  26754. v = make(map[int16]int16, xlen)
  26755. changed = true
  26756. }
  26757. if containerLen == 0 {
  26758. dd.ReadMapEnd()
  26759. return v, changed
  26760. }
  26761. var mk int16
  26762. var mv int16
  26763. hasLen := containerLen > 0
  26764. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26765. if esep {
  26766. dd.ReadMapElemKey()
  26767. }
  26768. mk = int16(dd.DecodeInt(16))
  26769. if esep {
  26770. dd.ReadMapElemValue()
  26771. }
  26772. if dd.TryDecodeAsNil() {
  26773. if d.h.DeleteOnNilMapValue {
  26774. delete(v, mk)
  26775. } else {
  26776. v[mk] = 0
  26777. }
  26778. continue
  26779. }
  26780. mv = int16(dd.DecodeInt(16))
  26781. if v != nil {
  26782. v[mk] = mv
  26783. }
  26784. }
  26785. dd.ReadMapEnd()
  26786. return v, changed
  26787. }
  26788. func (d *Decoder) fastpathDecMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  26789. if rv.Kind() == reflect.Ptr {
  26790. vp := rv2i(rv).(*map[int16]int32)
  26791. if v, changed := fastpathTV.DecMapInt16Int32V(*vp, true, d); changed {
  26792. *vp = v
  26793. }
  26794. return
  26795. }
  26796. fastpathTV.DecMapInt16Int32V(rv2i(rv).(map[int16]int32), false, d)
  26797. }
  26798. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, d *Decoder) {
  26799. if v, changed := f.DecMapInt16Int32V(*vp, true, d); changed {
  26800. *vp = v
  26801. }
  26802. }
  26803. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, canChange bool,
  26804. d *Decoder) (_ map[int16]int32, changed bool) {
  26805. dd, esep := d.d, d.hh.hasElemSeparators()
  26806. containerLen := dd.ReadMapStart()
  26807. if canChange && v == nil {
  26808. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26809. v = make(map[int16]int32, xlen)
  26810. changed = true
  26811. }
  26812. if containerLen == 0 {
  26813. dd.ReadMapEnd()
  26814. return v, changed
  26815. }
  26816. var mk int16
  26817. var mv int32
  26818. hasLen := containerLen > 0
  26819. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26820. if esep {
  26821. dd.ReadMapElemKey()
  26822. }
  26823. mk = int16(dd.DecodeInt(16))
  26824. if esep {
  26825. dd.ReadMapElemValue()
  26826. }
  26827. if dd.TryDecodeAsNil() {
  26828. if d.h.DeleteOnNilMapValue {
  26829. delete(v, mk)
  26830. } else {
  26831. v[mk] = 0
  26832. }
  26833. continue
  26834. }
  26835. mv = int32(dd.DecodeInt(32))
  26836. if v != nil {
  26837. v[mk] = mv
  26838. }
  26839. }
  26840. dd.ReadMapEnd()
  26841. return v, changed
  26842. }
  26843. func (d *Decoder) fastpathDecMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  26844. if rv.Kind() == reflect.Ptr {
  26845. vp := rv2i(rv).(*map[int16]int64)
  26846. if v, changed := fastpathTV.DecMapInt16Int64V(*vp, true, d); changed {
  26847. *vp = v
  26848. }
  26849. return
  26850. }
  26851. fastpathTV.DecMapInt16Int64V(rv2i(rv).(map[int16]int64), false, d)
  26852. }
  26853. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, d *Decoder) {
  26854. if v, changed := f.DecMapInt16Int64V(*vp, true, d); changed {
  26855. *vp = v
  26856. }
  26857. }
  26858. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, canChange bool,
  26859. d *Decoder) (_ map[int16]int64, changed bool) {
  26860. dd, esep := d.d, d.hh.hasElemSeparators()
  26861. containerLen := dd.ReadMapStart()
  26862. if canChange && v == nil {
  26863. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26864. v = make(map[int16]int64, xlen)
  26865. changed = true
  26866. }
  26867. if containerLen == 0 {
  26868. dd.ReadMapEnd()
  26869. return v, changed
  26870. }
  26871. var mk int16
  26872. var mv int64
  26873. hasLen := containerLen > 0
  26874. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26875. if esep {
  26876. dd.ReadMapElemKey()
  26877. }
  26878. mk = int16(dd.DecodeInt(16))
  26879. if esep {
  26880. dd.ReadMapElemValue()
  26881. }
  26882. if dd.TryDecodeAsNil() {
  26883. if d.h.DeleteOnNilMapValue {
  26884. delete(v, mk)
  26885. } else {
  26886. v[mk] = 0
  26887. }
  26888. continue
  26889. }
  26890. mv = dd.DecodeInt(64)
  26891. if v != nil {
  26892. v[mk] = mv
  26893. }
  26894. }
  26895. dd.ReadMapEnd()
  26896. return v, changed
  26897. }
  26898. func (d *Decoder) fastpathDecMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  26899. if rv.Kind() == reflect.Ptr {
  26900. vp := rv2i(rv).(*map[int16]float32)
  26901. if v, changed := fastpathTV.DecMapInt16Float32V(*vp, true, d); changed {
  26902. *vp = v
  26903. }
  26904. return
  26905. }
  26906. fastpathTV.DecMapInt16Float32V(rv2i(rv).(map[int16]float32), false, d)
  26907. }
  26908. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, d *Decoder) {
  26909. if v, changed := f.DecMapInt16Float32V(*vp, true, d); changed {
  26910. *vp = v
  26911. }
  26912. }
  26913. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, canChange bool,
  26914. d *Decoder) (_ map[int16]float32, changed bool) {
  26915. dd, esep := d.d, d.hh.hasElemSeparators()
  26916. containerLen := dd.ReadMapStart()
  26917. if canChange && v == nil {
  26918. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26919. v = make(map[int16]float32, xlen)
  26920. changed = true
  26921. }
  26922. if containerLen == 0 {
  26923. dd.ReadMapEnd()
  26924. return v, changed
  26925. }
  26926. var mk int16
  26927. var mv float32
  26928. hasLen := containerLen > 0
  26929. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26930. if esep {
  26931. dd.ReadMapElemKey()
  26932. }
  26933. mk = int16(dd.DecodeInt(16))
  26934. if esep {
  26935. dd.ReadMapElemValue()
  26936. }
  26937. if dd.TryDecodeAsNil() {
  26938. if d.h.DeleteOnNilMapValue {
  26939. delete(v, mk)
  26940. } else {
  26941. v[mk] = 0
  26942. }
  26943. continue
  26944. }
  26945. mv = float32(dd.DecodeFloat(true))
  26946. if v != nil {
  26947. v[mk] = mv
  26948. }
  26949. }
  26950. dd.ReadMapEnd()
  26951. return v, changed
  26952. }
  26953. func (d *Decoder) fastpathDecMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  26954. if rv.Kind() == reflect.Ptr {
  26955. vp := rv2i(rv).(*map[int16]float64)
  26956. if v, changed := fastpathTV.DecMapInt16Float64V(*vp, true, d); changed {
  26957. *vp = v
  26958. }
  26959. return
  26960. }
  26961. fastpathTV.DecMapInt16Float64V(rv2i(rv).(map[int16]float64), false, d)
  26962. }
  26963. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, d *Decoder) {
  26964. if v, changed := f.DecMapInt16Float64V(*vp, true, d); changed {
  26965. *vp = v
  26966. }
  26967. }
  26968. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, canChange bool,
  26969. d *Decoder) (_ map[int16]float64, changed bool) {
  26970. dd, esep := d.d, d.hh.hasElemSeparators()
  26971. containerLen := dd.ReadMapStart()
  26972. if canChange && v == nil {
  26973. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26974. v = make(map[int16]float64, xlen)
  26975. changed = true
  26976. }
  26977. if containerLen == 0 {
  26978. dd.ReadMapEnd()
  26979. return v, changed
  26980. }
  26981. var mk int16
  26982. var mv float64
  26983. hasLen := containerLen > 0
  26984. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26985. if esep {
  26986. dd.ReadMapElemKey()
  26987. }
  26988. mk = int16(dd.DecodeInt(16))
  26989. if esep {
  26990. dd.ReadMapElemValue()
  26991. }
  26992. if dd.TryDecodeAsNil() {
  26993. if d.h.DeleteOnNilMapValue {
  26994. delete(v, mk)
  26995. } else {
  26996. v[mk] = 0
  26997. }
  26998. continue
  26999. }
  27000. mv = dd.DecodeFloat(false)
  27001. if v != nil {
  27002. v[mk] = mv
  27003. }
  27004. }
  27005. dd.ReadMapEnd()
  27006. return v, changed
  27007. }
  27008. func (d *Decoder) fastpathDecMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  27009. if rv.Kind() == reflect.Ptr {
  27010. vp := rv2i(rv).(*map[int16]bool)
  27011. if v, changed := fastpathTV.DecMapInt16BoolV(*vp, true, d); changed {
  27012. *vp = v
  27013. }
  27014. return
  27015. }
  27016. fastpathTV.DecMapInt16BoolV(rv2i(rv).(map[int16]bool), false, d)
  27017. }
  27018. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, d *Decoder) {
  27019. if v, changed := f.DecMapInt16BoolV(*vp, true, d); changed {
  27020. *vp = v
  27021. }
  27022. }
  27023. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, canChange bool,
  27024. d *Decoder) (_ map[int16]bool, changed bool) {
  27025. dd, esep := d.d, d.hh.hasElemSeparators()
  27026. containerLen := dd.ReadMapStart()
  27027. if canChange && v == nil {
  27028. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  27029. v = make(map[int16]bool, xlen)
  27030. changed = true
  27031. }
  27032. if containerLen == 0 {
  27033. dd.ReadMapEnd()
  27034. return v, changed
  27035. }
  27036. var mk int16
  27037. var mv bool
  27038. hasLen := containerLen > 0
  27039. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27040. if esep {
  27041. dd.ReadMapElemKey()
  27042. }
  27043. mk = int16(dd.DecodeInt(16))
  27044. if esep {
  27045. dd.ReadMapElemValue()
  27046. }
  27047. if dd.TryDecodeAsNil() {
  27048. if d.h.DeleteOnNilMapValue {
  27049. delete(v, mk)
  27050. } else {
  27051. v[mk] = false
  27052. }
  27053. continue
  27054. }
  27055. mv = dd.DecodeBool()
  27056. if v != nil {
  27057. v[mk] = mv
  27058. }
  27059. }
  27060. dd.ReadMapEnd()
  27061. return v, changed
  27062. }
  27063. func (d *Decoder) fastpathDecMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  27064. if rv.Kind() == reflect.Ptr {
  27065. vp := rv2i(rv).(*map[int32]interface{})
  27066. if v, changed := fastpathTV.DecMapInt32IntfV(*vp, true, d); changed {
  27067. *vp = v
  27068. }
  27069. return
  27070. }
  27071. fastpathTV.DecMapInt32IntfV(rv2i(rv).(map[int32]interface{}), false, d)
  27072. }
  27073. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, d *Decoder) {
  27074. if v, changed := f.DecMapInt32IntfV(*vp, true, d); changed {
  27075. *vp = v
  27076. }
  27077. }
  27078. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, canChange bool,
  27079. d *Decoder) (_ map[int32]interface{}, changed bool) {
  27080. dd, esep := d.d, d.hh.hasElemSeparators()
  27081. containerLen := dd.ReadMapStart()
  27082. if canChange && v == nil {
  27083. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  27084. v = make(map[int32]interface{}, xlen)
  27085. changed = true
  27086. }
  27087. if containerLen == 0 {
  27088. dd.ReadMapEnd()
  27089. return v, changed
  27090. }
  27091. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  27092. var mk int32
  27093. var mv interface{}
  27094. hasLen := containerLen > 0
  27095. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27096. if esep {
  27097. dd.ReadMapElemKey()
  27098. }
  27099. mk = int32(dd.DecodeInt(32))
  27100. if esep {
  27101. dd.ReadMapElemValue()
  27102. }
  27103. if dd.TryDecodeAsNil() {
  27104. if d.h.DeleteOnNilMapValue {
  27105. delete(v, mk)
  27106. } else {
  27107. v[mk] = nil
  27108. }
  27109. continue
  27110. }
  27111. if mapGet {
  27112. mv = v[mk]
  27113. } else {
  27114. mv = nil
  27115. }
  27116. d.decode(&mv)
  27117. if v != nil {
  27118. v[mk] = mv
  27119. }
  27120. }
  27121. dd.ReadMapEnd()
  27122. return v, changed
  27123. }
  27124. func (d *Decoder) fastpathDecMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  27125. if rv.Kind() == reflect.Ptr {
  27126. vp := rv2i(rv).(*map[int32]string)
  27127. if v, changed := fastpathTV.DecMapInt32StringV(*vp, true, d); changed {
  27128. *vp = v
  27129. }
  27130. return
  27131. }
  27132. fastpathTV.DecMapInt32StringV(rv2i(rv).(map[int32]string), false, d)
  27133. }
  27134. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, d *Decoder) {
  27135. if v, changed := f.DecMapInt32StringV(*vp, true, d); changed {
  27136. *vp = v
  27137. }
  27138. }
  27139. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, canChange bool,
  27140. d *Decoder) (_ map[int32]string, changed bool) {
  27141. dd, esep := d.d, d.hh.hasElemSeparators()
  27142. containerLen := dd.ReadMapStart()
  27143. if canChange && v == nil {
  27144. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  27145. v = make(map[int32]string, xlen)
  27146. changed = true
  27147. }
  27148. if containerLen == 0 {
  27149. dd.ReadMapEnd()
  27150. return v, changed
  27151. }
  27152. var mk int32
  27153. var mv string
  27154. hasLen := containerLen > 0
  27155. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27156. if esep {
  27157. dd.ReadMapElemKey()
  27158. }
  27159. mk = int32(dd.DecodeInt(32))
  27160. if esep {
  27161. dd.ReadMapElemValue()
  27162. }
  27163. if dd.TryDecodeAsNil() {
  27164. if d.h.DeleteOnNilMapValue {
  27165. delete(v, mk)
  27166. } else {
  27167. v[mk] = ""
  27168. }
  27169. continue
  27170. }
  27171. mv = dd.DecodeString()
  27172. if v != nil {
  27173. v[mk] = mv
  27174. }
  27175. }
  27176. dd.ReadMapEnd()
  27177. return v, changed
  27178. }
  27179. func (d *Decoder) fastpathDecMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  27180. if rv.Kind() == reflect.Ptr {
  27181. vp := rv2i(rv).(*map[int32]uint)
  27182. if v, changed := fastpathTV.DecMapInt32UintV(*vp, true, d); changed {
  27183. *vp = v
  27184. }
  27185. return
  27186. }
  27187. fastpathTV.DecMapInt32UintV(rv2i(rv).(map[int32]uint), false, d)
  27188. }
  27189. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, d *Decoder) {
  27190. if v, changed := f.DecMapInt32UintV(*vp, true, d); changed {
  27191. *vp = v
  27192. }
  27193. }
  27194. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, canChange bool,
  27195. d *Decoder) (_ map[int32]uint, changed bool) {
  27196. dd, esep := d.d, d.hh.hasElemSeparators()
  27197. containerLen := dd.ReadMapStart()
  27198. if canChange && v == nil {
  27199. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27200. v = make(map[int32]uint, xlen)
  27201. changed = true
  27202. }
  27203. if containerLen == 0 {
  27204. dd.ReadMapEnd()
  27205. return v, changed
  27206. }
  27207. var mk int32
  27208. var mv uint
  27209. hasLen := containerLen > 0
  27210. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27211. if esep {
  27212. dd.ReadMapElemKey()
  27213. }
  27214. mk = int32(dd.DecodeInt(32))
  27215. if esep {
  27216. dd.ReadMapElemValue()
  27217. }
  27218. if dd.TryDecodeAsNil() {
  27219. if d.h.DeleteOnNilMapValue {
  27220. delete(v, mk)
  27221. } else {
  27222. v[mk] = 0
  27223. }
  27224. continue
  27225. }
  27226. mv = uint(dd.DecodeUint(uintBitsize))
  27227. if v != nil {
  27228. v[mk] = mv
  27229. }
  27230. }
  27231. dd.ReadMapEnd()
  27232. return v, changed
  27233. }
  27234. func (d *Decoder) fastpathDecMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  27235. if rv.Kind() == reflect.Ptr {
  27236. vp := rv2i(rv).(*map[int32]uint8)
  27237. if v, changed := fastpathTV.DecMapInt32Uint8V(*vp, true, d); changed {
  27238. *vp = v
  27239. }
  27240. return
  27241. }
  27242. fastpathTV.DecMapInt32Uint8V(rv2i(rv).(map[int32]uint8), false, d)
  27243. }
  27244. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, d *Decoder) {
  27245. if v, changed := f.DecMapInt32Uint8V(*vp, true, d); changed {
  27246. *vp = v
  27247. }
  27248. }
  27249. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, canChange bool,
  27250. d *Decoder) (_ map[int32]uint8, changed bool) {
  27251. dd, esep := d.d, d.hh.hasElemSeparators()
  27252. containerLen := dd.ReadMapStart()
  27253. if canChange && v == nil {
  27254. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27255. v = make(map[int32]uint8, xlen)
  27256. changed = true
  27257. }
  27258. if containerLen == 0 {
  27259. dd.ReadMapEnd()
  27260. return v, changed
  27261. }
  27262. var mk int32
  27263. var mv uint8
  27264. hasLen := containerLen > 0
  27265. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27266. if esep {
  27267. dd.ReadMapElemKey()
  27268. }
  27269. mk = int32(dd.DecodeInt(32))
  27270. if esep {
  27271. dd.ReadMapElemValue()
  27272. }
  27273. if dd.TryDecodeAsNil() {
  27274. if d.h.DeleteOnNilMapValue {
  27275. delete(v, mk)
  27276. } else {
  27277. v[mk] = 0
  27278. }
  27279. continue
  27280. }
  27281. mv = uint8(dd.DecodeUint(8))
  27282. if v != nil {
  27283. v[mk] = mv
  27284. }
  27285. }
  27286. dd.ReadMapEnd()
  27287. return v, changed
  27288. }
  27289. func (d *Decoder) fastpathDecMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  27290. if rv.Kind() == reflect.Ptr {
  27291. vp := rv2i(rv).(*map[int32]uint16)
  27292. if v, changed := fastpathTV.DecMapInt32Uint16V(*vp, true, d); changed {
  27293. *vp = v
  27294. }
  27295. return
  27296. }
  27297. fastpathTV.DecMapInt32Uint16V(rv2i(rv).(map[int32]uint16), false, d)
  27298. }
  27299. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, d *Decoder) {
  27300. if v, changed := f.DecMapInt32Uint16V(*vp, true, d); changed {
  27301. *vp = v
  27302. }
  27303. }
  27304. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, canChange bool,
  27305. d *Decoder) (_ map[int32]uint16, changed bool) {
  27306. dd, esep := d.d, d.hh.hasElemSeparators()
  27307. containerLen := dd.ReadMapStart()
  27308. if canChange && v == nil {
  27309. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  27310. v = make(map[int32]uint16, xlen)
  27311. changed = true
  27312. }
  27313. if containerLen == 0 {
  27314. dd.ReadMapEnd()
  27315. return v, changed
  27316. }
  27317. var mk int32
  27318. var mv uint16
  27319. hasLen := containerLen > 0
  27320. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27321. if esep {
  27322. dd.ReadMapElemKey()
  27323. }
  27324. mk = int32(dd.DecodeInt(32))
  27325. if esep {
  27326. dd.ReadMapElemValue()
  27327. }
  27328. if dd.TryDecodeAsNil() {
  27329. if d.h.DeleteOnNilMapValue {
  27330. delete(v, mk)
  27331. } else {
  27332. v[mk] = 0
  27333. }
  27334. continue
  27335. }
  27336. mv = uint16(dd.DecodeUint(16))
  27337. if v != nil {
  27338. v[mk] = mv
  27339. }
  27340. }
  27341. dd.ReadMapEnd()
  27342. return v, changed
  27343. }
  27344. func (d *Decoder) fastpathDecMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  27345. if rv.Kind() == reflect.Ptr {
  27346. vp := rv2i(rv).(*map[int32]uint32)
  27347. if v, changed := fastpathTV.DecMapInt32Uint32V(*vp, true, d); changed {
  27348. *vp = v
  27349. }
  27350. return
  27351. }
  27352. fastpathTV.DecMapInt32Uint32V(rv2i(rv).(map[int32]uint32), false, d)
  27353. }
  27354. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, d *Decoder) {
  27355. if v, changed := f.DecMapInt32Uint32V(*vp, true, d); changed {
  27356. *vp = v
  27357. }
  27358. }
  27359. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, canChange bool,
  27360. d *Decoder) (_ map[int32]uint32, changed bool) {
  27361. dd, esep := d.d, d.hh.hasElemSeparators()
  27362. containerLen := dd.ReadMapStart()
  27363. if canChange && v == nil {
  27364. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  27365. v = make(map[int32]uint32, xlen)
  27366. changed = true
  27367. }
  27368. if containerLen == 0 {
  27369. dd.ReadMapEnd()
  27370. return v, changed
  27371. }
  27372. var mk int32
  27373. var mv uint32
  27374. hasLen := containerLen > 0
  27375. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27376. if esep {
  27377. dd.ReadMapElemKey()
  27378. }
  27379. mk = int32(dd.DecodeInt(32))
  27380. if esep {
  27381. dd.ReadMapElemValue()
  27382. }
  27383. if dd.TryDecodeAsNil() {
  27384. if d.h.DeleteOnNilMapValue {
  27385. delete(v, mk)
  27386. } else {
  27387. v[mk] = 0
  27388. }
  27389. continue
  27390. }
  27391. mv = uint32(dd.DecodeUint(32))
  27392. if v != nil {
  27393. v[mk] = mv
  27394. }
  27395. }
  27396. dd.ReadMapEnd()
  27397. return v, changed
  27398. }
  27399. func (d *Decoder) fastpathDecMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  27400. if rv.Kind() == reflect.Ptr {
  27401. vp := rv2i(rv).(*map[int32]uint64)
  27402. if v, changed := fastpathTV.DecMapInt32Uint64V(*vp, true, d); changed {
  27403. *vp = v
  27404. }
  27405. return
  27406. }
  27407. fastpathTV.DecMapInt32Uint64V(rv2i(rv).(map[int32]uint64), false, d)
  27408. }
  27409. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, d *Decoder) {
  27410. if v, changed := f.DecMapInt32Uint64V(*vp, true, d); changed {
  27411. *vp = v
  27412. }
  27413. }
  27414. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, canChange bool,
  27415. d *Decoder) (_ map[int32]uint64, changed bool) {
  27416. dd, esep := d.d, d.hh.hasElemSeparators()
  27417. containerLen := dd.ReadMapStart()
  27418. if canChange && v == nil {
  27419. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27420. v = make(map[int32]uint64, xlen)
  27421. changed = true
  27422. }
  27423. if containerLen == 0 {
  27424. dd.ReadMapEnd()
  27425. return v, changed
  27426. }
  27427. var mk int32
  27428. var mv uint64
  27429. hasLen := containerLen > 0
  27430. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27431. if esep {
  27432. dd.ReadMapElemKey()
  27433. }
  27434. mk = int32(dd.DecodeInt(32))
  27435. if esep {
  27436. dd.ReadMapElemValue()
  27437. }
  27438. if dd.TryDecodeAsNil() {
  27439. if d.h.DeleteOnNilMapValue {
  27440. delete(v, mk)
  27441. } else {
  27442. v[mk] = 0
  27443. }
  27444. continue
  27445. }
  27446. mv = dd.DecodeUint(64)
  27447. if v != nil {
  27448. v[mk] = mv
  27449. }
  27450. }
  27451. dd.ReadMapEnd()
  27452. return v, changed
  27453. }
  27454. func (d *Decoder) fastpathDecMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  27455. if rv.Kind() == reflect.Ptr {
  27456. vp := rv2i(rv).(*map[int32]uintptr)
  27457. if v, changed := fastpathTV.DecMapInt32UintptrV(*vp, true, d); changed {
  27458. *vp = v
  27459. }
  27460. return
  27461. }
  27462. fastpathTV.DecMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), false, d)
  27463. }
  27464. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, d *Decoder) {
  27465. if v, changed := f.DecMapInt32UintptrV(*vp, true, d); changed {
  27466. *vp = v
  27467. }
  27468. }
  27469. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, canChange bool,
  27470. d *Decoder) (_ map[int32]uintptr, changed bool) {
  27471. dd, esep := d.d, d.hh.hasElemSeparators()
  27472. containerLen := dd.ReadMapStart()
  27473. if canChange && v == nil {
  27474. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27475. v = make(map[int32]uintptr, xlen)
  27476. changed = true
  27477. }
  27478. if containerLen == 0 {
  27479. dd.ReadMapEnd()
  27480. return v, changed
  27481. }
  27482. var mk int32
  27483. var mv uintptr
  27484. hasLen := containerLen > 0
  27485. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27486. if esep {
  27487. dd.ReadMapElemKey()
  27488. }
  27489. mk = int32(dd.DecodeInt(32))
  27490. if esep {
  27491. dd.ReadMapElemValue()
  27492. }
  27493. if dd.TryDecodeAsNil() {
  27494. if d.h.DeleteOnNilMapValue {
  27495. delete(v, mk)
  27496. } else {
  27497. v[mk] = 0
  27498. }
  27499. continue
  27500. }
  27501. mv = uintptr(dd.DecodeUint(uintBitsize))
  27502. if v != nil {
  27503. v[mk] = mv
  27504. }
  27505. }
  27506. dd.ReadMapEnd()
  27507. return v, changed
  27508. }
  27509. func (d *Decoder) fastpathDecMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  27510. if rv.Kind() == reflect.Ptr {
  27511. vp := rv2i(rv).(*map[int32]int)
  27512. if v, changed := fastpathTV.DecMapInt32IntV(*vp, true, d); changed {
  27513. *vp = v
  27514. }
  27515. return
  27516. }
  27517. fastpathTV.DecMapInt32IntV(rv2i(rv).(map[int32]int), false, d)
  27518. }
  27519. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, d *Decoder) {
  27520. if v, changed := f.DecMapInt32IntV(*vp, true, d); changed {
  27521. *vp = v
  27522. }
  27523. }
  27524. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, canChange bool,
  27525. d *Decoder) (_ map[int32]int, changed bool) {
  27526. dd, esep := d.d, d.hh.hasElemSeparators()
  27527. containerLen := dd.ReadMapStart()
  27528. if canChange && v == nil {
  27529. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27530. v = make(map[int32]int, xlen)
  27531. changed = true
  27532. }
  27533. if containerLen == 0 {
  27534. dd.ReadMapEnd()
  27535. return v, changed
  27536. }
  27537. var mk int32
  27538. var mv int
  27539. hasLen := containerLen > 0
  27540. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27541. if esep {
  27542. dd.ReadMapElemKey()
  27543. }
  27544. mk = int32(dd.DecodeInt(32))
  27545. if esep {
  27546. dd.ReadMapElemValue()
  27547. }
  27548. if dd.TryDecodeAsNil() {
  27549. if d.h.DeleteOnNilMapValue {
  27550. delete(v, mk)
  27551. } else {
  27552. v[mk] = 0
  27553. }
  27554. continue
  27555. }
  27556. mv = int(dd.DecodeInt(intBitsize))
  27557. if v != nil {
  27558. v[mk] = mv
  27559. }
  27560. }
  27561. dd.ReadMapEnd()
  27562. return v, changed
  27563. }
  27564. func (d *Decoder) fastpathDecMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  27565. if rv.Kind() == reflect.Ptr {
  27566. vp := rv2i(rv).(*map[int32]int8)
  27567. if v, changed := fastpathTV.DecMapInt32Int8V(*vp, true, d); changed {
  27568. *vp = v
  27569. }
  27570. return
  27571. }
  27572. fastpathTV.DecMapInt32Int8V(rv2i(rv).(map[int32]int8), false, d)
  27573. }
  27574. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, d *Decoder) {
  27575. if v, changed := f.DecMapInt32Int8V(*vp, true, d); changed {
  27576. *vp = v
  27577. }
  27578. }
  27579. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, canChange bool,
  27580. d *Decoder) (_ map[int32]int8, changed bool) {
  27581. dd, esep := d.d, d.hh.hasElemSeparators()
  27582. containerLen := dd.ReadMapStart()
  27583. if canChange && v == nil {
  27584. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27585. v = make(map[int32]int8, xlen)
  27586. changed = true
  27587. }
  27588. if containerLen == 0 {
  27589. dd.ReadMapEnd()
  27590. return v, changed
  27591. }
  27592. var mk int32
  27593. var mv int8
  27594. hasLen := containerLen > 0
  27595. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27596. if esep {
  27597. dd.ReadMapElemKey()
  27598. }
  27599. mk = int32(dd.DecodeInt(32))
  27600. if esep {
  27601. dd.ReadMapElemValue()
  27602. }
  27603. if dd.TryDecodeAsNil() {
  27604. if d.h.DeleteOnNilMapValue {
  27605. delete(v, mk)
  27606. } else {
  27607. v[mk] = 0
  27608. }
  27609. continue
  27610. }
  27611. mv = int8(dd.DecodeInt(8))
  27612. if v != nil {
  27613. v[mk] = mv
  27614. }
  27615. }
  27616. dd.ReadMapEnd()
  27617. return v, changed
  27618. }
  27619. func (d *Decoder) fastpathDecMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  27620. if rv.Kind() == reflect.Ptr {
  27621. vp := rv2i(rv).(*map[int32]int16)
  27622. if v, changed := fastpathTV.DecMapInt32Int16V(*vp, true, d); changed {
  27623. *vp = v
  27624. }
  27625. return
  27626. }
  27627. fastpathTV.DecMapInt32Int16V(rv2i(rv).(map[int32]int16), false, d)
  27628. }
  27629. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, d *Decoder) {
  27630. if v, changed := f.DecMapInt32Int16V(*vp, true, d); changed {
  27631. *vp = v
  27632. }
  27633. }
  27634. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, canChange bool,
  27635. d *Decoder) (_ map[int32]int16, changed bool) {
  27636. dd, esep := d.d, d.hh.hasElemSeparators()
  27637. containerLen := dd.ReadMapStart()
  27638. if canChange && v == nil {
  27639. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  27640. v = make(map[int32]int16, xlen)
  27641. changed = true
  27642. }
  27643. if containerLen == 0 {
  27644. dd.ReadMapEnd()
  27645. return v, changed
  27646. }
  27647. var mk int32
  27648. var mv int16
  27649. hasLen := containerLen > 0
  27650. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27651. if esep {
  27652. dd.ReadMapElemKey()
  27653. }
  27654. mk = int32(dd.DecodeInt(32))
  27655. if esep {
  27656. dd.ReadMapElemValue()
  27657. }
  27658. if dd.TryDecodeAsNil() {
  27659. if d.h.DeleteOnNilMapValue {
  27660. delete(v, mk)
  27661. } else {
  27662. v[mk] = 0
  27663. }
  27664. continue
  27665. }
  27666. mv = int16(dd.DecodeInt(16))
  27667. if v != nil {
  27668. v[mk] = mv
  27669. }
  27670. }
  27671. dd.ReadMapEnd()
  27672. return v, changed
  27673. }
  27674. func (d *Decoder) fastpathDecMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  27675. if rv.Kind() == reflect.Ptr {
  27676. vp := rv2i(rv).(*map[int32]int32)
  27677. if v, changed := fastpathTV.DecMapInt32Int32V(*vp, true, d); changed {
  27678. *vp = v
  27679. }
  27680. return
  27681. }
  27682. fastpathTV.DecMapInt32Int32V(rv2i(rv).(map[int32]int32), false, d)
  27683. }
  27684. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, d *Decoder) {
  27685. if v, changed := f.DecMapInt32Int32V(*vp, true, d); changed {
  27686. *vp = v
  27687. }
  27688. }
  27689. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, canChange bool,
  27690. d *Decoder) (_ map[int32]int32, changed bool) {
  27691. dd, esep := d.d, d.hh.hasElemSeparators()
  27692. containerLen := dd.ReadMapStart()
  27693. if canChange && v == nil {
  27694. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  27695. v = make(map[int32]int32, xlen)
  27696. changed = true
  27697. }
  27698. if containerLen == 0 {
  27699. dd.ReadMapEnd()
  27700. return v, changed
  27701. }
  27702. var mk int32
  27703. var mv int32
  27704. hasLen := containerLen > 0
  27705. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27706. if esep {
  27707. dd.ReadMapElemKey()
  27708. }
  27709. mk = int32(dd.DecodeInt(32))
  27710. if esep {
  27711. dd.ReadMapElemValue()
  27712. }
  27713. if dd.TryDecodeAsNil() {
  27714. if d.h.DeleteOnNilMapValue {
  27715. delete(v, mk)
  27716. } else {
  27717. v[mk] = 0
  27718. }
  27719. continue
  27720. }
  27721. mv = int32(dd.DecodeInt(32))
  27722. if v != nil {
  27723. v[mk] = mv
  27724. }
  27725. }
  27726. dd.ReadMapEnd()
  27727. return v, changed
  27728. }
  27729. func (d *Decoder) fastpathDecMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  27730. if rv.Kind() == reflect.Ptr {
  27731. vp := rv2i(rv).(*map[int32]int64)
  27732. if v, changed := fastpathTV.DecMapInt32Int64V(*vp, true, d); changed {
  27733. *vp = v
  27734. }
  27735. return
  27736. }
  27737. fastpathTV.DecMapInt32Int64V(rv2i(rv).(map[int32]int64), false, d)
  27738. }
  27739. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, d *Decoder) {
  27740. if v, changed := f.DecMapInt32Int64V(*vp, true, d); changed {
  27741. *vp = v
  27742. }
  27743. }
  27744. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, canChange bool,
  27745. d *Decoder) (_ map[int32]int64, changed bool) {
  27746. dd, esep := d.d, d.hh.hasElemSeparators()
  27747. containerLen := dd.ReadMapStart()
  27748. if canChange && v == nil {
  27749. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27750. v = make(map[int32]int64, xlen)
  27751. changed = true
  27752. }
  27753. if containerLen == 0 {
  27754. dd.ReadMapEnd()
  27755. return v, changed
  27756. }
  27757. var mk int32
  27758. var mv int64
  27759. hasLen := containerLen > 0
  27760. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27761. if esep {
  27762. dd.ReadMapElemKey()
  27763. }
  27764. mk = int32(dd.DecodeInt(32))
  27765. if esep {
  27766. dd.ReadMapElemValue()
  27767. }
  27768. if dd.TryDecodeAsNil() {
  27769. if d.h.DeleteOnNilMapValue {
  27770. delete(v, mk)
  27771. } else {
  27772. v[mk] = 0
  27773. }
  27774. continue
  27775. }
  27776. mv = dd.DecodeInt(64)
  27777. if v != nil {
  27778. v[mk] = mv
  27779. }
  27780. }
  27781. dd.ReadMapEnd()
  27782. return v, changed
  27783. }
  27784. func (d *Decoder) fastpathDecMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  27785. if rv.Kind() == reflect.Ptr {
  27786. vp := rv2i(rv).(*map[int32]float32)
  27787. if v, changed := fastpathTV.DecMapInt32Float32V(*vp, true, d); changed {
  27788. *vp = v
  27789. }
  27790. return
  27791. }
  27792. fastpathTV.DecMapInt32Float32V(rv2i(rv).(map[int32]float32), false, d)
  27793. }
  27794. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, d *Decoder) {
  27795. if v, changed := f.DecMapInt32Float32V(*vp, true, d); changed {
  27796. *vp = v
  27797. }
  27798. }
  27799. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, canChange bool,
  27800. d *Decoder) (_ map[int32]float32, changed bool) {
  27801. dd, esep := d.d, d.hh.hasElemSeparators()
  27802. containerLen := dd.ReadMapStart()
  27803. if canChange && v == nil {
  27804. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  27805. v = make(map[int32]float32, xlen)
  27806. changed = true
  27807. }
  27808. if containerLen == 0 {
  27809. dd.ReadMapEnd()
  27810. return v, changed
  27811. }
  27812. var mk int32
  27813. var mv float32
  27814. hasLen := containerLen > 0
  27815. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27816. if esep {
  27817. dd.ReadMapElemKey()
  27818. }
  27819. mk = int32(dd.DecodeInt(32))
  27820. if esep {
  27821. dd.ReadMapElemValue()
  27822. }
  27823. if dd.TryDecodeAsNil() {
  27824. if d.h.DeleteOnNilMapValue {
  27825. delete(v, mk)
  27826. } else {
  27827. v[mk] = 0
  27828. }
  27829. continue
  27830. }
  27831. mv = float32(dd.DecodeFloat(true))
  27832. if v != nil {
  27833. v[mk] = mv
  27834. }
  27835. }
  27836. dd.ReadMapEnd()
  27837. return v, changed
  27838. }
  27839. func (d *Decoder) fastpathDecMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  27840. if rv.Kind() == reflect.Ptr {
  27841. vp := rv2i(rv).(*map[int32]float64)
  27842. if v, changed := fastpathTV.DecMapInt32Float64V(*vp, true, d); changed {
  27843. *vp = v
  27844. }
  27845. return
  27846. }
  27847. fastpathTV.DecMapInt32Float64V(rv2i(rv).(map[int32]float64), false, d)
  27848. }
  27849. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, d *Decoder) {
  27850. if v, changed := f.DecMapInt32Float64V(*vp, true, d); changed {
  27851. *vp = v
  27852. }
  27853. }
  27854. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, canChange bool,
  27855. d *Decoder) (_ map[int32]float64, changed bool) {
  27856. dd, esep := d.d, d.hh.hasElemSeparators()
  27857. containerLen := dd.ReadMapStart()
  27858. if canChange && v == nil {
  27859. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27860. v = make(map[int32]float64, xlen)
  27861. changed = true
  27862. }
  27863. if containerLen == 0 {
  27864. dd.ReadMapEnd()
  27865. return v, changed
  27866. }
  27867. var mk int32
  27868. var mv float64
  27869. hasLen := containerLen > 0
  27870. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27871. if esep {
  27872. dd.ReadMapElemKey()
  27873. }
  27874. mk = int32(dd.DecodeInt(32))
  27875. if esep {
  27876. dd.ReadMapElemValue()
  27877. }
  27878. if dd.TryDecodeAsNil() {
  27879. if d.h.DeleteOnNilMapValue {
  27880. delete(v, mk)
  27881. } else {
  27882. v[mk] = 0
  27883. }
  27884. continue
  27885. }
  27886. mv = dd.DecodeFloat(false)
  27887. if v != nil {
  27888. v[mk] = mv
  27889. }
  27890. }
  27891. dd.ReadMapEnd()
  27892. return v, changed
  27893. }
  27894. func (d *Decoder) fastpathDecMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  27895. if rv.Kind() == reflect.Ptr {
  27896. vp := rv2i(rv).(*map[int32]bool)
  27897. if v, changed := fastpathTV.DecMapInt32BoolV(*vp, true, d); changed {
  27898. *vp = v
  27899. }
  27900. return
  27901. }
  27902. fastpathTV.DecMapInt32BoolV(rv2i(rv).(map[int32]bool), false, d)
  27903. }
  27904. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, d *Decoder) {
  27905. if v, changed := f.DecMapInt32BoolV(*vp, true, d); changed {
  27906. *vp = v
  27907. }
  27908. }
  27909. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, canChange bool,
  27910. d *Decoder) (_ map[int32]bool, changed bool) {
  27911. dd, esep := d.d, d.hh.hasElemSeparators()
  27912. containerLen := dd.ReadMapStart()
  27913. if canChange && v == nil {
  27914. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27915. v = make(map[int32]bool, xlen)
  27916. changed = true
  27917. }
  27918. if containerLen == 0 {
  27919. dd.ReadMapEnd()
  27920. return v, changed
  27921. }
  27922. var mk int32
  27923. var mv bool
  27924. hasLen := containerLen > 0
  27925. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27926. if esep {
  27927. dd.ReadMapElemKey()
  27928. }
  27929. mk = int32(dd.DecodeInt(32))
  27930. if esep {
  27931. dd.ReadMapElemValue()
  27932. }
  27933. if dd.TryDecodeAsNil() {
  27934. if d.h.DeleteOnNilMapValue {
  27935. delete(v, mk)
  27936. } else {
  27937. v[mk] = false
  27938. }
  27939. continue
  27940. }
  27941. mv = dd.DecodeBool()
  27942. if v != nil {
  27943. v[mk] = mv
  27944. }
  27945. }
  27946. dd.ReadMapEnd()
  27947. return v, changed
  27948. }
  27949. func (d *Decoder) fastpathDecMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  27950. if rv.Kind() == reflect.Ptr {
  27951. vp := rv2i(rv).(*map[int64]interface{})
  27952. if v, changed := fastpathTV.DecMapInt64IntfV(*vp, true, d); changed {
  27953. *vp = v
  27954. }
  27955. return
  27956. }
  27957. fastpathTV.DecMapInt64IntfV(rv2i(rv).(map[int64]interface{}), false, d)
  27958. }
  27959. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, d *Decoder) {
  27960. if v, changed := f.DecMapInt64IntfV(*vp, true, d); changed {
  27961. *vp = v
  27962. }
  27963. }
  27964. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, canChange bool,
  27965. d *Decoder) (_ map[int64]interface{}, changed bool) {
  27966. dd, esep := d.d, d.hh.hasElemSeparators()
  27967. containerLen := dd.ReadMapStart()
  27968. if canChange && v == nil {
  27969. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27970. v = make(map[int64]interface{}, xlen)
  27971. changed = true
  27972. }
  27973. if containerLen == 0 {
  27974. dd.ReadMapEnd()
  27975. return v, changed
  27976. }
  27977. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  27978. var mk int64
  27979. var mv interface{}
  27980. hasLen := containerLen > 0
  27981. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27982. if esep {
  27983. dd.ReadMapElemKey()
  27984. }
  27985. mk = dd.DecodeInt(64)
  27986. if esep {
  27987. dd.ReadMapElemValue()
  27988. }
  27989. if dd.TryDecodeAsNil() {
  27990. if d.h.DeleteOnNilMapValue {
  27991. delete(v, mk)
  27992. } else {
  27993. v[mk] = nil
  27994. }
  27995. continue
  27996. }
  27997. if mapGet {
  27998. mv = v[mk]
  27999. } else {
  28000. mv = nil
  28001. }
  28002. d.decode(&mv)
  28003. if v != nil {
  28004. v[mk] = mv
  28005. }
  28006. }
  28007. dd.ReadMapEnd()
  28008. return v, changed
  28009. }
  28010. func (d *Decoder) fastpathDecMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  28011. if rv.Kind() == reflect.Ptr {
  28012. vp := rv2i(rv).(*map[int64]string)
  28013. if v, changed := fastpathTV.DecMapInt64StringV(*vp, true, d); changed {
  28014. *vp = v
  28015. }
  28016. return
  28017. }
  28018. fastpathTV.DecMapInt64StringV(rv2i(rv).(map[int64]string), false, d)
  28019. }
  28020. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, d *Decoder) {
  28021. if v, changed := f.DecMapInt64StringV(*vp, true, d); changed {
  28022. *vp = v
  28023. }
  28024. }
  28025. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, canChange bool,
  28026. d *Decoder) (_ map[int64]string, changed bool) {
  28027. dd, esep := d.d, d.hh.hasElemSeparators()
  28028. containerLen := dd.ReadMapStart()
  28029. if canChange && v == nil {
  28030. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28031. v = make(map[int64]string, xlen)
  28032. changed = true
  28033. }
  28034. if containerLen == 0 {
  28035. dd.ReadMapEnd()
  28036. return v, changed
  28037. }
  28038. var mk int64
  28039. var mv string
  28040. hasLen := containerLen > 0
  28041. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28042. if esep {
  28043. dd.ReadMapElemKey()
  28044. }
  28045. mk = dd.DecodeInt(64)
  28046. if esep {
  28047. dd.ReadMapElemValue()
  28048. }
  28049. if dd.TryDecodeAsNil() {
  28050. if d.h.DeleteOnNilMapValue {
  28051. delete(v, mk)
  28052. } else {
  28053. v[mk] = ""
  28054. }
  28055. continue
  28056. }
  28057. mv = dd.DecodeString()
  28058. if v != nil {
  28059. v[mk] = mv
  28060. }
  28061. }
  28062. dd.ReadMapEnd()
  28063. return v, changed
  28064. }
  28065. func (d *Decoder) fastpathDecMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  28066. if rv.Kind() == reflect.Ptr {
  28067. vp := rv2i(rv).(*map[int64]uint)
  28068. if v, changed := fastpathTV.DecMapInt64UintV(*vp, true, d); changed {
  28069. *vp = v
  28070. }
  28071. return
  28072. }
  28073. fastpathTV.DecMapInt64UintV(rv2i(rv).(map[int64]uint), false, d)
  28074. }
  28075. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, d *Decoder) {
  28076. if v, changed := f.DecMapInt64UintV(*vp, true, d); changed {
  28077. *vp = v
  28078. }
  28079. }
  28080. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, canChange bool,
  28081. d *Decoder) (_ map[int64]uint, changed bool) {
  28082. dd, esep := d.d, d.hh.hasElemSeparators()
  28083. containerLen := dd.ReadMapStart()
  28084. if canChange && v == nil {
  28085. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28086. v = make(map[int64]uint, xlen)
  28087. changed = true
  28088. }
  28089. if containerLen == 0 {
  28090. dd.ReadMapEnd()
  28091. return v, changed
  28092. }
  28093. var mk int64
  28094. var mv uint
  28095. hasLen := containerLen > 0
  28096. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28097. if esep {
  28098. dd.ReadMapElemKey()
  28099. }
  28100. mk = dd.DecodeInt(64)
  28101. if esep {
  28102. dd.ReadMapElemValue()
  28103. }
  28104. if dd.TryDecodeAsNil() {
  28105. if d.h.DeleteOnNilMapValue {
  28106. delete(v, mk)
  28107. } else {
  28108. v[mk] = 0
  28109. }
  28110. continue
  28111. }
  28112. mv = uint(dd.DecodeUint(uintBitsize))
  28113. if v != nil {
  28114. v[mk] = mv
  28115. }
  28116. }
  28117. dd.ReadMapEnd()
  28118. return v, changed
  28119. }
  28120. func (d *Decoder) fastpathDecMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  28121. if rv.Kind() == reflect.Ptr {
  28122. vp := rv2i(rv).(*map[int64]uint8)
  28123. if v, changed := fastpathTV.DecMapInt64Uint8V(*vp, true, d); changed {
  28124. *vp = v
  28125. }
  28126. return
  28127. }
  28128. fastpathTV.DecMapInt64Uint8V(rv2i(rv).(map[int64]uint8), false, d)
  28129. }
  28130. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, d *Decoder) {
  28131. if v, changed := f.DecMapInt64Uint8V(*vp, true, d); changed {
  28132. *vp = v
  28133. }
  28134. }
  28135. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, canChange bool,
  28136. d *Decoder) (_ map[int64]uint8, changed bool) {
  28137. dd, esep := d.d, d.hh.hasElemSeparators()
  28138. containerLen := dd.ReadMapStart()
  28139. if canChange && v == nil {
  28140. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28141. v = make(map[int64]uint8, xlen)
  28142. changed = true
  28143. }
  28144. if containerLen == 0 {
  28145. dd.ReadMapEnd()
  28146. return v, changed
  28147. }
  28148. var mk int64
  28149. var mv uint8
  28150. hasLen := containerLen > 0
  28151. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28152. if esep {
  28153. dd.ReadMapElemKey()
  28154. }
  28155. mk = dd.DecodeInt(64)
  28156. if esep {
  28157. dd.ReadMapElemValue()
  28158. }
  28159. if dd.TryDecodeAsNil() {
  28160. if d.h.DeleteOnNilMapValue {
  28161. delete(v, mk)
  28162. } else {
  28163. v[mk] = 0
  28164. }
  28165. continue
  28166. }
  28167. mv = uint8(dd.DecodeUint(8))
  28168. if v != nil {
  28169. v[mk] = mv
  28170. }
  28171. }
  28172. dd.ReadMapEnd()
  28173. return v, changed
  28174. }
  28175. func (d *Decoder) fastpathDecMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  28176. if rv.Kind() == reflect.Ptr {
  28177. vp := rv2i(rv).(*map[int64]uint16)
  28178. if v, changed := fastpathTV.DecMapInt64Uint16V(*vp, true, d); changed {
  28179. *vp = v
  28180. }
  28181. return
  28182. }
  28183. fastpathTV.DecMapInt64Uint16V(rv2i(rv).(map[int64]uint16), false, d)
  28184. }
  28185. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, d *Decoder) {
  28186. if v, changed := f.DecMapInt64Uint16V(*vp, true, d); changed {
  28187. *vp = v
  28188. }
  28189. }
  28190. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, canChange bool,
  28191. d *Decoder) (_ map[int64]uint16, changed bool) {
  28192. dd, esep := d.d, d.hh.hasElemSeparators()
  28193. containerLen := dd.ReadMapStart()
  28194. if canChange && v == nil {
  28195. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28196. v = make(map[int64]uint16, xlen)
  28197. changed = true
  28198. }
  28199. if containerLen == 0 {
  28200. dd.ReadMapEnd()
  28201. return v, changed
  28202. }
  28203. var mk int64
  28204. var mv uint16
  28205. hasLen := containerLen > 0
  28206. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28207. if esep {
  28208. dd.ReadMapElemKey()
  28209. }
  28210. mk = dd.DecodeInt(64)
  28211. if esep {
  28212. dd.ReadMapElemValue()
  28213. }
  28214. if dd.TryDecodeAsNil() {
  28215. if d.h.DeleteOnNilMapValue {
  28216. delete(v, mk)
  28217. } else {
  28218. v[mk] = 0
  28219. }
  28220. continue
  28221. }
  28222. mv = uint16(dd.DecodeUint(16))
  28223. if v != nil {
  28224. v[mk] = mv
  28225. }
  28226. }
  28227. dd.ReadMapEnd()
  28228. return v, changed
  28229. }
  28230. func (d *Decoder) fastpathDecMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  28231. if rv.Kind() == reflect.Ptr {
  28232. vp := rv2i(rv).(*map[int64]uint32)
  28233. if v, changed := fastpathTV.DecMapInt64Uint32V(*vp, true, d); changed {
  28234. *vp = v
  28235. }
  28236. return
  28237. }
  28238. fastpathTV.DecMapInt64Uint32V(rv2i(rv).(map[int64]uint32), false, d)
  28239. }
  28240. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, d *Decoder) {
  28241. if v, changed := f.DecMapInt64Uint32V(*vp, true, d); changed {
  28242. *vp = v
  28243. }
  28244. }
  28245. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, canChange bool,
  28246. d *Decoder) (_ map[int64]uint32, changed bool) {
  28247. dd, esep := d.d, d.hh.hasElemSeparators()
  28248. containerLen := dd.ReadMapStart()
  28249. if canChange && v == nil {
  28250. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28251. v = make(map[int64]uint32, xlen)
  28252. changed = true
  28253. }
  28254. if containerLen == 0 {
  28255. dd.ReadMapEnd()
  28256. return v, changed
  28257. }
  28258. var mk int64
  28259. var mv uint32
  28260. hasLen := containerLen > 0
  28261. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28262. if esep {
  28263. dd.ReadMapElemKey()
  28264. }
  28265. mk = dd.DecodeInt(64)
  28266. if esep {
  28267. dd.ReadMapElemValue()
  28268. }
  28269. if dd.TryDecodeAsNil() {
  28270. if d.h.DeleteOnNilMapValue {
  28271. delete(v, mk)
  28272. } else {
  28273. v[mk] = 0
  28274. }
  28275. continue
  28276. }
  28277. mv = uint32(dd.DecodeUint(32))
  28278. if v != nil {
  28279. v[mk] = mv
  28280. }
  28281. }
  28282. dd.ReadMapEnd()
  28283. return v, changed
  28284. }
  28285. func (d *Decoder) fastpathDecMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  28286. if rv.Kind() == reflect.Ptr {
  28287. vp := rv2i(rv).(*map[int64]uint64)
  28288. if v, changed := fastpathTV.DecMapInt64Uint64V(*vp, true, d); changed {
  28289. *vp = v
  28290. }
  28291. return
  28292. }
  28293. fastpathTV.DecMapInt64Uint64V(rv2i(rv).(map[int64]uint64), false, d)
  28294. }
  28295. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, d *Decoder) {
  28296. if v, changed := f.DecMapInt64Uint64V(*vp, true, d); changed {
  28297. *vp = v
  28298. }
  28299. }
  28300. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, canChange bool,
  28301. d *Decoder) (_ map[int64]uint64, changed bool) {
  28302. dd, esep := d.d, d.hh.hasElemSeparators()
  28303. containerLen := dd.ReadMapStart()
  28304. if canChange && v == nil {
  28305. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28306. v = make(map[int64]uint64, xlen)
  28307. changed = true
  28308. }
  28309. if containerLen == 0 {
  28310. dd.ReadMapEnd()
  28311. return v, changed
  28312. }
  28313. var mk int64
  28314. var mv uint64
  28315. hasLen := containerLen > 0
  28316. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28317. if esep {
  28318. dd.ReadMapElemKey()
  28319. }
  28320. mk = dd.DecodeInt(64)
  28321. if esep {
  28322. dd.ReadMapElemValue()
  28323. }
  28324. if dd.TryDecodeAsNil() {
  28325. if d.h.DeleteOnNilMapValue {
  28326. delete(v, mk)
  28327. } else {
  28328. v[mk] = 0
  28329. }
  28330. continue
  28331. }
  28332. mv = dd.DecodeUint(64)
  28333. if v != nil {
  28334. v[mk] = mv
  28335. }
  28336. }
  28337. dd.ReadMapEnd()
  28338. return v, changed
  28339. }
  28340. func (d *Decoder) fastpathDecMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  28341. if rv.Kind() == reflect.Ptr {
  28342. vp := rv2i(rv).(*map[int64]uintptr)
  28343. if v, changed := fastpathTV.DecMapInt64UintptrV(*vp, true, d); changed {
  28344. *vp = v
  28345. }
  28346. return
  28347. }
  28348. fastpathTV.DecMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), false, d)
  28349. }
  28350. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, d *Decoder) {
  28351. if v, changed := f.DecMapInt64UintptrV(*vp, true, d); changed {
  28352. *vp = v
  28353. }
  28354. }
  28355. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, canChange bool,
  28356. d *Decoder) (_ map[int64]uintptr, changed bool) {
  28357. dd, esep := d.d, d.hh.hasElemSeparators()
  28358. containerLen := dd.ReadMapStart()
  28359. if canChange && v == nil {
  28360. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28361. v = make(map[int64]uintptr, xlen)
  28362. changed = true
  28363. }
  28364. if containerLen == 0 {
  28365. dd.ReadMapEnd()
  28366. return v, changed
  28367. }
  28368. var mk int64
  28369. var mv uintptr
  28370. hasLen := containerLen > 0
  28371. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28372. if esep {
  28373. dd.ReadMapElemKey()
  28374. }
  28375. mk = dd.DecodeInt(64)
  28376. if esep {
  28377. dd.ReadMapElemValue()
  28378. }
  28379. if dd.TryDecodeAsNil() {
  28380. if d.h.DeleteOnNilMapValue {
  28381. delete(v, mk)
  28382. } else {
  28383. v[mk] = 0
  28384. }
  28385. continue
  28386. }
  28387. mv = uintptr(dd.DecodeUint(uintBitsize))
  28388. if v != nil {
  28389. v[mk] = mv
  28390. }
  28391. }
  28392. dd.ReadMapEnd()
  28393. return v, changed
  28394. }
  28395. func (d *Decoder) fastpathDecMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  28396. if rv.Kind() == reflect.Ptr {
  28397. vp := rv2i(rv).(*map[int64]int)
  28398. if v, changed := fastpathTV.DecMapInt64IntV(*vp, true, d); changed {
  28399. *vp = v
  28400. }
  28401. return
  28402. }
  28403. fastpathTV.DecMapInt64IntV(rv2i(rv).(map[int64]int), false, d)
  28404. }
  28405. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, d *Decoder) {
  28406. if v, changed := f.DecMapInt64IntV(*vp, true, d); changed {
  28407. *vp = v
  28408. }
  28409. }
  28410. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, canChange bool,
  28411. d *Decoder) (_ map[int64]int, changed bool) {
  28412. dd, esep := d.d, d.hh.hasElemSeparators()
  28413. containerLen := dd.ReadMapStart()
  28414. if canChange && v == nil {
  28415. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28416. v = make(map[int64]int, xlen)
  28417. changed = true
  28418. }
  28419. if containerLen == 0 {
  28420. dd.ReadMapEnd()
  28421. return v, changed
  28422. }
  28423. var mk int64
  28424. var mv int
  28425. hasLen := containerLen > 0
  28426. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28427. if esep {
  28428. dd.ReadMapElemKey()
  28429. }
  28430. mk = dd.DecodeInt(64)
  28431. if esep {
  28432. dd.ReadMapElemValue()
  28433. }
  28434. if dd.TryDecodeAsNil() {
  28435. if d.h.DeleteOnNilMapValue {
  28436. delete(v, mk)
  28437. } else {
  28438. v[mk] = 0
  28439. }
  28440. continue
  28441. }
  28442. mv = int(dd.DecodeInt(intBitsize))
  28443. if v != nil {
  28444. v[mk] = mv
  28445. }
  28446. }
  28447. dd.ReadMapEnd()
  28448. return v, changed
  28449. }
  28450. func (d *Decoder) fastpathDecMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  28451. if rv.Kind() == reflect.Ptr {
  28452. vp := rv2i(rv).(*map[int64]int8)
  28453. if v, changed := fastpathTV.DecMapInt64Int8V(*vp, true, d); changed {
  28454. *vp = v
  28455. }
  28456. return
  28457. }
  28458. fastpathTV.DecMapInt64Int8V(rv2i(rv).(map[int64]int8), false, d)
  28459. }
  28460. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, d *Decoder) {
  28461. if v, changed := f.DecMapInt64Int8V(*vp, true, d); changed {
  28462. *vp = v
  28463. }
  28464. }
  28465. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, canChange bool,
  28466. d *Decoder) (_ map[int64]int8, changed bool) {
  28467. dd, esep := d.d, d.hh.hasElemSeparators()
  28468. containerLen := dd.ReadMapStart()
  28469. if canChange && v == nil {
  28470. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28471. v = make(map[int64]int8, xlen)
  28472. changed = true
  28473. }
  28474. if containerLen == 0 {
  28475. dd.ReadMapEnd()
  28476. return v, changed
  28477. }
  28478. var mk int64
  28479. var mv int8
  28480. hasLen := containerLen > 0
  28481. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28482. if esep {
  28483. dd.ReadMapElemKey()
  28484. }
  28485. mk = dd.DecodeInt(64)
  28486. if esep {
  28487. dd.ReadMapElemValue()
  28488. }
  28489. if dd.TryDecodeAsNil() {
  28490. if d.h.DeleteOnNilMapValue {
  28491. delete(v, mk)
  28492. } else {
  28493. v[mk] = 0
  28494. }
  28495. continue
  28496. }
  28497. mv = int8(dd.DecodeInt(8))
  28498. if v != nil {
  28499. v[mk] = mv
  28500. }
  28501. }
  28502. dd.ReadMapEnd()
  28503. return v, changed
  28504. }
  28505. func (d *Decoder) fastpathDecMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  28506. if rv.Kind() == reflect.Ptr {
  28507. vp := rv2i(rv).(*map[int64]int16)
  28508. if v, changed := fastpathTV.DecMapInt64Int16V(*vp, true, d); changed {
  28509. *vp = v
  28510. }
  28511. return
  28512. }
  28513. fastpathTV.DecMapInt64Int16V(rv2i(rv).(map[int64]int16), false, d)
  28514. }
  28515. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, d *Decoder) {
  28516. if v, changed := f.DecMapInt64Int16V(*vp, true, d); changed {
  28517. *vp = v
  28518. }
  28519. }
  28520. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, canChange bool,
  28521. d *Decoder) (_ map[int64]int16, changed bool) {
  28522. dd, esep := d.d, d.hh.hasElemSeparators()
  28523. containerLen := dd.ReadMapStart()
  28524. if canChange && v == nil {
  28525. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28526. v = make(map[int64]int16, xlen)
  28527. changed = true
  28528. }
  28529. if containerLen == 0 {
  28530. dd.ReadMapEnd()
  28531. return v, changed
  28532. }
  28533. var mk int64
  28534. var mv int16
  28535. hasLen := containerLen > 0
  28536. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28537. if esep {
  28538. dd.ReadMapElemKey()
  28539. }
  28540. mk = dd.DecodeInt(64)
  28541. if esep {
  28542. dd.ReadMapElemValue()
  28543. }
  28544. if dd.TryDecodeAsNil() {
  28545. if d.h.DeleteOnNilMapValue {
  28546. delete(v, mk)
  28547. } else {
  28548. v[mk] = 0
  28549. }
  28550. continue
  28551. }
  28552. mv = int16(dd.DecodeInt(16))
  28553. if v != nil {
  28554. v[mk] = mv
  28555. }
  28556. }
  28557. dd.ReadMapEnd()
  28558. return v, changed
  28559. }
  28560. func (d *Decoder) fastpathDecMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  28561. if rv.Kind() == reflect.Ptr {
  28562. vp := rv2i(rv).(*map[int64]int32)
  28563. if v, changed := fastpathTV.DecMapInt64Int32V(*vp, true, d); changed {
  28564. *vp = v
  28565. }
  28566. return
  28567. }
  28568. fastpathTV.DecMapInt64Int32V(rv2i(rv).(map[int64]int32), false, d)
  28569. }
  28570. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, d *Decoder) {
  28571. if v, changed := f.DecMapInt64Int32V(*vp, true, d); changed {
  28572. *vp = v
  28573. }
  28574. }
  28575. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, canChange bool,
  28576. d *Decoder) (_ map[int64]int32, changed bool) {
  28577. dd, esep := d.d, d.hh.hasElemSeparators()
  28578. containerLen := dd.ReadMapStart()
  28579. if canChange && v == nil {
  28580. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28581. v = make(map[int64]int32, xlen)
  28582. changed = true
  28583. }
  28584. if containerLen == 0 {
  28585. dd.ReadMapEnd()
  28586. return v, changed
  28587. }
  28588. var mk int64
  28589. var mv int32
  28590. hasLen := containerLen > 0
  28591. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28592. if esep {
  28593. dd.ReadMapElemKey()
  28594. }
  28595. mk = dd.DecodeInt(64)
  28596. if esep {
  28597. dd.ReadMapElemValue()
  28598. }
  28599. if dd.TryDecodeAsNil() {
  28600. if d.h.DeleteOnNilMapValue {
  28601. delete(v, mk)
  28602. } else {
  28603. v[mk] = 0
  28604. }
  28605. continue
  28606. }
  28607. mv = int32(dd.DecodeInt(32))
  28608. if v != nil {
  28609. v[mk] = mv
  28610. }
  28611. }
  28612. dd.ReadMapEnd()
  28613. return v, changed
  28614. }
  28615. func (d *Decoder) fastpathDecMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  28616. if rv.Kind() == reflect.Ptr {
  28617. vp := rv2i(rv).(*map[int64]int64)
  28618. if v, changed := fastpathTV.DecMapInt64Int64V(*vp, true, d); changed {
  28619. *vp = v
  28620. }
  28621. return
  28622. }
  28623. fastpathTV.DecMapInt64Int64V(rv2i(rv).(map[int64]int64), false, d)
  28624. }
  28625. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, d *Decoder) {
  28626. if v, changed := f.DecMapInt64Int64V(*vp, true, d); changed {
  28627. *vp = v
  28628. }
  28629. }
  28630. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, canChange bool,
  28631. d *Decoder) (_ map[int64]int64, changed bool) {
  28632. dd, esep := d.d, d.hh.hasElemSeparators()
  28633. containerLen := dd.ReadMapStart()
  28634. if canChange && v == nil {
  28635. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28636. v = make(map[int64]int64, xlen)
  28637. changed = true
  28638. }
  28639. if containerLen == 0 {
  28640. dd.ReadMapEnd()
  28641. return v, changed
  28642. }
  28643. var mk int64
  28644. var mv int64
  28645. hasLen := containerLen > 0
  28646. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28647. if esep {
  28648. dd.ReadMapElemKey()
  28649. }
  28650. mk = dd.DecodeInt(64)
  28651. if esep {
  28652. dd.ReadMapElemValue()
  28653. }
  28654. if dd.TryDecodeAsNil() {
  28655. if d.h.DeleteOnNilMapValue {
  28656. delete(v, mk)
  28657. } else {
  28658. v[mk] = 0
  28659. }
  28660. continue
  28661. }
  28662. mv = dd.DecodeInt(64)
  28663. if v != nil {
  28664. v[mk] = mv
  28665. }
  28666. }
  28667. dd.ReadMapEnd()
  28668. return v, changed
  28669. }
  28670. func (d *Decoder) fastpathDecMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  28671. if rv.Kind() == reflect.Ptr {
  28672. vp := rv2i(rv).(*map[int64]float32)
  28673. if v, changed := fastpathTV.DecMapInt64Float32V(*vp, true, d); changed {
  28674. *vp = v
  28675. }
  28676. return
  28677. }
  28678. fastpathTV.DecMapInt64Float32V(rv2i(rv).(map[int64]float32), false, d)
  28679. }
  28680. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, d *Decoder) {
  28681. if v, changed := f.DecMapInt64Float32V(*vp, true, d); changed {
  28682. *vp = v
  28683. }
  28684. }
  28685. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, canChange bool,
  28686. d *Decoder) (_ map[int64]float32, changed bool) {
  28687. dd, esep := d.d, d.hh.hasElemSeparators()
  28688. containerLen := dd.ReadMapStart()
  28689. if canChange && v == nil {
  28690. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28691. v = make(map[int64]float32, xlen)
  28692. changed = true
  28693. }
  28694. if containerLen == 0 {
  28695. dd.ReadMapEnd()
  28696. return v, changed
  28697. }
  28698. var mk int64
  28699. var mv float32
  28700. hasLen := containerLen > 0
  28701. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28702. if esep {
  28703. dd.ReadMapElemKey()
  28704. }
  28705. mk = dd.DecodeInt(64)
  28706. if esep {
  28707. dd.ReadMapElemValue()
  28708. }
  28709. if dd.TryDecodeAsNil() {
  28710. if d.h.DeleteOnNilMapValue {
  28711. delete(v, mk)
  28712. } else {
  28713. v[mk] = 0
  28714. }
  28715. continue
  28716. }
  28717. mv = float32(dd.DecodeFloat(true))
  28718. if v != nil {
  28719. v[mk] = mv
  28720. }
  28721. }
  28722. dd.ReadMapEnd()
  28723. return v, changed
  28724. }
  28725. func (d *Decoder) fastpathDecMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  28726. if rv.Kind() == reflect.Ptr {
  28727. vp := rv2i(rv).(*map[int64]float64)
  28728. if v, changed := fastpathTV.DecMapInt64Float64V(*vp, true, d); changed {
  28729. *vp = v
  28730. }
  28731. return
  28732. }
  28733. fastpathTV.DecMapInt64Float64V(rv2i(rv).(map[int64]float64), false, d)
  28734. }
  28735. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, d *Decoder) {
  28736. if v, changed := f.DecMapInt64Float64V(*vp, true, d); changed {
  28737. *vp = v
  28738. }
  28739. }
  28740. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, canChange bool,
  28741. d *Decoder) (_ map[int64]float64, changed bool) {
  28742. dd, esep := d.d, d.hh.hasElemSeparators()
  28743. containerLen := dd.ReadMapStart()
  28744. if canChange && v == nil {
  28745. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28746. v = make(map[int64]float64, xlen)
  28747. changed = true
  28748. }
  28749. if containerLen == 0 {
  28750. dd.ReadMapEnd()
  28751. return v, changed
  28752. }
  28753. var mk int64
  28754. var mv float64
  28755. hasLen := containerLen > 0
  28756. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28757. if esep {
  28758. dd.ReadMapElemKey()
  28759. }
  28760. mk = dd.DecodeInt(64)
  28761. if esep {
  28762. dd.ReadMapElemValue()
  28763. }
  28764. if dd.TryDecodeAsNil() {
  28765. if d.h.DeleteOnNilMapValue {
  28766. delete(v, mk)
  28767. } else {
  28768. v[mk] = 0
  28769. }
  28770. continue
  28771. }
  28772. mv = dd.DecodeFloat(false)
  28773. if v != nil {
  28774. v[mk] = mv
  28775. }
  28776. }
  28777. dd.ReadMapEnd()
  28778. return v, changed
  28779. }
  28780. func (d *Decoder) fastpathDecMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  28781. if rv.Kind() == reflect.Ptr {
  28782. vp := rv2i(rv).(*map[int64]bool)
  28783. if v, changed := fastpathTV.DecMapInt64BoolV(*vp, true, d); changed {
  28784. *vp = v
  28785. }
  28786. return
  28787. }
  28788. fastpathTV.DecMapInt64BoolV(rv2i(rv).(map[int64]bool), false, d)
  28789. }
  28790. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, d *Decoder) {
  28791. if v, changed := f.DecMapInt64BoolV(*vp, true, d); changed {
  28792. *vp = v
  28793. }
  28794. }
  28795. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, canChange bool,
  28796. d *Decoder) (_ map[int64]bool, changed bool) {
  28797. dd, esep := d.d, d.hh.hasElemSeparators()
  28798. containerLen := dd.ReadMapStart()
  28799. if canChange && v == nil {
  28800. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28801. v = make(map[int64]bool, xlen)
  28802. changed = true
  28803. }
  28804. if containerLen == 0 {
  28805. dd.ReadMapEnd()
  28806. return v, changed
  28807. }
  28808. var mk int64
  28809. var mv bool
  28810. hasLen := containerLen > 0
  28811. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28812. if esep {
  28813. dd.ReadMapElemKey()
  28814. }
  28815. mk = dd.DecodeInt(64)
  28816. if esep {
  28817. dd.ReadMapElemValue()
  28818. }
  28819. if dd.TryDecodeAsNil() {
  28820. if d.h.DeleteOnNilMapValue {
  28821. delete(v, mk)
  28822. } else {
  28823. v[mk] = false
  28824. }
  28825. continue
  28826. }
  28827. mv = dd.DecodeBool()
  28828. if v != nil {
  28829. v[mk] = mv
  28830. }
  28831. }
  28832. dd.ReadMapEnd()
  28833. return v, changed
  28834. }
  28835. func (d *Decoder) fastpathDecMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  28836. if rv.Kind() == reflect.Ptr {
  28837. vp := rv2i(rv).(*map[bool]interface{})
  28838. if v, changed := fastpathTV.DecMapBoolIntfV(*vp, true, d); changed {
  28839. *vp = v
  28840. }
  28841. return
  28842. }
  28843. fastpathTV.DecMapBoolIntfV(rv2i(rv).(map[bool]interface{}), false, d)
  28844. }
  28845. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, d *Decoder) {
  28846. if v, changed := f.DecMapBoolIntfV(*vp, true, d); changed {
  28847. *vp = v
  28848. }
  28849. }
  28850. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, canChange bool,
  28851. d *Decoder) (_ map[bool]interface{}, changed bool) {
  28852. dd, esep := d.d, d.hh.hasElemSeparators()
  28853. containerLen := dd.ReadMapStart()
  28854. if canChange && v == nil {
  28855. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  28856. v = make(map[bool]interface{}, xlen)
  28857. changed = true
  28858. }
  28859. if containerLen == 0 {
  28860. dd.ReadMapEnd()
  28861. return v, changed
  28862. }
  28863. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  28864. var mk bool
  28865. var mv interface{}
  28866. hasLen := containerLen > 0
  28867. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28868. if esep {
  28869. dd.ReadMapElemKey()
  28870. }
  28871. mk = dd.DecodeBool()
  28872. if esep {
  28873. dd.ReadMapElemValue()
  28874. }
  28875. if dd.TryDecodeAsNil() {
  28876. if d.h.DeleteOnNilMapValue {
  28877. delete(v, mk)
  28878. } else {
  28879. v[mk] = nil
  28880. }
  28881. continue
  28882. }
  28883. if mapGet {
  28884. mv = v[mk]
  28885. } else {
  28886. mv = nil
  28887. }
  28888. d.decode(&mv)
  28889. if v != nil {
  28890. v[mk] = mv
  28891. }
  28892. }
  28893. dd.ReadMapEnd()
  28894. return v, changed
  28895. }
  28896. func (d *Decoder) fastpathDecMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  28897. if rv.Kind() == reflect.Ptr {
  28898. vp := rv2i(rv).(*map[bool]string)
  28899. if v, changed := fastpathTV.DecMapBoolStringV(*vp, true, d); changed {
  28900. *vp = v
  28901. }
  28902. return
  28903. }
  28904. fastpathTV.DecMapBoolStringV(rv2i(rv).(map[bool]string), false, d)
  28905. }
  28906. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, d *Decoder) {
  28907. if v, changed := f.DecMapBoolStringV(*vp, true, d); changed {
  28908. *vp = v
  28909. }
  28910. }
  28911. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, canChange bool,
  28912. d *Decoder) (_ map[bool]string, changed bool) {
  28913. dd, esep := d.d, d.hh.hasElemSeparators()
  28914. containerLen := dd.ReadMapStart()
  28915. if canChange && v == nil {
  28916. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  28917. v = make(map[bool]string, xlen)
  28918. changed = true
  28919. }
  28920. if containerLen == 0 {
  28921. dd.ReadMapEnd()
  28922. return v, changed
  28923. }
  28924. var mk bool
  28925. var mv string
  28926. hasLen := containerLen > 0
  28927. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28928. if esep {
  28929. dd.ReadMapElemKey()
  28930. }
  28931. mk = dd.DecodeBool()
  28932. if esep {
  28933. dd.ReadMapElemValue()
  28934. }
  28935. if dd.TryDecodeAsNil() {
  28936. if d.h.DeleteOnNilMapValue {
  28937. delete(v, mk)
  28938. } else {
  28939. v[mk] = ""
  28940. }
  28941. continue
  28942. }
  28943. mv = dd.DecodeString()
  28944. if v != nil {
  28945. v[mk] = mv
  28946. }
  28947. }
  28948. dd.ReadMapEnd()
  28949. return v, changed
  28950. }
  28951. func (d *Decoder) fastpathDecMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  28952. if rv.Kind() == reflect.Ptr {
  28953. vp := rv2i(rv).(*map[bool]uint)
  28954. if v, changed := fastpathTV.DecMapBoolUintV(*vp, true, d); changed {
  28955. *vp = v
  28956. }
  28957. return
  28958. }
  28959. fastpathTV.DecMapBoolUintV(rv2i(rv).(map[bool]uint), false, d)
  28960. }
  28961. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, d *Decoder) {
  28962. if v, changed := f.DecMapBoolUintV(*vp, true, d); changed {
  28963. *vp = v
  28964. }
  28965. }
  28966. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, canChange bool,
  28967. d *Decoder) (_ map[bool]uint, changed bool) {
  28968. dd, esep := d.d, d.hh.hasElemSeparators()
  28969. containerLen := dd.ReadMapStart()
  28970. if canChange && v == nil {
  28971. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28972. v = make(map[bool]uint, xlen)
  28973. changed = true
  28974. }
  28975. if containerLen == 0 {
  28976. dd.ReadMapEnd()
  28977. return v, changed
  28978. }
  28979. var mk bool
  28980. var mv uint
  28981. hasLen := containerLen > 0
  28982. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28983. if esep {
  28984. dd.ReadMapElemKey()
  28985. }
  28986. mk = dd.DecodeBool()
  28987. if esep {
  28988. dd.ReadMapElemValue()
  28989. }
  28990. if dd.TryDecodeAsNil() {
  28991. if d.h.DeleteOnNilMapValue {
  28992. delete(v, mk)
  28993. } else {
  28994. v[mk] = 0
  28995. }
  28996. continue
  28997. }
  28998. mv = uint(dd.DecodeUint(uintBitsize))
  28999. if v != nil {
  29000. v[mk] = mv
  29001. }
  29002. }
  29003. dd.ReadMapEnd()
  29004. return v, changed
  29005. }
  29006. func (d *Decoder) fastpathDecMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  29007. if rv.Kind() == reflect.Ptr {
  29008. vp := rv2i(rv).(*map[bool]uint8)
  29009. if v, changed := fastpathTV.DecMapBoolUint8V(*vp, true, d); changed {
  29010. *vp = v
  29011. }
  29012. return
  29013. }
  29014. fastpathTV.DecMapBoolUint8V(rv2i(rv).(map[bool]uint8), false, d)
  29015. }
  29016. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, d *Decoder) {
  29017. if v, changed := f.DecMapBoolUint8V(*vp, true, d); changed {
  29018. *vp = v
  29019. }
  29020. }
  29021. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, canChange bool,
  29022. d *Decoder) (_ map[bool]uint8, changed bool) {
  29023. dd, esep := d.d, d.hh.hasElemSeparators()
  29024. containerLen := dd.ReadMapStart()
  29025. if canChange && v == nil {
  29026. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  29027. v = make(map[bool]uint8, xlen)
  29028. changed = true
  29029. }
  29030. if containerLen == 0 {
  29031. dd.ReadMapEnd()
  29032. return v, changed
  29033. }
  29034. var mk bool
  29035. var mv uint8
  29036. hasLen := containerLen > 0
  29037. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29038. if esep {
  29039. dd.ReadMapElemKey()
  29040. }
  29041. mk = dd.DecodeBool()
  29042. if esep {
  29043. dd.ReadMapElemValue()
  29044. }
  29045. if dd.TryDecodeAsNil() {
  29046. if d.h.DeleteOnNilMapValue {
  29047. delete(v, mk)
  29048. } else {
  29049. v[mk] = 0
  29050. }
  29051. continue
  29052. }
  29053. mv = uint8(dd.DecodeUint(8))
  29054. if v != nil {
  29055. v[mk] = mv
  29056. }
  29057. }
  29058. dd.ReadMapEnd()
  29059. return v, changed
  29060. }
  29061. func (d *Decoder) fastpathDecMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  29062. if rv.Kind() == reflect.Ptr {
  29063. vp := rv2i(rv).(*map[bool]uint16)
  29064. if v, changed := fastpathTV.DecMapBoolUint16V(*vp, true, d); changed {
  29065. *vp = v
  29066. }
  29067. return
  29068. }
  29069. fastpathTV.DecMapBoolUint16V(rv2i(rv).(map[bool]uint16), false, d)
  29070. }
  29071. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, d *Decoder) {
  29072. if v, changed := f.DecMapBoolUint16V(*vp, true, d); changed {
  29073. *vp = v
  29074. }
  29075. }
  29076. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, canChange bool,
  29077. d *Decoder) (_ map[bool]uint16, changed bool) {
  29078. dd, esep := d.d, d.hh.hasElemSeparators()
  29079. containerLen := dd.ReadMapStart()
  29080. if canChange && v == nil {
  29081. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29082. v = make(map[bool]uint16, xlen)
  29083. changed = true
  29084. }
  29085. if containerLen == 0 {
  29086. dd.ReadMapEnd()
  29087. return v, changed
  29088. }
  29089. var mk bool
  29090. var mv uint16
  29091. hasLen := containerLen > 0
  29092. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29093. if esep {
  29094. dd.ReadMapElemKey()
  29095. }
  29096. mk = dd.DecodeBool()
  29097. if esep {
  29098. dd.ReadMapElemValue()
  29099. }
  29100. if dd.TryDecodeAsNil() {
  29101. if d.h.DeleteOnNilMapValue {
  29102. delete(v, mk)
  29103. } else {
  29104. v[mk] = 0
  29105. }
  29106. continue
  29107. }
  29108. mv = uint16(dd.DecodeUint(16))
  29109. if v != nil {
  29110. v[mk] = mv
  29111. }
  29112. }
  29113. dd.ReadMapEnd()
  29114. return v, changed
  29115. }
  29116. func (d *Decoder) fastpathDecMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  29117. if rv.Kind() == reflect.Ptr {
  29118. vp := rv2i(rv).(*map[bool]uint32)
  29119. if v, changed := fastpathTV.DecMapBoolUint32V(*vp, true, d); changed {
  29120. *vp = v
  29121. }
  29122. return
  29123. }
  29124. fastpathTV.DecMapBoolUint32V(rv2i(rv).(map[bool]uint32), false, d)
  29125. }
  29126. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, d *Decoder) {
  29127. if v, changed := f.DecMapBoolUint32V(*vp, true, d); changed {
  29128. *vp = v
  29129. }
  29130. }
  29131. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, canChange bool,
  29132. d *Decoder) (_ map[bool]uint32, changed bool) {
  29133. dd, esep := d.d, d.hh.hasElemSeparators()
  29134. containerLen := dd.ReadMapStart()
  29135. if canChange && v == nil {
  29136. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  29137. v = make(map[bool]uint32, xlen)
  29138. changed = true
  29139. }
  29140. if containerLen == 0 {
  29141. dd.ReadMapEnd()
  29142. return v, changed
  29143. }
  29144. var mk bool
  29145. var mv uint32
  29146. hasLen := containerLen > 0
  29147. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29148. if esep {
  29149. dd.ReadMapElemKey()
  29150. }
  29151. mk = dd.DecodeBool()
  29152. if esep {
  29153. dd.ReadMapElemValue()
  29154. }
  29155. if dd.TryDecodeAsNil() {
  29156. if d.h.DeleteOnNilMapValue {
  29157. delete(v, mk)
  29158. } else {
  29159. v[mk] = 0
  29160. }
  29161. continue
  29162. }
  29163. mv = uint32(dd.DecodeUint(32))
  29164. if v != nil {
  29165. v[mk] = mv
  29166. }
  29167. }
  29168. dd.ReadMapEnd()
  29169. return v, changed
  29170. }
  29171. func (d *Decoder) fastpathDecMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  29172. if rv.Kind() == reflect.Ptr {
  29173. vp := rv2i(rv).(*map[bool]uint64)
  29174. if v, changed := fastpathTV.DecMapBoolUint64V(*vp, true, d); changed {
  29175. *vp = v
  29176. }
  29177. return
  29178. }
  29179. fastpathTV.DecMapBoolUint64V(rv2i(rv).(map[bool]uint64), false, d)
  29180. }
  29181. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, d *Decoder) {
  29182. if v, changed := f.DecMapBoolUint64V(*vp, true, d); changed {
  29183. *vp = v
  29184. }
  29185. }
  29186. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, canChange bool,
  29187. d *Decoder) (_ map[bool]uint64, changed bool) {
  29188. dd, esep := d.d, d.hh.hasElemSeparators()
  29189. containerLen := dd.ReadMapStart()
  29190. if canChange && v == nil {
  29191. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29192. v = make(map[bool]uint64, xlen)
  29193. changed = true
  29194. }
  29195. if containerLen == 0 {
  29196. dd.ReadMapEnd()
  29197. return v, changed
  29198. }
  29199. var mk bool
  29200. var mv uint64
  29201. hasLen := containerLen > 0
  29202. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29203. if esep {
  29204. dd.ReadMapElemKey()
  29205. }
  29206. mk = dd.DecodeBool()
  29207. if esep {
  29208. dd.ReadMapElemValue()
  29209. }
  29210. if dd.TryDecodeAsNil() {
  29211. if d.h.DeleteOnNilMapValue {
  29212. delete(v, mk)
  29213. } else {
  29214. v[mk] = 0
  29215. }
  29216. continue
  29217. }
  29218. mv = dd.DecodeUint(64)
  29219. if v != nil {
  29220. v[mk] = mv
  29221. }
  29222. }
  29223. dd.ReadMapEnd()
  29224. return v, changed
  29225. }
  29226. func (d *Decoder) fastpathDecMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  29227. if rv.Kind() == reflect.Ptr {
  29228. vp := rv2i(rv).(*map[bool]uintptr)
  29229. if v, changed := fastpathTV.DecMapBoolUintptrV(*vp, true, d); changed {
  29230. *vp = v
  29231. }
  29232. return
  29233. }
  29234. fastpathTV.DecMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), false, d)
  29235. }
  29236. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, d *Decoder) {
  29237. if v, changed := f.DecMapBoolUintptrV(*vp, true, d); changed {
  29238. *vp = v
  29239. }
  29240. }
  29241. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, canChange bool,
  29242. d *Decoder) (_ map[bool]uintptr, changed bool) {
  29243. dd, esep := d.d, d.hh.hasElemSeparators()
  29244. containerLen := dd.ReadMapStart()
  29245. if canChange && v == nil {
  29246. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29247. v = make(map[bool]uintptr, xlen)
  29248. changed = true
  29249. }
  29250. if containerLen == 0 {
  29251. dd.ReadMapEnd()
  29252. return v, changed
  29253. }
  29254. var mk bool
  29255. var mv uintptr
  29256. hasLen := containerLen > 0
  29257. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29258. if esep {
  29259. dd.ReadMapElemKey()
  29260. }
  29261. mk = dd.DecodeBool()
  29262. if esep {
  29263. dd.ReadMapElemValue()
  29264. }
  29265. if dd.TryDecodeAsNil() {
  29266. if d.h.DeleteOnNilMapValue {
  29267. delete(v, mk)
  29268. } else {
  29269. v[mk] = 0
  29270. }
  29271. continue
  29272. }
  29273. mv = uintptr(dd.DecodeUint(uintBitsize))
  29274. if v != nil {
  29275. v[mk] = mv
  29276. }
  29277. }
  29278. dd.ReadMapEnd()
  29279. return v, changed
  29280. }
  29281. func (d *Decoder) fastpathDecMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  29282. if rv.Kind() == reflect.Ptr {
  29283. vp := rv2i(rv).(*map[bool]int)
  29284. if v, changed := fastpathTV.DecMapBoolIntV(*vp, true, d); changed {
  29285. *vp = v
  29286. }
  29287. return
  29288. }
  29289. fastpathTV.DecMapBoolIntV(rv2i(rv).(map[bool]int), false, d)
  29290. }
  29291. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, d *Decoder) {
  29292. if v, changed := f.DecMapBoolIntV(*vp, true, d); changed {
  29293. *vp = v
  29294. }
  29295. }
  29296. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, canChange bool,
  29297. d *Decoder) (_ map[bool]int, changed bool) {
  29298. dd, esep := d.d, d.hh.hasElemSeparators()
  29299. containerLen := dd.ReadMapStart()
  29300. if canChange && v == nil {
  29301. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29302. v = make(map[bool]int, xlen)
  29303. changed = true
  29304. }
  29305. if containerLen == 0 {
  29306. dd.ReadMapEnd()
  29307. return v, changed
  29308. }
  29309. var mk bool
  29310. var mv int
  29311. hasLen := containerLen > 0
  29312. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29313. if esep {
  29314. dd.ReadMapElemKey()
  29315. }
  29316. mk = dd.DecodeBool()
  29317. if esep {
  29318. dd.ReadMapElemValue()
  29319. }
  29320. if dd.TryDecodeAsNil() {
  29321. if d.h.DeleteOnNilMapValue {
  29322. delete(v, mk)
  29323. } else {
  29324. v[mk] = 0
  29325. }
  29326. continue
  29327. }
  29328. mv = int(dd.DecodeInt(intBitsize))
  29329. if v != nil {
  29330. v[mk] = mv
  29331. }
  29332. }
  29333. dd.ReadMapEnd()
  29334. return v, changed
  29335. }
  29336. func (d *Decoder) fastpathDecMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  29337. if rv.Kind() == reflect.Ptr {
  29338. vp := rv2i(rv).(*map[bool]int8)
  29339. if v, changed := fastpathTV.DecMapBoolInt8V(*vp, true, d); changed {
  29340. *vp = v
  29341. }
  29342. return
  29343. }
  29344. fastpathTV.DecMapBoolInt8V(rv2i(rv).(map[bool]int8), false, d)
  29345. }
  29346. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, d *Decoder) {
  29347. if v, changed := f.DecMapBoolInt8V(*vp, true, d); changed {
  29348. *vp = v
  29349. }
  29350. }
  29351. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, canChange bool,
  29352. d *Decoder) (_ map[bool]int8, changed bool) {
  29353. dd, esep := d.d, d.hh.hasElemSeparators()
  29354. containerLen := dd.ReadMapStart()
  29355. if canChange && v == nil {
  29356. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  29357. v = make(map[bool]int8, xlen)
  29358. changed = true
  29359. }
  29360. if containerLen == 0 {
  29361. dd.ReadMapEnd()
  29362. return v, changed
  29363. }
  29364. var mk bool
  29365. var mv int8
  29366. hasLen := containerLen > 0
  29367. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29368. if esep {
  29369. dd.ReadMapElemKey()
  29370. }
  29371. mk = dd.DecodeBool()
  29372. if esep {
  29373. dd.ReadMapElemValue()
  29374. }
  29375. if dd.TryDecodeAsNil() {
  29376. if d.h.DeleteOnNilMapValue {
  29377. delete(v, mk)
  29378. } else {
  29379. v[mk] = 0
  29380. }
  29381. continue
  29382. }
  29383. mv = int8(dd.DecodeInt(8))
  29384. if v != nil {
  29385. v[mk] = mv
  29386. }
  29387. }
  29388. dd.ReadMapEnd()
  29389. return v, changed
  29390. }
  29391. func (d *Decoder) fastpathDecMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  29392. if rv.Kind() == reflect.Ptr {
  29393. vp := rv2i(rv).(*map[bool]int16)
  29394. if v, changed := fastpathTV.DecMapBoolInt16V(*vp, true, d); changed {
  29395. *vp = v
  29396. }
  29397. return
  29398. }
  29399. fastpathTV.DecMapBoolInt16V(rv2i(rv).(map[bool]int16), false, d)
  29400. }
  29401. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, d *Decoder) {
  29402. if v, changed := f.DecMapBoolInt16V(*vp, true, d); changed {
  29403. *vp = v
  29404. }
  29405. }
  29406. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, canChange bool,
  29407. d *Decoder) (_ map[bool]int16, changed bool) {
  29408. dd, esep := d.d, d.hh.hasElemSeparators()
  29409. containerLen := dd.ReadMapStart()
  29410. if canChange && v == nil {
  29411. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29412. v = make(map[bool]int16, xlen)
  29413. changed = true
  29414. }
  29415. if containerLen == 0 {
  29416. dd.ReadMapEnd()
  29417. return v, changed
  29418. }
  29419. var mk bool
  29420. var mv int16
  29421. hasLen := containerLen > 0
  29422. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29423. if esep {
  29424. dd.ReadMapElemKey()
  29425. }
  29426. mk = dd.DecodeBool()
  29427. if esep {
  29428. dd.ReadMapElemValue()
  29429. }
  29430. if dd.TryDecodeAsNil() {
  29431. if d.h.DeleteOnNilMapValue {
  29432. delete(v, mk)
  29433. } else {
  29434. v[mk] = 0
  29435. }
  29436. continue
  29437. }
  29438. mv = int16(dd.DecodeInt(16))
  29439. if v != nil {
  29440. v[mk] = mv
  29441. }
  29442. }
  29443. dd.ReadMapEnd()
  29444. return v, changed
  29445. }
  29446. func (d *Decoder) fastpathDecMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  29447. if rv.Kind() == reflect.Ptr {
  29448. vp := rv2i(rv).(*map[bool]int32)
  29449. if v, changed := fastpathTV.DecMapBoolInt32V(*vp, true, d); changed {
  29450. *vp = v
  29451. }
  29452. return
  29453. }
  29454. fastpathTV.DecMapBoolInt32V(rv2i(rv).(map[bool]int32), false, d)
  29455. }
  29456. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, d *Decoder) {
  29457. if v, changed := f.DecMapBoolInt32V(*vp, true, d); changed {
  29458. *vp = v
  29459. }
  29460. }
  29461. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, canChange bool,
  29462. d *Decoder) (_ map[bool]int32, changed bool) {
  29463. dd, esep := d.d, d.hh.hasElemSeparators()
  29464. containerLen := dd.ReadMapStart()
  29465. if canChange && v == nil {
  29466. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  29467. v = make(map[bool]int32, xlen)
  29468. changed = true
  29469. }
  29470. if containerLen == 0 {
  29471. dd.ReadMapEnd()
  29472. return v, changed
  29473. }
  29474. var mk bool
  29475. var mv int32
  29476. hasLen := containerLen > 0
  29477. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29478. if esep {
  29479. dd.ReadMapElemKey()
  29480. }
  29481. mk = dd.DecodeBool()
  29482. if esep {
  29483. dd.ReadMapElemValue()
  29484. }
  29485. if dd.TryDecodeAsNil() {
  29486. if d.h.DeleteOnNilMapValue {
  29487. delete(v, mk)
  29488. } else {
  29489. v[mk] = 0
  29490. }
  29491. continue
  29492. }
  29493. mv = int32(dd.DecodeInt(32))
  29494. if v != nil {
  29495. v[mk] = mv
  29496. }
  29497. }
  29498. dd.ReadMapEnd()
  29499. return v, changed
  29500. }
  29501. func (d *Decoder) fastpathDecMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  29502. if rv.Kind() == reflect.Ptr {
  29503. vp := rv2i(rv).(*map[bool]int64)
  29504. if v, changed := fastpathTV.DecMapBoolInt64V(*vp, true, d); changed {
  29505. *vp = v
  29506. }
  29507. return
  29508. }
  29509. fastpathTV.DecMapBoolInt64V(rv2i(rv).(map[bool]int64), false, d)
  29510. }
  29511. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, d *Decoder) {
  29512. if v, changed := f.DecMapBoolInt64V(*vp, true, d); changed {
  29513. *vp = v
  29514. }
  29515. }
  29516. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, canChange bool,
  29517. d *Decoder) (_ map[bool]int64, changed bool) {
  29518. dd, esep := d.d, d.hh.hasElemSeparators()
  29519. containerLen := dd.ReadMapStart()
  29520. if canChange && v == nil {
  29521. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29522. v = make(map[bool]int64, xlen)
  29523. changed = true
  29524. }
  29525. if containerLen == 0 {
  29526. dd.ReadMapEnd()
  29527. return v, changed
  29528. }
  29529. var mk bool
  29530. var mv int64
  29531. hasLen := containerLen > 0
  29532. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29533. if esep {
  29534. dd.ReadMapElemKey()
  29535. }
  29536. mk = dd.DecodeBool()
  29537. if esep {
  29538. dd.ReadMapElemValue()
  29539. }
  29540. if dd.TryDecodeAsNil() {
  29541. if d.h.DeleteOnNilMapValue {
  29542. delete(v, mk)
  29543. } else {
  29544. v[mk] = 0
  29545. }
  29546. continue
  29547. }
  29548. mv = dd.DecodeInt(64)
  29549. if v != nil {
  29550. v[mk] = mv
  29551. }
  29552. }
  29553. dd.ReadMapEnd()
  29554. return v, changed
  29555. }
  29556. func (d *Decoder) fastpathDecMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  29557. if rv.Kind() == reflect.Ptr {
  29558. vp := rv2i(rv).(*map[bool]float32)
  29559. if v, changed := fastpathTV.DecMapBoolFloat32V(*vp, true, d); changed {
  29560. *vp = v
  29561. }
  29562. return
  29563. }
  29564. fastpathTV.DecMapBoolFloat32V(rv2i(rv).(map[bool]float32), false, d)
  29565. }
  29566. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, d *Decoder) {
  29567. if v, changed := f.DecMapBoolFloat32V(*vp, true, d); changed {
  29568. *vp = v
  29569. }
  29570. }
  29571. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, canChange bool,
  29572. d *Decoder) (_ map[bool]float32, changed bool) {
  29573. dd, esep := d.d, d.hh.hasElemSeparators()
  29574. containerLen := dd.ReadMapStart()
  29575. if canChange && v == nil {
  29576. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  29577. v = make(map[bool]float32, xlen)
  29578. changed = true
  29579. }
  29580. if containerLen == 0 {
  29581. dd.ReadMapEnd()
  29582. return v, changed
  29583. }
  29584. var mk bool
  29585. var mv float32
  29586. hasLen := containerLen > 0
  29587. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29588. if esep {
  29589. dd.ReadMapElemKey()
  29590. }
  29591. mk = dd.DecodeBool()
  29592. if esep {
  29593. dd.ReadMapElemValue()
  29594. }
  29595. if dd.TryDecodeAsNil() {
  29596. if d.h.DeleteOnNilMapValue {
  29597. delete(v, mk)
  29598. } else {
  29599. v[mk] = 0
  29600. }
  29601. continue
  29602. }
  29603. mv = float32(dd.DecodeFloat(true))
  29604. if v != nil {
  29605. v[mk] = mv
  29606. }
  29607. }
  29608. dd.ReadMapEnd()
  29609. return v, changed
  29610. }
  29611. func (d *Decoder) fastpathDecMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  29612. if rv.Kind() == reflect.Ptr {
  29613. vp := rv2i(rv).(*map[bool]float64)
  29614. if v, changed := fastpathTV.DecMapBoolFloat64V(*vp, true, d); changed {
  29615. *vp = v
  29616. }
  29617. return
  29618. }
  29619. fastpathTV.DecMapBoolFloat64V(rv2i(rv).(map[bool]float64), false, d)
  29620. }
  29621. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, d *Decoder) {
  29622. if v, changed := f.DecMapBoolFloat64V(*vp, true, d); changed {
  29623. *vp = v
  29624. }
  29625. }
  29626. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, canChange bool,
  29627. d *Decoder) (_ map[bool]float64, changed bool) {
  29628. dd, esep := d.d, d.hh.hasElemSeparators()
  29629. containerLen := dd.ReadMapStart()
  29630. if canChange && v == nil {
  29631. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29632. v = make(map[bool]float64, xlen)
  29633. changed = true
  29634. }
  29635. if containerLen == 0 {
  29636. dd.ReadMapEnd()
  29637. return v, changed
  29638. }
  29639. var mk bool
  29640. var mv float64
  29641. hasLen := containerLen > 0
  29642. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29643. if esep {
  29644. dd.ReadMapElemKey()
  29645. }
  29646. mk = dd.DecodeBool()
  29647. if esep {
  29648. dd.ReadMapElemValue()
  29649. }
  29650. if dd.TryDecodeAsNil() {
  29651. if d.h.DeleteOnNilMapValue {
  29652. delete(v, mk)
  29653. } else {
  29654. v[mk] = 0
  29655. }
  29656. continue
  29657. }
  29658. mv = dd.DecodeFloat(false)
  29659. if v != nil {
  29660. v[mk] = mv
  29661. }
  29662. }
  29663. dd.ReadMapEnd()
  29664. return v, changed
  29665. }
  29666. func (d *Decoder) fastpathDecMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  29667. if rv.Kind() == reflect.Ptr {
  29668. vp := rv2i(rv).(*map[bool]bool)
  29669. if v, changed := fastpathTV.DecMapBoolBoolV(*vp, true, d); changed {
  29670. *vp = v
  29671. }
  29672. return
  29673. }
  29674. fastpathTV.DecMapBoolBoolV(rv2i(rv).(map[bool]bool), false, d)
  29675. }
  29676. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, d *Decoder) {
  29677. if v, changed := f.DecMapBoolBoolV(*vp, true, d); changed {
  29678. *vp = v
  29679. }
  29680. }
  29681. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, canChange bool,
  29682. d *Decoder) (_ map[bool]bool, changed bool) {
  29683. dd, esep := d.d, d.hh.hasElemSeparators()
  29684. containerLen := dd.ReadMapStart()
  29685. if canChange && v == nil {
  29686. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  29687. v = make(map[bool]bool, xlen)
  29688. changed = true
  29689. }
  29690. if containerLen == 0 {
  29691. dd.ReadMapEnd()
  29692. return v, changed
  29693. }
  29694. var mk bool
  29695. var mv bool
  29696. hasLen := containerLen > 0
  29697. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29698. if esep {
  29699. dd.ReadMapElemKey()
  29700. }
  29701. mk = dd.DecodeBool()
  29702. if esep {
  29703. dd.ReadMapElemValue()
  29704. }
  29705. if dd.TryDecodeAsNil() {
  29706. if d.h.DeleteOnNilMapValue {
  29707. delete(v, mk)
  29708. } else {
  29709. v[mk] = false
  29710. }
  29711. continue
  29712. }
  29713. mv = dd.DecodeBool()
  29714. if v != nil {
  29715. v[mk] = mv
  29716. }
  29717. }
  29718. dd.ReadMapEnd()
  29719. return v, changed
  29720. }